/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-bg: #000000;
    --primary-text: #ffffff;
    --accent-blue: #2a2afc;
    --accent-light-blue: #7fa0e5;
    --text-gray: #e7e7e7;
    --text-light-gray: #e4e4e4;
    --text-dark: #0e1026;
    --bg-light: #fafafa;
    --bg-gray: #d9d9d9;
    
    /* Grid System */
    --page-margin: 40px;
    --column-gap: 40px;
    --max-width: 1440px;
}

body {
    font-family: 'Inter', 'Montserrat', sans-serif;
    background-color: var(--primary-bg);
    color: var(--primary-text);
    line-height: 1.618;
    overflow-x: hidden;
}

/* ========================================
   GRID SYSTEM - 3 Column Layout
   ======================================== */

/* Page Container */
.page-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--page-margin);
}

/* Generic section inner wrapper */
.section-inner {
    max-width: var(--max-width);
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--page-margin);
    box-sizing: border-box;
}

/* 3 Column Grid */
.grid-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--column-gap);
}

/* 2 Column Grid */
.grid-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--column-gap);
}

/* Single Column */
.grid-1col {
    display: grid;
    grid-template-columns: 1fr;
}

/* Column Spans */
.col-span-1 {
    grid-column: span 1;
}

.col-span-2 {
    grid-column: span 2;
}

.col-span-3 {
    grid-column: span 3;
}

/* Full Width Section (no margins) */
.section-full-width {
    width: 100%;
    margin-left: calc(-1 * var(--page-margin));
    margin-right: calc(-1 * var(--page-margin));
    padding-left: var(--page-margin);
    padding-right: var(--page-margin);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    :root {
        --page-margin: 60px;
        --column-gap: 30px;
    }
}

@media (max-width: 768px) {
    :root {
        --page-margin: 40px;
        --column-gap: 20px;
    }
    
    /* Collapse to 1 column on mobile */
    .grid-3col,
    .grid-2col {
        grid-template-columns: 1fr;
    }
    
    .col-span-1,
    .col-span-2,
    .col-span-3 {
        grid-column: span 1;
    }
}

@media (max-width: 480px) {
    :root {
        --page-margin: 20px;
    }
}

/* Typography - Golden Ratio System */
h1 {
    font-size: 4.236rem; /* 67.77px */
    line-height: 1.2;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
}

h2 {
    font-size: 2.618rem; /* 41.89px */
    line-height: 1.3;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
}

h3 {
    font-size: 1.618rem; /* 25.89px */
    line-height: 1.4;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
}

h4 {
    font-size: 1rem; /* 16px */
    line-height: 1.5;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
}

p {
    font-size: 1rem; /* 16px */
    line-height: 1.618;
    font-family: 'Inter', sans-serif;
}

/* Header / Main Menu */
.main-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    z-index: 1000;
    transition: all 0.3s ease;
    /* Transparent by default when at top */
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* Show background when scrolled */
.main-menu.header-show-background.header-theme-dark {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.015) 50%, rgba(255, 255, 255, 0) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.main-menu.header-show-background.header-theme-dark.header-scrolled {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.035) 50%, rgba(255, 255, 255, 0.015) 100%);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
}

.main-menu.header-show-background.header-theme-light {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.32) 50%, rgba(0, 0, 0, 0.22) 100%);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.main-menu.header-show-background.header-theme-light.header-scrolled {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.45) 50%, rgba(0, 0, 0, 0.3) 100%);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px var(--page-margin);
    max-width: var(--max-width);
    margin: 0 auto;
}

