:root {
    /* Color Palette */
    --black: #050505;
    --white: #FFFFFF;
    --gray-dark: #333333;
    --gray-light: #F4F4F4;
    --gray-subtle: #EBEBEB;
    
    /* Typography */
    --font-heading: 'Playfair Display', serif; /* Given the luxury brief, a modern serif or very bold sans is good, but they specified sans-serif 700. I'll use Playfair for logo elegance, but Inter for the headings to strictly follow "modern sans-serif 700". */
    --font-sans: 'Inter', sans-serif;
    
    /* Spacing */
    --max-width: 1200px;
    --section-pad: 8rem 0;
    
    /* Effects */
    --shadow-soft: 0 15px 35px rgba(0,0,0,0.05);
    --transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

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

html {
    scroll-behavior: auto; /* GSAP smooth scroll usually prefers auto or handles it, but we can set smooth */
    font-size: 16px;
    background-color: var(--black);
}

body {
    font-family: var(--font-sans);
    font-weight: 400;
    color: var(--black);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-sans);
    font-weight: 700;
    line-height: 1.1;
    color: var(--black);
    letter-spacing: -1px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: var(--section-pad);
    background-color: var(--white);
    position: relative;
    z-index: 2;
}

.bg-gray {
    background-color: var(--gray-light);
}

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

/* Typography Utilities */
.section-heading {
    font-size: 3.5rem;
    margin-bottom: 4rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--black);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--gray-dark);
    transform: scale(1.03) translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--black);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: padding 0.4s ease, background-color 0.4s ease, box-shadow 0.4s ease;
    background-color: var(--white);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 12px;
    color: var(--black);
    transition: color 0.4s ease;
}

.brand-logo {
    height: 60px;
    width: auto;
    min-width: 60px;
    object-fit: contain;
    display: block;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 1px;
    white-space: nowrap;
    line-height: 1;
    color: var(--black);
}

.logo-light {
    font-weight: 400;
}

.navbar.scrolled .logo-container, 
.navbar.scrolled .nav-link {
    /* Kept for backwards compatibility if scrolled class is still toggled */
    color: var(--black);
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--black);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 1px;
    background-color: #1b7cbb;
    transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.navbar .btn-outline {
    border-color: var(--black);
    color: var(--black);
}

.navbar .btn-outline:hover {
    background-color: var(--black);
    color: var(--white);
}

.navbar.scrolled .btn-outline {
    border-color: var(--black);
    color: var(--black);
}

.navbar.scrolled .btn-outline:hover {
    background-color: var(--black);
    color: var(--white);
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: var(--black);
}

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

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform-origin: center center;
    /* GSAP will animate scale */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 4rem;
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
    color: var(--white);
}

.hero-title {
    font-size: clamp(3rem, 7vw, 6rem);
    line-height: 1.05;
    margin-bottom: 2rem;
    opacity: 0; /* for GSAP */
    color: var(--white);
}

.hero-desc {
    font-size: 1.25rem;
    max-width: 500px;
    margin-bottom: 3rem;
    opacity: 0;
    color: #E0E0E0;
}

.hero-btn {
    opacity: 0;
    background-color: var(--white);
    color: var(--black);
}

.hero-btn:hover {
    background-color: var(--gray-light);
    color: var(--black);
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

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

.about-text p {
    font-size: 1.2rem;
    color: var(--gray-dark);
    margin-bottom: 1.5rem;
}

.about-image-wrapper {
    width: 100%;
    height: 600px;
    overflow: hidden;
}

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

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.service-card {
    background-color: var(--white);
    padding: 4rem 3rem;
    border: 1px solid var(--gray-subtle);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: var(--shadow-soft);
}

.card-icon {
    font-size: 3rem;
    font-weight: 700;
    color: var(--gray-subtle);
    margin-bottom: 2rem;
    line-height: 1;
}

.service-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--gray-dark);
}

/* Full Width Parallax */
.full-parallax {
    position: relative;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.parallax-wrapper {
    position: absolute;
    top: -20%;
    left: 0;
    width: 100%;
    height: 140%;
    z-index: 1;
}

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

.parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.parallax-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding: 0 2rem;
}

.parallax-content h2 {
    color: var(--white);
    font-size: 4rem;
    margin-bottom: 1rem;
}

.parallax-content p {
    font-size: 1.5rem;
}

/* Statistics Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    text-align: center;
}

.stat-number {
    font-size: 5rem;
    font-weight: 700;
    color: var(--black);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.2rem;
    color: var(--gray-dark);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Our Clients (Marquee) */
.clients-section {
    padding: 6rem 0;
    background-color: var(--white);
    overflow: hidden;
}

.marquee-container {
    width: 100vw;
    max-width: 100%;
    position: relative;
    padding: 2rem 0;
    margin-left: calc(-50vw + 50%);
}

