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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #cbd5e1 100%);
    color: #1e293b;
    overflow-x: hidden;
    position: relative;
}

body.menu-open { overflow: hidden; }

/* Animated background elements */
.background-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(59, 130, 246, 0.1), rgba(147, 51, 234, 0.1));
    animation: floatShape 20s ease-in-out infinite;
}

.floating-shape:nth-child(1) {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-shape:nth-child(2) {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 15%;
    animation-delay: -5s;
}

.floating-shape:nth-child(3) {
    width: 80px;
    height: 80px;
    top: 10%;
    right: 30%;
    animation-delay: -10s;
}

.floating-shape:nth-child(4) {
    width: 120px;
    height: 120px;
    bottom: 20%;
    left: 20%;
    animation-delay: -15s;
}

@keyframes floatShape {
    0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.3; }
    25% { transform: translateY(-20px) rotate(90deg); opacity: 0.5; }
    50% { transform: translateY(-40px) rotate(180deg); opacity: 0.7; }
    75% { transform: translateY(-20px) rotate(270deg); opacity: 0.5; }
}

/* Particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: linear-gradient(45deg, #3b82f6, #8b5cf6);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
    opacity: 0.6;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.3; }
    50% { transform: translateY(-30px) rotate(180deg); opacity: 0.8; }
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #3b82f6;
}

.logo-icon {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    background: linear-gradient(45deg, #3b82f6, #8b5cf6);
    mask: url('fundai-logo-1.svg') no-repeat center;
    mask-size: contain;
    -webkit-mask: url('fundai-logo-1.svg') no-repeat center;
    -webkit-mask-size: contain;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    animation: logoGlow 3s ease-in-out infinite alternate;
}

@keyframes logoGlow {
    from { box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3); }
    to { box-shadow: 0 6px 25px rgba(59, 130, 246, 0.5); }
}

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

.nav-links a {
    color: #475569;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    font-weight: 500;
}

.nav-links a:hover {
    color: #3b82f6;
    transform: translateY(-2px);
}

.nav-links a.active {
    color: #3b82f6;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: linear-gradient(45deg, #3b82f6, #8b5cf6);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    background: none;
    border: none;
    z-index: 1001;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: #475569;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile menu overlay */
.mobile-menu {
    display: none;
    position: fixed;
    top: 80px;
    right: 0;
    width: 280px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 20px 0 0 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    z-index: 999;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    visibility: hidden;
    pointer-events: none;
}

.mobile-menu.active {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
}

.mobile-menu .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1.5rem 0;
}

.mobile-menu .nav-links li {
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}

.mobile-menu .nav-links a:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

.mobile-menu .nav-links li:last-child {
    border-bottom: none;
}

.mobile-menu .nav-links a {
    display: block;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 500;
    color: #475569;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 0;
}

.mobile-menu .nav-links a:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    transform: none;
}

.mobile-menu .nav-links a.active {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    font-weight: 600;
}

/* Main content */
main {
    margin-top: 80px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 4rem;
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 10;
}

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, #3b82f6, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textGlow 3s ease-in-out infinite alternate;
    font-weight: 800;
    letter-spacing: -0.02em;
}

@keyframes textGlow {
    from { 
        filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.3));
        transform: scale(1);
    }
    to { 
        filter: drop-shadow(0 0 40px rgba(139, 92, 246, 0.5));
        transform: scale(1.02);
    }
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    color: #64748b;
    line-height: 1.7;
    animation: fadeInUp 1s ease-out 0.5s both;
}

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

