/* ==================================================
   RESET
================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #121212;

    --surface: #1A1A1A;
    --surface-hover: #222222;

    --text: #E0E0E0;
    --text-secondary: #B0B0B0;

    --border: #444444;

    --accent-orange: #FF7A2F;
    --accent-red: #E63946;
    --accent: #FF7A2F;
    --accent-gradient:
        linear-gradient(135deg,
            #FF7A2F,
            #E63946);
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* ==================================================
   GLOBAL CONTAINER
================================================== */

.hero {
    width: min(1400px, 100%);
    margin-inline: auto;
}

/* ==================================================
   NAVBAR
================================================== */

.navbar {
    width: 100%;

    /* Stick to top of viewport while scrolling */
    position: sticky;
    top: 0;
    z-index: 100;

    /* Frosted-glass effect so content scrolling beneath is readable */
    background: rgba(18, 18, 18, .90);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    /* Subtle separator line when content scrolls behind */
    border-bottom: none;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: min(1400px, 100%);
    margin-inline: auto;

    padding:
        clamp(18px, 1.8vw, 26px) clamp(20px, 4vw, 40px);
}

.logo {
    font-size: clamp(1.6rem, 2vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.04em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(20px, 3vw, 40px);
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    opacity: .75;
    transition: .3s ease;
}

.nav-links a:hover {
    opacity: 1;
}

.nav-links a.active {
    opacity: 1;
    color: var(--accent);
}

.menu-btn {
    display: none;
    border: none;
    background: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

/* ==================================================
   HERO
================================================== */

.logo {
    text-decoration: none;
    color: var(--text);

    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -0.04em;

    display: flex;
    align-items: center;
}

.logo span {
    color: #D94B2B;
    display: inline-block;
    transform: skewX(-8deg);
}


.hero {
    padding-inline: clamp(20px, 4vw, 40px);
    padding-top: clamp(45px, calc(1vw + 40px), 60px);
    /* Reduced: strip sits visually close beneath the hero */
    padding-bottom: clamp(24px, 3vw, 36px);
}

.hero-content {

    display: grid;

    grid-template-columns:
        minmax(0, 1fr) minmax(260px, 32vw);

    align-items: center;

    gap: clamp(16px, 2vw, 32px);

    min-height: clamp(500px, 75vh, 850px);
}

.hero-text {
    max-width: none;
}

.hero-tag {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    max-width: 450px;
    font-size: clamp(.9rem, 1vw, 1rem);
    line-height: 1.7;
}

.hero-text h1 {
    font-size: clamp(3.5rem, 7vw, 7rem);
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.05em;
    word-break: normal;
    overflow-wrap: normal;
}

.hero-image {
    width: 100%;
}

.hero-image img {
    width: 100%;
    display: block;
    object-fit: cover;

    border-radius: 0;
    box-shadow: none;
    background: transparent;
}

/* ==================================================
   PROJECT STRIP (AUTO SCROLL / MARQUEE)
================================================== */

.showcase-strip {
    margin-top: clamp(24px, 3vw, 40px);
    margin-bottom: clamp(80px, 10vw, 120px);
    overflow: hidden;
    position: relative;
}

.showcase-track {
    display: flex;
    gap: 24px;
    width: max-content;

    animation: scrollProjects 25s linear infinite;
}

/* pause on hover */
.showcase-strip:hover .showcase-track {
    animation-play-state: paused;
}

.showcase-card {
    flex: 0 0 auto;

    width: 380px;
    aspect-ratio: 1.6/1;

    overflow: hidden;
    border-radius: 24px;

    background: var(--surface);
}

.showcase-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .5s ease;
}

.showcase-card:hover img {
    transform: scale(1.05);
}

/* animation */
@keyframes scrollProjects {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ==================================================
   TABLET
================================================== */

@media (max-width:900px) {

    .hero-content {
        grid-template-columns:
            minmax(0, 1fr) minmax(180px, 30vw);

        gap: 24px;
    }

    .hero-text h1 {
        font-size: clamp(3.2rem, 8vw, 5.8rem);
    }
}

/* ==================================================
   MOBILE
================================================== */

@media (max-width:768px) {

    /* ---- NAV LINKS DROPDOWN ---- */
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(5, 5, 5, 0.97);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        padding: 12px 8%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        gap: 0;
        align-items: flex-start;
        z-index: 99;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        display: block;
        width: 100%;
        padding: 14px 0;
        font-size: 1.05rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    /* ---- ANIMATED HAMBURGER ---- */
    .menu-btn {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 32px;
        height: 32px;
        border: none;
        background: none;
        cursor: pointer;
        padding: 4px;
    }

    .menu-btn .bar {
        display: block;
        width: 22px;
        height: 2px;
        background: var(--text);
        border-radius: 2px;
        transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1),
            opacity 0.25s ease,
            width 0.3s ease;
        transform-origin: center;
    }

    /* X state when open */
    .menu-btn.open .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .menu-btn.open .bar:nth-child(2) {
        opacity: 0;
        width: 0;
    }

    .menu-btn.open .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* ---- HERO: full-width top banner ---- */
    .hero {
        padding-top: 0;
        padding-bottom: 0;
        padding-inline: 20px;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: calc(100dvh - 70px);
        height: calc(100svh - 70px); /* fallback */
        box-sizing: border-box;
        gap: clamp(20px, 4vh, 36px);
        padding-top: clamp(16px, 4vh, 32px);
        padding-bottom: clamp(16px, 4vh, 32px);
        min-height: 0;
    }

    .hero-image {
        width: 100%;
        max-width: 520px;
        margin-inline: auto;
        flex: 0 1 auto;
        min-height: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-image img {
        width: auto;
        height: auto;
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        border-radius: 20px;
        display: block;
    }

    /* Text block sits below the banner */
    .hero-text {
        max-width: 100%;
        padding-left: 0;
        padding-right: 2px;
        text-align: left;
        flex: 0 0 auto;
        width: 100%;
    }

    .hero-text h1 {
        font-size: clamp(2.2rem, 7.5vw + 0.3rem, 3.4rem);
        line-height: 1.1;
        letter-spacing: -.04em;
        text-align: left;
    }

    .hero-tag {
        display: block;
        font-size: clamp(0.85rem, 3.5vw, 0.95rem);
        line-height: 1.5;
        color: var(--text-secondary);
        margin-bottom: clamp(12px, 2.5vh, 18px);
        max-width: 450px;
    }

    .hero-cta-mobile {
        display: inline-block;
        background: transparent;
        color: #ffffff;
        padding: 7px 16px;
        border-radius: 8px;
        font-size: 0.74rem;
        font-weight: 700;
        text-transform: uppercase;
        text-decoration: none;
        margin-top: clamp(8px, 2vh, 14px);
        letter-spacing: 0.8px;
        transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        border: 1px solid rgba(255, 255, 255, 0.35);
        width: fit-content;
    }

    .hero-cta-mobile:hover {
        transform: translateY(-2px);
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.75);
    }

    .hero-cta-mobile:active {
        transform: translateY(0);
    }

    .showcase-card {
        width: 300px;
    }

    .showcase-strip {
        margin-top: clamp(30px, 4vh, 60px);
    }
}

/* ==================================================
   SMALL MOBILE
================================================== */

@media (max-width:480px) {

    .logo {
        font-size: 1.35rem;
    }

    .hero {
        padding-top: 0;
        padding-bottom: 0;
        padding-inline: 16px;
    }

    .hero-image {
        max-width: 100%;
    }

    .hero-image img {
        border-radius: 16px;
    }

    .hero-text {
        padding-inline: 14px;
        text-align: left;
    }

    .hero-text h1 {
        font-size: clamp(2rem, 8.5vw + 0.2rem, 2.8rem);
        line-height: 1.1;
        letter-spacing: -.03em;
        text-align: left;
    }



    .showcase-card {
        width: 240px;
    }
}
/* ==================================================
   SHORT PHONES
================================================== */

@media (max-height:700px) {

    .hero-content {
        gap: 12px;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .hero-text h1 {
        font-size: clamp(1.8rem, 7vw, 2.2rem);
    }

    .hero-image {
        max-width: 440px;
    }

    .showcase-strip {
        margin-top: 24px;
    }
}

/* ==================================================
   TALL PHONES
================================================== */

@media (min-height:850px) {

    .hero-content {
        height: calc(100dvh - 70px);
        height: calc(100svh - 70px);
    }
}

.trust-section {
    width: min(1200px, 100%);
    /* top gap: provided by client-quote margin-bottom */
    /* bottom gap: feeds into services section below */
    margin: 0 auto clamp(80px, 10vw, 120px);
    padding: 0 20px;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.trust-card {
    background: #1A1A1A;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px 25px;
    backdrop-filter: blur(10px);
    transition: 0.3s ease;
}

.trust-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.trust-card h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.trust-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.trust-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* RESPONSIVE */
@media (max-width:900px) {
    .trust-grid {
        grid-template-columns: 1fr;
    }

    .trust-card h2 {
        font-size: 2.5rem;
    }
}

.client-quote {
    width: min(900px, 90%);
    /* top gap: provided by showcase strip margin-bottom */
    /* bottom gap: feeds into trust section below */
    margin: 0 auto clamp(60px, 8vw, 100px);

    text-align: center;

    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    line-height: 1.8;

    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: 0.2px;
}

/* subtle highlight color */
.client-quote .highlight {
    color: var(--accent);
    /* soft purple accent (modern SaaS feel) */
    font-weight: 500;
}

/* subtle decorative line (premium feel) */
.client-quote::before,
.client-quote::after {
    content: "";
    display: block;
    width: 60px;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 auto 20px auto;
}

.client-quote::after {
    margin: 20px auto 0 auto;
}

.services-section {
    width: min(1200px, 100%);
    margin: 120px auto;
    padding: 0 20px;
}

/* header */
.services-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.services-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}

.services-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    line-height: 1.6;
}

/* grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* cards */
.service-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 30px;
    transition: 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* responsive */
@media (max-width:900px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .services-header h2 {
        font-size: 2rem;
    }
}

/* ==================================================
   SERVICES SECTION (FINAL PRODUCTION FIXED)
================================================== */

/* scroll-margin-top = navbar height so scrollIntoView lands correctly.
   Navbar: logo(44px) + top-pad(~18px) + bottom-pad(~18px) ≈ 80px.
   The section's own top padding (clamp 60–100px) gives visual breathing room. */
#services {
    background: var(--bg);
}

