/* ============================================
   NEXUS STUDIO - Ultra Premium Creative Agency
   ============================================ */

/* --- CSS Custom Properties (DARK THEME — default) --- */
:root {
    --green: #c8ff00;
    --mint: #3dffa0;
    --cyan: #00d4e0;
    --purple: #8b5cf6;
    --dark: #0a0a0f;
    --dark-2: #12121a;
    --dark-3: #1a1a2e;
    --surface: rgba(255, 255, 255, 0.03);
    --surface-2: rgba(255, 255, 255, 0.06);
    --text: #e8e8ed;
    --text-dim: #6b6b80;
    --text-muted: #3a3a50;
    --glass-bg: rgba(18, 18, 26, 0.6);
    --glass-border: rgba(255, 255, 255, 0.06);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    /* Theme-aware helpers (used by both themes; overridden in light) */
    --body-bg: var(--dark);
    --body-bg-2: var(--dark-2);
    --bg-glow-1: rgba(139, 92, 246, 0.10);
    --bg-glow-2: rgba(0, 212, 224, 0.08);
    --bg-glow-3: rgba(200, 255, 0, 0.06);
    --nav-bg: rgba(10, 10, 15, 0.85);
    --scrollbar-track: var(--dark);
    --scrollbar-thumb: var(--dark-3);
    --selection-bg: rgba(182, 255, 0, 0.25);
    --selection-color: #fff;
    --invert: 0; /* 1 in light mode to flip silhouettes */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --font-heading: 'Sora', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* --- LIGHT THEME — soft white, ambient purple/cyan, Apple-grade minimal --- */
:root[data-theme="light"] {
    --dark: #f7f8fc;          /* soft off-white instead of near-black */
    --dark-2: #eef0f7;
    --dark-3: #e3e6ef;
    --surface: rgba(15, 20, 40, 0.04);
    --surface-2: rgba(15, 20, 40, 0.07);
    --text: #1a1d29;
    --text-dim: #5a6175;
    --text-muted: #9aa0b4;
    --glass-bg: rgba(255, 255, 255, 0.72);
    --glass-border: rgba(15, 20, 40, 0.08);
    --glass-shadow: 0 10px 40px rgba(80, 80, 130, 0.10);
    --body-bg: #f7f8fc;
    --body-bg-2: #eaecf5;
    --bg-glow-1: rgba(139, 92, 246, 0.16);
    --bg-glow-2: rgba(0, 180, 220, 0.12);
    --bg-glow-3: rgba(200, 255, 0, 0.06);
    --nav-bg: rgba(255, 255, 255, 0.78);
    --scrollbar-track: #eef0f7;
    --scrollbar-thumb: #c8cde0;
    --selection-bg: rgba(139, 92, 246, 0.18);
    --selection-color: #1a1d29;
    --invert: 1; /* hero K logo & brand silhouettes flip dark for visibility */
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
    overflow-x: hidden;
    overscroll-behavior-x: none;
    /* Smooth theme transition (only on values that benefit from it — never on transforms) */
    transition: background-color 0.5s ease, color 0.5s ease;
}

html::-webkit-scrollbar {
    width: 6px;
}
html::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
}
html::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 3px;
}

body {
    font-family: var(--font-body);
    background-color: var(--body-bg);
    color: var(--text);
    overflow-x: hidden;
    overscroll-behavior-x: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
    transition: background-color 0.5s ease, color 0.5s ease;
}

/* Global theme transition for components that share these properties.
   Excluded from transforms / animations to keep marquee smooth. */
.nav, .glass-card, .footer, .section,
.btn, .nav-cta, .nav-link, .footer-link,
.service-card, .stat-card, .showcase-card, .pcard,
.brand-marquee-section, .brand-item,
.cta-section, .testimonial-card,
.demo-card-public, .demo-card-icon,
input, textarea, select {
    transition: background-color 0.45s ease, color 0.45s ease,
                border-color 0.45s ease, box-shadow 0.45s ease;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    display: block;
}

button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    color: inherit;
}

::selection {
    background: var(--selection-bg);
    color: var(--selection-color);
}

/* --- Preloader --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--body-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.6s var(--ease-out-expo), visibility 0.6s;
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.preloader-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid transparent;
}

.preloader-ring:nth-child(1) {
    width: 120px;
    height: 120px;
    border-top-color: var(--green);
    animation: preloaderSpin 1.2s linear infinite;
}

.preloader-ring:nth-child(2) {
    width: 90px;
    height: 90px;
    border-right-color: var(--cyan);
    animation: preloaderSpin 1s linear infinite reverse;
}

.preloader-ring:nth-child(3) {
    width: 60px;
    height: 60px;
    border-bottom-color: var(--purple);
    animation: preloaderSpin 0.8s linear infinite;
}

@keyframes preloaderSpin {
    to { transform: rotate(360deg); }
}

.preloader-text {
    display: flex;
    gap: 4px;
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 8px;
    margin-top: 80px;
}

.preloader-text span {
    display: inline-block;
    animation: preloaderLetter 1.5s var(--ease-out-expo) infinite;
    background: linear-gradient(135deg, var(--green), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.preloader-text span:nth-child(2) { animation-delay: 0.1s; }
.preloader-text span:nth-child(3) { animation-delay: 0.2s; }
.preloader-text span:nth-child(4) { animation-delay: 0.3s; }
.preloader-text span:nth-child(5) { animation-delay: 0.4s; }

@keyframes preloaderLetter {
    0%, 100% { opacity: 0.4; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-8px); }
}

.preloader-percent {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 300;
    color: var(--text-dim);
    letter-spacing: 4px;
}

/* --- Custom Cursor --- */
.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.cursor-ring {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(182, 255, 0, 0.4);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transition: width 0.3s var(--ease-out-expo),
                height 0.3s var(--ease-out-expo),
                border-color 0.3s ease,
                background 0.3s ease;
}

.cursor-ring.hovering {
    width: 60px;
    height: 60px;
    border-color: var(--cyan);
    background: rgba(0, 240, 255, 0.06);
}

/* --- Mouse Glow --- */
.mouse-glow {
    position: fixed;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(182, 255, 0, 0.045) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
}

/* --- Particle Canvas --- */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* --- Ambient Orbs --- */
.ambient-orbs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(182, 255, 0, 0.2), transparent);
    top: -10%;
    left: -5%;
    animation: orbFloat1 20s ease-in-out infinite;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.15), transparent);
    top: 30%;
    right: -5%;
    animation: orbFloat2 25s ease-in-out infinite;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.2), transparent);
    bottom: 10%;
    left: 20%;
    animation: orbFloat3 22s ease-in-out infinite;
}

.orb-4 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(182, 255, 0, 0.1), transparent);
    top: 60%;
    right: 30%;
    animation: orbFloat1 18s ease-in-out infinite reverse;
}

.orb-5 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.12), transparent);
    bottom: -5%;
    right: -5%;
    animation: orbFloat2 15s ease-in-out infinite;
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(60px, 40px) scale(1.1); }
    50% { transform: translate(-30px, 80px) scale(0.9); }
    75% { transform: translate(40px, -30px) scale(1.05); }
}

@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-50px, 60px) scale(1.15); }
    66% { transform: translate(40px, -40px) scale(0.95); }
}

@keyframes orbFloat3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -50px) scale(1.05); }
    50% { transform: translate(-40px, 30px) scale(1.1); }
    75% { transform: translate(50px, 20px) scale(0.95); }
}

/* --- SVG Grid --- */
.svg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
}

/* --- Animated Lines --- */
.animated-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.line {
    position: absolute;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom,
        transparent 0%,
        rgba(182, 255, 0, 0.08) 50%,
        transparent 100%
    );
}

.line-1 {
    left: 25%;
    animation: lineGlow 8s ease-in-out infinite;
}

.line-2 {
    left: 50%;
    animation: lineGlow 8s ease-in-out infinite 2.5s;
    background: linear-gradient(to bottom,
        transparent 0%,
        rgba(0, 240, 255, 0.06) 50%,
        transparent 100%
    );
}

.line-3 {
    left: 75%;
    animation: lineGlow 8s ease-in-out infinite 5s;
    background: linear-gradient(to bottom,
        transparent 0%,
        rgba(139, 92, 246, 0.06) 50%,
        transparent 100%
    );
}

@keyframes lineGlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s var(--ease-out-expo);
}

.nav.scrolled {
    padding: 12px 0;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-wordmark {
    height: 42px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.footer-wordmark {
    height: 38px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-link {
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 1px;
    color: var(--text-dim);
    position: relative;
    padding: 4px 0;
    overflow: hidden;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, var(--green), var(--cyan));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s var(--ease-out-expo);
}

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

.nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Active page indicator: same underline as hover + brighter text, in BOTH themes */
.nav-link.active {
    color: var(--text);
}
.nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}
/* Mobile menu active item */
.mobile-link.active {
    color: var(--green);
}

.nav-cta {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    padding: 10px 24px;
    border: 1px solid rgba(182, 255, 0, 0.3);
    border-radius: 100px;
    transition: all 0.4s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.nav-cta:hover {
    background: rgba(182, 255, 0, 0.1);
    border-color: var(--green);
    color: var(--green);
}

.nav-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    z-index: 1001;
}

.nav-menu-btn span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--text);
    transition: all 0.3s var(--ease-out-expo);
    transform-origin: center;
}

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

.nav-menu-btn.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

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

/* --- Mobile Menu --- */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 15, 0.97);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s var(--ease-out-expo);
}

.mobile-menu.open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.mobile-link {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 600;
    color: var(--text-dim);
    transition: all 0.3s ease;
    transform: translateY(20px);
    opacity: 0;
}

.mobile-menu.open .mobile-link {
    transform: translateY(0);
    opacity: 1;
}

.mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.3s; }
.mobile-menu.open .mobile-link:nth-child(6) { transition-delay: 0.35s; }

.mobile-link:hover, .mobile-link.accent {
    color: var(--green);
}

/* --- Glassmorphism Card --- */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 100px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.4s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--green), #a0e800);
    color: var(--dark);
}

.btn-primary:hover {
    box-shadow: 0 0 30px rgba(200, 255, 0, 0.3), 0 0 60px rgba(61, 255, 160, 0.1);
    transform: translateY(-2px);
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text);
}

.btn-outline:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.04);
}

.btn-whatsapp {
    border-color: rgba(37, 211, 102, 0.3);
    color: #25d366;
}

.btn-whatsapp:hover {
    border-color: #25d366;
    background: rgba(37, 211, 102, 0.08);
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.15);
}

