/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Font Imports */
@font-face {
    font-family: 'Oakside';
    src: url('../fonts/Oakside.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Lowvetica';
    src: url('../fonts/Lowvetica.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Lowvetica';
    src: url('../fonts/LowveticaBold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Airment';
    src: url('../fonts/airment-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Sansumi';
    src: url('../fonts/Sansumi-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Base styles */
body {
    font-family: 'Sansumi', sans-serif;
    background-color: #000;
    color: #fff;
    line-height: 1.2;
    overflow-x: hidden;
}



/* Titles */
.hero-title,
.hero-text h2,
.header-title,
.about h2,
.work h2,
.talent h2,
.contact h2 {
    font-family: 'Oakside', sans-serif;
}

/* Navigation */
.side-nav {
    position: fixed;
    right: 0;
    top: 0;
    height: 100vh;
    writing-mode: vertical-rl;
    padding: 8rem 1rem;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 100;
    display: flex;
    align-items: center;
}

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

.nav-item {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
}

.nav-item:hover {
    opacity: 1;
    text-shadow: 
        -2px 0 2px rgba(255, 0, 0, .9),  /* Red offset */
        2px 0 2px rgba(0, 255, 255, .9);  /* Cyan offset */
    transform: scale(1, 1.05);
}

/* Main content */
main {
    padding: 2rem;
    padding-right: 5rem; /* Increased padding to account for vertical nav */
    padding-top: 2rem; /* Added padding to account for fixed header */
    max-width: 1400px;
    margin: 0 auto;
}

/* Hero section */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    text-align: center;
    padding: 4rem 0;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 2rem;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.hero-text {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding-left: 1rem;
    padding-right: 1rem;
}

.hero-text h2 {
    font-size: 3.5rem;
    line-height: 0.8;
    font-weight: 700;
    text-align: right;
    letter-spacing: 0.0em;
    filter: blur(1px);
    opacity: 0.6;
    transform: scaleY(1.8);
}



/* About section */
.about {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 0;
}

.about h2 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 4rem;
    margin-top: 4rem;
    padding-top: 2rem;
}

.about-content {
    max-width: 800px;
}

.about-content h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.about-content p {
    font-size: 1.2rem;
    line-height: 1.6;
    opacity: 0.8;
}

/* Team Profiles */
.team-profiles {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 1rem;
    flex-wrap: nowrap;
}

.profile-card {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: transform 0.3s ease, background 0.3s ease;
    flex: 1;
    min-width: 0;
    cursor: pointer;
}

.profile-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
}

.profile-card.active {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
}

.profile-card:active {
    transform: translateY(-3px);
}

.profile-image {
    width: 200px;
    height: 200px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-family: 'Oakside', sans-serif;
    color: #fff;
}

.profile-card p {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.8;
    color: #ccc;
}

/* Profile bio styles */
.profile-bio {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 0.5rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.profile-bio.bio-active {
    opacity: 1;
    transform: translateY(0);
}

.profile-bio p {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.8;
    color: #ccc;
}

/* Work section */
.work {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 0;
    padding-top: 2rem;
}

.work h2 {
    font-size: 3.5rem;
    margin-bottom: 4rem;
}

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

.work-item {
    margin-bottom: 2rem;
}

.work-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.work-placeholder {
    background: rgba(255, 255, 255, 0.1);
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

.work-video {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    display: block;
    border-radius: 8px;
    overflow: hidden;
}

/* Talent section */
.talent {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 0;
}

.talent h2 {
    font-size: 3.5rem;
    margin-bottom: 4rem;
}

.talent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.talent-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.talent-item p {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.8;
}

/* Contact section */
.contact {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 0;
}

.contact h2 {
    font-size: 3.5rem;
    margin-bottom: 4rem;
}

.contact-content h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.contact-info {
    font-size: 1.2rem;
    line-height: 1.8;
}

.contact-info p {
    opacity: 0.8;
}

/* Bio container for desktop positioning */
.bio-container {
    margin-top: 1rem;
}

.bio-container p {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.8;
    color: #ccc;
    text-align: left;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.bio-container p.bio-active {
    opacity: 1;
    transform: translateY(0);
}

/* Hide desktop bios on mobile */
@media (max-width: 768px) {
    main {
        padding: 1.5rem;
        padding-right: 4rem; /* Maintain space for vertical nav */
    }

    .hero-title {
        font-size: 2.5rem;
        margin-bottom: .5rem;
    }

    .hero-text h2 {
        font-size: 2rem;
    }



    .about h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .about-content h3 {
        font-size: 1.5rem;
    }

    .about-content p {
        font-size: 1rem;
    }

    /* Team Profiles Mobile */
    .team-profiles {
        flex-direction: column;
        gap: 1rem;
        margin-top: 1.5rem;
    }

    .profile-card {
        display: flex;
        align-items: center;
        text-align: center;
        padding: 1rem;
        gap: 1rem;
    }

    .profile-image {
        width: 120px;
        height: 120px;
        margin: 0;
        flex-shrink: 0;
    }

    .profile-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .profile-card p {
        font-size: 0.8rem;
        line-height: 1.4;
    }

    /* Slightly adjust nav for mobile */
    .side-nav {
        padding: 1.5rem 0.75rem;
        top: 4rem; /* Account for fixed header height */
        height: calc(100vh - 4rem); /* Adjust height to account for header */
    }

    .nav-item {
        font-size: 0.9rem;
    }

    .work h2,
    .talent h2,
    .contact h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .work-item h3,
    .talent-item h3 {
        font-size: 1.2rem;
    }

    .contact-content h3 {
        font-size: 1.5rem;
    }

    .talent-item p,
    .contact-info {
        font-size: 1rem;
    }

    .bio-container {
        display: none;
    }
}

/* Site Header */
.site-header {
    position: fixed;
    display: flex;
    justify-content: space-between;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 200;
    padding: 1rem 2rem;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

.header-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.header-title {
    font-size: 1.5rem;
    font-family: 'Oakside', sans-serif;
    font-weight: 500;
    color: #fff;
    margin: 0;
}

/* Carousel Modal Styles */
.carousel-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.9);
}

.carousel-overlay {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.carousel-container {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.carousel-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    font-size: 2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.carousel-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.carousel-content {
    display: flex;
    align-items: center;
    position: relative;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.carousel-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.carousel-prev {
    left: 1rem;
}

.carousel-next {
    right: 1rem;
}

.carousel-image-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.carousel-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.8);
    z-index: 5;
    color: white;
}

.carousel-loading p {
    margin-top: 1rem;
    font-size: 1rem;
    opacity: 0.8;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#carouselImage {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.carousel-indicators {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: background 0.3s ease;
}

.indicator.active {
    background: white;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.7);
}

/* Mobile adjustments for carousel */
@media (max-width: 768px) {
    .carousel-overlay {
        padding: 1rem;
    }
    
    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .carousel-close {
        width: 35px;
        height: 35px;
        font-size: 1.5rem;
    }
    
    .carousel-indicators {
        bottom: 0.5rem;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
    
    .loading-spinner {
        width: 30px;
        height: 30px;
        border-width: 2px;
    }
    
    .carousel-loading p {
        font-size: 0.9rem;
    }
}
