:root {
    --bg-color: #0a0a0a;
    --text-main: #ffffff;
    /* --accent: #3461ff; */
    --accent: #3482ff;
    --font-heading: 'Syne', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* -----------------------------------------------------
    LOCOMOTIVE BASE FOR RESET
----------------------------------------------------- */
html.has-scroll-smooth {
    overflow: hidden;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
}

html.has-scroll-dragging {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.has-scroll-smooth body {
    overflow: hidden;
}

.has-scroll-smooth [data-scroll-container] {
    min-height: 100vh;
}

/* -----------------------------------------------------
    RESET & DEFAULTS
----------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

/* -----------------------------------------------------
    LOADER
----------------------------------------------------- */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-video {
    width: 80%;
    max-width: 600px;
    height: auto;
    object-fit: contain;
    mix-blend-mode: screen;
}

/* -----------------------------------------------------
    HEADER
----------------------------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 2rem 4%;
}

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

.brand {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 1px;
    color: var(--text-main);
    /* Ensures pure white across templates */
    text-decoration: none;
    transition: color 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.brand-icon {
    height: inherit;
    width: 200px;
    display: flex;
    align-items: center;
    position: relative;
}

.brand-icon img.logo-light {
    display: block;
}

.brand-icon img.logo-dark {
    display: none;
}

/* When header bg is white (is-light active on scroll) */
.site-header.is-light .brand-icon img.logo-light {
    display: none;
}

.site-header.is-light .brand-icon img.logo-dark {
    display: block;
}

.menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.menu a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-size: 0.9rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 4px;
}

.menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 1px;
    background: var(--text-main);
    transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.menu a:hover::after {
    width: 100%;
}

/* DYNAMIC COLOR-SHIFT STATE FOR LIGHT SECTIONS */
.site-header.is-light .brand,
.site-header.is-light .menu a {
    color: #000000 !important;
}

.site-header.is-light .burger-menu span {
    background-color: #000000 !important;
}

.site-header.is-light .menu a::after {
    background: #000000 !important;
}

/* -----------------------------------------------------
    HERO SECTION
----------------------------------------------------- */
.hero-section {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: -10%;
    left: 0;
    width: 100%;
    height: 120%;
    /* Overflow for better parallax range */
    z-index: 1;
    opacity: 0.6;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.title-wrapper {
    overflow: hidden;
}

h1.reveal-text {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 9vw, 8.5rem);
    /* Tweaked for wider headline */
    font-weight: 800;
    line-height: 1.05;
    /* Increased to prevent clipping descenders */
    letter-spacing: -0.03em;
    margin: 0;
    padding-bottom: 0.05em;
    /* Buffers descenders for overflow wrapper */
}

h1.reveal-text.filled {
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.6);
    color: transparent;
}

.hero-sub {
    margin-top: 2rem;
    overflow: hidden;
    padding: 5px 0;
    /* Buffer height allowance */
}

.hero-sub p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    opacity: 0.8;
    max-width: 500px;
    margin: 0 auto;
    font-weight: 300;
    line-height: 1.5;
    padding-bottom: 5px;
    /* Ensures descenders like g, y don't get cut */
}

.section-label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.8rem;
    letter-spacing: 4px;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
}

/* -----------------------------------------------------
    STATEMENT SECTION
----------------------------------------------------- */
.statement-section {
    padding: 15vw 5%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.container {
    max-width: 1200px;
    width: 100%;
}

h2.scroll-reveal {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
}

/* -----------------------------------------------------
    GALLERY GRID
----------------------------------------------------- */
.gallery-section {
    padding: 10vw 5%;
    min-height: 100vh;
}

.grid-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10vw;
    align-items: start;
}

.gallery-item {
    width: 100%;
}

.gallery-item.item-2 {
    margin-top: 20vh;
    /* Offset starting position */
}

.img-wrapper {
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border-radius: 4px;
}

.img-wrapper img {
    transform: scale(1.1);
    transition: transform 0.6s ease;
}

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

.item-details span {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.item-details h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.item-details .desc {
    opacity: 0.6;
    font-size: 0.95rem;
    max-width: 400px;
    line-height: 1.6;
}

/* -----------------------------------------------------
    SERVICES SECTION
----------------------------------------------------- */
.services-section {
    padding: 15vw 5%;
    background: #050505;
}

.serv-header {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 6rem);
    margin-bottom: 4rem;
    letter-spacing: -2px;
}

.service-list {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.service-row {
    display: grid;
    grid-template-columns: 80px 1fr 2fr;
    align-items: center;
    padding: 3rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.4s ease;
}

.service-row:hover {
    background: rgba(255, 255, 255, 0.02);
}

.serv-num {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    opacity: 0.4;
}

.service-row h4 {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 600;
}

.service-row p {
    font-size: 1.1rem;
    opacity: 0.7;
    max-width: 600px;
}

/* -----------------------------------------------------
    HORIZONTAL TESTIMONIALS
----------------------------------------------------- */


/* -----------------------------------------------------
    FOOTER
----------------------------------------------------- */
.main-footer {
    padding: 10vw 5% 4rem 5%;
    background: #000;
    text-align: center;
    position: relative;
}

.footer-content {
    padding: 10vh 0 5vh 0;
}

.cta-large {
    display: inline-block;
    font-size: clamp(2rem, 8vw, 7rem);
    font-family: var(--font-heading);
    font-weight: 800;
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
    margin-top: 1rem;
}

.cta-large:hover {
    color: var(--accent);
}

.footer-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    text-align: left;
    max-width: 1200px;
    margin: 5vw auto 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 4rem;
}

