        :root {
            --primary-blue: #1a4b8c;
            --secondary-blue: #2a5298;
            --light-blue: #64b5f6;
            --teal: #11998e;
            --light-teal: #38ef7d;
            --orange: #ff6b35;
            --dark-orange: #f7931e;
            --white: #ffffff;
            --light-gray: #f5f7fa;
            --dark-gray: #333333;
            --shadow: 0 10px 30px rgba(0,0,0,0.1);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    overflow-x: hidden;
    background: url("https://images.unsplash.com/photo-1615549158346-a598ad0184ec?q=80&w=1726&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D") no-repeat center center fixed;
    background-size: cover;
}


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

        /* Navigation */
        .navbar {
            position: fixed;
            top: 0;
            width: 100%;
            background: rgba(26, 75, 140, 0.12);
            padding: 1rem 0;
            z-index: 1000;
            transition: all 0.3s ease;
            backdrop-filter: blur(5px);
        }

        .nav-container {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 2rem;
        }

        .logo {
            font-size: 1.8rem;
            font-weight: bold;
            color: var(--white);
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .nav-menu {
            display: flex;
            list-style: none;
            gap: 2rem;
        }

        .nav-menu a {
            color: var(--white);
            text-decoration: none;
            transition: color 0.3s ease;
            font-weight: 500;
            position: relative;
        }

        .nav-menu a::after {
            content: '';
            position: absolute;
            width: 0;
            height: 2px;
            bottom: -5px;
            left: 0;
            background-color: var(--light-blue);
            transition: width 0.3s ease;
        }

        .nav-menu a:hover::after {
            width: 100%;
        }

        .hamburger {
            display: none;
            flex-direction: column;
            cursor: pointer;
        }

        .hamburger span {
            width: 25px;
            height: 3px;
            background: var(--white);
            margin: 3px 0;
            transition: 0.3s;
        }

.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
    animation: fadeInUp 1s ease;
    position: relative;
    z-index: 2;
}


        .hero h1 {
            font-size: 3.5rem;
            margin-bottom: 1rem;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
        }

        .hero p {
            font-size: 1.3rem;
            margin-bottom: 2rem;
            text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
        }

        .cta-button {
            display: inline-block;
            padding: 1rem 2rem;
            background: linear-gradient(45deg, var(--orange), var(--dark-orange));
            color: var(--white);
            text-decoration: none;
            border-radius: 50px;
            font-weight: bold;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(0,0,0,0.2);
            border: none;
            cursor: pointer;
        }

        .cta-button:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 20px rgba(0,0,0,0.3);
        }

        /* Section Styles */
        .section {
            padding: 100px 0;
            max-width: 1200px;
            margin: 0 auto;
            padding-left: 2rem;
            padding-right: 2rem;
        }

        .section-title {
            text-align: center;
            font-size: 2.5rem;
            margin-bottom: 3rem;
            color: var(--primary-blue);
            position: relative;
        }

        .section-title::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 100px;
            height: 3px;
            background: linear-gradient(45deg, var(--orange), var(--dark-orange));
        }

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

.stat-card {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.6s ease;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
}

.stat-card.animate {
    transform: translateY(0);
    opacity: 1;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}


/* Species Section */
.species-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.species-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
}

.species-card:hover {
    transform: translateY(-10px);
}

.species-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(45deg, var(--teal), var(--light-teal));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 3rem;
    position: relative;
    overflow: hidden;
}

.species-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.species-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.species-info {
    padding: 1.5rem;
}

