:root {
    --bg-color: #ffffff;
    --text-color: #0a0a0a;
    --accent-color: #b8962e;
    /* Darker Gold for contrast */
    --secondary-text: #555555;
    --card-bg: #f5f5f5;
    --card-hover: #e0e0e0;
    --font-main: 'Outfit', Comforta;
    --font-serif: 'Playfair Display', serif;
    --transition-speed: 0.6s;
    --wipe-duration: 1.2s;
    --wipe-ease: cubic-bezier(0.77, 0, 0.175, 1);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    overflow: hidden;
    /* Prevent default scrolling initially */
    height: 100vh;
    width: 100vw;
    transition: background-color 1s ease;
    /* Smooth BG transition */
}

body.bg-light-blue {
    background-color: #003366;
    /* Deep Ocean Blue */
}

/* --- Home Section (The Cover) --- */
.home-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    background-color: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    transition: transform var(--wipe-duration) var(--wipe-ease);
}

.home-section.wiped {
    transform: translateY(-100%);
}

.overlay-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, rgba(100, 50, 200, 0.15), transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(212, 175, 55, 0.1), transparent 40%);
    z-index: -1;
}

.content-wrapper {
    text-align: center;
    position: relative;
    z-index: 2;
}

.subtitle {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent-color);
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeIn Up 1s ease forwards 0.5s;
}

.title {
    font-family: var(--font-serif);
    font-size: 5rem;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.8s;
}

.role {
    font-size: 1.2rem;
    color: var(--secondary-text);
    opacity: 0;
    animation: fadeInUp 1s ease forwards 1.1s;
}

.scroll-indicator {
    position: absolute;
    bottom: -150px;
    /* Adjust based on layout */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0;
    animation: fadeIn 1s ease forwards 1.5s;
}

.scroll-indicator span {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--secondary-text);
}

.scroll-indicator .line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--secondary-text), transparent);
}

/* --- Bio Section --- */
.bio-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 8;
    /* Under Home (10), Over Achievements (5) */
    background-color: var(--bg-color);
    /* White initially */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 1s ease, transform 1s ease;
    transition-delay: 0.3s;
}

/* Reveal Bio when Home is wiped */
body.reveal-bio .bio-section {
    opacity: 1;
    transform: scale(1);
}

/* Hide Bio when moving to Achievements */
body.reveal-achievements .bio-section {
    opacity: 0;
    transform: translateY(-50px);
    pointer-events: none;
}

.bio-container {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1000px;
}

.bio-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.image-placeholder {
    width: 300px;
    height: 400px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 1.2rem;
    border-radius: 8px;
}

.bio-content {
    flex: 1.5;
}

.bio-content h2 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.bio-content h3 {
    font-family: var(--font-serif);
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.bio-content p {
    color: var(--secondary-text);
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.bio-stats {
    display: flex;
    gap: 3rem;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat .number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
}

.stat .label {
    font-size: 0.9rem;
    color: var(--secondary-text);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Responsive Bio */
@media (max-width: 768px) {
    .bio-container {
        flex-direction: column;
        text-align: center;
    }

    .bio-stats {
        justify-content: center;
    }
}

.bio-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: float 3s ease-in-out infinite;
    opacity: 0.7;
}

.bio-scroll-indicator span {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--secondary-text);
}

.arrow-down {
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid var(--accent-color);
}

@keyframes float {

    0% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-10px);
    }

    100% {
        transform: translateX(-50%) translateY(0);
    }
}

/* --- Ocean Wave Transition Removed --- */





/* --- Achievements Section (The Content) --- */
.achievements-section {
    position: fixed;
    /* Fixed to stay underneath, or absolute */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    background-color: #fafafa;
    /* Slightly off-white for contrast */
    overflow-y: auto;
    /* Allow scrolling within this section */
    padding: 4rem 2rem;
    opacity: 0;
    /* Hidden initially */
    transform: scale(0.95);
    transition: opacity 1s ease, transform 1s ease;
    transition-delay: 0s;
}

/* When Achievements are revealed */
body.reveal-achievements .achievements-section {
    opacity: 1;
    transform: scale(1);
}

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

.achievements-header {
    margin-bottom: 4rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 2rem;
    text-align: center;
}

.achievements-header h2 {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    margin: 0 auto;
}

.achievements-header p {
    color: var(--secondary-text);
    font-size: 1.2rem;
    max-width: 500px;
}

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

.achievement-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    transition: transform 0.3s ease, background-color 0.3s ease;
    cursor: default;
}

.achievement-card:hover {
    transform: translateY(-5px);
    background-color: var(--card-hover);
    border-color: rgba(212, 175, 55, 0.3);
}

.achievement-card .year {
    font-size: 0.9rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.achievement-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.achievement-card p {
    color: var(--secondary-text);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tags span {
    font-size: 0.75rem;
    padding: 0.3rem 0.8rem;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    color: #555;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .title {
        font-size: 3rem;
    }

    .achievements-header h2 {
        font-size: 2.5rem;
    }
}

/* --- Video Editor Modal --- */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    background-color: #fff;
    /* Solid background for the wipe */
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    /* Start off-screen right */
    transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
    /* Matching the main wipe ease */
    pointer-events: all;
    /* Always capture events if visible, but it's offscreen */
}

.video-modal.active {
    transform: translateX(0);
    /* Slide in to cover */
}

.close-modal {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 3rem;
    cursor: pointer;
    z-index: 101;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--accent-color);
}

.modal-content {
    display: flex;
    width: 100%;
    /* Full width for the wipe feel */
    height: 100%;
    /* Full height */
    max-width: none;
    /* Remove max-width restriction */
    background-color: transparent;
    /* Background is handled by the modal container */
    border: none;
    border-radius: 0;
    overflow: hidden;
    transform: none;
    /* Remove scale animation */
}

.video-modal.active .modal-content {
    transform: none;
}

.video-container {
    flex: 2;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
    /* For absolute positioning of buttons */
    overflow: hidden;
    /* Hide slides outside */
}

.carousel-track-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.carousel-track {
    display: flex;
    padding: 0;
    margin: 0;
    list-style: none;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    /* Center content in slide */
    align-items: center;
    justify-content: center;
}

/* Ensure video placeholder takes up appropriate space within slide */
.carousel-slide .video-placeholder {
    width: 80%;
    height: 60%;
}

.video-placeholder {
    color: var(--secondary-text);
    font-size: 1.5rem;
    border: 2px dashed var(--secondary-text);
    /* Keep original dashed style */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background-color: #1a1a1a;
    /* Darker bg for video consistency */
}

.video-frame {
    width: 80%;
    max-width: 800px;
    aspect-ratio: 16 / 9;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

/* Navigation Buttons */
.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 1rem;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s ease;
    border-radius: 50%;
    /* Circular buttons */
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-button:hover {
    background: rgba(212, 175, 55, 0.8);
    /* Accent color on hover */
}

.prev-button {
    left: 20px;
}

.next-button {
    right: 20px;
}

.commentary-container {
    flex: 1;
    padding: 3rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.commentary-container h2 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.commentary-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 2rem;
}

.specs-list {
    list-style: none;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 2rem;
}

.specs-list li {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: var(--secondary-text);
}

.specs-list li strong {
    color: var(--text-color);
    margin-right: 0.5rem;
}

/* Responsive Modal */
@media (max-width: 900px) {
    .modal-content {
        flex-direction: column;
        height: 90vh;
        overflow-y: auto;
    }

    .video-container {
        flex: none;
        height: 40%;
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    .commentary-container {
        flex: none;
        padding: 2rem;
    }
}