.btn-large {
    padding: 18px 40px;
    font-size: 16px;
}

.btn-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(182, 255, 0, 0.15), transparent 70%);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s var(--ease-out-expo);
    pointer-events: none;
}

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

/* --- Text Gradients --- */
.text-gradient {
    background: linear-gradient(135deg, #c8ff00, #3dffa0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-2 {
    background: linear-gradient(135deg, #3dffa0, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-3 {
    background: linear-gradient(135deg, #8b5cf6, #00d4e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Section Base --- */
.section {
    position: relative;
    z-index: 2;
    padding: 120px 0;
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 20px;
    position: relative;
    padding-left: 24px;
}

.section-tag::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 14px;
    height: 1px;
    background: var(--green);
    transform: translateY(-50%);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(36px, 5vw, 60px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

/* Stacked variant — forces a controlled two-line layout for long titles.
   Used by the About section title ("Dijitalde Güçlü / Görünmenin Yeni Yolu"). */
.section-title.section-title-stacked {
    display: block;
    text-align: center;
    line-height: 1.08;
    letter-spacing: -1.5px;
}
.section-title-stacked .title-row {
    display: block;
    line-height: 1.08;
    /* Balance wrapped lines within a row on supported browsers (Chrome 114+, Safari 17.5+). */
    text-wrap: balance;
}
.section-title-stacked .title-row + .title-row {
    margin-top: 6px;
}
/* Keep the gradient inline — it should never look like a separate badge */
.section-title-stacked .text-gradient-3,
.section-title-stacked .text-gradient,
.section-title-stacked .text-gradient-2 {
    display: inline;
    white-space: nowrap;       /* "Yeni Yolu" stays together as a single chunk */
}

/* Responsive: shrink slightly on mobile, allow wrap if needed */
@media (max-width: 768px) {
    .section-title.section-title-stacked {
        font-size: clamp(30px, 7.5vw, 44px);
        letter-spacing: -1px;
    }
}
@media (max-width: 380px) {
    .section-title-stacked .text-gradient-3,
    .section-title-stacked .text-gradient,
    .section-title-stacked .text-gradient-2 {
        white-space: normal;   /* allow further wrap on very small screens */
    }
}

.projects-social-link {
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-flex;
}

.projects-social-link:hover {
    color: var(--mint);
    transform: scale(1.15);
}

/* === PROJECT MARQUEE CAROUSEL === */
@property --border-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

.projects-showcase {
    position: relative;
    margin-top: 40px;
    /* 3D gallery (.cgal) lives here — keep overflow VISIBLE so card shadows aren't
       hard-clipped (was the light-mode shadow cutoff). Page horizontal scroll is
       already prevented by body { overflow-x: hidden }. No marquee mask anymore. */
    overflow: visible;
    padding-bottom: 30px;
}
.projects-showcase .projects-empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-dim);
    font-size: 16px;
    width: 100%;
}

/* --- Marquee Track --- */
.showcase-track {
    display: flex;
    gap: 32px;
    padding: 30px 0;
    width: max-content;
    animation: showcaseScroll var(--scroll-speed, 40s) linear infinite;
}
.projects-showcase:hover .showcase-track,
.projects-showcase.dragging .showcase-track {
    animation-play-state: paused;
}
.projects-showcase.dragging .showcase-card {
    pointer-events: none;
}

/* Mobile-only vertical masonry container — hidden on desktop/tablet.
   Desktop continues to use the horizontal .showcase-track above. */
.showcase-mobile-masonry {
    display: none;
}

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

/* --- Project Card --- */
.showcase-card {
    flex-shrink: 0;
    width: 380px;
    height: 460px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--dark-2);
    border: 1px solid var(--glass-border);
    transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.5s var(--ease-out-expo);
    text-decoration: none;
    color: #fff;
    display: block;
    position: relative;
}
.showcase-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: conic-gradient(from var(--border-angle), transparent 40%, var(--purple) 50%, var(--cyan) 55%, var(--mint) 60%, transparent 70%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 2;
    pointer-events: none;
}
.showcase-card:hover::before {
    opacity: 1;
    animation: borderSpin 4s linear infinite;
}
@keyframes borderSpin {
    to { --border-angle: 360deg; }
}
.showcase-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(139, 92, 246, 0.2);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(139, 92, 246, 0.08);
}

/* Card cover image */
.showcase-card-cover {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(139,92,246,0.10), rgba(0,212,224,0.05));
}
.showcase-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out-expo);
    image-rendering: auto;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}
.showcase-card:hover .showcase-card-cover img {
    transform: scale(1.08);
}
/* Bottom gradient so overlaid text is legible on any image (both themes) */
.showcase-card-grad {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 72%;
    background: linear-gradient(to top, rgba(8,8,14,0.92) 0%, rgba(8,8,14,0.75) 30%, rgba(8,8,14,0.25) 68%, transparent 100%);
    z-index: 2;
    pointer-events: none;
}
.showcase-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(139,92,246,0.1), rgba(0,212,224,0.06), rgba(200,255,0,0.03));
}
.showcase-card-placeholder span {
    font-family: var(--font-heading);
    font-size: 56px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--mint), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.3;
}

/* Card logo badge */
.showcase-card-logo {
    position: relative;
    z-index: 3;
    margin-top: -26px;
    margin-left: 20px;
    margin-bottom: 0;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--dark-2);
    border: 2px solid var(--glass-border);
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
.showcase-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.showcase-card-logo-letter {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--mint);
}

/* Card body — overlaid on the cover bottom */
.showcase-card-body {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    z-index: 3;
    padding: 24px 24px 26px;
}
.showcase-card-cat {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--mint);
    margin-bottom: 8px;
}
.showcase-card-title {
    font-family: var(--font-heading);
    font-size: 23px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 0 0 14px;
    color: #fff;
    text-shadow: 0 2px 18px rgba(0,0,0,0.55);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.showcase-card-client {
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 18px;
}
.showcase-card-services {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}
.showcase-card-svc {
    padding: 4px 12px;
    border-radius: 14px;
    font-size: 11px;
    font-weight: 500;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    color: var(--text-dim);
}
.showcase-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    padding: 9px 16px;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.22);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    transition: gap 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
.showcase-card:hover .showcase-card-cta {
    gap: 12px;
    background: rgba(200,255,0,0.16);
    border-color: rgba(200,255,0,0.5);
}
.showcase-card-cta svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

/* --- Showcase More (hidden) --- */
.showcase-more { display: none !important; }

/* ============================================================
   3D CIRCULAR PROJECT GALLERY (.cgal) — rotating showcase (desktop)
   + horizontal swipe carousel (mobile)
   ============================================================ */
