/* ===== BASE STYLES & VARIABLES ===== */
:root {
    --bg-primary: #e6e6e6;
    --bg-secondary: #f5f5f5;
    --card-bg: #ffffff;
    --accent: #eb4926;
    --accent-hover: #d13a1a;
    --dark: #111111;
    --text-muted: #666666;
    --border-color: rgba(0, 0, 0, 0.05);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.08);
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 500px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    font-size: 16px;
}

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

/* Typography */
h1,
h2,
h3,
h4,
h5 {
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

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

ul {
    list-style: none;
}

.text-accent {
    color: var(--accent);
}

.text-dark {
    color: var(--dark);
}

/* Common Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

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

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

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

.btn-accent:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(235, 73, 38, 0.2);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-pill);
    font-family: monospace;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 12px;
    /* Reduced from 24px */
    background: rgba(255, 255, 255, 0.5);
}

/* ===== NAVIGATION ===== */
.header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: 90%;
    max-width: 600px;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.header.scrolled {
    max-width: 310px;
}

.nav-container {
    position: relative;
    background: var(--card-bg);
    padding: 8px 8px 8px 24px;
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.header.scrolled .nav-container {
    padding: 6px 6px 6px 16px;
    background: #021e00;
    box-shadow: 0 0 15px rgb(0 255 10 / 70%), 0 0 30px rgb(8 255 0 / 6%), 0 0 60px rgb(142 255 0 / 19%);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.2rem;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.logo-img-wrapper {
    position: relative;
    display: inline-flex;
    max-width: 40px;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.logo-icon {
    width: 24px;
    height: 24px;
    background: var(--accent);
    border-radius: 50%;
}

.logo-icon-img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.header.scrolled .logo-icon-img {
    transform: scale(1.2);
}

.online-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    background-color: #70bf00;
    border: 2px solid var(--card-bg);
    border-radius: 50%;
    opacity: 0;
    transform: scale(0);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 2;
}
.header.scrolled .online-dot {
    opacity: 1;
    transform: scale(1);
}

.logo-text-wrapper {
    display: flex;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.logo-text {
    display: inline-block;
    max-width: 140px;
    overflow: hidden;
    white-space: nowrap;
    opacity: 1;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.header.scrolled .logo-text {
    max-width: 0;
    opacity: 0;
}

.available-text {
    display: inline-block;
    max-width: 0;
    overflow: hidden;
    white-space: nowrap;
    opacity: 0;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.header.scrolled .available-text {
    max-width: 130px;
    opacity: 1;
    color: #57e551;
}

/* Ensure the logo stretches to fill the space when scrolled so text centers properly */
.header.scrolled .logo {
    flex: 1;
}

.header.scrolled .logo-text-wrapper {
    display: flex;
    flex: 1;
    justify-content: center;
}

.menu-toggle {
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    color: var(--text-muted);
    max-width: 80px;
    opacity: 1;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.header.scrolled .menu-toggle {
    max-width: 0;
    opacity: 0;
    padding: 0;
    margin: 0;
    gap: 0;
    pointer-events: none;
}

.menu-toggle .divider {
    width: 1px;
    height: 24px;
    background: var(--border-color);
}

.menu-toggle i {
    font-size: 1.2rem;
    transition: var(--transition);
}

.menu-toggle:hover i {
    color: var(--dark);
}

.nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.header.scrolled .nav-btn {
    background-color: #20bf00;
    color: white;
    border-color: #20bf00;
}

.btn-text-default {
    display: inline-block;
    max-width: 120px;
    opacity: 1;
    overflow: hidden;
    white-space: nowrap;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.btn-text-scrolled {
    display: inline-block;
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    white-space: nowrap;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.header.scrolled .btn-text-default {
    max-width: 0;
    opacity: 0;
}
.header.scrolled .btn-text-scrolled {
    max-width: 120px;
    opacity: 1;
}

/* Mobile Dropdown */
.mobile-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 100%;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
}

.mobile-nav.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-nav ul {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-nav a {
    display: block;
    padding: 10px;
    font-weight: 600;
    color: var(--text-muted);
    border-radius: var(--radius-md);
}

.mobile-nav a:hover,
.mobile-nav a.active {
    color: var(--dark);
    background: var(--bg-secondary);
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 90px 20px 20px;
    /* Balanced padding */
    overflow: hidden;
    margin: 16px;
    border-radius: 40px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

main {
    position: relative;
    z-index: 1;
}

.global-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    /* clip-path: url(#panels-mask); Removed for debugging */
    pointer-events: none;
    overflow: hidden;
    background: rgba(255, 0, 0, 0.1);
}

/* ===== HERO BACKGROUND (FRAMER ROTATION TECHNIQUE) ===== */
.hero-bg-container {
    position: absolute;
    top: 350px;
    /* Center near the hero section */
    transform: translateY(-50%);
    width: 0;
    height: 0;
    z-index: 0;
    contain: layout style;
}

.hero>*:not(.hero-bg-container),
.portfolio>*:not(.hero-bg-container) {
    position: relative;
    z-index: 2;
}

.left-bg {
    left: -40vw;
}

.right-bg {
    right: -40vw;
}

.circle-track {
    position: absolute;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    contain: layout style;
}

.track-1 {
    width: 90vw;
    height: 90vw;
}

.track-2 {
    width: 110vw;
    height: 110vw;
}

.track-3 {
    width: 130vw;
    height: 130vw;
}

.track-bg-outer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    /* Outer edge of groove: inner shadows. Darker towards edge */
    box-shadow:
        inset 2px 2px 4px rgba(0, 0, 0, 0.08),
        inset 6px 6px 15px rgba(0, 0, 0, 0.05),
        inset -4px -4px 10px rgba(255, 255, 255, 1);
    pointer-events: none;
}

.track-bg-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: var(--bg-color);
    /* Inner edge of groove: outer shadows cast from the center plateau. Darker towards edge */
    box-shadow:
        2px 2px 4px rgba(0, 0, 0, 0.08),
        6px 6px 15px rgba(0, 0, 0, 0.05),
        -4px -4px 10px rgba(255, 255, 255, 1);
    pointer-events: none;
}

/* Track thickness variations */
.track-3 .track-bg-inner {
    width: calc(100% - 28px);
    height: calc(100% - 28px);
}

/* 14px thick */
.track-2 .track-bg-inner {
    width: calc(100% - 22px);
    height: calc(100% - 22px);
}

/* 11px thick */
.track-1 .track-bg-inner {
    width: calc(100% - 16px);
    height: calc(100% - 16px);
}

/* 8px thick */

.icon-node {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 0;
    transform-origin: 50% 0;
    /* Center of the circle track */
    z-index: 2;
    animation: orbit var(--duration) linear infinite var(--dir, normal);
    will-change: transform;
}

/* PERF: Portfolio tracks start paused, activated by IntersectionObserver */
.tracks-deferred .icon-node,
.tracks-deferred .circle-track,
.tracks-deferred .icon-asset {
    animation-play-state: paused;
}

.tracks-deferred.tracks-active .icon-node,
.tracks-deferred.tracks-active .circle-track,
.tracks-deferred.tracks-active .icon-asset {
    animation-play-state: running;
}

@keyframes orbit {
    0% {
        transform: rotate(var(--start-deg));
    }

    100% {
        transform: rotate(calc(var(--start-deg) + 360deg));
    }
}

.icon-asset {
    position: absolute;
    top: 0;
    width: 64px;
    height: 64px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: counter-orbit var(--duration) linear infinite var(--dir, normal);
    will-change: transform;
}

.icon-asset-right {
    right: 0;
    --tx: 50%;
    --ty: -50%;
    transform: translate(50%, -50%);
}

.icon-asset-left {
    left: 0;
    --tx: -50%;
    --ty: -50%;
    transform: translate(-50%, -50%);
}

@keyframes counter-orbit {
    0% {
        transform: translate(var(--tx), var(--ty)) rotate(calc(var(--start-deg) * -1));
    }

    100% {
        transform: translate(var(--tx), var(--ty)) rotate(calc((var(--start-deg) + 360deg) * -1));
    }
}

.icon-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: clamp(0.9rem, 2vw, 1.05rem);
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto 30px;
}

.hero-cta {
    position: relative;
    display: inline-block;
    margin-bottom: 25px;
}

.handwritten-annotation {
    position: absolute;
    left: -74px;
    top: -31px;
    font-family: 'Caveat', cursive;
    color: var(--accent);
    font-size: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: rotate(-10deg);
    pointer-events: none;
}

.trust-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    width: 100%;
    text-transform: uppercase;
}

.trust-badge .avatars {
    display: flex;
}

.trust-badge .avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #F5F4F3;
    margin-left: -10px;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), z-index 0s;
}

.trust-badge .avatar:hover {
    transform: scale(1.4);
    z-index: 10;
}

.trust-badge .avatar:first-child {
    margin-left: 0;
}

.floating-tile {
    position: absolute;
    width: 64px;
    height: 64px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #c4c4c4;
    /* Light gray icon */
    z-index: 2;
    animation: float 6s ease-in-out infinite;
}

.tile-1 {
    top: 20%;
    left: 24%;
    rotate: 18deg;
    animation-delay: 0s;
}

.tile-2 {
    top: 15%;
    right: 26%;
    rotate: -18deg;
    animation-delay: -1s;
}

.tile-3 {
    bottom: 35%;
    left: 6%;
    rotate: -20deg;
    animation-delay: -2s;
}

.tile-4 {
    bottom: 30%;
    right: 8%;
    rotate: 20deg;
    animation-delay: -3s;
}

.tile-5 {
    top: 50%;
    left: -32px;
    rotate: 0deg;
    animation-delay: -1.5s;
}

/* Half visible on left edge */
.tile-6 {
    top: 50%;
    right: -32px;
    rotate: 0deg;
    animation-delay: -2.5s;
}

/* Half visible on right edge */

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

/* ===== PORTFOLIO MARQUEE ===== */
.portfolio {
    padding: 35px 0;
    margin: 16px;
    border-radius: 40px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    position: relative;
    min-height: auto;
}

.marquee-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow: hidden;
    width: 100%;
}

.marquee-row-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 10px 0;
}