.contact-col h5 {
    color: var(--accent);
    letter-spacing: 2px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.contact-col p {
    font-size: 1.1rem;
    opacity: 0.7;
    line-height: 1.6;
}

.footer-bottom {
    margin-top: 5vw;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    font-size: 0.8rem;
    opacity: 0.5;
}

/* -----------------------------------------------------
    HORIZONTAL TESTIMONIAL TRACK
----------------------------------------------------- */
.testimonial-section {
    min-height: 100vh;
    height: 100dvh;
    /* Explicit accurate fit to visible mobile screen area */
    perspective: 3000px;
    /* Very flat perspective limits visual expansion distortion */
    background: #080808;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Ambient accent aura behind the 3D elements */
.testimonial-section::before {
    content: '';
    position: absolute;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(52, 97, 255, 0.06) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
}

.track {
    position: relative;
    width: 85vw;
    max-width: 900px;
    height: 200px;
    /* Highly secure container for clean vertical flow */
    transform-style: preserve-3d;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.testim {
    position: absolute;
    top: 50%;
    /* Anchor perfectly to vertical midpoint of track */
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    /* True vertical center without forcing flex */
    text-align: center;
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 3vw, 2.2rem);
    font-weight: 800;
    text-transform: uppercase;
    color: #ffffff;
    line-height: 1.3;
    padding: 0 5%;
    box-sizing: border-box;
    white-space: normal;
    pointer-events: none;
}

.testim .word {
    display: inline-block;
    white-space: nowrap;
    /* Crucial: Prevents breaking words in half across lines */
    margin: 0 0.2em;
    /* Perfect space between words */
}

.testim .char {
    display: inline-block;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    will-change: transform, opacity;
}

.testim:hover {
    color: white;
    -webkit-text-stroke-color: transparent;
}

@media (max-width: 768px) {
    .grid-wrapper {
        grid-template-columns: 1fr;
        gap: 15vh;
    }

    .gallery-item.item-2 {
        margin-top: 0;
    }

    .service-row {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 2rem 0;
    }

    .footer-contact-grid {
        grid-template-columns: 1fr;
    }
}

/* -----------------------------------------------------
    EXTENDED SERVICES PAGE STYLES
----------------------------------------------------- */
.services-hero {
    min-height: 55vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 140px 10% 80px 10%;
    /* Added top padding to clear fixed header and bottom padding for safety margin */
    background: #000;
    position: relative;
    z-index: 2;
}

.services-hero .hero-sub {
    margin-top: 1.5rem;
    margin-left: 0;
    padding-left: 1.5rem;
    border-left: 2px solid var(--accent);
    text-align: left;
}

.services-hero .hero-sub p {
    margin: 0;
    /* Reset centered auto-margin */
    max-width: 400px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.6;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

/* -----------------------------------------------------
    CURVED TIMELINE SERVICES STYLES
----------------------------------------------------- */
.services-timeline-section {
    padding: 0 5%;
    position: relative;
    z-index: 1;
    background: #000000;
}

.timeline-container {
    position: relative;
    max-width: 1300px;
    margin: 0 auto;
    padding: 5vh 0;
}

/* SVG Connection Lines */
.timeline-svg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.timeline-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.timeline-path-bg {
    stroke-dasharray: none;
}

.timeline-path-progress {
    will-change: stroke-dashoffset;
    /* Soft glow on the active line */
    filter: drop-shadow(0 0 8px rgba(52, 130, 255, 0.5)) drop-shadow(0 0 16px rgba(52, 130, 255, 0.3));
}

/* Timeline Rows (Desktop Layout) */
.timeline-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    min-height: 80vh;
    padding: 10vh 0;
    z-index: 2;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.timeline-row:last-child {
    border-bottom: none;
}

/* Media and Content Columns Setup */
.timeline-col-media {
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 12px;
    background: #0d0d0d;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.8s ease;
}

.timeline-row.active .timeline-col-media {
    box-shadow: 0 20px 50px rgba(52, 130, 255, 0.15);
}

/* ── ABSTRACT DYNAMIC VISUAL CARDS ── */
.visual-card {
    width: 100%;
    height: 100%;
    position: relative;
    background: linear-gradient(135deg, #050505 0%, #101010 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.glow-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(52, 130, 255, 0.12) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
    animation: slowGlowPulse 6s ease-in-out infinite alternate;
}

@keyframes slowGlowPulse {
    0% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(0.9);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

/* 1. Strategy Constellation */
.visual-strategy .constellation-svg {
    width: 80%;
    height: 80%;
    z-index: 2;
}

.visual-strategy .net-line {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    opacity: 0.15;
    transition: stroke-dashoffset 2s ease, opacity 2s ease;
}

.timeline-row.active .visual-strategy .net-line {
    stroke-dashoffset: 0;
    opacity: 0.4;
}

/* Specific line flow delays */
.visual-strategy .line-1 {
    stroke: rgba(52, 130, 255, 0.8);
}

.visual-strategy .line-2 {
    stroke: rgba(52, 210, 255, 0.8);
    transition-delay: 0.2s;
}

.visual-strategy .line-3 {
    stroke: rgba(52, 130, 255, 0.8);
    transition-delay: 0.4s;
}

.visual-strategy .line-4 {
    stroke: rgba(52, 210, 255, 0.8);
    transition-delay: 0.6s;
}

.visual-strategy .line-5 {
    stroke: rgba(52, 130, 255, 0.8);
    transition-delay: 0.8s;
}

.visual-strategy .net-node {
    fill: #000;
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 2px;
    transform-origin: center;
    transform: scale(0);
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275), stroke 0.8s ease, fill 0.8s ease;
}

.timeline-row.active .visual-strategy .net-node {
    transform: scale(1);
    stroke: var(--accent);
    fill: rgba(52, 130, 255, 0.2);
}

.timeline-row.active .visual-strategy .node-4 {
    animation: pulseNode 3s infinite alternate;
}

@keyframes pulseNode {
    0% {
        r: 10;
        fill: rgba(52, 130, 255, 0.2);
    }

    100% {
        r: 13;
        fill: rgba(52, 130, 255, 0.6);
        stroke: #ffffff;
    }
}

/* Strategic growth bars */
.visual-strategy .strategy-bars {
    position: absolute;
    bottom: 25px;
    right: 35px;
    display: flex;
    gap: 8px;
    z-index: 3;
}

.visual-strategy .bar {
    width: 6px;
    height: 0;
    background: linear-gradient(to top, var(--accent), #52d2ff);
    border-radius: 4px;
    transition: height 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-row.active .visual-strategy .bar-1 {
    height: 35px;
    transition-delay: 0.5s;
}

.timeline-row.active .visual-strategy .bar-2 {
    height: 60px;
    transition-delay: 0.7s;
}

.timeline-row.active .visual-strategy .bar-3 {
    height: 45px;
    transition-delay: 0.9s;
}


/* 2. UI Glassmorphism Mockups */
.visual-ui .ui-panel-container {
    width: 80%;
    height: 70%;
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
    z-index: 2;
}

.visual-ui .ui-card {
    position: absolute;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 1.2s ease;
}

.visual-ui .card-bg {
    width: 65%;
    height: 75%;
    background: rgba(255, 255, 255, 0.02);
    top: 5%;
    left: 5%;
    transform: translate3d(0, 20px, -50px) rotateX(5deg) rotateY(15deg);
}

.visual-ui .card-fg {
    width: 55%;
    height: 60%;
    background: rgba(52, 130, 255, 0.05);
    bottom: 5%;
    right: 5%;
    border-color: rgba(52, 130, 255, 0.2);
    transform: translate3d(0, -20px, 50px) rotateX(5deg) rotateY(15deg);
}

.timeline-row.active .visual-ui .card-bg {
    transform: translate3d(0, 0, -30px) rotateX(10deg) rotateY(20deg);
}

.timeline-row.active .visual-ui .card-fg {
    transform: translate3d(0, 0, 40px) rotateX(10deg) rotateY(20deg);
    border-color: var(--accent);
    background: rgba(52, 130, 255, 0.1);
    box-shadow: 0 20px 45px rgba(52, 130, 255, 0.2);
}

/* UI Card skeletons */
.visual-ui .ui-header {
    display: flex;
    gap: 5px;
    margin-bottom: 15px;
}

.visual-ui .ui-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.visual-ui .card-fg .ui-dot {
    background: rgba(52, 130, 255, 0.5);
}

.visual-ui .ui-skeleton-line {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin-bottom: 8px;
}

.visual-ui .card-fg .ui-skeleton-line {
    background: rgba(255, 255, 255, 0.2);
}

.visual-ui .ui-skeleton-line.short {
    width: 35%;
}

.visual-ui .ui-skeleton-line.medium {
    width: 60%;
}

.visual-ui .ui-skeleton-line.long {
    width: 85%;
}

.visual-ui .ui-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #52d2ff);
    margin-bottom: 12px;
}

.visual-ui .ui-details {
    flex-grow: 1;
}

.visual-ui .ui-toggle {
    width: 28px;
    height: 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    position: absolute;
    bottom: 20px;
    right: 20px;
}

.timeline-row.active .visual-ui .ui-toggle {
    background: var(--accent);
}


/* 3. App Development Device Wireframe */
.visual-app .app-device {
    width: 140px;
    height: 250px;
    border-radius: 24px;
    border: 3px solid rgba(255, 255, 255, 0.15);
    background: #080808;
    position: relative;
    z-index: 2;
    padding: 8px;
    transform: rotate(-10deg) translateY(15px);
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 1.2s ease, box-shadow 1.2s ease;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.timeline-row.active .visual-app .app-device {
    transform: rotate(-5deg) translateY(0);
    border-color: var(--accent);
    box-shadow: 0 20px 45px rgba(52, 130, 255, 0.25);
}

.visual-app .device-screen {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    background: #0d0d0d;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
}

.visual-app .app-widget {
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 8px;
    transition: transform 0.8s ease, background 0.8s ease;
}

.timeline-row.active .visual-app .app-widget {
    background: rgba(52, 130, 255, 0.05);
    border-color: rgba(52, 130, 255, 0.15);
}

.visual-app .widget-1 {
    height: 35px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.visual-app .widget-icon {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    background: var(--accent);
}

.visual-app .widget-text {
    width: 50%;
    height: 6px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

.visual-app .widget-2 {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-app .widget-chart {
    width: 100%;
    height: 100%;
}

.visual-app .widget-chart path {
    stroke-linecap: round;
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    transition: stroke-dashoffset 1.5s ease 0.5s;
}

.timeline-row.active .visual-app .widget-chart path {
    stroke-dashoffset: 0;
}

.visual-app .widget-3 {
    flex-grow: 1;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.05) 100%);
}

/* Floating interactive bubbles around phone */
.visual-app .floating-bubble {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(52, 130, 255, 0.25) 0%, transparent 80%);
    filter: blur(4px);
    z-index: 3;
    pointer-events: none;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.2s ease;
}

.visual-app .bubble-1 {
    width: 50px;
    height: 50px;
    top: 25%;
    right: 40px;
}

.visual-app .bubble-2 {
    width: 35px;
    height: 35px;
    bottom: 20%;
    left: 45px;
    background: radial-gradient(circle, rgba(52, 210, 255, 0.35) 0%, transparent 80%);
}

.timeline-row.active .visual-app .floating-bubble {
    transform: translateY(0);
    opacity: 1;
    animation: appBubbleFloat 4s ease-in-out infinite alternate;
}

.timeline-row.active .visual-app .bubble-2 {
    animation-delay: 1.5s;
}

@keyframes appBubbleFloat {
    0% {
        transform: translateY(0) scale(1);
    }

    100% {
        transform: translateY(-15px) scale(1.1);
    }
}


/* 5. Web Development Tech Orb Core */
.visual-web .tech-core-wrapper {
    width: 200px;
    height: 200px;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-web .core-orbit {
    position: absolute;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    transform-origin: center;
    transition: border-color 1.2s ease;
}

.visual-web .orbit-outer {
    width: 170px;
    height: 170px;
    animation: rotateOrbit 12s linear infinite;
}

.visual-web .orbit-inner {
    width: 110px;
    height: 110px;
    animation: rotateOrbit 8s linear infinite reverse;
}

@keyframes rotateOrbit {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.timeline-row.active .visual-web .core-orbit,
.gallery-item.active .visual-web .core-orbit {
    border-color: rgba(52, 130, 255, 0.25);
}

.visual-web .orbit-node {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}

.visual-web .node-a {
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    background: #52d2ff;
}

.visual-web .node-b {
    bottom: -4px;
    right: 50%;
    transform: translateX(50%);
}

.visual-web .core-center {
    width: 60px;
    height: 60px;
    position: absolute;
    z-index: 3;
}

.visual-web .core-pulsar {
    fill: rgba(52, 130, 255, 0.1);
    stroke: var(--accent);
    stroke-width: 2px;
    transform-origin: center;
    animation: pulseCore 2.5s ease-in-out infinite;
}

@keyframes pulseCore {
    0% {
        r: 12;
        fill: rgba(52, 130, 255, 0.1);
        stroke-width: 2px;
    }

    50% {
        r: 18;
        fill: rgba(52, 130, 255, 0.3);
        stroke-dasharray: 4;
        stroke-width: 3px;
    }

    100% {
        r: 12;
        fill: rgba(52, 130, 255, 0.1);
        stroke-width: 2px;
    }
}

/* Floating interactive code labels */
.visual-web .code-badge {
    position: absolute;
    padding: 6px 12px;
    border-radius: 6px;
    background: rgba(10, 10, 10, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-family: monospace;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    z-index: 3;
    pointer-events: none;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.2s ease, border-color 1.2s ease, color 1.2s ease;
}

.visual-web .html-badge {
    top: 20%;
    left: 45px;
}

.visual-web .css-badge {
    bottom: 20%;
    right: 40px;
}

.visual-web .js-badge {
    top: 65%;
    left: 35px;
}

.timeline-row.active .visual-web .code-badge,
.gallery-item.active .visual-web .code-badge {
    transform: translateY(0);
    opacity: 1;
    border-color: rgba(52, 130, 255, 0.2);
    color: #52d2ff;
    animation: appBubbleFloat 5s ease-in-out infinite alternate;
}

.timeline-row.active .visual-web .css-badge,
.gallery-item.active .visual-web .css-badge {
    color: var(--accent);
    animation-delay: 1.2s;
}

.timeline-row.active .visual-web .js-badge,
.gallery-item.active .visual-web .js-badge {
    color: #ffffff;
    animation-delay: 2.2s;
}


/* 5. AI Crystalline Brain Core & Sparkles */
.visual-ai .ai-brain-wrapper {
    width: 220px;
    height: 220px;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-ai .brain-svg {
    width: 100%;
    height: 100%;
}

.visual-ai .brain-core {
    fill: rgba(255, 255, 255, 0.02);
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 1.5px;
    transform-origin: center;
    transition: fill 1.2s ease, stroke 1.2s ease, transform 1.2s ease;
}

.timeline-row.active .visual-ai .brain-core,
.gallery-item.active .visual-ai .brain-core {
    fill: rgba(52, 130, 255, 0.12);
    stroke: var(--accent);
    transform: scale(1.05);
    filter: drop-shadow(0 0 10px rgba(52, 130, 255, 0.4));
}

.visual-ai .brain-line {
    stroke: rgba(255, 255, 255, 0.06);
    stroke-width: 1px;
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    transition: stroke-dashoffset 1.5s ease 0.4s, stroke 1.2s ease;
}

.timeline-row.active .visual-ai .brain-line,
.gallery-item.active .visual-ai .brain-line {
    stroke-dashoffset: 0;
    stroke: rgba(52, 210, 255, 0.35);
}

.visual-ai .brain-node {
    fill: #080808;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 1.5px;
    transform: scale(0);
    transform-origin: center;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), stroke 1.2s ease, fill 1.2s ease;
}

.timeline-row.active .visual-ai .brain-node,
.gallery-item.active .visual-ai .brain-node {
    transform: scale(1);
    stroke: #52d2ff;
    fill: rgba(52, 210, 255, 0.3);
}

/* Glowing active neural spark floating icons */
.visual-ai .ai-sparkles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
}

.visual-ai .sparkle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 10px #ffffff, 0 0 20px var(--accent);
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 1s ease, transform 1s ease;
}

.visual-ai .s-1 {
    top: 30%;
    left: 35%;
}

.visual-ai .s-2 {
    top: 60%;
    right: 35%;
}

.visual-ai .s-3 {
    bottom: 25%;
    left: 45%;
}

.timeline-row.active .visual-ai .sparkle,
.gallery-item.active .visual-ai .sparkle {
    opacity: 1;
    transform: scale(1);
    animation: neuralPulse 2s ease-in-out infinite alternate;
}

.timeline-row.active .visual-ai .s-2,
.gallery-item.active .visual-ai .s-2 {
    animation-delay: 0.6s;
}

.timeline-row.active .visual-ai .s-3,
.gallery-item.active .visual-ai .s-3 {
    animation-delay: 1.2s;
}

@keyframes neuralPulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
        box-shadow: 0 0 5px #ffffff, 0 0 10px var(--accent);
    }

    100% {
        transform: scale(1.6);
        opacity: 1;
        box-shadow: 0 0 15px #ffffff, 0 0 30px var(--accent);
    }
}

.timeline-col-content {
    max-width: 540px;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-row.active .timeline-col-content {
    opacity: 1;
    transform: translateY(0);
}

.detail-num {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 800;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.08);
    color: transparent;
    display: block;
    margin-bottom: 0.5rem;
    line-height: 1;
    transition: -webkit-text-stroke 0.8s ease;
}

.timeline-row.active .detail-num {
    -webkit-text-stroke: 1px rgba(52, 130, 255, 0.4);
}

.timeline-col-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 3.5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    line-height: 1.1;
    color: #ffffff;
    transition: color 0.5s ease;
}

.timeline-col-content p {
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    line-height: 1.7;
    opacity: 0.6;
    font-weight: 300;
    color: #cccccc;
    transition: opacity 0.8s ease;
}

.timeline-row.active .timeline-col-content p {
    opacity: 0.9;
}

/* Glassmorphic Dot Setup (Desktop Positioning) */
.timeline-dot-wrapper {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    width: 60px;
    height: 60px;
    pointer-events: none;
}

.timeline-dot {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(10, 10, 10, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: background 0.6s cubic-bezier(0.16, 1, 0.3, 1),
        border-color 0.6s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: scale(0.9);
}

.dot-num {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    z-index: 2;
    transition: color 0.5s ease, transform 0.5s ease;
}

/* Infinite Pulse Ring */
.dot-pulse {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    opacity: 0;
    transform: scale(1);
    pointer-events: none;
    z-index: 1;
}

/* Active Dot States */
.timeline-row.active .timeline-dot {
    background: rgba(52, 130, 255, 0.1);
    border-color: var(--accent);
    box-shadow: 0 0 30px rgba(52, 130, 255, 0.6), inset 0 0 12px rgba(52, 130, 255, 0.4);
    transform: scale(1.15);
}

.timeline-row.active .dot-num {
    color: #ffffff;
    transform: scale(1.1);
}

.timeline-row.active .dot-pulse {
    animation: dotPulseInfinite 2s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

@keyframes dotPulseInfinite {
    0% {
        opacity: 0.8;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(1.8);
    }
}

/* Row Specific Positioning for Desktop S-Curve */
/* 1. row-left (Dot at 25%) */
.timeline-row.row-left .timeline-col-media {
    width: 20%;
}

.timeline-row.row-left .timeline-col-content {
    width: 72%;
}

.timeline-row.row-left .timeline-dot-wrapper {
    left: 24%;
}

/* 2. row-center (Dot at 50%) */
.timeline-row.row-center .timeline-col-media {
    width: 44%;
}

.timeline-row.row-center .timeline-col-content {
    width: 44%;
}

.timeline-row.row-center .timeline-dot-wrapper {
    left: 50%;
}

/* 3. row-right (Dot at 75%) */
.timeline-row.row-right .timeline-col-content {
    width: 72%;
}

.timeline-row.row-right .timeline-col-media {
    width: 20%;
}

.timeline-row.row-right .timeline-dot-wrapper {
    left: 76%;
}

/* 4. row-center-reverse (Dot at 50% Reverse) */
.timeline-row.row-center-reverse .timeline-col-content {
    width: 44%;
}

.timeline-row.row-center-reverse .timeline-col-media {
    width: 44%;
}

.timeline-row.row-center-reverse .timeline-dot-wrapper {
    left: 50%;
}

/* Responsive Layout (Tablets and Mobile) */
@media (max-width: 991px) {

    .timeline-row.row-left .timeline-col-media,
    .timeline-row.row-center .timeline-col-media,
    .timeline-row.row-right .timeline-col-media,
    .timeline-row.row-center-reverse .timeline-col-media {
        width: 35%;
    }

    .timeline-row.row-left .timeline-col-content,
    .timeline-row.row-center .timeline-col-content,
    .timeline-row.row-right .timeline-col-content,
    .timeline-row.row-center-reverse .timeline-col-content {
        width: 55%;
    }
}

@media (max-width: 768px) {
    .services-timeline-section {
        padding: 0 4%;
    }

    .timeline-container {
        padding: 2vh 0;
    }

    /* Shift timeline to the left edge */
    .timeline-row.row-left .timeline-dot-wrapper,
    .timeline-row.row-center .timeline-dot-wrapper,
    .timeline-row.row-right .timeline-dot-wrapper,
    .timeline-row.row-center-reverse .timeline-dot-wrapper {
        left: 30px !important;
        width: 44px;
        height: 44px;
    }

    .timeline-dot {
        border-width: 1.5px;
    }

    .dot-num {
        font-size: 0.75rem;
    }

    /* Collapse rows to vertical flow with indent */
    .timeline-row,
    .timeline-row.row-left,
    .timeline-row.row-center,
    .timeline-row.row-right,
    .timeline-row.row-center-reverse {
        flex-direction: column !important;
        align-items: flex-start;
        padding: 6vh 0 6vh 50px;
        min-height: auto;
        gap: 2rem;
    }

    .timeline-col-media,
    .timeline-col-content {
        width: 100% !important;
        max-width: 100% !important;
    }

    .timeline-col-media {
        aspect-ratio: 16/10;
        order: 2 !important;
        /* Push media below text on mobile */
    }

    .timeline-col-content {
        order: 1 !important;
    }

    .detail-num {
        font-size: 3rem;
    }
}

/* -----------------------------------------------------
    EXTENDED CONTACT PAGE STYLES
----------------------------------------------------- */
.contact-hero {
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    padding-top: 100px;
    /* Clear header */
}

.contact-split-info {
    flex: 1;
    padding: 5vw 5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-split-form {
    flex: 1;
    background: #0c0c0c;
    padding: 5vw;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-list {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.contact-item-wrap h4 {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.contact-item-wrap p,
.contact-item-wrap a {
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    font-family: var(--font-heading);
    font-weight: 600;
    text-decoration: none;
    color: white;
    line-height: 1.4;
}

.form-wrap {
    width: 100%;
    max-width: 500px;
}

.form-header {
    margin-bottom: 3rem;
}

.form-header h3 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -1px;
}

.form-group {
    margin-bottom: 2.5rem;
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding: 1rem 0;
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: border 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-bottom-color: var(--accent);
}

.form-group label {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    font-weight: 600;
}

.submit-btn {
    width: 100%;
    padding: 1.3rem;
    background: var(--accent);
    color: white;
    border: none;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    margin-top: 1rem;
}

.submit-btn:hover {
    background: #2a50d4;
    transform: translateY(-2px);
}

@media (max-width: 1024px) {
    .contact-hero {
        flex-direction: column;
    }

    .contact-split-form {
        padding: 10vw 5%;
    }
}

/* -----------------------------------------------------
    QCLAY INSPIRED "LET'S TALK" SECTION
----------------------------------------------------- */
.qclay-talk-section {
    background: #ffffff;
    color: #000000;
    min-height: 100vh;
    padding: 8vw 5%;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 5vw;
}

.qclay-talk-left {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.qclay-headline {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    color: #000;
    margin-bottom: 5rem;
}

.avatar-inline {
    display: inline-block;
    width: 60px;
    height: 60px;
    vertical-align: middle;
    margin: 0 10px;
    border-radius: 50%;
    background: #f3f3f3;
    overflow: hidden;
}

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

.qclay-sidebar-group {
    margin-top: 3rem;
}

.qclay-label {
    color: #888;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    text-transform: none;
}

.qclay-email-link {
    font-size: 1.2rem;
    font-family: var(--font-heading);
    color: #000;
    text-decoration: underline;
    font-weight: 600;
}

/* Center-Right Form Area */
.qclay-form-grid {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

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

.qclay-field-wrap label {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #000;
}

.qclay-field-wrap input,
.qclay-field-wrap textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    padding: 1rem 0;
    font-size: 1.1rem;
    font-family: var(--font-body);
    outline: none;
    color: #000;
    transition: border-color 0.3s ease;
}

.qclay-field-wrap textarea {
    min-height: 100px;
    resize: vertical;
}

.qclay-field-wrap input::placeholder,
.qclay-field-wrap textarea::placeholder {
    color: #bbb;
}

.qclay-field-wrap input:focus,
.qclay-field-wrap textarea:focus {
    border-bottom-color: #000;
}

/* Selection Pills */
.qclay-group-heading {
    font-size: 1.1rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 1rem;
}

.qclay-pills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.pill-item {
    padding: 14px 28px;
    border: 1px solid #e5e5e5;
    border-radius: 50px;
    background: transparent;
    color: #000;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    user-select: none;
}

.pill-item:hover {
    border-color: #bbb;
}

.pill-item.active {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
}

.qclay-submit-btn {
    display: inline-block;
    padding: 20px 50px;
    background: #000;
    color: #fff;
    border-radius: 50px;
    border: none;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    text-transform: lowercase;
    cursor: pointer;
    align-self: flex-start;
    margin-top: 2rem;
    transition: transform 0.3s ease, background 0.3s ease;
}

.qclay-submit-btn:hover {
    background: #333;
    transform: scale(1.02);
}

/* -----------------------------------------------------
    EXTENDED ABOUT PAGE STYLES
----------------------------------------------------- */
.about-hero {
    height: 65vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 120px 10% 0 10%;
}

.about-story {
    padding: 10vh 10%;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 8vw;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.story-left {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 600;
    line-height: 1.3;
}

.story-right p {
    font-size: 1.2rem;
    line-height: 1.8;
    opacity: 0.8;
    margin-bottom: 2rem;
    font-weight: 300;
}

.vision-mission-section {
    padding: 15vh 10%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10vw;
}

.vis-card {
    padding: 3rem;
    background: #0c0c0c;
    border: 1px solid #1a1a1a;
    border-radius: 8px;
    transition: border-color 0.4s ease;
}

.vis-card:hover {
    border-color: var(--accent);
}

.vis-card span {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 3px;
    color: var(--accent);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.vis-card h3 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3vw, 3rem);
    margin-bottom: 1.5rem;
}

.vis-card p {
    opacity: 0.75;
    line-height: 1.7;
    font-size: 1.1rem;
}

@media (max-width: 992px) {

    .about-story,
    .vision-mission-section {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .vis-card {
        padding: 2rem;
    }
}

@media (max-width: 992px) {
    .qclay-talk-section {
        grid-template-columns: 1fr;
        gap: 10vh;
    }

    .qclay-input-row {
        grid-template-columns: 1fr;
    }
}

/* -----------------------------------------------------
    FINAL COMPREHENSIVE RESPONSIVE OVERRIDES
----------------------------------------------------- */
.burger-menu {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 200;
}

.burger-menu span {
    width: 25px;
    height: 2px;
    background: white;
    transition: 0.3s ease;
}

/* -----------------------------------------------------
    PREMIUM CINEMATIC INFINITY LOOP
----------------------------------------------------- */
.reviews-marquee-section {
    background: #050505;
    padding: 12rem 0;
    width: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Atmospheric Dynamic Backlights */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
    pointer-events: none;
    opacity: 0.25;
    animation: float-orb 20s infinite alternate ease-in-out;
}

.orb-1 {
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, var(--accent), transparent 70%);
    top: -10%;
    left: -10%;
}

.orb-2 {
    width: 35vw;
    height: 35vw;
    background: radial-gradient(circle, #8a2be2, transparent 70%);
    /* Royal purple accent compliment */
    bottom: -10%;
    right: -10%;
    animation-delay: -10s;
}

@keyframes float-orb {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(100px, 50px) scale(1.1);
    }
}

/* Cinematic Edge Masking (Fade In/Out of View) */
.marquee-container {
    width: 100%;
    display: flex;
    overflow: hidden;
    z-index: 2;
    padding: 60px 0;
    /* The Magic Edge Feather */
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
    display: flex;
    gap: 40px;
    width: max-content;
    animation: scroll-infinity 45s linear infinite;
    /* Subtlest perspective rotation tilt for visual edge */
    transform-style: preserve-3d;
}

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

/* Hyper-Premium Uniform Card Design */
.review-card {
    width: 420px;
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 3rem;
    /* Perfect luxurious spacing */
    display: flex;
    flex-direction: column;
    gap: 2rem;
    min-height: 380px;
    /* Locking absolute height uniformity across all cards */
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.5);
}

/* Absolute Uniform Axis alignment (No staggered offsets) */
.review-card:nth-child(even) {
    margin-top: 0;
}

.review-card:hover {
    transform: translateY(-20px) scale(1.03);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.03) 100%);
    border-color: rgba(52, 130, 255, 0.6);
    box-shadow:
        0 40px 80px -20px rgba(0, 0, 0, 0.6),
        0 0 40px -10px rgba(52, 130, 255, 0.3);
    /* Subtle outer reactive glow */
}

.rating {
    color: var(--accent);
    font-size: 0.9rem;
    letter-spacing: 3px;
    text-shadow: 0 0 15px rgba(52, 130, 255, 0.4);
}

.review-text {
    font-family: var(--font-body);
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.7;
    font-weight: 300;
    letter-spacing: 0.3px;
}

.reviewer {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: auto;
    position: relative;
}

.reviewer::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 30px;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.reviewer img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.15);
    transition: border-color 0.4s ease;
}

.review-card:hover .reviewer img {
    border-color: var(--accent);
}

.rev-info {
    display: flex;
    flex-direction: column;
}

.rev-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    letter-spacing: 0.5px;
}

.rev-title {
    font-size: 0.75rem;
    color: var(--accent);
    /* Pulling accent into text heirarchy */
    opacity: 0.85;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    margin-top: 4px;
}

/* Perfect Seamless Stitch Keyframe */
@keyframes scroll-infinity {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 20px));
    }
}

/* Dynamic Mobile Rebalance for Premium Staggering */
@media (max-width: 768px) {
    .reviews-marquee-section {
        padding: 6rem 0;
    }

    .review-card {
        width: 320px;
        padding: 2rem;
        gap: 1.5rem;
        min-height: 380px;
        /* Uniform box sizing carried over perfectly to mobile screens */
    }

    .review-card:nth-child(even) {
        margin-top: 0;
        /* Flat rail alignment on mobile */
    }

    .review-text {
        font-size: 1rem;
    }

    .glow-orb {
        width: 60vw;
        height: 60vw;
        opacity: 0.15;
    }
}


@media (max-width: 768px) {

    /* Burger Toggle Reveal */
    .burger-menu {
        display: flex;
    }

    /* Transform Standard Menu into Hidden Overlay */
    .menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background: #050505;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        transform: translateX(100%);
        transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 150;
    }

    .menu.active {
        transform: translateX(0);
    }

    .menu a {
        font-size: 2rem;
        font-family: var(--font-heading);
        font-weight: 700;
    }

    /* General Padding Reductions */
    /* Fix alignment between logo and content strictly synced to 20px */
    .site-header {
        padding: 2rem 20px;
    }

    .services-hero {
        padding: 100px 20px 0 20px;
        height: auto;
        min-height: 60vh;
    }

    /* Optimized Final Refined Fix */
    h1.reveal-text {
        font-size: clamp(2.2rem, 9.5vw, 5rem);
        word-break: normal;
        overflow-wrap: break-word;
    }

    .services-grid-layout,
    .gallery-section,
    .statement-section {
        padding: 15vh 5%;
    }

    h2.scroll-reveal {
        font-size: 1.8rem;
        line-height: 1.4;
    }

    .serv-header {
        margin-bottom: 2rem;
    }

    .track {
        height: 300px;
        /* Vast breathing room for multi-line word wrap flow */
    }

    .testim {
        font-size: 1.35rem;
        /* Optimal compactness for clean mobile flow */
    }

    .qclay-talk-section {
        padding: 15vw 5%;
    }

    .qclay-headline {
        margin-bottom: 2rem;
    }

    .detail-col-media {
        aspect-ratio: 16/9;
    }
}