.marquee-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    animation: scrollMarquee 40s linear infinite;
    padding-left: 2rem;
}

.marquee-track:hover {
    animation-play-state: paused;
}

@keyframes scrollMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-100% / 3)); }
}

.client-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 2rem;
    min-width: 280px;
    height: 220px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.client-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transform: translateY(-5px);
}

.card-img-wrapper {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.card-img-wrapper img {
    max-width: 150px;
    max-height: 80px;
    object-fit: contain;
}

.client-card p {
    font-size: 1rem;
    font-weight: 600;
    color: var(--black);
    margin: 0;
    text-align: center;
}

/* Custom Client Stories Carousel */
.custom-carousel-container {
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    height: 650px; /* Increased height to support 9:16 portrait video on desktop */
    padding: 2rem 0;
    overflow: hidden;
    margin-bottom: 2rem;
}

.custom-carousel-track {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    width: 100%;
    height: 100%;
}

.video-slide {
    width: 15%; /* Narrow inactive slide */
    max-width: 160px;
    height: 100%;
    position: relative;
    overflow: hidden;
    background-color: var(--black);
    opacity: 0.5;
    transition: width 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.6s ease, filter 0.6s ease;
    border-radius: 12px;
    cursor: pointer;
    flex-shrink: 0;
    filter: brightness(0.7);
}

/* The exact center slide is always the 3rd one */
.video-slide:nth-child(3) {
    width: auto;
    aspect-ratio: 9 / 16; /* Force vertical video format */
    max-width: 80%; /* Ensure it fits on smaller screens */
    opacity: 1;
    filter: brightness(1);
    cursor: default;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

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

.video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
}

.overlay-text h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--white);
    white-space: nowrap;
    transition: transform 0.4s ease;
}

.overlay-text p {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    color: var(--white);
}

/* Inactive slide text vertical */
.video-slide:not(:nth-child(3)) .overlay-text {
    width: 100%;
    display: flex;
    justify-content: center;
    padding-bottom: 2rem;
}

.video-slide:not(:nth-child(3)) .overlay-text h3 {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    margin: 0;
    font-size: 1.2rem;
}

.video-slide:not(:nth-child(3)) .overlay-text p {
    display: none;
}

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

.carousel-prev:hover, .carousel-next:hover {
    background: var(--black);
}

.carousel-prev {
    left: 5%;
}

.carousel-next {
    right: 5%;
}

/* Contact Section */
.contact-section {
    background-color: #EAEAEA;
    padding: 8rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
}

.contact-title h2 {
    font-size: 5rem;
    line-height: 1.1;
    font-weight: 500;
}

.minimal-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--black);
}

.minimal-form input, 
.minimal-form textarea {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--black);
    padding: 0.5rem 0;
    font-size: 1.1rem;
    font-family: var(--font-sans);
    color: var(--black);
    outline: none;
    resize: none;
    transition: border-color 0.3s ease;
}

.minimal-form input:focus, 
.minimal-form textarea:focus {
    border-bottom-color: #FF6B00;
}

.form-submit {
    margin-top: 1rem;
    display: flex;
    justify-content: flex-start;
}

.btn-orange {
    background-color: #FF6B00;
    color: var(--white);
    border: none;
    padding: 1rem 4rem;
    font-size: 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-orange:hover {
    background-color: #e65c00;
    transform: scale(1.05);
}

/* Pre-Footer Banner */
.pre-footer-banner {
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.pre-footer-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Dark Blue Footer */
.footer-dark {
    background-color: #051024;
    color: var(--white);
    padding: 6rem 0;
}

.footer-dark-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
}

.footer-title {
    font-size: 3.5rem;
    color: var(--white);
    margin: 1.5rem 0 2rem 0;
    font-weight: 500;
    line-height: 1.1;
}

.btn-outline-round {
    display: inline-block;
    border: 1px solid var(--white);
    color: var(--white);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    transition: var(--transition);
}

.btn-outline-round:hover {
    background-color: var(--white);
    color: #051024;
}

.footer-links p {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #cbd5e1;
}

.footer-link {
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #FF6B00;
}

/* Testimonials Section */
.testimonials-section {
    position: relative;
    overflow: hidden;
    padding: 6rem 0;
}

.testimonials-slider {
    width: 100%;
    overflow: hidden;
}

.testimonials-track {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 1rem 0 3rem 0;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;
}

.testimonials-track::-webkit-scrollbar {
    display: none; /* Chrome */
}

.testi-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    min-width: 350px;
    max-width: 400px;
    flex: 0 0 auto;
    scroll-snap-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    position: relative;
}

.testi-header {
    display: flex;
    position: relative;
    margin-bottom: 2rem;
}