.cta-button {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    background: linear-gradient(45deg, #3b82f6, #8b5cf6);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
    animation: fadeInUp 1s ease-out 1s both;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(59, 130, 246, 0.4);
}

/* Hero Visual - Neural Network Diagram */
.hero-visual {
    flex: 1;
    max-width: 500px;
    height: 400px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.neural-diagram {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Neural Network SVG Styles */
.neuron-circle {
    fill: url(#neuronGradient);
    animation: neuronPulse 2s ease-in-out infinite;
}

.neuron-circle:nth-child(1) { animation-delay: 0s; }
.neuron-circle:nth-child(2) { animation-delay: 0.3s; }
.neuron-circle:nth-child(3) { animation-delay: 0.6s; }
.neuron-circle:nth-child(4) { animation-delay: 0.9s; }

@keyframes neuronPulse {
    0%, 100% { fill-opacity: 0.7; transform: scale(1); }
    50% { fill-opacity: 1; transform: scale(1.1); }
}

.connection-line {
    stroke: url(#connectionGradient);
    stroke-width: 2;
    opacity: 0.6;
    animation: connectionFlow 3s ease-in-out infinite;
}

@keyframes connectionFlow {
    0% { opacity: 0.3; stroke-width: 1; }
    50% { opacity: 0.8; stroke-width: 3; }
    100% { opacity: 0.3; stroke-width: 1; }
}

/* Features Section */
.features-section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.features-header {
    text-align: center;
    margin-bottom: 4rem;
}

.features-header h2 {
    font-size: 3rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.features-header p {
    font-size: 1.2rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 5rem;
    gap: 4rem;
}

.feature-item:nth-child(even) {
    flex-direction: row-reverse;
}

.feature-content {
    flex: 1;
}

.feature-visual {
    flex: 1;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.5rem;
}

.feature-description {
    font-size: 1.2rem;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.impact-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.5rem;
    background: linear-gradient(45deg, #3b82f6, #8b5cf6);
    color: white;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Visual Diagrams */
.foundation-visual {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.architecture-visual {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(236, 72, 153, 0.1));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.innovation-visual {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.1), rgba(59, 130, 246, 0.1));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Sections for other pages */
.section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    color: #1e293b;
    font-weight: 700;
}

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

.card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.4s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    animation: slideInUp 0.8s ease-out both;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }
.card:nth-child(6) { animation-delay: 0.6s; }

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card:hover {
    transform: translateY(-8px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.15);
}

.card h3 {
    color: #3b82f6;
    margin-bottom: 1.2rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.card p {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 0.8rem;
}

.card strong {
    color: #1e293b;
}

/* Special styling for opportunities page */
.opportunities-intro {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: #64748b;
}


/* Contact page styling */
.contact-section {
    margin-bottom: 4rem;
}

.social-links {
    text-align: center;
}

.social-links p {
    margin-bottom: 2rem;
    color: #64748b;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

/* Footer */
footer {
    background: rgba(30, 41, 59, 0.95);
    text-align: center;
    padding: 2rem;
    border-top: 1px solid rgba(59, 130, 246, 0.2);
    color: #94a3b8;
}

/* Team Photo Interactive Styles */
.team-photo-container {
    display: flex;
    justify-content: center;
    margin: 3rem 0;
}

.team-photo-wrapper {
    position: relative;
    max-width: 800px;
    width: 100%;
    display: inline-block;
}

.team-photo {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.team-photo:hover {
    transform: scale(1.02);
}

.team-member-overlay {
    position: absolute;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 50%;
    /* background: rgba(59, 130, 246, 0.1); */
    opacity: 0;
}

.team-member-overlay:hover {
    opacity: 1;
    /* background: rgba(59, 130, 246, 0.2); */
    /* box-shadow: 0 0 20px rgba(59, 130, 246, 0.4); */
}

.name-tooltip {
    position: absolute;
    left: var(--tooltip-left, 0%);
    top: var(--tooltip-top, 0%);
    transform: translateX(-50%);
    background: rgba(30, 41, 59, 0.95);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}

.name-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: rgba(30, 41, 59, 0.95) transparent transparent transparent;
}

/* Leadership Section Styles */
.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin: 3rem 0;
}

.leader-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.4s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.leader-card:hover {
    transform: translateY(-8px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.15);
}

.leader-photo-placeholder {
    width: 150px;
    height: 150px;
    margin-bottom: 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(59, 130, 246, 0.2);
    transition: all 0.3s ease;
}

.leader-card:hover .leader-photo-placeholder {
    border-color: rgba(59, 130, 246, 0.5);
    transform: scale(1.05);
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

.leader-headshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.leader-info h3 {
    color: #1e293b;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.leader-title {
    color: #3b82f6;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.leader-description {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.linkedin-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0077b5;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 20px;
    border: 2px solid #0077b5;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.linkedin-link:hover {
    background: #0077b5;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 119, 181, 0.3);
}

.linkedin-link svg {
    transition: transform 0.3s ease;
}

.linkedin-link:hover svg {
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }

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

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-menu {
        display: block;
    }

    .feature-item, .feature-item:nth-child(even) {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .social-buttons {
        flex-direction: column;
        align-items: center;
    }

    .leadership-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .team-photo-wrapper {
        margin: 0 1rem;
    }

    .leader-card {
        padding: 2rem;
    }

    .leader-photo-placeholder {
        width: 120px;
        height: 120px;
    }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