/* Active Hamburger State */
.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ── CONTACT FORM API SUBMISSION STYLES ── */
.qclay-submit-btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
    pointer-events: none;
}

.qclay-field-wrap input.error-input {
    border-bottom-color: #FF416C !important;
}

.form-group input.error-input,
.form-group textarea.error-input {
    border-bottom-color: #FF416C !important;
}

.submit-btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
    pointer-events: none;
}

/* ── CUSTOM PREMIUM MIX-BLEND CURSOR ── */
#cursor {
    display: none;
    /* Hide on mobile/tablet */
    width: 6px;
    height: 6px;
    background-color: #ffffff;
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10000;
    mix-blend-mode: difference;
    will-change: transform;
}

#cursor-ring {
    display: none;
    /* Hide on mobile/tablet */
    width: 32px;
    height: 32px;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    will-change: transform;
}

/* Hide default cursor on desktops for the custom cursor effect */
@media (min-width: 1025px) {

    #cursor,
    #cursor-ring {
        display: block;
        /* Show only on laptop and big screens */
    }

    body,
    a,
    button,
    .pill-item,
    .service-row {
        cursor: none !important;
    }
}

/* ── ATMOSPHERIC PARTICLE CANVAS ── */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
}

@media (max-width: 1024px) {
    #particle-canvas {
        position: absolute;
        width: 100%;
        height: 100%;
    }

    /* Disable dynamic parallax translates on mobile/tablet to prevent scroll/keyboard conflicts and stutters */
    [data-scroll] {
        transform: none !important;
    }
}

