/* ===============================================================
   CSS VARIABLES & GLOBAL RESETS
   =============================================================== */
   :root {
    /* Color Palette */
    --bg-dark: #050505;
    --bg-card: rgba(20, 20, 22, 0.6);
    --text-main: #ffffff;
    --text-muted: #a0a0a5;
    
    /* Accents (Electric Blue & Purple Gradient) */
    --accent-primary: #00ff87;
    --accent-secondary: #00c853;
    --gradient-glow: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary), #00e676);
    
    /* UI Values */
    --glass-border: rgba(255, 255, 255, 0.08);
    --border-radius: 16px;
    --border-radius-sm: 8px;
    --transition-fast: 0.3s ease;
    --transition-smooth: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-dark);
}

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

/* Global overflow prevention */
img, svg, video, iframe {
    max-width: 100%;
    height: auto;
}

/* ===============================================================
   TYPOGRAPHY & UTILITIES
   =============================================================== */
h1, h2, h3, h4, h5, h6, .hero-headline {
    font-family: var(--font-heading);
    color: var(--text-main);
    line-height: 1.2;
}

p {
    color: var(--text-muted);
}

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

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
}

.container-narrow {
    max-width: 900px;
}

.section-padding {
    padding: clamp(3rem, 8vw, 100px) 0;
}

.text-center { text-align: center; }
.mt-5 { margin-top: clamp(2rem, 5vw, 5rem); }

.gradient-text {
    background: var(--gradient-glow);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

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

.section-title {
    font-size: clamp(1.6rem, 4vw, 3rem);
    margin-bottom: clamp(1rem, 3vw, 2rem);
    font-weight: 700;
}

.section-desc {
    font-size: clamp(0.95rem, 2vw, 1.125rem);
    max-width: 600px;
    margin: 0 auto clamp(1.5rem, 4vw, 3rem);
}

/* Base Buttons */
.btn {
    display: inline-block;
    padding: clamp(12px, 2vw, 14px) clamp(20px, 4vw, 28px);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: clamp(0.875rem, 2vw, 1rem);
    border-radius: 50px;
    cursor: pointer;
    border: none;
    transition: var(--transition-fast);
    text-align: center;
    min-height: 44px;
    min-width: 44px;
}

.btn-primary {
    background: var(--gradient-glow);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 255, 135, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 255, 135, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--border-radius);
}

/* ===============================================================
   NAVIGATION
   =============================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: clamp(60px, 10vw, 80px);
    z-index: 100;
    transition: var(--transition-fast);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo-link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    max-width: 60%;
}

.logo {
    height: clamp(30px, 6vw, 45px);
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

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

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

.nav-item {
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
    color: var(--text-muted);
    min-height: 44px;
    display: flex;
    align-items: center;
}

.nav-item:hover {
    color: var(--text-main);
}

.nav-item.active {
    color: var(--text-main);
    font-weight: 600;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--gradient-glow);
    transition: var(--transition-fast);
}

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

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 101;
    min-height: 44px;
    min-width: 44px;
    align-items: center;
    padding: 12px 7px;
}

.hamburger span {
    width: 100%;
    height: 2px;
    background: var(--text-main);
    transition: var(--transition-fast);
    transform-origin: left;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: rgba(5, 5, 5, 0.98);
    backdrop-filter: blur(15px);
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.mobile-menu.active {
    right: 0;
}

.mobile-links {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

.mobile-nav-item {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 5vw, 2rem);
    font-weight: 700;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===============================================================
   HERO SECTION
   =============================================================== */
.hero-section {
    position: relative;
    width: 100%;
}

.hero-static {
    min-height: 100vh;
    min-height: 100dvh;
    height: 100vh;
    height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
    overflow: hidden;
}

.hero-scroll-track {
    height: 600vh;
    position: relative;
    width: 100%;
    z-index: 5;
    margin-top: 0;
    top: auto;
}

.hero-sticky-wrap {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.6;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    width: 100%;
    padding: 0 clamp(0.5rem, 2vw, 1rem);
}