.logo-container {
    flex: 0 0 auto;
    display: block;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo-container:hover {
    opacity: 0.8;
}

.logo-42i {
    width: 200px;
    height: auto;
    display: block;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    color: var(--primary-text);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-link.active {
    color: var(--accent-blue);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--accent-blue);
}

.header-theme-dark .nav-link {
    color: #ffffff;
}

.header-theme-light .nav-link {
    color: var(--accent-blue, #2a2afc);
}

.header-theme-light .nav-link.active,
.header-theme-light .nav-link:hover {
    color: var(--accent-blue, #2a2afc);
}

.btn-get-touch {
    background-color: var(--accent-blue);
    color: var(--primary-text);
    border: none;
    border-radius: 20px;
    padding: 12px 24px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 400;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    margin-left: 20px;
}

.btn-get-touch:hover {
    background-color: #3d3dff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(42, 42, 252, 0.4);
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    width: 40px;
    height: 40px;
    position: relative;
    z-index: 1001;
    align-items: center;
    justify-content: center;
}

.mobile-menu-toggle .hamburger-icon,
.mobile-menu-toggle .close-icon {
    position: absolute;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-menu-toggle .hamburger-icon {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 24px;
    height: 18px;
}

.mobile-menu-toggle .hamburger-icon span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #ffffff;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle .close-icon {
    font-size: 32px;
    line-height: 1;
    color: #ffffff;
    opacity: 0;
    transform: rotate(90deg);
}

/* Ensure hamburger icon is visible on both themes */
.header-theme-dark .mobile-menu-toggle .hamburger-icon span,
.header-theme-dark .mobile-menu-toggle .close-icon {
    background-color: #ffffff;
    color: #ffffff;
}

.header-theme-light .mobile-menu-toggle .hamburger-icon span,
.header-theme-light .mobile-menu-toggle .close-icon {
    background-color: #ffffff;
    color: #ffffff;
}

.mobile-menu-toggle.active .hamburger-icon {
    opacity: 0;
    transform: rotate(90deg);
}

.mobile-menu-toggle.active .close-icon {
    opacity: 1;
    transform: rotate(0deg);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    max-width: 80%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.9) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    z-index: 1000;
    padding: 120px 40px 40px;
    flex-direction: column;
    gap: 30px;
    transition: right 0.3s ease;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
}

.mobile-menu.active {
    right: 0;
}

.mobile-nav-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    color: var(--primary-text);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 10px;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--accent-blue);
}

.mobile-nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--accent-blue);
}

/* ========================================
   WHO WE ARE SECTION (Black Background)
   ======================================== */
