/* Alternative Home Page Styles - First Frame Inspired */

.alternative-home {
    overflow: hidden;
    height: 100vh;
    background: #000;
    color: #fff;
    display: flex;
}

/* Left Sidebar */
.alt-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 300px;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    overflow-y: auto;
    z-index: 100;
    padding: 100px 30px 40px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.alt-sidebar-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.alt-sidebar-item {
    opacity: 0.4;
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
    cursor: default;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.alt-sidebar-item:last-child {
    border-bottom: none;
}

.alt-sidebar-item.highlighted {
    opacity: 1;
    transform: translateX(5px);
}

.alt-sidebar-client {
    font-size: 10px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.alt-sidebar-title {
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.4;
    margin-bottom: 8px;
    transition: color 0.4s ease-out;
}

.alt-sidebar-item.highlighted .alt-sidebar-title {
    color: #fff;
}

.alt-sidebar-label {
    font-size: 11px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Sidebar Scrollbar */
.alt-sidebar::-webkit-scrollbar {
    width: 6px;
}

.alt-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.alt-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.alt-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Grid Layout Container */
.grid-layout-container {
    position: fixed;
    top: 0;
    left: 300px;
    width: calc(100% - 300px);
    height: 100vh;
    overflow: hidden;
    background: #000;
    z-index: 1;
    padding-left: 0;
}

.grid-layout-container::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 1px;
    height: 100%;
    background: transparent;
    z-index: 10;
    pointer-events: none;
}

.grid-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.1;
}

/* Grid Layout Wrapper - Large canvas for panning */
.grid-layout-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px;
    /* Initial centering done via JS for Safari compatibility */
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    will-change: transform;
    -webkit-will-change: transform;
}

/* Overall grid darkening overlay */
.grid-layout-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.3s ease-out;
}

/* Production Categories Text */
.production-categories-text {
    position: absolute;
    top: 120px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    z-index: 3;
    padding: 0 20px;
    width: 100%;
    pointer-events: none;
}

.category-text {
    font-size: 12px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.4s ease-out, text-shadow 0.4s ease-out;
    cursor: default;
    white-space: nowrap;
}

@media (max-width: 1024px) {
    .production-categories-text {
        top: 100px;
        gap: 30px;
    }
    
    .category-text {
        font-size: 11px;
        letter-spacing: 1.5px;
    }
}

@media (max-width: 767px) {
    .production-categories-text {
        top: 90px;
        flex-direction: row;
        gap: 20px;
        padding: 0 15px;
    }
    
    .category-text {
        font-size: 10px;
        letter-spacing: 1px;
    }
}

.category-text.glow {
    color: rgba(255, 255, 255, 1);
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.8),
        0 0 20px rgba(255, 255, 255, 0.6),
        0 0 30px rgba(255, 255, 255, 0.4),
        0 0 40px rgba(255, 255, 255, 0.2);
}

/* Production Grid */
.production-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    width: max-content;
    margin: 0 auto;
    transform-origin: center center;
    position: relative;
    z-index: 2;
    min-width: 100%;
    padding-left: 0;
}

/* Production Card */
.production-card {
    position: relative;
    width: 420px;
    height: 236px;
    background: #111;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: filter 0.4s ease-out, transform 0.4s ease-out, opacity 0.4s ease-out, outline 0.4s ease-out, outline-offset 0.4s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.05);
    outline: 2px solid transparent;
    outline-offset: 0px;
    opacity: 0.75;
}

.production-card:hover {
    opacity: 1;
    filter: brightness(1.2);
    transform: scale(1.03);
    z-index: 10;
    border-color: rgba(255, 255, 255, 0.2);
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

/* Card Image Container */
.card-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.4s ease-out, opacity 0.4s ease-out;
}

.production-card:hover .card-image {
    filter: grayscale(0%);
}

/* Card Video */
.card-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    filter: grayscale(100%);
    transition: opacity 0.4s ease-out, filter 0.4s ease-out;
    pointer-events: none;
}