.species-status {
    display: inline-block;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.critical { 
    background: #ff5252; 
    color: var(--white); 
}

.endangered { 
    background: #ff9800; 
    color: var(--white); 
}

.vulnerable { 
    background: #ffc107; 
    color: #333; 
}


        /* Conservation Actions */
        .action-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 2rem;
            margin-top: 3rem;
        }

        .action-card {
            background: var(--white);
            padding: 2rem;
            border-radius: 15px;
            box-shadow: var(--shadow);
            text-align: center;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .action-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 40px rgba(0,0,0,0.15);
        }

        .action-icon {
            width: 80px;
            height: 80px;
            background: linear-gradient(45deg, var(--teal), var(--light-teal));
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 1rem;
            font-size: 2rem;
            color: var(--white);
        }

        /* Organizations Section */
        .org-list {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
            margin-top: 3rem;
        }

        .org-card {
            background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
            color: var(--white);
            padding: 2rem;
            border-radius: 15px;
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        .org-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' width='100' height='100'%3E%3Cpath fill='%23ffffff' fill-opacity='0.1' d='M0 0h100v100H0z'/%3E%3Cpath d='M0 0v100' stroke='%23ffffff' stroke-width='2' stroke-opacity='0.1' fill='none'/%3E%3Cpath d='M0 20v100' stroke='%23ffffff' stroke-width='2' stroke-opacity='0.1' fill='none'/%3E%3Cpath d='M0 40v100' stroke='%23ffffff' stroke-width='2' stroke-opacity='0.1' fill='none'/%3E%3Cpath d='M0 60v100' stroke='%23ffffff' stroke-width='2' stroke-opacity='0.1' fill='none'/%3E%3Cpath d='M0 80v100' stroke='%23ffffff' stroke-width='2' stroke-opacity='0.1' fill='none'/%3E%3Cpath d='M20 0v100' stroke='%23ffffff' stroke-width='2' stroke-opacity='0.1' fill='none'/%3E%3Cpath d='M40 0v100' stroke='%23ffffff' stroke-width='2' stroke-opacity='0.1' fill='none'/%3E%3Cpath d='M60 0v100' stroke='%23ffffff' stroke-width='2' stroke-opacity='0.1' fill='none'/%3E%3Cpath d='M80 0v100' stroke='%23ffffff' stroke-width='2' stroke-opacity='0.1' fill='none'/%3E%3C/svg%3E");
        }

        .org-logo {
            width: 60px;
            height: 60px;
            background: rgba(255,255,255,0.2);
            border-radius: 50%;
            margin: 0 auto 1rem;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            position: relative;
        }

        /* Ocean Facts Section */
.facts-container {
    background: 
        linear-gradient(rgba(0, 0, 0, 0.27), rgba(0, 0, 0, 0.107)),
        url("https://images.unsplash.com/photo-1524096613842-71a8c45f08a2?q=80&w=1660&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D") no-repeat center center;
    background-size: cover;
    color: var(--white);
    padding: 4rem 2rem;
    border-radius: 15px;
    margin-top: 4rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}


        .facts-slider {
            max-width: 800px;
            margin: 0 auto;
            position: relative;
            overflow: hidden;
            height: 200px;
        }

        .fact-slide {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            opacity: 0;
            transition: opacity 0.5s ease;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
        }

        .fact-slide.active {
            opacity: 1;
        }

        .fact-icon {
            font-size: 2.5rem;
            margin-bottom: 1rem;
        }

        .fact-text {
            font-size: 1.2rem;
            max-width: 80%;
        }

.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 1rem;
}

.action-card {
    background-size: cover;
    background-position: center;
    color: white;
    padding: 1.5rem;
    border-radius: 10px;
    position: relative;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-shadow: 3px 3px 5px rgb(0, 0, 0);
}


