/* Global Styles & Variables */
:root {
    --bg-dark: #05070a;
    --bg-surface: #0a0d14;
    --bg-card: #0f172a;
    --bg-glass: rgba(10, 13, 20, 0.75);
    --accent-blue: #00c2ff;
    --accent-blue-light: #60efff;
    --accent-blue-glow: rgba(0, 194, 255, 0.5);
    --accent-purple: #0055ff; /* Changed from purple to deep blue */
    --accent-purple-glow: rgba(0, 85, 255, 0.5);
    --accent-cyan: #06b6d4;
    --gradient-primary: linear-gradient(135deg, #00c2ff 0%, #0055ff 100%);
    --gradient-premium: linear-gradient(135deg, #00c2ff, #0055ff, #00c2ff);
    --gradient-glow: linear-gradient(135deg,
            rgba(0, 194, 255, 0.2) 0%,
            rgba(0, 85, 255, 0.2) 100%);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    --transition-fast: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    --font-main: 'Cairo', sans-serif;
    --font-display: 'Plus Jakarta Sans', 'Cairo', sans-serif;
    --radius-card: 22px;
    --radius-pill: 999px;
    --shadow-glow-blue: 0 0 40px rgba(0, 194, 255, 0.35);
    --shadow-glow-purple: 0 0 40px rgba(0, 85, 255, 0.35);
    --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-blue) var(--bg-surface);
    scroll-padding-top: 80px;
    /* Offset for fixed navbar */
}

html::-webkit-scrollbar {
    width: 6px;
}

html::-webkit-scrollbar-track {
    background: var(--bg-surface);
}

html::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 3px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.7;
    overflow-x: hidden;
    /* Global dot-grid pattern + ambient glows */
    background-image:
        /* Dot grid pattern */
        radial-gradient(circle, rgba(0, 194, 255, 0.13) 1px, transparent 1px),
        /* Ambient top glow */
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 194, 255, 0.15) 0%, transparent 60%),
        /* Ambient bottom glow */
        radial-gradient(ellipse 60% 40% at 80% 100%, rgba(0, 85, 255, 0.08) 0%, transparent 60%);
    background-size:
        30px 30px,
        100% 100%,
        100% 100%;
    background-attachment: fixed;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.blue-text {
    color: var(--accent-blue-light);
    text-shadow: 0 0 20px var(--accent-blue-glow);
}

.purple-text {
    color: var(--accent-purple);
    text-shadow: 0 0 20px var(--accent-purple-glow);
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Section Title — premium style with underline accent */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 14px;
    letter-spacing: -0.5px;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
    margin: 12px auto 0;
    box-shadow: var(--shadow-glow-blue);
}

.section-title p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-top: 8px;
}

