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

body {
    font-family: 'Open Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: #0a0e1a;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

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

.logo {
    font-size: 1.3rem;
    font-weight: bold;
    color: #ffffff;
    white-space: nowrap;
}

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

.nav-links a {
    text-decoration: none;
    color: rgba(255,255,255,0.8);
    font-weight: 500;
    transition: color 0.3s ease;
    cursor: pointer;
}

.nav-links a:hover,
.nav-links a.active {
    color: #ffffff;
    border-bottom: 2px solid #22c55e;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #ffffff;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: rgba(10, 14, 26, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
    z-index: 999;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-nav.active {
    display: block;
}

.mobile-nav ul {
    list-style: none;
    padding: 1rem 0;
    margin: 0;
}

.mobile-nav li {
    text-align: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-nav a {
    text-decoration: none;
    color: rgba(255,255,255,0.8);
    font-weight: 500;
    font-size: 1.1rem;
}

.mobile-nav a:hover,
.mobile-nav a.active {
    color: #ffffff;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 500px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

/* Banner-style hero for specific pages */
.hero.hero-banner {
    height: 50vh;
    min-height: 400px;
}

/* Fix for mobile devices - disable fixed attachment on mobile */
@media (max-width: 768px) {
    .hero {
        background-attachment: scroll;
        height: 70vh;
        min-height: 400px;
    }
    
    .hero.hero-banner {
        height: 40vh;
        min-height: 300px;
    }
}

/* About page hero with arrow */
.hero.hero-about {
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)), 
                url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.hero.hero-about::after {
    content: '↓';
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.6);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.hero.hero-research {
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)), 
                url('./images/research.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.hero.hero-team {
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)), 
                url('./images/team.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.hero.hero-events {
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)), 
                url('./images/events.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.hero.hero-partnerships {
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)), 
                url('./images/partnerships.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.hero h1 {
    font-size: 5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    font-family: 'Times New Roman', Times, serif;
    color: #ffffff;
}

.hero.hero-banner h1 {
    font-size: 3.5rem;
}

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

/* Page Sections */
.page-section {
    min-height: calc(100vh - 160px);
    padding: 120px 0 80px;
    background: #0a0e1a;
}

.page-section#about {
    padding: 80px 0 80px;
}

.page-section.no-hero {
    padding: 120px 0 80px;
}

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

.section-header h2 {
    font-size: 3rem;
    font-weight: 300;
    color: #ffffff;
    margin-bottom: 1rem;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
    margin-bottom: 4rem;
}

.content-block h3 {
    font-size: 2rem;
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.content-block p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.8);
}

/* Research Grid */
.research-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-top: 3rem;
}

.research-card {
    background: rgba(255,255,255,0.05);
    padding: 2rem;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}

.research-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border-color: rgba(34, 197, 94, 0.4);
}

.research-card h4 {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 1rem;
    text-align: center;
}

.research-card p {
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
    text-align: center;
    margin-bottom: 2rem;
}

.research-content {
    min-height: 300px;
    background: rgba(255,255,255,0.03);
    border: 2px dashed rgba(255,255,255,0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.5);
    font-style: italic;
}

/* Team Grid */
.team-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 3rem;
}

.team-row {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.team-row.founders {
    justify-content: space-evenly;
}

.team-row.executives {
    justify-content: center;
}

.team-member {
    text-align: center;
    background: rgba(255,255,255,0.05);
    padding: 2rem;
    border-radius: 12px;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}

.team-member:hover {
    transform: translateY(-5px);
    border-color: rgba(34, 197, 94, 0.4);
}

.team-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(255,255,255,0.6);
    border: 2px solid rgba(255,255,255,0.2);
}

.team-member h4 {
    font-size: 1.2rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.team-member p {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

/* Team Page Join Sections - Horizontal Layout */
.join-sections {
    display: flex;
    gap: 3rem;
    margin-top: 4rem;
    align-items: flex-start;
}

.join-section {
    flex: 1;
    text-align: center;
}

.join-section h3 {
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 1rem;
}

.join-section p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 2rem;
}

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

.career-link {
    background: rgba(255,255,255,0.05);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}

.career-link:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    border-color: rgba(34, 197, 94, 0.4);
}

.career-link.rougemont {
    background: linear-gradient(135deg, #0f172a, #1e293b);
}

.career-link.rougemont:hover {
    background: linear-gradient(135deg, #1e293b, #334155);
    box-shadow: 0 10px 25px rgba(30, 41, 59, 0.3);
}

.career-link h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.career-link p {
    opacity: 0.9;
}

/* Partnership sections */
.partnership-section {
    margin: 3rem 0;
    padding: 2rem;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}

.partnership-section h3 {
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.partnership-section p {
    color: rgba(255,255,255,0.8);
    line-height: 1.7;
}

.partnership-section ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.partnership-section li {
    margin: 0.5rem 0;
    color: rgba(255,255,255,0.8);
}

/* Events Sections */
.events-section {
    margin: 4rem 0;
}

.events-section h3 {
    text-align: center;
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 3rem;
}

.event-card {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    border-color: rgba(34, 197, 94, 0.4);
}

.event-image {
    width: 200px;
    height: 140px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    margin-right: 2rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    border: 1px solid rgba(255,255,255,0.2);
}

.event-details {
    flex: 1;
}

.event-date {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.event-title {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 1rem;
    font-weight: 500;
}

.event-description {
    color: rgba(255,255,255,0.8);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.event-button {
    background: linear-gradient(135deg, #0f4c2e, #16a34a);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    font-weight: 500;
    transition: all 0.3s ease;
}

.event-button:hover {
    background: linear-gradient(135deg, #164426, #22c55e);
    transform: translateY(-2px);
}

.event-button.learn-more {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
}

.event-button.learn-more:hover {
    background: rgba(255,255,255,0.2);
}

/* Past Events Section */
.past-events-section {
    margin: 4rem 0;
}

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

.year-tab {
    padding: 0.75rem 1.5rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    color: rgba(255,255,255,0.7);
}

.year-tab.active {
    background: linear-gradient(135deg, #0f4c2e, #16a34a);
    color: white;
    border-color: rgba(34, 197, 94, 0.5);
}

.year-tab:hover {
    background: rgba(255,255,255,0.15);
    color: #ffffff;
}

.year-tab.active:hover {
    background: linear-gradient(135deg, #164426, #22c55e);
}

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

.past-event-card {
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}

.past-event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    border-color: rgba(34, 197, 94, 0.4);
}

.past-event-image {
    width: 100%;
    height: 200px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.past-event-content {
    padding: 1.5rem;
}

.past-event-date {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.past-event-title {
    font-size: 1.3rem;
    color: #ffffff;
    margin-bottom: 1rem;
    font-weight: 500;
}

.past-event-description {
    color: rgba(255,255,255,0.8);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Footer */
footer {
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 3rem 0;
    margin-top: 4rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: #ffffff;
}

.footer-section p {
    color: rgba(255,255,255,0.7);
    margin: 0.5rem 0;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

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

    .logo {
        font-size: 1.2rem;
    }

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

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

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

    .team-row {
        flex-direction: column;
        align-items: center;
    }

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

    .event-card {
        flex-direction: column;
        text-align: center;
    }

    .event-image {
        margin-right: 0;
        margin-bottom: 1rem;
        width: 100%;
        max-width: 300px;
    }

    .year-tabs {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .year-tab {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

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

    .join-sections {
        flex-direction: column;
        gap: 2rem;
    }
}