/* Specific background images for each card */
.action-card:nth-child(1) {
    background-image: url('https://plus.unsplash.com/premium_photo-1664283229278-20bbb335e0c1?q=80&w=1808&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
}

.action-card:nth-child(2) {
    background-image: url('https://plus.unsplash.com/premium_photo-1756988925851-1e4dc40ecafe?q=80&w=1740&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
}

.action-card:nth-child(3) {
    background-image: url('https://plus.unsplash.com/premium_photo-1681483802191-5d56c2bd4695?q=80&w=1740&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
}

.action-card:nth-child(4) {
    background-image: url('https://plus.unsplash.com/premium_photo-1679917152974-51c782bd3b56?q=80&w=654&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
}

.action-card:nth-child(5) {
    background-image: url('https://images.unsplash.com/photo-1600454551705-d6e1b013339d?q=80&w=1740&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
}

.action-card:nth-child(6) {
    background-image: url('https://plus.unsplash.com/premium_photo-1661946559786-fcfd73b340b1?q=80&w=1740&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
}
        
        /* Newsletter Section */
.newsletter {
    background: url("https://plus.unsplash.com/premium_photo-1750658128021-aade249d0cb4?q=80&w=2064&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D") no-repeat center center;
    background-size: cover;
    padding: 4rem 2rem;
    border-radius: 15px;
    text-align: center;
    color: white;
    margin-top: 4rem;
}


        .newsletter-form {
            max-width: 500px;
            margin: 2rem auto 0;
            display: flex;
            gap: 1rem;
        }

        .newsletter-input {
            flex: 1;
            padding: 1rem;
            border: none;
            border-radius: 50px;
            font-family: inherit;
        }


.org-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.org-card {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 2rem;
    border-radius: 15px;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
}

/* Individual background images for each organization card */
.org-card:nth-child(1) {
    background-image: url('https://media.licdn.com/dms/image/v2/D4E0BAQEax8faGeYD-w/company-logo_200_200/company-logo_200_200/0/1719845375764?e=2147483647&v=beta&t=CgIdseDMAAv6JpIVPc-NQVzSDibIeAO8ei-MILd1L30');
}

.org-card:nth-child(2) {
    background-image: url('https://miro.medium.com/v2/resize:fit:2400/1*y3-b0UFRW1bAJkLVkeZtyQ.jpeg');
}

.org-card:nth-child(3) {
    background-image: url('https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTAM1oxsV5sVNWzTGUK2KB5X4xgcuuveLk1Lw&s');
}

.org-card:nth-child(4) {
    background-image: url('https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTdcphuecX3S4Mk0gUbwtZkolhEC_PXUHrIlQ&s');
}

/* Optional overlay to improve text readability */
.org-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    z-index: 0;
}

.org-card > * {
    position: relative;
    z-index: 1;
}


        /* Footer */
        .footer {
            background: rgba(52, 114, 120, 0.419);
            color: var(--white);
            padding: 3rem 0 1rem;
            margin-top: 4rem;
        }

        .footer-content {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 2rem;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 2rem;
        }

        .footer-section h3 {
            margin-bottom: 1rem;
            color: #f7931e;
        }

        .footer-section a {
            color: var(--white);
            text-decoration: none;
            display: block;
            margin-bottom: 0.5rem;
            transition: color 0.3s ease;
        }

        .footer-section a:hover {
            color: #f7931e;
        }

        .social-icons {
            display: flex;
            gap: 1rem;
            margin-top: 1rem;
        }

        .social-icons a {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            background: rgba(255,255,255,0.1);
            border-radius: 50%;
            transition: all 0.3s ease;
        }

        .social-icons a:hover {
            background: rgba(0, 0, 0, 0.471);
            transform: translateY(-3px);
        }

        .footer-bottom {
            text-align: center;
            padding-top: 2rem;
            margin-top: 2rem;
            border-top: 1px solid rgba(255,255,255,0.2);
        }

        /* Animations */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .fade-in {
            opacity: 0;
            transform: translateY(30px);
            transition: all 0.6s ease;
        }

        .fade-in.animate {
            opacity: 1;
            transform: translateY(0);
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .hamburger {
                display: flex;
            }

            .nav-menu {
                position: fixed;
                left: -100%;
                top: 70px;
                flex-direction: column;
                background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
                width: 100%;
                text-align: center;
                transition: 0.3s;
                box-shadow: 0 10px 27px rgba(0,0,0,0.05);
                padding: 2rem 0;
                gap: 1.5rem;
            }

            .nav-menu.active {
                left: 0;
            }

            .hero h1 {
                font-size: 2.5rem;
            }

            .hero p {
                font-size: 1.1rem;
            }

            .section-title {
                font-size: 2rem;
            }

            .stats-grid,
            .species-grid,
            .action-grid,
            .org-list {
                grid-template-columns: 1fr;
            }

            .newsletter-form {
                flex-direction: column;
            }
        }

        @media (max-width: 480px) {
            .hero h1 {
                font-size: 2rem;
            }

            .nav-container {
                padding: 0 1rem;
            }

            .section {
                padding-left: 1rem;
                padding-right: 1rem;
            }

            .stat-number {
                font-size: 2.5rem;
            }
        }

        /* Modal Styles */
        .modal {
            display: none;
            position: fixed;
            z-index: 2000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.5);
            backdrop-filter: blur(5px);
        }

        .modal-content {
            background-color: var(--white);
            margin: 10% auto;
            padding: 2rem;
            border-radius: 15px;
            width: 90%;
            max-width: 600px;
            position: relative;
            box-shadow: 0 20px 40px rgba(0,0,0,0.2);
            max-height: 80vh;
            overflow-y: auto;
        }

        .close {
            position: absolute;
            right: 1rem;
            top: 1rem;
            font-size: 2rem;
            cursor: pointer;
            color: #999;
            transition: color 0.3s ease;
        }

        .close:hover {
            color: #333;
        }

        /* Ocean Layer Section */
        .ocean-layers {
            margin: 4rem 0;
            padding: 2rem;
            background: var(--light-gray);
            border-radius: 15px;
        }

        .layer-tabs {
            display: flex;
            justify-content: center;
            margin-bottom: 2rem;
            flex-wrap: wrap;
            gap: 1rem;
        }

        .layer-tab {
            padding: 0.8rem 1.5rem;
            background: var(--white);
            border: none;
            border-radius: 50px;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.3s ease;
            box-shadow: var(--shadow);
        }

        .layer-tab.active {
            background: var(--primary-blue);
            color: var(--white);
        }

        .layer-content {
            display: none;
            animation: fadeIn 0.5s ease;
        }

        .layer-content.active {
            display: block;
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        /* Ocean Currents Visualization */
        .currents-vis {
            width: 100%;
            height: 300px;
            background: linear-gradient(var(--primary-blue), var(--secondary-blue));
            border-radius: 10px;
            position: relative;
            overflow: hidden;
            margin: 2rem 0;
        }

        .current {
            position: absolute;
            height: 2px;
            background: linear-gradient(90deg, transparent, var(--light-blue), transparent);
            animation: flow 10s linear infinite;
        }

        @keyframes flow {
            0% { transform: translateX(-100%); }
            100% { transform: translateX(100%); }
        }

        /* Marine Ecosystem Section */
        .ecosystem-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
            margin-top: 3rem;
        }

        .ecosystem-card {
            background: var(--white);
            border-radius: 15px;
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: all 0.3s ease;
        }

        .ecosystem-card:hover {
            transform: translateY(-5px);
        }

        .ecosystem-image {
            height: 180px;
            background-size: cover;
            background-position: center;
        }

        .ecosystem-info {
            padding: 1.5rem;
        }

        /* Quiz Section */
        .quiz-container {
            background: var(--white);
            padding: 2rem;
            border-radius: 15px;
            box-shadow: var(--shadow);
            margin-top: 3rem;
        }

        .quiz-question {
            font-size: 1.2rem;
            margin-bottom: 1.5rem;
            font-weight: 600;
        }

        .quiz-options {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1rem;
            margin-bottom: 2rem;
        }

        .quiz-option {
            padding: 1rem;
            background: var(--light-gray);
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .quiz-option:hover {
            background: var(--light-blue);
            color: var(--white);
        }

        .quiz-result {
            text-align: center;
            font-weight: 600;
            margin-top: 1rem;
            display: none;
        }