#services,
#projects,
#testimonials,
#process,
#faq,
#contact {
    scroll-margin-top: 68px;
}

.services-split {
    width: min(1200px, 92vw);
    margin: 0 auto;

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: clamp(40px, 6vw, 100px);

    /* Top: small so content lifts close to navbar; Bottom: large for section separation */
    padding: clamp(28px, 3vw, 40px) 0 clamp(60px, 8vw, 100px);

    align-items: start;
}


/* ==================================================
   LEFT SIDE (FIXED + MODERN AESTHETIC)
================================================== */

.services-left {
    display: flex;
    flex-direction: column;

    max-width: 520px;

    /* 🔥 THIS FIXES VERTICAL POSITION ISSUE */
    justify-content: center;

    /* 🔥 adds real visual balance */
    gap: 18px;

    /* subtle upward correction to align with right stack */
    transform: translateY(-10px);
}

/* tag */
.section-tag {
    font-size: 12px;
    letter-spacing: 2.5px;
    text-transform: uppercase;

    color: var(--text-secondary);

    display: flex;
    align-items: center;
    gap: 12px;
}

/* subtle line next to tag */
.section-tag::after {
    content: "";
    width: 40px;
    height: 1px;
    background: var(--border);
}

/* ==================================================
   HEADING (MAKES A CLEAR VISUAL IMPACT CHANGE)
================================================== */

.services-left h2 {
    margin: 0;

    font-size: clamp(30px, 3.8vw, 46px);
    line-height: 1.1;
    letter-spacing: -0.03em;

    font-weight: 600;

    /* 🔥 IMPORTANT: creates stronger hierarchy */
    opacity: 0.95;
}

/* ==================================================
   PREVIEW LIST (NOW LOOKS LIKE UI NAV, NOT TEXT)
================================================== */