.cgal { position: relative; height: 500px; perspective: 1700px; margin-top: 24px; cursor: grab; }
.cgal.cgal-dragging { cursor: grabbing; }
.cgal-stage { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; }
.cgal-item { position: absolute; left: 50%; top: 50%; width: 300px; height: 420px; margin-left: -150px; margin-top: -210px; transform-style: preserve-3d; }
.cgal-card { display: block; position: relative; width: 100%; height: 100%; border-radius: 22px; overflow: hidden; text-decoration: none; color: #fff; border: 1px solid var(--glass-border); background: var(--dark-2); box-shadow: 0 30px 70px rgba(0,0,0,0.55); }
.cgal-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.cgal-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, rgba(139,92,246,0.22), rgba(0,212,224,0.12), rgba(200,255,0,0.06)); }
.cgal-ph span { font-family: var(--font-heading); font-size: 76px; font-weight: 800; color: rgba(255,255,255,0.25); }
.cgal-grad { position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,8,14,0.95) 0%, rgba(8,8,14,0.55) 42%, rgba(8,8,14,0.04) 76%, transparent 100%); }
.cgal-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 22px 26px; }
.cgal-cat { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 8px;
    background: linear-gradient(135deg, var(--green), var(--cyan)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.cgal-title { font-family: var(--font-heading); font-size: 25px; font-weight: 700; line-height: 1.15; margin: 0 0 8px; color: #fff; text-shadow: 0 2px 20px rgba(0,0,0,0.6); }
.cgal-desc { font-size: 13px; line-height: 1.45; color: rgba(255,255,255,0.82); margin: 0 0 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cgal-cta { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #fff; padding: 8px 15px; border-radius: 999px; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.22); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: gap .3s ease, background .3s ease, border-color .3s ease; }
.cgal-item.is-front .cgal-cta { background: rgba(200,255,0,0.18); border-color: rgba(200,255,0,0.5); }
.cgal-item.is-front .cgal-card { box-shadow: 0 36px 90px rgba(0,0,0,0.6), 0 0 60px rgba(139,92,246,0.12); }
.cgal-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 1500; width: 48px; height: 48px; border-radius: 50%;
    background: var(--glass-bg); border: 1px solid var(--glass-border); color: var(--text); font-size: 24px; line-height: 1; cursor: pointer;
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); display: flex; align-items: center; justify-content: center; transition: transform .25s, border-color .25s; }
.cgal-nav:hover { border-color: var(--green); transform: translateY(-50%) scale(1.08); }
.cgal-prev { left: 12px; }
.cgal-next { right: 12px; }
/* A single project has nothing to rotate to — hide the nav arrows. */
.cgal-single .cgal-nav { display: none; }
.cgal-mobile { display: none; }

/* ---- LIGHT MODE: soften card shadows ----
   The dark theme uses heavy black shadows (rgba(0,0,0,0.55)) which, on a light
   background, read as a hard dark band/line under the cards. In light mode we
   swap them for a soft, diffuse purple-grey shadow so there's no hard cutoff. */
[data-theme="light"] .cgal-card {
    box-shadow: 0 14px 38px rgba(70, 70, 120, 0.12);
}
[data-theme="light"] .cgal-item.is-front .cgal-card {
    box-shadow: 0 20px 52px rgba(70, 70, 120, 0.16), 0 0 48px rgba(139, 92, 246, 0.08);
}
[data-theme="light"] .cgal-mobile .cgal-card.in-view {
    box-shadow: 0 16px 42px rgba(70, 70, 120, 0.15), 0 0 38px rgba(139, 92, 246, 0.08);
}

@media (max-width: 1100px) {
    .cgal { height: 460px; }
    .cgal-item { width: 270px; height: 380px; margin-left: -135px; margin-top: -190px; }
}
@media (max-width: 768px) {
    .cgal, .cgal-nav { display: none; }
    .cgal-mobile {
        display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch; padding: 18px 12% 26px; scrollbar-width: none;
        align-items: center; perspective: 1000px;
    }
    .cgal-mobile::-webkit-scrollbar { display: none; }
    .cgal-mobile .cgal-card {
        scroll-snap-align: center; flex: 0 0 78%; height: 430px;
        transition: transform .4s var(--ease-out-quart), opacity .4s ease, box-shadow .4s ease;
        transform: scale(0.86); opacity: 0.5;
    }
    /* Centered card pops forward → coverflow depth instead of a flat strip */
    .cgal-mobile .cgal-card.in-view {
        transform: scale(1); opacity: 1;
        box-shadow: 0 24px 60px rgba(0,0,0,0.55), 0 0 50px rgba(139,92,246,0.12);
    }
    .cgal-title { font-size: 22px; }
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .showcase-card { width: 300px; }
    .showcase-card-cover { height: 240px; }
    .showcase-track { gap: 20px; }
}

/* --- Brand Marquee (dynamic logos: see canonical definition below at .brand-item) --- */

.section-subtitle {
    font-size: 18px;
    color: var(--text-dim);
    max-width: 500px;
    margin: 20px auto 0;
    line-height: 1.7;
}

@media (max-width: 1024px) {
    .showcase-card { width: 320px; }
    .showcase-card-cover { height: 250px; }
    .showcase-track { gap: 24px; }
}
@media (max-width: 768px) {
    /* MOBILE: replace the horizontal carousel with a 2-column
       vertical-masonry marquee. Desktop layout above is untouched. */

    .projects-showcase {
        /* Mobile now uses the .cgal-mobile swipe carousel (handles its own scroll).
           Keep this a plain, non-clipping container. */
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        position: relative;
        overflow: visible;
        height: auto;
        cursor: default;
        padding: 0;
        -webkit-mask-image: none;
        mask-image: none;
    }

    /* Mobile masonry layout */
    .showcase-mobile-masonry {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 14px;
        height: 100%;
        padding: 0 14px;
        align-items: start;
        overflow: hidden;
    }

    .mobile-col {
        display: flex;
        flex-direction: column;
        gap: 14px;
        animation: mobileScrollUp 55s linear infinite;
        will-change: transform;
        transform: translateZ(0);
        backface-visibility: hidden;
    }

    /* Half-cycle offset for the second column → parke taşı (staggered) look.
       At t=0, col-1 is at translateY(0) and col-2 is at translateY(-50% * 25/55) ≈ translateY(-22.7%),
       so col-2's visible cards start partway down compared to col-1. */
    .mobile-col-2 {
        animation-delay: -27.5s;
    }

    /* Cards inside mobile columns — image-dominant, fixed height for the absolute overlay */
    .mobile-col .showcase-card {
        width: 100%;
        height: 280px;
        flex-shrink: 0;
    }
    .mobile-col .showcase-card-body {
        padding: 14px 14px 16px;
    }
    .mobile-col .showcase-card-grad {
        height: 80%;
    }
    .mobile-col .showcase-card-title {
        font-size: 16px;
        margin-bottom: 10px;
    }
    .mobile-col .showcase-card-cat {
        font-size: 10px;
        margin-bottom: 6px;
    }
    .mobile-col .showcase-card-cta {
        font-size: 12px;
        padding: 7px 13px;
    }

    /* Vertical scroll keyframes — loop from 0 to -50% (content is duplicated) */
    @keyframes mobileScrollUp {
        0%   { transform: translateY(0); }
        100% { transform: translateY(-50%); }
    }

    /* LIGHT MOBILE — replace mask-image fade with overlay-based fade.
       mask-image creates alpha transparency which exposes the body bg's
       radial gradients underneath at the showcase edges, producing a
       visible hard line in light mode. An overlay pseudo with a solid
       theme-matched colour avoids that and looks like the dark fade. */
    [data-theme="light"] .projects-showcase {
        -webkit-mask-image: none;
        mask-image: none;
    }
    [data-theme="light"] .projects-showcase::before,
    [data-theme="light"] .projects-showcase::after {
        content: none;          /* masonry fade removed — cgal-mobile handles its own look */
        display: none;
    }
    [data-theme="light"] .projects-showcase::before {
        top: 0;
        background: linear-gradient(to bottom,
            rgba(248, 250, 252, 1)    0%,
            rgba(248, 250, 252, 0.92) 35%,
            rgba(248, 250, 252, 0)    100%);
    }
    [data-theme="light"] .projects-showcase::after {
        bottom: 0;
        background: linear-gradient(to top,
            rgba(248, 250, 252, 1)    0%,
            rgba(248, 250, 252, 0.90) 35%,
            rgba(248, 250, 252, 0)    100%);
    }

    /* Respect reduced-motion preference: stop the animation and show
       cards as a static, scrollable list */
    @media (prefers-reduced-motion: reduce) {
        .projects-showcase {
            height: auto;
            overflow: visible;
            -webkit-mask-image: none;
            mask-image: none;
        }
        [data-theme="light"] .projects-showcase::before,
        [data-theme="light"] .projects-showcase::after {
            display: none;
        }
        .showcase-mobile-masonry {
            overflow: visible;
            padding: 0 14px 40px;
        }
        .mobile-col {
            animation: none;
        }
    }
}

/* --- Reveal Animations --- */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease-out-expo),
                transform 0.8s var(--ease-out-expo);
}

.reveal-up.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ============================
   HERO SECTION
   ============================ */
.hero {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 140px 40px 100px;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-content {
    max-width: 60%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    border: 1px solid rgba(182, 255, 0, 0.2);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 40px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(182, 255, 0, 0.4); }
    50% { opacity: 0.8; box-shadow: 0 0 0 8px rgba(182, 255, 0, 0); }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(42px, 6vw, 76px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -3px;
    margin-bottom: 32px;
}

.title-line {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    overflow: visible;
}

.title-word {
    display: inline-block;
    /* Gradient (background-clip:text) kelimelerde harf rengini arka plan verir; dar kutu
       ş/ç/j/y alt çıkıntılarını kapsamayıp kırpıyordu. Kutuya alt boşluk bırakıyoruz. */
    padding-bottom: 0.18em;
}

.title-accent-green {
    background: linear-gradient(135deg, #c8ff00, #3dffa0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.title-accent-cyan {
    background: linear-gradient(135deg, #3dffa0, #00d4e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-accent-purple {
    background: linear-gradient(135deg, #8b5cf6, #00d4e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-dim);
    max-width: 520px;
    margin-bottom: 44px;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* --- Hero 3D Visual --- */
.hero-visual {
    position: absolute;
    right: -40px;
    top: 50%;
    transform: translateY(-50%);
    width: 720px;
    height: 720px;
}

.hero-3d-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
}

/* --- Orbit System --- */
.orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.orbit-3 {
    width: 680px;
    height: 680px;
    border: 1px solid rgba(139, 92, 246, 0.04);
    animation: orbitSpin 80s linear infinite;
}

.orbit-2 {
    width: 580px;
    height: 580px;
    border: 1px solid rgba(0, 212, 224, 0.06);
    animation: orbitSpin 55s linear infinite reverse;
}

.orbit-1 {
    width: 490px;
    height: 490px;
    border: 1px solid rgba(61, 255, 160, 0.1);
    background: radial-gradient(circle, rgba(61, 255, 160, 0.015) 0%, transparent 70%);
    animation: orbitSpin 35s linear infinite;
}

/* Orbit dots - small glowing particles */
.orbit-dot {
    position: absolute;
    border-radius: 50%;
}

.orbit-dot-a { width: 5px; height: 5px; top: 12%; left: 8%; background: var(--mint); opacity: 0.8; box-shadow: 0 0 12px 2px var(--mint); animation: dotPulse 3s ease-in-out infinite; }
.orbit-dot-b { width: 3px; height: 3px; bottom: 18%; right: 12%; background: var(--purple); opacity: 0.5; box-shadow: 0 0 8px 1px var(--purple); animation: dotPulse 4s ease-in-out infinite 1s; }
.orbit-dot-c { width: 5px; height: 5px; top: 8%; right: 18%; background: var(--cyan); opacity: 0.9; box-shadow: 0 0 14px 3px var(--cyan); animation: dotPulse 2.5s ease-in-out infinite 0.5s; }
.orbit-dot-d { width: 3px; height: 3px; bottom: 15%; left: 22%; background: var(--green); opacity: 0.6; box-shadow: 0 0 10px 2px var(--green); animation: dotPulse 3.5s ease-in-out infinite 1.5s; }

@keyframes dotPulse {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.3); }
}

/* Orbit icons */
.orbit-icon {
    position: absolute;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(8, 8, 20, 0.7);
    backdrop-filter: blur(8px);
    transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}

.orbit-icon:hover {
    transform: scale(1.2);
}

/* Counter-rotate icons so they stay upright */
.orbit-1 .orbit-icon {
    animation: iconCounterSpin 35s linear infinite reverse;
}

.icon-design {
    top: -23px; left: 50%; margin-left: -23px;
    color: var(--green);
    border-color: rgba(200, 255, 0, 0.2);
    box-shadow: 0 0 20px rgba(200, 255, 0, 0.08), inset 0 0 15px rgba(200, 255, 0, 0.03);
}
.icon-design:hover { border-color: rgba(200, 255, 0, 0.5); box-shadow: 0 0 30px rgba(200, 255, 0, 0.2); }

.icon-code {
    top: 50%; right: -23px; margin-top: -23px;
    color: var(--cyan);
    border-color: rgba(0, 212, 224, 0.2);
    box-shadow: 0 0 20px rgba(0, 212, 224, 0.08), inset 0 0 15px rgba(0, 212, 224, 0.03);
}
.icon-code:hover { border-color: rgba(0, 212, 224, 0.5); box-shadow: 0 0 30px rgba(0, 212, 224, 0.2); }

.icon-video {
    bottom: -23px; left: 50%; margin-left: -23px;
    color: var(--purple);
    border-color: rgba(139, 92, 246, 0.2);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.08), inset 0 0 15px rgba(139, 92, 246, 0.03);
}
.icon-video:hover { border-color: rgba(139, 92, 246, 0.5); box-shadow: 0 0 30px rgba(139, 92, 246, 0.2); }

.icon-strategy {
    top: 50%; left: -23px; margin-top: -23px;
    color: var(--mint);
    border-color: rgba(61, 255, 160, 0.2);
    box-shadow: 0 0 20px rgba(61, 255, 160, 0.08), inset 0 0 15px rgba(61, 255, 160, 0.03);
}
.icon-strategy:hover { border-color: rgba(61, 255, 160, 0.5); box-shadow: 0 0 30px rgba(61, 255, 160, 0.2); }

@keyframes orbitSpin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes iconCounterSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Spotlight on K shape edges */
.hero-3d-container {
    --glow-x: 0;
    --glow-y: 0;
    --glow-intensity: 0;
    --glow-color: 0, 212, 224;
}

/* K Logo */
.hero-k-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-k-img {
    width: 440px;
    height: 440px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(0, 212, 224, 0.1))
            drop-shadow(0 0 20px rgba(139, 92, 246, 0.05));
    transition: filter 0.15s ease;
}

.shape-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid;
    top: 50%;
    left: 50%;
}

