:root {
    --bg-color: #0E1728;
    --accent-color: #1D2D44;
    --text-primary: #FFFFFF;
    --text-highlight: #FFBC13;
    --font-heading: 'Afacad', sans-serif;
    --font-body: 'M PLUS 1', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}



/* Header & Nav */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(13, 19, 33, 0.4);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px 0;
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.branding {
    font-weight: 700;
    letter-spacing: 0px;
    font-size: 14px;
    text-transform: uppercase;
    color: var(--text-highlight);
}

.nav ul {
    list-style: none;
    display: flex;
    gap: 40px;
}

.nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 5px;
}

.nav a:hover,
.nav a.active {
    color: var(--text-highlight);
}

/* Layout Modules */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

.section {
    padding: 100px 0;
    min-height: 80vh;
    scroll-margin-top: 80px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 96px;
    color: var(--text-highlight);
    line-height: 1;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 30px;
}

.text-left {
    text-align: left;
}

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

.text-center {
    text-align: center;
}

.section-description {
    max-width: 100%;
    margin-bottom: 60px;
    font-size: 18px;
    line-height: 1.8;
}

.centered-desc {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* visual section */

.visual {
    background-color: #1D2D44;
}

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 90vh;
    background-color: #1D2D44;
}

.hero-content {
    width: 100%;
    text-align: left;
}

.subtitle {
    color: var(--text-highlight);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 5px;
}

.section-subtitle {
    font-size: 26px;
    color: var(--text-highlight);
    margin-bottom: 15px;
    text-transform: uppercase;
    font-family: var(--font-heading);
    font-weight: 700;
}

.hero-title-group {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 20px;
    margin-bottom: 40px;
}

.hero .title-primary {
    font-family: var(--font-heading);
    font-size: 160px;
    color: var(--text-primary);
    line-height: 0.9;
    font-weight: 700;
}

.badge {
    background-color: var(--text-highlight);
    color: var(--bg-color);
    padding: 8px 24px;
    border-radius: 50px;
    font-size: 24px;
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1;
    margin-top: 20px;
}

.intro-block {
    margin-top: 0;
    max-width: 800px;
}