/* Hide the actual reel cards until loaded, but keep skeletons visible */
.marquee-row-wrapper .reel-card {
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.marquee-row-wrapper.visible .reel-card {
    opacity: 1;
}

/* Hide skeletons once content is loaded */
.marquee-row-wrapper.visible .thumb-skeleton {
    display: none;
}

.marquee-row-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 64px;
    background: linear-gradient(to right, rgba(242, 242, 242, 0.95) 0%, rgba(242, 242, 242, 0) 100%);
    z-index: 10;
    pointer-events: none;
}

.marquee-row-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 64px;
    background: linear-gradient(to left, rgba(242, 242, 242, 0.95) 0%, rgba(242, 242, 242, 0) 100%);
    z-index: 10;
    pointer-events: none;
}

.marquee-track {
    display: flex;
    gap: 24px;
    width: max-content;
    will-change: transform;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    cursor: grab;
    user-select: none;
}

.marquee-track:active {
    cursor: grabbing;
}

.marquee-group {
    display: flex;
    gap: 24px;
    flex-shrink: 0;
}

/* ===== REEL CARDS ===== */
.reel-card {
    position: relative;
    display: block;
    width: 185px;
    height: 329px;
    flex-shrink: 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(165deg, #26262b 0%, #101013 100%);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    pointer-events: auto;
    transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.25s ease;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.reel-card:hover {
    transform: translateY(-4px) scale(1.015);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.reel-poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.reel-card:hover .reel-poster {
    transform: scale(1.05);
}

.reel-fallback {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, 0.22);
    font-size: 34px;
    background: linear-gradient(160deg, #2b2b31 0%, #101013 100%);
}

.reel-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0) 32%, rgba(0, 0, 0, 0.12) 55%, rgba(0, 0, 0, 0.82) 100%);
    pointer-events: none;
}

.reel-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.9);
    color: #111;
    font-size: 13px;
    padding-left: 3px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
    transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
    pointer-events: none;
}

.reel-card:hover .reel-play {
    background: var(--accent);
    color: #fff;
    transform: translate(-50%, -50%) scale(1.12);
}

.reel-duration {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 3px 6px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.02em;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    pointer-events: none;
}

.reel-info {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 12px 12px 13px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    text-align: left;
    pointer-events: none;
}

.reel-title {
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.reel-cat {
    color: rgba(255, 255, 255, 0.6);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Allow pointer events only if not dragging */
.marquee-track:not(:active) .reel-card {
    pointer-events: auto;
}

.thumb-skeleton {
    width: 185px;
    height: 329px;
    border-radius: 20px;
    background: linear-gradient(90deg, #e5e5e5 25%, #f5f5f5 50%, #e5e5e5 75%);
    background-size: 200% 100%;
    animation: skeletonLoading 1.5s infinite linear;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .reel-card,
    .thumb-skeleton {
        width: 200px;
        height: 356px;
    }
}

/* ===== HOW IT WORKS SECTION ===== */
.how-it-works {
    padding: 30px 20px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    content-visibility: auto;
    contain-intrinsic-size: auto 800px;
}

.hiw-header {
    margin-bottom: 50px;
}

.hiw-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.15;
}

.hiw-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

@media (max-width: 850px) {
    .hiw-grid {
        grid-template-columns: 1fr !important;
    }
}

/* --- Card Base --- */
.hiw-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 32px 28px 28px;
    text-align: left;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* Paper Grid Background */
.hiw-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% + 40px);
    z-index: 0;
    opacity: 0.05;
    pointer-events: none;
    background-image:
        repeating-linear-gradient(0deg,
            transparent, transparent 39px,
            rgba(0, 0, 0, 1) 39px, rgba(0, 0, 0, 1) 40px),
        repeating-linear-gradient(90deg,
            transparent, transparent 39px,
            rgba(0, 0, 0, 1) 39px, rgba(0, 0, 0, 1) 40px);
    animation: gridScrollUp 12s linear infinite;
}

.hiw-card>* {
    position: relative;
    z-index: 1;
}

