/*  About html  */
.portfolio-link {
    color: blue;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid #e50914;
    transition: all 0.3s;
}

.portfolio-link:hover {
    color: #ff6b6b;
    border-bottom-color: #ff6b6b;
    background: rgba(229, 9, 20, 0.1);
    padding: 2px 4px;
    border-radius: 3px;
}
.sources {
    margin-top: 40px;
    overflow-x: auto; /* Add horizontal scroll for small screens */
}

.sources-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 25px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    overflow: hidden;
    min-width: 800px; /* Minimum width to prevent squishing */
}

.sources-table th {
    background: rgba(229, 9, 20, 0.2);
    color: #fff;
    padding: 18px 15px;
    text-align: left;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 16px;
    white-space: nowrap;
}

.sources-table td {
    padding: 20px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #ccc;
    vertical-align: top;
    word-wrap: break-word;
    max-width: 400px; /* Limit width to prevent overflow */
}

.sources-table tr:hover {
    background: rgba(229, 9, 20, 0.1);
}

/* List styling inside table cells */
.sources-table ul {
    margin: 0;
    padding-left: 20px;
}

.sources-table li {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.4;
    word-break: break-all; /* Break long URLs */
}

.sources-table a {
    color: #ff6b6b;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 13px;
}

.sources-table a:hover {
    color: #fff;
    text-decoration: underline;
}

/* First column styling (Species names) */
.sources-table td:first-child {
    color: #fff;
    font-weight: 600;
    width: 120px;
    min-width: 120px;
    max-width: 120px;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    white-space: normal;
}

/* Column widths for better distribution */
.sources-table td:nth-child(2) {
    min-width: 350px;
    max-width: 350px;
}

.sources-table td:nth-child(3) {
    min-width: 300px;
    max-width: 300px;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .sources-table td:nth-child(2),
    .sources-table td:nth-child(3) {
        min-width: 300px;
        max-width: 300px;
    }
}

@media (max-width: 1024px) {
    .sources {
        overflow-x: auto;
        margin-right: -20px;
        margin-left: -20px;
        padding: 0 20px;
    }
    
    .sources-table {
        min-width: 900px;
    }
}

/* About content container adjustments */
.about-content {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(229, 9, 20, 0.2);
    margin-top: 120px;
    overflow: hidden; /* Prevent overflow */
}

.author-bio {
    margin-bottom: 60px;
}

.author-bio h2 {
    color: #e50914;
    margin-bottom: 25px;
    font-size: 32px;
    border-bottom: 2px solid #e50914;
    padding-bottom: 15px;
    display: inline-block;
}