.ring-1 {
    width: 240px;
    height: 240px;
    margin: -120px 0 0 -120px;
    border-color: rgba(182, 255, 0, 0.12);
    animation: ringRotate1 15s linear infinite;
}

.ring-2 {
    width: 320px;
    height: 320px;
    margin: -160px 0 0 -160px;
    border-color: rgba(0, 240, 255, 0.08);
    animation: ringRotate2 20s linear infinite;
}

.ring-3 {
    width: 400px;
    height: 400px;
    margin: -200px 0 0 -200px;
    border-color: rgba(139, 92, 246, 0.06);
    animation: ringRotate1 25s linear infinite reverse;
}

@keyframes ringRotate1 {
    0% { transform: rotateX(70deg) rotateZ(0deg); }
    100% { transform: rotateX(70deg) rotateZ(360deg); }
}

@keyframes ringRotate2 {
    0% { transform: rotateX(55deg) rotateY(20deg) rotateZ(0deg); }
    100% { transform: rotateX(55deg) rotateY(20deg) rotateZ(360deg); }
}

.shape-glow {
    position: absolute;
    width: 200px;
    height: 200px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle,
        rgba(182, 255, 0, 0.15) 0%,
        rgba(0, 240, 255, 0.08) 40%,
        transparent 70%
    );
    filter: blur(30px);
    animation: shapeGlow 4s ease-in-out infinite;
}

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

/* --- Hero Stats --- */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 60px;
    max-width: 700px;
    position: relative;
    z-index: 3;
}

.stat-card {
    padding: 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--ease-out-expo);
}

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

.stat-number {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    display: inline;
    background: linear-gradient(135deg, var(--green), var(--mint));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-suffix {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 700;
    display: inline;
    vertical-align: baseline;
    margin-left: 1px;
    color: var(--cyan); /* solid fallback if background-clip unsupported */
    background: linear-gradient(135deg, var(--green), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 12px;
    color: var(--text-dim);
    margin-top: 8px;
    letter-spacing: 0.5px;
}

.stat-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(182, 255, 0, 0.04), transparent 60%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.stat-card:hover .stat-glow {
    opacity: 1;
}

/* --- Scroll Indicator --- */
.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 0;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--green), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.4; transform: scaleY(0.5); transform-origin: top; }
}

.hero-scroll-indicator span {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* --- Brand Marquee --- */
.section.brand-marquee-section {
    padding: 40px 0 20px;
    background: linear-gradient(180deg, transparent 0%, rgba(18, 18, 26, 0.4) 50%, transparent 100%);
}

.brand-marquee {
    margin-top: 0;
    margin-bottom: 0;
    text-align: center;
}

.marquee-label {
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 32px;
}

.marquee-track-wrap {
    /* Horizontal clip for the infinite scroll, vertical visible for hover scale.
       Slimmer padding now that the bar itself is leaner. */
    overflow-x: clip;
    overflow-y: visible;
    overflow-clip-margin: 24px;
    padding: 6px 0;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}
@supports not (overflow-x: clip) {
    .marquee-track-wrap {
        overflow: hidden;
        padding: 16px 0;
    }
}

.marquee-track {
    display: flex;
    gap: 64px;
    align-items: center;
    width: max-content;
    animation: marqueeScroll 45s linear infinite;
}

.brand-item {
    flex-shrink: 0;
    position: relative;
    min-width: 130px;
    height: 76px;            /* slimmer bar — was 110px */
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1.6px;
    color: rgba(255, 255, 255, 0.25);
    text-transform: uppercase;
    white-space: nowrap;
    padding: 4px 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    overflow: visible;
    transition: transform 0.4s ease, color 0.3s ease, filter 0.4s ease;
}

.brand-item:hover {
    color: rgba(255, 255, 255, 0.5);
    transform: scale(1.03);
    /* No coloured drop-shadow — the per-logo halo already provides
       the lift, and the logo's own colours come back on hover. */
}

/* Brand logo sizing only — colour/visibility handled by the theme-swap
   rules in the BRAND LOGO section further below. No grayscale/blend here. */
.brand-item img.brand-marquee-logo {
    /* Logos are auto-trimmed on upload (no transparent canvas padding), so sizing
       by a fixed VISIBLE height makes every brand the same optical size — no
       per-logo CSS hacks. Width follows the real (trimmed) aspect ratio. */
    height: 54px;
    width: auto;
    max-width: 340px;
    object-fit: contain;
}

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

/* ============================
   SERVICES
   ============================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.service-card {
    padding: 40px 32px;
    position: relative;
    overflow: hidden;
    transition: all 0.5s var(--ease-out-expo);
    cursor: pointer;
}
/* Whole service card clickable → detail page (keyboard accessible) */
.service-link-overlay { position: absolute; inset: 0; z-index: 6; border-radius: inherit; }
.service-link-overlay:focus-visible { outline: 2px solid var(--green); outline-offset: -3px; }

/* ---- Language switcher (i18n) ---- */
.lang-switch { position: relative; display: inline-flex; }
.lang-current {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--surface); border: 1px solid var(--glass-border);
    color: var(--text); padding: 7px 11px; border-radius: 999px;
    font-family: var(--font-body); font-size: 13px; font-weight: 600; cursor: pointer;
    transition: border-color .25s, background .25s;
}
.lang-current:hover { border-color: var(--green); }
.lang-caret { transition: transform .25s; opacity: .65; }
.lang-switch.open .lang-caret,
#langBtn[aria-expanded="true"] .lang-caret { transform: rotate(180deg); }
.lang-menu {
    position: absolute; top: calc(100% + 10px); right: 0; min-width: 156px;
    /* Opaque so it never blends into the header (esp. light mode) */
    background: rgba(18, 18, 26, 0.97); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    border: 1px solid var(--glass-border); border-radius: 12px;
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.45);
    padding: 6px; margin: 0; list-style: none;
    opacity: 0; visibility: hidden; transform: translateY(-6px); pointer-events: none;
    transition: opacity .2s var(--ease-out-quart), transform .2s var(--ease-out-quart), visibility .2s; z-index: 2147483000;
}
.lang-switch.open .lang-menu,
.lang-menu.open { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
/* When portaled to <body> it's position:fixed (set inline by JS) — escapes every ancestor stacking context */
.lang-menu.lang-menu--portal { position: fixed; }
.lang-menu li {
    padding: 9px 12px; border-radius: 8px; font-size: 14px;
    color: #d6d8e2;            /* explicit (dark theme) — no var cascade surprises */
    cursor: pointer; transition: background .2s, color .2s; white-space: nowrap;
}
.lang-menu li:hover { background: rgba(255,255,255,0.08); color: #ffffff; }
.lang-menu li.active { color: var(--green); font-weight: 600; }
/* Light mode: solid white panel + explicit near-black text (was invisible before) */
[data-theme="light"] .lang-menu {
    background: #ffffff; border-color: rgba(15, 20, 40, 0.12);
    box-shadow: 0 16px 44px rgba(80, 80, 130, 0.22);
}
[data-theme="light"] .lang-menu li { color: #1f2438; }
[data-theme="light"] .lang-menu li:hover { background: rgba(15, 20, 40, 0.06); color: #0c0f1a; }
[data-theme="light"] .lang-menu li.active { color: #1ea65a; }
@media (max-width: 768px) {
    .lang-current span { display: none; }
    .lang-current { padding: 7px 9px; }
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(182, 255, 0, 0.12);
}

.service-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 24px;
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.service-desc {
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.7;
}

.service-number {
    position: absolute;
    top: 20px;
    right: 24px;
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.02);
    line-height: 1;
    transition: color 0.4s ease;
}

.service-card:hover .service-number {
    color: rgba(182, 255, 0, 0.06);
}

.card-border-glow {
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    background: linear-gradient(135deg,
        rgba(182, 255, 0, 0.1),
        transparent 40%,
        transparent 60%,
        rgba(0, 240, 255, 0.08)
    );
}

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

/* ============================
   FEATURED SERVICE CARD (08 — Akıllı Menü Sistemleri)
   Premium cyber feel: scan-sweep light animation + soft outer glow
   + "Yeni" badge. Slightly more attention than other cards.
   ============================ */
.service-card-featured {
    background: linear-gradient(140deg,
        rgba(0, 240, 255, 0.04) 0%,
        rgba(139, 92, 246, 0.05) 50%,
        rgba(182, 255, 0, 0.03) 100%);
    border-color: rgba(0, 240, 255, 0.18);
    box-shadow:
        0 0 0 1px rgba(0, 240, 255, 0.06),
        0 12px 36px rgba(0, 240, 255, 0.08);
}
.service-card-featured:hover {
    border-color: rgba(0, 240, 255, 0.35);
    box-shadow:
        0 0 0 1px rgba(0, 240, 255, 0.15),
        0 20px 60px rgba(0, 240, 255, 0.18),
        0 0 40px rgba(139, 92, 246, 0.10);
}

/* "Yeni" badge — top-right corner */
.service-card-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 3;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #0a0a0f;
    background: linear-gradient(135deg, #00f0ff, #b6ff00);
    box-shadow: 0 4px 12px rgba(0, 240, 255, 0.25);
}

/* Scan-sweep — a vertical light bar that travels across the card on hover.
   Soft, premium, NOT neon flash. Repeats every 3.5s while hovered. */
.service-card-scan {
    position: absolute;
    top: 0;
    left: -40%;
    width: 40%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(105deg,
        transparent 0%,
        rgba(0, 240, 255, 0.06) 40%,
        rgba(139, 92, 246, 0.10) 50%,
        rgba(0, 240, 255, 0.06) 60%,
        transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.service-card-featured:hover .service-card-scan {
    opacity: 1;
    animation: kotroScan 3.5s ease-in-out infinite;
}
@keyframes kotroScan {
    0%   { left: -40%; }
    100% { left: 110%; }
}
@media (prefers-reduced-motion: reduce) {
    .service-card-featured:hover .service-card-scan { animation: none; opacity: 0; }
}

/* Light mode tweak — feature card stays cool but adapts to white panel */
[data-theme="light"] .service-card-featured {
    background: linear-gradient(140deg,
        rgba(0, 180, 220, 0.06) 0%,
        rgba(139, 92, 246, 0.05) 50%,
        rgba(200, 255, 0, 0.04) 100%);
    border-color: rgba(0, 180, 220, 0.22);
    box-shadow:
        0 0 0 1px rgba(0, 180, 220, 0.08),
        0 8px 28px rgba(0, 180, 220, 0.10);
}
[data-theme="light"] .service-card-featured:hover {
    border-color: rgba(0, 180, 220, 0.40);
    box-shadow:
        0 0 0 1px rgba(0, 180, 220, 0.18),
        0 16px 48px rgba(0, 180, 220, 0.16);
}

/* ============================
   PROJECTS
   ============================ */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.project-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.5s var(--ease-out-expo);
}

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

.project-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.project-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--dark-2), var(--dark-3));
    position: relative;
    overflow: hidden;
}

.ph-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
}

.ph-shape-1 {
    width: 60%;
    height: 60%;
    background: var(--ph-color-1);
    opacity: 0.15;
    top: -10%;
    left: -10%;
    animation: phFloat1 8s ease-in-out infinite;
}

.ph-shape-2 {
    width: 50%;
    height: 50%;
    background: var(--ph-color-2);
    opacity: 0.1;
    bottom: -10%;
    right: -10%;
    animation: phFloat2 10s ease-in-out infinite;
}

.ph-shape-3 {
    width: 30%;
    height: 30%;
    background: var(--ph-color-1);
    opacity: 0.08;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: phFloat3 6s ease-in-out infinite;
}

@keyframes phFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, 20px) scale(1.1); }
}

