/* ============================================
   ENIEN STUDIO — Homepage Stylesheet
   Design: Gabungan Ref Creative Agency + Make It Simple
   Palette: Dark base + Violet accent
   ============================================ */

/* --- IMPORTS & RESET --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

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

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-card: #141414;
    --bg-card-hover: #1a1a1a;

    --violet-500: #8b5cf6;
    --violet-400: #a78bfa;
    --violet-600: #7c3aed;
    --violet-700: #6d28d9;
    --violet-glow: rgba(139, 92, 246, 0.15);
    --violet-glow-strong: rgba(139, 92, 246, 0.3);

    --text-primary: #ffffff;
    --text-secondary: #999999;
    --text-tertiary: #666666;
    --text-muted: #444444;

    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --border-violet: rgba(139, 92, 246, 0.3);

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;

    --transition-fast: 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-base: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-slow: 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-spring: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Light Mode Override */
[data-theme="light"] {
    --bg-primary: #f5f5f5;
    --bg-secondary: #eaeaea;
    --bg-card: #ffffff;
    --bg-card-hover: #f0f0f0;

    --text-primary: #1a1a1a;
    --text-secondary: #555555;
    --text-tertiary: #888888;
    --text-muted: #bbbbbb;

    --border-subtle: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(0, 0, 0, 0.15);
    --border-violet: rgba(139, 92, 246, 0.25);

    --violet-glow: rgba(139, 92, 246, 0.08);
    --violet-glow-strong: rgba(139, 92, 246, 0.18);
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* ============================================
   THEME TOGGLE — Fixed Bottom-Left
   ============================================ */
.theme-toggle-wrapper {
    position: fixed;
    bottom: 30px;
    left: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    z-index: 998;
}

.theme-toggle-label {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: color var(--transition-fast);
    user-select: none;
}

.theme-toggle-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-hover);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.theme-toggle-btn:hover {
    border-color: var(--violet-500);
    color: var(--violet-400);
    background: rgba(139, 92, 246, 0.1);
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--violet-glow);
}

.theme-toggle-btn:active {
    transform: scale(0.95);
}

/* Icon switching */
.theme-icon {
    position: absolute;
    transition: opacity 0.3s ease, transform 0.4s ease;
}

.theme-icon-moon {
    opacity: 1;
    transform: rotate(0deg);
}

.theme-icon-sun {
    opacity: 0;
    transform: rotate(-90deg);
}

/* Light mode: show sun, hide moon */
[data-theme="light"] .theme-icon-moon {
    opacity: 0;
    transform: rotate(90deg);
}

[data-theme="light"] .theme-icon-sun {
    opacity: 1;
    transform: rotate(0deg);
}

/* Light mode navbar adjustments */
[data-theme="light"] #navbar.scrolled {
    background: rgba(245, 245, 245, 0.9);
}

/* Light mode mobile menu */
[data-theme="light"] .mobile-menu {
    background: rgba(245, 245, 245, 0.97);
}

/* Light mode hero glow */
[data-theme="light"] .hero::before {
    background: radial-gradient(circle, rgba(139, 92, 246, 0.06) 0%, transparent 70%);
}

/* Light mode marquee */
[data-theme="light"] .marquee-section {
    background: var(--bg-secondary);
}

/* Light mode highlight text on .highlight */
[data-theme="light"] .highlight {
    color: #ffffff;
}

/* Light mode about-quote keeps white text */
[data-theme="light"] .about-quote p {
    color: #ffffff;
}

/* Light mode CTA section */
[data-theme="light"] .cta-section {
    background: var(--bg-secondary);
}

/* Light mode footer */
[data-theme="light"] footer {
    background: #1a1a1a;
    color: #ffffff;
}

[data-theme="light"] footer .footer-link,
[data-theme="light"] footer .footer-copyright {
    color: #999999;
}

[data-theme="light"] footer .footer-link:hover {
    color: #ffffff;
}

/* ============================================
   SITE BADGE — Fixed Right-Center
   ============================================ */
.site-badge {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 997;
    background: var(--violet-500);
    padding: 16px 10px;
    border-radius: 8px 0 0 8px;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    cursor: default;
}