/* Glassmorphism Utility — premium version */
.glass {
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(20px) saturate(200%);
    -webkit-backdrop-filter: blur(20px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-card);
    box-shadow:
        var(--shadow-card),
        inset 0 1px 1px rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.glass:hover {
    background: rgba(15, 23, 42, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Navbar — ultra clean & premium floating capsule */
.navbar {
    position: fixed;
    top: 15px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 90%;
    max-width: 1100px;
    padding: 10px 0;
    z-index: 1000;
    background: rgba(10, 13, 20, 0.75);
    backdrop-filter: blur(20px) saturate(200%);
    -webkit-backdrop-filter: blur(20px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.5),
        inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.45rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.5px;
    font-family: var(--font-display);
}

.logo .blue-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.nav-links {
    display: flex;
    gap: 35px;
    align-items: center;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
    position: relative;
    transition: var(--transition);
    letter-spacing: 0.3px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-links a:hover {
    color: #fff;
    background: none;
    -webkit-text-fill-color: unset;
}

.nav-links a:hover::after {
    transform: scaleX(1);
}

/* Compact button inside navbar */
.nav-links .btn-primary {
    padding: 8px 18px;
    font-size: 0.85rem;
    color: #ffffff !important; /* Ensure white text is visible over the gradient */
    box-shadow: 0 4px 15px rgba(0, 194, 255, 0.3);
}

.nav-links .btn-primary:hover {
    color: #ffffff !important;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 194, 255, 0.5);
}

.nav-links .btn-primary::after {
    display: none; /* Disable underline hover effect for the button */
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.4rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.hamburger:hover {
    color: #fff;
}


/* Hero Section */
.hero-section {
    padding: 170px 0 100px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 100vh;
}

/* Creative Dotted Grid Background Pattern */
.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(rgba(0, 194, 255, 0.12) 1.5px, transparent 1.5px),
        radial-gradient(rgba(0, 85, 255, 0.06) 1.5px, transparent 1.5px);
    background-size: 30px 30px;
    background-position: 0 0, 15px 15px;
    mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
    z-index: 0;
    pointer-events: none;
}

/* Atmospheric background orbs */
.hero-bg-accent {
    position: absolute;
    top: 30%;
    left: 15%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 700px;
    background: radial-gradient(circle,
            rgba(0, 194, 255, 0.12) 0%,
            rgba(0, 85, 255, 0.06) 50%,
            transparent 70%);
    z-index: 0;
    filter: blur(60px);
    animation: orb-drift 12s ease-in-out infinite;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle,
            rgba(0, 85, 255, 0.08) 0%,
            transparent 70%);
    filter: blur(80px);
    z-index: 0;
    animation: orb-drift 16s ease-in-out infinite reverse;
}

@keyframes orb-drift {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        transform: translate(-50%, -55%) scale(1.08);
    }
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    position: relative;
    z-index: 1;
}

/* Text Side */
.hero-text {
    flex: 1;
    max-width: 600px;
    text-align: right;
}

.hero-text h3 {
    font-size: 1rem;
    margin-bottom: 18px;
    color: var(--accent-blue-light);
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.9;
}

.hero-text h1 {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 24px;
    color: var(--text-primary);
    letter-spacing: -1px;
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 44px;
    line-height: 2;
    max-width: 520px;
}

.hero-btns {
    display: flex;
    gap: 16px;
    justify-content: flex-start;
}

/* Image Side */
.hero-image-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-img-wrapper {
    position: relative;
    width: 400px;
    height: 400px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    overflow: hidden;
    /* Layered ring glow */
    box-shadow:
        0 0 0 2px rgba(0, 194, 255, 0.3),
        0 0 0 14px rgba(0, 194, 255, 0.07),
        0 0 60px rgba(0, 194, 255, 0.2),
        0 30px 80px rgba(0, 0, 0, 0.5);
    animation: morph 9s ease-in-out infinite, float 7s ease-in-out infinite;
    background: linear-gradient(135deg, #111827, #07090f);
}

/* Creative Badges & Layout Elements */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(0, 194, 255, 0.08);
    border: 1px solid rgba(0, 194, 255, 0.2);
    border-radius: var(--radius-pill);
    margin-bottom: 20px;
    margin-left: auto; /* Align properly in RTL layout */
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-blue);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-blue-glow);
    animation: pulse-dot 1.5s infinite alternate;
}

@keyframes pulse-dot {
    0% { opacity: 0.4; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1.2); }
}

.badge-text {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-blue);
}

.floating-badge {
    position: absolute;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-card);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    z-index: 10;
    transition: var(--transition);
}

.floating-badge:hover {
    transform: translateY(-5px);
    border-color: var(--accent-blue);
    box-shadow: 0 20px 40px rgba(0, 194, 255, 0.25);
}

.floating-badge i {
    font-size: 1.5rem;
    color: var(--accent-blue);
}

.floating-badge h4 {
    font-size: 1.2rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    margin-bottom: 2px;
    font-family: var(--font-display);
}

.floating-badge span {
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.badge-top {
    top: 10%;
    right: -30px;
    animation: float-badge-1 6s ease-in-out infinite;
}

.badge-bottom {
    bottom: 10%;
    left: -30px;
    animation: float-badge-2 7s ease-in-out infinite;
}

@keyframes float-badge-1 {
    0%, 100% { transform: translateY(0) rotate(2deg); }
    50% { transform: translateY(-12px) rotate(-1deg); }
}

@keyframes float-badge-2 {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-15px) rotate(1deg); }
}