.services-preview {
    margin-top: 10px;

    display: flex;
    flex-direction: column;
    gap: 14px;
}

.preview-item {
    font-size: 15px;

    opacity: 0.4;

    cursor: pointer;

    transition: all 0.3s ease;

    display: flex;
    align-items: center;
    gap: 10px;

    padding: 4px 0;
}

/* dot indicator (much more modern than arrow) */
.preview-item::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);

    opacity: 0;
    transform: scale(0.5);
    transition: 0.3s ease;
}

/* active state */
.preview-item.active {
    opacity: 1;
    font-weight: 500;
}

.preview-item.active::before {
    opacity: 1;
    transform: scale(1);
    background: linear-gradient(135deg,
            var(--accent-orange),
            var(--accent-red));
}

/* hover interaction */
.preview-item:hover {
    opacity: 0.8;
    transform: translateX(6px);
}

/* ==================================================
   RIGHT SIDE
================================================== */

.services-right {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-self: start;
}

/* ==================================================
   STACK CONTAINER
================================================== */

.stack-stage {
    position: relative;
    width: 100%;
    min-height: 500px;
}

/* ==================================================
   SERVICE CARD
================================================== */

.stack-card {
    position: absolute;
    inset: 0;

    border-radius: 24px;
    overflow: hidden;

    opacity: 0;
    visibility: hidden;

    transform: translateY(20px);

    transition:
        opacity .45s ease,
        transform .45s ease,
        visibility .45s ease;
}

.stack-card.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    z-index: 10;
}

/* ==================================================
   FULL IMAGE
================================================== */

.stack-card img {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
    display: block;

    transition: transform .8s ease;
}

.stack-card:hover img {
    transform: scale(1.05);
}

/* ==================================================
   IMAGE OVERLAY
================================================== */

.stack-card::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(90deg,
            rgba(0, 0, 0, .85) 0%,
            rgba(0, 0, 0, .55) 40%,
            rgba(0, 0, 0, .10) 100%);

    z-index: 1;
}

/* ==================================================
   CONTENT
================================================== */

.card-overlay {
    position: relative;
    z-index: 2;

    height: 100%;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;

    padding: clamp(32px, 4vw, 40px);

    max-width: 600px;
}

.card-number {
    color: var(--accent-orange);

    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;

    margin-bottom: 10px;
}

.card-overlay h3 {
    margin: 0 0 12px;

    font-size: clamp(28px, 2vw, 36px);
    font-weight: 700;

    color: #fff;
}

.service-desc {
    margin-bottom: 20px;

    color: rgba(255, 255, 255, .92);

    font-size: 15px;
    line-height: 1.7;

    max-width: 600px;
}

/* ==================================================
   SERVICE POINTS
================================================== */

.service-points {
    list-style: none;
    padding: 0;
    margin: 0;

    display: flex;
    flex-direction: column;
    gap: 10px;

    max-width: 650px;
}

.service-points li {
    display: flex;
    align-items: center;
    gap: 10px;

    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

.service-points li::before {
    content: "";

    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: var(--accent-orange);

    flex-shrink: 0;
}

/* ==================================================
   BUTTON
================================================== */

.stack-btn {
    padding: 12px 18px;

    border: none;
    border-radius: 12px;

    background: var(--accent);
    color: #121212;

    font-weight: 600;
    cursor: pointer;

    width: fit-content;

    transition: .3s ease;
}

.stack-btn:hover {
    transform: translateY(-3px);
    background: var(--accent-orange);
}

/* ==================================================
   MOBILE
================================================== */

@media (max-width: 768px) {

    .stack-stage {
        min-height: 720px;
    }

    .card-overlay {
        padding: 24px;
    }

    .card-overlay h3 {
        font-size: 24px;
    }

    .service-desc {
        font-size: 14px;
    }

    .service-points {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .service-points li {
        font-size: 13px;
    }
}

/* ==================================
   PROJECTS V2
================================== */

.projects-v2 {
    background: var(--bg);
    padding: clamp(20px, 3vw, 40px) 6% clamp(40px, 6vw, 80px);
}

/* ==================================
   HEADER
================================== */

.projects-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;

    margin-bottom: 40px;
    padding-bottom: 20px;

    border-bottom: 1px solid var(--border);
}

.projects-top h2 {
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    line-height: .95;

    margin-top: 10px;
    margin-bottom: 0;
}

.project-count {
    opacity: .5;

    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ==================================
   GRID
================================== */

.masonry-grid {
    display: grid;

    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 280px 280px;

    gap: 1px;

    background: rgba(255, 255, 255, .04);

    overflow: hidden;
    border-radius: 24px;
}

/* ==================================
   PROJECT TILE
================================== */

.project-tile {
    position: relative;
    overflow: hidden;

    background: #1A1A1A;

    cursor: pointer;
}

.project-tile img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform .8s ease,
        filter .6s ease;
}

.project-tile:hover img {
    transform: scale(1.08);
    filter: brightness(1.05);
}

/* ==================================
   OVERLAY
================================== */

.tile-info {
    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    padding: 20px;

    background:
        linear-gradient(transparent,
            rgba(0, 0, 0, .95));
}

.tile-info h4 {
    margin: 0 0 6px;
    font-size: 18px;
}

.tile-info span {
    font-size: 11px;

    letter-spacing: 2px;
    text-transform: uppercase;

    opacity: .65;
}

/* ==================================
   TALL TILE
================================== */

.tall {
    grid-row: span 2;
}

/* ==================================
   FEATURED CARD
================================== */

.featured-tile {
    position: relative;

    background:
        linear-gradient(135deg,
            rgba(124, 92, 255, .22),
            rgba(124, 92, 255, .08));

    padding: 40px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    transition: .4s ease;
}

.featured-tile:hover {
    background:
        linear-gradient(135deg,
            rgba(124, 92, 255, .32),
            rgba(124, 92, 255, .14));
    transform: translateY(-2px);
}

.featured-label {
    font-size: 11px;

    letter-spacing: 2px;
    text-transform: uppercase;

    opacity: .6;

    margin-bottom: 18px;
}

.featured-tile h3 {
    font-size: clamp(1.8rem, 2vw, 2.6rem);
    line-height: 1.15;

    margin-bottom: 24px;

    max-width: 320px;
}

.featured-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.feat-tag {
    font-size: 11px;
    font-weight: 600;
    color: rgba(180, 160, 255, 0.95);
    background: rgba(124, 92, 255, 0.1);
    border: 1px solid rgba(124, 92, 255, 0.2);
    padding: 6px 14px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    transition: all 0.35s ease;
}

.featured-tile:hover .feat-tag {
    background: rgba(124, 92, 255, 0.2);
    border-color: rgba(124, 92, 255, 0.4);
    color: #fff;
    box-shadow: 0 4px 12px rgba(124, 92, 255, 0.15);
}

/* ==================================
   TABLET
================================== */

@media (max-width: 1100px) {

    .masonry-grid {
        grid-template-rows: 280px 280px;
    }

    .featured-tile {
        padding: 32px;
    }
}

/* ==================================
   MOBILE
================================== */

@media (max-width: 900px) {

    .projects-v2 {
        padding-top: 30px;
        padding-bottom: 60px;
    }

    .projects-top {
        flex-direction: column;
        align-items: flex-start;

        gap: 16px;
        margin-bottom: 30px;
    }

    .projects-top h2 {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .masonry-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;

        gap: 1px;
    }

    .tall {
        grid-row: auto;
    }

    .project-tile {
        height: 280px;
    }

    .featured-tile {
        min-height: 280px;
        padding: 30px;
    }

    .featured-tile h3 {
        max-width: 100%;
    }
}

/* ==================================
   TESTIMONIALS
================================== */

.testimonials {
    padding: clamp(20px, 3vw, 40px) 8% clamp(40px, 7vw, 80px);
    background: var(--bg);
}

.testimonials-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.testimonials-header h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin: 12px 0;
}