.site-badge:hover {
    transform: translateY(-50%) translateX(-4px);
    box-shadow: -4px 0 20px var(--violet-glow-strong);
}

.badge-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    color: #ffffff;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    line-height: 1;
    font-family: var(--font-sans);
}

body.menu-open {
    overflow: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

/* --- SCROLL REVEAL --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* stagger children */
.service-item.reveal:nth-child(2) { transition-delay: 0.1s; }
.service-item.reveal:nth-child(3) { transition-delay: 0.2s; }
.service-item.reveal:nth-child(4) { transition-delay: 0.3s; }

.project-card.reveal:nth-child(2) { transition-delay: 0.1s; }
.project-card.reveal:nth-child(3) { transition-delay: 0.15s; }
.project-card.reveal:nth-child(4) { transition-delay: 0.2s; }
.project-card.reveal:nth-child(5) { transition-delay: 0.25s; }

.testimonial-card.reveal:nth-child(2) { transition-delay: 0.1s; }
.testimonial-card.reveal:nth-child(3) { transition-delay: 0.2s; }

.stat-item.reveal:nth-child(1) { transition-delay: 0s; }
.stat-item.reveal:nth-child(3) { transition-delay: 0.1s; }
.stat-item.reveal:nth-child(5) { transition-delay: 0.2s; }


/* ============================================
   NAVBAR
   ============================================ */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: background var(--transition-base), padding var(--transition-base),
                backdrop-filter var(--transition-base), border-color var(--transition-base);
    border-bottom: 1px solid transparent;
}

#navbar.scrolled {
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 14px 0;
    border-bottom-color: var(--border-subtle);
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 2px;
    transition: opacity var(--transition-fast);
    z-index: 1001;
}

.logo:hover { opacity: 0.8; }

.logo-img {
    height: 28px;
    width: auto;
    display: block;
}

/* Dark mode: show white logo, hide black */
.logo-dark { display: block; }
.logo-light { display: none; }

/* Light mode: show black logo, hide white */
[data-theme="light"] .logo-dark { display: none; }
[data-theme="light"] .logo-light { display: block; }

.logo-text {
    font-size: 0.95rem;
    font-weight: 300;
    letter-spacing: 1px;
    color: var(--text-primary);
}

.logo-bold {
    font-weight: 800;
}

.nav-links {
    display: flex;
    gap: 36px;
    list-style: none;
}

.nav-links .nav-item {
    color: var(--text-tertiary);
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    padding: 6px 0;
    transition: color var(--transition-fast);
}

.nav-links .nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--violet-500);
    border-radius: 1px;
    transition: width var(--transition-base);
}

.nav-links .nav-item:hover,
.nav-links .nav-item.active {
    color: var(--text-primary);
}

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

.nav-cta {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    background: var(--violet-500);
    color: var(--text-primary);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background var(--transition-fast), transform var(--transition-fast),
                box-shadow var(--transition-fast);
}

.nav-cta:hover {
    background: var(--violet-600);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--violet-glow-strong);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 0;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform var(--transition-base), opacity var(--transition-fast);
}

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

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

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

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 10, 10, 0.97);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    z-index: 999;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base);
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-nav-links {
    list-style: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mobile-nav-item {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

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

.mobile-nav-item.cta-mobile {
    color: var(--violet-400);
    font-size: 1.5rem;
    margin-top: 16px;
}


/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 120px 5% 80px;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

/* Subtle radial glow behind hero */
.hero::before {
    content: '';
    position: absolute;
    top: -30%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--violet-glow) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ── Animated Background Blobs ── */
.hero-blobs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

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

.blob-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.6), rgba(139, 92, 246, 0) 70%);
    top: -10%;
    left: -5%;
    animation: blobFloat1 18s ease-in-out infinite;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.5), rgba(124, 58, 237, 0) 70%);
    top: 10%;
    right: -8%;
    animation: blobFloat2 22s ease-in-out infinite;
}

.blob-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.4), rgba(167, 139, 250, 0) 70%);
    bottom: 5%;
    left: 25%;
    animation: blobFloat3 20s ease-in-out infinite;
}

