/* Main Stylesheet - Premium Creative Agency Portfolio */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Syne:wght@700;800&display=swap');

:root {
    --bg-color: #060908;
    --card-bg: rgba(10, 15, 13, 0.7);
    --accent-primary: #00ffaa;
    --accent-glow: rgba(0, 255, 170, 0.2);
    --accent-secondary: #00e5ff;
    --accent-secondary-glow: rgba(0, 229, 255, 0.2);
    --text-main: #ffffff;
    --text-muted: #808a85;

    --font-heading: 'Syne', sans-serif;
    --font-body: 'Outfit', sans-serif;

    /* Cursor variables */
    --cursor-x: 0px;
    --cursor-y: 0px;
    --cursor-ring-x: 0px;
    --cursor-ring-y: 0px;

    /* 3D Cube rotation variables managed by JS */
    --rx: -15deg;
    --ry: 45deg;
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    width: 100vw;
    position: relative;
    cursor: none;
    /* Hide default cursor to use custom one */
    /* overflow-y: auto; */
    /* overflow-x: hidden; */
    scroll-behavior: smooth;
}

/* Fallback for touch devices to show normal cursor */
@media (pointer: coarse) {
    body {
        cursor: auto;
    }

    #custom-cursor {
        display: none !important;
    }
}

a,
button {
    cursor: none;
    /* Keep cursor hidden on interactive items too */
}

.top {
    padding-top: 120px;
}

.bottom {
    padding-bottom: 120px;
}

/* Background Canvas & Glows */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
    background: radial-gradient(circle at 50% 50%, #0d241d 0%, #060908 100%);
}

.bg-glow-effect {
    position: absolute;
    width: 50vw;
    height: 50vh;
    background: radial-gradient(circle, rgba(0, 255, 170, 0.05) 0%, transparent 70%);
    top: 25%;
    left: 25%;
    z-index: -1;
    pointer-events: none;
    filter: blur(60px);
}

/* Custom Cursor */
#custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100000;
    pointer-events: none;
}

.cursor-ring {
    position: absolute;
    width: 44px;
    height: 44px;
    border: 1.5px solid var(--accent-primary);
    border-radius: 50%;
    transform: translate(-50%, -50%) translate3d(var(--cursor-ring-x), var(--cursor-ring-y), 0);
    transition: width 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
        height 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
        background-color 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cursor-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    background-color: var(--accent-primary);
    border-radius: 50%;
    transform: translate(-50%, -50%) translate3d(var(--cursor-x), var(--cursor-y), 0);
    transition: transform 0.1s ease, background-color 0.3s ease;
}

.cursor-ring::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 0 0 12px var(--accent-glow);
    opacity: 0.5;
}

/* Custom Cursor States */
#custom-cursor.hover .cursor-ring {
    width: 76px;
    height: 76px;
    background-color: rgba(0, 255, 170, 0.08);
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(0, 255, 170, 0.2);
}

#custom-cursor.hover .cursor-dot {
    background-color: var(--text-main);
    transform: translate(-50%, -50%) scale(1.5);
}

/* Drag State for 3D Cube */
.cursor-drag-text {
    font-family: var(--font-body);
    font-size: 8px;
    font-weight: 700;
    color: var(--bg-color);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

#custom-cursor.drag .cursor-ring {
    width: 80px;
    height: 80px;
    background-color: var(--accent-primary);
    border-color: var(--accent-primary);
    box-shadow: 0 0 30px rgba(0, 255, 170, 0.4);
}

#custom-cursor.drag .cursor-ring .cursor-drag-text {
    opacity: 1;
}

#custom-cursor.drag .cursor-dot {
    opacity: 0;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 4vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    border-radius: 0px;
    border: 1px solid transparent;
    border-bottom: 1px solid transparent;
    box-shadow: none;
    transition:
        top 0.85s cubic-bezier(0.16, 1, 0.3, 1),
        left 0.85s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.85s cubic-bezier(0.16, 1, 0.3, 1),
        width 0.85s cubic-bezier(0.16, 1, 0.3, 1),
        max-width 0.85s cubic-bezier(0.16, 1, 0.3, 1),
        padding 0.85s cubic-bezier(0.16, 1, 0.3, 1),
        background-color 0.85s ease,
        border-radius 0.85s cubic-bezier(0.16, 1, 0.3, 1),
        border 0.85s ease,
        box-shadow 0.85s ease;
    will-change: top, left, transform, width, max-width, padding, border-radius;
}

header>*:not(#header-scroll-progress) {
    position: relative;
    z-index: 2;
}

header::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 0px;
    padding: 1.5px;
    background: transparent;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    z-index: 1;
    transition:
        opacity 0.85s ease,
        border-radius 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

header.scrolled {
    top: 100%;
    left: 50%;
    transform: translate(-50%, calc(-100% - 24px));
    width: 90%;
    max-width: 580px;
    padding: 10px 24px;
    background-color: rgba(6, 9, 8, 0.72);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 100px;
    border: 1px solid transparent;
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.6),
        0 0 20px rgba(0, 255, 170, 0.04);
}

header.scrolled::before {
    opacity: 1;
    border-radius: 100px;
    background: conic-gradient(from 0deg,
            var(--accent-primary) 0%,
            var(--accent-secondary) var(--scroll-percent, 0%),
            rgba(255, 255, 255, 0.06) var(--scroll-percent, 0%),
            rgba(255, 255, 255, 0.06) 100%);
}


/* Menu Toggle Button */
.menu-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 110;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 24px;
}

.hamburger span {
    display: block;
    height: 2px;
    background-color: var(--text-main);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hamburger span:nth-child(2) {
    width: 16px;
    align-self: flex-start;
}

/* Hamburger Morph on Active */
.menu-active .hamburger span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-active .hamburger span:nth-child(2) {
    opacity: 0;
    transform: translateX(10px);
}

.menu-active .hamburger span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.menu-text {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-main);
    transition: color 0.3s ease;
}

.menu-toggle:hover .hamburger span:nth-child(2) {
    width: 24px;
}

.menu-toggle:hover .menu-text {
    color: var(--accent-primary);
}

/* Logo */
.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.logo-svg {
    display: block;
    flex-shrink: 0;
    overflow: visible;
}

/* Part transitions */
.logo-icon-part-1,
.logo-icon-part-2 {
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease, filter 0.4s ease;
}

.logo-icon-crossbar {
    transition: stroke-dasharray 0.4s ease, stroke-width 0.4s ease, stroke 0.4s ease, filter 0.4s ease;
}

.logo-icon-dot {
    transition: fill 0.4s ease, r 0.4s ease, filter 0.4s ease;
}

.logo-text-wrap {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    white-space: nowrap;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 19px;
    letter-spacing: 0.08em;
    color: #ffffff;
    text-transform: uppercase;
    transition: fill 0.4s ease, letter-spacing 0.4s cubic-bezier(0.25, 1, 0.5, 1), text-shadow 0.4s ease;
}

.logo-subtext {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 10px;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
    transition: color 0.4s ease, letter-spacing 0.4s cubic-bezier(0.25, 1, 0.5, 1), transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform, letter-spacing;
}

/* Hover Animations */
.logo:hover {
    transform: scale(1.02);
}

/* Overlapping parts shift in opposite directions slightly for a 3D parallax prism feel */
.logo:hover .logo-icon-part-1 {
    transform: translateX(-1px) scaleY(1.02);
    filter: drop-shadow(0 0 4px rgba(0, 255, 170, 0.4));
}

.logo:hover .logo-icon-part-2 {
    transform: translateX(1px) scaleY(1.02);
    filter: drop-shadow(0 0 4px rgba(0, 229, 255, 0.4));
}

.logo:hover .logo-icon-crossbar {
    stroke: #00e5ff;
    stroke-width: 2.5px;
    filter: drop-shadow(0 0 5px #00e5ff);
}

.logo:hover .logo-icon-dot {
    fill: #ffffff;
    r: 2px;
    filter: drop-shadow(0 0 4px #ffffff);
}

/* The name letters expand in spacing elegantly */
.logo:hover .logo-text {
    fill: #ffffff;
    letter-spacing: 0.12em;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

/* Subtext shifts right and glows */
.logo:hover .logo-subtext {
    color: var(--accent-primary);
    letter-spacing: 0.25em;
    transform: translateX(4px);
}

/* Contact Button */
.contact-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none;
    background: transparent;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.contact-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(0, 255, 170, 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s ease;
    z-index: -1;
}

.contact-btn:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px var(--accent-glow);
    transform: translateY(-1px);
}

.contact-btn:hover::before {
    transform: translate(-50%, -50%) scale(1);
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon svg {
    transition: transform 0.3s ease;
}

.contact-btn:hover .contact-icon svg {
    transform: translateX(3px) scale(1.1);
}

/* Social Sidebar Left */
.social-sidebar {
    position: absolute;
    left: 4vw;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 28px;
    z-index: 50;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-link svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.social-link:hover {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    background: rgba(0, 255, 170, 0.05);
    box-shadow: 0 0 10px rgba(0, 255, 170, 0.1);
    transform: scale(1.1) translateX(2px);
}

/* Footer Section Left */
.footer-left {
    position: absolute;
    left: 4vw;
    bottom: 6vh;
    max-width: 340px;
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.footer-left p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
    font-weight: 300;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 28px;
    background: rgba(0, 255, 170, 0.05);
    border: 1.5px solid var(--accent-primary);
    border-radius: 50px;
    color: #ffffff;
    text-transform: uppercase;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    align-self: flex-start;
    box-shadow: 0 0 0px rgba(0, 255, 170, 0);
}

.btn-primary svg {
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.btn-primary:hover {
    background: var(--accent-primary);
    color: var(--bg-color);
    box-shadow: 0 0 25px rgba(0, 255, 170, 0.4);
    transform: translateY(-3px);
}

.btn-primary:hover svg {
    transform: translateX(4px) scale(1.1);
    stroke: var(--bg-color);
    fill: var(--bg-color);
}

/* Footer Section Right (Expertise list) */
.footer-right {
    position: absolute;
    right: 4vw;
    bottom: 6vh;
    text-align: right;
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.expertise-item {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 400;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.expertise-item::before {
    content: '';
    width: 0px;
    height: 6px;
    background-color: var(--accent-primary);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.expertise-item:hover {
    color: var(--text-main);
    transform: translateX(-10px);
}

.expertise-item:hover::before {
    width: 6px;
    opacity: 1;
}

/* Hero Center Container */
.hero-container {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Typography Layers (Solid behind, Outline in front) */
.title-layer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    pointer-events: none;
    text-align: center;
    user-select: none;
}

.hero-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 6.5vw;
    line-height: 0.9;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    white-space: nowrap;
    margin: 0;
    padding: 0;
}

.title-layer-solid {
    color: var(--text-main);
    z-index: 1;
}

.title-layer-outline {
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.35);
    z-index: 3;
}

/* 3D Cube Component */
.cube-viewport {
    width: 320px;
    height: 320px;
    perspective: 1200px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    cursor: grab;
}

.cube-viewport:active {
    cursor: grabbing;
}

.cube-container {
    width: 280px;
    height: 280px;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateX(var(--rx)) rotateY(var(--ry));
    will-change: transform;
    /* transition: transform 0.05s linear; */
    /* We manage interpolation in JS directly for ultra-smoothness */
}

/* Glow ball at the center inside the cube */
.cube-core {
    position: absolute;
    width: 130px;
    height: 130px;
    background: radial-gradient(circle, var(--accent-primary) 0%, var(--accent-secondary) 40%, transparent 70%);
    border-radius: 50%;
    filter: blur(15px);
    transform-style: preserve-3d;
    z-index: 0;
    pointer-events: none;
    left: 75px;
    top: 75px;
    animation: corePulse 4s infinite ease-in-out alternate;
    opacity: 0.8;
}

@keyframes corePulse {
    0% {
        transform: translate3d(0, 0, 0) scale(0.8);
        filter: blur(12px) brightness(1);
    }

    100% {
        transform: translate3d(0, 0, 0) scale(1.15);
        filter: blur(20px) brightness(1.3);
    }
}

.cube-face {
    position: absolute;
    width: 280px;
    height: 280px;
    backface-visibility: visible;
    border: 1.5px solid rgba(0, 255, 170, 0.35);
    box-shadow: inset 0 0 40px rgba(0, 255, 170, 0.15), 0 0 25px rgba(0, 0, 0, 0.55);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.88;
    transition: border-color 0.4s ease, box-shadow 0.4s ease, opacity 0.4s ease;
    border-radius: 6px;
    overflow: hidden;
}

.cube-face::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 60%, rgba(0, 0, 0, 0.45) 100%);
    pointer-events: none;
}

.cube-viewport:hover .cube-face {
    border-color: var(--accent-primary);
    box-shadow: inset 0 0 50px rgba(0, 255, 170, 0.25), 0 0 35px rgba(0, 255, 170, 0.15);
    opacity: 0.95;
}

/* Face coordinates */
.face-front {
    transform: rotateY(0deg) translateZ(140px);
}

.face-back {
    transform: rotateY(180deg) translateZ(140px);
}

.face-right {
    transform: rotateY(90deg) translateZ(140px);
}

.face-left {
    transform: rotateY(-90deg) translateZ(140px);
}

.face-top {
    transform: rotateX(90deg) translateZ(140px);
}

.face-bottom {
    transform: rotateX(-90deg) translateZ(140px);
}

/* Fullscreen Navigation Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 7, 6, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 95;
    transform: translateY(-100%);
    transition: transform 0.8s cubic-bezier(0.85, 0, 0.15, 1);
    opacity: 0;
    overflow: hidden;
}

.menu-overlay.active {
    transform: translateY(0);
    opacity: 1;
}

/* Glowing dots pattern on overlay menu */
.menu-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: -1;
    pointer-events: none;
}

/* Split screen overlay grid */
.menu-overlay-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    width: 100%;
    height: 100%;
}

/* Left panel: Portrait image frame and Three.js Canvas */
.menu-overlay-left {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at 30% 30%, rgba(13, 36, 29, 0.4) 0%, rgba(4, 7, 6, 0) 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.03);
    overflow: hidden;
}

#menu-three-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.menu-portrait-frame {
    position: relative;
    width: 320px;
    height: 400px;
    border-radius: 24px;
    padding: 1.5px;
    background: linear-gradient(135deg, rgba(0, 255, 170, 0.3) 0%, rgba(0, 229, 255, 0.3) 100%);
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(0, 255, 170, 0.05);
    z-index: 2;
    overflow: hidden;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
}