@media (max-width: 900px) {
    .badge-top {
        right: 0px;
    }
    .badge-bottom {
        left: 0px;
    }
}

@media (max-width: 500px) {
    .floating-badge {
        padding: 8px 14px;
        gap: 10px;
    }
    .floating-badge i {
        font-size: 1.1rem;
    }
    .floating-badge h4 {
        font-size: 1rem;
    }
    .floating-badge span {
        font-size: 0.7rem;
    }
}

.hero-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    transition: transform 0.6s ease;
}

/* Glow Effect behind image */
.hero-img-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 130%;
    height: 130%;
    background: radial-gradient(circle,
            rgba(0, 194, 255, 0.3) 0%,
            rgba(0, 85, 255, 0.15) 40%,
            transparent 70%);
    z-index: -1;
    border-radius: 50%;
    animation: pulse-glow 4s ease-in-out infinite alternate;
    filter: blur(20px);
}

/* Animations */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-18px);
    }
}

@keyframes morph {

    0%,
    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }

    33% {
        border-radius: 70% 30% 40% 60% / 60% 40% 60% 40%;
    }

    66% {
        border-radius: 50% 50% 30% 70% / 40% 60% 40% 60%;
    }
}

@keyframes pulse-glow {
    0% {
        opacity: 0.4;
        transform: translate(-50%, -50%) scale(1);
    }

    100% {
        opacity: 0.9;
        transform: translate(-50%, -50%) scale(1.25);
    }
}

/* Buttons — premium high-end style */
.btn-primary,
.btn-secondary {
    padding: 14px 38px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-family: var(--font-main);
    transition: var(--transition);
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    z-index: 1;
}

/* Shimmer effect for all buttons */
.btn-primary::before,
.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent);
    transition: 0.5s;
    z-index: -1;
}

.btn-primary:hover::before,
.btn-secondary:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    background-size: 200% auto;
    color: #fff;
    box-shadow:
        0 4px 25px rgba(0, 102, 255, 0.45),
        inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.03);
    background-position: right center;
    box-shadow:
        0 12px 40px rgba(0, 102, 255, 0.6),
        inset 0 1px 2px rgba(255, 255, 255, 0.4);
}

.btn-primary:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    backdrop-filter: blur(12px);
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--accent-blue-light);
    transform: translateY(-3px);
    box-shadow:
        0 8px 30px rgba(0, 102, 255, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.btn-secondary i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.btn-secondary:hover i {
    transform: translateX(-5px);
}

/* Auto-Scrolling Marquee Strip */
.marquee-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 30px 0 35px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: transparent;
}