.blob-4 {
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(109, 40, 217, 0.45), rgba(109, 40, 217, 0) 70%);
    top: 50%;
    right: 15%;
    animation: blobFloat4 25s ease-in-out infinite;
}

.blob-5 {
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.35), rgba(139, 92, 246, 0) 70%);
    bottom: 20%;
    left: 60%;
    animation: blobFloat5 16s ease-in-out infinite;
}

@keyframes blobFloat1 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        border-radius: 50%;
    }
    25% {
        transform: translate(80px, 60px) scale(1.15);
        border-radius: 45% 55% 50% 50%;
    }
    50% {
        transform: translate(40px, 120px) scale(0.9);
        border-radius: 55% 45% 55% 45%;
    }
    75% {
        transform: translate(-30px, 50px) scale(1.08);
        border-radius: 48% 52% 45% 55%;
    }
}

@keyframes blobFloat2 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        border-radius: 50%;
    }
    25% {
        transform: translate(-70px, 80px) scale(1.1);
        border-radius: 55% 45% 48% 52%;
    }
    50% {
        transform: translate(-100px, 30px) scale(0.95);
        border-radius: 45% 55% 52% 48%;
    }
    75% {
        transform: translate(-40px, -50px) scale(1.12);
        border-radius: 52% 48% 55% 45%;
    }
}

@keyframes blobFloat3 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        border-radius: 50%;
    }
    33% {
        transform: translate(60px, -80px) scale(1.1);
        border-radius: 48% 52% 55% 45%;
    }
    66% {
        transform: translate(-50px, -40px) scale(0.92);
        border-radius: 55% 45% 45% 55%;
    }
}

@keyframes blobFloat4 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        border-radius: 50%;
    }
    30% {
        transform: translate(-60px, -70px) scale(1.08);
        border-radius: 52% 48% 50% 50%;
    }
    60% {
        transform: translate(40px, -100px) scale(0.88);
        border-radius: 45% 55% 52% 48%;
    }
}

@keyframes blobFloat5 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        border-radius: 50%;
    }
    40% {
        transform: translate(-80px, 50px) scale(1.15);
        border-radius: 55% 45% 48% 52%;
    }
    70% {
        transform: translate(30px, 80px) scale(0.9);
        border-radius: 48% 52% 55% 45%;
    }
}

/* Light mode blobs — more visible */
[data-theme="light"] .blob {
    opacity: 0.5;
    filter: blur(90px);
}

[data-theme="light"] .blob-1 {
    background: radial-gradient(circle, rgba(139, 92, 246, 0.7), rgba(139, 92, 246, 0) 70%);
}

[data-theme="light"] .blob-2 {
    background: radial-gradient(circle, rgba(196, 130, 250, 0.6), rgba(196, 130, 250, 0) 70%);
}

[data-theme="light"] .blob-3 {
    background: radial-gradient(circle, rgba(167, 139, 250, 0.55), rgba(167, 139, 250, 0) 70%);
}

[data-theme="light"] .blob-4 {
    background: radial-gradient(circle, rgba(124, 58, 237, 0.5), rgba(124, 58, 237, 0) 70%);
}

[data-theme="light"] .blob-5 {
    background: radial-gradient(circle, rgba(192, 132, 252, 0.6), rgba(192, 132, 252, 0) 70%);
}

.hero-content {
    text-align: center;
    max-width: 900px;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    border: 1px solid var(--border-subtle);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 28px;
    background: rgba(255, 255, 255, 0.02);
    animation: fadeInDown 1s ease forwards;
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-title {
    font-size: clamp(2.8rem, 5.5vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -3px;
    margin-bottom: 24px;
    animation: fadeInUp 1s 0.2s ease forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.title-line {
    display: block;
}

.title-line em {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
}

.title-accent {
    color: var(--violet-500);
}

.highlight {
    display: inline-block;
    background: var(--violet-500);
    color: var(--text-primary);
    padding: 4px 32px;
    border-radius: 60px;
    transform: rotate(-2deg);
    transition: transform var(--transition-spring), background var(--transition-fast),
                box-shadow var(--transition-fast);
    cursor: default;
}

.highlight:hover {
    transform: rotate(0deg) scale(1.05);
    background: var(--violet-400);
    box-shadow: 0 15px 40px var(--violet-glow-strong);
}

.hero-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto 28px;
    animation: fadeInUp 1s 0.4s ease forwards;
    opacity: 0;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeInUp 1s 0.6s ease forwards;
    opacity: 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: all var(--transition-base);
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--violet-500);
    color: var(--text-primary);
    border-color: var(--violet-500);
}

.btn-primary:hover {
    background: var(--violet-600);
    border-color: var(--violet-600);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px var(--violet-glow-strong);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-hover);
}