.hero-headline {
    font-size: clamp(1.6rem, 5vw, 4.5rem);
    font-weight: 900;
    margin-bottom: clamp(1rem, 3vw, 2rem);
    color: #ffffff;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hero-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px);
    animation: wordFadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes wordFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subheadline {
    font-size: clamp(0.95rem, 2vw, 1.25rem);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: clamp(20px, 5vw, 40px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
    animation: bounce 2s infinite;
    transition: opacity var(--transition-fast);
}

.scroll-indicator.hidden {
    opacity: 0;
    pointer-events: none;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-10px) translateX(-50%); }
    60% { transform: translateY(-5px) translateX(-50%); }
}

.hero-showcase {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(1.5rem, 4vw, 4rem);
    z-index: 2;
    opacity: 1;
}

.showcase-left {
    flex: 1;
    display: flex;
    gap: clamp(1rem, 2vw, 2rem);
    position: relative;
    max-width: 50%;
}

.showcase-tracker {
    width: 3px;
    background: rgba(255, 255, 255, 0.08);
    position: relative;
    border-radius: 3px;
}

.tracker-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(180deg, #00ff87, #00c853);
    border-radius: 3px;
    height: 0%; /* Driven by JS */
    will-change: height;
    box-shadow: 0 0 12px #00ff87, 0 0 24px #00c853;
}

.showcase-texts {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    padding: 1rem 0;
    flex-grow: 1;
    gap: 1.5rem;
}

.step-text {
    opacity: 0.3;
    transform: translateX(-15px);
    transition: all 0.5s ease;
}

.step-text.active {
    opacity: 1;
    transform: translateX(0);
}

.step-text .mobile-icon {
    display: none;
    font-size: 1.5rem;
    color: var(--accent-primary);
    margin-bottom: 10px;
}

.step-title {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
    color: #888888;
    transition: color 0.5s ease;
}

.step-text p {
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    color: #888888;
    transition: color 0.5s ease;
}

.step-title .step-word-white {
    color: #ffffff;
}

.step-title .step-word-green {
    background: linear-gradient(135deg, #00ff87, #00c853);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.step-text.active p {
    color: #ffffff;
}

.showcase-right {
    flex: 1;
    position: relative;
    height: 400px;
    perspective: 1000px;
}

.step-visual {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: all 0.7s cubic-bezier(0.25, 1, 0.5, 1);
    transform: translateY(20px) scale(0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: transform, opacity;
}

.step-visual.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Step 1: Wireframe SVG Drawing */
.wireframe-svg, .wireframe-fill-svg {
    width: 100%;
    height: auto;
    max-width: 500px;
}

.wf-shape {
    fill: none;
    stroke: var(--text-muted);
    stroke-width: 2;
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
}

#visual-1.active .wf-shape.shape-1 { animation: dashAnim 1.5s ease-out forwards; }
#visual-1.active .wf-shape.shape-2 { animation: dashAnim 1.5s ease-out 0.2s forwards; }
#visual-1.active .wf-shape.shape-3 { animation: dashAnim 1.5s ease-out 0.4s forwards; }
#visual-1.active .wf-shape.shape-4 { animation: dashAnim 1.5s ease-out 0.6s forwards; }

@keyframes dashAnim {
    to { stroke-dashoffset: 0; }
}

/* Step 2: Colored Wireframe */
.wf-fill-shape {
    fill: url(#wfGradDark);
    stroke: rgba(255,255,255,0.05);
    stroke-width: 1;
    transition: fill 1s ease;
}

#visual-2.active .wf-fill-1 { fill: url(#wfGrad); }
#visual-2.active .wf-fill-3 { fill: rgba(0, 255, 135, 0.15); }

/* Step 3: Terminal */
.code-window {
    width: 100%;
    max-width: 500px;
    background: rgba(10, 10, 12, 0.95);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

.mac-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 15px;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--glass-border);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

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

.code-body {
    padding: clamp(15px, 3vw, 25px);
    font-family: 'Courier New', Courier, monospace;
    font-size: clamp(0.75rem, 1.5vw, 0.95rem);
    color: #a0a0a5;
    text-align: left;
    height: 220px;
    line-height: 1.5;
}

#typewriter-code {
    color: var(--accent-primary);
    white-space: pre-wrap;
}

.cursor {
    animation: blinkCursor 1s step-end infinite;
}

@keyframes blinkCursor {
    50% { opacity: 0; }
}

/* Step 4: Finished Mockup */
.browser-mockup {
    width: 100%;
    max-width: 520px;
    background: var(--bg-card);
    border: 1px solid rgba(0, 255, 135, 0.3);
    border-radius: var(--border-radius);
    overflow: hidden;
    animation: floatMockup 6s ease-in-out infinite;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 255, 135, 0.1);
}

.mockup-body {
    padding: clamp(15px, 3vw, 25px);
    background: #0a0a0a;
    height: 280px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    overflow: hidden;
}

.mockup-header-fake {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.mockup-logo {
    font-weight: 800;
    color: var(--accent-primary);
    font-size: 1.2rem;
    font-family: var(--font-heading);
}

.mockup-nav-bars {
    display: flex;
    gap: 15px;
}

.mockup-nav-bars span {
    width: 35px;
    height: 4px;
    background: rgba(255,255,255,0.15);
    border-radius: 2px;
}

.mockup-hero-fake {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 30px;
    position: relative;
    z-index: 2;
}

.mockup-h1 {
    width: 65%;
    height: 24px;
    background: var(--gradient-glow);
    border-radius: 4px;
}

.mockup-p {
    width: 45%;
    height: 10px;
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
}

.mockup-btn {
    width: 110px;
    height: 34px;
    background: var(--accent-primary);
    border-radius: 17px;
    margin-top: 15px;
}

.mockup-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 250px;
    background: var(--accent-primary);
    filter: blur(100px);
    opacity: 0.15;
    pointer-events: none;
    z-index: 1;
}

@keyframes floatMockup {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* ===============================================================
   PROBLEM SECTION (STATS)
   =============================================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: clamp(1rem, 3vw, 2rem);
    margin-top: clamp(1.5rem, 4vw, 3rem);
}

.stat-card {
    padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1rem, 3vw, 2rem);
    text-align: center;
    transition: transform var(--transition-fast);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
}

