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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #FFFFFF;
    overflow-x: hidden;
}

.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* ------------------------------------------ */
/* UPDATED HEADER LAYOUT */
/* ------------------------------------------ */

.header {
    position: absolute;
    top: 30px;
    width: 100%;
    z-index: 10;
    display: block; 
}

.header-logo {
    /* Centering the Logo */
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    max-width: 360px; 
    width: 60%;
    height: auto;
}

.header-controls {
    /* Positioning Controls Top Right */
    position: absolute;
    right: 40px;
    
    /* Aligned with the top of the 'S' in Humans */
    top: 28px; 
    
    display: flex;
    align-items: center; 
    gap: 20px;
}

.button-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end; 
}

/* Audio Button Styling */
.audio-btn {
    background: transparent;
    border: 2px solid rgba(0, 59, 92, 0.2);
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    color: #003B5C;
}

.audio-btn:hover {
    background: #1B9B9E;
    border-color: #1B9B9E;
    color: #FFFFFF;
    transform: scale(1.05);
}

/* Shared Nav Button Styling */
.nav-button {
    padding: 8px 16px;
    border: 2px solid #003B5C;
    background: transparent;
    color: #1B9B9E;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
    white-space: nowrap;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.5);
    
    /* FIX 1: Font Consistency */
    font-family: inherit; /* Ensures button text matches link text exactly */
    
    /* FIX 2: Reduced Width (from 190px to 165px) */
    width: 165px; 
}

.nav-button:hover {
    background: #1B9B9E;
    color: #FFFFFF;
    border-color: #1B9B9E;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(27, 155, 158, 0.3);
}

.nav-arrow {
    color: #E63946;
    font-size: 1.1rem;
    transition: transform 0.3s ease;
    
    /* FIX 3: Thicker Arrow */
    font-weight: 700; 
}

.nav-button:hover .nav-arrow {
    transform: translateX(4px);
    color: #FFFFFF;
}

/* ------------------------------------------ */
/* MAIN CONTENT & FOOTER */
/* ------------------------------------------ */

.center-people {
    position: absolute;
    top: 58%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 400px;
    width: 40%;
    height: auto;
    z-index: 5;
    pointer-events: none;
}

#canvas-container {
    position: relative;
    width: 100%;
    height: 100%;
}

canvas {
    display: block;
}

.footer-text {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 10;
    perspective: 1000px;
    width: 80%;
    max-width: 800px;
}

.tagline-card {
    position: relative;
    height: 60px;
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

.tagline-card.flipping {
    transform: rotateX(90deg);
}

.tagline-text {
    position: absolute;
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.8rem;
    font-weight: 500;
    line-height: 1.3;
    backface-visibility: hidden;
    white-space: nowrap;
}

.tagline-primary {
    color: #003B5C;
}

.tagline-secondary {
    color: #E63946;
    font-style: italic;
}

.tagline-tertiary {
    color: #1B9B9E;
    font-style: italic;
    font-size: 1.4rem;
}

/* ------------------------------------------ */
/* SLIDE-OVER PANEL */
/* ------------------------------------------ */

.slide-panel {
    position: fixed;
    top: 170px;    
    bottom: auto; 
    height: auto;
    max-height: 70vh;
    
    right: 20px;   
    width: 100%;
    max-width: 450px;
    
    /* Glassmorphism */
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    
    z-index: 1000;
    padding: 40px 30px;
    
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.slide-panel.open {
    transform: translateX(0);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .header-logo {
        position: relative;
        left: auto;
        transform: none;
        margin: 0 auto;
        display: block;
        width: 80%;
    }
    
    .header-controls {
        position: relative;
        right: auto;
        top: 10px;
        justify-content: center;
    }

    .slide-panel {
        top: 0;
        bottom: 0;
        right: 0;
        height: 100vh;
        max-height: 100vh;
        max-width: 100%;
        border-radius: 0;
        border: none;
    }
}

#close-panel {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #003B5C;
    cursor: pointer;
    line-height: 1;
    padding: 5px;
    transition: transform 0.2s;
}

#close-panel:hover {
    transform: rotate(90deg);
    color: #E63946;
}

.panel-title {
    font-size: 1.8rem;
    color: #003B5C;
    margin-bottom: 30px;
    margin-top: 10px;
    border-bottom: 2px solid #1B9B9E;
    padding-bottom: 10px;
    display: inline-block;
}

/* Accordion Styles */
.accordion {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.accordion-item {
    border-bottom: 1px solid rgba(0, 59, 92, 0.1);
}

.accordion-header {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 15px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #003B5C;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s;
}

.accordion-header:hover {
    color: #1B9B9E;
}

.accordion-header.active {
    color: #E63946;
}

.accordion-icon {
    font-size: 1.4rem;
    font-weight: 300;
    transition: transform 0.3s;
}

.accordion-header.active .accordion-icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.accordion-text {
    padding-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #333;
}