.btn-outline:hover {
    border-color: var(--violet-500);
    color: var(--violet-400);
    transform: translateY(-3px);
}

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

/* ============================================
   ABOUT STATS — Inside About Header
   ============================================ */
.about-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid var(--border-subtle);
}

.about-stat-item {
    text-align: center;
    position: relative;
}

.about-stat-item:not(:first-child)::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 50px;
    background: var(--border-subtle);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.1;
}

.stat-plus {
    color: var(--violet-500);
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-tertiary);
    margin-top: 6px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-divider {
    width: 1px;
    height: 50px;
    background: var(--border-subtle);
}

/* Hero Scroll Indicator — absolute bottom */
.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: fadeInUp 1s 1s ease forwards;
    opacity: 0;
    z-index: 1;
}

/* ============================================
   SECTION RELEASE — Divider Between Sections
   ============================================ */
.section-release {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 0;
    position: relative;
}

.section-release::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--violet-500), transparent);
}

.section-release::after {
    content: '✦';
    font-size: 0.6rem;
    color: var(--violet-500);
    background: var(--bg-primary);
    padding: 0 12px;
    position: relative;
    z-index: 1;
}

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

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.3; transform: scaleY(0.6); }
}


/* ============================================
   MARQUEE SECTION
   ============================================ */
.marquee-section {
    padding: 28px 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    overflow: hidden;
    background: var(--bg-secondary);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marqueeScroll 25s linear infinite;
}

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

.marquee-content {
    display: flex;
    align-items: center;
    gap: 40px;
    padding-right: 40px;
    white-space: nowrap;
}

.marquee-content span {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-primary);
}

.marquee-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.marquee-logo {
    height: 20px;
    width: auto;
}

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


/* ============================================
   SECTION COMMON STYLES
   ============================================ */
.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.label-num {
    color: var(--violet-400);
    font-weight: 600;
}

.section-title {
    font-size: clamp(2.8rem, 5vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 24px;
}

.section-title em {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 550px;
}


/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
    padding: 140px 5%;
    background: var(--bg-primary);
}

.about-container {
    max-width: 1300px;
    margin: 0 auto;
}

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

.about-header .section-subtitle {
    margin: 0 auto;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-image {
    position: relative;
}

.about-image-wrapper {
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4/5;
    position: relative;
}

.about-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.about-quote {
    position: relative;
    background: var(--violet-500);
    padding: 28px 32px;
    border-radius: 16px;
    margin-top: -60px;
    margin-left: 30px;
    margin-right: -20px;
    z-index: 2;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.about-quote p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-primary);
    font-weight: 500;
}

.about-text {
    padding-top: 20px;
}

.about-text-columns {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.about-text-columns p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.about-discover {
    display: inline-block;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    padding: 20px 0;
    border-top: 1px solid var(--border-subtle);
    transition: color var(--transition-fast);
}

.about-discover:hover {
    color: var(--text-primary);
}

.discover-label {
    color: var(--violet-400);
    font-weight: 600;
    margin-right: 4px;
}

.about-discover strong {
    color: var(--violet-400);
    font-weight: 600;
    transition: letter-spacing var(--transition-fast);
}

.about-discover:hover strong {
    letter-spacing: 2px;
}

/* About Contact Info */
.about-contact-info {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 32px;
    padding: 24px 28px;
    background: var(--bg-secondary);
    border-radius: 16px;
    border: 1px solid var(--border-subtle);
    position: relative;
    overflow: hidden;
}

.about-contact-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, var(--violet-500), var(--violet-600), transparent);
    border-radius: 3px;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast), transform var(--transition-fast);
    border-bottom: 1px solid var(--border-subtle);
    cursor: default;
}