.quote-icon {
    width: 45px;
    height: 45px;
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" fill="%230e9f8a" xmlns="http://www.w3.org/2000/svg"><path d="M14.017 21v-7.391c0-5.704 3.731-9.57 8.983-10.609l.995 2.151c-2.432.917-3.995 3.638-3.995 5.849h4v10h-9.983zm-14.017 0v-7.391c0-5.704 3.748-9.57 9-10.609l.996 2.151c-2.433.917-3.996 3.638-3.996 5.849h3.983v10h-9.983z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    position: absolute;
    top: -10px;
    left: -10px;
    z-index: 2;
}

.testi-img-wrapper {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    margin-left: 20px;
    margin-top: 10px;
    z-index: 1;
    position: relative;
    overflow: hidden;
}

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

.testi-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
    flex-grow: 1;
    margin-bottom: 2rem;
}

.testi-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.testi-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: #000;
}

.testi-info p {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
}

.testi-dots {
    width: 30px;
    height: 30px;
    background-image: radial-gradient(#666 25%, transparent 25%);
    background-size: 10px 10px;
    opacity: 0.5;
}

/* Pagination Dots */
.testi-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 1rem;
}

.testi-pagination .dot {
    width: 15px;
    height: 15px;
    background-color: #d1cfc9;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.testi-pagination .dot.active {
    width: 40px;
    border-radius: 10px;
    background-color: #4a8bff;
    position: relative;
}

.testi-pagination .dot.active::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background-color: #000;
    border-radius: 50%;
    right: 5px;
    top: 4.5px;
}

/* Hamburger Menu Base */
.hamburger {
    display: none;
    cursor: none; /* using our custom cursor */
}
.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: var(--black);
}

/* Responsive */
@media (max-width: 992px) {
    .about-grid, .services-grid, .footer-grid {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .contact-grid, .footer-dark-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .contact-title h2 {
        font-size: clamp(2.5rem, 10vw, 4rem);
        word-break: break-word;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .clients-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .logo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .video-slide {
        width: 15%;
        max-width: 60px;
    }
    .video-slide:nth-child(3) {
        width: auto;
        aspect-ratio: 9 / 16;
    }
    .hero-title {
        font-size: 3rem;
    }
    .hero-content {
        padding: 0 2rem;
    }
    
    .hamburger {
        display: block;
    }
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .nav-links {
        position: fixed;
        left: -100%;
        top: 70px; /* Below the navbar */
        gap: 0;
        flex-direction: column;
        background-color: #f7f3ee;
        width: 100%;
        height: calc(100vh - 70px);
        text-align: center;
        transition: 0.3s;
        padding-top: 2rem;
        z-index: 1000;
        box-shadow: 0 10px 10px rgba(0,0,0,0.05);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-link {
        margin: 1.5rem 0;
        font-size: 1.5rem;
    }
    
    .nav-btn {
        display: none;
    }
}

/* Mobile specific fixes (<= 768px) */
@media (max-width: 768px) {
    .hero-title {
        font-size: clamp(2.2rem, 8vw, 3rem);
    }
    .parallax-content h2 {
        font-size: clamp(2.2rem, 9vw, 3.2rem);
        line-height: 1.2;
    }
    .parallax-content p {
        font-size: 1rem;
    }
    .testi-card {
        min-width: 85vw;
        max-width: 85vw;
        padding: 2rem 1.5rem;
    }
    .testimonials-track {
        gap: 1rem;
        padding: 1rem 5vw 3rem 5vw;
    }
    .about-text h2, .section-heading {
        font-size: clamp(2rem, 8vw, 2.5rem) !important;
    }
    .contact-title h2 {
        font-size: 2.2rem;
    }
}

/* Custom Cursor */
.cursor-circle {
    display: none;
}

@media (hover: hover) and (pointer: fine) {
    body, a, button, .video-slide, input, textarea {
        cursor: none !important;
    }

    .cursor-circle {
        display: flex;
        width: 40px;
        height: 40px;
        border: 2px solid var(--black);
        border-radius: 50%;
        position: fixed;
        pointer-events: none;
        transform: translate(-50%, -50%);
        z-index: 9999;
        transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
        align-items: center;
        justify-content: center;
    }

    .cursor-circle::after {
        content: '';
        width: 6px;
        height: 6px;
        background-color: var(--black);
        border-radius: 50%;
        transition: background-color 0.3s ease;
    }

    body:hover .cursor-circle {
        opacity: 1;
    }

    /* Hover effect for interactive elements */
    a:hover ~ .cursor-circle, button:hover ~ .cursor-circle, .video-slide:hover ~ .cursor-circle {
        width: 60px;
        height: 60px;
        background-color: rgba(27, 124, 187, 0.1);
        border-color: #1b7cbb;
    }

    a:hover ~ .cursor-circle::after, button:hover ~ .cursor-circle::after, .video-slide:hover ~ .cursor-circle::after {
        background-color: #1b7cbb;
    }
}