.menu-portrait-frame:hover {
    transform: scale(1.02) rotate(0.5deg);
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.7),
        0 0 40px rgba(0, 255, 170, 0.15);
}

.menu-portrait-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0, 255, 170, 0.25) 0%, transparent 60%);
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.menu-portrait-wrap {
    width: 100%;
    height: 100%;
    border-radius: 22px;
    overflow: hidden;
    position: relative;
    z-index: 2;
    background: var(--bg-color);
}

.menu-portrait-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
    filter: grayscale(20%) contrast(105%);
}

.menu-portrait-frame:hover .menu-portrait-img {
    transform: scale(1.05);
    filter: grayscale(0%) contrast(105%);
}

/* Right panel: links & dynamic labels */
.menu-overlay-right {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 80px 8vw;
    overflow-y: auto;
}

.menu-bg-label {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 8.5vw;
    text-transform: uppercase;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.025);
    position: absolute;
    top: 50%;
    left: 8vw;
    transform: translateY(-50%);
    z-index: 1;
    pointer-events: none;
    white-space: nowrap;
    letter-spacing: -0.02em;
    user-select: none;
    transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), -webkit-text-stroke 0.35s ease;
}

.menu-bg-label.changing {
    opacity: 0;
    transform: translateY(-50%) translateX(20px);
}

.menu-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    position: relative;
    z-index: 2;
    margin: auto 0;
}

.menu-item {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 2.8vw;
    text-transform: uppercase;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.2);
    transition: color 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
}

.menu-item span {
    font-family: var(--font-body);
    font-size: 0.9vw;
    font-weight: 500;
    color: var(--accent-primary);
    opacity: 0;
    transform: translateX(-15px);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.menu-item:hover {
    color: var(--text-main);
    transform: translateX(12px) scale(1.02);
}

.menu-item:hover span {
    opacity: 1;
    transform: translateX(0);
}

.menu-item::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--accent-primary);
    box-shadow: 0 0 12px var(--accent-glow);
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.menu-item:hover::after {
    width: 100%;
}

/* Stagger animations for menu reveal */
.menu-overlay.active .menu-item {
    animation: slideInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.menu-overlay.active .menu-item:nth-child(1) {
    animation-delay: 0.05s;
}

.menu-overlay.active .menu-item:nth-child(2) {
    animation-delay: 0.10s;
}

.menu-overlay.active .menu-item:nth-child(3) {
    animation-delay: 0.15s;
}

.menu-overlay.active .menu-item:nth-child(4) {
    animation-delay: 0.20s;
}

.menu-overlay.active .menu-item:nth-child(5) {
    animation-delay: 0.25s;
}

.menu-overlay.active .menu-item:nth-child(6) {
    animation-delay: 0.30s;
}

.menu-overlay.active .menu-item:nth-child(7) {
    animation-delay: 0.35s;
}

.menu-overlay.active .menu-item:nth-child(8) {
    animation-delay: 0.40s;
}

.menu-overlay.active .menu-item:nth-child(9) {
    animation-delay: 0.45s;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* Responsive collapse for menu split layout */
@media (max-width: 991px) {
    .menu-overlay-grid {
        grid-template-columns: 1fr;
    }

    .menu-overlay-left {
        display: none;
        /* Hide interactive visuals on tablet & mobile */
    }

    .menu-overlay-right {
        padding: 80px 10vw;
    }

    .menu-item {
        font-size: 6.5vw;
    }

    .menu-item span {
        font-size: 2.2vw;
    }

    .menu-bg-label {
        font-size: 15vw;
        left: 10vw;
    }
}

@media (max-width: 576px) {
    .menu-item {
        font-size: 8vw;
    }

    .menu-item span {
        font-size: 3vw;
    }
}



/* Responsive adjustments */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 11vw;
    }

    .cube-viewport {
        width: 260px;
        height: 260px;
    }

    .cube-container {
        width: 220px;
        height: 220px;
    }

    .cube-face {
        width: 220px;
        height: 220px;
    }

    .cube-core {
        width: 100px;
        height: 100px;
        left: 60px;
        top: 60px;
    }

    .face-front {
        transform: rotateY(0deg) translateZ(110px);
    }

    .face-back {
        transform: rotateY(180deg) translateZ(110px);
    }

    .face-right {
        transform: rotateY(90deg) translateZ(110px);
    }

    .face-left {
        transform: rotateY(-90deg) translateZ(110px);
    }

    .face-top {
        transform: rotateX(90deg) translateZ(110px);
    }

    .face-bottom {
        transform: rotateX(-90deg) translateZ(110px);
    }
}

@media (max-width: 768px) {
    header {
        padding: 20px 6vw;
    }

    header.scrolled {
        transform: translate(-50%, calc(-100% - 16px));
        width: calc(100% - 32px);
        max-width: 100%;
        padding: 8px 12px;
    }

    header.scrolled .logo-subtext {
        display: none !important;
    }

    header.scrolled .menu-text {
        display: none !important;
    }

    header.scrolled .contact-btn span:not(.contact-icon) {
        display: none !important;
    }

    header.scrolled .contact-btn {
        padding: 10px;
        border-radius: 50% !important;
        width: 38px;
        height: 38px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    header.scrolled .contact-btn .contact-icon {
        margin: 0 !important;
    }


    .social-sidebar {
        display: none;
        /* Hide on mobile to declutter */
    }

    .footer-left {
        left: 6vw;
        bottom: 4vh;
        max-width: 80%;
    }

    .footer-right {
        display: none;
        /* Hide on mobile to declutter */
    }

    .hero-title {
        font-size: 13vw;
        line-height: 1.0;
    }

    .cube-viewport {
        width: 220px;
        height: 220px;
    }

    .cube-container {
        width: 180px;
        height: 180px;
    }

    .cube-face {
        width: 180px;
        height: 180px;
    }

    .cube-core {
        width: 80px;
        height: 80px;
        left: 50px;
        top: 50px;
    }

    .face-front {
        transform: rotateY(0deg) translateZ(90px);
    }

    .face-back {
        transform: rotateY(180deg) translateZ(90px);
    }

    .face-right {
        transform: rotateY(90deg) translateZ(90px);
    }

    .face-left {
        transform: rotateY(-90deg) translateZ(90px);
    }

    .face-top {
        transform: rotateX(90deg) translateZ(90px);
    }

    .face-bottom {
        transform: rotateX(-90deg) translateZ(90px);
    }

    .menu-item {
        font-size: 10vw;
    }

    .menu-item span {
        font-size: 3.5vw;
    }
}

/* About the Studio Section Styles */
.about-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--bg-color);
    z-index: 10;
}

.about-content {
    max-width: 1200px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 50px;
    position: relative;
    z-index: 2;
}

.section-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
}

.section-indicator .dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent-primary);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px var(--accent-primary);
}

.about-heading {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 3.4vw;
    line-height: 1.25;
    text-transform: uppercase;
    color: var(--text-main);
    max-width: 1100px;
    margin: 0;
    letter-spacing: -0.01em;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 6vw;
    align-items: center;
    width: 100%;
}

.about-image-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 1.8;
    box-shadow: 0 25px 50px -15px rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.05);
    perspective: 1200px;
    transform-style: preserve-3d;
}

.about-image-wrapper canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: auto;
    border-radius: 16px;
}

.about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.about-image-wrapper:hover .about-img {
    transform: scale(1.05);
}

.about-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
    padding-left: 20px;
}

.about-subheading {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}

.about-text {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
    font-weight: 300;
    margin: 0;
}

.about-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none;
    background: transparent;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.about-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(0, 255, 170, 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s ease;
    z-index: -1;
}

.about-btn:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px var(--accent-glow);
    transform: translateY(-2px);
}

.about-btn:hover::before {
    transform: translate(-50%, -50%) scale(1);
}

.about-btn .btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-btn .btn-icon svg {
    transition: transform 0.3s ease;
}

.about-btn:hover .btn-icon svg {
    transform: translateX(3px) scale(1.1);
}

/* Decorative vertical and horizontal accent lines + sparkles */
.deco-line-v {
    position: absolute;
    left: 5vw;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.08) 15%, rgba(255, 255, 255, 0.08) 85%, transparent);
    z-index: 1;
}

.sparkles-v {
    position: absolute;
    left: calc(5vw - 10px);
    top: 40%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 2;
}

.deco-line-h {
    position: absolute;
    bottom: 4vh;
    left: 8vw;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.08) 50%, transparent 100%);
    z-index: 1;
}

.sparkles-h {
    position: absolute;
    bottom: calc(4vh - 10px);
    right: 10vw;
    display: flex;
    gap: 15px;
    z-index: 2;
}