.production-card:hover .card-video {
    opacity: 1;
    filter: grayscale(0%);
}

.production-card:hover .card-image {
    opacity: 0;
}

/* Card GIF support */
.card-gif {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    filter: grayscale(100%);
    transition: opacity 0.4s ease-out, filter 0.4s ease-out;
    pointer-events: none;
}

.production-card:hover .card-gif {
    opacity: 1;
    filter: grayscale(0%);
}

/* Card Content */
.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
    z-index: 3;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 50%, transparent 100%);
}

.production-card:hover .card-content {
    transform: translateY(0);
}

.card-client {
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease-out 0.1s, transform 0.4s ease-out 0.1s;
    font-family: var(--font-main);
}

.production-card:hover .card-client {
    opacity: 0.8;
    transform: translateY(0);
}

.card-title {
    font-size: 22px;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 6px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease-out 0.2s, transform 0.4s ease-out 0.2s;
    font-family: var(--font-main);
}

.production-card:hover .card-title {
    opacity: 1;
    transform: translateY(0);
}

.card-label {
    font-size: 9px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease-out 0.3s, transform 0.4s ease-out 0.3s;
    font-family: var(--font-main);
}

.production-card:hover .card-label {
    opacity: 0.7;
    transform: translateY(0);
}

/* Grid Controls */
.grid-controls {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 40px;
    z-index: 100;
    background: rgba(0, 0, 0, 0.6);
    padding: 15px 30px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
}

.filters {
    display: flex;
    gap: 15px;
}

.filter-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease-out;
    font-family: var(--font-main);
}

.filter-btn:hover,
.filter-btn.active {
    background: #fff;
    color: #000;
    border-color: #fff;
}

.grid-counter {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    font-family: var(--font-main);
    opacity: 0.8;
}

/* Header adjustments for alternative page - floating style */
.alternative-home .header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: transparent;
    backdrop-filter: none;
    border: none;
    box-shadow: none;
}

/* Hide the default dropdown menu on alternative page */
.alternative-home .dropdown-menu {
    display: none;
}

.alternative-home .header-container {
    background: transparent;
    border: none;
    box-shadow: none;
}

/* Hide the tagline on alternative page for cleaner look */
.alternative-home .header-tagline {
    display: none;
}

/* Make header-left transparent */
.alternative-home .header-left {
    background: transparent;
}

/* Invert logo color for dark background */
.alternative-home .header-logo {
    filter: invert(1);
    -webkit-filter: invert(1);
}

/* ============================================
   ALTERNATIVE PAGE - GLASSMORPHIC MENU BUTTON
   ============================================ */
.alt-menu-btn {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 300;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease-out;
    font-family: 'HelveticaNowDisplay', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alt-menu-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.02);
}

.alt-menu-btn.active {
    background: #fff;
    color: #000;
    border-color: #fff;
}

.alt-menu-btn-icon {
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 16px;
}

.alt-menu-btn-icon span {
    display: block;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    transition: all 0.3s ease-out;
}

.alt-menu-btn-icon span:nth-child(1) { width: 100%; }
.alt-menu-btn-icon span:nth-child(2) { width: 70%; }
.alt-menu-btn-icon span:nth-child(3) { width: 85%; }

.alt-menu-btn:hover .alt-menu-btn-icon span {
    width: 100%;
}

.alt-menu-btn.active .alt-menu-btn-icon span:nth-child(1) {
    transform: rotate(45deg) translateY(5px);
}
.alt-menu-btn.active .alt-menu-btn-icon span:nth-child(2) {
    opacity: 0;
    width: 0;
}
.alt-menu-btn.active .alt-menu-btn-icon span:nth-child(3) {
    transform: rotate(-45deg) translateY(-5px);
}

/* ============================================
   ALTERNATIVE PAGE - SLIDE DOWN OVERLAY MENU
   ============================================ */
.alt-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 250;
    pointer-events: none;
    overflow: hidden;
}