/* Left & Right fade overlays */
.marquee-fade-left,
.marquee-fade-right {
    position: absolute;
    top: 0;
    width: 180px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.marquee-fade-left {
    left: 0;
    background: linear-gradient(to right, var(--bg-dark) 0%, transparent 100%);
}

.marquee-fade-right {
    right: 0;
    background: linear-gradient(to left, var(--bg-dark) 0%, transparent 100%);
}

.marquee-track {
    width: 100%;
    overflow: hidden;
}

/* Row 1 → moves right to left */
.marquee-inner.row-1 {
    display: flex;
    gap: 12px;
    width: max-content;
    animation: marquee-ltr 35s linear infinite;
}

/* Row 2 → moves left to right (reverse) */
.marquee-inner.row-2 {
    display: flex;
    gap: 12px;
    width: max-content;
    animation: marquee-rtl 40s linear infinite;
}

.marquee-inner img {
    height: 200px;
    width: auto;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
    pointer-events: none;
    opacity: 0.85;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.marquee-inner img:hover {
    opacity: 1;
    transform: scale(1.03);
    pointer-events: auto;
}

@keyframes marquee-ltr {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes marquee-rtl {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .marquee-inner img {
        height: 130px;
    }

    .marquee-fade-left,
    .marquee-fade-right {
        width: 60px;
    }

    .marquee-section {
        gap: 8px;
    }
}


/* ════════════════════════════════════════════
   Moving Gallery – Two Rows Opposite Direction
   ════════════════════════════════════════════ */
.moving-gallery {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 90px 0 100px;
    background: linear-gradient(180deg,
            #060810 0%,
            #080c14 40%,
            #080c14 60%,
            #060810 100%);
    display: flex;
    flex-direction: column;
    gap: 22px;
}

/* Edge fades */
.mg-fade {
    position: absolute;
    top: 0;
    width: 220px;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

.mg-fade--left {
    left: 0;
    background: linear-gradient(to right,
            #060810 0%,
            transparent 100%);
}

.mg-fade--right {
    right: 0;
    background: linear-gradient(to left,
            #060810 0%,
            transparent 100%);
}

/* Each row clips overflow */
.mg-row {
    width: 100%;
    overflow: hidden;
}

/* The scrolling strip */
.mg-track {
    display: flex;
    gap: 22px;
    width: max-content;
    will-change: transform;
}

/* Row 1 → right to left */
.mg-track--fwd {
    animation: mg-scroll-fwd 38s linear infinite;
}

/* Row 2 → left to right */
.mg-track--rev {
    animation: mg-scroll-rev 42s linear infinite;
}

/* Each image card */
.mg-item {
    flex-shrink: 0;
    border-radius: 14px;
    overflow: hidden;
    /* 16:9 container */
    height: 210px;
    aspect-ratio: 16 / 9;
    background: #111520;
}

.mg-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    /* No distortion – maintain full image */
    transition: transform 0.4s ease, opacity 0.4s ease;
    opacity: 0.88;
}

.mg-item:hover img {
    opacity: 1;
    transform: scale(1.04);
}

/* ── Keyframes ── */
@keyframes mg-scroll-fwd {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes mg-scroll-rev {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .moving-gallery {
        padding: 50px 0 60px;
        gap: 14px;
    }

    .mg-item {
        height: 140px;
    }

    .mg-fade {
        width: 70px;
    }
}



/* ════════════════════════════════════════
   Stats / Numbers Section
   ════════════════════════════════════════ */
.stats-section {
    padding: 80px 0;
    position: relative;
    background: linear-gradient(to bottom,
            var(--bg-dark) 0%,
            rgba(0, 194, 255, 0.02) 50%,
            var(--bg-dark) 100%);
}


.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: stretch;
}

.stat-item {
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    text-align: right;
    border-radius: var(--radius-card);
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    opacity: 0;
    transform: translateY(30px);
}

.stat-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Animations delays for cards when scrolled into view */
.stat-item:nth-child(1) {
    transition-delay: 0s;
}

.stat-item:nth-child(2) {
    transition-delay: 0.15s;
}

.stat-item:nth-child(3) {
    transition-delay: 0.3s;
}

.stat-item:hover {
    transform: translateY(-8px);
    border-color: var(--accent-blue);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(0, 194, 255, 0.15);
}

.stat-item:nth-child(2):hover {
    border-color: var(--accent-purple);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(0, 85, 255, 0.2);
}

.stat-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 194, 255, 0.08);
    border: 1px solid rgba(0, 194, 255, 0.2);
    font-size: 1.6rem;
    color: var(--accent-blue);
    flex-shrink: 0;
    transition: var(--transition);
}

.stat-item:nth-child(2) .stat-icon-wrapper {
    background: rgba(0, 85, 255, 0.08);
    border-color: rgba(0, 85, 255, 0.2);
    color: var(--accent-purple);
}

.stat-item:hover .stat-icon-wrapper {
    background: var(--gradient-primary);
    border-color: transparent;
    color: #fff;
    transform: scale(1.1) rotate(5deg);
}

.stat-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-number {
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    gap: 2px;
}

.counter {
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1.1;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: var(--font-main);
    filter: drop-shadow(0 0 12px rgba(0, 194, 255, 0.35));
}

.stat-item:nth-child(2) .counter {
    filter: drop-shadow(0 0 12px rgba(0, 85, 255, 0.35));
}

.stat-suffix {
    font-size: 1.8rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    margin-top: 4px;
}

/* Mobile responsive for stats */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stat-item {
        padding: 20px 25px;
    }

    .counter {
        font-size: 2.8rem;
    }

    .stat-suffix {
        font-size: 1.5rem;
    }
}

/* Projects Grid */
.projects-section {
    padding: 80px 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--bg-card);
    border-radius: var(--radius-card);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    position: relative;
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 20px var(--accent-blue-glow);
    border-color: var(--accent-blue);
}