.sparkle-icon {
    width: 20px;
    height: 20px;
    color: var(--accent-primary);
    filter: drop-shadow(0 0 6px var(--accent-glow));
    animation: sparklePulse 2.5s infinite ease-in-out alternate;
}

.sparkles-v .sparkle-icon:nth-child(2) {
    animation-delay: 0.4s;
}

.sparkles-v .sparkle-icon:nth-child(3) {
    animation-delay: 0.8s;
}

.sparkles-h .sparkle-icon:nth-child(2) {
    animation-delay: 0.3s;
}

.sparkles-h .sparkle-icon:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes sparklePulse {
    0% {
        transform: scale(0.85);
        opacity: 0.5;
        filter: drop-shadow(0 0 2px var(--accent-glow));
    }

    100% {
        transform: scale(1.1);
        opacity: 1;
        filter: drop-shadow(0 0 8px var(--accent-primary));
    }
}

/* Responsive details for About Section */
@media (max-width: 1024px) {
    .about-section {
        padding: 100px 6vw;
    }

    .about-heading {
        font-size: 4.5vw;
    }

    .about-grid {
        gap: 40px;
    }

    .about-subheading {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .about-section {
        padding: 80px 6vw;
    }

    .about-heading {
        font-size: 6vw;
        line-height: 1.3;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-details {
        padding-left: 0;
    }

    .deco-line-v,
    .sparkles-v {
        left: 4vw;
    }

    .sparkles-v {
        left: calc(4vw - 10px);
    }
}

/* ====================================================
   Education Section Styles
   ==================================================== */
.education-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--bg-color);
    z-index: 10;
    padding: 120px 0;
}

.education-content {
    max-width: 1000px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 60px;
    position: relative;
    z-index: 2;
    margin: 0 auto;
    padding: 0 5vw;
}

.education-heading-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

.education-heading {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 3.8vw;
    line-height: 1.2;
    text-transform: uppercase;
    color: var(--text-main);
    letter-spacing: -0.01em;
    margin: 0;
}

.education-timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding-left: 60px;
}

.education-timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 19px;
    width: 2px;
    background: linear-gradient(to bottom, rgba(0, 255, 170, 0.8), rgba(0, 229, 255, 0.2));
    border-radius: 2px;
}

.edu-item {
    position: relative;
    width: 100%;
}

.edu-marker {
    position: absolute;
    top: 25px;
    left: -60px;
    width: 40px;
    height: 40px;
    background: rgba(10, 15, 13, 0.8);
    backdrop-filter: blur(4px);
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(0, 255, 170, 0.3);
    z-index: 2;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.edu-item:hover .edu-marker {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(0, 255, 170, 0.5);
    background: rgba(0, 255, 170, 0.1);
}

.edu-marker svg {
    width: 18px;
    height: 18px;
    color: var(--accent-primary);
    transition: color 0.3s ease;
}

.edu-item:hover .edu-marker svg {
    color: #fff;
}

.edu-card {
    padding: 35px 40px;
}

.edu-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.edu-date {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: rgba(0, 255, 170, 0.1);
    color: var(--accent-primary);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 13px;
    border-radius: 30px;
    letter-spacing: 0.05em;
}

.edu-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    background: rgba(0, 229, 255, 0.08);
    color: #00e5ff;
    border: 1px solid rgba(0, 229, 255, 0.3);
    border-radius: 30px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.1);
}

.edu-degree {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 10px 0;
}

.edu-university {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 500;
    color: var(--text-muted);
    margin: 0 0 15px 0;
}

.edu-desc {
    font-family: var(--font-body);
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 1024px) {
    .education-heading {
        font-size: 4.5vw;
    }
}

@media (max-width: 768px) {
    .education-section {
        padding: 80px 0;
    }

    .education-heading {
        font-size: 6vw;
    }

    .education-timeline {
        padding-left: 25px;
    }

    .education-timeline-line {
        left: 0px;
    }

    .edu-marker {
        left: -15px;
        width: 30px;
        height: 30px;
        top: 20px;
    }

    .edu-marker svg {
        width: 14px;
        height: 14px;
    }

    .edu-card {
        padding: 25px 20px;
    }

    .edu-degree {
        font-size: 20px;
    }
}

/* ====================================================
   Tech Stack Section Styles
   ==================================================== */
.techstack-section {
    position: relative;
    width: 100%;

    background-color: var(--bg-color);
    z-index: 10;
    overflow: hidden;
}

.techstack-content {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 60px;
    position: relative;
    z-index: 2;
}

.techstack-heading-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

.techstack-heading {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 3.8vw;
    line-height: 1.2;
    text-transform: uppercase;
    color: var(--text-main);
    letter-spacing: -0.01em;
    margin: 0;
}

.techstack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
    width: 100%;
}

/* Glassmorphism Tech Card */
.tech-card {
    position: relative;
    background: rgba(10, 15, 13, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease;
    will-change: transform, border-color, box-shadow;
}

.tech-card:hover {
    transform: translateY(-6px) scale(1.015);
    border-color: rgba(0, 255, 170, 0.25);
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.5),
        0 0 25px rgba(0, 255, 170, 0.05);
}

/* Dynamic Spotlight Hover Glow */
.tech-card-spotlight {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0, 255, 170, 0.08) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.tech-card:hover .tech-card-spotlight {
    opacity: 1;
}

/* Card details styling */
.tech-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.tech-card:hover .tech-icon {
    border-color: var(--accent-primary);
    background: rgba(0, 255, 170, 0.04);
}

.tech-icon svg {
    display: block;
}

.tech-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    z-index: 2;
}

.tech-info h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}

.tech-info p {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    font-weight: 300;
    margin: 0;
    min-height: 68px;
    /* Maintain vertical alignment uniformity */
}

/* Progress bar level */
.tech-level {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 5px;
}

.level-label {
    font-family: var(--font-body);
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--accent-primary);
}

.tech-progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

.tech-progress-fill {
    height: 100%;
    background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
    border-radius: 10px;
    transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 8px rgba(0, 255, 170, 0.4);
}

.tech-card:hover .tech-progress-fill {
    box-shadow: 0 0 12px var(--accent-primary);
}

/* Separators and sparkles */
.deco-line-tech-v {
    position: absolute;
    left: 5vw;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.08) 15%, rgba(255, 255, 255, 0.08) 85%, transparent);
    z-index: 1;
}

.sparkles-tech-v {
    position: absolute;
    left: calc(5vw - 10px);
    top: 30%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 2;
}

.deco-line-tech-h {
    position: absolute;
    bottom: 0;
    left: 8vw;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.08) 50%, transparent 100%);
    z-index: 1;
}

.sparkles-tech-h {
    position: absolute;
    bottom: -10px;
    right: 15vw;
    display: flex;
    gap: 15px;
    z-index: 2;
}

/* Media query responsive overrides */
@media (max-width: 1024px) {
    .techstack-section {
        padding: 100px 6vw;
    }

    .techstack-heading {
        font-size: 4.5vw;
    }
}

@media (max-width: 768px) {
    .techstack-section {
        padding: 80px 6vw;
    }

    .techstack-heading {
        font-size: 6vw;
    }

    .techstack-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }

    .deco-line-tech-v,
    .sparkles-tech-v {
        left: 4vw;
    }

    .sparkles-tech-v {
        left: calc(4vw - 10px);
    }
}

@media (max-width: 480px) {
    .techstack-grid {
        grid-template-columns: 1fr;
    }
}

/* Works Section Styles */
.works-section {
    position: relative;
    width: 100%;
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-color);
    z-index: 10;
    overflow: hidden;
}

.works-content {
    max-width: 1200px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.works-heading-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
}

.works-heading {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 3.8vw;
    line-height: 1.2;
    text-transform: uppercase;
    color: var(--text-main);
    letter-spacing: -0.01em;
    margin: 0;
}

.works-grid {
    display: flex;
    gap: 40px;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    position: relative;
    margin-top: 20px;
    transition: all 0.5s ease-in-out;
}

/* Individual Work Card */
.work-card {
    position: relative;
    width: 320px;
    height: 440px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
    background-size: cover;
    background-position: center;
    text-decoration: none;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.6s ease, box-shadow 0.6s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    z-index: 5;
}

.work-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.2) 60%, transparent 100%);
    z-index: 1;
    transition: opacity 0.4s ease;
}

.work-card-content {
    position: relative;
    z-index: 3;
    transform: translateY(0px);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.work-card-spotlight {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0, 255, 170, 0.12) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
}

.work-card:hover .work-card-spotlight {
    opacity: 1;
}

.work-card h3 {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 26px;
    color: var(--text-main);
    text-transform: uppercase;
    margin: 0 0 10px 0;
    letter-spacing: 0.02em;
    transition: color 0.3s ease;
}

.work-card p {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    margin: 0;
}

/* Card Hover Animations */
.work-card:hover {
    box-shadow: 0 40px 80px -15px rgba(0, 255, 170, 0.2);
    border-color: rgba(0, 255, 170, 0.3);
    transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.1s ease;
}

.work-card:hover .work-card-content {
    transform: translateY(-8px);
}

.work-card:hover h3 {
    color: var(--accent-primary);
}

/* Default Staggered/Overlapping State */
.works-section:not(.aligned) .work-card:nth-child(1) {
    transform: translate(60px, -20px) scale(0.98);
    z-index: 3;
}

.works-section:not(.aligned) .work-card:nth-child(2) {
    transform: translate(-10px, 90px) scale(0.98);
    z-index: 4;
}

.works-section:not(.aligned) .work-card:nth-child(3) {
    transform: translate(-80px, 200px) scale(0.98);
    z-index: 5;
}

/* Aligned State (triggered on scroll) */
.works-section.aligned .work-card {
    transform: translate(0, 0) scale(1);
}

/* Works Section Call To Action (View All) */
.works-cta-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 60px;
    position: relative;
    z-index: 10;
}

/* Decorative Sparkles & Lines at Bottom Left */
.deco-line-works-h {
    position: absolute;
    bottom: 8vh;
    left: 0;
    width: 25vw;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.08) 30%, rgba(255, 255, 255, 0.08) 100%);
    z-index: 1;
}

.sparkles-works-h {
    position: absolute;
    bottom: calc(8vh - 10px);
    left: 8vw;
    display: flex;
    gap: 15px;
    z-index: 2;
}

/* Responsive configurations */
@media (max-width: 1024px) {
    .works-section {
        padding: 100px 6vw;
    }

    .works-heading {
        font-size: 5vw;
    }

    .work-card {
        width: 280px;
        height: 380px;
        padding: 24px;
    }

    .work-card h3 {
        font-size: 22px;
    }

    /* Responsive Stagger offsets */
    .works-section:not(.aligned) .work-card:nth-child(1) {
        transform: translate(40px, -15px);
    }

    .works-section:not(.aligned) .work-card:nth-child(2) {
        transform: translate(-10px, 60px);
    }

    .works-section:not(.aligned) .work-card:nth-child(3) {
        transform: translate(-60px, 140px);
    }
}

@media (max-width: 768px) {
    .works-section {
        padding: 80px 6vw;
    }

    .works-heading {
        font-size: 7vw;
    }

    .works-grid {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .work-card {
        width: 100%;
        max-width: 360px;
        height: 420px;
    }

    /* Disable staggered overlay translations on mobile to stack neatly */
    .works-section:not(.aligned) .work-card:nth-child(1),
    .works-section:not(.aligned) .work-card:nth-child(2),
    .works-section:not(.aligned) .work-card:nth-child(3) {
        transform: translate(0, 0) scale(1);
    }

    .deco-line-works-h,
    .sparkles-works-h {
        display: none;
        /* Hide on mobile to clean up view */
    }
}

/* ====================================================
   Services (What We Do) Section Styles
   ==================================================== */
.services-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-color);
    z-index: 10;
    overflow: hidden;
}