.graphical-services-section {
    background: linear-gradient(180deg, #050505 0%, #000000 100%);
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    width: 100%;
}

.graphical-inner-wrap {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10vw 5%;
    position: relative;
    overflow: hidden;
    /* Prevent horizontal scrollbars during random offscreen sweeps */
}

.graphical-inner-wrap .container {
    max-width: 1300px;
    margin: 0 auto;
    width: 100%;
}

.deck-showcase-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    width: 100%;
}

.deck-sidebar {
    flex: 0 0 40%;
    max-width: 520px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.deck-sidebar .section-label {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 3px;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    font-weight: 700;
    display: block;
}

.section-header-wrap {
    margin-bottom: 5rem;
    text-align: left;
}

.graphical-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.graphical-tagline {
    font-family: var(--font-body);
    font-size: clamp(0.95rem, 1.8vw, 1.15rem);
    opacity: 0.7;
    max-width: 500px;
    line-height: 1.6;
    font-weight: 300;
}

/* Dynamic Scroll Progress Bar */
.deck-progress-wrap {
    margin-top: 4rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    width: 70%;
}

.deck-progress-info {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: baseline;
}

.deck-current-num {
    color: var(--accent);
    font-size: 2.5rem;
    font-weight: 800;
    margin-right: 4px;
}

.deck-total-num {
    font-size: 1.1rem;
}

.deck-progress-track {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
}

.deck-progress-fill {
    width: 10%;
    height: 100%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
    transition: width 0.15s ease-out;
}

/* Deck Viewport & Perspective wrappers */
.graphical-deck-wrap {
    flex: 0 0 40%;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 2000px;
    transform-style: preserve-3d;
    width: 100%;
}

.graphical-deck {
    position: relative;
    width: 440px;
    height: 520px;
    transform-style: preserve-3d;
}

/* Stacked premium glassmorphic cards */
.graphic-service-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(12, 12, 12, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 3.5rem 2.8rem;
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7), inset 0 0 20px rgba(255, 255, 255, 0.02);
    transform-style: preserve-3d;
    backface-visibility: hidden;
    will-change: transform, opacity;
    transition: border-color 0.4s ease, background 0.4s ease, box-shadow 0.4s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.graphic-service-card:hover {
    transform: translateY(-10px) scale(1.02) !important;
    border-color: rgba(52, 130, 255, 0.4);
    background: rgba(18, 18, 18, 0.98);
    box-shadow: 0 40px 80px rgba(52, 130, 255, 0.12), inset 0 0 30px rgba(52, 130, 255, 0.04) !important;
}

/* Interactive Card Radial Glow */
.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(52, 130, 255, 0.06) 0%, transparent 60%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.graphic-service-card:hover .card-glow {
    opacity: 1;
}

.card-icon-wrap {
    width: 72px;
    height: 72px;
    margin-bottom: 2.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.graphic-svg {
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Card Typography */
.graphic-service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
    letter-spacing: -0.5px;
}

.graphic-service-card p {
    font-family: var(--font-body);
    font-size: 0.95rem;
    opacity: 0.6;
    line-height: 1.6;
    font-weight: 300;
    position: relative;
    z-index: 2;
}

/* ─────────────────────────────────────────────────────
    HIGH-FIDELITY VECTOR SVG ANIMATIONS
───────────────────────────────────────────────────── */

/* 1. Logo Design SVG */
.svg-logo .logo-path {
    stroke-dasharray: 200;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.graphic-service-card:hover .svg-logo .logo-path {
    stroke-dashoffset: 45;
}

.svg-logo .logo-node {
    transform-origin: center;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.graphic-service-card:hover .svg-logo .logo-node {
    transform: scale(1.3);
}

.svg-logo .logo-handle {
    transform-origin: 23px 65px;
    transition: transform 0.8s ease;
}

.graphic-service-card:hover .svg-logo .logo-handle {
    transform: rotate(20deg);
}

/* 2. Brand Identity Design SVG */
.svg-identity .identity-shield {
    transition: transform 0.6s ease, stroke 0.6s ease;
    transform-origin: center;
}

.graphic-service-card:hover .svg-identity .identity-shield {
    transform: translateY(-4px) scale(1.05);
    stroke: #ffffff;
}

.svg-identity .identity-dot {
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.graphic-service-card:hover .svg-identity .c-1 {
    transform: scale(1.25) translate(-3px, -2px);
}

.graphic-service-card:hover .svg-identity .c-2 {
    transform: scale(1.25) translate(0, -4px);
}

.graphic-service-card:hover .svg-identity .c-3 {
    transform: scale(1.25) translate(3px, -2px);
}

/* 3. Packaging Design SVG */
.svg-packaging .box-top,
.svg-packaging .box-left,
.svg-packaging .box-right {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.graphic-service-card:hover .svg-packaging .box-top {
    transform: translateY(-5px);
}

.graphic-service-card:hover .svg-packaging .box-left {
    transform: translate(-3px, 2px);
}

.graphic-service-card:hover .svg-packaging .box-right {
    transform: translate(3px, 2px);
}

.svg-packaging .box-print {
    stroke-dasharray: 20;
    stroke-dashoffset: 20;
    transition: stroke-dashoffset 0.5s ease 0.15s;
}

.graphic-service-card:hover .svg-packaging .box-print {
    stroke-dashoffset: 0;
}

/* 4. Brochure Design SVG */
.svg-brochure .page-1 {
    transform-origin: 40px 75px;
    transition: transform 0.6s ease;
}

.graphic-service-card:hover .svg-brochure .page-1 {
    transform: skewY(-5deg) scaleX(0.88) translateX(-3px);
}

.svg-brochure .page-3 {
    transform-origin: 65px 80px;
    transition: transform 0.6s ease;
}

.graphic-service-card:hover .svg-brochure .page-3 {
    transform: skewY(5deg) scaleX(0.88) translateX(3px);
}

/* 5. Catalog Design SVG */
.svg-catalog .book-page {
    transform-origin: 50px 50px;
    transition: transform 0.6s ease, fill 0.6s ease;
}

.graphic-service-card:hover .svg-catalog .book-page {
    transform: scale(1.04) rotate(-3deg);
    fill: rgba(52, 130, 255, 0.22);
}

/* 6. Social Media Graphics SVG */
.svg-social .social-phone {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.graphic-service-card:hover .svg-social .social-phone {
    transform: translateY(-3px);
}

.svg-social .social-post {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: center;
}

.graphic-service-card:hover .svg-social .social-post {
    transform: scale(1.08) rotate(3deg);
}

.svg-social .social-heart {
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: 46px 71px;
}

.graphic-service-card:hover .svg-social .social-heart {
    transform: scale(1.35);
}

/* 7. Business Card Design SVG */
.svg-cards .biz-card-fg {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.graphic-service-card:hover .svg-cards .biz-card-fg {
    transform: translate(-5px, -5px);
}

.svg-cards .biz-card-bg {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.graphic-service-card:hover .svg-cards .biz-card-bg {
    transform: translate(5px, 5px) rotate(-3deg);
}

/* 8. Flyer Design SVG */
.svg-flyer .flyer-sheet {
    transition: transform 0.6s ease;
}

.graphic-service-card:hover .svg-flyer .flyer-sheet {
    transform: translateY(-5px) rotate(1.5deg);
}

.svg-flyer .flyer-wave {
    transition: transform 0.6s ease, fill 0.6s ease;
}

.graphic-service-card:hover .svg-flyer .flyer-wave {
    transform: scaleY(1.08);
    fill: rgba(52, 130, 255, 0.22);
}

/* 9. Banner & Poster Design SVG */
.svg-poster .poster-border {
    transition: transform 0.6s ease;
}

.graphic-service-card:hover .svg-poster .poster-border {
    transform: scale(1.04);
}

.svg-poster .poster-sun {
    transition: transform 0.6s ease, stroke 0.6s ease;
    transform-origin: center;
}

.graphic-service-card:hover .svg-poster .poster-sun {
    transform: scale(1.2);
    stroke: #52d2ff;
}

/* 10. Marketing Materials Design SVG */
.svg-marketing .mkt-folder {
    transition: transform 0.6s ease;
}

.graphic-service-card:hover .svg-marketing .mkt-folder {
    transform: translateY(3px);
}

.svg-marketing .mkt-sheet {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.graphic-service-card:hover .svg-marketing .mkt-sheet {
    transform: translateY(-10px) scale(1.03);
}

/* ─────────────────────────────────────────────────────
    RESPONSIVE MEDIA QUERIES
───────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .graphical-inner-wrap {
        width: 100%;
        min-height: auto;
        display: block;
        padding: 80px 5%;
        overflow: visible;
    }

    .deck-showcase-container {
        display: flex;
        flex-direction: column;
        gap: 4rem;
        width: 100%;
    }

    .deck-sidebar {
        width: 100%;
        max-width: 100%;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .deck-sidebar .section-label {
        margin-bottom: 1rem;
        text-align: center;
    }

    .graphical-title {
        text-align: center;
        margin-bottom: 1.2rem;
        font-size: clamp(2.2rem, 5vw, 3.8rem);
    }

    .graphical-tagline {
        text-align: center;
        margin: 0 auto;
        max-width: 540px;
        font-size: 1.05rem;
        opacity: 0.7;
    }

    .deck-progress-wrap {
        display: none !important;
        /* Hide progress bar on mobile since cards are a natural scrolling grid! */
    }

    .graphical-deck-wrap {
        perspective: none;
        transform-style: flat;
        width: 100%;
        flex: 0 0 100%;
        display: block;
    }

    .graphical-deck {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
        width: 100%;
        height: auto;
        transform-style: flat;
        margin: 0 auto;
    }

    .graphic-service-card {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: 100% !important;
        height: auto !important;
        min-height: 380px;
        padding: 3rem 2.2rem;
        border-radius: 24px;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        background: rgba(12, 12, 12, 0.95) !important;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        will-change: auto !important;
        transition: border-color 0.4s ease, background 0.4s ease, box-shadow 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }

    .graphic-service-card:hover {
        transform: translateY(-10px) !important;
        border-color: rgba(52, 130, 255, 0.4) !important;
        background: rgba(18, 18, 18, 0.98) !important;
        box-shadow: 0 25px 50px rgba(52, 130, 255, 0.08), inset 0 0 20px rgba(52, 130, 255, 0.02) !important;
    }

    .card-icon-wrap {
        width: 64px;
        height: 64px;
        margin-bottom: 1.8rem;
    }

    .graphic-service-card h3 {
        font-size: 1.45rem;
        margin-bottom: 0.8rem;
    }

    .graphic-service-card p {
        font-size: 0.95rem;
        line-height: 1.6;
        opacity: 0.6;
    }
}

@media (max-width: 768px) {
    .graphical-services-section {
        padding: 80px 4%;
    }

    .graphical-inner-wrap {
        padding: 0;
    }

    .deck-showcase-container {
        gap: 3rem;
    }

    .graphical-deck {
        grid-template-columns: 1fr;
        gap: 1.8rem;
    }

    .graphic-service-card {
        min-height: auto;
        padding: 2.8rem 1.8rem;
    }

    .card-icon-wrap {
        width: 56px;
        height: 56px;
        margin-bottom: 1.4rem;
    }

    .graphic-service-card h3 {
        font-size: 1.3rem;
        margin-bottom: 0.6rem;
    }

    .graphic-service-card p {
        font-size: 0.88rem;
        line-height: 1.5;
    }
}

/* ────────────────────────────────────────────────────────
    HOMEPAGE SHOWCASE SPECIAL VISUALS (SECTION 3)
──────────────────────────────────────────────────────── */

/* 1. CREATIVE SOLUTIONS (3D Glassmorphic Stack) */
.visual-creative-solutions {
    background: linear-gradient(135deg, #070707 0%, #151518 100%);
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.solutions-stack {
    width: 80%;
    height: 80%;
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item.item-1.active .solutions-stack {
    transform: rotateX(15deg) rotateY(-18deg) rotateZ(2deg);
}

.stack-layer {
    position: absolute;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.01);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 1.2s ease, opacity 1.2s ease;
}

/* Layer 1: Browser (Back) */
.layer-back {
    width: 70%;
    height: 70%;
    top: 5%;
    left: 5%;
    opacity: 0.3;
    transform: translate3d(0, 0, -60px);
    padding: 12px;
}

.gallery-item.item-1.active .layer-back {
    opacity: 0.6;
    transform: translate3d(0, 0, -40px);
    border-color: rgba(255, 255, 255, 0.08);
}

.layer-header {
    display: flex;
    gap: 4px;
    margin-bottom: 8px;
}

.win-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.win-dot.red { background: #ff5f56; }
.win-dot.yellow { background: #ffbd2e; }
.win-dot.green { background: #27c93f; }

.dashboard-mock {
    display: flex;
    height: calc(100% - 15px);
    gap: 8px;
}

.mock-sidebar {
    width: 20%;
    height: 100%;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
}

.mock-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.mock-line-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mock-line {
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
}

.mock-line.s { width: 40%; }
.mock-line.m { width: 75%; }

.mock-bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 25px;
}

.mock-bar {
    width: 6px;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px 2px 0 0;
    transition: height 1s cubic-bezier(0.16, 1, 0.3, 1) 0.5s;
}

.gallery-item.item-1.active .mock-bar-chart .bar-1 { height: 12px; background: rgba(52, 130, 255, 0.4); }
.gallery-item.item-1.active .mock-bar-chart .bar-2 { height: 22px; background: var(--accent); }
.gallery-item.item-1.active .mock-bar-chart .bar-3 { height: 16px; background: rgba(82, 210, 255, 0.5); }

/* Layer 2: App Screen (Middle) */
.layer-middle {
    width: 50%;
    height: 75%;
    right: 8%;
    top: 10%;
    opacity: 0.5;
    transform: translate3d(0, 0, 10px);
    border-color: rgba(52, 130, 255, 0.15);
    background: rgba(52, 130, 255, 0.02);
    padding: 15px 10px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gallery-item.item-1.active .layer-middle {
    opacity: 0.85;
    transform: translate3d(0, 0, 20px);
    border-color: rgba(52, 130, 255, 0.3);
    background: rgba(52, 130, 255, 0.05);
}

.app-header {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 2px;
}

.app-camera {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
}

.app-speaker {
    width: 20px;
    height: 3px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.2);
}

.app-widget {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    padding: 6px;
}

.widget-profile {
    display: flex;
    align-items: center;
    gap: 6px;
}

.avatar-circle {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #52d2ff);
}

.avatar-lines {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.avatar-line {
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1.5px;
}

.avatar-line.sh { width: 30%; }
.avatar-line.md { width: 60%; }

.widget-chart {
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mini-chart {
    width: 100%;
    height: 100%;
}

.mini-chart path {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    transition: stroke-dashoffset 1.5s ease 0.4s;
}

.gallery-item.item-1.active .mini-chart path {
    stroke-dashoffset: 0;
}

.app-toggle-wrap {
    width: 20px;
    height: 10px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.08);
    position: relative;
    cursor: pointer;
    align-self: flex-end;
}

.app-toggle-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    position: absolute;
    top: 2px;
    left: 2px;
    transition: left 0.4s ease, background 0.4s ease;
}

.gallery-item.item-1.active .app-toggle-dot {
    left: 12px;
    background: var(--accent);
}

/* Layer 3: Vector Canvas (Front) */
.layer-front {
    width: 55%;
    height: 55%;
    left: 12%;
    bottom: 8%;
    opacity: 0.4;
    transform: translate3d(0, 0, 60px);
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(10, 10, 12, 0.8);
    padding: 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.gallery-item.item-1.active .layer-front {
    opacity: 1;
    transform: translate3d(0, 0, 80px);
    border-color: var(--accent);
    box-shadow: 0 20px 45px rgba(52, 130, 255, 0.25);
}

.vector-pen-svg {
    width: 100%;
    height: 70%;
}

.vector-curve {
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    transition: stroke-dashoffset 2s ease 0.2s;
}

.gallery-item.item-1.active .vector-curve {
    stroke-dashoffset: 0;
}

.anchor-handle, .curve-node {
    transform: scale(0);
    transform-origin: center;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gallery-item.item-1.active .anchor-handle {
    transform: scale(1);
    transition-delay: 1.2s;
}

.gallery-item.item-1.active .curve-node {
    transform: scale(1);
    transition-delay: 1s;
    animation: pulseNode 3s infinite alternate;
}

.designer-status {
    font-family: monospace;
    font-size: 0.65rem;
    letter-spacing: 1px;
    color: var(--accent);
    text-align: center;
    opacity: 0.5;
    transition: opacity 0.8s ease;
}

.gallery-item.item-1.active .designer-status {
    opacity: 1;
}

/* Floating Badges for Creative Solutions */
.visual-creative-solutions .floating-badge {
    position: absolute;
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(10, 10, 12, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    z-index: 5;
    pointer-events: none;
    transform: translateY(15px);
    opacity: 0;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.2s ease, border-color 1.2s ease, color 1.2s ease;
}

.gallery-item.item-1.active .floating-badge {
    transform: translateY(0);
    opacity: 1;
    animation: appBubbleFloat 4s ease-in-out infinite alternate;
}

.visual-creative-solutions .badge-ux {
    top: 15%;
    left: 20px;
    border-color: rgba(52, 130, 255, 0.2);
    color: #52d2ff;
}

.visual-creative-solutions .badge-dev {
    bottom: 25%;
    right: 15px;
    border-color: rgba(255, 95, 86, 0.2);
    color: #ff5f56;
    animation-delay: 1s !important;
}

.visual-creative-solutions .badge-apps {
    bottom: 12%;
    left: 35px;
    border-color: var(--accent);
    color: #ffffff;
    animation-delay: 1.8s !important;
}


/* 2. AI & ML INFRASTRUCTURE (Holographic Globe & Data Pipeline Stream) */
.visual-ai-infrastructure {
    background: linear-gradient(135deg, #05060a 0%, #0c101b 100%);
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hologram-canvas {
    width: 90%;
    height: 90%;
    z-index: 3;
    overflow: visible;
}

/* Globe continent glowing effect */
.globe-continent {
    fill: rgba(82, 210, 255, 0.03);
    stroke: rgba(82, 210, 255, 0.35);
    transition: fill 1s ease, stroke 1s ease, filter 1s ease;
}

.gallery-item.item-2.active .globe-continent {
    fill: rgba(82, 210, 255, 0.08);
    stroke: rgba(82, 210, 255, 0.7);
    filter: drop-shadow(0 0 4px rgba(82, 210, 255, 0.5));
}

.globe-sphere {
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    transition: stroke-dashoffset 2s ease;
}

.gallery-item.item-2.active .globe-sphere {
    stroke-dashoffset: 0;
}

.globe-orbit {
    transform-origin: 85px 100px;
    transition: stroke 1.2s ease;
}

.gallery-item.item-2.active .globe-orbit.ring-a {
    animation: rotateOrbit 18s linear infinite;
    stroke: rgba(82, 210, 255, 0.5);
}

.gallery-item.item-2.active .globe-orbit.ring-b {
    animation: rotateOrbit 12s linear infinite reverse;
    stroke: rgba(82, 210, 255, 0.4);
}

/* Globe mesh connection lines */
.globe-mesh line {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    transition: stroke-dashoffset 1.5s cubic-bezier(0.16, 1, 0.3, 1) 0.4s;
}

.gallery-item.item-2.active .globe-mesh line {
    stroke-dashoffset: 0;
}

.pulse-core-node {
    transform: scale(0);
    transform-origin: center;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gallery-item.item-2.active .pulse-core-node {
    transform: scale(1);
    animation: nodePulseLight 2.5s infinite alternate;
}

@keyframes nodePulseLight {
    0% { r: 2; opacity: 0.6; fill: #52d2ff; }
    100% { r: 3.5; opacity: 1; fill: #ffffff; filter: drop-shadow(0 0 6px #52d2ff); }
}

/* Central core data pipelines leaving globe */
.core-pipe {
    stroke-dasharray: 20;
    stroke-dashoffset: 20;
    transition: stroke-dashoffset 1.5s ease 0.6s;
}

.gallery-item.item-2.active .core-pipe {
    stroke-dashoffset: 0;
    animation: pipeDashFlow 3s linear infinite;
}

@keyframes pipeDashFlow {
    0% { stroke-dashoffset: 20; }
    100% { stroke-dashoffset: 0; }
}

/* Fan-out Fiber Curves */
.fiber-line {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    transition: stroke-dashoffset 2.2s cubic-bezier(0.16, 1, 0.3, 1) 0.5s, stroke 1.2s ease;
}

.gallery-item.item-2.active .fiber-line {
    stroke-dashoffset: 0;
    stroke: rgba(82, 210, 255, 0.45);
}

/* Horizontal Data Grid Lanes */
.binary-grid-lanes line {
    opacity: 0.1;
    transition: opacity 1.2s ease, stroke 1.2s ease;
}

.gallery-item.item-2.active .binary-grid-lanes line {
    opacity: 0.3;
    animation: binaryMatrixFlow 8s linear infinite;
}

.gallery-item.item-2.active .binary-grid-lanes line.lane-active {
    opacity: 0.75;
    animation: binaryMatrixFlow 4s linear infinite;
}

.gallery-item.item-2.active .binary-grid-lanes line:nth-child(2n) {
    animation-duration: 6s;
}

.gallery-item.item-2.active .binary-grid-lanes line:nth-child(3n) {
    animation-duration: 3s;
}

@keyframes binaryMatrixFlow {
    0% { stroke-dashoffset: 50; }
    100% { stroke-dashoffset: 0; }
}

/* Floating 3D Binary Hologram Digits */
.binary-float-wrap {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 4;
}

.binary-digit {
    position: absolute;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--accent);
    opacity: 0;
    transform: translate3d(0, 15px, 0);
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.2s ease;
}

.gallery-item.item-2.active .binary-digit {
    opacity: 0.5;
}

.digit-1 { top: 32%; left: 8%; font-size: 1.3rem; filter: blur(1.5px); animation: binaryFloatAnim 6s ease-in-out infinite alternate; }
.digit-2 { top: 22%; left: 20%; font-size: 1.6rem; filter: blur(0.5px); color: #fff; animation: binaryFloatAnim 8s ease-in-out infinite alternate 1s; }
.digit-3 { top: 12%; left: 38%; font-size: 1.5rem; filter: blur(2.5px); opacity: 0.25; animation: binaryFloatAnim 5s ease-in-out infinite alternate 0.5s; }
.digit-4 { top: 16%; left: 52%; font-size: 1.2rem; filter: blur(1px); animation: binaryFloatAnim 7s ease-in-out infinite alternate 2s; }
.digit-5 { top: 48%; left: 6%; font-size: 2rem; filter: blur(3.5px); opacity: 0.2; animation: binaryFloatAnim 9s ease-in-out infinite alternate 1.5s; }
.digit-6 { top: 64%; left: 12%; font-size: 1.4rem; filter: blur(1px); animation: binaryFloatAnim 6s ease-in-out infinite alternate 0.2s; }
.digit-7 { top: 78%; left: 28%; font-size: 1.6rem; filter: blur(2.5px); opacity: 0.2; animation: binaryFloatAnim 8s ease-in-out infinite alternate 1.2s; }
.digit-8 { top: 70%; left: 48%; font-size: 1.3rem; filter: blur(0.5px); color: #fff; animation: binaryFloatAnim 7s ease-in-out infinite alternate 0.8s; }

@keyframes binaryFloatAnim {
    0% { transform: translateY(0px) rotate(-6deg); }
    100% { transform: translateY(-10px) rotate(6deg); }
}
}