.project-card:nth-child(even):hover {
    border-color: var(--accent-purple);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 20px var(--accent-purple-glow);
}

.project-img {
    height: 200px;
    background: #252a33;
    position: relative;
}

.placeholder-glow::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.project-info {
    padding: 20px;
}

.project-info h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.project-info span {
    color: var(--accent-blue);
    font-size: 0.9rem;
    font-weight: 600;
}

.view-more-container {
    text-align: center;
    margin-top: 40px;
}

/* Services Bento Layout */
.services-section {
    padding: 80px 0;
    background: linear-gradient(to bottom, var(--bg-dark), #0d121a);
}

.services-bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.service-bento-card {
    position: relative;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-card);
    padding: 36px 30px 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: all 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
    cursor: default;
}

.service-bento-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.45s ease;
}

.service-bento-card:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.service-bento-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 194, 255, 0.2);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(0, 194, 255, 0.06);
}

/* Accent card (first - highlighted) */
.service-bento-card--accent {
    background: linear-gradient(145deg,
        rgba(0, 85, 255, 0.12) 0%,
        rgba(0, 194, 255, 0.06) 60%,
        var(--bg-card) 100%);
    border-color: rgba(0, 194, 255, 0.2);
}

.service-bento-card--accent:hover {
    border-color: rgba(0, 194, 255, 0.45);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(0, 194, 255, 0.12);
}

/* Large step number */
.svc-number {
    position: absolute;
    top: 16px;
    left: 20px;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 3px;
    color: rgba(0, 194, 255, 0.3);
    font-family: var(--font-display);
}

/* Icon wrapper */
.svc-icon-wrap {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: rgba(0, 194, 255, 0.1);
    border: 1px solid rgba(0, 194, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-blue);
    transition: all 0.4s ease;
    flex-shrink: 0;
}

.service-bento-card:hover .svc-icon-wrap {
    background: var(--gradient-primary);
    border-color: transparent;
    color: #fff;
    transform: rotate(-6deg) scale(1.05);
}

/* Body */
.svc-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.svc-body h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.3;
}

.svc-body p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.7;
}

/* Feature list */
.svc-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.svc-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.83rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s;
}

.svc-features li i {
    color: var(--accent-blue);
    font-size: 0.75rem;
    flex-shrink: 0;
}

.service-bento-card:hover .svc-features li {
    color: rgba(255, 255, 255, 0.8);
}

/* Ambient glow blob */
.svc-glow {
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 194, 255, 0.12) 0%, transparent 70%);
    pointer-events: none;
    transition: opacity 0.4s;
    opacity: 0;
}

.service-bento-card:hover .svc-glow {
    opacity: 1;
}

/* Service Bento Card Highlight & Gauges */
.svc-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.svc-gauge-box {
    position: relative;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.radial-gauge {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 3.2;
}

.circle-fill {
    fill: none;
    stroke: var(--accent-blue);
    stroke-width: 3.2;
    stroke-linecap: round;
    transition: stroke-dasharray 1.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.service-bento-card--highlight .circle-fill {
    stroke: #00c2ff;
    filter: drop-shadow(0 0 6px rgba(0, 194, 255, 0.8));
}

.gauge-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.72rem;
    font-weight: 900;
    color: #fff;
    font-family: var(--font-display);
    white-space: nowrap;
}

/* Service Bento Card Highlight variant */
.service-bento-card--highlight {
    background: linear-gradient(145deg,
        rgba(0, 194, 255, 0.1) 0%,
        rgba(0, 85, 255, 0.06) 50%,
        var(--bg-card) 100%);
    border-color: rgba(0, 194, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 194, 255, 0.08);
}

.service-bento-card--highlight:hover {
    border-color: var(--accent-blue);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.5),
        0 0 35px rgba(0, 194, 255, 0.2);
}

/* Skill Meter & Progress Box */
.svc-skill-meter {
    margin-top: 8px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.3s ease;
}

.service-bento-card:hover .svc-skill-meter {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(0, 194, 255, 0.2);
}

