/* ==========================================================
   0. CUSTOM BRAND FONT IMPORT
   ========================================================== */
@font-face {
    font-family: 'MyBrandFont'; /* You can name this anything */
    src: url('fonts/Rocky.otf'); 
    /* Use format('opentype') if it's an .otf file */
    font-weight: normal;
    font-style: normal;
}
/* ==========================================================
   1. GLOBAL VARIABLES & RESET
   ========================================================== */
:root {
    --navy: #ffffff; /* Note: You have this as white currently */
    --navy-light: #1a2e4e;
    --gold: #ffb422;
    --terracotta: #d97757;
    --border-coral: #e09e87;
    --text-dark: #333;
    --white: #ffffff;
    --radius-lg: 40px;
    --radius-md: 25px;
    --text-dark: #ffffff;
    --ocean-bg: #0a192f;
    --text-main: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    scroll-behavior: smooth;
}

body {
    background-color: #0d1f3d;
    background: linear-gradient(180deg, #1a3a6d 0%, #06122e 100%);
    background-attachment: fixed;
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-md);
}

.container {
    width: 90%;
    max-width: 1200px; 
    margin: 0 auto;
}

h2 {
    font-family: 'MyBrandFont';
    src: url('fonts/Rocky.otf'); 
}

h1  {
    font-family: 'MyBrandFont';
    src: url('fonts/Rocky.otf'); 
}
.social-icons a {
    text-decoration: none;
    color: inherit; /* Keeps the original white color */
    transition: all 0.3s ease;
}

.social-icons a:hover {
    color: var(--gold); /* Or var(--terracotta) to match your brand */
    transform: translateY(-3px) scale(1.1);
    display: inline-block; /* Required for transform to work on links */
}

.social-icons i {
    cursor: pointer;
}

.video-player {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px; /* Match your image box corners */
    cursor: pointer;
    background-color: #000;
}

/* Ensure the video fits inside the existing doc-media-box */
.doc-media-box {
    position: relative;
    overflow: hidden;
    line-height: 0; /* Removes bottom gap */
}

/* ==========================================================
   2. NAVIGATION BAR (Desktop)
   ========================================================== */
.navbar {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10000;
}

.logo-top { width: 80px; }

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links li a {
    color: white;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.nav-links li a:hover, 
.nav-links li a.active { 
    color: var(--gold); 
}

.menu-btn { display: none; }

/* ==========================================================
   3. HERO STRUCTURES
   ========================================================== */
.hero, .featured-hero {
    position: relative;
    height: 60vh; 
    min-height: 450px;
    width: 90%; 
    max-width: 1200px;
    margin: 20px auto;
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex; 
    flex-direction: column; 
    justify-content: flex-end; 
    align-items: flex-start; 
    padding: 60px;             
}

.hero { color: white; }
.hero-video, .hero-bg {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%; object-fit: cover; z-index: -1;
}
.hero::after {
    content: ''; position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.6));
    z-index: 0;
}

.featured-hero {
    position: relative;
    height: 60vh; 
    min-height: 450px;
    width: 90%; 
    max-width: 1200px;
    margin: 20px auto 100px;
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex; 
    flex-direction: column; 
    justify-content: flex-end; 
    align-items: flex-start; 
    padding: 60px;
}
.featured-icon { width: 220px; margin-bottom: 20px; }

.hero-content { position: relative; z-index: 2; }
.hero-content h1 { font-size: clamp(2.5rem, 6vw, 4rem); margin: 0; line-height: 1.1; }


/* ==========================================================
   4. CONTENT ROWS
   ========================================================== */
.content-row { display: flex; flex-direction: column; gap: 30px; margin: 80px auto; }

@media (min-width: 768px) {
    .content-row { flex-direction: row; text-align: left; align-items: center; gap: 80px; }
    .content-row.reverse { flex-direction: row-reverse; }
    .text-col, .image-col { flex: 1; }
    .text-col h2 { font-size: 2.5rem; margin-bottom: 20px; color: var(--navy); }
    .image-col img { width: 100%; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
}

/* ==========================================================
   5. FEATURED WORK GRID (REWRITTEN & FIXED)
   ========================================================== */
.featured-main-section { 
    background-color: var(--navy-light); 
    padding: 80px 0; 
    margin-top: 50px; 
    border-top-left-radius: var(--radius-lg); 
    border-top-right-radius: var(--radius-lg); 
}

.featured-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px; 
    width: 90%; 
    max-width: 1100px; 
    margin: 0 auto;
    /* CRITICAL: Stops the 'other' box from stretching */
    align-items: start; 
}