.testimonials-header p {
    color: rgba(255, 255, 255, .65);
    line-height: 1.8;
}

/* ==================================
   MASONRY LAYOUT
================================== */

.testimonial-grid {
    max-width: 1150px;
    margin: auto;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;

    align-items: start;
}

.testimonial-card:nth-child(1) {
    margin-top: 40px;
}

.testimonial-card:nth-child(2) {
    margin-top: 0;
}

.testimonial-card:nth-child(3) {
    margin-top: 80px;
}

/* ==================================
   CARD
================================== */

.testimonial-card {
    position: relative;

    padding: 32px;

    background: #1A1A1A;

    border: 1px solid var(--border);

    border-radius: 24px;

    transition: all .35s ease;
}

.testimonial-card:hover {
    transform: translateY(-10px);

    border-color: rgba(255, 255, 255, .12);

    box-shadow:
        0 20px 50px rgba(0, 0, 0, .25);
}

/* ==================================
   FEATURED CARD (MIDDLE CARD)
================================== */

.testimonial-card.featured .quote-mark {
    color: rgba(255, 122, 47, 0.85);
}

/* ==================================
   BIG QUOTE & TRANSITIONS
================================== */

.quote-mark {
    position: absolute;

    top: -24px;
    right: 20px;

    font-size: 120px;
    line-height: 1;

    color: rgba(255, 255, 255, .03);

    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), color 0.4s ease;

    pointer-events: none;
    transform-origin: center right;
}

/* Highlight any hovered card's quote design */
.testimonial-card:hover .quote-mark {
    color: rgba(255, 122, 47, 0.85);
    transform: scale(1.1) translateY(-4px);
}

/* If user hovers another card, fade the middle card's orange quote color back to default */
.testimonial-grid:hover .testimonial-card.featured:not(:hover) .quote-mark {
    color: rgba(255, 255, 255, 0.03);
    transform: none;
}

/* ==================================
   TEXT
================================== */

.testimonial-card p {
    position: relative;

    z-index: 2;

    font-size: 15px;
    line-height: 1.9;

    color: rgba(255, 255, 255, .78);

    margin-bottom: 40px;
}

/* ==================================
   CLIENT
================================== */

.testimonial-client {
    display: flex;
    align-items: center;
    gap: 14px;

    padding-top: 18px;

    border-top: 1px solid rgba(255, 255, 255, .06);
}

.testimonial-avatar {
    width: 52px;
    height: 52px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255, 122, 47, 0.08);

    border: 1px solid rgba(255, 122, 47, 0.25);

    color: #ff7a2f;

    font-size: 15px;
    font-weight: 700;

    flex-shrink: 0;

    transition: all .3s ease;
}

.testimonial-client h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
}

.testimonial-client span {
    font-size: 12px;
    color: rgba(255, 255, 255, .45);
}

/* ==================================
   MOBILE
================================== */

@media(max-width:900px) {

    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-card:nth-child(1),
    .testimonial-card:nth-child(2),
    .testimonial-card:nth-child(3) {
        margin-top: 0;
    }

    .featured {
        min-height: auto;
        background: #1f1f24;
    }
}

/* ==========================
   PROCESS SECTION
=========================== */

.process-section {
    padding: clamp(60px, 7vw, 90px) 8%;
    background: #1a1919;
    color: var(--text);
}

/* HEADER */

.process-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
    margin-bottom: 70px;
}

.process-title h2 {
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    line-height: 1.1;
    margin-top: 12px;
}

.process-description {
    max-width: 380px;
}

.process-description p {
    color: #9ca3af;
    line-height: 1.8;
    font-size: 15px;
}

/* GRID */

.process-grid {
    display: flex;
    align-items: flex-end;
    gap: 20px;
}

/* CARD */