@keyframes phFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-20px, -15px) scale(1.15); }
}

@keyframes phFloat3 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.3); }
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 15, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-view {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--green);
    padding: 12px 28px;
    border: 1px solid rgba(182, 255, 0, 0.3);
    border-radius: 100px;
    transform: translateY(10px);
    transition: all 0.4s var(--ease-out-expo);
}

.project-card:hover .project-view {
    transform: translateY(0);
}

.project-info {
    padding: 24px 28px;
    background: var(--dark-2);
}

.project-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.project-tags span {
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 4px 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 100px;
}

.project-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.project-desc {
    font-size: 14px;
    color: var(--text-dim);
}

.project-glow {
    position: absolute;
    inset: -1px;
    border-radius: var(--radius-lg);
    padding: 1px;
    background: linear-gradient(135deg, rgba(182, 255, 0, 0), rgba(0, 240, 255, 0));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: all 0.5s ease;
    pointer-events: none;
}

.project-card:hover .project-glow {
    background: linear-gradient(135deg, rgba(182, 255, 0, 0.4), rgba(0, 240, 255, 0.3));
    opacity: 1;
}

/* ============================
   ABOUT
   ============================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text {
    font-size: 17px;
    color: var(--text-dim);
    line-height: 1.8;
    margin-top: 20px;
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 40px;
}

.highlight {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 14px;
    color: var(--text);
    font-weight: 400;
}

.highlight-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--dot-color);
    box-shadow: 0 0 12px var(--dot-color);
}

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

.about-image-container {
    width: 400px;
    height: 400px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-abstract {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===========================================================
   ABOUT SECTION — Cobe globe in BOTH themes (different palettes via JS).
   The old planet/orbit ring system is retired in favour of the globe.
   =========================================================== */

/* Old orbit/planet rings are no longer used in either theme */
.about-abstract,
.about-image-glow {
    display: none !important;
}

/* Globe wrapper is visible in BOTH themes */
.about-globe-wrap {
    display: block;
}

/* Globe wrapper: absolutely positioned inside .about-image-container so it
   inherits the container's exact 400×400 (or responsive) box. */
.about-globe-wrap {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

/* Soft ambient glow behind the globe — theme-aware tones */
.about-globe-glow {
    position: absolute;
    inset: -10%;
    border-radius: 50%;
    pointer-events: none;
    /* DARK (default): cyber cyan + purple aura */
    background:
        radial-gradient(circle at 30% 30%, rgba(139, 92, 246, 0.30), transparent 60%),
        radial-gradient(circle at 70% 70%, rgba(0, 212, 224, 0.22), transparent 60%),
        radial-gradient(circle at 50% 50%, rgba(61, 255, 160, 0.06), transparent 70%);
    filter: blur(45px);
    opacity: 0.9;
    z-index: 0;
    transition: background 0.5s ease, filter 0.5s ease, opacity 0.5s ease;
}
[data-theme="light"] .about-globe-glow {
    /* LIGHT: soft Apple-grade cool */
    background:
        radial-gradient(circle at 30% 30%, rgba(139, 92, 246, 0.22), transparent 55%),
        radial-gradient(circle at 70% 70%, rgba(0, 180, 220, 0.18), transparent 55%);
    filter: blur(30px);
    opacity: 0.9;
}

/* The canvas itself — fixed CSS dimensions so the JS-set internal resolution
   can never overflow. Width/height clamp the visible globe inside the
   container even if a stale style attribute is present. */
.about-globe {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    aspect-ratio: 1 / 1;
    cursor: grab;
    contain: layout paint;
    /* explicit empty intrinsic — overrides default 300×150 canvas size */
    min-width: 0;
    min-height: 0;
}
.about-globe:active {
    cursor: grabbing;
}

/* Make sure the about column never lets the globe leak out of the section */
.about-visual {
    overflow: visible;
}

@media (max-width: 1024px) {
    .about-image-container {
        width: clamp(260px, 60vw, 360px);
        height: auto;
        aspect-ratio: 1 / 1;
    }
    .about-globe-glow {
        inset: -5%;
        filter: blur(20px);
    }
}
@media (max-width: 640px) {
    .about-image-container {
        width: clamp(220px, 75vw, 320px);
    }
}

.abstract-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid;
}

.abstract-ring-1 {
    width: 300px;
    height: 300px;
    border-color: rgba(182, 255, 0, 0.15);
    animation: abstractRotate1 12s linear infinite;
}

.abstract-ring-2 {
    width: 220px;
    height: 220px;
    border-color: rgba(0, 240, 255, 0.12);
    animation: abstractRotate2 10s linear infinite;
}

.abstract-ring-3 {
    width: 140px;
    height: 140px;
    border-color: rgba(139, 92, 246, 0.15);
    animation: abstractRotate1 8s linear infinite reverse;
}

@keyframes abstractRotate1 {
    0% { transform: rotate(0deg) scaleX(0.7); }
    100% { transform: rotate(360deg) scaleX(0.7); }
}

@keyframes abstractRotate2 {
    0% { transform: rotate(0deg) scaleY(0.6); }
    100% { transform: rotate(-360deg) scaleY(0.6); }
}

.abstract-core {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--green), var(--cyan));
    opacity: 0.3;
    filter: blur(15px);
    animation: coreGlow 3s ease-in-out infinite;
}

@keyframes coreGlow {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.4); opacity: 0.5; }
}

.about-image-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.12), transparent 70%);
    filter: blur(40px);
}

/* ============================
   PROCESS
   ============================ */
.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    left: 24px;
    top: 0;
    width: 2px;
    height: 100%;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 1px;
}

.timeline-progress {
    width: 100%;
    height: 0%;
    background: linear-gradient(to bottom, var(--green), var(--cyan), var(--purple));
    border-radius: 1px;
    transition: height 0.1s linear;
}

.process-step {
    position: relative;
    padding-left: 72px;
    padding-bottom: 48px;
}

.process-step:last-child {
    padding-bottom: 0;
}

.step-marker {
    position: absolute;
    left: 14px;
    top: 30px;
}

.marker-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--dark);
    border: 2px solid var(--text-muted);
    position: relative;
    z-index: 2;
    transition: all 0.4s var(--ease-out-expo);
}

.process-step.active .marker-dot {
    border-color: var(--green);
    background: var(--green);
    box-shadow: 0 0 20px rgba(182, 255, 0, 0.4);
}

.marker-ring {
    position: absolute;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(182, 255, 0, 0);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s var(--ease-out-expo);
}

.process-step.active .marker-ring {
    border-color: rgba(182, 255, 0, 0.3);
    animation: markerPulse 2s ease-in-out infinite;
}

@keyframes markerPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    50% { transform: translate(-50%, -50%) scale(1.4); opacity: 0; }
}

.step-content {
    padding: 32px;
    transition: all 0.4s var(--ease-out-expo);
}

.process-step.active .step-content {
    border-color: rgba(182, 255, 0, 0.1);
}

.step-number {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    color: var(--green);
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.step-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
}

.step-desc {
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.7;
}

/* ============================
   PROCESS — COMPACT 2-ROW STEPPER
   Desktop: 3 cols × 2 rows
   Row 1: 01 → 02 → 03
   Row 2: 04 → 05 (left-aligned, last cell empty)
   Connecting "tail" line drawn per-step via ::after pseudo,
   hidden on last step of each row (nth-child 3 and 5).
   Mobile: vertical stack with left rail.
   ============================ */
.process-stepper {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px 24px;                  /* row gap larger than col gap for breathing */
    max-width: 980px;
    margin: 0 auto;
    padding: 12px 0 0;
}

.stepper-step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 1;
}

/* Connecting tail — drawn from current node center to next node center */
.stepper-step::after {
    content: '';
    position: absolute;
    top: 32px;                       /* aligned with node vertical centre */
    left: calc(50% + 32px);          /* start just past the right edge of node */
    width: calc(100% - 64px + 24px); /* span the cell + the column gap */
    height: 2px;
    background: linear-gradient(90deg,
        rgba(182, 255, 0, 0.20) 0%,
        rgba(0, 240, 255, 0.32) 50%,
        rgba(139, 92, 246, 0.22) 100%);
    z-index: 0;
    pointer-events: none;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}
/* Hide tail on last step of each row */
.stepper-step:nth-child(3)::after,
.stepper-step:nth-child(5)::after {
    display: none;
}