.contact-info-item:last-child {
    border-bottom: none;
}

a.contact-info-item {
    cursor: pointer;
}

a.contact-info-item:hover {
    color: var(--text-primary);
    transform: translateX(4px);
}

a.contact-info-item:hover .contact-info-icon {
    background: var(--violet-500);
    border-color: var(--violet-500);
    color: var(--text-primary);
}

.contact-info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 10px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: var(--violet-400);
    transition: all var(--transition-fast);
}

.contact-info-text {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.2px;
}


/* ============================================
   SERVICES SECTION
   ============================================ */
.services {
    padding: 140px 5%;
    background: var(--bg-secondary);
}

.services-container {
    max-width: 1300px;
    margin: 0 auto;
}

.services-header {
    margin-bottom: 60px;
}

.services-list {
    border-top: 1px solid var(--border-subtle);
}

.service-item {
    border-bottom: 1px solid var(--border-subtle);
    padding: 32px 0;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.service-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.service-info {
    display: flex;
    align-items: center;
    gap: 24px;
}

.service-index {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
    min-width: 24px;
    transition: color var(--transition-fast);
}

.service-name {
    font-size: clamp(1.3rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.5px;
    transition: color var(--transition-fast), transform var(--transition-base);
}

.service-arrow {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all var(--transition-base);
    flex-shrink: 0;
}

.service-desc {
    max-height: 0;
    overflow: hidden;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    padding-left: 48px;
    transition: max-height var(--transition-slow), opacity var(--transition-base),
                padding var(--transition-slow);
    opacity: 0;
}

/* Service hover/active state */
.service-item:hover .service-name,
.service-item.active .service-name {
    color: var(--violet-400);
    transform: translateX(8px);
}

.service-item:hover .service-index,
.service-item.active .service-index {
    color: var(--violet-500);
}

.service-item:hover .service-arrow,
.service-item.active .service-arrow {
    background: var(--violet-500);
    border-color: var(--violet-500);
    color: var(--text-primary);
    transform: rotate(45deg);
}

.service-item:hover .service-desc,
.service-item.active .service-desc {
    max-height: 100px;
    opacity: 1;
    padding-top: 16px;
    padding-left: 48px;
}


/* ============================================
   PROJECTS SECTION
   ============================================ */
.projects {
    padding: 140px 5%;
    background: var(--bg-primary);
}

.projects-container {
    max-width: 1300px;
    margin: 0 auto;
}

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

.projects-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    max-width: 400px;
    text-align: right;
    line-height: 1.7;
}

.projects-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 10px 24px;
    background: transparent;
    border: 1px solid var(--border-subtle);
    border-radius: 50px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.tab-btn:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.tab-btn.active {
    background: var(--violet-500);
    border-color: var(--violet-500);
    color: var(--text-primary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.project-card {
    border-radius: 20px;
    overflow: hidden;
    transition: transform var(--transition-base), opacity var(--transition-base);
}

.project-card.large {
    grid-column: span 2;
}

.project-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    border-radius: 20px;
    background: var(--bg-card);
}

.project-card.large .project-image {
    aspect-ratio: 21/9;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow), filter var(--transition-slow);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.3) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity var(--transition-base), transform var(--transition-base);
}

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

.project-card:hover .project-image img {
    transform: scale(1.08);
}

.project-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--violet-400);
    margin-bottom: 8px;
}

.project-name {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.3px;
}


/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
.testimonials {
    padding: 140px 5%;
    background: var(--bg-secondary);
}

.testimonials-container {
    max-width: 1300px;
    margin: 0 auto;
}

.testimonials-header {
    text-align: center;
    margin-bottom: 60px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    transition: transform var(--transition-base), border-color var(--transition-base),
                box-shadow var(--transition-base);
}

.testimonial-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-violet);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.testimonial-stars {
    color: var(--violet-400);
    font-size: 1rem;
    letter-spacing: 2px;
}

.testimonial-quote p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
    flex: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 20px;
    border-top: 1px solid var(--border-subtle);
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--violet-600), var(--violet-400));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

.author-name {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
}