.work-card { 
    background: rgba(0, 0, 0, 0.3); 
    backdrop-filter: blur(10px);    
    border-radius: var(--radius-lg); 
    padding: 25px; 
    border: 2px solid var(--border-coral); 
    transition: transform 0.3s ease;
    cursor: pointer;
}

.work-card:hover { transform: translateY(-10px); }

.card-image img { 
    width: 100%; 
    height: 250px; 
    border-radius: 30px; 
    object-fit: cover; 
}

.card-info { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 20px 10px 0; 
}

/* var(--navy) is #ffffff in your :root, so this will be white */
.card-info h3 { color: var(--navy); margin: 0; }

.arrow-btn { 
    width: 45px; height: 45px; border-radius: 50%; 
    border: 2px solid var(--border-coral); 
    color: var(--border-coral); 
    display: flex; justify-content: center; align-items: center; 
    background: white;
    transition: 0.3s; 
}

.arrow-btn:hover{ 
    background-color: #ffb422;
    color: white;    
}

/* THE DESCRIPTION BOX LOGIC */
.description-box {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.5s ease, opacity 0.3s ease;
    padding: 0 10px;
}

/* This now matches the .is-expanded class from your HTML/JS */
.work-card.is-expanded .description-box {
    max-height: 500px; 
    opacity: 1;
    visibility: visible;
    padding: 20px 10px;
}

/* Arrow flips when the box is open */
.work-card.is-expanded .toggle-btn i {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

.description-box p {
    color: #ffffff;
    margin-bottom: 15px;
    line-height: 1.6;
}

.visit-page-link {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
}

.visit-page-link:hover {
    text-decoration: underline;
}

/* ==========================================================
   6. ABOUT US & TRIANGLE
   ========================================================== */
.intro-section { 
    padding: 5% 0; 
    text-align: center; 
    display: flex;
    flex-direction: column;
    align-items: center; 
}

.intro-section p {
    max-width: 850px; 
    margin: 0 auto;   
    line-height: 2;   
    font-size: 1.1rem;
    text-align: center; 
}

.blue-block { 
    background-color: transparent; 
    color: white; 
}

.blue-block-content {
    width: 90%;
    max-width: 1200px; 
    margin: 0 auto;
}

.script-header { 
     font-family: 'MyBrandFont'; /* You can name this anything */
    src: url('fonts/Rocky.otf');
    font-size: 2rem; 
    margin-bottom: 50px;
    text-align: center; 
}

.purpose-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 40px 80px; 
    text-align: left;
    margin-bottom: 60px;
}