.hiw-step-number {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 0.8rem;
    color: var(--dark);
    background: var(--bg-secondary);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    padding: 4px 12px;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.hiw-card-visual {
    height: 130px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.hiw-card-title {
    font-family: 'Outfit', 'Nunito', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
}

.hiw-title-badge {
    background-color: var(--accent);
    color: white;
    padding: 2px 10px;
    border-radius: 8px;
    margin-right: 10px;
    font-size: 1.1rem;
    font-weight: 800;
}

.hiw-card-desc {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    font-weight: 500;
}

/* --- Floating Icon Bubbles --- */
.hiw-icons-float {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hiw-icon-bubble {
    width: 52px;
    height: 52px;
    background: #fff;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: absolute;
    opacity: 0;
    transform: scale(0.5) translateY(20px);
    transition: none;
}

/* Animated state positions */
.hiw-card.hiw-in-view .hiw-icon-bubble {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* --- Step 01 Specific Styles --- */
.hiw-node {
    position: absolute;
    width: var(--w);
    height: var(--h);
    margin-left: calc(var(--w) / -2);
    margin-top: calc(var(--h) / -2);
    z-index: 2;
}

.hiw-node .hiw-icon-bubble {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    margin: 0;
}

.hiw-conn-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Icon Pop-in Animations */
.hiw-card.hiw-in-view .step1-icon-cloud {
    animation: hiwPopIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both, hiwGentleFloat 4.5s ease-in-out 0.6s infinite;
}

.hiw-card.hiw-in-view .step1-icon-mega {
    animation: hiwPopIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.25s both, hiwGentleFloat 4.2s ease-in-out 0.8s infinite;
}

.hiw-card.hiw-in-view .step1-icon-gdrive {
    animation: hiwPopIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s both, hiwGentleFloat 4s ease-in-out 1s infinite;
}

/* Lines draw sequentially after icons appear */
.hiw-card.hiw-in-view .wipe-rect-3 {
    animation: hiwWipeRect 0.4s ease-in-out 0.3s both;
}

/* from Cloud */
.hiw-card.hiw-in-view .wipe-rect-1 {
    animation: hiwWipeRect 0.3s ease-in-out 0.5s both;
}

/* from Mega */
.hiw-card.hiw-in-view .wipe-rect-2 {
    animation: hiwWipeRect 0.3s ease-in-out 0.6s both;
}

/* from GDrive */

.hiw-card.hiw-in-view .step1-icon-upload {
    animation: hiwPopIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.9s both, hiwGentleFloat 4s ease-in-out 1.5s infinite;
}

@keyframes hiwWipeRect {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

.hiw-conn-lines path {
    stroke-dasharray: 6 6;
    animation: hiwFlow 0.8s linear infinite;
}

@keyframes hiwFlow {
    to {
        stroke-dashoffset: -12;
    }
}

/* --- Step 02 Specific Styles --- */
.step2-hover {
    width: 100%;
    height: 100%;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hiw-tooltip {
    position: absolute;
    bottom: -32px;
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background: #1A202C;
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.hiw-tooltip::after {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 0 4px 4px 4px;
    border-style: solid;
    border-color: transparent transparent #1A202C transparent;
}

.hiw-cursor {
    position: absolute;
    width: 24px;
    height: 24px;
    z-index: 200;
    pointer-events: none;
    opacity: 0;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
    transform: translate(-5px, -3px);
}

/* Animations that trigger when card is in view */
.hiw-card.hiw-in-view .app-1 .step2-hover {
    animation: hiwAppHover1 6s infinite;
}

.hiw-card.hiw-in-view .app-2 .step2-hover {
    animation: hiwAppHover2 6s infinite;
}

.hiw-card.hiw-in-view .app-3 .step2-hover {
    animation: hiwAppHover3 6s infinite;
}

.hiw-card.hiw-in-view .app-4 .step2-hover {
    animation: hiwAppHover4 6s infinite;
}

.hiw-card.hiw-in-view .app-1 .hiw-tooltip {
    animation: hiwTooltip1 6s infinite;
}

.hiw-card.hiw-in-view .app-2 .hiw-tooltip {
    animation: hiwTooltip2 6s infinite;
}

.hiw-card.hiw-in-view .app-3 .hiw-tooltip {
    animation: hiwTooltip3 6s infinite;
}

.hiw-card.hiw-in-view .app-4 .hiw-tooltip {
    animation: hiwTooltip4 6s infinite;
}

.hiw-card.hiw-in-view .hiw-cursor {
    animation: hiwCursorMove 6s ease-in-out infinite;
    opacity: 1;
    /* Cursor is always visible */
}

.hiw-card.hiw-in-view .app-1 .step2-popin {
    animation: hiwPopIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s both, hiwGentleFloat 4s ease-in-out 0.65s infinite;
}

.hiw-card.hiw-in-view .app-2 .step2-popin {
    animation: hiwPopIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.25s both, hiwGentleFloat 4.5s ease-in-out 1.2s infinite;
}

.hiw-card.hiw-in-view .app-3 .step2-popin {
    animation: hiwPopIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.35s both, hiwGentleFloat 3.8s ease-in-out 0.8s infinite;
}

.hiw-card.hiw-in-view .app-4 .step2-popin {
    animation: hiwPopIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.45s both, hiwGentleFloat 4.2s ease-in-out 0.4s infinite;
}


/* App 1 (Photoshop) Hover */
@keyframes hiwAppHover1 {

    0%,
    8.3% {
        transform: scale(1.15);
        box-shadow: 0 10px 25px var(--glow);
    }

    10.3%,
    98% {
        transform: scale(1);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    }

    100% {
        transform: scale(1.15);
        box-shadow: 0 10px 25px var(--glow);
    }
}

@keyframes hiwTooltip1 {

    0%,
    8.3% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    10.3%,
    98% {
        opacity: 0;
        transform: translateX(-50%) translateY(5px);
    }

    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* App 2 (Illustrator) Hover */
@keyframes hiwAppHover2 {

    0%,
    23% {
        transform: scale(1);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    }

    25%,
    33.3% {
        transform: scale(1.15);
        box-shadow: 0 10px 25px var(--glow);
    }

    35.3%,
    100% {
        transform: scale(1);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    }
}

@keyframes hiwTooltip2 {

    0%,
    23% {
        opacity: 0;
        transform: translateX(-50%) translateY(5px);
    }

    25%,
    33.3% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    35.3%,
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(5px);
    }
}

/* App 3 (Figma) Hover */
@keyframes hiwAppHover3 {

    0%,
    48% {
        transform: scale(1);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    }

    50%,
    58.3% {
        transform: scale(1.15);
        box-shadow: 0 10px 25px var(--glow);
    }

    60.3%,
    100% {
        transform: scale(1);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    }
}

@keyframes hiwTooltip3 {

    0%,
    48% {
        opacity: 0;
        transform: translateX(-50%) translateY(5px);
    }

    50%,
    58.3% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    60.3%,
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(5px);
    }
}

/* App 4 (Lightroom) Hover */
@keyframes hiwAppHover4 {

    0%,
    73% {
        transform: scale(1);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    }

    75%,
    83.3% {
        transform: scale(1.15);
        box-shadow: 0 10px 25px var(--glow);
    }

    85.3%,
    100% {
        transform: scale(1);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    }
}

@keyframes hiwTooltip4 {

    0%,
    73% {
        opacity: 0;
        transform: translateX(-50%) translateY(5px);
    }

    75%,
    83.3% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    85.3%,
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(5px);
    }
}

.hiw-card.hiw-in-view .app-1 {
    animation: hiwAppZ1 6s infinite;
}

.hiw-card.hiw-in-view .app-2 {
    animation: hiwAppZ2 6s infinite;
}

.hiw-card.hiw-in-view .app-3 {
    animation: hiwAppZ3 6s infinite;
}

.hiw-card.hiw-in-view .app-4 {
    animation: hiwAppZ4 6s infinite;
}

@keyframes hiwAppZ1 {

    0%,
    8.3% {
        z-index: 100;
    }

    10.3%,
    98% {
        z-index: 2;
    }

    100% {
        z-index: 100;
    }
}

@keyframes hiwAppZ2 {

    0%,
    23% {
        z-index: 2;
    }

    25%,
    33.3% {
        z-index: 100;
    }

    35.3%,
    100% {
        z-index: 2;
    }
}

@keyframes hiwAppZ3 {

    0%,
    48% {
        z-index: 2;
    }

    50%,
    58.3% {
        z-index: 100;
    }

    60.3%,
    100% {
        z-index: 2;
    }
}

@keyframes hiwAppZ4 {

    0%,
    73% {
        z-index: 2;
    }

    75%,
    83.3% {
        z-index: 100;
    }

    85.3%,
    100% {
        z-index: 2;
    }
}

@keyframes hiwCursorMove {

    0%,
    8.3% {
        left: 50%;
        top: 22%;
    }

    25%,
    33.3% {
        left: 85%;
        top: 10%;
    }

    50%,
    58.3% {
        left: 20%;
        top: 65%;
    }

    75%,
    83.3% {
        left: 85%;
        top: 75%;
    }

    100% {
        left: 50%;
        top: 22%;
    }
}

/* Float positions for Step 03 (2 chat bubbles) */
.hiw-card:nth-child(3) .hiw-float-1 {
    right: 5%;
    bottom: 15%;
    top: auto;
    left: auto;
}

.hiw-card:nth-child(3) .hiw-float-2 {
    left: 5%;
    top: 15%;
}

/* --- Step 4 Visual Controls (Adjust these values to change size, rotation, and position) --- */
:root {
    /* Global Scale for Step 4 chips */
    --step4-chip-scale: 0.9;

    /* Chip 1: Final_Cut_v2.mp4 */
    --step4-chip1-left: 33%;
    --step4-chip1-top: -27%;
    --step4-chip1-rotate: 9deg;

    /* Chip 2: Final export */
    --step4-chip2-left: -5%;
    --step4-chip2-top: 18%;
    --step4-chip2-rotate: -21deg;

    /* Chip 3: Publish Button */
    --step4-chip3-left: 42%;
    --step4-chip3-top: 46%;
    --step4-chip3-rotate: -13deg;
}

/* Float positions for Step 04 (3 file chips) */
.hiw-card:nth-child(4) .hiw-float-1 {
    left: var(--step4-chip1-left);
    top: var(--step4-chip1-top);
    z-index: 1;
}

.hiw-card:nth-child(4) .hiw-float-2 {
    left: var(--step4-chip2-left);
    top: var(--step4-chip2-top);
    z-index: 2;
}

.hiw-card:nth-child(4) .hiw-float-3 {
    left: var(--step4-chip3-left);
    top: var(--step4-chip3-top);
    z-index: 3;
    right: auto;
    bottom: auto;
}

/* --- Animation Keyframes & In-View Triggers --- */
.hiw-card.hiw-in-view .hiw-float-1 {
    animation: hiwPopIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s both,
        hiwGentleFloat 4s ease-in-out 0.65s infinite;
}

.hiw-card.hiw-in-view .hiw-float-2 {
    animation: hiwPopIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s both,
        hiwGentleFloat 4.5s ease-in-out 0.8s infinite;
}

.hiw-card.hiw-in-view .hiw-float-3 {
    animation: hiwPopIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.45s both,
        hiwGentleFloat 5s ease-in-out 0.95s infinite;
}

.hiw-card.hiw-in-view .hiw-float-4 {
    animation: hiwPopIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.6s both,
        hiwGentleFloat 4.2s ease-in-out 1.1s infinite;
}

@keyframes hiwPopIn {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(25px);
    }

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

@keyframes hiwGentleFloat {

    0%,
    100% {
        transform: scale(1) translateY(0);
    }

    50% {
        transform: scale(1) translateY(-8px);
    }
}

/* --- Card Entrance Animation --- */
.hiw-card.hiw-anim {
    opacity: 0;
    transform: translateY(30px);
    transition: none;
}

.hiw-card.hiw-anim.hiw-card-visible {
    animation: hiwCardEnter 0.6s cubic-bezier(0.25, 1, 0.5, 1) both;
}

@keyframes hiwCardEnter {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger delays applied via data-hiw-delay */
.hiw-card.hiw-anim[data-hiw-delay="0"].hiw-card-visible {
    animation-delay: 0s;
}

.hiw-card.hiw-anim[data-hiw-delay="1"].hiw-card-visible {
    animation-delay: 0.12s;
}

.hiw-card.hiw-anim[data-hiw-delay="2"].hiw-card-visible {
    animation-delay: 0.24s;
}

.hiw-card.hiw-anim[data-hiw-delay="3"].hiw-card-visible {
    animation-delay: 0.36s;
}

/* --- Chat Bubbles (Step 03) --- */
.hiw-chat-row {
    position: absolute;
    display: flex;
    align-items: flex-end;
    gap: 12px;
    opacity: 1;
    /* Wrapper is always visible, children animate in */
}

.hiw-chat-bubble {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.05);
    opacity: 0;
    /* Hidden initially */
}

.chat-pfp {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    opacity: 0;
    /* Hidden initially */
    transform: scale(0);
}

.chat-left .chat-pfp {
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.chat-right .chat-pfp {
    border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.chat-left .hiw-chat-bubble {
    border-bottom-left-radius: 4px;
    transform-origin: left bottom;
}

.chat-right .hiw-chat-bubble {
    border-bottom-right-radius: 4px;
    transform-origin: right bottom;
}

.hiw-chat-green {
    background: linear-gradient(135deg, #a3ff12, #78e600);
    color: #1a1a1a;
    border: none;
}

.hiw-chat-white {
    background: #ffffff;
    color: #333;
}

/* The rows continuously float */
.hiw-card.hiw-in-view .chat-left {
    animation: hiwFloatLeft 4.5s ease-in-out 0s infinite;
}

.hiw-card.hiw-in-view .chat-right {
    animation: hiwFloatRight 4s ease-in-out 0s infinite;
}

/* Staggered Pop Animations */
.hiw-card.hiw-in-view .chat-left .chat-pfp {
    animation: hiwPfpPop 0.5s cubic-bezier(0.34, 1.8, 0.64, 1) 0.15s both;
}

.hiw-card.hiw-in-view .chat-left .hiw-chat-bubble {
    animation: hiwBubblePopLeft 0.5s cubic-bezier(0.34, 1.8, 0.64, 1) 0.4s both;
}

.hiw-card.hiw-in-view .chat-right .chat-pfp {
    animation: hiwPfpPop 0.5s cubic-bezier(0.34, 1.8, 0.64, 1) 0.9s both;
}

.hiw-card.hiw-in-view .chat-right .hiw-chat-bubble {
    animation: hiwBubblePopRight 0.5s cubic-bezier(0.34, 1.8, 0.64, 1) 1.15s both;
}

@keyframes hiwPfpPop {
    0% {
        opacity: 0;
        transform: scale(0);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes hiwBubblePopLeft {
    0% {
        opacity: 0;
        transform: scale(0) rotate(15deg);
    }

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

@keyframes hiwBubblePopRight {
    0% {
        opacity: 0;
        transform: scale(0) rotate(-15deg);
    }

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

@keyframes hiwFloatLeft {

    0%,
    100% {
        transform: translateY(0) rotate(2deg);
    }

    50% {
        transform: translateY(-8px) rotate(2deg);
    }
}

@keyframes hiwFloatRight {

    0%,
    100% {
        transform: translateY(0) rotate(-3deg);
    }

    50% {
        transform: translateY(-8px) rotate(-3deg);
    }
}

/* --- File Chips (Step 04) --- */
.hiw-file-chip {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 26px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 16px;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--dark);
    white-space: nowrap;
    position: absolute;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
    opacity: 0;
}

.hiw-file-chip svg {
    width: 22px;
    height: 22px;
}

.hiw-publish-chip {
    display: inline-flex;
    align-items: center;
    padding: 16px 36px;
    background: linear-gradient(135deg, #a3ff12, #6ddb00);
    border-radius: 16px;
    font-size: 1.25rem;
    font-weight: 800;
    color: #1a1a1a;
    white-space: nowrap;
    position: absolute;
    box-shadow: 0 15px 35px rgba(120, 230, 0, 0.4);
    opacity: 0;
}

/* Animations for Step 4 */
.hiw-card.hiw-in-view .hiw-float-1.hiw-file-chip {
    animation: hiwPopInChip1 0.5s cubic-bezier(0.34, 1.8, 0.64, 1) 0.15s both,
        hiwFloatChip1 4s ease-in-out 0.65s infinite;
}

.hiw-card.hiw-in-view .hiw-float-2.hiw-file-chip {
    animation: hiwPopInChip2 0.5s cubic-bezier(0.34, 1.8, 0.64, 1) 0.3s both,
        hiwFloatChip2 4.5s ease-in-out 0.8s infinite;
}

.hiw-card.hiw-in-view .hiw-float-3.hiw-publish-chip {
    animation: hiwPopInChip3 0.5s cubic-bezier(0.34, 1.8, 0.64, 1) 0.45s both,
        hiwFloatChip3 5s ease-in-out 0.95s infinite;
}

@keyframes hiwPopInChip1 {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(25px) rotate(0deg);
    }

    100% {
        opacity: 1;
        transform: scale(var(--step4-chip-scale)) translateY(0) rotate(var(--step4-chip1-rotate));
    }
}

@keyframes hiwFloatChip1 {

    0%,
    100% {
        transform: scale(var(--step4-chip-scale)) translateY(0) rotate(var(--step4-chip1-rotate));
    }

    50% {
        transform: scale(var(--step4-chip-scale)) translateY(-8px) rotate(var(--step4-chip1-rotate));
    }
}

@keyframes hiwPopInChip2 {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(25px) rotate(0deg);
    }

    100% {
        opacity: 1;
        transform: scale(var(--step4-chip-scale)) translateY(0) rotate(var(--step4-chip2-rotate));
    }
}

@keyframes hiwFloatChip2 {

    0%,
    100% {
        transform: scale(var(--step4-chip-scale)) translateY(0) rotate(var(--step4-chip2-rotate));
    }

    50% {
        transform: scale(var(--step4-chip-scale)) translateY(-8px) rotate(var(--step4-chip2-rotate));
    }
}

@keyframes hiwPopInChip3 {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(25px) rotate(0deg);
    }

    100% {
        opacity: 1;
        transform: scale(var(--step4-chip-scale)) translateY(0) rotate(var(--step4-chip3-rotate));
    }
}

@keyframes hiwFloatChip3 {

    0%,
    100% {
        transform: scale(var(--step4-chip-scale)) translateY(0) rotate(var(--step4-chip3-rotate));
    }

    50% {
        transform: scale(var(--step4-chip-scale)) translateY(-8px) rotate(var(--step4-chip3-rotate));
    }
}

/* ===== ABOUT ME SECTION ===== */
.about-me {
    padding: 20px 20px;
    background-color: var(--bg-primary);
    position: relative;
}

.about-card {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 60px;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% + 40px);
    z-index: 0;
    opacity: 0.05;
    pointer-events: none;
    background-image:
        repeating-linear-gradient(0deg,
            transparent, transparent 39px,
            rgba(0, 0, 0, 1) 39px, rgba(0, 0, 0, 1) 40px),
        repeating-linear-gradient(90deg,
            transparent, transparent 39px,
            rgba(0, 0, 0, 1) 39px, rgba(0, 0, 0, 1) 40px);
}

.about-content,
.about-stats {
    position: relative;
    z-index: 1;
}

.about-content .section-title {
    color: #ff5225;
    text-align: left;
    margin-bottom: 24px;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-family: 'Nunito', sans-serif;
    font-weight: 900;
    text-transform: none;
    letter-spacing: -0.02em;
}

.about-desc {
    font-size: clamp(0.95rem, 1.2vw, 1.05rem);
    color: var(--text-muted);
    line-height: 1.6;
    font-weight: 500;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.stat-item {
    display: flex;
    align-items: baseline;
    gap: 14px;
}

.stat-number {
    font-size: clamp(2.2rem, 4.5vw, 3.6rem);
    font-weight: 900;
    color: var(--accent);
    line-height: 1;
    font-family: 'Outfit', sans-serif;
    font-variant-numeric: tabular-nums;
    display: inline-flex;
    align-items: baseline;
    white-space: nowrap;
    width: auto;
    flex-shrink: 0;
}

.stat-plus {
    color: var(--accent);
    margin-left: 2px;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: capitalize;
    color: var(--dark);
    white-space: nowrap;
}

/* ===== FAQ SECTION ===== */
.faq {
    padding: 40px 20px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    content-visibility: auto;
    contain-intrinsic-size: auto 1200px;
}

.faq-banner-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 50px;
    z-index: 5;
}

.faq-banner {
    display: inline-block;
    padding: 8px 24px;
    font-family: 'Nunito', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.1;
    white-space: nowrap;
    letter-spacing: -0.03em;
    position: relative;
    background: transparent !important;
}

.faq-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    transform-origin: left;
    transform: scaleX(0);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.orange-banner {
    color: #ffffff;
    transform: rotate(-3deg);
    z-index: 1;
    /* Under the white banner */
}

.orange-banner::before {
    background: linear-gradient(90deg, #ff1a00, #ff4d00);
}

.white-banner {
    color: #111111;
    transform: rotate(2deg);
    margin-top: -8px;
    /* Reduced overlap effect */
    z-index: 2;
    /* On top of the orange banner */
}

.white-banner::before {
    background-color: #ffffff;
}

@keyframes bgWipe {
    0% {
        transform: scaleX(0);
    }

    100% {
        transform: scaleX(1);
    }
}

.faq-banner-container.start-anim .faq-banner::before {
    animation: bgWipe 0.4s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.faq-banner-container.start-anim .white-banner::before {
    animation-delay: 0.8s;
}

@keyframes bannerCharIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }

    55% {
        opacity: 1;
        transform: translateY(-3px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Characters are split by script.js. The animation is deliberately not
   filled forwards: the base .start-anim state is the visible state, so the
   text cannot get stuck invisible in Chromium after the animation ends. */
.faq-banner span.banner-char {
    display: inline-block;
    opacity: 0;
    transform: translateY(10px);
}

.faq-banner-container.start-anim span.banner-char {
    opacity: 1;
    transform: translateY(0);
    animation: bannerCharIn 0.45s cubic-bezier(0.25, 1, 0.5, 1) backwards;
}



.faq-container {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.02);
    text-align: left;
}

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

.accordion-item {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.accordion-header {
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.accordion-header h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-right: 20px;
}

.icon-toggle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--dark);
}

.accordion-item.active .icon-toggle {
    transform: rotate(45deg);
    /* Plus to X */
    background: var(--dark);
    color: white;
}

.accordion-content {
    max-height: 0;
    padding: 0 20px;
    color: var(--text-muted);
    transition: var(--transition);
    opacity: 0;
}

.accordion-item.active .accordion-content {
    max-height: 200px;
    padding: 0 20px 16px;
    opacity: 1;
}

.faq-sub-cta {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.avatar-stack {
    display: flex;
}

.avatar-stack img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3px solid var(--bg-secondary);
    margin-left: -15px;
}

.avatar-stack img:first-child {
    margin-left: 0;
}

/* ===== TESTIMONIALS ===== */
.testimonials[hidden] {
    display: none;
}

.testimonials {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
    content-visibility: auto;
    contain-intrinsic-size: auto 600px;
}

.testimonials-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.slider-controls {
    display: flex;
    gap: 10px;
}

.slider-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--card-bg);
    border: none;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
}

.slider-btn:hover {
    background: var(--dark);
    color: white;
}

.testimonials-slider {
    overflow: hidden;
    padding: 20px 0;
}

.slider-track {
    display: flex;
    gap: 30px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card {
    min-width: calc(100% - 40px);
    /* For mobile */
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

@media (min-width: 768px) {
    .testimonial-card {
        min-width: calc(50% - 15px);
    }
}

@media (min-width: 1024px) {
    .testimonial-card {
        min-width: calc(33.333% - 20px);
    }
}

.quote {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 40px;
}

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

.client-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.client-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.client-name {
    font-size: 1rem;
}

.client-role {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.rating {
    color: var(--accent);
    font-size: 0.8rem;
}

/* ===== FOOTER ===== */
footer {
    background: #ffffff;
    color: var(--dark);
    padding: 20px;
    max-width: 1200px;
    width: calc(100% - 40px);
    margin: 80px auto 40px;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .footer-container {
        grid-template-columns: 2.4fr 1fr 1.4fr;
    }
}

.footer-col {
    background: #f9f9fb;
    color: var(--dark);
    padding: 40px;
    border-radius: 16px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* Footer brand mark uses the same logo as the header */
.footer-col .text-dark {
    color: var(--dark);
}

.brand-col .logo {
    margin-bottom: 15px;
}

.brand-col .logo-icon {
    border-radius: 50%;
    background: url('assets/brand/logo.svg') center/cover no-repeat;
}

.footer-subtitle {
    color: #666;
    margin-top: 5px;
    font-size: 0.95rem;
    font-weight: 500;
}

.brand-divider {
    width: 24px;
    height: 2px;
    background: #ddd;
    margin: 25px 0;
}

.brand-tags {
    font-size: 0.7rem;
    letter-spacing: 3px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
}

/* Abstract shapes for brand-col */
.brand-bg-shapes {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 70%;
    pointer-events: none;
    z-index: 0;
}

.brand-bg-shapes::before,
.brand-bg-shapes::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.2) 100%);
    box-shadow: -10px 10px 30px rgba(0, 0, 0, 0.02);
    transform: rotate(20deg);
}

.brand-bg-shapes::before {
    top: 50%;
    margin-top: 34px;
    right: -185px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    --base-rot: 20deg;
    animation: floatWiggle 8s ease-in-out infinite 0.2s;
}

.brand-bg-shapes::after {
    top: 50%;
    margin-top: 96px;
    right: -220px;
    background: linear-gradient(135deg, rgba(235, 73, 38, 0.15) 0%, rgba(255, 255, 255, 0) 100%);
    transform: rotate(35deg);
    --base-rot: 35deg;
    animation: floatWiggle 8s ease-in-out infinite 0.5s;
}

/* Ensure text stays on top of shapes */
.brand-col>* {
    position: relative;
    z-index: 1;
}

/* Headings */
.footer-heading {
    font-family: inherit;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: #666;
    margin-bottom: 25px;
    text-transform: uppercase;
}

/* Links */
.links-col ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
    list-style: none;
}

.links-col a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    padding: 8px 0;
    transition: var(--transition);
}

.links-col a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.link-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.link-left i {
    font-size: 1.1rem;
    width: 20px;
}

.link-arrow {
    font-size: 0.9rem;
    opacity: 0.6;
}

/* Email Pill */
.email-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--dark);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition);
    align-self: flex-start;
}

.email-link .icon-box {
    width: 45px;
    height: 45px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: var(--transition);
}

.email-link:hover .icon-box {
    background: var(--accent);
    color: white;
}

.email-link:hover .email-text {
    color: var(--accent);
}

/* Contact Divider */
.contact-divider {
    width: 100%;
    height: 1px;
    background: rgba(0, 0, 0, 0.06);
    margin: 25px 0;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 45px;
    height: 45px;
    background: rgba(0, 0, 0, 0.03);
    color: var(--dark);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.social-icon:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(235, 73, 38, 0.2);
}

/* Copyright Pill */
.copyright {
    background: #f9f9fb;
    padding: 24px 35px;
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.03);
}

.copy-left p {
    color: #666;
    font-size: 0.95rem;
    font-weight: 500;
}

.developer-link {
    font-weight: bold;
    color: var(--accent);
    display: inline-block;
    transition: transform 0.3s ease, text-shadow 0.3s ease;
    text-decoration: none;
}

.developer-link:hover {
    transform: scale(1.1);
    text-shadow: 0 0 12px var(--accent);
}

.copy-right {
    border-left: 1px solid rgba(0, 0, 0, 0.1);
    padding-left: 25px;
}

.copy-right p {
    font-size: 0.75rem;
    letter-spacing: 3px;
    color: #666;
    font-weight: 700;
}

/* Footer Card Animations */
@keyframes floatWiggle {

    0%,
    100% {
        transform: translateY(0) rotate(var(--base-rot, 0deg));
    }

    50% {
        transform: translateY(-16px) rotate(calc(var(--base-rot, 0deg) + 3deg));
    }
}

/* ===== ANIMATIONS ===== */
@keyframes bounceInTrack {
    0% {
        transform: translate(-50%, -50%) scale(0.3);
        opacity: 0;
    }

    45% {
        transform: translate(-50%, -50%) scale(1.03);
        opacity: 0.9;
    }

    60% {
        transform: translate(-50%, -50%) scale(0.975);
        opacity: 1;
    }

    72% {
        transform: translate(-50%, -50%) scale(1.015);
        opacity: 1;
    }

    82% {
        transform: translate(-50%, -50%) scale(0.99);
        opacity: 1;
    }

    90% {
        transform: translate(-50%, -50%) scale(1.005);
        opacity: 1;
    }

    96% {
        transform: translate(-50%, -50%) scale(0.998);
        opacity: 1;
    }

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

@keyframes fadeSlideUp {
    0% {
        transform: translateY(30px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

#hero-tracks-left .circle-track,
#hero-tracks-right .circle-track,
#portfolio-tracks-left .circle-track,
#portfolio-tracks-right .circle-track {
    animation: bounceInTrack 1.3s ease-out both;
}

#hero-tracks-left .track-1,
#portfolio-tracks-left .track-1 {
    animation-delay: 0.1s;
}

#hero-tracks-left .track-2,
#portfolio-tracks-left .track-2 {
    animation-delay: 0.18s;
}

#hero-tracks-left .track-3,
#portfolio-tracks-left .track-3 {
    animation-delay: 0.26s;
}

#hero-tracks-right .track-1,
#portfolio-tracks-right .track-1 {
    animation-delay: 0.14s;
}

#hero-tracks-right .track-2,
#portfolio-tracks-right .track-2 {
    animation-delay: 0.22s;
}