/* Numbered glass node */
.stepper-node {
    position: relative;
    z-index: 2;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg,
        rgba(18, 22, 34, 0.95) 0%,
        rgba(9, 11, 20, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow:
        0 0 0 5px var(--body-bg, #0a0a0f),     /* outer ring "cuts" the line cleanly */
        0 8px 24px rgba(0, 0, 0, 0.35);
    margin-bottom: 16px;
    transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s ease, border-color 0.4s ease;
}
.stepper-step:hover .stepper-node {
    transform: scale(1.06);
    border-color: rgba(0, 240, 255, 0.40);
    box-shadow:
        0 0 0 5px var(--body-bg, #0a0a0f),
        0 10px 32px rgba(0, 240, 255, 0.22),
        0 0 28px rgba(139, 92, 246, 0.18);
}

.stepper-node-num {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 20px;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #b6ff00, #00d4e0, #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Card under each node — larger, tighter typography */
.stepper-card {
    width: 100%;
    padding: 20px 18px;
    border-radius: 16px;
    text-align: center;
    transition: transform 0.4s var(--ease-out-expo), border-color 0.3s ease, box-shadow 0.3s ease;
}
.stepper-step:hover .stepper-card {
    transform: translateY(-4px);
    border-color: rgba(0, 240, 255, 0.20);
    box-shadow: 0 12px 36px rgba(0, 240, 255, 0.08);
}

.stepper-title {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 8px;
    letter-spacing: -0.2px;
}

.stepper-desc {
    font-size: 13px;
    line-height: 1.55;
    color: var(--text-dim);
    margin: 0;
}

/* LIGHT mode */
[data-theme="light"] .stepper-node {
    background: linear-gradient(135deg, #ffffff, #f3f4fa);
    border-color: rgba(15, 20, 40, 0.10);
    box-shadow:
        0 0 0 5px var(--body-bg),
        0 8px 24px rgba(80, 80, 130, 0.10);
}
[data-theme="light"] .stepper-step:hover .stepper-node {
    border-color: rgba(0, 180, 220, 0.40);
    box-shadow:
        0 0 0 5px var(--body-bg),
        0 10px 32px rgba(0, 180, 220, 0.22);
}
[data-theme="light"] .stepper-step::after {
    background: linear-gradient(90deg,
        rgba(139, 92, 246, 0.30) 0%,
        rgba(0, 180, 220, 0.32) 50%,
        rgba(200, 255, 0, 0.22) 100%);
    opacity: 0.7;
}
[data-theme="light"] .stepper-title { color: #1a1d29; }
[data-theme="light"] .stepper-desc  { color: #5a6175; }

/* TABLET — same 3-col layout, slightly tighter */
@media (max-width: 1024px) {
    .process-stepper {
        gap: 28px 18px;
        max-width: 760px;
    }
    .stepper-step::after {
        top: 28px;
        left: calc(50% + 28px);
        width: calc(100% - 56px + 18px);
    }
    .stepper-node { width: 56px; height: 56px; margin-bottom: 14px; }
    .stepper-node-num { font-size: 18px; }
    .stepper-card { padding: 16px 14px; }
    .stepper-title { font-size: 15px; }
    .stepper-desc  { font-size: 12px; }
}

/* MOBILE — vertical stack with left rail */
@media (max-width: 720px) {
    .process-stepper {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 0 0 0 26px;
        max-width: 100%;
        position: relative;
    }
    /* One vertical rail behind all nodes */
    .process-stepper::before {
        content: '';
        position: absolute;
        left: 26px;
        top: 22px;
        bottom: 22px;
        width: 2px;
        background: linear-gradient(180deg,
            rgba(182, 255, 0, 0.22) 0%,
            rgba(0, 240, 255, 0.28) 50%,
            rgba(139, 92, 246, 0.22) 100%);
        z-index: 0;
    }
    [data-theme="light"] .process-stepper::before {
        background: linear-gradient(180deg,
            rgba(139, 92, 246, 0.28) 0%,
            rgba(0, 180, 220, 0.30) 50%,
            rgba(200, 255, 0, 0.20) 100%);
    }
    /* No per-step tails on mobile */
    .stepper-step::after { display: none; }

    .stepper-step {
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: 14px;
    }
    .stepper-node {
        flex: 0 0 auto;
        width: 44px;
        height: 44px;
        margin-bottom: 0;
        margin-left: -22px;        /* sit on the rail */
        box-shadow:
            0 0 0 4px var(--body-bg, #0a0a0f),
            0 4px 14px rgba(0, 0, 0, 0.30);
    }
    [data-theme="light"] .stepper-node {
        box-shadow:
            0 0 0 4px var(--body-bg),
            0 4px 14px rgba(80, 80, 130, 0.10);
    }
    .stepper-node-num { font-size: 15px; }
    .stepper-card {
        flex: 1;
        text-align: left;
        padding: 14px 16px;
    }
}

/* ============================
   TESTIMONIALS
   ============================ */
.testimonials-carousel {
    max-width: 700px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-track {
    display: flex;
    transition: transform 0.6s var(--ease-out-expo);
}

.testimonial-card {
    min-width: 100%;
    padding: 48px;
}

.testimonial-quote {
    margin-bottom: 24px;
    opacity: 0.6;
}

.testimonial-text {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text);
    font-weight: 300;
    margin-bottom: 32px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    background: var(--avatar-color);
}

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

.author-info strong {
    font-size: 15px;
    font-weight: 600;
}

.author-info span {
    font-size: 13px;
    color: var(--text-dim);
}

.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 40px;
}

.carousel-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    transition: all 0.3s var(--ease-out-expo);
}

.carousel-btn:hover {
    border-color: var(--green);
    color: var(--green);
    background: rgba(182, 255, 0, 0.06);
}

.carousel-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    transition: all 0.3s var(--ease-out-expo);
    cursor: pointer;
}

.dot.active {
    background: var(--green);
    box-shadow: 0 0 10px rgba(182, 255, 0, 0.4);
    width: 24px;
    border-radius: 4px;
}

/* ============================
   CTA SECTION
   ============================ */
.cta-section {
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-glow-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.cta-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
}

.cta-orb-1 {
    width: 500px;
    height: 500px;
    background: rgba(182, 255, 0, 0.08);
    top: -20%;
    left: 20%;
    animation: orbFloat1 15s ease-in-out infinite;
}

.cta-orb-2 {
    width: 400px;
    height: 400px;
    background: rgba(139, 92, 246, 0.08);
    bottom: -20%;
    right: 20%;
    animation: orbFloat2 18s ease-in-out infinite;
}

.cta-title {
    font-family: var(--font-heading);
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 24px;
}

.cta-desc {
    font-size: 18px;
    color: var(--text-dim);
    margin-bottom: 44px;
}

.cta-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ============================
   FOOTER
   ============================ */
.footer {
    position: relative;
    z-index: 2;
    border-top: 1px solid var(--glass-border);
    padding: 80px 0 40px;
}

.footer-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(182, 255, 0, 0.3), transparent);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-tagline {
    font-size: 14px;
    color: var(--text-dim);
    margin-top: 16px;
    line-height: 1.7;
}

.footer-links-group {
    display: flex;
    gap: 80px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-heading {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 8px;
}

.footer-link {
    font-size: 14px;
    color: var(--text-dim);
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--green);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid var(--glass-border);
    font-size: 13px;
    color: var(--text-muted);
}

.footer-location {
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-secret-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: var(--text-muted);
    opacity: 0.3;
    transition: opacity 0.3s, color 0.3s, background 0.3s;
}
.admin-secret-link:hover {
    opacity: 1;
    color: var(--purple);
    background: rgba(139, 92, 246, 0.1);
}

.location-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    animation: pulse 2s ease-in-out infinite;
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 1200px) {
    .hero-visual {
        width: 320px;
        height: 320px;
        right: 2%;
    }

    .hero-k-img {
        width: 310px;
        height: 310px;
    }

    .orbit-1 { width: 380px; height: 380px; }
    .orbit-2 { width: 460px; height: 460px; }
    .orbit-3 { width: 540px; height: 540px; }
    .orbit-icon { width: 38px; height: 38px; }
    .icon-design { top: -19px; margin-left: -19px; }
    .icon-video { bottom: -19px; top: auto; margin-left: -19px; }
    .icon-code { right: -19px; margin-top: -19px; }
    .icon-strategy { left: -19px; margin-top: -19px; }

    .ring-1 { width: 180px; height: 180px; margin: -90px 0 0 -90px; }
    .ring-2 { width: 240px; height: 240px; margin: -120px 0 0 -120px; }
    .ring-3 { width: 300px; height: 300px; margin: -150px 0 0 -150px; }
}

@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }

    .nav-cta {
        display: none;
    }

    .nav-menu-btn {
        display: flex;
    }

    .hero-visual {
        display: none;
    }

    .hero-title {
        font-size: clamp(42px, 8vw, 80px);
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        max-width: 100%;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

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

    .about-visual {
        order: -1;
    }

    .about-image-container {
        width: 300px;
        height: 300px;
    }

    .footer-links-group {
        gap: 40px;
    }

    /* Brand marquee — tablet sizes for the slim bar */
    .marquee-track {
        gap: 52px;
    }
    .brand-item {
        min-width: 120px;
        height: 68px;
    }
    .brand-item img.brand-marquee-logo {
        height: 48px;
        width: auto;
        max-width: 300px;
    }
}

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

    .section-container {
        padding: 0 24px;
    }

    .nav-inner {
        padding: 0 24px;
    }

    .hero {
        padding: 120px 24px 80px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-title {
        font-size: clamp(32px, 9vw, 54px);
        letter-spacing: -2px;
    }

    .title-line {
        gap: 8px;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-top: 60px;
    }

    .stat-card {
        padding: 18px;
    }

    .stat-number {
        font-size: 28px;
    }

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

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

    /* Brand marquee — slimmer logos for the thin bar */
    .marquee-track {
        gap: 44px;
    }
    .brand-item {
        min-width: 110px;
        height: 60px;
        padding: 3px 6px;
    }
    .brand-item:hover {
        transform: scale(1.04);
    }
    .brand-item img.brand-marquee-logo {
        height: 42px;
        width: auto;
        max-width: 240px;
    }
    .marquee-track-wrap {
        padding: 4px 0;
    }

    .testimonial-card {
        padding: 32px 24px;
    }

    .testimonial-text {
        font-size: 16px;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn-large {
        width: 100%;
        justify-content: center;
    }

    .footer-top {
        flex-direction: column;
    }

    .footer-links-group {
        flex-wrap: wrap;
        gap: 32px;
    }

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

    .process-step {
        padding-left: 56px;
    }

    .step-content {
        padding: 24px;
    }

    .cursor-dot, .cursor-ring {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: clamp(30px, 10vw, 48px);
    }

    .hero-stats {
        grid-template-columns: 1fr 1fr;
    }

    .hero-ctas {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .section-title {
        font-size: clamp(28px, 7vw, 48px);
    }

    .mobile-link {
        font-size: 24px;
    }
}

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

    .reveal-up {
        opacity: 1;
        transform: none;
    }
}

/* ===========================================================
   THEME SWITCH — shadcn-style pill toggle (vanilla)
   Track with sun/moon icons + sliding thumb. Premium, accessible.
   =========================================================== */
.theme-switch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    padding: 0;
    margin: 0 12px 0 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}
.theme-switch:focus-visible .theme-switch-track {
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.35);
}

.theme-switch-track {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 60px;
    height: 30px;
    padding: 0 7px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    transition: background-color 0.35s ease, border-color 0.35s ease, box-shadow 0.2s ease;
}
.theme-switch:hover .theme-switch-track {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(139, 92, 246, 0.4);
}
[data-theme="light"] .theme-switch-track {
    background: rgba(15, 20, 40, 0.06);
    border-color: rgba(15, 20, 40, 0.12);
}
[data-theme="light"] .theme-switch:hover .theme-switch-track {
    background: rgba(15, 20, 40, 0.09);
    border-color: rgba(139, 92, 246, 0.45);
}

/* Sun + moon icons sit ON the track, dimmed; the active side lights up */
.theme-switch-icon {
    position: relative;
    z-index: 2;
    width: 14px;
    height: 14px;
    color: var(--text-muted);
    transition: color 0.35s ease, transform 0.4s var(--ease-out-expo);
    pointer-events: none;
}
:root:not([data-theme="light"]) .theme-switch-icon-moon {
    color: #e8e8ed; /* active in dark */
    transform: scale(1.08);
}
:root:not([data-theme="light"]) .theme-switch-icon-sun {
    color: rgba(255, 255, 255, 0.25);
}
[data-theme="light"] .theme-switch-icon-sun {
    color: #f59e0b; /* active in light */
    transform: scale(1.08);
}
[data-theme="light"] .theme-switch-icon-moon {
    color: rgba(15, 20, 40, 0.25);
}

/* Sliding thumb */
.theme-switch-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--purple), var(--cyan));
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.35),
                inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                background 0.4s ease,
                box-shadow 0.4s ease;
    z-index: 1;
    pointer-events: none;
}
[data-theme="light"] .theme-switch-thumb {
    transform: translateX(30px);
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.45),
                inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* Mobile spacing */