.svc-skill-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 700;
}

.svc-skill-title {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-primary);
}

.svc-skill-badge {
    padding: 3px 8px;
    border-radius: var(--radius-pill);
    background: rgba(0, 194, 255, 0.1);
    color: var(--accent-blue-light);
    font-size: 0.72rem;
    font-weight: 700;
    border: 1px solid rgba(0, 194, 255, 0.2);
}

.badge-top-skill {
    background: linear-gradient(135deg, rgba(0, 194, 255, 0.2), rgba(0, 85, 255, 0.2));
    color: #00c2ff;
    border-color: rgba(0, 194, 255, 0.4);
    box-shadow: 0 0 10px rgba(0, 194, 255, 0.2);
}

/* Progress Bar Track & Fill */
.svc-progress-track {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-pill);
    overflow: hidden;
    position: relative;
}

.svc-progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-pill);
    position: relative;
    transition: width 1.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 0 12px rgba(0, 194, 255, 0.6);
}

.svc-fill-glow {
    position: absolute;
    top: 0;
    right: 0;
    width: 12px;
    height: 100%;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 8px #fff, 0 0 15px var(--accent-blue);
    opacity: 0.8;
}

/* Sparkline Bars Graphic */
.svc-sparkline {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 18px;
    padding-top: 4px;
}

.spark-bar {
    flex: 1;
    height: var(--h, 50%);
    background: rgba(0, 194, 255, 0.15);
    border-radius: 2px;
    transition: all 0.4s ease;
}

.service-bento-card:hover .spark-bar {
    background: var(--accent-blue);
    box-shadow: 0 0 6px rgba(0, 194, 255, 0.4);
}

@media (max-width: 900px) {
    .services-bento {
        grid-template-columns: 1fr;
    }
}