.sources h2 {
    color: #e50914;
    margin-bottom: 25px;
    font-size: 32px;
    border-bottom: 2px solid #e50914;
    padding-bottom: 15px;
    display: inline-block;
}
/* Ranking Header Brand */
.header-ranking {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.rank-main {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 32px;
    color: #e50914;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.rank-by {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #fff;
    letter-spacing: 3px;
    margin-top: -2px;
    text-transform: uppercase;
}

/* Updated Species Info Styling */
.info-item-design {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    min-height: 40px;
}

.info-item-design:last-child {
    border-bottom: none;
}

.info-label-design {
    color: #b3b3b3;
    font-weight: 600;
    font-size: 14px;
    width: 180px;
    min-width: 180px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.info-label-design strong {
    color: #e50914;
}

.info-value-design {
    color: #fff;
    font-size: 16px;
    font-weight: 400;
    font-family: 'Montserrat', sans-serif;
    flex: 1;
    line-height: 1.4;
}

/* Remove image alt text styling */
.species-image-sidebar img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    border: 3px solid rgba(229, 9, 20, 0.4);
}
/* */
.scientific-subtitle {
    color: #ff6b6b;
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-style: italic;
    margin-top: 5px;
    letter-spacing: 0.5px;
    text-align: center;
}
/* Netflix-style Species Information Section - With Larger Image */
.species-section {
    margin-bottom: 40px;
}

.species-section h2 {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e50914;
    display: inline-block;
}

.species-info-wrapper {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    align-items: start;
}

.species-info-container {
    background: rgba(20, 20, 20, 0.9);
    padding: 25px 30px;
    border-radius: 8px;
    border-left: 4px solid #e50914;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.species-info-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #e50914, #b20710);
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-item-netflix {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    min-height: 40px;
}

.info-item-netflix:last-child {
    border-bottom: none;
}

.info-label-netflix {
    color: #b3b3b3;
    font-weight: 600;
    font-size: 14px;
    width: 180px;
    min-width: 180px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.info-label-netflix strong {
    color: #e50914;
}

.info-value-netflix {
    color: #fff;
    font-size: 16px;
    font-weight: 400;
    font-family: 'Montserrat', sans-serif;
    flex: 1;
    line-height: 1.4;
}

.scientific-name {
    font-style: italic;
}

.status-badge {
    display: inline-block;
    background: linear-gradient(135deg, #e50914, #b20710);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    box-shadow: 0 3px 10px rgba(229, 9, 20, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Larger Species Image Sidebar */
.species-image-sidebar {
    position: relative;
    height: 100%;
}

.species-image-sidebar img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    border: 3px solid rgba(229, 9, 20, 0.4);
}


/* Responsive adjustment for the grid */
@media (max-width: 1200px) {
    .species-info-wrapper {
        grid-template-columns: 1fr 350px;
        gap: 30px;
    }
    
    .species-image-sidebar img {
        height: 350px;
    }
}

@media (max-width: 1024px) {
    .species-info-wrapper {
        grid-template-columns: 1fr 300px;
        gap: 25px;
    }
    
    .species-image-sidebar img {
        height: 320px;
    }
}

@media (max-width: 768px) {
    .species-info-wrapper {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .species-image-sidebar img {
        height: 350px;
        max-height: 350px;
    }
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Google Font Import */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;900&family=Open+Sans:wght@400;600&display=swap');

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #fff;
    background: linear-gradient(135deg, #0c1e25 0%, #1a3a47 100%);
    min-height: 100vh;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

/* Custom Header - LIST BY JAY-R */
.custom-header {
    background: rgba(0, 0, 0, 0.95);
    
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.header-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.brand-main {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 32px;
    color: #e50914;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.brand-by {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #fff;
    letter-spacing: 3px;
    margin-top: -2px;
    text-transform: uppercase;
}

/* Simplified Navigation */
.main-nav-simple {
    display: flex;
    gap: 40px;
}

.nav-link-simple {
    color: #fff;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 1.5px;
    transition: all 0.3s;
    position: relative;
    text-transform: uppercase;
    padding: 5px 0;
}

.nav-link-simple:hover {
    color: #e50914;
}

.nav-link-simple.active {
    color: #e50914;
}

.nav-link-simple.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #e50914;
}

/* Hero Section - Endangered Species Theme */
.hero-section {
    margin-top: 0px;
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.9)), 
                url('img/hero.jpg') ;
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.hero-content {
    max-width: 900px;
    padding: 40px;
    z-index: 2;
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 78px;
    font-weight: 900;
    margin-bottom: 35px;
    text-transform: uppercase;
    background: linear-gradient(45deg, #e50914, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(229, 9, 20, 0.3);
}

.hero-description {
    font-size: 22px;
    line-height: 1.8;
    margin-bottom: 45px;
    color: #ccc;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Home Page Content */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}

.page-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.page-title h2 {
    font-size: 42px;
    color: #fff;
    display: inline-block;
    padding-bottom: 20px;
    border-bottom: 3px solid #e50914;
}

.intro-text {
    background: rgba(255, 255, 255, 0.05);
    padding: 50px;
    border-radius: 15px;
    margin-bottom: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(229, 9, 20, 0.2);
}

.intro-text p {
    font-size: 20px;
    line-height: 1.8;
    margin-bottom: 25px;
    color: #ccc;
}

.intro-text strong {
    color: #e50914;
    font-weight: 700;
}

.start-button {
    display: inline-block;
    background: linear-gradient(45deg, #e50914, #ff4757);
    color: white;
    padding: 20px 50px;
    border-radius: 30px;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 1.5px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: 0 8px 25px rgba(229, 9, 20, 0.4);
    position: relative;
    overflow: hidden;
}

.start-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(229, 9, 20, 0.6);
    background: linear-gradient(45deg, #ff4757, #e50914);
}

.start-button:active {
    transform: translateY(-2px);
}

.button-container {
    text-align: center;
    margin-top: 60px;
}

/* Ranking Page Styles */
.ranking-header {
    text-align: center;
    padding-bottom: 25px;
    position: relative;
}

.ranking-header h1 {
    font-size: 52px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.rank-number {
    color: #e50914;
    font-weight: 900;
}

.main-visual {
    margin-bottom: 40px;
    text-align: center;
}

.species-image {
    width: 100%;
    max-height: 550px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(229, 9, 20, 0.3);
}

.description {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 15px;
    margin-bottom: 40px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(229, 9, 20, 0.2);
}

.description p {
    margin-bottom: 25px;
    font-size: 18px;
    line-height: 1.8;
    color: #ddd;
}

.fun-fact {
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.1), rgba(255, 107, 107, 0.1));
    border-left: 5px solid #e50914;
    padding: 30px;
    border-radius: 0 15px 15px 0;
    margin-bottom: 50px;
    backdrop-filter: blur(10px);
}

.fun-fact h3 {
    color: #ff6b6b;
    margin-bottom: 15px;
    font-size: 22px;
}

/* Slideshow Navigation */
.slideshow-nav {
    display: flex;
    justify-content: space-between;
    margin: 60px 0;
    padding: 0 20px;
}

.nav-button {
    padding: 18px 35px;
    background: linear-gradient(45deg, #e50914, #ff4757);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 5px 15px rgba(229, 9, 20, 0.3);
}

.nav-button:hover {
    background: linear-gradient(45deg, #ff4757, #e50914);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(229, 9, 20, 0.5);
}

/* About Page Styles */
.about-content {
    background: rgba(255, 255, 255, 0.05);
    padding: 50px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(229, 9, 20, 0.2);
    margin-top: 0px;
}

.author-bio {
    margin-bottom: 60px;
}

.author-bio h2 {
    color: #e50914;
    margin-bottom: 25px;
    font-size: 32px;
    border-bottom: 2px solid #e50914;
    padding-bottom: 15px;
    display: inline-block;
}

.sources-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 25px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    overflow: hidden;
}

.sources-table th {
    background: rgba(229, 9, 20, 0.2);
    color: #fff;
    padding: 18px;
    text-align: left;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.sources-table td {
    padding: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #ccc;
}

.sources-table tr:hover {
    background: rgba(229, 9, 20, 0.1);
}

/* Footer */
footer {
    text-align: center;
    padding: 40px;
    margin-top: 80px;
    color: #777;
    border-top: 1px solid rgba(229, 9, 20, 0.2);
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 64px;
    }
    
    .header-container {
        padding: 0 30px;
    }
    
    .main-nav-simple {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        padding: 15px 20px;
        gap: 20px;
    }
    
    .header-brand {
        align-items: center;
        text-align: center;
    }
    
    .main-nav-simple {
        gap: 25px;
    }
    
    .nav-link-simple {
        font-size: 14px;
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    .hero-description {
        font-size: 18px;
        padding: 0 20px;
    }
    
    .ranking-header h1 {
        font-size: 36px;
    }
    
    .slideshow-nav {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    
    .nav-button {
        width: 220px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .brand-main {
        font-size: 28px;
    }
    
    .brand-by {
        font-size: 12px;
    }
    
    .main-nav-simple {
        gap: 20px;
    }
    
    .nav-link-simple {
        font-size: 13px;
    }
}
/* Species Information Section */
.species-info {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(229, 9, 20, 0.2);
}

.species-info h3 {
    color: #ff6b6b;
    margin-bottom: 25px;
    font-size: 24px;
    text-align: center;
    border-bottom: 2px solid rgba(229, 9, 20, 0.3);
    padding-bottom: 10px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.info-item {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #e50914;
}

.info-label {
    color: #ff6b6b;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.info-value {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
}