.stat-number {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    background: var(--gradient-glow);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ===============================================================
   ABOUT SECTION
   =============================================================== */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.about-text p {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    margin-bottom: 2rem;
}

.about-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.about-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
    font-size: clamp(0.9rem, 1.8vw, 1.05rem);
}

.about-visual {
    position: relative;
    height: clamp(250px, 40vw, 400px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.abstract-graphic {
    position: relative;
    width: clamp(200px, 30vw, 300px);
    height: clamp(200px, 30vw, 300px);
}

.glow-orb {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: var(--accent-primary);
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: pulseOrbs 4s infinite alternate;
}

.glass-orb {
    position: absolute;
    width: clamp(50px, 8vw, 80px);
    height: clamp(50px, 8vw, 80px);
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.orb-1 { top: 0; left: 20px; animation: float 6s infinite ease-in-out; }
.orb-2 { bottom: 20px; right: 0; animation: float 5s infinite ease-in-out reverse; }
.orb-3 { top: 50%; left: -30px; animation: float 7s infinite ease-in-out 1s; }


@keyframes pulseOrbs {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.4; }
    100% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.6; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* ===============================================================
   SERVICES SECTION
   =============================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: clamp(1rem, 3vw, 2rem);
}

.service-card {
    padding: clamp(1.5rem, 4vw, 2.5rem);
    transition: var(--transition-fast);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 255, 135, 0.1);
    border-color: rgba(0, 255, 135, 0.3);
}

.service-icon {
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    margin-bottom: 1rem;
}

/* ===============================================================
   WHY US SECTION
   =============================================================== */
.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(1rem, 3vw, 2rem);
    margin-top: clamp(1.5rem, 4vw, 3rem);
}

.why-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: clamp(1.25rem, 3vw, 2rem);
    background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, transparent 100%);
    border-radius: var(--border-radius);
    border-top: 1px solid var(--glass-border);
}