/* Testimonials */
.testimonials-section {
    padding: 80px 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    padding: 30px;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.client-avatar {
    width: 50px;
    height: 50px;
    background: #333;
    border-radius: 50%;
    border: 2px solid var(--accent-blue);
}

.client-info h4 {
    font-size: 1.1rem;
}

.client-info span {
    font-size: 0.85rem;
    color: var(--accent-blue);
}

.stars {
    color: #FFD700;
    margin-top: 15px;
    font-size: 0.9rem;
}

/* Footer & Contact */
.footer-section {
    padding: 80px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: linear-gradient(to top, #000, var(--bg-dark));
}

.social-links-large {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 35px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    border-radius: var(--radius-pill);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-btn:hover {
    transform: translateY(-5px) scale(1.05);
    color: #fff;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.social-btn.whatsapp:hover {
    background: #25D366;
    border-color: #25D366;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
}

.social-btn.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: transparent;
    box-shadow: 0 10px 25px rgba(220, 39, 67, 0.3);
}

.social-btn.telegram:hover {
    background: #0088cc;
    border-color: #0088cc;
    box-shadow: 0 10px 25px rgba(0, 136, 204, 0.3);
}

.copyright {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 50px;
}

/* Responsive */
@media (max-width: 900px) {
    .container {
        width: 95%;
    }

    .hero-content {
        flex-direction: column-reverse;
        /* Image breaks to top */
        text-align: center;
        padding-top: 40px;
        gap: 50px;
    }

    .hero-bg-accent {
        left: 50%;
    }

    .hero-text {
        text-align: center;
        max-width: 100%;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-img-wrapper {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 768px) {
    .navbar {
        width: 95%;
        top: 10px;
    }

    .navbar .container {
        padding: 0 20px;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 80%;
        max-width: 350px;
        background: var(--bg-surface);
        backdrop-filter: blur(25px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transition: 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
        z-index: 1000;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
        border-left: 1px solid var(--border-subtle);
    }

    .nav-links.nav-active {
        right: 0;
    }

    .hamburger {
        display: block;
        z-index: 1001;
        font-size: 1.6rem;
    }

    .hamburger.toggle {
        color: var(--accent-blue-light);
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .slider-container {
        flex-direction: column;
        gap: 20px;
    }

    .slider-wrapper {
        width: 100%;
        height: 250px;
    }

    .slider-btn {
        transform: rotate(90deg);
        margin: 10px 0;
    }

    .projects-grid,
    .services-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

/* Photo Manipulation Preview Animation on Main Page */
.manipulation-preview {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.preview-before,
.preview-after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-before {
    z-index: 1;
}

.preview-after {
    z-index: 2;
    clip-path: inset(0 100% 0 0);
    animation: preview-sweep 4s ease-in-out infinite alternate;
}

.preview-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 2px;
    background: var(--accent-blue);
    z-index: 3;
    pointer-events: none;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    animation: handle-sweep 4s ease-in-out infinite alternate;
}

.preview-handle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: var(--accent-blue);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-blue-glow);
}

@keyframes preview-sweep {
    0% {
        clip-path: inset(0 100% 0 0);
        /* Show almost nothing of 'after' */
    }

    100% {
        clip-path: inset(0 0 0 0);
        /* Show all 'after' */
    }
}

@keyframes handle-sweep {
    0% {
        left: 0%;
    }

    100% {
        left: 100%;
    }
}

/* ════════════════════════════════════════
   Creative Projects Gallery
   ════════════════════════════════════════ */
.creative-projects-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 18px;
    height: 580px;
}

.creative-card-stack {
    display: flex;
    flex-direction: column;
    gap: 18px;
    height: 100%;
}

/* Base card */
.creative-card {
    position: relative;
    border-radius: var(--radius-card);
    overflow: hidden;
    display: flex;
    flex: 1;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.07);
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.creative-card--wide {
    height: 100%;
}

/* Background image */
.creative-card__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.creative-card__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
    filter: brightness(0.9);
}

.creative-card:hover .creative-card__bg img {
    transform: scale(1.08);
    filter: brightness(0.75);
}

/* Gradient overlay — only covers bottom 55%, top is clear */
.creative-card__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to top,
        rgba(5, 7, 10, 0.97) 0%,
        rgba(5, 7, 10, 0.92) 35%,
        rgba(5, 7, 10, 0.4) 60%,
        rgba(5, 7, 10, 0.05) 80%,
        transparent 100%
    );
    transition: background 0.5s ease;
}

.creative-card:hover .creative-card__overlay {
    background: linear-gradient(
        to top,
        rgba(5, 7, 10, 0.98) 0%,
        rgba(5, 7, 10, 0.95) 35%,
        rgba(0, 85, 255, 0.25) 65%,
        rgba(0, 194, 255, 0.05) 85%,
        transparent 100%
    );
}

/* Content */
.creative-card__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px;
    width: 100%;
}

/* Category Tag */
.creative-card__tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-blue);
    background: rgba(0, 194, 255, 0.12);
    border: 1px solid rgba(0, 194, 255, 0.25);
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    margin-bottom: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    width: fit-content;
    transition: all 0.4s ease;
}

.creative-card:hover .creative-card__tag {
    background: var(--accent-blue);
    color: #fff;
    border-color: transparent;
}

/* Title */
.creative-card__title {
    font-size: 1.8rem;
    font-weight: 900;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
    transition: color 0.3s ease;
}

.creative-card-stack .creative-card__title {
    font-size: 1.35rem;
}

/* Description (wide card only) */
.creative-card__desc {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.6;
    margin-bottom: 18px;
    max-width: 300px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s ease 0.1s, transform 0.4s ease 0.1s;
}

.creative-card:hover .creative-card__desc {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
.creative-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.creative-card__count {
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255,255,255,0.55);
    transition: color 0.3s;
}

.card-num {
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--accent-blue);
    font-family: var(--font-display);
}

.creative-card:hover .creative-card__count {
    color: rgba(255,255,255,0.8);
}

/* Arrow button */
.creative-card__arrow {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(0, 194, 255, 0.1);
    border: 1px solid rgba(0, 194, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-blue);
    font-size: 0.9rem;
    transition: all 0.4s ease;
}

.creative-card:hover .creative-card__arrow {
    background: var(--gradient-primary);
    border-color: transparent;
    color: #fff;
    transform: translateX(-4px);
}

/* Glowing top border on hover */
.creative-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    z-index: 3;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.creative-card:hover::before {
    opacity: 1;
}