/* Add background grid detail to Services section */
.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(0, 255, 170, 0.02) 1px, transparent 1px);
    background-size: 42px 42px;
    z-index: -1;
    pointer-events: none;
}

.services-content {
    max-width: 1200px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 60px;
    position: relative;
    z-index: 2;
}

.services-heading-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
}

.services-heading {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 3.8vw;
    line-height: 1.2;
    text-transform: uppercase;
    color: var(--text-main);
    letter-spacing: -0.01em;
    margin: 0;
}

.accordion-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    margin-top: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.services-row {
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s ease;
}

.services-row-header {
    width: 100%;
    background: transparent;
    border: none;
    padding: 36px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    cursor: none;
    color: var(--text-main);
    outline: none;
}

.services-row-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 36px;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    transition: color 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.services-row-header:hover .services-row-title {
    color: var(--accent-primary);
    transform: translateX(10px);
}

/* Plus/Minus Interactive Icon */
.plus-icon-wrapper {
    width: 24px;
    height: 24px;
    position: relative;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    flex-shrink: 0;
    margin-left: 20px;
}

.plus-line {
    background-color: var(--accent-primary);
    position: absolute;
    transition: background-color 0.3s ease, transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 0 8px var(--accent-glow);
}

.plus-line.horizontal {
    width: 24px;
    height: 2px;
    top: 11px;
    left: 0;
}

.plus-line.vertical {
    width: 2px;
    height: 24px;
    top: 0;
    left: 11px;
}

/* Active Row Animating states */
.services-row.active {
    background-color: rgba(255, 255, 255, 0.01);
}

.services-row.active .services-row-title {
    color: #ffffff;
    /* keep text white when active */
}

.services-row.active .plus-icon-wrapper {
    transform: rotate(135deg);
    /* Morph plus into 'X' by rotating */
}

/* Smooth Accordion Content Transition using CSS Grid Template Rows */
.services-row-content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    overflow: hidden;
}

.services-row.active .services-row-content {
    grid-template-rows: 1fr;
}

.services-row-inner {
    min-height: 0;
    visibility: hidden;
    transition: visibility 0.4s;
    padding-bottom: 40px;
}

.services-row.active .services-row-inner {
    visibility: visible;
}

/* Description Text inside row */
.services-row-text {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
    font-weight: 300;
    max-width: 850px;
    margin-bottom: 24px;
}

/* Tags Layout */
.services-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
}

.service-tag {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.03em;
    transition: color 0.3s ease;
}

.service-tag:hover {
    color: var(--accent-primary);
}

.tag-plus {
    color: var(--accent-primary);
    font-weight: 700;
    font-size: 15px;
    text-shadow: 0 0 6px var(--accent-glow);
}

/* Bottom decorative sparkles for services */
.deco-line-services-h {
    position: absolute;
    bottom: 8vh;
    right: 0;
    width: 25vw;
    height: 1px;
    background: linear-gradient(to left, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.08) 50%, transparent 100%);
    z-index: 1;
}

.sparkles-services-h {
    position: absolute;
    bottom: calc(8vh - 10px);
    right: 8vw;
    display: flex;
    gap: 15px;
    z-index: 2;
}

/* Responsive configurations for Services Section */
@media (max-width: 1024px) {
    .services-section {
        padding: 100px 6vw 140px 6vw;
    }

    .services-heading {
        font-size: 5vw;
    }

    .services-row-title {
        font-size: 30px;
    }

    .services-row-header {
        padding: 30px 0;
    }
}

@media (max-width: 768px) {
    .services-section {
        padding: 80px 6vw 100px 6vw;
    }

    .services-heading {
        font-size: 7vw;
    }

    .services-row-title {
        font-size: 24px;
    }

    .services-row-header {
        padding: 24px 0;
    }

    .services-row-text {
        font-size: 14px;
        line-height: 1.6;
    }

    .services-tags {
        gap: 10px 20px;
    }

    .service-tag {
        font-size: 13px;
    }

    .deco-line-services-h,
    .sparkles-services-h {
        display: none;
        /* Hide on mobile to clean up layout */
    }
}

/* ====================================================
   How We Work (Process) Section Styles
   ==================================================== */
.process-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-color);
    z-index: 10;
    overflow: hidden;
}

/* Background grid detail for Process section */
.process-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(0, 255, 170, 0.02) 1px, transparent 1px);
    background-size: 42px 42px;
    z-index: -1;
    pointer-events: none;
}

.process-content {
    max-width: 1200px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 60px;
    position: relative;
    z-index: 2;
}

.process-heading-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
}

.process-heading {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 3.8vw;
    line-height: 1.2;
    text-transform: uppercase;
    color: var(--text-main);
    letter-spacing: -0.01em;
    margin: 0;
    max-width: 800px;
}

/* Process Grid Container */
.process-grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    width: 100%;
    margin-top: 20px;
}

/* Process Cards */
.process-card {
    width: 100%;
    height: 480px;
    border-radius: 24px;
    background-color: var(--card-bg);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
    padding: 45px 35px;
    position: relative;
    overflow: hidden;
    user-select: none;
    -webkit-user-drag: none;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1),
        border-color 0.6s cubic-bezier(0.2, 0.8, 0.2, 1),
        box-shadow 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    scroll-snap-align: start;
    z-index: 2;
    transform-style: preserve-3d;
}

.process-card:hover {
    transform: perspective(1000px) rotateX(8deg) rotateY(-8deg) translateZ(10px) translateY(-10px);
    border-color: rgba(0, 255, 170, 0.5);
    box-shadow: -20px 20px 40px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 255, 170, 0.1);
    transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Water Hover Effect */
.water-effect {
    position: absolute;
    bottom: -150%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(0deg, rgba(0, 255, 170, 0.2) 0%, rgba(0, 229, 255, 0.05) 100%);
    border-radius: 40%;
    transition: bottom 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.8s ease;
    z-index: 0;
    animation: waterWave 6s infinite linear;
    opacity: 0;
    pointer-events: none;
}

.process-card:hover .water-effect {
    bottom: -80%;
    opacity: 1;
}

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

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

/* Spotlight Hover Effect */
.process-card-spotlight {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0, 255, 170, 0.12) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.process-card:hover .process-card-spotlight {
    opacity: 1;
}

/* Background Number styling */
.card-bg-number {
    position: absolute;
    bottom: -20px;
    right: 15px;
    font-family: var(--font-heading);
    font-size: 170px;
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.025);
    line-height: 1;
    user-select: none;
    pointer-events: none;
    z-index: 1;
    transition: -webkit-text-stroke 0.4s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.process-card:hover .card-bg-number {
    -webkit-text-stroke: 1.5px rgba(0, 255, 170, 0.06);
    transform: translateY(-8px) scale(1.04);
}

/* Card Header elements */
.process-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.process-icon-wrapper {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: rgba(0, 255, 170, 0.04);
    border: 1.5px solid rgba(0, 255, 170, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    box-shadow: 0 0 15px rgba(0, 255, 170, 0.04);
    transition: background-color 0.4s, border-color 0.4s, color 0.4s, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s;
}

.process-card:hover .process-icon-wrapper {
    background: var(--accent-primary);
    color: var(--bg-color);
    border-color: var(--accent-primary);
    box-shadow: 0 0 25px rgba(0, 255, 170, 0.35);
    transform: rotate(15deg) scale(1.06);
}

.process-card-icon {
    width: 28px;
    height: 28px;
    transition: stroke-width 0.3s ease;
}

.process-card-number {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
}

.process-card:hover .process-card-number {
    color: var(--accent-primary);
}

/* Title & text inside card */
.process-card-title {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 800;
    color: var(--text-main);
    text-transform: uppercase;
    margin: 0 0 15px 0;
    letter-spacing: 0.02em;
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.process-card:hover .process-card-title {
    color: #ffffff;
}

.process-card-text {
    font-family: var(--font-body);
    font-size: 14.5px;
    color: var(--text-muted);
    line-height: 1.6;
    font-weight: 300;
    margin: 0 0 30px 0;
    position: relative;
    z-index: 2;
}

/* Detailed subtasks at bottom of card */
.process-subtasks {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 25px;
    position: relative;
    z-index: 2;
    margin-top: auto;
}

.subtask-item {
    font-family: var(--font-body);
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.subtask-item:hover {
    color: var(--text-main);
    transform: translateX(4px);
}

.subtask-bullet {
    color: var(--accent-primary);
    font-weight: 700;
    font-size: 14px;
    text-shadow: 0 0 8px var(--accent-glow);
}

/* Left vertical decorative line and sparkles */
.deco-line-process-v {
    position: absolute;
    left: 5vw;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.08) 15%, rgba(255, 255, 255, 0.08) 85%, transparent);
    z-index: 1;
}

.sparkles-process-v {
    position: absolute;
    left: calc(5vw - 10px);
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 2;
}

.sparkles-process-v .sparkle-icon {
    width: 20px;
    height: 20px;
    color: var(--accent-primary);
    filter: drop-shadow(0 0 6px var(--accent-glow));
    animation: sparklePulse 2.5s infinite ease-in-out alternate;
}

.sparkles-process-v .sparkle-icon:nth-child(2) {
    animation-delay: 0.4s;
}

.sparkles-process-v .sparkle-icon:nth-child(3) {
    animation-delay: 0.8s;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .process-section {
        padding: 100px 6vw;
    }

    .process-heading {
        font-size: 5vw;
    }

    .process-timeline-container {
        left: 150px;
        right: 150px;
    }

    .process-card {
        flex: 0 0 330px;
        width: 330px;
        height: 450px;
        padding: 35px 28px;
    }

    .card-bg-number {
        font-size: 140px;
    }

    .process-card-title {
        font-size: 24px;
    }

    .process-card-text {
        font-size: 13.5px;
    }
}

@media (max-width: 768px) {
    .process-section {
        padding: 80px 6vw;
    }

    .process-heading {
        font-size: 7vw;
    }

    .process-timeline-container {
        position: absolute;
        top: 60px;
        bottom: 60px;
        left: 38px;
        width: 2px;
        height: auto;
        right: auto;
    }

    .process-timeline-line {
        width: 100%;
        height: 100%;
    }

    .process-timeline-progress {
        width: 100%;
        height: 0%;
        transition: height 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    }

    .process-track {
        flex-direction: column;
        align-items: flex-start;
        gap: 40px;
        overflow-x: visible;
        padding: 30px 10px 30px 65px;
        cursor: auto;
    }

    .process-card {
        flex: 0 0 auto;
        width: 100%;
        max-width: 420px;
        height: auto;
        min-height: 380px;
        padding: 35px 30px;
    }

    .card-bg-number {
        font-size: 120px;
        bottom: -15px;
    }

    .deco-line-process-v,
    .sparkles-process-v {
        display: none;
        /* Hide on mobile to clean up layout */
    }
}

/* ====================================================
   Testimonials Section Styles
   ==================================================== */
.testimonials-section {
    position: relative;
    width: 100%;
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-color);
    z-index: 10;
    overflow: hidden;
}

/* Subtle angled gradient backdrop */
.testimonials-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 80% 10%, rgba(0, 255, 170, 0.04) 0%, transparent 60%);
    z-index: -1;
    pointer-events: none;
}

.sparkles-testimonials-tr {
    position: absolute;
    top: 6vh;
    right: 8vw;
    display: flex;
    gap: 15px;
    z-index: 2;
}