.who-we-are-section {
    background: linear-gradient(to bottom, #000000 0%, #0a1628 100%);
    color: var(--primary-text);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

/* Stars Background - ensure content is above stars */
.stars-bg > *:not(canvas):not(svg) {
    position: relative;
    z-index: 10;
}

/* Hero Section */
.hero-section {
    padding-top: 170px;
    text-align: center;
    padding-bottom: 60px;
    width: 100%;
}

.hero-title {
    font-size: 60px;
    font-weight: 700;
    color: var(--primary-text);
    text-align: center;
    margin: 0;
    letter-spacing: 0.2px;
}

/* Section Labels */
.section-label {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: var(--accent-light-blue);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    text-align: center;
    margin-bottom: 20px;
}

/* Vision Section */
.vision-section {
    text-align: center;
    padding: 60px var(--page-margin);
}

.vision-title {
    font-size: 72px;
    font-weight: 700;
    color: var(--text-gray);
    text-align: center;
    max-width: 871px;
    margin: 0 auto;
}

.vision-title .regular {
    font-weight: 400;
}

/* What We Do Section */
.what-we-do-section {
    text-align: center;
    padding: 60px var(--page-margin);
    max-width: 700px;
    margin: 0 auto;
}

.what-we-do-text {
    font-size: 26px;
    color: var(--text-gray);
    line-height: 1.3;
}

.what-we-do-text strong {
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
}

/* History Section */
.history-section {
    text-align: center;
    padding: 60px var(--page-margin);
    max-width: 914px;
    margin: 0 auto;
}

.history-content {
    margin-top: 30px;
}

.history-text {
    font-size: 24px;
    color: var(--text-gray);
    font-style: italic;
    line-height: 1.5;
    margin-bottom: 20px;
}

/* Crew Carousel Section */
.crew-carousel-section {
    padding: 80px 0;
    overflow: hidden;
}

.carousel-row {
    display: flex;
    margin-bottom: 20px;
    overflow: hidden;
}

.carousel-row:last-child {
    margin-bottom: 0;
}

.carousel-track {
    display: flex;
    gap: 20px;
    animation: scroll-left 60s linear infinite;
    animation-play-state: running !important;
    will-change: transform;
}

.carousel-row-reverse .carousel-track {
    animation: scroll-right 60s linear infinite;
    animation-play-state: running !important;
    will-change: transform;
}

.carousel-image {
    height: 300px;
    width: auto;
    object-fit: cover;
    flex-shrink: 0;
    user-select: none;
    pointer-events: none;
    -webkit-user-drag: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

@keyframes scroll-left {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@keyframes scroll-right {
    from {
        transform: translateX(-50%);
    }
    to {
        transform: translateX(0);
    }
}


/* ========================================
   YOUTUBE LIGHTBOX
   ======================================== */
.youtube-lightbox {
    display: none !important;
    visibility: hidden;
    opacity: 0;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.youtube-lightbox.active {
    display: flex !important;
    visibility: visible;
    opacity: 1;
    pointer-events: all;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(4px);
}

.lightbox-content {
    position: relative;
    width: 95%;
    max-width: 1600px;
    max-height: 90vh;
    z-index: 10000;
    animation: lightboxFadeIn 0.3s ease;
    display: flex;
    flex-direction: column;
}

@keyframes lightboxFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: transparent;
    border: none;
    color: white;
    font-size: 48px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, opacity 0.2s ease;
    opacity: 0.8;
}

.lightbox-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    background: #000;
    border-radius: 8px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* YouTube player iframe directly in lightbox-content */
.lightbox-content iframe {
    width: 100%;
    height: 90vh;
    max-height: 90vh;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    background: #000;
}

/* Responsive Lightbox */
@media (max-width: 768px) {
    .lightbox-content {
        width: 98%;
        max-height: 85vh;
    }
    
    .lightbox-content iframe {
        height: 85vh;
        max-height: 85vh;
    }
    
    .lightbox-close {
        top: -40px;
        font-size: 36px;
    }
}

/* ========================================
   OUR STORY SECTION (White Background)
   ======================================== */
.our-story-section {
    background-color: #ffffff;
    color: var(--text-dark);
    padding: 80px 0;
}

.story-title-section {
    text-align: center;
    padding: 0 var(--page-margin) 60px;
    background-color: #ffffff;
}

.story-title {
    font-size: 60px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    display: inline-block;
}

/* Gallery Section - Removed (will be replaced with photos in Who We Are) */
.gallery-section {
    padding: 100px 0;
    overflow: hidden;
    position: relative;
    min-height: 800px;
    background-color: transparent;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.gallery-item {
    aspect-ratio: 1;
    background-color: var(--bg-gray);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

/* Don't Panic Section */
.dont-panic-section {
    text-align: center;
    padding: 80px var(--page-margin);
    max-width: 920px;
    margin: 0 auto;
}

.dont-panic-title {
    font-size: 120px;
    font-weight: 700;
    color: var(--primary-text);
    margin-bottom: 40px;
    letter-spacing: 0.2px;
}

.dont-panic-text {
    font-size: 24px;
    color: var(--text-light-gray);
    line-height: 1.3;
}

.dont-panic-text strong {
    font-weight: 700;
}

/* Podcasts Section */
.podcasts-section {
    padding: 0;
    color: white;
}

.podcasts-section:not(:first-of-type) {
    margin-top: 80px;
}

.podcasts-section .section-label {
    text-align: left;
    margin-bottom: 40px;
}

.section-header-with-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.btn-show-all {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--accent-light-blue);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: opacity 0.3s ease;
}

.btn-show-all:hover {
    opacity: 0.7;
}

.blog-card-link {
    display: block;
    text-decoration: none;
}

.podcasts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--column-gap);
    max-width: var(--max-width);
    margin: 0 auto;
}

/* Mobile: Single column for blogs and podcasts */
@media (max-width: 768px) {
    .podcasts-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* YouTube Video Cards */
.youtube-video-card {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.youtube-video-card:hover {
    /* No card movement - only image zooms */
}

.youtube-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 20px;
}

.youtube-thumbnail::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease;
    z-index: 1;
}

.youtube-video-card:hover .youtube-thumbnail::before {
    background: rgba(0, 0, 0, 0.2);
}

.youtube-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.youtube-video-card:hover .youtube-thumbnail img {
    transform: scale(1.15);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    opacity: 0.9;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.youtube-video-card:hover .play-button {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.play-button svg {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.podcast-card {
    display: flex;
    flex-direction: column;
}

.podcast-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

.podcast-title {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.35;
    margin-bottom: 10px;
}

.podcast-date {
    font-size: 12px;
    color: var(--text-dark);
    opacity: 0.6;
}

/* Blog Section */
.blog-section {
    padding: 100px var(--page-margin);
    background-color: #ffffff;
    color: var(--text-dark);
}

.blog-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.blog-left .blog-label,
.blog-right .blog-label {
    color: var(--accent-light-blue);
}

.blog-left {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.blog-right {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.blog-label {
    font-family: 'Inter', sans-serif;
    font-size: 14.693px;
    font-weight: 500;
    color: var(--accent-light-blue);
    text-transform: uppercase;
    letter-spacing: 1.4693px;
}

.blog-card-large {
    display: flex;
    flex-direction: column;
}

.blog-image-large {
    width: 100%;
    height: 416px;
    object-fit: cover;
    border-radius: 7.346px;
    margin-bottom: 20px;
    display: block;
    background-color: var(--bg-gray);
    background-size: cover;
    background-position: center;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.blog-card-large:hover .blog-image-large {
    transform: scale(1.15);
}

.blog-title-large {
    font-size: 29.386px;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.35;
    margin-bottom: 10px;
}

.blog-card-small {
    display: flex;
    gap: 20px;
}

.blog-image-small {
    width: 296px;
    height: 201px;
    object-fit: cover;
    border-radius: 7.346px;
    flex-shrink: 0;
    display: block;
    background-color: var(--bg-gray);
    background-size: cover;
    background-position: center;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.blog-card-small:hover .blog-image-small {
    transform: scale(1.15);
}

.blog-content-small {
    display: flex;
    flex-direction: column;
}

.blog-title-small {
    font-size: 22.039px;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.35;
    margin-bottom: 10px;
}

.blog-date {
    font-size: 14.693px;
    color: var(--text-dark);
    opacity: 0.6;
}

/* CTA Block */
.cta-block {
    background-color: var(--accent-blue);
    border-radius: 9.795px;
    padding: 40px;
    color: var(--primary-text);
}

.cta-category {
    font-family: 'Inter', sans-serif;
    font-size: 13.469px;
    font-weight: 500;
    color: var(--accent-light-blue);
    text-transform: uppercase;
    letter-spacing: 1.4693px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 20px;
}

.cta-title {
    font-size: 39.181px;
    font-weight: 700;
    color: var(--primary-text);
    line-height: 1.4;
    margin-bottom: 10px;
}

.cta-subtitle {
    font-size: 39.181px;
    font-weight: 300;
    color: var(--primary-text);
    line-height: 1.4;
    margin-bottom: 30px;
}

.cta-button {
    background-color: var(--primary-text);
    color: var(--accent-blue);
    border: none;
    border-radius: 24.488px;
    padding: 12px 24px;
    font-family: 'Inter', sans-serif;
    font-size: 18.366px;
    font-weight: 400;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Technology Section */
.technology-section {
    background-color: var(--bg-light);
    padding: 80px var(--page-margin);
    color: var(--text-dark);
}

.technology-section .section-label {
    text-align: left;
    margin-bottom: 40px;
}

.technology-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--column-gap);
    max-width: var(--max-width);
    margin: 0 auto;
}

.tech-card {
    display: flex;
    flex-direction: column;
}

.tech-image {
    width: 100%;
    height: 272px;
    object-fit: cover;
    border-radius: 7.346px;
    margin-bottom: 20px;
    display: block;
    background-color: var(--bg-gray);
    background-size: cover;
    background-position: center;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.tech-card:hover .tech-image {
    transform: scale(1.15);
}

.tech-title {
    font-size: 22.039px;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.35;
    margin-bottom: 10px;
}

.tech-date {
    font-size: 14.693px;
    color: var(--text-dark);
    opacity: 0.6;
}

/* Footer */
.footer {
    background-color: var(--primary-bg);
    padding: 70px var(--page-margin) 40px;
    margin-top: 0;
}

/* Add 80px bottom padding to last section before footer */
main > section:last-of-type {
    padding-bottom: 80px !important;
}

/* ========================================
   WORK PAGE COMMON STYLES
   ======================================== */

/* Common page background for work pages */
.work-page {
    background-color: #0e1026;
}

/* Remove footer top margin for all work pages */
.work-page .footer {
    margin-top: 0;
}

/* ========================================
   HERO SECTION - COMMON STYLES
   ======================================== */
.section-hero {
    position: relative;
    height: 900px;
    width: 100%;
    overflow: hidden;
}

.hero-bg-mask {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
}

.hero-bg-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-info {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    display: flex;
    gap: 0;
    align-items: flex-end;
}

.hero-text-box {
    background-color: rgba(42, 42, 252, 0.8);
    padding: 25px 60px;
    width: 620px;
    height: 266px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.work-page .hero-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 60px;
    line-height: 1;
    color: #ffffff;
    margin: 0;
    text-align: left;
}

.hero-credits-box {
    background-color: rgba(16, 22, 83, 0.8);
    width: 720px;
    height: 133px;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

.credit-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.credit-label {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 15px;
    line-height: 22.4px;
    color: #ffffff;
    margin: 0;
}

.credit-value {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 22.4px;
    color: #ffffff;
    margin: 0;
}

.credit-photo {
    text-align: right;
}

.credit-photo p {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 22px;
    color: #ffffff;
    margin: 0;
}

/* ========================================
   SECTION INTRO - COMMON STYLES
   ======================================== */
.section-intro {
    position: relative;
    background-color: #000000;
    padding: 85px 100px;
    text-align: center;
}

.intro-label {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 12px;
    color: #7fa0e5;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.intro-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 26px;
    line-height: normal;
    color: #ffffff;
    max-width: 800px;
    margin: 0 auto;
}

.intro-text .bold,
.bold {
    font-weight: 700;
}

/* ========================================
   WORK PAGE HERO RESPONSIVE - COMMON
   ======================================== */
@media (max-width: 1200px) {
    .hero-text-box {
        width: 500px;
    }
    
    .work-page .hero-title {
        font-size: 48px;
    }
}

@media (max-width: 992px) {
    .section-hero {
        height: auto;
        min-height: 600px;
    }
    
    .hero-info {
        left: 60px;
        transform: none;
        flex-direction: column;
        gap: 0;
        align-items: flex-start;
    }
    
    .hero-text-box {
        width: 100%;
        max-width: 600px;
        height: auto;
        padding: 30px 40px;
    }
    
    .hero-credits-box {
        width: 100%;
        max-width: 600px;
        height: auto;
        padding: 20px 40px;
    }
    
    .work-page .hero-title {
        font-size: 40px;
    }
    
    .section-intro {
        padding: 60px 40px;
    }
    
    .intro-text {
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    .hero-info {
        left: 0;
        right: 0;
        width: 100%;
        transform: none;
        flex-direction: column;
        gap: 0;
        align-items: stretch;
        padding: 0;
    }
    
    .work-page .hero-title {
        font-size: 32px;
    }
    
    .hero-text-box {
        width: 100%;
        height: auto;
        padding: 20px;
        max-width: none;
    }
    
    .hero-credits-box {
        width: 100%;
        height: auto;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 15px 20px;
        max-width: none;
    }
    
    .credit-photo {
        text-align: left;
    }
    
    .section-intro {
        padding: 50px 24px;
    }
    
    .intro-text {
        font-size: 18px;
    }
}

.footer-container {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-logo {
    flex: 0 0 auto;
}

.logo-42 {
    width: 200px;
    height: auto;
    display: block;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 20px;
}

.footer-cta-text {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-gray);
    text-align: center;
}

.footer-button {
    background-color: var(--accent-blue);
    color: var(--primary-text);
    border: none;
    border-radius: 30px;
    padding: 15px 30px;
    font-family: 'Inter', sans-serif;
    font-size: 24.712px;
    font-weight: 400;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.footer-button:hover {
    background-color: #3d3dff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(42, 42, 252, 0.4);
}

.social-icons {
    display: flex;
    gap: 24px;
    margin-top: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: block;
}

.footer-copyright {
    font-size: 20px;
    color: var(--primary-text);
    margin-top: 20px;
}

/* Responsive Design - Additional Adjustments */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 48px;
    }
    
    .vision-title {
        font-size: 56px;
    }
    
    .dont-panic-title {
        font-size: 80px;
    }
}

@media (max-width: 768px) {
    /* Navigation */
    .nav-menu {
        gap: 15px;
        align-items: center;
    }
    
    /* Hide desktop nav links on mobile */
    .nav-menu .nav-link {
        display: none;
    }
    
    /* Show hamburger menu on mobile */
    .mobile-menu-toggle {
        display: flex;
        margin-left: 10px;
    }
    
    /* Show mobile menu and overlay */
    .mobile-menu,
    .mobile-menu-overlay {
        display: flex;
    }
    
    /* Ensure header container has proper spacing */
    .header-container {
        padding: 20px var(--page-margin);
    }
    
    .logo-42i {
        width: 150px;
    }
    
    /* Typography */
    .hero-title {
        font-size: 36px;
    }
    
    .vision-title {
        font-size: 40px;
    }
    
    .dont-panic-title {
        font-size: 60px;
    }
    
    /* Grid collapses handled by main grid system */
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-container {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
    }
    
    .footer-content {
        align-items: center;
        order: 1;
    }
    
    .footer-logo {
        order: 2;
    }
    
    /* Carousel */
    .carousel-image {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }
    
    .vision-title {
        font-size: 32px;
    }
    
    .dont-panic-title {
        font-size: 40px;
    }
    
    .logo-42i {
        width: 100px;
    }
    
    .carousel-image {
        height: 150px;
    }
    
    /* Mobile menu adjustments for small screens */
    .mobile-menu {
        width: 260px;
        padding: 100px 30px 30px;
    }
    
    .mobile-nav-link {
        font-size: 24px;
    }
    
    .header-container {
        padding: 15px var(--page-margin);
    }
}

/* ========================================
   HOME PAGE STYLES
   ======================================== */

/* Home Hero Section */
.home-hero-section {
    min-height: 900px;
    background: linear-gradient(to bottom, #000000 0%, #0a1628 100%);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 200px var(--page-margin) 100px;
    position: relative;
    overflow: hidden;
}

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

/* 40% alpha black overlay on top of video */
.home-hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
    pointer-events: none;
}

/* Hero text must be on top */
.home-hero-section .section-inner {
    position: relative;
    z-index: 10;
}

.hero-content-wrapper {
    max-width: 900px;
    position: relative;
    z-index: 10;
}

.home-hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 80px;
    line-height: 1;
    color: white;
    font-weight: 400;
    margin: 0;
}

.home-hero-title .bold {
    font-weight: 700;
}

/* What We Do Main Section */
.what-we-do-main-section {
    background-color: var(--text-dark);
    padding: 80px 0;
    position: relative;
}

.gradient-animated-bg {
    position: relative;
    overflow: hidden;
    --mouse-x: 50;
    --mouse-y: 50;
}

.gradient-animated-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(18, 113, 255, 0.6) 0%, rgba(18, 113, 255, 0) 35%),
        radial-gradient(circle at 80% 30%, rgba(221, 74, 255, 0.55) 0%, rgba(221, 74, 255, 0) 35%),
        radial-gradient(circle at 30% 75%, rgba(100, 220, 255, 0.5) 0%, rgba(100, 220, 255, 0) 40%),
        radial-gradient(circle at 75% 75%, rgba(200, 50, 50, 0.45) 0%, rgba(200, 50, 50, 0) 42%),
        radial-gradient(circle at 55% 55%, rgba(180, 180, 50, 0.4) 0%, rgba(180, 180, 50, 0) 38%),
        linear-gradient(120deg, rgba(108, 0, 162, 0.45), rgba(0, 17, 82, 0.55));
    background-size: 220% 220%;
    animation: gradientDrift 18s ease-in-out infinite;
    mix-blend-mode: screen;
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
}

.gradient-animated-bg::after {
    content: "";
    position: absolute;
    inset: -10%;
    background: radial-gradient(circle at calc(var(--mouse-x, 50) * 1%) calc(var(--mouse-y, 50) * 1%), rgba(140, 100, 255, 0.35) 0%, rgba(140, 100, 255, 0) 30%);
    mix-blend-mode: screen;
    filter: blur(40px);
    opacity: 0.6;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 0;
}

.gradient-animated-bg > * {
    position: relative;
    z-index: 1;
}

@keyframes gradientDrift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 60%; }
    100% { background-position: 0% 50%; }
}

.section-header {
    padding: 0 var(--page-margin);
    margin-bottom: 80px;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 60px;
    font-weight: 800;
    line-height: 1;
    color: white;
    margin-bottom: 40px;
}

.section-description {
    font-family: 'Montserrat', sans-serif;
    font-size: 26px;
    line-height: 1.5;
    color: white;
    max-width: 870px;
}

.section-description strong {
    font-weight: 700;
}

/* Work Grid */
.work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding: 0 var(--page-margin);
    margin-bottom: 100px;
}

.work-card {
    position: relative;
    cursor: pointer;
}

.work-card:hover {
    /* No card movement - only image zooms */
}

.work-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
}

.work-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
    will-change: transform;
    transform-origin: center center;
}

.work-card:hover .work-image {
    transform: scale(1.15);
}

.work-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 100%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.work-card:hover .work-overlay {
    opacity: 1;
}

.work-title {
    position: absolute;
    bottom: 30px;
    left: 30px;
    right: 30px;
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.25;
    color: white;
    margin: 0;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.work-card:hover .work-title {
    opacity: 1;
}

/* Clients Section */
.clients-section {
    padding: 0 var(--page-margin) 80px;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 60px;
    align-items: center;
}

.client-column {
    position: relative;
    height: 100px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.client-logo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.client-logo img {
    max-width: 100%;
    max-height: 70px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.client-logo:hover img {
    opacity: 1;
}

/* Logo slide-up animation */
@keyframes slideUpOut {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(-100%);
        opacity: 0;
    }
}

@keyframes slideUpIn {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 0.8;
    }
}

.client-logo.slide-out {
    animation: slideUpOut 0.3s ease-in-out forwards;
}

.client-logo.slide-in {
    animation: slideUpIn 0.3s ease-in-out forwards;
}

/* Testimonial Section */
.testimonial-section {
    padding: 80px var(--page-margin);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.testimonial-label {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--accent-light-blue);
    margin-bottom: 40px;
}

.testimonial-content-wrapper {
    display: block;
    margin-bottom: 60px;
    position: relative;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.author-name {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-light-gray);
    margin: 0;
}

.author-title,
.author-company {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 300;
    color: var(--text-light-gray);
    line-height: 1.2;
    margin: 0;
}

.testimonial-quote {
    display: flex;
    align-items: center;
    width: 100%;
}

.testimonial-quote .quote-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    line-height: 1.3;
    color: var(--text-light-gray);
    margin: 0;
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.testimonial-slider {
    display: flex;
    gap: 7px;
    justify-content: center;
    margin-top: 10px;
}

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

.slider-dot.active {
    background-color: rgba(255, 255, 255, 1);
}

.slider-dot:hover {
    background-color: rgba(255, 255, 255, 0.6);
}

.testimonial-slide {
    display: none;
    grid-template-columns: 200px 1fr;
    gap: 60px;
    align-items: start;
    width: 100%;
}

.testimonial-slide.active {
    display: grid;
}

/* Who We Are Preview Section */
.who-we-are-preview-section {
    background-color: var(--text-dark);
    padding: 80px var(--page-margin);
    position: relative;
}

.preview-header {
    margin-bottom: 60px;
}

.preview-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 60px;
    font-weight: 800;
    line-height: 1;
    color: white;
    margin-bottom: 30px;
}

.preview-description {
    font-family: 'Montserrat', sans-serif;
    font-size: 30px;
    line-height: 1.2;
    color: white;
    margin-bottom: 40px;
    max-width: 1000px;
}

.preview-description strong {
    font-weight: 700;
}

.btn-find-out-more {
    background-color: white;
    color: var(--text-dark);
    font-family: 'Inter', sans-serif;
    font-size: 24.712px;
    font-weight: 400;
    padding: 15px 40px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-find-out-more:hover {
    background-color: var(--accent-blue);
    color: white;
    transform: translateY(-2px);
}

/* Blog Cards Grid */
.blog-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
}

/* Home Page Responsive */
@media (max-width: 1024px) {
    .home-hero-title {
        font-size: 60px;
    }
    
    .section-title,
    .preview-title {
        font-size: 48px;
    }
    
    .section-description {
        font-size: 22px;
    }
    
    .work-grid,
    .blog-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .clients-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .testimonial-quote .quote-text {
        font-size: 26px;
    }
}

@media (max-width: 768px) {
    .home-hero-section {
        min-height: 600px;
        padding: 150px var(--page-margin) 80px;
    }
    
    .home-hero-title {
        font-size: 40px;
    }
    
    .section-title,
    .preview-title {
        font-size: 36px;
    }
    
    .section-description,
    .preview-description {
        font-size: 18px;
    }
    
    .work-grid,
    .blog-cards-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .clients-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px 40px;
    }
    
    .testimonial-quote .quote-text {
        font-size: 22px;
    }
    
    .work-image-wrapper {
        aspect-ratio: 1;
    }
}

@media (max-width: 480px) {
    .home-hero-title {
        font-size: 32px;
    }
    
    .section-title,
    .preview-title {
        font-size: 28px;
    }
    
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================================
   SCROLL ANIMATIONS - Fade In
   ======================================== */

/* Hide elements that will be animated initially (before JS runs) */
/* This prevents the flash/fade-out when page loads */
body:not(.animations-ready) .work-grid > *,
body:not(.animations-ready) .podcasts-grid > *,
body:not(.animations-ready) .work-card,
body:not(.animations-ready) .work-image,
body:not(.animations-ready) .work-image-wrapper,
body:not(.animations-ready) .youtube-video-card,
body:not(.animations-ready) .podcast-image,
body:not(.animations-ready) section:not(.home-hero-section) h1,
body:not(.animations-ready) section:not(.home-hero-section) h2,
body:not(.animations-ready) section:not(.home-hero-section) h3,
body:not(.animations-ready) section:not(.home-hero-section) h4,
body:not(.animations-ready) section:not(.home-hero-section) h5,
body:not(.animations-ready) section:not(.home-hero-section) h6,
body:not(.animations-ready) section:not(.home-hero-section) p,
body:not(.animations-ready) .section-title,
body:not(.animations-ready) .section-description,
body:not(.animations-ready) .work-title,
body:not(.animations-ready) .preview-title,
body:not(.animations-ready) .preview-description {
    opacity: 0;
    visibility: hidden;
}

/* Initial state - elements are invisible */
.scroll-fade-in {
    opacity: 0;
    transition: opacity 0.8s ease-out;
    visibility: visible;
}

/* Animated state - elements fade in */
.scroll-fade-in.animate {
    opacity: 1;
}

/* Elements marked as already visible should stay visible */
.already-visible {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

/* Stagger delays for child elements */
.scroll-fade-in.animate-delay-1 {
    transition-delay: 0.1s;
}

.scroll-fade-in.animate-delay-2 {
    transition-delay: 0.2s;
}

.scroll-fade-in.animate-delay-3 {
    transition-delay: 0.3s;
}

.scroll-fade-in.animate-delay-4 {
    transition-delay: 0.4s;
}

/* Ensure images maintain aspect ratio during animation */
.scroll-fade-in img {
    will-change: opacity;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .scroll-fade-in {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