/* Responsive */
@media (max-width: 900px) {
    .creative-projects-grid {
        grid-template-columns: 1fr;
        height: auto;
    }

    .creative-card--wide {
        height: 380px;
    }

    .creative-card-stack {
        height: auto;
    }

    .creative-card-stack .creative-card {
        height: 220px;
        flex: none;
    }

    .creative-card__title {
        font-size: 1.4rem;
    }
}

/* ════════════════════════════════════════
   Thumbnail Preview Section
   ════════════════════════════════════════ */
.thumb-preview-section {
    padding: 20px 0 80px;
}

.thumb-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.thumb-preview-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.thumb-preview-label i {
    color: var(--accent-blue);
    font-size: 1.1rem;
}

.thumb-see-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-blue);
    border: 1px solid rgba(0, 194, 255, 0.25);
    padding: 7px 16px;
    border-radius: var(--radius-pill);
    transition: var(--transition);
}

.thumb-see-all:hover {
    background: rgba(0, 194, 255, 0.1);
    border-color: var(--accent-blue);
    transform: translateX(-4px);
}

.thumb-see-all i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.thumb-see-all:hover i {
    transform: translateX(-4px);
}

.thumb-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.thumb-preview-card {
    display: block;
    border-radius: var(--radius-card);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: var(--transition);
}

.thumb-preview-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--accent-blue);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(0, 194, 255, 0.15);
}

.thumb-preview-img {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--bg-card);
}

.thumb-preview-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.thumb-preview-card:hover .thumb-preview-img img {
    transform: scale(1.07);
}

.thumb-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(0, 194, 255, 0.3) 0%,
        rgba(0, 85, 255, 0.4) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.thumb-preview-card:hover .thumb-overlay {
    opacity: 1;
}

.thumb-overlay i {
    font-size: 2rem;
    color: #fff;
    filter: drop-shadow(0 0 10px rgba(0, 194, 255, 0.8));
    transform: scale(0.8);
    transition: transform 0.4s ease;
}

.thumb-preview-card:hover .thumb-overlay i {
    transform: scale(1);
}

@media (max-width: 768px) {
    .thumb-preview-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .thumb-preview-header {
        margin-bottom: 18px;
    }
}

/* ════════════════════════════════════════════
   Mobile Performance & 60FPS Speed Boost
   ════════════════════════════════════════════ */
@media (max-width: 768px) {
    /* 1. Disable real-time backdrop-filter blurs on mobile to prevent GPU stutter */
    .glass,
    .floating-badge,
    .btn-secondary,
    .service-bento-card,
    .testimonial-card,
    .navbar {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: rgba(15, 23, 42, 0.95) !important;
    }

    /* 2. Optimize heavy morph & pulse keyframe animations on mobile while preserving organic fluid shape */
    .hero-img-wrapper {
        animation: float 6s ease-in-out infinite !important;
        border-radius: 42% 58% 68% 32% / 38% 45% 55% 62% !important;
        box-shadow:
            0 0 0 2px rgba(0, 194, 255, 0.4),
            0 0 0 10px rgba(0, 194, 255, 0.08),
            0 15px 40px rgba(0, 194, 255, 0.25),
            0 20px 50px rgba(0, 0, 0, 0.5) !important;
    }

    .hero-img-glow {
        animation: none !important;
        opacity: 0.4 !important;
        filter: blur(15px) !important;
    }

    .badge-top,
    .badge-bottom {
        animation: none !important;
    }

    /* 3. Hardware GPU acceleration for smooth scrolling */
    .creative-card,
    .service-bento-card,
    .stat-item,
    .thumb-preview-card,
    .testimonial-card,
    .mg-item {
        transform: translateZ(0);
        will-change: transform;
        backface-visibility: hidden;
    }

    /* 4. Reduce shadow render tree complexity on mobile GPUs */
    .service-bento-card,
    .creative-card,
    .stat-item,
    .testimonial-card {
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35) !important;
    }

    /* 5. Smooth marquee scrolling optimization */
    .marquee-inner,
    .mg-track {
        will-change: transform;
        transform: translate3d(0, 0, 0);
    }
}