@media (max-width: 1024px) {
    .theme-switch {
        margin-right: 4px;
    }
}
@media (max-width: 480px) {
    .theme-switch-track {
        width: 54px;
        height: 28px;
        padding: 0 6px;
    }
    .theme-switch-thumb {
        width: 20px;
        height: 20px;
    }
    [data-theme="light"] .theme-switch-thumb {
        transform: translateX(26px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .theme-switch-thumb,
    .theme-switch-icon,
    .theme-switch-track {
        transition: none !important;
    }
}

/* ===========================================================
   LIGHT MODE OVERRIDES
   =========================================================== */

/* Body & overall ambient — replace dark cosmos with soft ambient glow */
[data-theme="light"] body {
    background:
        radial-gradient(ellipse 800px 600px at 20% -10%, rgba(139, 92, 246, 0.10), transparent 60%),
        radial-gradient(ellipse 700px 500px at 90% 20%, rgba(0, 180, 220, 0.08), transparent 60%),
        radial-gradient(ellipse 600px 500px at 50% 100%, rgba(200, 255, 0, 0.05), transparent 60%),
        var(--body-bg);
    background-attachment: fixed;
}

/* Kill dark-cosmos decorations in light mode (stars, particles, ambient orbs, grid) */
[data-theme="light"] .svg-grid,
[data-theme="light"] .ambient-orbs,
[data-theme="light"] #particleCanvas,
[data-theme="light"] .mouse-glow,
[data-theme="light"] .cursor-dot,
[data-theme="light"] .cursor-ring,
[data-theme="light"] .bg-grid,
[data-theme="light"] .bg-noise,
[data-theme="light"] .bg-glow {
    display: none !important;
}

/* Headings and gradient text — keep punch in light mode */
[data-theme="light"] .hero-title .title-word {
    color: #1a1d29;
}
[data-theme="light"] .text-gradient,
[data-theme="light"] .text-gradient-2,
[data-theme="light"] .text-gradient-3 {
    background: linear-gradient(135deg, #8b5cf6 0%, #00b4dc 50%, #2dd391 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Section tag chip */
[data-theme="light"] .section-tag,
[data-theme="light"] .page-tag {
    background: rgba(139, 92, 246, 0.06);
    border-color: rgba(139, 92, 246, 0.22);
    color: #6b3fd0;
}

/* Buttons */
[data-theme="light"] .btn-primary {
    background: linear-gradient(135deg, #8b5cf6, #5fa9f7);
    color: #fff;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.25);
}
[data-theme="light"] .btn-primary:hover {
    box-shadow: 0 14px 40px rgba(139, 92, 246, 0.35);
}
[data-theme="light"] .btn-outline {
    border-color: rgba(15, 20, 40, 0.15);
    color: #1a1d29;
    background: rgba(255, 255, 255, 0.4);
}
[data-theme="light"] .btn-outline:hover {
    border-color: rgba(139, 92, 246, 0.4);
    background: rgba(255, 255, 255, 0.7);
}
[data-theme="light"] .btn-whatsapp {
    border-color: rgba(37, 211, 102, 0.4);
    color: #1ea65a;
    background: rgba(37, 211, 102, 0.05);
}

/* Nav — readability tuned for light mode (especially over scrolled light content) */
[data-theme="light"] .nav-link {
    color: #1f2937;          /* dark slate — readable on light glass */
    font-weight: 500;
}
[data-theme="light"] .nav-link:hover,
[data-theme="light"] .nav-link.active {
    color: #111827;          /* even darker on hover/active */
}
[data-theme="light"] .nav-cta {
    background: linear-gradient(135deg, #8b5cf6, #5fa9f7);
    color: #fff;
}

/* Light-mode nav clips its inner aurora glow so it doesn't bleed past the bar */
[data-theme="light"] .nav {
    overflow: hidden;
}

/* Scrolled nav in light mode:
   - the nav itself stays transparent so the backdrop-filter can blur page
     content scrolling underneath
   - a ::before pseudo-element provides a 4-layer aurora background:
     cyan + lime + purple glow concentrated behind the logo (left side),
     fading into a clean white-glass panel on the right (menu area)
   - blur+saturate richen the page colours showing through behind
   - inset box-shadow draws a 1px top highlight (apple-glass feel)
   This makes the KOTRO logo read crisply while keeping menu text clean. */
[data-theme="light"] .nav.scrolled {
    background: transparent;
    backdrop-filter: blur(22px) saturate(1.25);
    -webkit-backdrop-filter: blur(22px) saturate(1.25);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow:
        0 10px 35px rgba(15, 23, 42, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

[data-theme="light"] .nav.scrolled::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        /* KOTRO aurora — concentrated on the LEFT (behind the logo) */
        radial-gradient(circle at 9% 45%,  rgba(38, 220, 255, 0.28), transparent 30%),
        radial-gradient(circle at 13% 52%, rgba(190, 255, 0, 0.20), transparent 24%),
        radial-gradient(circle at 18% 42%, rgba(120, 92, 255, 0.18), transparent 32%),
        /* Right side fades to clean glass for menu readability */
        linear-gradient(to right,
            rgba(255, 255, 255, 0.68)  0%,
            rgba(255, 255, 255, 0.82) 38%,
            rgba(255, 255, 255, 0.92) 100%);
}

/* Logo stack: two logo files layered on top of each other so we can
   cross-fade between the white (dark-theme) and black (light-theme) versions
   on theme toggle WITHOUT touching the layout. The dark-theme white logo
   occupies the natural box; the light-theme black logo absolutely overlays. */
.nav-logo-stack {
    position: relative;
    display: inline-flex;
    line-height: 0;
}
.nav-logo-stack .nav-wordmark {
    display: block;
    transition: opacity 0.35s ease;
}
.nav-logo-stack .nav-wordmark--light {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    pointer-events: none;
}
/* In light theme: swap visibility (no asset filter applied at all). */
[data-theme="light"] .nav-logo-stack .nav-wordmark--dark {
    opacity: 0;
}
[data-theme="light"] .nav-logo-stack .nav-wordmark--light {
    opacity: 1;
}

/* Footer logo: same swap pattern as header — dark logo for dark theme,
   black logo for light theme. No CSS filter on the asset itself. */
.footer-logo-stack {
    position: relative;
    display: inline-flex;
    line-height: 0;
}
.footer-logo-stack .footer-wordmark {
    display: block;
    transition: opacity 0.35s ease;
}
.footer-logo-stack .footer-wordmark--light {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    pointer-events: none;
}
[data-theme="light"] .footer-logo-stack .footer-wordmark--dark {
    opacity: 0;
}
[data-theme="light"] .footer-logo-stack .footer-wordmark--light {
    opacity: 1;
}

/* Header & footer wordmarks: KEEP original colors on BOTH themes.
   (No invert/grayscale/brightness filter — logo stays branded.) */
[data-theme="light"] .nav-menu-btn span {
    background: #1a1d29;
}

/* Mobile menu — glass panel that matches scrolled nav readability */
[data-theme="light"] .mobile-menu {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
}
[data-theme="light"] .mobile-link {
    color: #111827;
    font-weight: 500;
}
[data-theme="light"] .mobile-link:hover,
[data-theme="light"] .mobile-link.accent {
    color: #6b3fd0;
}

/* Stats cards */
[data-theme="light"] .stat-card {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(15, 20, 40, 0.08);
}
[data-theme="light"] .stat-number,
[data-theme="light"] .stat-suffix {
    background: linear-gradient(135deg, #8b5cf6, #00b4dc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
[data-theme="light"] .stat-suffix { color: #00b4dc; }
[data-theme="light"] .stat-label {
    color: #5a6175;
}

/* Service cards */
[data-theme="light"] .service-card {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(15, 20, 40, 0.07);
    box-shadow: 0 6px 24px rgba(60, 60, 100, 0.06);
}
[data-theme="light"] .service-card:hover {
    border-color: rgba(139, 92, 246, 0.25);
    box-shadow: 0 18px 50px rgba(139, 92, 246, 0.12);
}
[data-theme="light"] .service-title {
    color: #1a1d29;
}
[data-theme="light"] .service-desc {
    color: #5a6175;
}
[data-theme="light"] .service-number {
    color: rgba(15, 20, 40, 0.08);
}

/* Process steps */
[data-theme="light"] .step-number {
    background: linear-gradient(135deg, #8b5cf6, #00b4dc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
[data-theme="light"] .step-title {
    color: #1a1d29;
}
[data-theme="light"] .step-desc {
    color: #5a6175;
}

/* Section titles & subtitles */
[data-theme="light"] .section-title,
[data-theme="light"] .pj-section-title {
    color: #1a1d29;
}
[data-theme="light"] .section-subtitle {
    color: #5a6175;
}

/* About */
[data-theme="light"] .about-text {
    color: #5a6175;
}

/* Showcase / project cards */
[data-theme="light"] .showcase-card,
[data-theme="light"] .pcard {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(15, 20, 40, 0.08);
    box-shadow: 0 10px 32px rgba(60, 60, 100, 0.08);
}
[data-theme="light"] .showcase-card:hover,
[data-theme="light"] .pcard:hover {
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 24px 60px rgba(139, 92, 246, 0.15);
}
[data-theme="light"] .pcard-title {
    color: #1a1d29;
}
/* New showcase card overlays text on a dark gradient → keep it light in both themes */
[data-theme="light"] .showcase-card-title { color: #fff; }
[data-theme="light"] .showcase-card-cat { color: var(--mint); }
[data-theme="light"] .showcase-card { background: var(--dark-2); }
[data-theme="light"] .showcase-card-client,
[data-theme="light"] .pcard-client {
    color: #5a6175;
}
[data-theme="light"] .showcase-card-cat,
[data-theme="light"] .pcard-cat {
    color: #1ea65a;
}
[data-theme="light"] .showcase-card-cover,
[data-theme="light"] .pcard-cover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(0, 180, 220, 0.06));
}

/* Showcase mask edges (light variant) */
[data-theme="light"] .projects-showcase {
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 4%, #000 96%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, #000 4%, #000 96%, transparent 100%);
}

/* CTA section */
[data-theme="light"] .cta-section {
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.04), transparent 70%);
}
[data-theme="light"] .cta-title {
    color: #1a1d29;
}
[data-theme="light"] .cta-desc {
    color: #5a6175;
}

/* Footer */
[data-theme="light"] .footer {
    background: linear-gradient(180deg, transparent, rgba(15, 20, 40, 0.03));
    border-top: 1px solid rgba(15, 20, 40, 0.06);
}
[data-theme="light"] .footer-tagline,
[data-theme="light"] .footer-link {
    color: #5a6175;
}
[data-theme="light"] .footer-link:hover {
    color: #1a1d29;
}
[data-theme="light"] .footer-heading {
    color: #1a1d29;
}
[data-theme="light"] .footer-bottom {
    border-top: 1px solid rgba(15, 20, 40, 0.06);
    color: #9aa0b4;
}
[data-theme="light"] .admin-secret-link {
    color: #9aa0b4;
}

/* Brand marquee container (light) */
[data-theme="light"] .section.brand-marquee-section {
    background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.6) 50%, transparent 100%);
}
[data-theme="light"] .marquee-label {
    color: #9aa0b4;
}

/* Card body backgrounds for project detail page chips */
[data-theme="light"] .pj-tag,
[data-theme="light"] .showcase-card-svc,
[data-theme="light"] .pcard-features span,
[data-theme="light"] .demo-card-features span {
    background: rgba(15, 20, 40, 0.04);
    border-color: rgba(15, 20, 40, 0.06);
    color: #5a6175;
}

/* Form inputs (admin uses its own stylesheet; this is for site forms if any) */
[data-theme="light"] input,
[data-theme="light"] textarea,
[data-theme="light"] select {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(15, 20, 40, 0.1);
    color: #1a1d29;
}

/* ===========================================================
   HERO — replace 3D orbit system with logo + floating spheres
   =========================================================== */
.hero-spheres {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: visible;
    z-index: 1;
}
.hero-sphere {
    position: absolute;
    border-radius: 50%;
    will-change: transform;
    transform: translate3d(0, 0, 0);
    filter: blur(0.5px);
}
.hero-sphere::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: inherit;
    filter: blur(20px);
    opacity: 0.5;
    z-index: -1;
}
.hero-sphere-1 {
    width: 90px; height: 90px;
    top: 8%; left: 12%;
    background: radial-gradient(circle at 30% 30%, rgba(139, 92, 246, 0.55), rgba(139, 92, 246, 0.18) 60%, transparent 80%);
    animation: sphereFloat1 14s ease-in-out infinite;
}
.hero-sphere-2 {
    width: 64px; height: 64px;
    top: 22%; right: 8%;
    background: radial-gradient(circle at 30% 30%, rgba(0, 200, 230, 0.5), rgba(0, 200, 230, 0.15) 60%, transparent 80%);
    animation: sphereFloat2 18s ease-in-out infinite;
}
.hero-sphere-3 {
    width: 110px; height: 110px;
    bottom: 14%; left: 6%;
    background: radial-gradient(circle at 30% 30%, rgba(200, 255, 0, 0.4), rgba(200, 255, 0, 0.12) 60%, transparent 80%);
    animation: sphereFloat3 22s ease-in-out infinite;
}
.hero-sphere-4 {
    width: 50px; height: 50px;
    bottom: 26%; right: 18%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.18) 60%, transparent 80%);
    animation: sphereFloat4 16s ease-in-out infinite;
}
.hero-sphere-5 {
    width: 70px; height: 70px;
    top: 50%; left: -3%;
    background: radial-gradient(circle at 30% 30%, rgba(139, 92, 246, 0.45), rgba(139, 92, 246, 0.12) 60%, transparent 80%);
    animation: sphereFloat5 20s ease-in-out infinite;
}

@keyframes sphereFloat1 {
    0%, 100% { transform: translate3d(0, 0, 0); }
    33%      { transform: translate3d(40px, -30px, 0); }
    66%      { transform: translate3d(-20px, 30px, 0); }
}
@keyframes sphereFloat2 {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50%      { transform: translate3d(-50px, 40px, 0); }
}
@keyframes sphereFloat3 {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50%      { transform: translate3d(35px, -45px, 0); }
}
@keyframes sphereFloat4 {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50%      { transform: translate3d(-30px, -25px, 0); }
}
@keyframes sphereFloat5 {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50%      { transform: translate3d(40px, 35px, 0); }
}

/* ===========================================================
   THEME-BASED ANIMATION SWITCHING
   - Dark mode:  orbit/space system visible, spheres hidden
   - Light mode: floating spheres visible, orbit system hidden
   The two animations never coexist.
   =========================================================== */

/* Default (dark) — hide spheres */
.hero-spheres {
    display: none;
}
/* Default (dark) — orbit-system is a transparent pass-through container.
   inset:0 makes it cover the full hero-3d-container so absolutely-positioned
   .orbit children (top:50%/left:50%) center correctly inside it. */
.orbit-system {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

/* Light theme — flip visibility */
[data-theme="light"] .orbit-system,
[data-theme="light"] .orbit,
[data-theme="light"] .orbit-icon,
[data-theme="light"] .orbit-dot {
    display: none !important;
}
[data-theme="light"] .hero-spheres {
    display: block;
}

/* Central K logo (new asset: logo png son.png).
   IDENTICAL rendering in both themes — NO filter applied.
   Crisp rendering hints only. */
.hero-k-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
}

/* Reduced motion — freeze sphere animation */
@media (prefers-reduced-motion: reduce) {
    .hero-sphere {
        animation: none !important;
    }
}

/* ===========================================================
   BRAND MARQUEE — single logo, grayscale → color on hover
   =========================================================== */
/* Premium slim glass strip — Apple/Linear feel.
   DARK: deep vertical gradient with a 1px top highlight via inset shadow.
   Edges get a very faint KOTRO colour tint, but nowhere near neon. */
/* Clean premium dark glass panel — NO coloured glow / ambient light. */
.brand-marquee-strip {
    position: relative;
    margin: 0 auto;
    max-width: 1320px;
    padding: 12px 36px;
    background: rgba(10, 12, 20, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    overflow: hidden;
    display: flex;
    align-items: center;
}

.brand-marquee-strip .marquee-track-wrap {
    position: relative;
    z-index: 1;
    width: 100%;
}

/* LIGHT mode — clean white glass panel */
[data-theme="light"] .brand-marquee-strip {
    background: rgba(255, 255, 255, 0.78);
    border-color: rgba(15, 20, 40, 0.08);
    box-shadow: 0 6px 24px rgba(80, 80, 130, 0.08);
}

/* On tablet/mobile the strip should be edge-to-edge with smaller radius */
@media (max-width: 1024px) {
    .brand-marquee-strip {
        padding: 10px 24px;
        border-radius: 24px;
    }
}
@media (max-width: 768px) {
    .brand-marquee-strip {
        margin: 0 16px;
        padding: 8px 16px;
        border-radius: 20px;
    }
}

/* ===========================================================
   BRAND LOGO — theme-aware dual logo (logoLight / logoDark).
   Both images render in the DOM; CSS shows the right one per theme.
   NO grayscale/invert/blend — admin uploads logos already prepared
   for each background, so they stay readable as-is.
   Subtle opacity dim by default, full opacity on hover.
   Hero K image + header wordmark are NOT affected (different selectors).
   =========================================================== */
.brand-item img.brand-marquee-logo {
    opacity: 0.85;
    transition: opacity 300ms ease, transform 300ms ease;
}
.brand-item:hover img.brand-marquee-logo {
    opacity: 1;
}

/* Theme-based visibility swap.
   Default (dark theme): show the dark-optimised logo, hide the light one. */
.brand-item .brand-logo--light { display: none; }
.brand-item .brand-logo--dark  { display: block; }

[data-theme="light"] .brand-item .brand-logo--light { display: block; }
[data-theme="light"] .brand-item .brand-logo--dark  { display: none; }

/* ===========================================================
   PRELOADER — theme aware (already uses --body-bg above)
   =========================================================== */
[data-theme="light"] #preloader {
    background: var(--body-bg);
}
[data-theme="light"] .preloader-text span {
    background: linear-gradient(135deg, #8b5cf6, #00b4dc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
