:root {
    /* Refined Color Palette */
    --primary-color: #4f46e5;
    --secondary-color: #7c3aed;
    --accent-color: #ec4899;
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --border-color: #e5e7eb;
    
    /* Modern Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

[data-theme="dark"] {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #f472b6;
    --text-primary: #f9fafb;
    --text-secondary: #9ca3af;
    --bg-primary: #111827;
    --bg-secondary: #1f2937;
    --border-color: #374151;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    transition: background-color 0.3s ease, color 0.3s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Header & Hero */
header {
    position: relative;
    height: 45vh; /* Reduced from 90vh to 45vh */
    min-height: 350px; /* Added a minimum height */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    color: white;
}

.background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.7), rgba(55, 65, 81, 0.7));
    z-index: 1;
}

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

.hero-content h1 {
    font-size: 3.5rem; /* Reduced font size for smaller header */
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.1rem; /* Reduced font size for smaller header */
    max-width: 700px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 300;
}

.hero-cta {
    display: inline-block;
    margin-top: 2rem; /* Reduced margin */
    padding: 0.8rem 2rem; /* Adjusted padding */
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
    font-size: 1rem;
}

.hero-cta:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-xl);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2.5rem;
    background: transparent;
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, border-bottom 0.3s ease;
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .navbar.scrolled {
    background-color: rgba(17, 24, 39, 0.8);
}

.nav-logo .logo-image {
    height: 35px;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

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

.nav-link {
    display: flex; /* Make nav links flex containers */
    align-items: center; /* Vertically align icon and text */
    gap: 0.5rem; /* Space between icon and text */
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    position: relative;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.navbar:not(.scrolled) .nav-link {
    color: white;
}
.navbar:not(.scrolled) .nav-link .material-symbols-outlined {
    color: white; /* Ensure icons are white in transparent nav */
}
/* Correctly set icon and hamburger colors for transparent navbar */
.navbar:not(.scrolled) .theme-toggle,
.navbar:not(.scrolled) .nav-link-icon {
    color: white; /* Set the icon color for the button */
}

.navbar:not(.scrolled) .hamburger .bar {
    background-color: white; /* Set the bar color */
}

.nav-link:hover {
    color: var(--primary-color);
    background-color: rgba(79, 70, 229, 0.05);
}
.nav-link:hover .material-symbols-outlined {
    color: var(--primary-color); /* Change icon color on hover */
}

[data-theme="dark"] .nav-link:hover {
    background-color: rgba(99, 102, 241, 0.1);
}
.navbar:not(.scrolled) .nav-link:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}
.navbar:not(.scrolled) .nav-link:hover .material-symbols-outlined {
    color: white;
}


.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-link-icon {
    display: flex;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    color: var(--text-secondary);
}
.nav-link-icon:hover {
    background-color: rgba(0,0,0,0.05);
}
[data-theme="dark"] .nav-link-icon:hover {
    background-color: rgba(255,255,255,0.1);
}

.nav-cta {
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 0.6rem 1.25rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    font-size: 0.95rem;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Main Content */
main {
    padding: 5rem 2.5rem;
    max-width: 1280px;
    margin: 0 auto;
}

section {
    margin-bottom: 6rem;
}

section h2 {
    font-size: 2.75rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
    position: relative;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 2px;
}

/* Mission Section */
.mission-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
}
.mission-title h2 {
    text-align: left;
    font-size: 2.75rem;
}
.mission-title h2::after {
    left: 0;
    transform: translateX(0);
}
.mission-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}
.mission-text p:first-child {
    margin-bottom: 1rem;
}


/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.feature-item {
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.feature-text {
    flex-grow: 1; /* Allows feature-actions to be pushed to the bottom */
}

.feature-text h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-text p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.board-list {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0;
}
.board-list li {
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}
.board-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 600;
}

.feature-image {
    margin-top: auto;
    padding-top: 1.5rem;
}

.feature-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    display: block;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.team-member {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.team-member:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.team-member img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    object-fit: cover;
    border: 4px solid var(--bg-primary);
    box-shadow: 0 0 0 4px var(--primary-color), var(--shadow-md);
}

.team-member h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.team-member p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.team-member p a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.team-member p a .material-symbols-outlined {
    font-size: 1.2em;
    color: var(--text-secondary);
    transition: color 0.3s;
    vertical-align: middle;
}

.team-member p a .social-icon {
    width: 1.1em;
    height: 1.1em;
    fill: var(--text-secondary); /* Use fill for SVG color */
    transition: fill 0.3s;
}

.team-member p a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.team-member p a:hover .material-symbols-outlined,
.team-member p a:hover .social-icon {
    color: var(--secondary-color); /* Icon color on hover */
    fill: var(--secondary-color); /* SVG fill color on hover */
}


/* Contact Section */
.contact-section {
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 4rem;
    box-shadow: var(--shadow-lg);
    text-align: center;
    border: 1px solid var(--border-color);
}

.contact-section p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.contact-section form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 600px;
    margin: 2rem auto 0;
}

.contact-section input,
.contact-section textarea {
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    background: var(--bg-secondary);
    transition: all 0.3s ease;
}

.contact-section input:focus,
.contact-section textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.contact-section button {
    padding: 1rem 1.5rem;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.contact-section button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Footer */
footer {
    background: var(--text-primary);
    color: var(--bg-primary);
    text-align: center;
    padding: 3rem;
}

/* Mobile Nav & Theme Toggle */
.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--text-primary);
}

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    color: var(--text-secondary);
    padding: 0.5rem;
}
.theme-toggle:hover {
    background-color: rgba(0,0,0,0.05);
}
[data-theme="dark"] .theme-toggle:hover {
    background-color: rgba(255,255,255,0.1);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
.feature-item, .team-member { transition-delay: calc(0.1s * var(--i)); }

/* ADDED: Styles for White Paper action buttons */
.feature-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-top: auto; /* Pushes to the bottom of the card */
    padding-top: 1.5rem;
}

.cta-link, .media-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.cta-link {
    background-color: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-sm);
}
.cta-link:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.media-link {
    background-color: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}
.media-link:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}
/* END ADDED STYLES */

/* Responsive Design */
@media (max-width: 1024px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }
    .mission-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .mission-title h2 {
        text-align: center;
        margin-bottom: 3rem;
    }
    .mission-title h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
}


@media (max-width: 991px) {
    /* Hide desktop nav and show hamburger */
    .nav-menu {
        display: none;
        position: absolute;
        left: 0;
        top: 100%;
        width: 100%;
        flex-direction: column;
        background-color: var(--bg-primary);
        padding: 1rem;
        box-shadow: var(--shadow-lg);
        gap: 0.5rem;
    }
    .nav-menu.active {
        display: flex;
    }
    .nav-link {
        color: var(--text-primary) !important;
        width: 100%;
        padding: 1rem;
        justify-content: center;
    }
    .hamburger { 
        display: block; 
    }

    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

@media (max-width: 768px) {
    .hero-content h1 { font-size: 3rem; }
    .hero-content p { font-size: 1.1rem; }
    
    main { padding: 4rem 1.5rem; }
    section h2 { font-size: 2.25rem; }
    .contact-section { padding: 2.5rem; }
}