.testimonials-content {
    max-width: 1400px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 70px;
    position: relative;
    z-index: 2;
}

.testimonials-heading-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
}

.testimonials-heading {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 3.8vw;
    line-height: 1.2;
    text-transform: uppercase;
    color: var(--text-main);
    letter-spacing: -0.01em;
    margin: 0;
}

/* Track Wrapper */
.testimonials-track-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* The actual scrollable element */
.testimonials-track {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 60px 20px 80px 20px;
    cursor: none;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    align-items: flex-start;
}

.testimonials-track::-webkit-scrollbar {
    display: none;
}

/* Individual Testimonial Card */
.testi-card {
    flex: 0 0 360px;
    width: 360px;
    background: rgba(10, 18, 15, 0.75);
    border: 1px solid rgba(0, 255, 170, 0.12);
    border-radius: 20px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    scroll-snap-align: start;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.5s ease, border-color 0.5s ease;
    user-select: none;
    -webkit-user-drag: none;
    position: relative;
    overflow: hidden;
}

/* Subtle inner glow at top */
.testi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0, 255, 170, 0.4), transparent);
    pointer-events: none;
}

/* Staggered vertical offsets to replicate the fan effect from screenshot */
.testimonials-track .testi-card:nth-child(1) {
    transform: translateY(40px);
}

.testimonials-track .testi-card:nth-child(2) {
    transform: translateY(0px);
}

.testimonials-track .testi-card:nth-child(3) {
    transform: translateY(25px);
}

.testimonials-track .testi-card:nth-child(4) {
    transform: translateY(10px);
}

.testi-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 30px 80px rgba(0, 255, 170, 0.15), 0 0 0 1px rgba(0, 255, 170, 0.25);
    border-color: rgba(0, 255, 170, 0.3);
}

/* Card Header (Avatar + Author + Date) */
.testi-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.testi-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 255, 170, 0.2), rgba(0, 229, 255, 0.2));
    border: 1.5px solid rgba(0, 255, 170, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    flex-shrink: 0;
}

.testi-author {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    min-width: 0;
}

.testi-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.testi-role {
    font-family: var(--font-body);
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.testi-date {
    font-family: var(--font-body);
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 400;
    flex-shrink: 0;
    margin-left: auto;
    align-self: flex-start;
}

/* Star Rating */
.testi-stars {
    display: flex;
    gap: 4px;
}

.star {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.1);
    transition: color 0.2s ease;
}

.star.filled {
    color: var(--accent-primary);
    text-shadow: 0 0 8px rgba(0, 255, 170, 0.5);
}

/* Review Title */
.testi-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 15px;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0;
    line-height: 1.3;
}

/* Review Body Text */
.testi-text {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    font-weight: 300;
    margin: 0;
}

/* Responsive Testimonials */
@media (max-width: 1024px) {
    .testimonials-section {
        padding: 100px 6vw 140px 6vw;
    }

    .testimonials-heading {
        font-size: 5vw;
    }

    .testi-card {
        flex: 0 0 320px;
        width: 320px;
        padding: 26px;
    }

    /* Flatten stagger on tablet */
    .testimonials-track .testi-card:nth-child(1) {
        transform: translateY(20px);
    }

    .testimonials-track .testi-card:nth-child(3) {
        transform: translateY(12px);
    }
}

@media (max-width: 768px) {
    .testimonials-section {
        padding: 80px 6vw 100px 6vw;
    }

    .testimonials-heading {
        font-size: 7vw;
    }

    .testi-card {
        flex: 0 0 290px;
        width: 290px;
        padding: 22px;
    }

    /* Disable stagger on mobile */
    .testimonials-track .testi-card:nth-child(n) {
        transform: translateY(0) !important;
    }

    .sparkles-testimonials-tr {
        display: none;
    }
}

/* ====================================================
   Contact Section Styles
   ==================================================== */
.contact-section {
    position: relative;
    width: 100%;
    min-height: 100vh;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background-color: var(--bg-color);
    z-index: 10;
    overflow: hidden;
}

/* Subtle angled radial glow */
.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 20% 80%, rgba(0, 229, 255, 0.04) 0%, transparent 60%);
    z-index: -1;
    pointer-events: none;
}

/* Right vertical decorative line */
.deco-line-contact-v {
    position: absolute;
    right: 5vw;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.08) 15%, rgba(255, 255, 255, 0.08) 85%, transparent);
    z-index: 1;
}

.sparkles-contact-v {
    position: absolute;
    right: calc(5vw - 10px);
    top: 45%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 2;
}

.contact-content {
    max-width: 1200px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 70px;
    position: relative;
    z-index: 2;
    padding-bottom: 80px;
}

.contact-heading-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

.contact-heading {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 3.8vw;
    line-height: 1.2;
    text-transform: uppercase;
    color: var(--text-main);
    letter-spacing: -0.01em;
    margin: 0;
    max-width: 900px;
}

.contact-subtext {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
    font-weight: 300;
    max-width: 480px;
    margin: 0;
}

/* Two-column grid: form + info */
.contact-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4vw;
    align-items: flex-start;
    width: 100%;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

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

.form-group label {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 14px 18px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 400;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    width: 100%;
    resize: none;
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.4)' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 12px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(0, 255, 170, 0.08), 0 0 15px rgba(0, 255, 170, 0.05);
    background: rgba(0, 255, 170, 0.02);
}

.form-group select:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2300ffaa' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

.form-group select option {
    background-color: #0b120f;
    color: var(--text-main);
    padding: 12px;
}

.form-group select option:disabled {
    color: rgba(255, 255, 255, 0.35);
}

/* Submit Button */
.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 16px 36px;
    background: var(--accent-primary);
    border: none;
    border-radius: 50px;
    color: var(--bg-color);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: none;
    align-self: flex-start;
    transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 0 30px rgba(0, 255, 170, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-submit::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: left 0.5s ease;
}

.btn-submit:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 50px rgba(0, 255, 170, 0.5);
}

.btn-submit:hover::before {
    left: 100%;
}

.btn-submit svg {
    transition: transform 0.3s ease;
}

.btn-submit:hover svg {
    transform: translateX(4px);
}

/* Contact Info Panel */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding-top: 10px;
    padding-bottom: 120px;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.contact-info-item:hover {
    border-color: rgba(0, 255, 170, 0.2);
    background: rgba(0, 255, 170, 0.03);
}

.ci-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(0, 255, 170, 0.08);
    border: 1px solid rgba(0, 255, 170, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    flex-shrink: 0;
}

.ci-icon svg {
    stroke: var(--accent-primary);
}

.ci-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ci-label {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.ci-value {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-main);
}

/* Social Links inside Contact Info */
.contact-social {
    display: flex;
    gap: 12px;
    padding-top: 8px;
}

.contact-social-link {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    fill: var(--text-muted);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.contact-social-link svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.contact-social-link:hover {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    background: rgba(0, 255, 170, 0.06);
    box-shadow: 0 0 12px rgba(0, 255, 170, 0.15);
    transform: translateY(-2px);
}

/* Pulley & Character System */
.pulley-character-area {
    position: relative;
    width: 100%;
    height: 260px;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 20px;
    overflow: visible;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 10px;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.2);
    transition: border-color 0.3s ease, background 0.3s ease;
}

.pulley-character-area:hover {
    border-color: rgba(0, 255, 170, 0.15);
    background: rgba(0, 255, 170, 0.01);
}

.pulley-mount {
    position: absolute;
    top: 10px;
    left: 20px;
}

#pulley-structure {
    filter: drop-shadow(0 0 10px rgba(0, 255, 170, 0.1));
}

#boy-character {
    filter: drop-shadow(0 0 15px rgba(0, 255, 170, 0.08));
}

#rope-path {
    filter: drop-shadow(0 0 8px rgba(0, 255, 170, 0.4));
}

@media (min-width: 1025px) {
    .contact-section {
        height: 100vh;
        min-height: 750px;
        overflow: visible;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .contact-info {
        gap: 12px !important;
        padding-bottom: 0 !important;
    }

    .contact-info-item {
        padding: 12px 18px !important;
    }

    .pulley-character-area {
        height: 210px !important;
    }
}

/* Pulley Mount Responsive Adjustments */
@media (max-width: 1024px) {
    .pulley-mount {
        left: 50% !important;
        top: -45px !important;
    }
}

/* Responsive Contact Section */
@media (max-width: 1024px) {
    .contact-section {
        padding: 100px 6vw 0 6vw;
    }

    .contact-heading {
        font-size: 5vw;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .contact-info {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 20px;
    }

    .contact-info-item {
        flex: 1 1 calc(50% - 10px);
    }

    .deco-line-contact-v,
    .sparkles-contact-v {
        display: none;
    }

    .pulley-character-area {
        display: none !important;
    }

    #pulley-rope-overlay {
        display: none !important;
    }

    .pulley-mount {
        display: none !important;
    }

    .contact-form-wrapper {
        transform: none !important;
        opacity: 1 !important;
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: 80px 6vw 0 6vw;
    }

    .contact-heading {
        font-size: 7vw;
    }

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

    .contact-info {
        flex-direction: column;
    }

    .contact-info-item {
        flex: 1;
    }

    .site-footer {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    /* Add 7th menu item animation delay */
    .menu-overlay.active .menu-item:nth-child(6) {
        animation-delay: 0.6s;
    }

    .menu-overlay.active .menu-item:nth-child(7) {
        animation-delay: 0.7s;
    }
}

/* Add animation delays for 8-item menu */
.menu-overlay.active .menu-item:nth-child(6) {
    animation-delay: 0.6s;
}

.menu-overlay.active .menu-item:nth-child(7) {
    animation-delay: 0.7s;
}

.menu-overlay.active .menu-item:nth-child(8) {
    animation-delay: 0.8s;
}

/* ====================================================
   Who I Work With — Sticky Split Heading + Scroll Cards
   ==================================================== */

/* Outer scroll container — tall enough for all 4 cards to pass through */
.whowith-section {
    position: relative;
    height: 280vh;
    background-color: var(--bg-color);
    z-index: 10;
}

/* Dot grid background */
.whowith-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(0, 255, 170, 0.015) 1px, transparent 1px);
    background-size: 42px 42px;
    z-index: 0;
    pointer-events: none;
}

/* The sticky 100vh frame — stays fixed as page scrolls */
.whowith-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Sparkles: top-left decoration */
.sparkles-whowith {
    position: absolute;
    top: 6vh;
    left: 8vw;
    display: flex;
    gap: 14px;
    z-index: 6;
}

/* Split heading blocks — position: absolute, JS animates font-size */
.whowith-heading {
    position: absolute;
    display: flex;
    flex-direction: column;
    line-height: 0.86;
    z-index: 3;
    pointer-events: none;
    user-select: none;
}

/* Default font-size (JS will override via style) */
.whowith-heading span {
    font-family: var(--font-heading);
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-main);
    letter-spacing: -0.025em;
    white-space: nowrap;
    display: block;
    font-size: 4.5vw;
}

.whowith-left-heading {
    left: 5vw;
    text-align: left;
    align-items: flex-start;
}

.whowith-right-heading {
    right: 5vw;
    text-align: right;
    align-items: flex-end;
}

/* Center viewport window — overflow hidden, masked gradient at top/bottom */
.whowith-window {
    width: 310px;
    height: 66vh;
    overflow: hidden;
    position: relative;
    z-index: 5;
    mask-image: linear-gradient(to bottom,
            transparent 0%,
            black 13%,
            black 84%,
            transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom,
            transparent 0%,
            black 13%,
            black 84%,
            transparent 100%);
}