#hero-tracks-right .track-3,
#portfolio-tracks-right .track-3 {
    animation-delay: 0.3s;
}

.hero-content>* {
    animation: fadeSlideUp 0.8s ease-out both;
}

/* No transform animation on .portfolio: a filled transform animation on the
   section interferes with the marquee's composited layers in Chromium. */

.hero-content .badge {
    animation-delay: 0.6s;
}

.hero-content .hero-title {
    animation-delay: 0.8s;
}

.hero-content .hero-subtitle {
    animation-delay: 1.0s;
}

.hero-content .hero-cta {
    animation-delay: 1.2s;
}

.hero-content .trust-badge {
    animation-delay: 1.4s;
}

/* Lazy Animation Styles */
.lazy-anim {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1), transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: opacity, transform;
}

.lazy-anim.in-view {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.header {
    animation: fadeIn 0.8s ease-out both;
    animation-delay: 0.2s;
}

/* ===== HANDWRITTEN ANIMATIONS ===== */
@keyframes arrowSlideFade {
    0% {
        transform: translateX(-20px);
        opacity: 0;
        filter: blur(5px);
    }

    100% {
        transform: translateX(0);
        opacity: 1;
        filter: blur(0px);
    }
}

@keyframes arrowSlideDownFade {
    0% {
        transform: translateY(-20px);
        opacity: 0;
        filter: blur(5px);
    }

    100% {
        transform: translateY(0);
        opacity: 1;
        filter: blur(0px);
    }
}

@keyframes letterBounceFade {
    0% {
        transform: translateY(10px);
        opacity: 0;
        filter: blur(5px);
    }

    50% {
        transform: translateY(-3px);
        opacity: 1;
        filter: blur(0px);
    }

    100% {
        transform: translateY(0);
        opacity: 1;
        filter: blur(0px);
    }
}

.handwriting-arrow {
    opacity: 0;
}

.handwriting-arrow.animate {
    animation: arrowSlideFade 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}



.handwriting-text span {
    display: inline-block;
    opacity: 0;
}

.handwriting-text.animate span {
    animation: letterBounceFade 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* ===== PORTFOLIO GRID (MOBILE REPLACEMENT) ===== */
.portfolio-heading {
    display: none;
}

.portfolio-grid {
    display: none;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0 16px;
}

.portfolio-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    padding: 80px 24px;
    color: var(--text-muted);
}
.portfolio-empty[hidden] { display: none; }
.portfolio-empty i { font-size: 30px; color: var(--accent); margin-bottom: 4px; }
.portfolio-empty h3 { font-size: 1.1rem; color: var(--dark); }
.portfolio-empty p { font-size: 0.9rem; }

/* ===== IMAGE / POSTER PROTECTION (PREVENT LONG-PRESS SAVE) ===== */
img,
.reel-poster,
.reel-card {
    -webkit-touch-callout: none !important;
    /* Disables iOS long-press context menu (Save Image) */
    -webkit-user-select: none !important;
    -khtml-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    -webkit-user-drag: none !important;
    /* Disables dragging image to save in WebKit/Blink */
}

.portfolio .reel-poster {
    pointer-events: none !important;
    /* Prevents direct tap/hold targeting on portfolio images */
}

.thumb-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    border-radius: 16px;
    background: linear-gradient(90deg, #e0e0e0 25%, #f5f5f5 50%, #e0e0e0 75%);
    background-size: 200% 100%;
    animation: skeletonLoading 1.5s infinite linear;
    overflow: hidden;
}

.thumb-wrapper .reel-card {
    width: 100%;
    height: 100%;
    border-radius: 16px;
}

@keyframes skeletonLoading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.grid-thumb-hidden {
    display: none;
}

.load-more-btn {
    display: none;
    margin: 20px auto 8px;
    padding: 12px 32px;
    font-size: 0.9rem;
}

/* ===== MOBILE OPTIMIZATIONS (max-width: 768px) ===== */
@media (max-width: 768px) {

    /* --- Strip heavy features --- */
    .hero-bg-container {
        display: none !important;
    }

    /* Hide logo image smoothly by default on mobile, show when scrolled */
    .header:not(.scrolled) .logo-img-wrapper {
        max-width: 0;
        opacity: 0;
        margin-right: -10px; /* Offset the flex gap */
        overflow: hidden;
        transform: scale(0);
    }

    /* Shrink the scrolled bar more tightly on mobile */
    .header.scrolled {
        max-width: 280px;
    }

    /* Keep hero text slide-up animation like desktop, with smaller distance */
    .hero-content>* {
        animation: fadeSlideUp 0.7s ease-out both !important;
    }

    .hero-content .badge {
        animation-delay: 0.2s !important;
    }

    .hero-content .hero-title {
        animation-delay: 0.35s !important;
    }

    .hero-content .hero-subtitle {
        animation-delay: 0.5s !important;
    }

    .hero-content .hero-cta {
        animation-delay: 0.65s !important;
    }

    .hero-content .trust-badge {
        animation-delay: 0.8s !important;
    }

    /* Make all containers rigid (no fade-up) on mobile */
    .portfolio {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    /* --- How It Works Responsive (Moved to 850px query) --- */

    .lazy-anim {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .header {
        animation: none;
        opacity: 1;
    }

    /* Remove glassmorphism / backdrop-filter */
    .hero,
    .portfolio {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(255, 255, 255, 0.92);
    }

    /* --- Navigation --- */
    .header {
        top: 10px;
        width: 93%;
    }

    .nav-container {
        padding: 6px 6px 6px 16px;
    }

    .logo {
        font-size: 1rem;
        gap: 0;
    }

    .nav-btn {
        padding: 10px 16px;
        font-size: 0.8rem;
    }

    .mobile-nav {
        padding: 14px;
        border-radius: var(--radius-md);
    }

    .mobile-nav ul {
        gap: 8px;
    }

    .mobile-nav a {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    /* --- Hero Section --- */
    .hero {
        margin: 8px;
        border-radius: 24px;
        padding: 72px 16px 24px;
    }

    .badge {
        font-size: 0.6rem;
        padding: 4px 10px;
        margin-bottom: 10px;
    }

    .hero-title {
        font-size: 1.55rem !important;
        margin-bottom: 10px;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 0.8rem;
        margin-bottom: 18px;
        line-height: 1.5;
    }

    .btn-lg {
        padding: 12px 28px;
        font-size: 0.9rem;
    }

    .handwritten-annotation {
        display: none;
    }

    .hero-cta {
        margin-bottom: 18px;
    }

    .trust-badge {
        font-size: 0.6rem;
        gap: 8px;
    }

    .trust-badge .avatar {
        width: 22px;
        height: 22px;
    }

    /* --- Hero paper-grid background --- */
    .hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: calc(100% + 40px);
        z-index: 1;
        opacity: 0.12;
        pointer-events: none;
        background-image:
            repeating-linear-gradient(0deg,
                transparent, transparent 39px,
                rgba(0, 0, 0, 0.3) 39px, rgba(0, 0, 0, 0.3) 40px),
            repeating-linear-gradient(90deg,
                transparent, transparent 39px,
                rgba(0, 0, 0, 0.3) 39px, rgba(0, 0, 0, 0.3) 40px);
        animation: gridScrollUp 12s linear infinite;
    }

    @keyframes gridScrollUp {
        0% {
            transform: translateY(0);
        }

        100% {
            transform: translateY(-40px);
        }
    }

    /* --- Portfolio Section --- */
    .portfolio {
        margin: 8px;
        border-radius: 24px;
        padding: 24px 0;
        min-height: auto;
    }

    .marquee-container {
        display: none !important;
    }

    .portfolio-heading {
        display: block;
        text-align: center;
        font-size: 1.2rem;
        font-weight: 800;
        margin-bottom: 16px;
        padding: 0 16px;
        color: var(--dark);
    }

    .portfolio-grid {
        display: grid;
        min-height: 400px;
        align-content: start;
    }

    .thumb-wrapper {
        opacity: 0;
        transform: translateY(22px);
        transition: opacity 0.45s ease, transform 0.45s ease;
    }

    .thumb-wrapper.reel-visible {
        opacity: 1;
        transform: translateY(0);
    }

    .load-more-btn {
        display: flex;
        width: max-content;
        margin: 20px auto 40px auto;
    }

    /* --- How It Works Section --- */
    .how-it-works {
        padding: 50px 16px;
    }

    .hiw-header {
        margin-bottom: 32px;
    }

    .hiw-title {
        font-size: clamp(1.4rem, 5vw, 1.8rem);
    }

    .hiw-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .hiw-card {
        padding: 18px 14px 16px;
        border-radius: 16px;
    }

    /* --- About Me Section --- */
    .about-card {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 20px;
    }

    .about-desc {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .stat-item {
        flex-direction: row;
        align-items: baseline;
        gap: 8px;
    }

    .stat-number {
        min-width: auto;
    }

    .stat-label {
        font-size: 0.85rem;
        font-weight: 800;
    }

    /* --- FAQ Section --- */
    .faq {
        padding: 24px 12px;
        contain-intrinsic-size: auto 800px;
    }

    .faq-banner-container {
        margin-bottom: 28px;
    }

    .faq-banner {
        font-size: clamp(1.1rem, 5vw, 1.5rem);
        padding: 6px 16px;
    }

    .faq-container {
        padding: 18px 14px;
        border-radius: var(--radius-md);
    }



    .accordion {
        gap: 10px;
    }

    .accordion-header {
        padding: 14px 16px;
    }

    .accordion-header h3 {
        font-size: 0.82rem;
        margin-right: 12px;
    }

    .icon-toggle {
        width: 28px;
        height: 28px;
        flex-shrink: 0;
    }

    .icon-toggle i {
        font-size: 0.7rem;
    }

    .accordion-content {
        font-size: 0.82rem;
    }

    .accordion-item.active .accordion-content {
        padding: 0 16px 16px;
    }

    .faq-sub-cta {
        margin-top: 24px;
        gap: 10px;
    }

    .faq-sub-cta h4 {
        font-size: 0.85rem;
    }

    .faq-sub-cta .btn {
        padding: 10px 24px;
        font-size: 0.85rem;
    }

    .avatar-stack img {
        width: 36px;
        height: 36px;
        border-width: 2px;
    }

    /* --- Testimonials Section --- */
    .testimonials {
        padding: 40px 16px;
        contain-intrinsic-size: auto 350px;
    }

    .testimonials>.badge {
        font-size: 0.6rem;
    }

    .section-title {
        font-size: 1.2rem;
    }

    .testimonials-header {
        margin-bottom: 16px;
    }

    .slider-controls {
        gap: 6px;
    }

    .slider-btn {
        width: 34px;
        height: 34px;
        font-size: 0.75rem;
    }

    .testimonials-slider {
        padding: 10px 0;
    }

    .slider-track {
        gap: 12px;
    }

    .testimonial-card {
        min-width: calc(50% - 6px);
        padding: 16px;
        border-radius: var(--radius-md);
    }

    .quote {
        font-size: 0.72rem;
        margin-bottom: 16px;
        line-height: 1.5;
    }

    .testimonial-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .client-info {
        gap: 8px;
    }

    .client-avatar {
        width: 28px;
        height: 28px;
    }

    .client-name {
        font-size: 0.75rem;
    }

    .client-role {
        font-size: 0.65rem;
    }

    .rating {
        font-size: 0.6rem;
    }

    /* --- Footer --- */
    footer {
        padding: 40px 20px 20px;
        margin: 8px 8px 16px 8px;
        width: auto;
        border-radius: 24px;
    }

    .footer-container {
        gap: 16px;
        margin-bottom: 30px;
    }

    .footer-col {
        padding: 24px;
    }

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

    .footer-subtitle {
        font-size: 0.8rem;
    }

    .brand-tags {
        font-size: 0.6rem;
    }

    .footer-heading {
        font-size: 0.65rem;
        margin-bottom: 16px;
    }

    .links-col ul li,
    .links-col a,
    .email-link {
        font-size: 0.85rem;
    }

    .email-link .icon-box,
    .social-icon {
        width: 38px;
        height: 38px;
        border-radius: 10px;
        font-size: 1rem;
    }

    .copyright {
        padding: 16px;
        border-radius: 12px;
        justify-content: center;
    }

    .copy-right {
        display: none;
    }

    .copy-left p {
        font-size: 0.8rem;
        text-align: center;
    }
}
/* ===== FULL-SCREEN VIDEO MODAL ===== */
html.modal-open,
html.modal-open body {
    overflow: hidden !important;
    height: 100%;
}

html.modal-open body {
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
}

.video-modal {
    position: fixed;
    inset: 0;
    z-index: 6000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.video-modal.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.video-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 8, 10, 0.84);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.video-modal-window {
    position: relative;
    z-index: 2;
    width: min(94vw, 420px, calc((100dvh - 160px) * 9 / 16));
    max-height: calc(100dvh - 40px);
    display: flex;
    flex-direction: column;
    background: #0c0c0f;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55);
    transform: translateY(18px) scale(0.97);
    transition: transform 0.32s cubic-bezier(0.2, 0.9, 0.25, 1);
}

.video-modal.open .video-modal-window {
    transform: translateY(0) scale(1);
}

.video-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 15px 16px 13px 18px;
    flex-shrink: 0;
    background: #0c0c0f;
}

.video-modal-heading {
    min-width: 0;
}

.video-modal-kicker {
    display: block;
    margin-bottom: 3px;
    color: #ff7350;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.video-modal-heading h3 {
    margin: 0;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.video-modal-close {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.video-modal-close:hover {
    background: var(--accent);
    transform: rotate(90deg);
}

.video-modal-stage {
    position: relative;
    flex: 0 0 auto;
    aspect-ratio: 9 / 16;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    overscroll-behavior: contain;
}

.video-modal-stage video {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: contain;
    background: #000;
    outline: none;
}

.video-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    z-index: 3;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.video-arrow:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.video-arrow:active {
    transform: translateY(-50%) scale(0.94);
}

.video-arrow.prev { left: 8px; }
.video-arrow.next { right: 8px; }

.video-modal.single .video-arrow {
    display: none;
}

.video-modal-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 17px 12px;
    flex-shrink: 0;
    background: #0c0c0f;
    color: rgba(255, 255, 255, 0.5);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.video-counter {
    color: rgba(255, 255, 255, 0.78);
    font-variant-numeric: tabular-nums;
}

.video-modal-hint {
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.hint-keys {
    display: inline-grid;
    place-items: center;
    min-width: 19px;
    height: 18px;
    padding: 0 4px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 9px;
    line-height: 1;
}

.hint-dot {
    opacity: 0.5;
}

@media (max-width: 768px) {
    .video-modal {
        padding: 10px;
    }

    .video-modal-window {
        width: min(94vw, calc((100dvh - 150px) * 9 / 16));
        max-height: calc(100dvh - 20px);
        border-radius: 20px;
    }

    .video-modal-head {
        padding: 12px 12px 10px 15px;
    }

    .video-modal-heading h3 {
        font-size: 14px;
    }

    .video-modal-close {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }

    .video-arrow {
        width: 34px;
        height: 34px;
        font-size: 11px;
    }

    .video-arrow.prev { left: 6px; }
    .video-arrow.next { right: 6px; }

    .video-modal-foot {
        padding: 9px 14px 10px;
    }

    .video-modal-hint {
        display: none;
    }
}