.why-icon {
    width: clamp(48px, 8vw, 60px);
    height: clamp(48px, 8vw, 60px);
    border-radius: 50%;
    background: rgba(0, 255, 135, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

.why-block h4 {
    margin-bottom: 0.5rem;
    font-size: clamp(1rem, 2vw, 1.15rem);
}

/* ===============================================================
   PORTFOLIO SECTION
   =============================================================== */
.title-underline {
    display: inline-block;
    position: relative;
    padding-bottom: 15px;
}

.underline {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-glow);
    border-radius: 10px;
}

.section-badge-container {
    text-align: center;
    width: 100%;
}

.section-badge {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 10px 24px;
    border-radius: 50px;
    background: var(--bg-card);
    position: relative;
    margin: clamp(1.5rem, 4vw, 3rem) auto clamp(2rem, 5vw, 4rem) auto;
    z-index: 1;
    animation: glowPulseGreen 2.5s infinite alternate;
    border: 1px solid transparent;
}

.section-badge::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 50px;
    background: linear-gradient(135deg, #00ff88, #00ccff);
    z-index: -1;
}

.section-badge-inner {
    background: #0a0a0a;
    position: absolute;
    inset: 1px;
    border-radius: 50px;
    z-index: -1;
}

.section-badge span {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: clamp(1px, 0.3vw, 2px);
    font-size: clamp(0.75rem, 1.5vw, 0.9rem);
    color: #fff;
    background: linear-gradient(135deg, #00ff88, #ffffff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

@keyframes glowPulseGreen {
    0% {
        box-shadow: 0 0 15px rgba(0, 255, 136, 0.1);
    }
    100% {
        box-shadow: 0 0 25px rgba(0, 255, 136, 0.5);
    }
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(1rem, 3vw, 2rem);
    margin-bottom: clamp(2rem, 5vw, 4rem);
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

.portfolio-card {
    overflow: hidden;
    position: relative;
    padding: 0;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.portfolio-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 255, 135, 0.1);
}

.portfolio-img {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    background: #111;
    border-bottom: 1px solid var(--glass-border);
}

.portfolio-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-card:hover .portfolio-img img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-info {
    padding: clamp(1rem, 3vw, 1.5rem);
}

.category-tag {
    font-size: clamp(0.7rem, 1.2vw, 0.75rem);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-primary);
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}

.portfolio-info h3 {
    margin-bottom: 0.5rem;
    font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.portfolio-info p {
    font-size: clamp(0.85rem, 1.5vw, 1rem);
}

/* ===============================================================
   TESTIMONIALS
   =============================================================== */
.testimonials {
    overflow: hidden;
    padding: clamp(2rem, 5vw, 4rem) 0;
    position: relative;
}

.testimonials::before,
.testimonials::after {
    content: '';
    position: absolute;
    top: 0;
    width: 15%;
    height: 100%;
    z-index: 2;
}

.testimonials::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-dark), transparent);
}

.testimonials::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-dark), transparent);
}

.testimonials-slider {
    width: 100%;
    overflow: hidden;
    display: flex;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
}

.testimonial-track {
    display: flex;
    gap: clamp(1rem, 3vw, 2rem);
    padding: 1rem;
    animation: scrollTrack 25s linear infinite;
    width: max-content;
}

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

/* Touch-paused via JS class */
.testimonial-track.touch-paused {
    animation-play-state: paused;
}

@keyframes scrollTrack {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.testimonial-card {
    width: clamp(280px, 50vw, 400px);
    padding: clamp(1.25rem, 3vw, 2rem);
    flex-shrink: 0;
}

.stars {
    color: #ffb800;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: #dedede;
    font-size: clamp(0.85rem, 1.5vw, 1rem);
}

.client-info h4 {
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
}

.client-info span {
    font-size: clamp(0.75rem, 1.3vw, 0.85rem);
    color: var(--text-muted);
}

/* ===============================================================
   CTA BANNER & FOOTER
   =============================================================== */
.cta-banner {
    padding: clamp(3rem, 6vw, 5rem) 0;
    background: linear-gradient(135deg, rgba(0, 200, 83, 0.1), rgba(0, 255, 135, 0.1));
    border-top: 1px solid rgba(0, 255, 135, 0.2);
    border-bottom: 1px solid rgba(0, 255, 135, 0.2);
    margin-top: clamp(3rem, 6vw, 6rem);
}

.cta-banner h2 {
    font-size: clamp(1.4rem, 4vw, 2.5rem);
    margin-bottom: clamp(0.75rem, 2vw, 1.5rem);
}

.cta-banner p {
    font-size: clamp(0.9rem, 2vw, 1.125rem);
    margin-bottom: clamp(1rem, 3vw, 2rem);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 2rem);
    flex-wrap: wrap;
    gap: clamp(1rem, 3vw, 2rem);
}