/* Cards track — JS translates this upward as user scrolls */
.whowith-track {
    display: flex;
    flex-direction: column;
    gap: 18px;
    will-change: transform;
}

/* Individual client-type card */
.ww-card {
    width: 310px;
    background: rgba(8, 15, 12, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    padding: 24px 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex-shrink: 0;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

/* Subtle teal shimmer line at top of each card */
.ww-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0, 255, 170, 0.22), transparent);
    pointer-events: none;
}

.ww-card:hover {
    border-color: rgba(0, 255, 170, 0.2);
    box-shadow: 0 10px 40px rgba(0, 255, 170, 0.06);
}

/* Card header row: title + sparkle dots */
.ww-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.ww-card-title {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    letter-spacing: 0.01em;
    margin: 0;
}

/* Diamond sparkle row indicator */
.ww-dots {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

/* Card icon illustration area */
.ww-card-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80px;
}

/* Card description */
.ww-card-text {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.65;
    font-weight: 300;
    margin: 0;
}

/* Responsive — tablet */
@media (max-width: 1024px) {
    .whowith-window {
        width: 280px;
        height: 60vh;
    }

    .ww-card {
        width: 280px;
    }

    .whowith-heading span {
        font-size: 4vw;
    }
}

/* Responsive — mobile: disable sticky, stack vertically */
@media (max-width: 768px) {
    .whowith-section {
        height: auto;
        padding: 80px 6vw 80px 6vw;
    }

    .whowith-sticky {
        position: relative;
        height: auto;
        flex-direction: column;
        align-items: flex-start;
        gap: 36px;
        overflow: visible;
    }

    .whowith-heading {
        position: relative;
        left: auto !important;
        right: auto !important;
        text-align: left !important;
        align-items: flex-start !important;
    }

    .whowith-heading span {
        font-size: 14vw !important;
    }

    .whowith-right-heading {
        align-self: flex-end;
        text-align: right !important;
        align-items: flex-end !important;
    }

    .whowith-window {
        width: 100%;
        height: auto;
        overflow: visible;
        mask-image: none;
        -webkit-mask-image: none;
        align-self: center;
    }

    .whowith-track {
        flex-direction: column;
        gap: 20px;
    }

    .ww-card {
        width: 100%;
    }

    .sparkles-whowith {
        display: none;
    }
}

/* ====================================================
   FAQ Section
   ==================================================== */

.faq-section {
    position: relative;
    width: 100%;
    min-height: 100vh;

    display: flex;
    align-items: flex-start;
    justify-content: center;
    background-color: var(--bg-color);
    z-index: 10;
    /* overflow: hidden; */
}

/* Dot grid background */
.faq-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(0, 255, 170, 0.018) 1px, transparent 1px);
    background-size: 42px 42px;
    z-index: 0;
    pointer-events: none;
}

/* Right vertical decorative line */
.deco-line-faq-v {
    position: absolute;
    right: 5vw;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom,
            transparent,
            rgba(255, 255, 255, 0.07) 15%,
            rgba(255, 255, 255, 0.07) 85%,
            transparent);
    z-index: 1;
}

.sparkles-faq-v {
    position: absolute;
    right: calc(5vw - 10px);
    top: 42%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 2;
}

/* Two-column layout */
.faq-content {
    max-width: 1160px;
    width: 100%;
    display: grid;
    grid-template-columns: 0.82fr 1.18fr;
    gap: 7vw;
    align-items: start;
    position: relative;
    z-index: 2;
}

/* Left: sticky info panel */
.faq-left {
    position: sticky;
    top: 26vh;
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.faq-heading {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(2rem, 3vw, 3.4rem);
    line-height: 1.12;
    text-transform: uppercase;
    color: var(--text-main);
    letter-spacing: -0.015em;
    margin: 0;
}

.faq-desc {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.72;
    font-weight: 300;
    max-width: 300px;
    margin: 0;
}

/* Accordion wrapper — full border-top */
.faq-accordion-wrap {
    display: flex;
    flex-direction: column;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Individual item */
.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    transition: background-color 0.35s ease;
}

/* Active: teal left accent bar */
.faq-item.active {
    background-color: rgba(0, 255, 170, 0.015);
}

.faq-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--accent-primary);
    box-shadow: 0 0 10px rgba(0, 255, 170, 0.4);
    border-radius: 0 2px 2px 0;
}

/* Question button row */
.faq-btn {
    width: 100%;
    background: transparent;
    border: none;
    padding: 28px 6px 28px 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
    cursor: none;
    color: var(--text-main);
    outline: none;
    transition: padding-left 0.3s ease;
}

.faq-item.active .faq-btn {
    padding-left: 24px;
}

/* Item number */
.faq-num {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.22);
    min-width: 22px;
    letter-spacing: 0.1em;
    flex-shrink: 0;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.faq-item.active .faq-num {
    color: var(--accent-primary);
    text-shadow: 0 0 10px rgba(0, 255, 170, 0.5);
}

/* Question text */
.faq-q {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 17px;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    flex: 1;
    line-height: 1.25;
    color: var(--text-main);
    transition: color 0.3s ease;
}

.faq-btn:hover .faq-q {
    color: var(--accent-primary);
}

/* Active: rotate the plus → ×  (reuses .plus-icon-wrapper from services) */
.faq-item.active .plus-icon-wrapper {
    transform: rotate(135deg);
    border-color: var(--accent-primary);
}

/* Answer panel — smooth expand via CSS grid rows trick */
.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.42s cubic-bezier(0.2, 0.8, 0.2, 1);
    overflow: hidden;
}

.faq-item.active .faq-answer {
    grid-template-rows: 1fr;
}

.faq-answer-inner {
    min-height: 0;
    visibility: hidden;
    transition: visibility 0.42s;
    /* Offset: 22px btn-left-pad + 22px num-width + 16px gap = 60px */
    padding: 0 0 28px 60px;
}

.faq-item.active .faq-answer-inner {
    visibility: visible;
}

.faq-answer-inner p {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.72;
    font-weight: 300;
    max-width: 560px;
    margin: 0;
}

/* Menu animation delays for new items */
.menu-overlay.active .menu-item:nth-child(8) {
    animation-delay: 0.75s;
}

.menu-overlay.active .menu-item:nth-child(9) {
    animation-delay: 0.85s;
}

/* Responsive — tablet */
@media (max-width: 1100px) {
    .faq-content {
        grid-template-columns: 1fr;
        gap: 56px;
    }

    .faq-left {
        position: relative;
        top: auto;
    }

    .faq-heading {
        font-size: clamp(2.2rem, 5vw, 3rem);
    }

    .deco-line-faq-v,
    .sparkles-faq-v {
        display: none;
    }
}

/* Responsive — mobile */
@media (max-width: 768px) {
    .faq-section {
        padding: 80px 6vw 100px 6vw;
    }

    .faq-heading {
        font-size: 8vw;
    }

    .faq-q {
        font-size: 14px;
    }

    .faq-btn {
        padding: 22px 6px 22px 14px;
        gap: 12px;
    }

    .faq-item.active .faq-btn {
        padding-left: 16px;
    }

    .faq-answer-inner {
        padding: 0 0 22px 48px;
    }
}

/* ====================================================
   Footer — Big Name Signature
   ==================================================== */

.site-footer {
    position: relative;
    width: 100%;
    display: block;
    background-color: var(--bg-color);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    overflow: visible;
    padding-top: 60px;
    /* Allow giant background name to overflow top half */
}

/* Footer Widget Grid */
.footer-widgets-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
    padding: 80px 8vw 40px 8vw;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-widget {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.widget-title-small {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
}

.pulse-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    background-color: var(--accent-primary);
    border-radius: 50%;
    margin-right: 6px;
    box-shadow: 0 0 8px var(--accent-primary);
    animation: pulseDot 2s infinite;
    vertical-align: middle;
}

@keyframes pulseDot {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 255, 170, 0.6);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(0, 255, 170, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 255, 170, 0);
    }
}

.availability-status {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    color: var(--text-main);
    line-height: 1.5;
    margin: 0;
}

.local-time-wrap {
    margin-top: 5px;
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--text-muted);
}

#footer-local-time {
    color: var(--accent-secondary);
    font-weight: 500;
    margin-left: 4px;
}

.widget-links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 20px;
}

.f-link {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.f-link span {
    font-size: 10px;
    color: var(--accent-primary);
    margin-right: 6px;
    font-weight: 500;
}

.f-link:hover {
    color: var(--text-main);
}

.widget-socials-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.f-social-item {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.3s ease, transform 0.3s ease;
    width: fit-content;
}

.f-social-item .arrow {
    font-size: 12px;
    opacity: 0.5;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.f-social-item:hover {
    color: var(--accent-primary);
    transform: translateX(4px);
}

.f-social-item:hover .arrow {
    transform: translate(2px, -2px);
    opacity: 1;
}

/* THE GIANT BACKGROUND NAME */
.footer-bg-name-wrap {
    position: absolute;
    top: 0;
    /* Aligns to top edge of footer */
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    /* Let clicks pass through to widgets */
    z-index: 10;
    /* Behind widgets */
    overflow: visible;
    /* Allow name to peak out of top */
    user-select: none;
    transform: translateY(-50%);
    /* Centers text vertically on the top border line */
}

.footer-bg-name {
    font-family: var(--font-heading);
    font-weight: 900;
    text-transform: uppercase;
    font-size: clamp(32px, 6vw, 120px);
    /* Large size that fits viewport width without clipping */
    line-height: 0.72;
    letter-spacing: -0.05em;
    color: transparent;
    -webkit-text-stroke: 1.2px rgba(255, 255, 255, 0.025);
    /* Subtle outline */
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.005) 0%, rgba(255, 255, 255, 0.02) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: nowrap;
    display: inline-block;

    /* Animation state setup */
    transform: translateY(120px) scale(0.85);
    opacity: 0;
    transition: transform 1.8s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 1.8s cubic-bezier(0.16, 1, 0.3, 1),
        -webkit-text-stroke 0.8s cubic-bezier(0.25, 1, 0.5, 1),
        text-shadow 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform, opacity;
}

/* Scroll-triggered reveal */
.site-footer.revealed .footer-bg-name {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Hover effect on footer hover */
.site-footer:hover .footer-bg-name {
    -webkit-text-stroke: 1.5px rgba(0, 255, 170, 0.22);
    background: linear-gradient(180deg, rgba(0, 255, 170, 0.02) 0%, rgba(0, 255, 170, 0.12) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 50px rgba(0, 255, 170, 0.18);
    transform: translateY(-8px) scale(1.015);
}

/* Bottom bar — copyright */
.footer-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 8vw 24px 8vw;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-copy {
    font-family: var(--font-body);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.25);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.back-to-top-btn {
    background: none;
    border: none;
    outline: none;
    padding: 0;
    cursor: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.back-to-top-btn svg {
    transition: transform 0.3s ease;
}

.back-to-top-btn:hover {
    color: var(--accent-primary);
}

.back-to-top-btn:hover svg {
    transform: translateY(-3px);
}

@media (max-width: 900px) {
    .footer-widgets-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        padding: 60px 6vw 30px 6vw;
    }

    .widget-bio {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .footer-bar {
        flex-direction: column-reverse;
        gap: 16px;
        text-align: center;
        padding: 20px 6vw;
    }
}

@media (max-width: 600px) {
    .footer-widgets-grid {
        grid-template-columns: 1fr;
        gap: 35px;
        padding: 50px 6vw 25px 6vw;
    }

    .widget-bio {
        grid-column: span 1;
    }

    .widget-links-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .footer-bg-name-wrap {
        padding: 40px 4vw 16px 4vw;
    }
}

/* ====================================================
   3D Perspective About Modal Styles
   ==================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(4, 7, 6, 0.88);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1),
        visibility 0.5s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-container {
    max-width: 1000px;
    width: 100%;
    background-color: var(--card-bg);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 32px;
    padding: 55px;
    position: relative;
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transform: perspective(1200px) rotateX(-50deg) rotateY(15deg) scale(0.6) translateZ(-400px);
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1),
        opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.modal-overlay.active .modal-container {
    transform: perspective(1200px) rotateX(0deg) rotateY(0deg) scale(1) translateZ(0);
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 25px;
    right: 30px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 36px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 10;
    padding: 5px;
    outline: none;
}

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

/* Modal Content Grid */
.modal-content {
    width: 100%;
}

.modal-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 50px;
    align-items: center;
}

/* Modal Left: Profile Card with 3D Tilt container */
.modal-left {
    perspective: 1000px;
    width: 100%;
}

.profile-card-3d {
    position: relative;
    background: rgba(255, 255, 255, 0.01);
    border: 1.5px solid rgba(255, 255, 255, 0.04);
    border-radius: 24px;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform 0.1s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.profile-card-3d:hover {
    border-color: rgba(0, 255, 170, 0.3);
    box-shadow: 0 25px 50px rgba(0, 255, 170, 0.06);
}

.profile-card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at var(--card-mx, 50%) var(--card-my, 50%), rgba(0, 255, 170, 0.08) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
}

.profile-avatar-wrap {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--accent-primary);
    box-shadow: 0 0 20px var(--accent-glow);
    margin-bottom: 20px;
    transform: translateZ(30px);
    z-index: 2;
}

.profile-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 30%;
}

.profile-name {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 6px;
    transform: translateZ(25px);
    z-index: 2;
}

.profile-title {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 25px;
    transform: translateZ(20px);
    z-index: 2;
}

.profile-socials {
    display: flex;
    gap: 15px;
    transform: translateZ(15px);
    z-index: 2;
}

.psocial-link {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.psocial-link:hover {
    color: var(--accent-primary);
}

/* Modal Right Side text content */
.modal-right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.modal-section-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-primary);
    text-shadow: 0 0 8px var(--accent-glow);
    margin-bottom: 10px;
}