.process-card {
    position: relative;
    padding: 28px;
    border-radius: 24px;
    overflow: hidden;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    transition: all 0.35s ease;

    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* HOVER */

.process-card:hover {
    transform: translateY(-10px);
}

/* CARD HEIGHTS */

.process-card.tall {
    height: 320px;
    flex: 1.1;
}

.process-card.medium {
    height: 230px;
    flex: 1;
}

.process-card.short {
    height: 170px;
    flex: 0.9;
}

/* GRADIENTS */

.process-card:nth-child(1) {
    background:
        linear-gradient(135deg,
            #4f46e5,
            #1e1b4b);
}

.process-card:nth-child(2) {
    background:
        linear-gradient(135deg,
            #1f2937,
            #111827);
}

.process-card:nth-child(3) {
    background:
        linear-gradient(135deg,
            #7c3aed,
            #312e81);
}

.process-card:nth-child(4) {
    background:
        linear-gradient(135deg,
            #0ea5e9,
            #1e3a8a);
}

.process-card:nth-child(5) {
    background:
        linear-gradient(135deg,
            #10b981,
            #065f46);
}

.process-card:nth-child(6) {
    background:
        linear-gradient(135deg,
            #f59e0b,
            #92400e);
}

/* NUMBER */

.step-number {
    position: absolute;
    top: 20px;
    right: 22px;

    font-size: 14px;
    font-weight: 600;

    color: rgba(255, 255, 255, 0.6);
}

/* TEXT */

.process-card h3 {
    font-size: 1.7rem;
    margin-bottom: 12px;
}

.process-card p {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
}

/* ==========================
   TABLET
=========================== */

@media (max-width: 1024px) {

    .process-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }

    .process-card {
        height: 240px !important;
    }
}

/* ==========================
   MOBILE
=========================== */

@media (max-width: 768px) {

    /* clamp() handles vertical scaling automatically */

    .process-header {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 40px;
    }

    .process-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .process-card {
        height: auto !important;
        min-height: 180px;
    }

    .process-title h2 {
        font-size: clamp(1.8rem, 6vw, 2.2rem);
    }
}

/* ==========================
   FAQ SECTION
=========================== */

.faq-section {
    /* Top: small so heading lifts close to navbar; Bottom: large for section separation */
    padding: clamp(28px, 3vw, 40px) 8% clamp(60px, 8vw, 100px);
    background: var(--bg);

    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 80px;

    align-items: start;
}

/* LEFT */

.faq-left {
    position: sticky;
    top: 120px;
}

.faq-left h2 {
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    line-height: 1.05;
    margin: 15px 0;
}

.faq-left p {
    color: #9ca3af;
    line-height: 1.8;
    max-width: 380px;
}

/* RIGHT */

.faq-right {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* ITEM */

.faq-item {
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;

    background: #1A1A1A;
    backdrop-filter: blur(10px);

    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

/* QUESTION */

.faq-question {
    width: 100%;

    background: transparent;
    border: none;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 24px 28px;

    color: var(--text);
    font-size: 1rem;
    font-weight: 500;

    cursor: pointer;
    text-align: left;
}

/* ICON */

.faq-icon {
    font-size: 24px;
    color: inherit;
    transition: transform 0.35s ease, color 0.3s ease;
}

/* ANSWER */

.faq-answer {
    max-height: 0;
    overflow: hidden;

    transition: max-height 0.4s ease;
}

.faq-answer p {
    padding: 0 28px 24px;
    color: #9ca3af;
    line-height: 1.8;
}

/* ACTIVE */

.faq-item.active .faq-answer {
    max-height: 250px;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: var(--accent-orange);
}

/* ==========================
   TABLET
=========================== */

@media (max-width: 1024px) {

    .faq-section {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .faq-left {
        position: static;
    }
}

/* ==========================
   MOBILE
=========================== */

@media (max-width: 768px) {

    /* clamp() handles vertical scaling automatically */

    .faq-left h2 {
        font-size: 2.5rem;
    }

    .faq-question {
        padding: 20px;
    }

    .faq-answer p {
        padding: 0 20px 20px;
    }
}

/* ==================================
   CONTACT SECTION
================================== */

.contact-section {

    background: var(--bg);
    padding: clamp(28px, 3vw, 40px) 6% clamp(60px, 8vw, 100px);

    position: relative;

    overflow: hidden;
}

/* ==================================
   ORANGE ORB
================================== */

.contact-orb {

    position: absolute;

    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%);

    width: 900px;
    height: 900px;

    border-radius: 50%;


    filter: blur(80px);

    opacity: .22;

    pointer-events: none;
}

/* ==================================
   FRAME
================================== */

.contact-frame {

    position: relative;

    z-index: 2;

    max-width: 1300px;

    margin: auto;

    border: 1px solid rgba(255, 255, 255, .08);

    background: #1A1A1A;

    overflow: hidden;
}

/* GRID */

.contact-frame::before {

    content: "";

    position: absolute;

    inset: 0;

    background:
        repeating-linear-gradient(90deg,
            transparent,
            transparent 95px,
            rgba(255, 255, 255, .025) 96px);

    pointer-events: none;
    display: none;
    /* Disabled background grid line design */
}

/* ==================================
   TOP BAR
================================== */

.contact-topbar {

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.contact-topbar a {

    text-align: center;

    padding: 18px;

    color: #9f9f9f;

    font-size: 13px;

    border-right: 1px solid rgba(255, 255, 255, .08);

    text-decoration: none;

    transition: color 0.3s ease;
}

.contact-topbar a:hover {
    color: #ffffff;
}

.contact-topbar a:last-child {
    border-right: none;
}

/* ==================================
   MAIN
================================== */

.contact-main {

    display: grid;

    grid-template-columns: 1fr 1fr;

    min-height: 520px;
}

/* ==================================
   FORM
================================== */

.contact-form-area {

    padding: 80px 60px;

    border-right: 1px solid rgba(255, 255, 255, .08);

    display: flex;

    flex-direction: column;

    justify-content: center;

    gap: 24px;
}

.contact-form-area input,
.contact-form-area textarea,
.contact-form-area select {

    background: none;

    border: none;

    border-bottom: 1px solid var(--border);

    padding: 14px 0;

    color: var(--text);

    font-size: 15px;
}

/* Prevent default browser autofill styles (white/blue background, dark text) */
.contact-form-area input:-webkit-autofill,
.contact-form-area textarea:-webkit-autofill,
.contact-form-area select:-webkit-autofill {
    -webkit-text-fill-color: var(--text) !important;
    -webkit-box-shadow: 0 0 0px 1000px #1A1A1A inset !important;
    transition: background-color 5000s ease-in-out 0s;
    border: none !important;
    border-bottom: 1px solid var(--border) !important;
}

.contact-form-area input:autofill,
.contact-form-area textarea:autofill,
.contact-form-area select:autofill {
    -webkit-text-fill-color: var(--text) !important;
    -webkit-box-shadow: 0 0 0px 1000px #1A1A1A inset !important;
    border: none !important;
    border-bottom: 1px solid var(--border) !important;
}

.contact-form-area input:-webkit-autofill:focus,
.contact-form-area textarea:-webkit-autofill:focus,
.contact-form-area select:-webkit-autofill:focus {
    border-bottom: 1px solid #ff7a2f !important;
}

.contact-form-area input:autofill:focus,
.contact-form-area textarea:autofill:focus,
.contact-form-area select:autofill:focus {
    border-bottom: 1px solid #ff7a2f !important;
}


.custom-select {
    position: relative;
    border-bottom: 1px solid var(--border);
}

.selected-option {
    display: flex;
    justify-content: space-between;
    align-items: center;

    height: 50px;

    color: var(--text);
    cursor: pointer;

    font-size: 15px;
}

.arrow {
    display: flex;
    align-items: center;
    justify-content: center;

    color: #8a8a8a;

    transition: transform .3s ease;
}

.custom-select.active .arrow {
    transform: rotate(180deg);
}

.select-options {
    position: absolute;

    top: calc(100% + 8px);
    left: 0;
    right: 0;

    background: #111;
    border: 1px solid rgba(255, 255, 255, .08);

    display: none;
    z-index: 1000;

    overflow: hidden;
}

.custom-select.active .select-options {
    display: block;
}

.select-options div {
    padding: 10px 20px;

    font-size: 14px;

    color: var(--text);

    cursor: pointer;

    transition: all .2s ease;
}

.select-options div:hover {
    background: rgba(255, 122, 47, .08);
    color: #ff7a2f;
    padding-left: 24px;
}

.contact-form-area textarea {
    min-height: 40px;
    height: 40px;

    padding: 14px 0;

    resize: none;

    overflow: hidden;
}

.contact-form-area input:focus,
.contact-form-area textarea:focus,
.contact-form-area select:focus {

    outline: none;

    border-color: #ff7a2f;
}

.contact-form-area button {

    width: 260px;

    margin-top: 15px;

    padding: 16px;

    border: none;

    background: var(--text);

    color: #111;

    font-size: 12px;

    letter-spacing: 1px;

    text-transform: uppercase;

    cursor: pointer;

    transition: .3s;
}

.contact-form-area button:hover {

    transform: translateY(-2px);
}

.contact-form-area button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Spinner Animation */
.spinner {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-top: 2px solid #111;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 8px;
    vertical-align: middle;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Form Submit Status Messaging */
.form-status {
    display: none;
    font-size: 14px;
    margin-top: 15px;
    padding: 14px 18px;
    border-radius: 4px;
    line-height: 1.5;
    text-align: left;
    animation: fadeInSlideUp 0.3s ease forwards;
}

.form-status.success {
    background: rgba(46, 213, 115, 0.08);
    color: #2ed573;
    border: 1px solid rgba(46, 213, 115, 0.25);
}

.form-status.error {
    background: rgba(255, 71, 87, 0.08);
    color: #ff4757;
    border: 1px solid rgba(255, 71, 87, 0.25);
}

@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================================
   CONTENT
================================== */

.contact-content {

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 60px;
    text-align: center;
}

/* WRAP */
.contact-title-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 24px;
}

.contact-line {
    position: absolute;

    width: 210px;
    height: 280px;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);
    overflow: visible;
}

.contact-line path {
    fill: none;

    stroke: rgba(255, 255, 255, .20);

    stroke-width: 1.2;

    stroke-linecap: round;
    stroke-linejoin: round;
}

.contact-content h2 {
    position: relative;
    z-index: 2;

    font-size: 5rem;
    line-height: .85;
}

/* decorative shape (improved visibility + smoother curve) */

.title-shape {

    position: absolute;

    width: 240px;
    height: 240px;

    border: 2px solid rgba(255, 255, 255, .18);

    border-radius: 65% 35% 60% 40%;

    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%) rotate(-15deg);

    opacity: 0.9;
}

/* TITLE */

.contact-content h2 {

    position: relative;
    z-index: 2;

    font-family: Georgia, serif;

    font-size: 5rem;
    font-weight: 500;
    line-height: .85;

    color: var(--text);
}

/* small underline */
.contact-content h2::after {

    content: "";

    position: absolute;

    width: 110px;
    height: 2px;

    background: var(--accent);

    left: -25px;
    top: 52%;

    transform: translateY(-50%);
}

/* paragraph */

.contact-content p {

    max-width: 320px;
    color: #b5b5b5;
    line-height: 1.8;
    font-size: 14px;
}

/* ==================================
   BOTTOM BAR
================================== */

.contact-bottom {

    display: grid;
    grid-template-columns: repeat(3, 1fr);

    border-top: 1px solid rgba(255, 255, 255, .08);
}

.contact-bottom div {

    padding: 18px;
    text-align: center;

    border-right: 1px solid rgba(255, 255, 255, .08);
}

.contact-bottom div:last-child {
    border-right: none;
}

.contact-bottom small {

    display: block;
    color: #777;
    margin-bottom: 6px;

    text-transform: uppercase;
    font-size: 11px;
}

.contact-bottom span,
.contact-bottom a {

    color: var(--text);
    font-size: 13px;
    text-decoration: none;
    transition: opacity .3s ease;
}

.contact-bottom a:hover {
    opacity: .8;
}

/* ==================================
   MOBILE FIX (IMPORTANT)
================================== */

@media(max-width:900px) {

    .contact-main {
        display: flex;
        flex-direction: column-reverse;
    }

    .contact-content {
        padding: 60px 24px;
    }

    .contact-form-area {
        padding: 40px 24px;
        border-right: none;
    }

    .contact-line {
        width: 150px;
        height: 200px;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .contact-title-wrap {
        margin-bottom: 16px;
    }

    .contact-content {
        padding: 65px 24px 20px;
    }

    .contact-content h2 {
        font-size: 3rem;
    }

    .contact-form-area input,
    .contact-form-area textarea,
    .contact-form-area select {
        width: 100%;
    }

    .contact-form-area button {
        width: 100%;
        margin-top: 24px;
    }

    .contact-bottom {
        grid-template-columns: 1fr;
    }

    .contact-bottom div {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, .08);
    }

    .contact-bottom div:last-child {
        border-bottom: none;
    }
}

/* ==================================================
   FOOTER
================================================== */

.footer-branding {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.footer-branding span {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -1px;
}

.footer {
    background: #121212;
    /* Standardized: matches all other sections. 30px bottom is for the copyright bar */
    padding: clamp(35px, 5vw, 60px) 7% 25px;
    border-top: 1px solid var(--border);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;

    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

/* ==========================
   LEFT SIDE
========================== */

.footer-brand {
    max-width: 520px;
}

.footer-logo {
    text-decoration: none;
    color: var(--text);

    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
}

.footer-logo span {
    color: #D94B2B;
    display: inline-block;
    transform: skewX(-8deg);
}

.footer-brand p {
    color: rgba(255, 255, 255, .65);
    line-height: 1.9;
    font-size: 1rem;
    margin: 0;
}

/* ==========================
   RIGHT SIDE WRAPPER
========================== */

.footer-right {
    display: flex;
    align-items: flex-start;
    gap: 60px;
}

/* ==========================
   LINKS + CONTACT
========================== */

.footer-links,
.footer-contact {
    display: flex;
    flex-direction: column;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--text);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.footer-links a,
.footer-contact a {
    color: rgba(255, 255, 255, .65);
    text-decoration: none;
    margin-bottom: 14px;
    transition: .3s ease;
    width: fit-content;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--accent-orange);
}

/* ==========================
   SOCIALS
========================== */

.footer-socials {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .3s ease;
}

.footer-socials a:hover {
    color: var(--text);
    border-color: rgba(255, 255, 255, .35);
    transform: translateY(-3px);
}

.footer-socials img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

/* ==========================
   BOTTOM BAR
========================== */

.footer-bottom {
    max-width: 1400px;
    margin: 40px auto 0;
    padding-top: 16px;

    border-top: 1px solid rgba(255, 255, 255, .08);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, .45);
    font-size: .9rem;
    margin: 0;
}

/* ==========================
   TABLET
========================== */

@media (max-width: 991px) {

    .footer-container {
        flex-direction: column;
        gap: 60px;
    }

    .footer-right {
        width: 100%;
        justify-content: flex-start;
    }
}

/* ==========================
   MOBILE
========================== */

@media (max-width: 768px) {

    .footer {
        padding: 70px 24px 24px;
    }

    .footer-right {
        flex-direction: column;
        gap: 40px;
    }

    .footer-logo {
        font-size: 2rem;
    }

    .footer-brand p {
        font-size: .95rem;
        line-height: 1.8;
    }

    .footer-bottom {
        margin-top: 50px;
        text-align: center;
    }
}

/* ==================================================
   NEW SERVICES LAYOUT — MODERN PREMIUM
================================================== */

#services {
    background: var(--bg);
    padding: clamp(20px, 3vw, 40px) 8% clamp(40px, 6vw, 80px);
}

.services-header-top {
    margin-bottom: clamp(24px, 3vw, 36px);
}

.services-main-title {
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    font-weight: 800;
    margin-top: 12px;
    letter-spacing: -0.03em;
    line-height: 1.05;
    max-width: 600px;
}

.services-split.new-layout {
    width: 100%;
    padding: 0;
    margin: 0;
    grid-template-columns: minmax(300px, 38%) 1fr;
    gap: clamp(30px, 4vw, 56px);
    align-items: start;
}

/* ---- LEFT CARD ---- */
.services-split.new-layout .card-side {
    position: relative;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-left: 24px;
}

.services-split.new-layout .stack-stage {
    aspect-ratio: 5 / 6;
    max-height: 400px;
    min-height: unset;
    width: 100%;
    position: relative;
    border-radius: 24px;
    overflow: hidden;
}

.services-split.new-layout .stack-card {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.55s cubic-bezier(.4, 0, .2, 1), visibility 0.55s ease;
    transform: none;
}

.services-split.new-layout .stack-card.active {
    opacity: 1;
    visibility: visible;
}

.services-split.new-layout .stack-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.services-split.new-layout .stack-card::before {
    content: none;
}

.card-overlay-modern {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px 20px 20px;
    z-index: 2;
}

.card-badge {
    align-self: flex-end;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 4px 10px;
}

.card-overlay-modern h2 {
    color: #fff;
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 700;
    margin: 0;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

/* Next Service button — modern outline style with arrow */
.modern-btn {
    width: 100%;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
}

.modern-btn::after {
    content: '→';
    font-size: 18px;
    transition: transform 0.3s ease;
    color: var(--text);
    opacity: 0.7;
}

.modern-btn:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.08);
}

.modern-btn:hover::after {
    color: var(--text);
    opacity: 1;
    transform: translateX(4px);
}

/* ---- RIGHT SIDE ---- */
.services-split.new-layout .text-side {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-top: 0;
    padding-left: clamp(20px, 3vw, 48px);
}

.desc-stage {
    position: relative;
    min-height: 320px;
}

.desc-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    transition: opacity 0.45s ease, transform 0.45s ease, visibility 0.45s ease;
}

.desc-content.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    position: relative;
}

/* Large decorative faded number */
.card-number-bg {
    position: absolute;
    top: -14px;
    right: -10px;
    font-size: clamp(90px, 14vw, 140px);
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 1;
    color: var(--text);
    opacity: 0.05;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

.desc-content h3 {
    font-size: clamp(26px, 3.2vw, 40px);
    margin: 0 0 20px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--text);
    position: relative;
    z-index: 1;
}

.desc-content h3::after {
    content: '';
    display: block;
    width: 32px;
    height: 2px;
    background: linear-gradient(135deg, #FF7A2F, #E63946);
    border-radius: 2px;
    margin-top: 14px;
}

/* Description with left accent */
.desc-content p {
    color: var(--text-secondary);
    font-size: 1.15rem;
    line-height: 1.75;
    margin: 0;
    max-width: 520px;
    padding-left: 14px;
    border-left: 2px solid rgba(255, 122, 47, 0.35);
    position: relative;
    z-index: 1;
}

/* "What's included" label */
.bullets-label {
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    letter-spacing: 2.5px !important;
    text-transform: uppercase !important;
    color: var(--text-secondary) !important;
    opacity: 0.45 !important;
    margin: 28px 0 14px !important;
    padding-top: 22px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.07) !important;
    position: relative;
    z-index: 1;
}

/* Bullet list — clean single column */
.desc-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.desc-content ul li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.5;
    transition: color 0.2s ease;
}

.desc-content ul li:hover {
    color: var(--text);
}

.desc-content ul li::before {
    content: '—';
    font-size: 0.85rem;
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 1px;
    opacity: 0.7;
}

@media (max-width: 900px) {
    .services-split.new-layout {
        grid-template-columns: 1fr;
    }

    .services-split.new-layout .card-side {
        padding-left: 0;
    }

    .services-split.new-layout .stack-stage {
        aspect-ratio: 3 / 2;
        min-height: unset;
        max-height: unset;
    }

    .services-split.new-layout .text-side {
        padding-left: 0;
    }

    .desc-stage {
        min-height: unset;
    }

    .modern-btn {
        width: 100%;
    }
}

/* ==================================================
   MOBILE OVERHAUL — Comprehensive 768px block
   (All sections unified here for maintainability)
================================================== */

@media (max-width: 768px) {

    /* ---- TRUST SECTION ---- */
    .trust-section {
        padding: 0 16px;
    }

    .trust-card {
        padding: 24px 20px;
    }

    .trust-card h2 {
        font-size: 2.6rem;
    }

    /* ---- SERVICES ---- */
    .services-main-title {
        font-size: clamp(1.9rem, 6vw, 2.4rem);
    }

    /* ---- PROJECTS ---- */
    .project-tile {
        height: 240px;
    }

    .featured-tile {
        min-height: 220px;
        padding: 24px;
    }

    /* ---- TESTIMONIALS — remove stagger offsets ---- */
    .testimonial-card:nth-child(1),
    .testimonial-card:nth-child(2),
    .testimonial-card:nth-child(3) {
        margin-top: 0;
    }

    .testimonials-header {
        margin-bottom: 36px;
    }

    /* ---- PROCESS — 2-column grid on mobile ---- */
    .process-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 14px;
        align-items: stretch;
    }

    .process-card {
        height: auto !important;
        min-height: 160px;
        padding: 22px 18px;
    }

    .process-card h3 {
        font-size: 1.35rem;
        margin-bottom: 8px;
    }

    .process-header {
        flex-direction: column;
        gap: 16px;
        margin-bottom: 36px;
    }

    .process-description {
        max-width: 100%;
    }

    .process-title h2 {
        font-size: clamp(1.8rem, 6vw, 2.4rem);
    }

    /* ---- FAQ ---- */
    .faq-left h2 {
        font-size: clamp(2rem, 7vw, 2.5rem);
    }

    .faq-question {
        padding: 18px 20px;
        font-size: 0.97rem;
    }

    .faq-answer p {
        padding: 0 20px 20px;
    }

    .faq-item.active .faq-answer {
        max-height: 320px;
    }

    /* ---- CONTACT — hide top nav bar & fix form ---- */
    .contact-topbar {
        display: none;
    }

    /* Force 16px on all inputs to prevent iOS auto-zoom */
    .contact-form-area input,
    .contact-form-area textarea,
    .contact-form-area select {
        font-size: 16px;
        width: 100%;
    }

    .selected-option {
        font-size: 16px;
    }

    .contact-form-area {
        padding: 36px 22px;
    }

    .contact-content {
        padding: 70px 22px 16px;
    }

    .contact-content h2 {
        font-size: 3.2rem;
    }

    .contact-form-area button {
        width: 100%;
        margin-top: 20px;
        padding: 18px;
        font-size: 13px;
    }

    .contact-bottom {
        grid-template-columns: 1fr;
    }

    .contact-bottom div {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, .08);
    }

    .contact-bottom div:last-child {
        border-bottom: none;
    }

    /* ---- FOOTER ---- */
    .footer {
        padding: 44px 22px 24px;
    }

    .footer-right {
        flex-direction: column;
        gap: 36px;
    }

    .footer-socials {
        flex-direction: row;
        gap: 14px;
    }

    .footer-bottom {
        margin-top: 36px;
    }
}

