/* Base Variables and Reset */
:root {
    --bg-color-top: #5c557c;
    --bg-color-bottom: #2b2742;
    --text-color: #ffffff;
    --highlight-color: #f7a21b;
    --card-bg-top: #ffffff;
    --card-bg-bottom: #474747;
    --card-red: #d52033;
    --card-text-dark: #111111;
    --form-bg: #2b2b40;
    --form-input-bg: #838286;
    --form-btn-bg: #5fa5da;
    --font-main: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--bg-color-bottom);
    /* Fallback */
    overflow: hidden;
    /* Hide body scroll, use scroll-container */
}

/* Fixed Background for Parallax effect */
.fixed-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #2a1f38;
    background-image: radial-gradient(850px 950px at top left,
            rgba(100, 100, 150) 0%, rgba(225, 243, 97, 0) 50%),
        radial-gradient(850px 950px at bottom right,
            rgba(100, 100, 150) 0%, rgba(225, 243, 97, 0) 50%);
    z-index: -1;
}

/* Scroll Container */
.scroll-container {
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    /* Prevent native scrolling completely */
    position: relative;
}

/* Slide Sections */
.snap-section {
    position: absolute;
    top: 0;
    left: 0;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    padding-left: 10vw;
    /* Offset for content to leave space for the card */
    pointer-events: none;
    /* Ignore clicks on hidden sections */
    z-index: 1;
}

.snap-section.in-view {
    pointer-events: auto;
    /* Re-enable clicks for active section */
    z-index: 2;
}

/* Animations */
.animate-from-top {
    opacity: 0;
    transform: translateY(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-from-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    /* slightly delay the content after the header */
    transition-delay: 0.1s;
}

.snap-section.in-view .animate-from-top,
.snap-section.in-view .animate-from-left {
    opacity: 1;
    transform: translate(0, 0);
}

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

/* Typography now handled by Bootstrap */
.nav-link {
    cursor: pointer;
}

.nav-link:hover {
    color: var(--highlight-color);
}

.highlight {
    color: var(--highlight-color);
    font-weight: 600;
}

a.highlight {
    text-decoration: none;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

a.highlight:hover {
    text-decoration: underline;
    color: #ffb84d;
    /* slightly lighter orange for hover */
}

/* Scroll Indicators */
.scroll-indicator {
    position: absolute;
    bottom: 5vh;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    color: rgba(255, 255, 255, 0.5);
    animation: bounce 2s infinite;
}

.scroll-indicator.up-arrow {
    bottom: auto;
    top: 10vh;
    animation: bounce-up 2s infinite;
}

@keyframes bounce {

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

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

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

@keyframes bounce-up {

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

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

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

/* Production Grid now handled by Bootstrap */

.video-thumbnail {
    flex: 1;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 16/9;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.video-thumbnail:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.thumbnail-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    text-align: center;
    padding: 1rem;
}

.thumbnail-overlay h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.thumbnail-overlay p {
    font-size: 0.9rem;
    margin: 0;
}

/* Scripts Grid handled by Bootstrap */
.script-item {
    /*flex: 1;*/
    min-width: 150px;
    position: relative;
    border-radius: 4px;
    /*overflow: hidden;*/
    aspect-ratio: 16/9;
}

.script-item.clickable {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.script-item.clickable:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.script-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Blog Section now handled by Bootstrap inline/utility classes */

/* Contact Section handled by Bootstrap */
footer {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    line-height: 1.5;
    position: absolute;
    bottom: 2vh;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
}

/* Fixed Business Card */
#card-container {
    position: fixed;
    right: 15vw;
    top: 50%;
    transform: translateY(-50%);
    perspective: 1500px;
    z-index: 100;
    pointer-events: none;
    /* Let clicks pass through if needed */
    transition: right 1s cubic-bezier(0.25, 1, 0.5, 1);
}

#card-container.card-initial-hidden {
    right: -50vw;
    /* Start off-screen to the right */
}

#business-card {
    width: 295px;
    height: 460px;
    transform-style: preserve-3d;
    transform-origin: center right;
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    pointer-events: auto;
    /* Re-enable pointer events for hover tilt */
}

/* Card States */
#business-card.large {
    transform: rotateY(-15deg) scale(.95);
    right: 20vw;
    /* Adjust horizontal position slightly based on size */
}

#business-card.small {
    transform: rotateY(-20deg) scale(0.6) translateY(-50px);
}

.card-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    transform-style: preserve-3d;
    border-radius: 4px;
    /* Slightly round edges of tilt content if needed */
    background: linear-gradient(to bottom, var(--card-bg-top) 50%, var(--card-bg-bottom) 50%);
    box-shadow: -15px 15px 40px rgba(0, 0, 0, 0.4);
}

.card-top {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--card-bg-top);
}

.card-logo {
    text-align: center;
    color: var(--card-text-dark);
}

.shutter-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
}

.card-logo h2 {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin: 0;
}

.red-bar {
    height: 15px;
    background: var(--card-red);
    width: 100%;
    border-top: 3px solid white;
    border-bottom: 3px solid white;
}

.card-bottom {
    flex: 1;
    background: var(--card-bg-bottom);
    color: white;
    padding: 2.5rem 2rem;
}

.card-bottom h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

.roles {
    list-style: none;
}

.roles li {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 1px;
}

.square {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: var(--card-red);
    margin-right: 15px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .content {
        margin-left: 5vw;
        max-width: 50%;
    }

    #card-container {
        right: 5vw;
    }

    #business-card {
        width: 280px;
        height: 440px;
    }
}

@media (max-width: 768px) {
    .content {
        margin-left: 0;
        max-width: 100%;
        text-align: center;
        padding-top: 5vh;
    }

    #card-container {
        position: relative;
        top: 0;
        right: 0;
        transform: none;
        margin: 2rem auto;
        display: flex;
        justify-content: center;
    }

    #business-card.large,
    #business-card.small {
        transform: none;
        /* Flat on mobile */
    }

    .production-grid {
        flex-direction: column;
    }

    .scripts-grid {
        flex-wrap: wrap;
    }

    .script-item {
        min-width: 45%;
    }

    .contact-card {
        flex-direction: column;
    }
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

/* Video Lightbox Styles */
.video-container {
    max-width: 90%;
    max-height: 85vh;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

.video-container video {
    width: 100%;
    height: 100%;
    max-height: 85vh;
    display: block;
    outline: none;
    border-radius: 4px;
    background-color: black;
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    padding: 10px 15px;
    z-index: 1001;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* Default Desktop states for mobile nav elements */
#mobile-header,
#mobile-nav {
    display: none;
}

/* ------------------------------------- */
/* Mobile Responsiveness (< 900px)     */
/* ------------------------------------- */
@media (max-width: 900px) {
    #card-container {
        display: none !important;
    }

    /* Mobile Header */
    #mobile-header {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 70px;
        background-color: white;
}

/* iPad Air and Touch Device Scroll Fix */
@media (hover: none) and (pointer: coarse) {
    .scroll-container {
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        scroll-behavior: smooth;
    }
    
    .scroll-container::-webkit-scrollbar {
        width: 7px;
        background: rgba(0, 0, 0, 0.2);
    }
    
    .scroll-container::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.4);
        border-radius: 4px;
    }
    
    .scroll-container::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.1);
        border-radius: 4px;
    }
    
    .snap-section {
        position: relative !important;
        min-height: 100vh;
        height: auto;
        padding-top: 80px;
        padding-bottom: 40px;
        scroll-snap-align: start;
    }
    
    /* Fix for mobile header overlap */
    #mobile-header {
        z-index: 1001;
    }
}
   