.modal-heading {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.1;
    margin: 0 0 20px 0;
    color: #ffffff;
}

.modal-text {
    font-family: var(--font-body);
    font-size: 14.5px;
    color: var(--text-muted);
    line-height: 1.6;
    font-weight: 300;
    margin-bottom: 20px;
}

/* Tech Skills panel */
.modal-skills-section {
    width: 100%;
    margin-bottom: 35px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 25px;
}

.skills-heading {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #ffffff;
    margin-bottom: 12px;
}

.modal-skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mskill-tag {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 500;
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 6px 14px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.mskill-tag:hover {
    color: var(--accent-primary);
    border-color: rgba(0, 255, 170, 0.3);
}

.modal-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    margin-top: auto;
}

/* Responsive Modal styles overrides */
@media (max-width: 900px) {
    .modal-container {
        padding: 40px;
        border-radius: 28px;
    }

    .modal-grid {
        gap: 35px;
    }

    .modal-heading {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .modal-overlay {
        padding: 10px;
        align-items: flex-start;
        overflow-y: auto;
    }

    .modal-container {
        margin: 20px auto;
        padding: 35px 25px;
        height: auto;
        max-height: none;
    }

    .modal-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .profile-card-3d {
        padding: 30px 20px;
    }

    .modal-close {
        top: 15px;
        right: 20px;
    }

    .modal-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .modal-actions .btn-primary,
    .modal-actions .about-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ====================================================
   Premium Noise Overlay & Header Progress Styles
   ==================================================== */
.noise-overlay {
    position: fixed;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    width: 200%;
    height: 200%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.04;
    /* Very subtle organic film grain overlay */
    pointer-events: none;
    z-index: 99999;
    /* Rendering above all content except custom cursor */
    animation: noiseAnimation 0.2s infinite;
}

#header-scroll-progress {
    display: none !important;
}

@keyframes noiseAnimation {
    0% {
        transform: translate(0, 0);
    }

    10% {
        transform: translate(-5%, -5%);
    }

    20% {
        transform: translate(-10%, 5%);
    }

    30% {
        transform: translate(5%, -10%);
    }

    40% {
        transform: translate(-5%, 15%);
    }

    50% {
        transform: translate(-10%, 5%);
    }

    60% {
        transform: translate(15%, -5%);
    }

    70% {
        transform: translate(0, 10%);
    }

    80% {
        transform: translate(-5%, -5%);
    }

    90% {
        transform: translate(10%, 5%);
    }

    100% {
        transform: translate(5%, 0);
    }
}

/* Premium Word Slide-Up Reveal */
.scramble-text {
    opacity: 1;
}

.word-mask {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
    padding-bottom: 0.15em;
    /* Avoid font descender clipping */
    margin-bottom: -0.15em;
    margin-right: 0.22em;
    /* Spacing between words */
}

.word-inner {
    display: inline-block;
    transform: translateY(105%);
    transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.scramble-text.revealed .word-inner {
    transform: translateY(0);
}

/* ====================================================
   GLOBAL RESPONSIVE OVERRIDES
   These rules override previous styles for precise
   scaling across 7 key breakpoints.
   ==================================================== */

/* ----------------------------------------------------
   1. Large Desktop (max-width: 1440px)
   ---------------------------------------------------- */
@media (max-width: 1440px) {

    .container,
    .about-content,
    .techstack-grid,
    .services-grid {
        max-width: 1200px;
        margin: 0 auto;
    }

    .hero-title {
        font-size: 11vw;
    }
}

/* ----------------------------------------------------
   2. Small Laptop (max-width: 1200px)
   ---------------------------------------------------- */
@media (max-width: 1200px) {
    .giant-name {
        font-size: 14vw;
        letter-spacing: -4px;
    }

    .hero-title {
        font-size: 11vw;
        letter-spacing: -2px;
    }

    .techstack-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        gap: 60px;
    }

    .about-content {
        gap: 60px;
    }
}

/* ----------------------------------------------------
   3. Tablet Landscape (max-width: 1024px)
   ---------------------------------------------------- */
@media (max-width: 1024px) {

    /* Layout structural shifts */
    section {
        padding: 100px 6vw;
    }

    .hero-section {
        padding: 0;
    }

    .about-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .about-left,
    .about-right {
        width: 100%;
    }

    .about-right {
        padding-left: 0;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 40px;
    }

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

    .contact-wrapper {
        flex-direction: column;
        gap: 60px;
    }

    .contact-form-container,
    .contact-info-panel {
        width: 100%;
        max-width: 100%;
        border-left: none;
        padding-left: 0;
    }

    .footer-grid {
        flex-direction: column;
        gap: 40px;
    }

    .footer-col {
        width: 100%;
    }

    /* Typography */
    .section-title {
        font-size: 50px;
    }

    .hero-title {
        font-size: 12vw;
    }
}

/* ----------------------------------------------------
   4. Tablet Portrait (max-width: 991px)
   ---------------------------------------------------- */
@media (max-width: 991px) {
    .faq-wrapper {
        flex-direction: column;
    }

    .faq-left {
        width: 100%;
        position: relative;
        top: 0;
        margin-bottom: 40px;
    }

    .faq-right {
        width: 100%;
    }

    .process-track-container {
        padding: 0 4vw;
    }

    .process-card {
        min-width: 350px;
        height: 450px;
    }

    /* Menu Overlay Adjustments */
    .menu-overlay .menu-content {
        flex-direction: column-reverse;
    }

    .menu-left-panel,
    .menu-right-panel {
        width: 100%;
        height: auto;
    }

    .menu-left-panel {
        min-height: 40vh;
        border-right: none;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }

    .menu-right-panel {
        padding: 100px 6vw 40px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* ----------------------------------------------------
   5. Mobile Landscape / Small Tablet (max-width: 768px)
   ---------------------------------------------------- */
@media (max-width: 768px) {

    /* Global Section Paddings */
    section {
        padding: 80px 5vw;
    }

    .hero-section {
        padding: 0;
    }

    /* Header */
    .header {
        padding: 16px 5vw;
    }

    /* Hide non-essential text on mobile to save space */
    .menu-text,
    .logo-subtext {
        display: none;
    }

    /* Scale down logo and button */
    .logo-text {
        font-size: 16px;
    }

    .logo-svg {
        width: 24px;
        height: 24px;
    }

    .contact-btn {
        padding: 8px 16px;
        font-size: 11px;
        gap: 6px;
    }

    /* Disable Custom Cursor on Touch Devices */
    .custom-cursor,
    .cursor-dot {
        display: none !important;
    }

    * {
        cursor: auto !important;
    }

    /* Hero Adjustments */
    .hero-title {
        font-size: 12vw;
    }

    .hero-cube-container {
        transform: scale(0.7);
    }

    /* Tech Stack */
    .techstack-grid {
        grid-template-columns: 1fr;
    }

    /* Typography */
    .section-title {
        font-size: 38px;
    }

    .giant-name {
        font-size: 16vw;
        letter-spacing: -2px;
    }

    .footer-cta-text {
        font-size: 32px;
    }

    /* Modal */
    .about-modal-content {
        flex-direction: column;
        border-radius: 0;
        min-height: 100vh;
    }

    .about-modal-left {
        display: none;
        /* Hide 3D card on mobile to save space */
    }

    .about-modal-right {
        padding: 40px 5vw;
    }
}

/* ----------------------------------------------------
   6. Mobile Portrait (max-width: 576px)
   ---------------------------------------------------- */
@media (max-width: 576px) {
    section {
        padding: 60px 4vw;
    }

    /* Typography */
    .section-title {
        font-size: 32px;
    }

    .section-number {
        font-size: 13px;
        margin-bottom: 16px;
    }

    .hero-title {
        font-size: 9vw;
    }

    .process-card {

        padding: 30px;
    }

    .tech-card {
        padding: 24px;
    }

    .contact-form-container {
        padding: 30px 20px;
    }

    .form-group input,
    .form-group textarea {
        padding: 16px 20px;
        font-size: 14px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .services-row-title {
        font-size: 14px;
    }

    .process-card-title {
        font-size: 14px;
    }

    .process-card {
        min-width: auto;
        height: auto;
    }

    /* header.scrolled {
        transform: translate(0, calc(-100% - 16px));
        width: 90%;
        max-width: fit-content;
        padding: 8px 12px;
        left: 0;
    } */

    .footer-bg-name {
        display: none;
    }

    .menu-item {
        font-size: 6vw;
    }

    .menu-item span {
        opacity: 1;
    }


}

/* ----------------------------------------------------
   7. Small Mobile (max-width: 375px)
   ---------------------------------------------------- */
@media (max-width: 375px) {
    .section-title {
        font-size: 28px;
    }

    .hero-title {
        font-size: 12vw;
    }

    .hero-cube-container {
        transform: scale(0.6);
    }



    .techstack-grid {
        gap: 20px;
    }

    .faq-question {
        font-size: 16px;
        padding: 20px 0;
    }
}

/* ============================================
   SWIPER 3D BOX SLIDER WORKS SECTION
   ============================================ */

.works-section {
    position: relative;
    padding: 100px 0 120px;
    background: transparent;
    overflow: hidden;
    display: block !important;
    /* Override flex layout defined elsewhere */
    min-height: auto !important;
    /* Override full-viewport min-height */
}

/* Header inside works section */
.works-header-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6vw 30px;
    flex-wrap: wrap;
    gap: 20px;
    position: relative;
    z-index: 10;
}

.works-heading {
    font-family: var(--font-heading);
    font-size: clamp(36px, 5vw, 72px);
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.02em;
    margin: 0;
    text-transform: uppercase;
}

/* Swiper Controls: Navigation + Counter */
.works-controls-wrap {
    display: flex;
    align-items: center;
    gap: 24px;
}

.swiper-nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    outline: none;
    padding: 0;
}

.swiper-nav-btn:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: rgba(0, 255, 170, 0.05);
    box-shadow: 0 0 20px var(--accent-glow);
    transform: scale(1.08);
}

.works-counter {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    display: flex;
    align-items: center;
    gap: 8px;
    user-select: none;
}

.works-counter #works-current {
    color: var(--accent-primary);
    font-weight: 700;
    font-size: 20px;
}