.intro-title {
    color: var(--text-highlight);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

.intro-text {
    font-size: 18px;
    line-height: 1.8;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.project-card {
    background: var(--text-primary);
    border: none;
    border-radius: 16px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    color: var(--bg-color);
}

.project-card h3 {
    font-size: 24px;
    color: var(--bg-color);
    margin-bottom: 15px;
}

.project-card p {
    font-size: 16px;
    margin-bottom: 20px;
    flex-grow: 1;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.tags span {
    background: #5E3A59;
    color: var(--text-primary);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
}

.btn-project {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.btn-project img {
    height: 48px;
    width: auto;
    transition: transform 0.2s ease;
}

.btn-project:hover img {
    transform: scale(1.05);
}

/* Carousels */
.carousel-container {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    margin-top: 40px;
}

.carousel-track-wrapper {
    overflow: hidden;
    width: 100%;
    border-radius: 16px;
}

.carousel-track {
    display: flex;
    list-style: none;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.carousel-slide {
    min-width: 100%;
    flex-shrink: 0;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.carousel-slide:hover img {
    transform: scale(1.02);
}

.nav-arrow {
    background: transparent;
    border: none;
    cursor: pointer;
    outline: none;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.nav-arrow img {
    width: 48px;
    height: 48px;
}

.nav-arrow:hover {
    transform: scale(1.1);
}

/* Motion Section */
.video-container {
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    background-color: #000;
    line-height: 0;
    /* Ensures no tiny gap at bottom of video */
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
}

/* Footer Section */
.footer {
    padding: 60px 0;
    background-color: #0D1321;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 32pt;
    color: var(--text-highlight);
    margin-bottom: 10px;
    line-height: 1;
}

.footer-email {
    font-size: 14pt;
    margin-bottom: 0;
}

.socials {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 0;
}

.socials img {
    width: 45px;
    height: 45px;
    transition: transform 0.3s ease;
}

.socials a:hover img {
    transform: translateY(-5px);
}

.footer-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.copyright {
    font-size: 14pt;
    opacity: 0.8;
}

@media (max-width: 992px) {
    .footer-content {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 30px;
    }

    .footer-left {
        align-items: center;
    }

    .footer-right {
        justify-content: center;
    }
}



/* Responsive */
@media (max-width: 992px) {
    .hero .title-primary {
        font-size: 110px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .collage-container {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto auto;
    }

    .main-item {
        grid-column: 1 / 3;
        grid-row: 1 / 2;
        aspect-ratio: 16/9;
    }

    .sub-item-1 {
        grid-column: 1 / 2;
        grid-row: 2 / 3;
    }

    .sub-item-2 {
        grid-column: 2 / 3;
        grid-row: 2 / 3;
    }

    .sub-item-3 {
        grid-column: 1 / 2;
        grid-row: 3 / 4;
    }

    .sub-item-4 {
        grid-column: 2 / 3;
        grid-row: 3 / 4;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 50px 0;
        min-height: auto;
    }

    .hero {
        min-height: auto;
        padding-top: 180px;
        padding-bottom: 40px;
        justify-content: flex-start;
    }

    .header-container {
        flex-direction: column;
        gap: 15px;
    }

    .nav ul {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-title-group {
        flex-direction: column;
        gap: 5px;
    }

    .hero .title-primary {
        font-size: 64px;
    }

    .section-title {
        font-size: 64px;
    }

    .badge {
        font-size: 16px;
        padding: 5px 15px;
        margin-top: 0;
    }

    .collage-container {
        display: flex;
        flex-direction: column;
    }

    .collage-container .collage-item {
        height: 250px;
    }
}

/* Swiper Slideshow */
.swiper {
    width: 100%;
    height: 680px;
    border-radius: 16px;
}

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

/* visual gallery */

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 40px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.02);
}

/* Swiper Slideshow Responsive */
@media (max-width: 1200px) {
    .swiper {
        height: 500px;
    }
}

@media (max-width: 992px) {
    .swiper {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .swiper {
        height: 280px;
    }
}

@media (max-width: 480px) {
    .swiper {
        height: 200px;
    }
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(13, 19, 33, 0.95);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.lightbox-image-container img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: var(--text-primary);
    font-size: 36px;
    font-weight: bold;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: var(--text-highlight);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(29, 45, 68, 0.8);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 24px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 50%;
    z-index: 1001;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--text-highlight);
    color: var(--bg-color);
    border-color: var(--text-highlight);
}

.lightbox-prev {
    left: -70px;
}

.lightbox-next {
    right: -70px;
}

@media (max-width: 768px) {
    .lightbox-prev {
        left: -15px;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .lightbox-next {
        right: -15px;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .lightbox-close {
        top: -35px;
        right: 0;
        font-size: 30px;
    }
}

/* Custom Swiper Arrows */
.swiper-button-prev.custom-arrow,
.swiper-button-next.custom-arrow {
    background: rgba(29, 45, 68, 0.8);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 24px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 50%;
    margin-top: -25px;
    /* Centering offset */
}

.swiper-button-prev.custom-arrow::after,
.swiper-button-next.custom-arrow::after {
    display: none !important;
    /* Hide default swiper icon (older versions) */
    content: '' !important;
}

.swiper-button-prev.custom-arrow svg,
.swiper-button-next.custom-arrow svg {
    display: none !important;
    /* Hide default swiper icon (Swiper 10+) */
}

.swiper-button-prev.custom-arrow:hover,
.swiper-button-next.custom-arrow:hover {
    background: var(--text-highlight);
    color: var(--bg-color);
    border-color: var(--text-highlight);
}

@media (max-width: 768px) {

    .swiper-button-prev.custom-arrow,
    .swiper-button-next.custom-arrow {
        width: 40px;
        height: 40px;
        font-size: 18px;
        margin-top: -20px;
    }
}

/* --- Interactive Page --- */
.interactive-container {
    padding: 60px 20px;
}

.interactive-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 60px;
}

@media (min-width: 768px) {
    .interactive-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.interactive-card {
    background-color: #eee;
    border-radius: 15px;
    padding: 20px;
    text-align: left;
    /* Changed from center to left */
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.interactive-card img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 20px;
    object-fit: cover;
    height: 200px;
    background-color: #ddd;
    /* Fallback placeholder color */
}

.interactive-card h4 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 0;
    text-transform: uppercase;
    color: #1D2D44;
    transition: color 0.3s ease;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1px;
    /* Spacing between header and text */
}

.card-logos {
    display: flex;
    gap: 10px;
    /* Space between logos */
}

.card-logos img {
    width: 35px;
    height: 35px;
    border-radius: 0;
    /* Logos might not need border radius */
    margin-bottom: 0;
    /* Reset img margin */
    object-fit: contain;
    background-color: transparent;
    /* Reset placeholder bg */
}

.interactive-card p {
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #666;
    transition: color 0.3s ease;
}

.btn-primary {
    display: inline-block;
    background-color: #FFBC13;
    color: #1D2D44;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    padding: 8px 22px;
    border-radius: 50px;
    text-decoration: none;
    border: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-primary:hover {
    background-color: #e6a800;
    transform: translateY(-2px);
}

/* Reuse hover effect from work-card if desired, or keep simple */
.interactive-card:hover {
    background-color: #2D3E50;
    transform: translateY(-5px);
}

.interactive-card:hover h4,
.interactive-card:hover p {
    color: white;
}