/* ==================================================
   SMALL PHONE — 480px refinements
================================================== */

@media (max-width: 480px) {

    /* Trust */
    .trust-card {
        padding: 20px 16px;
    }

    .trust-card h2 {
        font-size: 2.2rem;
    }

    .trust-card h3 {
        font-size: 1rem;
    }

    /* Client quote */
    .client-quote {
        font-size: 1.05rem;
    }

    /* Testimonials */
    .testimonial-card {
        padding: 24px 18px;
    }

    .testimonial-card p {
        font-size: 14px;
        margin-bottom: 28px;
    }

    /* Process — back to 1 col on very small screens */
    .process-grid {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }

    .process-card {
        min-height: 140px !important;
        padding: 18px 16px;
    }

    .process-card h3 {
        font-size: 1.2rem;
    }

    /* FAQ */
    .faq-question {
        padding: 16px 18px;
        font-size: 0.92rem;
    }

    .faq-answer p {
        padding: 0 18px 18px;
        font-size: 0.9rem;
    }

    /* Contact form */
    .contact-content h2 {
        font-size: 2.6rem;
    }

    /* Footer */
    .footer {
        padding: 36px 18px 20px;
    }

    .footer-logo {
        font-size: 1.6rem;
    }

    .footer-brand p {
        font-size: 0.9rem;
    }

    .footer-bottom p {
        font-size: 0.82rem;
    }
}

/* ==================================================
   HIDE hero CTA on desktop (mobile-only element)
================================================== */

@media (min-width: 769px) {
    .hero-cta-mobile {
        display: none;
    }
}