.grid-item h3 {
    color: var(--gold);
    font-size: 1.4rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.grid-item p {
    font-size: 0.95rem;
    line-height: 1.7;
    opacity: 0.9;
}

.value-display-container { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    width: 100%;
}

.triangle-wrapper { 
    position: relative; 
    width: 100px; 
}

.css-triangle { 
    width: 0; 
    height: 0; 
    border-left: 50px solid transparent; 
    border-right: 50px solid transparent; 
    border-bottom: 86.6px solid var(--terracotta); 
    position: relative; 
}

.css-triangle::after { 
    content: ''; 
    position: absolute; 
    width: 0; 
    height: 0; 
    border-left: 44px solid transparent;  
    border-right: 44px solid transparent; 
    border-bottom: 76px solid #06122e; 
    top: 6px; 
    left: 50%; 
    transform: translateX(-50%); 
}

.triangle-labels { 
    display: flex; 
    justify-content: space-between; 
    width: 240px; 
    position: absolute; 
    bottom: -35px; 
    left: 50%; 
    transform: translateX(-50%); 
    color: white; 
    font-size: 0.75rem;
    font-weight: 600;
}

/* ==========================================================
   8. MOBILE NAVIGATION
   ========================================================== */
@media (max-width: 1023px) {
    .navbar { position: absolute; top: 0; left: 0; width: 100%; background: transparent; padding: 20px; transform: none; }

    .menu-btn {
        display: flex; 
        position: fixed; 
        top: 50px; right: 8%;
        z-index: 10001;
        width: 50px; height: 50px;
        border: 2px solid #dfdfdf;
        border-radius: 50%;
        cursor: pointer;
        justify-content: center; align-items: center;
        background: transparent;
    }

    .menu-burger { width: 20px; height: 2px; background: #dfdfdf; position: relative; transition: all 0.3s ease-in-out; }
    .menu-burger::before, .menu-burger::after {
        content: ''; position: absolute; width: 20px; height: 2px; background: #dfdfdf; transition: all 0.3s ease-in-out; left: 0;
    }
    .menu-burger::before { transform: translateY(-6px); }
    .menu-burger::after { transform: translateY(6px); }

    .menu-btn.open .menu-burger { background: transparent; }
    .menu-btn.open .menu-burger::before { transform: rotate(45deg); top: 0; }
    .menu-btn.open .menu-burger::after { transform: rotate(-45deg); top: 0; }

    .nav-links {
        display: flex; flex-direction: column;
        position: fixed; top: 0; left: 0; width: 100%;
        background-color: #06122e;
        z-index: 10000;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease-in-out;
        text-align: center; padding: 0;
    }

    .nav-links.mobile-active { 
        max-height: 100vh; 
        padding-top: 90px; 
        padding-bottom: 30px; 
        border-bottom: 4px solid var(--gold); 
        background-color: #06122e
    }
    .nav-links li { width: 100%; padding: 10px 0; }
    .nav-links li a { font-size: 1.2rem; font-weight: 600; padding: 15px; display: block; }
}

/* ==========================================================
   9. FORM & FOOTER
   ========================================================== */
.form-section { background: linear-gradient(rgba(26, 46, 78, 0.8), rgba(26, 46, 78, 0.8)), url('image/wave-bg.jpg') center/cover; padding: 100px 5%; display: flex; justify-content: center; }
.form-overlay { width: 100%; max-width: 550px; text-align: center; color: white; }

input, textarea { 
    width: 100%; padding: 18px; background: rgba(255, 255, 255, 0.1); 
    border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 15px; 
    color: #ffffff; margin-bottom: 20px; outline: none; 
}
input::placeholder, textarea::placeholder { color: #ffffff !important; opacity: 1; }

.send-btn { 
    background: #ffffff;      /* Button is white by default */
    color: #06122e;           /* Text is now your brand Deep Blue */
    padding: 15px 80px; 
    border-radius: 30px; 
    cursor: pointer; 
    border: none; 
    font-weight: 700;         /* Made the text slightly bolder for readability */
    text-transform: uppercase; /* Makes it look like a professional CTA */
    letter-spacing: 1px;
    transition: all 0.3s ease; 
}

.send-btn:hover { 
    background: var(--gold);  /* Turns yellow/gold on hover */
    color: #06122e;           /* Keeps the text deep blue for contrast */
    transform: scale(1.05);   /* Subtle "pop" effect */

}

.site-footer { background-color: transparent; color: white; padding: 60px 0 20px; display: flex; flex-direction: column; align-items: center; }
.footer-logo { width: 80px; margin-bottom: 40px; }
.footer-main-content { display: flex; width: 90%; max-width: 1200px; justify-content: space-between; margin-bottom: 50px; }
.footer-nav { list-style: none; }
.footer-nav li a { color: white; opacity: 0.7; text-decoration: none; font-size: 0.9rem; }
.social-icons { display: flex; gap: 20px; font-size: 1.5rem; margin-top: 15px; }
.footer-contact-link {
    color: #ffffff; /* Keeps the text white */
    text-decoration: none; /* Removes the underline */
    transition: color 0.3s ease;
}

.footer-contact-link:hover {
    color: var(--gold); /* Changes to your brand gold when hovered */
    text-decoration: underline; /* Shows it's a link only when the mouse is over it */
}

/* ==========================================================
   FAQ SECTION (DESIGN MATCH)
   ========================================================== */
.centered-stack {
    padding: 80px 0;
    text-align: center;
}

.faq-badge {
    display: inline-block;
    background: #1a2e4e;
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    border: 2px solid var(--border-coral);
    font-weight: 500;
    margin-bottom: 30px;
}

.faq-list {
    max-width: 650px;
    margin: 0 auto;
}

.faq-item {
    background: #0d1f3d; /* Darker navy for the solid box look */
    border: 1px solid rgba(224, 158, 135, 0.4); /* Subtle coral border */
    border-radius: 50px; /* Fully rounded pill shape */
    margin-bottom: 15px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.faq-question {
    padding: 18px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    color: white;
    font-size: 0.95rem;
}

.faq-question i {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.6);
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.05);
}

.faq-answer p {
    padding: 12px 30px 25px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    text-align: left;
    line-height: 1.6;
}

/* Expansion State */
.faq-item.active {
    border-color: var(--gold);
    border-radius: 25px; /* Becomes slightly less rounded when open to fit text better */
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
    color: var(--gold);
}

.faq-item.active .faq-answer {
    max-height: 300px; /* Adjust based on answer length */
}

/* ==========================================================
   MINIMAL MOBILE FOOTER RESIZE (Size Only)
   ========================================================== */
@media (max-width: 768px) {
    /* 1. Shrink the overall footer vertical space */
    .site-footer {
        padding: 30px 0 15px !important;
    }

    /* 2. Shrink the Logo */
    .footer-logo {
        width: 50px !important;
        margin-bottom: 20px !important;
    }

    /* 3. Shrink "Navigation", "Contact Us", etc. */
    .footer-section h3 {
        font-size: 0.85rem !important; 
        margin-bottom: 10px !important;
    }

    /* 4. Shrink the Gmail and Nav Links */
    .footer-contact-link, 
    .footer-nav li a {
        font-size: 0.8rem !important;
    }

    /* 5. Tighten the spacing between sections */
    .footer-main-content {
        margin-bottom: 25px !important;
    }

    /* 6. Shrink Social Icons */
    .social-icons {
        font-size: 1.2rem !important;
        gap: 15px !important;
    }
    @media (max-width: 768px) {
    
    /* This targets the H3 specifically inside the footer to override Section 6 */
    .site-footer .footer-section h3, 
    .site-footer .grid-item h3,
    .footer-main-content h3 {
        font-size: 0.8rem !important; 
        margin-bottom: 8px !important;
        line-height: 1.2 !important;
    }

    /* Shrink the links underneath "Navigation" */
    .footer-nav li a {
        font-size: 0.75rem !important;
    }

    /* Shrink the long Gmail address */
    .footer-contact-link {
        font-size: 0.75rem !important;
        word-break: break-all;
    }

    /* Reduce the massive padding at the top/bottom of the footer */
    .site-footer {
        padding: 20px 0 10px !important;
    }
}


/* ==========================================================
   10. DOCUMENTARY PAGE SPECIFIC
   ========================================================== */
.doc-header { padding: 120px 5% 40px; max-width: 1200px; margin: 0 auto; }
.doc-header h1 { font-size: 2.5rem; color: var(--navy); margin-bottom: 20px; }
.doc-header p { font-size: 0.95rem; line-height: 1.6; }
.doc-main-container {
    max-width: 1000px; /* Narrower for better readability */
    margin: 0 auto 100px;
    padding: 0 5%;
}

.section-title {
    font-family: 'MyBrandFont';
    src: url('fonts/Rocky.otf');
    font-size: 3rem;
    color: var(--gold);
    text-align: center;
    margin: 80px 0 40px;
}

.doc-card, .doc-card-white {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 40px;
    margin-bottom: 50px;
    transition: transform 0.3s ease;
}

.doc-card h2 {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 10px;
}

.watch-link {
    display: inline-block;
    color: var(--terracotta);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 25px;
    border-bottom: 2px solid transparent;
    transition: 0.3s;
}

.watch-link:hover {
    border-color: var(--terracotta);
}

.doc-media-box {
    width: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.doc-media-box img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.doc-card:hover .doc-media-box img {
    transform: scale(1.05); /* Subtle zoom on hover */
}

.doc-desc {
    margin-top: 25px;
    font-size: 1rem;
    line-height: 1.8;
    opacity: 0.9;
}
/* ==========================================================
   11. CONTRIBUTORS PAGE (NEW)
   ========================================================== */
.team-section {
    padding: 80px 0;
    background-color: #b5c0d0; /* Grayish blue background for this section */
    color: #1a2e4e;
    overflow: hidden;
}

.team-scroll-container {
    display: flex;
    gap: 30px;
    overflow-x: auto; /* Enables horizontal scroll */
    padding: 20px 5% 50px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin; 
    scrollbar-color: var(--terracotta) transparent;
    -webkit-overflow-scrolling: touch;
}

/* Hide scrollbar for Chrome/Safari but allow functionality */
.team-scroll-container::-webkit-scrollbar {
    height: 6px;
}
.team-scroll-container::-webkit-scrollbar-thumb {
    background: var(--terracotta);
    border-radius: 10px;
}

.team-card {
    flex: 0 0 300px; /* Fixed width so they stay in one row */
    background-color: #1a2e4e; /* Darker navy for the cards */
    border: 2px solid var(--border-coral);
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
    color: #ffffff;
    scroll-snap-align: center;
    transition: transform 0.3s ease;
}

.team-image-box {
    background: #ffffff;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    overflow: hidden;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-image-box img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Good for sketch-style illustrations */
    padding: 10px;
}

.team-card h3 {
    font-size: 1.4rem;
    margin-bottom: 5px;
    letter-spacing: 1px;
    color: #ffffff;
}

.team-card p {
    font-size: 0.9rem;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .team-card {
        flex: 0 0 80%; /* Cards take up more space on mobile */
    }
}

.swimming-fish {
    position: absolute;
    width: 40px; /* Adjust size */
    height: auto;
    transition: transform 0.2s ease-out;
    pointer-events: none;
    filter: drop-shadow(0px 4px 4px rgba(0,0,0,0.2));
}