.footer-logo {
    height: clamp(30px, 5vw, 40px);
    width: auto;
}

.footer-links {
    display: flex;
    gap: clamp(1rem, 3vw, 2rem);
}

.footer-links a {
    color: var(--text-muted);
    font-weight: 500;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.footer-links a:hover {
    color: var(--text-main);
}

.whatsapp-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    font-weight: 600;
    min-height: 44px;
}

.whatsapp-cta i {
    color: #25D366;
    font-size: 1.25rem;
}

.footer-contact {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.footer-contact-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 200ms ease;
    min-height: 44px;
}

.footer-contact-item i {
    font-size: 1rem;
    transition: color 200ms ease;
}

.footer-contact-item:hover {
    background: linear-gradient(135deg, #00ff87, #00c853);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-contact-item:hover i {
    background: linear-gradient(135deg, #00ff87, #00c853);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem;
    border-top: 1px solid var(--glass-border);
    font-size: clamp(0.75rem, 1.5vw, 0.85rem);
    color: var(--text-muted);
}

/* ===============================================================
   ANIMATION UTILITIES (Intersection Observer target classes)
   =============================================================== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up-delay-1 {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease 0.15s, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
}

.fade-up-delay-2 {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease 0.3s, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}

.fade-up-delay-3 {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease 0.45s, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.45s;
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* State class added by JS — descendant selectors (parent has .in-view, child has animation class) */
.in-view .fade-up,
.in-view .hero-word,
.in-view .fade-up-delay-1,
.in-view .fade-up-delay-2,
.in-view .fade-up-delay-3,
.in-view .slide-in-left,
.in-view .slide-in-right,
/* Same-element selectors (element itself has both .in-view and animation class) */
.fade-up.in-view,
.fade-up-delay-1.in-view,
.fade-up-delay-2.in-view,
.fade-up-delay-3.in-view,
.slide-in-left.in-view,
.slide-in-right.in-view {
    opacity: 1;
    transform: translateY(0) translateX(0);
}

/* Hero word animations should play once hero-content gets in-view */
.hero-content.in-view .hero-word {
    opacity: 1;
    transform: translateY(0);
}

/* ===============================================================
   RESPONSIVE: NOTEBOOK / MEDIUM LAPTOP (1024px – 1440px)
   =============================================================== */
@media (min-width: 1024px) and (max-width: 1440px) {
    .hero-static {
        min-height: 100vh;
        height: 100vh;
        position: relative;
        overflow: hidden;
    }

    #scroll-story,
    .hero-scroll-track {
        position: relative;
        margin-top: 0;
        top: auto;
    }

    .hero-sticky-wrap {
        position: sticky;
        top: 0;
        height: 100vh;
    }
}

@media (max-width: 1279px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===============================================================
   RESPONSIVE: TABLET PORTRAIT (768px – 1023px)
   =============================================================== */
@media (max-width: 1023px) {
    .about-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .about-list {
        align-items: center;
    }
    
    .hero-headline {
        min-height: auto;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Hero Part 2: stack labels above visuals */
    .hero-showcase {
        flex-direction: column;
        gap: 2rem;
    }

    .showcase-left {
        max-width: 100%;
    }

    .showcase-right {
        height: 300px;
        width: 100%;
    }
}

/* ===============================================================
   RESPONSIVE: MOBILE (below 768px)
   =============================================================== */
@media (max-width: 767px) {
    .navbar .nav-links {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero-ctas {
        flex-direction: column;
        align-items: center;
    }

    .hero-ctas .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .hero-headline {
        font-size: clamp(1.5rem, 7vw, 2.5rem);
        padding: 0 0.25rem;
    }
    
    .why-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }

    /* Portfolio: show overlay permanently at bottom on touch devices */
    .portfolio-overlay {
        opacity: 1;
        transform: translateY(0);
        top: auto;
        bottom: 0;
        height: auto;
        padding: 1rem;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 100%);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        align-items: flex-end;
    }

    .portfolio-card:hover .portfolio-overlay {
        transform: translateY(0);
    }
    
    .footer-container {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .footer-left,
    .footer-links,
    .footer-contact,
    .footer-right {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .footer-contact {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }

    /* Hero Part 2: disable sticky, stacked cards */
    .hero-scroll-track {
        height: auto !important;
    }

    .hero-sticky-wrap {
        position: relative;
        top: auto;
        transform: none;
        height: auto;
        overflow: visible;
    }

    .hero-showcase {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        flex-direction: column;
        justify-content: center;
        padding-top: 5vh;
        padding-bottom: 5vh;
    }

    .showcase-left {
        max-width: 100%;
        flex-direction: column;
    }

    .showcase-tracker {
        display: none;
    }

    .showcase-right {
        display: none;
    }

    .showcase-texts {
        gap: 0;
    }

    /* Step cards on mobile: stacked with scroll-triggered fade */
    .step-text {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.6s ease, transform 0.6s ease;
        min-height: 60vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 2rem 1rem;
        border-bottom: 1px solid var(--glass-border);
    }

    .step-text:last-child {
        border-bottom: none;
    }

    .step-text.active,
    .step-text.mobile-visible {
        opacity: 1;
        transform: translateY(0);
    }

    .step-text .mobile-icon {
        display: inline-block;
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .step-title {
        font-size: clamp(1.4rem, 6vw, 2rem);
    }

    .step-text p {
        font-size: clamp(0.9rem, 3vw, 1rem);
        max-width: 80%;
    }

    /* Testimonials: full-width cards on mobile */
    .testimonial-card {
        width: 85vw;
        min-width: 280px;
    }

    .testimonials::before,
    .testimonials::after {
        width: 8%;
    }

    /* CTA Banner */
    .cta-banner {
        margin-top: 2rem;
    }

    /* Canvas reduced on mobile (opacity + handled via JS particle count) */
    #hero-canvas {
        opacity: 0.3;
    }
}

/* ===============================================================
   RESPONSIVE: SMALL MOBILE (320px – 480px)
   =============================================================== */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero-headline {
        font-size: clamp(1.3rem, 6.5vw, 2rem);
    }

    .hero-content {
        padding: 0 0.5rem;
    }

    .section-padding {
        padding: 2.5rem 0;
    }

    .service-card {
        padding: 1.25rem;
    }

    .stat-card {
        padding: 1.25rem 1rem;
    }

    .about-visual {
        height: 200px;
    }

    .abstract-graphic {
        width: 180px;
        height: 180px;
    }

    .glow-orb {
        width: 120px;
        height: 120px;
    }

    .testimonial-card {
        width: 90vw;
    }

    .step-text {
        min-height: 50vh;
        padding: 1.5rem 0.75rem;
    }

    .section-badge {
        padding: 8px 16px;
    }
}

/* ===============================================================
   IMAGE SKELETON LOADING
   =============================================================== */
.img-skeleton {
    position: relative;
    background: #1a1a1a;
    overflow: hidden;
    border-radius: inherit;
}

.img-skeleton::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255,255,255,0.04) 50%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
    z-index: 1;
    pointer-events: none;
}

.img-skeleton img {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.img-skeleton img.loaded {
    opacity: 1;
}

/* Hide shimmer once image is loaded */
.img-skeleton:has(img.loaded)::before {
    display: none;
}

@keyframes skeleton-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ===============================================================
   ACCESSIBILITY: Reduced motion
   =============================================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .testimonial-track {
        animation: none !important;
    }

    .hero-word {
        opacity: 1 !important;
        transform: none !important;
    }

    .fade-up,
    .fade-up-delay-1,
    .fade-up-delay-2,
    .fade-up-delay-3,
    .slide-in-left,
    .slide-in-right {
        opacity: 1 !important;
        transform: none !important;
    }

    #hero-canvas {
        display: none;
    }
}