.alt-menu-overlay-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.94);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    /* Start above the viewport */
    transform: translateY(-100%);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.alt-menu-overlay.active {
    pointer-events: auto;
}

.alt-menu-overlay.active .alt-menu-overlay-bg {
    /* Slide down to cover full screen */
    transform: translateY(0);
}

.alt-menu-overlay-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    opacity: 0;
    transition: opacity 0.4s ease-out 0.2s;
}

.alt-menu-overlay.active .alt-menu-overlay-content {
    opacity: 1;
}

/* Menu Navigation Links */
.alt-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.alt-menu-item {
    position: relative;
}

.alt-menu-link {
    display: inline-block;
    color: #fff;
    text-decoration: none;
    font-size: 32px;
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    padding: 10px 30px;
    border: 1px solid transparent;
    border-radius: 40px;
    transition: all 0.3s ease-out;
    font-family: 'HelveticaNowDisplay', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: transparent;
}

.alt-menu-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    letter-spacing: 6px;
}

/* Submenu styling */
.alt-menu-submenu {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
    opacity: 0.7;
}

.alt-menu-submenu-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    transition: all 0.3s ease-out;
    font-family: 'HelveticaNowDisplay', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.alt-menu-submenu-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

/* Staggered animation for menu items */
.alt-menu-item:nth-child(1) { transition-delay: 0.1s; }
.alt-menu-item:nth-child(2) { transition-delay: 0.15s; }
.alt-menu-item:nth-child(3) { transition-delay: 0.2s; }

.alt-menu-item {
    transform: translateY(30px);
    opacity: 0;
    transition: transform 0.5s ease-out, opacity 0.5s ease-out;
}

.alt-menu-overlay.active .alt-menu-item {
    transform: translateY(0);
    opacity: 1;
}

/* Mobile adjustments for overlay menu */
@media (max-width: 767px) {
    .alt-menu-btn {
        top: 20px;
        right: 20px;
        padding: 10px 18px;
        font-size: 11px;
    }
    
    .alt-menu-link {
        font-size: 24px;
        letter-spacing: 3px;
        padding: 8px 20px;
    }
    
    .alt-menu-link:hover {
        letter-spacing: 4px;
    }
    
    .alt-menu-submenu {
        flex-direction: column;
        gap: 10px;
    }
    
    .alt-menu-submenu-link {
        font-size: 12px;
    }
}

/* ============================================
   MOBILE ONLY - Vertical Scrolling Layout
   ============================================ */
@media (max-width: 767px) {
    .alternative-home {
        overflow-x: hidden;
        overflow-y: auto;
        height: auto;
        min-height: 100vh;
        flex-direction: column;
    }
    
    .alt-sidebar {
        position: relative;
        width: 100%;
        height: auto;
        max-height: 300px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 20px;
    }
    
    .alt-sidebar-content {
        gap: 20px;
    }
    
    .alt-sidebar-item {
        padding-bottom: 20px;
    }
    
    .grid-layout-container {
        position: relative;
        left: 0;
        width: 100%;
        height: auto;
        min-height: 100vh;
        overflow: visible;
        padding-top: 100px;
        padding-bottom: 120px;
    }
    
    .grid-layout-wrapper {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        height: auto;
        padding: 20px;
        transform: none !important;
        display: block;
    }
    
    .grid-layout-wrapper::before {
        display: none;
    }
    
    .production-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
        width: 100%;
        max-width: 100%;
    }
    
    .production-card {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        opacity: 1;
    }
    
    .card-content {
        transform: translateY(0);
        background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.8) 50%, transparent 100%);
    }
    
    .card-client,
    .card-title,
    .card-label {
        opacity: 1;
        transform: translateY(0);
    }
    
    .card-title {
        font-size: 18px;
    }
    
    .grid-controls {
        position: fixed;
        bottom: 20px;
        padding: 12px 20px;
        gap: 20px;
    }
    
    .filter-btn {
        padding: 6px 14px;
        font-size: 11px;
    }
}

/* Smooth transitions */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