.works-sep {
    opacity: 0.4;
}

/* Progress bar at top of works section */
.works-progress-bar-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.06);
    z-index: 10;
}

.works-progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    transition: width 0.3s ease;
    box-shadow: 0 0 8px var(--accent-glow);
}

/* Swiper Container */
.works-swiper {
    width: 100%;
    padding: 60px 0 80px;
    overflow: visible !important;
    /* Essential for 3D depth card rotations */
    perspective: 1600px;
}

.works-swiper .swiper-slide {
    width: 600px;
    max-width: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
    /* 3D Context for slides */
    transform-style: preserve-3d;
    backface-visibility: hidden;
    transition: opacity 0.4s ease;
}

/* Individual Card */
.work-card-h {
    position: relative;
    width: 100%;
    height: 450px;
    border-radius: 24px;
    overflow: hidden;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.07);
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
    display: block;
    cursor: none;
    background: #0f1219;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

.work-card-h:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6), 0 0 35px var(--accent-glow);
}

/* Background Image */
.work-card-h-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

/* Dark gradient overlay */
.work-card-h-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(6, 9, 8, 0.98) 0%,
            rgba(6, 9, 8, 0.65) 45%,
            rgba(6, 9, 8, 0.15) 75%,
            transparent 100%);
    transition: background 0.4s ease;
}

.work-card-h:hover .work-card-h-overlay {
    background: linear-gradient(to top,
            rgba(6, 9, 8, 1) 0%,
            rgba(6, 9, 8, 0.75) 50%,
            rgba(6, 9, 8, 0.2) 80%,
            transparent 100%);
}

/* Card Content */
.work-card-h-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transform: translateZ(50px);
    /* Pushes content out in 3D space */
}

/* Project Number */
.work-card-h-num {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-primary);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.8;
}

.work-card-h-content h3 {
    font-family: var(--font-heading);
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 800;
    color: var(--text-main);
    margin: 0;
    letter-spacing: -0.01em;
    line-height: 1.1;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.work-card-h:hover .work-card-h-content h3 {
    color: var(--accent-primary);
}

.work-card-h-content p {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
    letter-spacing: 0.02em;
}

/* Tags */
.work-card-h-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.work-card-h-tags span {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent-primary);
    background: rgba(0, 255, 170, 0.07);
    border: 1px solid rgba(0, 255, 170, 0.2);
    border-radius: 30px;
    padding: 4px 12px;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.work-card-h:hover .work-card-h-tags span {
    background: rgba(0, 255, 170, 0.12);
    border-color: rgba(0, 255, 170, 0.4);
}

/* Arrow Icon */
.work-card-h-arrow {
    position: absolute;
    top: 32px;
    right: 32px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    background: rgba(255, 255, 255, 0.04);
    transform: translateZ(40px);
}

.work-card-h:hover .work-card-h-arrow {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: rgba(0, 255, 170, 0.08);
    transform: translateZ(40px) scale(1.1);
    box-shadow: 0 0 16px var(--accent-glow);
}

/* CTA below slider */
.works-cta-wrapper {
    display: flex;
    justify-content: center;
    padding: 40px 6vw 60px;
    position: relative;
    z-index: 10;
}

/* Decorative elements */
.deco-line-works-h {
    position: absolute;
    bottom: 0;
    left: 6vw;
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, var(--accent-primary), transparent);
    opacity: 0.15;
}

.sparkles-works-h {
    position: absolute;
    bottom: 20px;
    right: 4vw;
    display: flex;
    gap: 8px;
}

.sparkles-works-h .sparkle-icon {
    width: 10px;
    height: 10px;
    color: var(--accent-primary);
    opacity: 0.3;
    animation: sparkleFloat 3s infinite ease-in-out;
}

.sparkles-works-h .sparkle-icon:nth-child(2) {
    animation-delay: 0.4s;
}

.sparkles-works-h .sparkle-icon:nth-child(3) {
    animation-delay: 0.8s;
}

/* Responsive Grid/Swiper adjustments */
@media (max-width: 900px) {
    .works-section {
        padding: 60px 0 80px;
    }

    .works-swiper {
        padding: 30px 0 50px;
    }

    .works-swiper .swiper-slide {
        width: 480px;
    }

    .work-card-h {
        height: 380px;
    }

    .works-header-wrap {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

@media (max-width: 600px) {
    .works-swiper .swiper-slide {
        width: 85vw;
    }

    .work-card-h {
        height: 420px;
    }

    .work-card-h-content {
        padding: 24px;
    }

    .work-card-h-arrow {
        top: 24px;
        right: 24px;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .work-card-h {
        height: 380px;
    }
}

/* ====================================================
   Figma Infographic Section
   ==================================================== */
.figma-infographic-section {
    padding: 100px 5%;
    background: linear-gradient(135deg, #0a0c11 0%, #101217 100%);
    position: relative;
    z-index: 10;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.figma-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1150px;
    margin: 0 auto;
    align-items: center;
    padding-left: 5vw;
}

.figma-content {
    position: relative;
    z-index: 2;
    background: rgba(20, 24, 33, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.figma-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.figma-stat-item {
    display: flex;
    flex-direction: column;
    border-left: 2px solid var(--accent-primary);
    padding-left: 15px;
}

.figma-stat-val {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
}

.work-card-h-tags span {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent-primary);
    background: rgba(0, 255, 170, 0.07);
    border: 1px solid rgba(0, 255, 170, 0.2);
    border-radius: 30px;
    padding: 4px 12px;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.work-card-h:hover .work-card-h-tags span {
    background: rgba(0, 255, 170, 0.12);
    border-color: rgba(0, 255, 170, 0.4);
}

/* Arrow Icon */
.work-card-h-arrow {
    position: absolute;
    top: 32px;
    right: 32px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    background: rgba(255, 255, 255, 0.04);
    transform: translateZ(40px);
}

.work-card-h:hover .work-card-h-arrow {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: rgba(0, 255, 170, 0.08);
    transform: translateZ(40px) scale(1.1);
    box-shadow: 0 0 16px var(--accent-glow);
}

/* CTA below slider */
.works-cta-wrapper {
    display: flex;
    justify-content: center;
    padding: 40px 6vw 60px;
    position: relative;
    z-index: 10;
}

/* Decorative elements */
.deco-line-works-h {
    position: absolute;
    bottom: 0;
    left: 6vw;
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, var(--accent-primary), transparent);
    opacity: 0.15;
}

.sparkles-works-h {
    position: absolute;
    bottom: 20px;
    right: 4vw;
    display: flex;
    gap: 8px;
}

.sparkles-works-h .sparkle-icon {
    width: 10px;
    height: 10px;
    color: var(--accent-primary);
    opacity: 0.3;
    animation: sparkleFloat 3s infinite ease-in-out;
}

.sparkles-works-h .sparkle-icon:nth-child(2) {
    animation-delay: 0.4s;
}

.sparkles-works-h .sparkle-icon:nth-child(3) {
    animation-delay: 0.8s;
}

/* Responsive Grid/Swiper adjustments */
@media (max-width: 900px) {
    .works-section {
        padding: 60px 0 80px;
    }

    .works-swiper {
        padding: 30px 0 50px;
    }

    .works-swiper .swiper-slide {
        width: 480px;
    }

    .work-card-h {
        height: 380px;
    }

    .works-header-wrap {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

@media (max-width: 600px) {
    .works-swiper .swiper-slide {
        width: 85vw;
    }

    .work-card-h {
        height: 420px;
    }

    .work-card-h-content {
        padding: 24px;
    }

    .work-card-h-arrow {
        top: 24px;
        right: 24px;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .work-card-h {
        height: 380px;
    }
}

/* ====================================================
   Figma Infographic Section
   ==================================================== */
.figma-infographic-section {
    padding: 100px 5%;
    background: linear-gradient(135deg, #0a0c11 0%, #101217 100%);
    position: relative;
    z-index: 10;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.figma-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1150px;
    margin: 0 auto;
    align-items: center;
    padding-left: 5vw;
}

.figma-content {
    position: relative;
    z-index: 2;
    background: rgba(20, 24, 33, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.figma-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.figma-stat-item {
    display: flex;
    flex-direction: column;
    border-left: 2px solid var(--accent-primary);
    padding-left: 15px;
}

.figma-stat-val {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    font-family: 'Syne', sans-serif;
}

.figma-stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

.figma-visual {
    position: relative;
    height: 550px;
    perspective: 1200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.figma-cube-wrapper {
    width: 260px;
    height: 360px;
    perspective: 1200px;
    position: relative;
    z-index: 10;
}

.figma-cube {
    width: 100%;
    height: 100%;
    position: absolute;
    transform-style: preserve-3d;
    animation: rotateCube 20s infinite linear;
}

.figma-face {
    position: absolute;
    width: 260px;
    height: 360px;
    border: 1px solid rgba(0, 255, 170, 0.4);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8), inset 0 0 15px rgba(0, 255, 170, 0.2);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(10, 15, 13, 0.9);
}

.figma-face img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.figma-face:hover img {
    opacity: 1;
}

/* 3D Positioning for Rectangular Prism */
.figma-front {
    transform: rotateY(0deg) translateZ(130px);
}

.figma-back {
    transform: rotateY(180deg) translateZ(130px);
}

.figma-right {
    transform: rotateY(90deg) translateZ(130px);
}

.figma-left {
    transform: rotateY(-90deg) translateZ(130px);
}

.figma-top {
    height: 260px;
    top: 50px;
    transform: rotateX(90deg) translateZ(180px);
}

.figma-bottom {
    height: 260px;
    top: 50px;
    transform: rotateX(-90deg) translateZ(180px);
}

@keyframes rotateCube {
    0% {
        transform: rotateX(-15deg) rotateY(0deg);
    }

    100% {
        transform: rotateX(-15deg) rotateY(360deg);
    }
}

.figma-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(0, 255, 170, 0.1) 0%, transparent 60%);
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
    animation: pulseGlow 4s infinite alternate;
}

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

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

@media (max-width: 992px) {
    .figma-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        padding-left: 0;
    }

    .figma-visual {
        height: 400px !important;
    }

    .figma-content {
        padding: 25px;
    }
}

@media(max-width:576px) {
    .works-heading {
        font-family: var(--font-heading);
        font-size: clamp(22px, 5vw, 72px) !important;
    }

    .work-card-h-content h3 {
        font-family: var(--font-heading);
        font-size: clamp(14px, 3vw, 36px);
    }

    .process-grid-container {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
    }

    .whowith-heading span {
        font-size: 8vw !important;
    }

    .faq-heading {
        font-size: 5vw;
    }

    .testimonials-heading {
        font-size: 5vw;
    }

    .testi-title {
        font-size: 13px;
    }

    .testimonials-section {
        padding: 64px 6vw 0px 6vw;
    }

    .contact-heading {
        font-size: 5vw;
    }

}