.author-role {
    display: block;
    font-size: 0.8rem;
    color: var(--text-tertiary);
    margin-top: 2px;
}


/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    padding: 140px 5%;
    background: var(--bg-primary);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, var(--violet-glow) 0%, transparent 70%);
    pointer-events: none;
}

.cta-container {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.cta-label {
    margin-bottom: 24px;
}

.cta-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 24px;
}

.cta-title em {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    color: var(--violet-400);
}

.cta-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 40px;
}

.cta-actions {
    margin-bottom: 30px;
}

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

.cta-contact a {
    color: var(--text-tertiary);
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.cta-contact a:hover {
    color: var(--violet-400);
}

.contact-divider {
    color: var(--text-muted);
}


/* ============================================
   FOOTER
   ============================================ */
footer {
    padding: 40px 5%;
    border-top: 1px solid var(--border-subtle);
    background: var(--bg-primary);
}

.footer-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    transition: opacity var(--transition-fast);
}

.footer-logo:hover {
    opacity: 0.8;
}

.footer-logo-img {
    height: 24px;
    width: auto;
}

/* Footer is always dark, so always show white logo */
.footer-logo .logo-dark { display: block; }
.footer-logo .logo-light { display: none; }

/* In light mode, footer stays dark so keep white logo */
[data-theme="light"] .footer-logo .logo-dark { display: block; }
[data-theme="light"] .footer-logo .logo-light { display: none; }

.footer-logo .logo-text {
    color: #ffffff;
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 28px;
    list-style: none;
}

.footer-links a {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    transition: color var(--transition-fast);
}

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

.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    transition: all var(--transition-fast);
}

.social-link:hover {
    border-color: var(--violet-500);
    color: var(--violet-400);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--violet-glow);
}


/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
    .about-content {
        gap: 40px;
    }

    .projects-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .projects-description {
        text-align: left;
    }

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

    .testimonial-card:last-child {
        grid-column: span 2;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-cta { display: none; }
    .hamburger { display: flex; }
    .mobile-menu { display: flex; }

    .theme-toggle-wrapper {
        bottom: 20px;
        left: 16px;
    }

    .theme-toggle-label {
        display: none;
    }

    .theme-toggle-btn {
        width: 40px;
        height: 40px;
    }

    .site-badge {
        padding: 12px 8px;
    }

    .badge-text {
        font-size: 0.5rem;
        letter-spacing: 2px;
    }

    .hero {
        padding: 130px 5% 60px;
        min-height: auto;
    }

    .hero-title {
        letter-spacing: -2px;
    }

    .about-stats {
        gap: 24px;
        flex-wrap: wrap;
    }

    .about-stat-item:not(:first-child)::before {
        display: none;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .hero-scroll {
        display: none;
    }

    .marquee-content span {
        font-size: 1.2rem;
    }

    .about {
        padding: 80px 5%;
    }

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

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

    .about-quote {
        margin-left: 16px;
        margin-right: 0;
    }

    .about-contact-info {
        padding: 18px 20px;
    }

    .contact-info-icon {
        width: 36px;
        height: 36px;
        min-width: 36px;
    }

    .contact-info-text {
        font-size: 0.82rem;
    }

    .services {
        padding: 80px 5%;
    }

    .service-name {
        font-size: 1.2rem;
    }

    .service-desc {
        padding-left: 0 !important;
    }

    .service-item:hover .service-desc,
    .service-item.active .service-desc {
        padding-left: 0 !important;
    }

    .projects {
        padding: 80px 5%;
    }

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

    .project-card.large {
        grid-column: span 1;
    }

    .project-card.large .project-image {
        aspect-ratio: 16/10;
    }

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

    .testimonials {
        padding: 80px 5%;
    }

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

    .testimonial-card:last-child {
        grid-column: span 1;
    }

    .cta-section {
        padding: 80px 5%;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .hero-badge {
        font-size: 0.7rem;
        padding: 6px 16px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

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

    .stat-divider {
        display: none;
    }

    .about-stats {
        justify-content: space-around;
    }

    .projects-tabs {
        gap: 6px;
    }

    .tab-btn {
        padding: 8px 18px;
        font-size: 0.8rem;
    }
}