/* ================================================================
   FERDY DIGICLOUD — PREMIUM REDESIGN CSS
   Cute + Professional | Bright Gradients | Poppins + Nunito
   ================================================================ */

:root {
    --bg-primary: #faf8ff;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f3f0ff;
    --bg-card: rgba(255, 255, 255, 0.72);
    --bg-card-hover: rgba(255, 255, 255, 0.92);
    --text-primary: #1e1b4b;
    --text-secondary: #6b7280;
    --text-tertiary: #9ca3af;
    --accent-1: #7c3aed;
    --accent-2: #ec4899;
    --accent-3: #3b82f6;
    --accent-4: #06b6d4;
    --accent-glow: rgba(124, 58, 237, 0.25);
    --accent-gradient: linear-gradient(135deg, #7c3aed, #ec4899, #f59e0b);
    --accent-gradient-2: linear-gradient(135deg, #3b82f6, #06b6d4);
    --border-color: rgba(124, 58, 237, 0.08);
    --border-color-strong: rgba(124, 58, 237, 0.15);
    --glass-bg: rgba(255, 255, 255, 0.55);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px rgba(124, 58, 237, 0.07);
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    --whatsapp: #25D366;
    --header-bg: rgba(255, 255, 255, 0.75);
    --header-blur: 24px;
    --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 22px;
    --radius-2xl: 28px;
    --radius-full: 9999px;
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-left: env(safe-area-inset-left, 0px);
    --safe-right: env(safe-area-inset-right, 0px);
    --hero-bg: #0f0a2a;
}

[data-theme="dark"] {
    --bg-primary: #0f0a2a;
    --bg-secondary: #16103a;
    --bg-tertiary: #1e1650;
    --bg-card: rgba(30, 22, 80, 0.6);
    --bg-card-hover: rgba(30, 22, 80, 0.85);
    --text-primary: #f1f0ff;
    --text-secondary: #c4b5fd;
    --text-tertiary: #7c72a8;
    --border-color: rgba(124, 58, 237, 0.12);
    --border-color-strong: rgba(124, 58, 237, 0.25);
    --glass-bg: rgba(15, 10, 42, 0.65);
    --glass-border: rgba(124, 58, 237, 0.12);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --header-bg: rgba(15, 10, 42, 0.82);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    height: -webkit-fill-available;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    transition: background var(--transition-base), color var(--transition-base);
    padding-bottom: var(--safe-bottom);
}

@supports (-webkit-touch-callout: none) {

    input,
    select,
    textarea {
        font-size: 16px !important;
    }
}

::selection {
    background: var(--accent-1);
    color: #fff;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: var(--font-body);
    cursor: pointer;
    border: none;
    background: none;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ======== LOADING SCREEN ======== */
.loading-screen {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--hero-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 32px;
}

.loader-logo img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.loader-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: var(--accent-1);
    border-right-color: var(--accent-2);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loader-bar {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin: 0 auto 16px;
}

.loader-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--accent-gradient);
    border-radius: var(--radius-full);
    transition: width 0.3s ease;
}

.loader-text {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.loader-dots {
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0% {
        content: '.'
    }

    33% {
        content: '..'
    }

    66% {
        content: '...'
    }
}

/* ======== CURSOR GLOW (desktop) ======== */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.06) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    z-index: 0;
    transition: opacity 0.3s;
    display: none;
}

@media (hover: hover) {
    .cursor-glow {
        display: block;
    }
}

/* ======== TOAST ======== */
.toast-container {
    position: fixed;
    top: calc(24px + var(--safe-top));
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: var(--radius-lg);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    transform: translateX(120%);
    opacity: 0;
    animation: toast-in 0.4s var(--transition-spring) forwards;
    max-width: 380px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.toast.toast-out {
    animation: toast-out 0.3s ease forwards;
}

.toast-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.toast.success .toast-icon {
    color: var(--success);
}

.toast.error .toast-icon {
    color: var(--error);
}

.toast.warning .toast-icon {
    color: var(--warning);
}

.toast.info .toast-icon {
    color: var(--accent-1);
}

.toast-close {
    margin-left: auto;
    padding: 4px;
    color: var(--text-tertiary);
    cursor: pointer;
    transition: color var(--transition-fast);
    flex-shrink: 0;
}

.toast-close:hover {
    color: var(--text-primary);
}

@keyframes toast-in {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toast-out {
    to {
        transform: translateX(120%);
        opacity: 0;
    }
}

/* ======== HEADER ======== */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    transition: all var(--transition-base);
    padding-top: calc(16px + var(--safe-top));
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

#main-header .logo img {
    height: 36px;
    width: auto;
    transition: all var(--transition-base);
    filter: brightness(0) invert(1);
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.15rem;
    color: #fff;
    display: none;
    white-space: nowrap;
}

.logo-accent {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#main-header.scrolled {
    background: var(--header-bg);
    backdrop-filter: blur(var(--header-blur));
    -webkit-backdrop-filter: blur(var(--header-blur));
    box-shadow: 0 1px 0 var(--border-color);
    padding: 10px 0;
    padding-top: calc(10px + var(--safe-top));
}

#main-header.scrolled .logo img {
    filter: none;
}

#main-header.scrolled .logo-text {
    color: var(--text-primary);
    display: inline;
}

[data-theme="dark"] #main-header.scrolled .logo img {
    filter: brightness(0) invert(1);
}

[data-theme="dark"] #main-header.scrolled .logo-text {
    color: #fff;
}

/* Desktop navigation */
.nav-links {
    display: flex;
}

.nav-links ul {
    display: flex;
    gap: 2px;
}

.nav-icon {
    display: none;
    margin-right: 6px;
}

.nav-link {
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    transition: all var(--transition-base);
    font-family: var(--font-heading);
    white-space: nowrap;
}

#main-header.scrolled .nav-link {
    color: var(--text-secondary);
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

#main-header.scrolled .nav-link:hover,
#main-header.scrolled .nav-link.active {
    color: var(--accent-1);
    background: rgba(124, 58, 237, 0.08);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.theme-toggle {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    transition: all var(--transition-base);
    background: rgba(255, 255, 255, 0.1);
    -webkit-tap-highlight-color: transparent;
}

#main-header.scrolled .theme-toggle {
    color: var(--text-secondary);
    background: var(--bg-tertiary);
}

.theme-toggle:hover {
    transform: rotate(20deg) scale(1.1);
}

.hamburger {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-full);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.1);
    transition: all var(--transition-base);
    -webkit-tap-highlight-color: transparent;
}

#main-header.scrolled .hamburger {
    background: var(--bg-tertiary);
}

.hamburger span {
    display: block;
    width: 18px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all var(--transition-base);
}

#main-header.scrolled .hamburger span {
    background: var(--text-primary);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ======== GRADIENT + GLASS ======== */
.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--glass-shadow);
    transition: all var(--transition-base);
}

.glass-pill {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    padding: 8px 16px;
}

/* ======== SECTION COMMON ======== */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: rgba(124, 58, 237, 0.08);
    color: var(--accent-1);
    border: 1px solid rgba(124, 58, 237, 0.12);
    margin-bottom: 16px;
    font-family: var(--font-heading);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    /* Prevent gradient text from being clipped */
    padding-bottom: 4px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: var(--delay, 0s);
}

.reveal-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ======== HERO ======== */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: calc(100px + var(--safe-top)) 24px calc(80px + var(--safe-bottom));
    overflow: hidden;
    background: var(--hero-bg);
}

.hero-bg-effects {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
    animation: orb-float 20s ease-in-out infinite;
}

.hero-orb--1 {
    width: 500px;
    height: 500px;
    background: rgba(124, 58, 237, 0.5);
    top: -15%;
    right: -10%;
}

.hero-orb--2 {
    width: 450px;
    height: 450px;
    background: rgba(236, 72, 153, 0.35);
    bottom: -15%;
    left: -8%;
    animation-delay: -5s;
}

.hero-orb--3 {
    width: 350px;
    height: 350px;
    background: rgba(59, 130, 246, 0.3);
    top: 35%;
    left: 45%;
    animation-delay: -10s;
}

.hero-orb--4 {
    width: 250px;
    height: 250px;
    background: rgba(6, 182, 212, 0.35);
    top: 10%;
    left: 15%;
    animation-delay: -15s;
}

@keyframes orb-float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(30px, -40px) scale(1.05);
    }

    50% {
        transform: translate(-20px, 20px) scale(0.95);
    }

    75% {
        transform: translate(15px, 35px) scale(1.02);
    }
}

.hero-grid-lines {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black, transparent);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black, transparent);
}

.hero-particles {
    position: absolute;
    inset: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    width: 100%;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    background: rgba(124, 58, 237, 0.15);
    color: #c4b5fd;
    border: 1px solid rgba(124, 58, 237, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-family: var(--font-heading);
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    animation: dot-pulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes dot-pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1)
    }

    50% {
        opacity: 0.5;
        transform: scale(0.8)
    }
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 900;
    margin-top: 24px;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.hero h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 500;
    color: #c4b5fd;
    margin-bottom: 16px;
    margin-top: 8px;
}

.hero p {
    font-size: 1.1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 32px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

/* ======== BUTTONS ======== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.9rem;
    transition: all var(--transition-base);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
    min-height: 50px;
    font-family: var(--font-heading);
    -webkit-tap-highlight-color: transparent;
}

.btn i {
    font-size: 1rem;
}

.btn-primary {
    background: var(--accent-gradient);
    background-size: 200% 200%;
    color: #fff;
    box-shadow: 0 4px 20px var(--accent-glow);
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%
    }

    50% {
        background-position: 100% 50%
    }

    100% {
        background-position: 0% 50%
    }
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
}

.btn-ghost {
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    transform: translateY(-3px);
}

.btn-ripple .ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple 0.6s ease-out forwards;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 40px;
}

.social-proof {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.proof-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    font-weight: 700;
}

.proof-item i {
    color: #c4b5fd;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    z-index: 1;
    animation: float-y 2s ease-in-out infinite;
}

.scroll-mouse {
    width: 24px;
    height: 38px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    position: relative;
}

.scroll-wheel {
    width: 3px;
    height: 8px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 1.5s ease-in-out infinite;
}

@keyframes scroll-wheel {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0)
    }

    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(12px)
    }
}

@keyframes float-y {

    0%,
    100% {
        transform: translateX(-50%) translateY(0)
    }

    50% {
        transform: translateX(-50%) translateY(-6px)
    }
}

/* ======== STATS BAR ======== */
.stats-bar {
    padding: 0;
    margin-top: -40px;
    position: relative;
    z-index: 10;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-2xl);
    box-shadow: 0 20px 60px rgba(124, 58, 237, 0.08);
    overflow: hidden;
}

.stat-item {
    text-align: center;
    padding: 32px 16px;
    border-right: 1px solid var(--border-color);
}

.stat-item:last-child {
    border-right: none;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 900;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ======== LAYANAN ======== */
.layanan {
    padding: 100px 0;
    background: var(--bg-primary);
}

.layanan-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.layanan-card {
    padding: 40px 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
    cursor: default;
}

.layanan-card .card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
    opacity: 0;
    transition: opacity var(--transition-slow);
    pointer-events: none;
}

.layanan-card:hover .card-glow {
    opacity: 0.2;
}

.layanan-card:hover {
    transform: translateY(-8px);
    border-color: rgba(124, 58, 237, 0.2);
    box-shadow: 0 20px 60px rgba(124, 58, 237, 0.1);
}

.icon-wrapper {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    border-radius: var(--radius-lg);
    background: var(--icon-gradient, var(--accent-gradient));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px var(--accent-glow);
    transition: all var(--transition-base);
}

.layanan-card:hover .icon-wrapper {
    transform: scale(1.1) rotate(-5deg);
}

.icon-wrapper i {
    font-size: 28px;
    color: #fff;
}

.layanan-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.layanan-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

.card-arrow {
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-1);
    opacity: 0;
    transform: translateY(8px);
    transition: all var(--transition-base);
}

.layanan-card:hover .card-arrow {
    opacity: 1;
    transform: translateY(0);
}

/* ======== PROYEK ======== */
.proyek {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.proyek-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.proyek-card {
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
}

.proyek-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(124, 58, 237, 0.1);
}

.proyek-img-wrapper {
    overflow: hidden;
    position: relative;
}

.proyek-img-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.03));
    pointer-events: none;
}

.proyek-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.proyek-card:hover img {
    transform: scale(1.05);
}

.proyek-info {
    padding: 20px 24px;
}

.proyek-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.proyek-description {
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

.proyek-hover-icon {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: var(--accent-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    opacity: 0;
    transform: translate(8px, -8px);
    transition: all var(--transition-base);
}

.proyek-card:hover .proyek-hover-icon {
    opacity: 1;
    transform: translate(0, 0);
}

/* ======== GAME ======== */
.game {
    padding: 100px 0;
    background: var(--bg-primary);
}

.game-container {
    max-width: 420px;
    margin: 0 auto;
    padding: 32px;
}

.game-score-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.score-item {
    text-align: center;
    padding: 12px 8px;
    border-radius: var(--radius-md);
    background: var(--bg-tertiary);
}

.score-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-tertiary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.score-value {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.score-x .score-value {
    color: #ef4444;
}

.score-o .score-value {
    color: #3b82f6;
}

.game-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.game-cell {
    width: 100%;
    padding-top: 100%;
    position: relative;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    border: 2px solid transparent;
    -webkit-tap-highlight-color: transparent;
}

.game-cell:hover {
    background: rgba(124, 58, 237, 0.08);
    border-color: rgba(124, 58, 237, 0.2);
}

.game-cell.x::before,
.game-cell.o::before {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(2rem, 8vw, 3.5rem);
    font-weight: 800;
    animation: cell-pop 0.3s var(--transition-spring);
    font-family: var(--font-heading);
}

.game-cell.x::before {
    content: 'X';
    color: #ef4444;
}

.game-cell.o::before {
    content: 'O';
    color: #3b82f6;
}

.game-cell.win {
    background: rgba(124, 58, 237, 0.15);
    border-color: var(--accent-1);
    animation: cell-win 0.5s ease;
}

@keyframes cell-pop {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0
    }

    70% {
        transform: translate(-50%, -50%) scale(1.15)
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1
    }
}

@keyframes cell-win {

    0%,
    100% {
        transform: scale(1)
    }

    50% {
        transform: scale(1.05)
    }
}

.game-status {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 24px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.btn-game-restart {
    width: 100%;
    min-height: 48px;
}

/* ======== KONTAK ======== */
.kontak {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.kontak-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 32px;
    align-items: start;
}

.kontak-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.kontak-info-card {
    padding: 24px;
    text-align: center;
}

.kontak-info-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    margin: 0 auto 12px;
}

.kontak-info-card h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.kontak-info-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    word-break: break-all;
}

.kontak-info-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-1);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap var(--transition-base);
}

.kontak-info-link:hover {
    gap: 10px;
}

.kontak-form {
    padding: 40px;
}

.form-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 20px;
}

.input-wrapper {
    position: relative;
}

.input-wrapper input,
.input-wrapper textarea {
    width: 100%;
    padding: 18px 16px 8px;
    border: 1.5px solid var(--border-color-strong);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all var(--transition-base);
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.input-wrapper label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.875rem;
    color: var(--text-tertiary);
    pointer-events: none;
    transition: all var(--transition-base);
    background: transparent;
    padding: 0 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.textarea-wrapper label {
    top: 18px;
    transform: none;
}

.input-wrapper input:focus~label,
.input-wrapper input:not(:placeholder-shown)~label {
    top: 0;
    transform: translateY(-50%);
    font-size: 0.75rem;
    color: var(--accent-1);
    background: var(--bg-primary);
    font-weight: 700;
}

.input-wrapper textarea:focus~label,
.input-wrapper textarea:not(:placeholder-shown)~label {
    top: -2px;
    transform: translateY(-50%);
    font-size: 0.75rem;
    color: var(--accent-1);
    background: var(--bg-primary);
    font-weight: 700;
}

.input-wrapper input:focus,
.input-wrapper textarea:focus {
    border-color: var(--accent-1);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.input-highlight {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    transition: all var(--transition-base);
    transform: translateX(-50%);
}

.input-wrapper input:focus~.input-highlight,
.input-wrapper textarea:focus~.input-highlight {
    width: 100%;
}

.form-error {
    display: block;
    font-size: 0.75rem;
    color: var(--error);
    margin-top: 4px;
    min-height: 0;
    overflow: hidden;
    transition: all var(--transition-base);
}

.form-error.visible {
    min-height: 18px;
}

.input-wrapper.error input,
.input-wrapper.error textarea {
    border-color: var(--error);
}

.input-wrapper.error input:focus,
.input-wrapper.error textarea:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.file-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 28px;
    border: 2px dashed var(--border-color-strong);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    color: var(--text-tertiary);
    font-size: 0.875rem;
    text-align: center;
}

.file-label i {
    font-size: 1.5rem;
    color: var(--accent-1);
}

.file-label:hover {
    border-color: var(--accent-1);
    background: rgba(124, 58, 237, 0.04);
}

.file-input {
    display: none;
}

.file-name {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.btn-submit {
    width: 100%;
    min-height: 52px;
    font-size: 1rem;
    margin-top: 8px;
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* ======== FOOTER ======== */
.footer {
    background: var(--hero-bg);
    color: rgba(255, 255, 255, 0.6);
    padding: 64px 0 32px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.footer-logo {
    height: 36px;
    filter: brightness(0) invert(1);
}

.footer-logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    color: #fff;
}

.footer-logo-text span {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    max-width: 280px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.footer-social-links {
    display: flex;
    gap: 10px;
}

.footer-social-links a {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
    transition: all var(--transition-base);
}

.footer-social-links a:hover {
    background: var(--accent-gradient);
    color: #fff;
    border-color: transparent;
    transform: translateY(-3px);
}

.footer-links-group h4 {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links-group li {
    margin-bottom: 12px;
}

.footer-links-group a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    transition: color var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-links-group a:hover {
    color: #fff;
}

.footer-links-group a i {
    font-size: 1rem;
    width: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
}

.footer-bottom .fa-heart {
    color: #ef4444;
}

/* ======== BACK TO TOP ======== */
.back-to-top {
    position: fixed;
    bottom: calc(24px + var(--safe-bottom));
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: var(--accent-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 4px 20px var(--accent-glow);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

/* ================================================================
   RESPONSIVE — TABLET (max-width: 992px)
   ================================================================ */
@media (max-width: 992px) {
    .layanan-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .proyek-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-item:nth-child(2) {
        border-right: none;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .kontak-layout {
        grid-template-columns: 1fr;
    }

    .kontak-info {
        flex-direction: row;
    }

    .kontak-info-card {
        flex: 1;
    }

    .section-title {
        font-size: 2.2rem;
    }
}

/* ================================================================
   RESPONSIVE — MOBILE (max-width: 768px)
   ================================================================ */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    /* --- Header & Navigation Fixes --- */
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: min(280px, 80vw);
        height: 100%;
        height: 100dvh;
        background: var(--bg-secondary);
        z-index: 1001;
        flex-direction: column;
        padding: calc(80px + var(--safe-top)) 24px 24px;
        transform: translateX(100%);
        transition: transform var(--transition-base);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links ul {
        flex-direction: column;
        gap: 4px;
    }

    .nav-icon {
        display: inline;
    }

    .nav-link {
        color: var(--text-primary) !important;
        padding: 14px 16px;
        border-radius: var(--radius-md);
        font-size: 1rem;
        display: flex;
        align-items: center;
    }

    .nav-link:hover,
    .nav-link.active {
        background: rgba(124, 58, 237, 0.08) !important;
        color: var(--accent-1) !important;
    }

    /* --- Logo --- */
    #main-header .logo img {
        height: 32px;
    }

    .logo-text {
        display: none !important;
    }

    /* --- Hero Section --- */
    .hero {
        padding: calc(80px + var(--safe-top)) 20px calc(60px + var(--safe-bottom));
        min-height: 100vh;
        min-height: 100dvh;
    }

    .hero h1 {
        font-size: 2.5rem;
        letter-spacing: -0.02em;
    }

    .hero h2 {
        font-size: 1.1rem;
    }

    .hero p {
        font-size: 0.95rem;
        margin-bottom: 28px;
    }

    .hero-scroll-indicator {
        display: none;
    }

    .badge {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    /* Hero orbs smaller on mobile for performance */
    .hero-orb--1 {
        width: 280px;
        height: 280px;
    }

    .hero-orb--2 {
        width: 250px;
        height: 250px;
    }

    .hero-orb--3 {
        width: 200px;
        height: 200px;
    }

    .hero-orb--4 {
        width: 150px;
        height: 150px;
    }

    /* --- CTA Buttons --- */
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        margin-bottom: 32px;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
        padding: 14px 24px;
        font-size: 0.88rem;
    }

    /* --- Social Proof --- */
    .social-proof {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .glass-pill {
        padding: 6px 14px;
        font-size: 0.82rem;
    }

    /* --- Stats --- */
    .stats-bar {
        margin-top: -30px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        border-radius: var(--radius-xl);
    }

    .stat-item {
        padding: 20px 12px;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    /* --- Sections --- */
    .section-title {
        font-size: 1.85rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .layanan,
    .proyek,
    .game,
    .kontak {
        padding: 64px 0;
    }

    /* --- Layanan Cards --- */
    .layanan-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
        gap: 16px;
    }

    .layanan-card {
        padding: 32px 24px;
    }

    .icon-wrapper {
        width: 64px;
        height: 64px;
        margin-bottom: 20px;
    }

    .icon-wrapper i {
        font-size: 24px;
    }

    .layanan-card h3 {
        font-size: 1.15rem;
    }

    .layanan-card p {
        font-size: 0.875rem;
    }

    /* Show arrow on mobile since no hover */
    .card-arrow {
        opacity: 1;
        transform: translateY(0);
        margin-top: 20px;
    }

    /* --- Proyek Cards --- */
    .proyek-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
        gap: 16px;
    }

    .proyek-card img {
        height: 180px;
    }

    .proyek-info {
        padding: 16px 20px;
    }

    /* Show hover icon on mobile */
    .proyek-hover-icon {
        opacity: 1;
        transform: translate(0, 0);
    }

    /* --- Game --- */
    .game-container {
        padding: 24px;
        max-width: 100%;
    }

    .game-score-board {
        gap: 8px;
    }

    .score-item {
        padding: 10px 6px;
    }

    .score-label {
        font-size: 0.65rem;
    }

    .score-value {
        font-size: 1.3rem;
    }

    .game-board {
        gap: 6px;
    }

    .game-status {
        font-size: 1.05rem;
    }

    /* --- Kontak --- */
    .kontak-info {
        flex-direction: column;
    }

    .kontak-form {
        padding: 24px;
    }

    .form-title {
        font-size: 1.15rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .file-label {
        padding: 20px;
    }

    /* --- Footer --- */
    .footer {
        padding: 48px 0 32px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-brand {
        text-align: center;
    }

    .footer-brand p {
        max-width: 100%;
    }

    .footer-social-links {
        justify-content: center;
    }

    .footer-links-group {
        text-align: center;
    }

    .footer-links-group a {
        justify-content: center;
    }

    .footer-logo-wrap {
        justify-content: center;
    }

    /* --- Toast --- */
    .toast-container {
        left: 16px;
        right: 16px;
        top: calc(16px + var(--safe-top));
    }

    .toast {
        max-width: 100%;
    }

    /* --- Back to Top smaller on mobile --- */
    .back-to-top {
        width: 44px;
        height: 44px;
        bottom: calc(20px + var(--safe-bottom));
        right: 20px;
        font-size: 0.9rem;
    }
}

/* ================================================================
   RESPONSIVE — SMALL PHONE (max-width: 420px)
   ================================================================ */
@media (max-width: 420px) {
    .container {
        padding: 0 16px;
    }

    .hero {
        padding: calc(72px + var(--safe-top)) 16px calc(48px + var(--safe-bottom));
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero h2 {
        font-size: 1rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .cta-buttons .btn {
        max-width: 100%;
        font-size: 0.85rem;
        padding: 12px 20px;
        min-height: 46px;
    }

    .section-title {
        font-size: 1.55rem;
    }

    .section-subtitle {
        font-size: 0.88rem;
    }

    .section-tag {
        padding: 6px 14px;
        font-size: 0.7rem;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.65rem;
    }

    .stat-item {
        padding: 16px 8px;
    }

    .layanan-card {
        padding: 28px 20px;
    }

    .icon-wrapper {
        width: 60px;
        height: 60px;
    }

    .icon-wrapper i {
        font-size: 22px;
    }

    .proyek-card img {
        height: 160px;
    }

    .proyek-info {
        padding: 14px 16px;
    }

    .proyek-title {
        font-size: 1rem;
    }

    .proyek-description {
        font-size: 0.8rem;
    }

    .game-container {
        padding: 20px 16px;
    }

    .kontak-form {
        padding: 20px 16px;
    }

    .form-title {
        font-size: 1.05rem;
    }

    .file-label {
        padding: 16px;
    }

    .footer-bottom p {
        font-size: 0.78rem;
    }

    .kontak-info-card {
        padding: 20px 16px;
    }
}

/* ================================================================
   RESPONSIVE — VERY SMALL (max-width: 340px)
   ================================================================ */
@media (max-width: 340px) {
    .hero h1 {
        font-size: 1.75rem;
    }

    .hero h2 {
        font-size: 0.9rem;
    }

    .badge {
        padding: 6px 12px;
        font-size: 0.72rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .stat-number {
        font-size: 1.3rem;
    }

    .nav-links {
        width: 100%;
    }
}

/* ================================================================
   iOS SAFARI SPECIFIC FIXES
   ================================================================ */
@supports (-webkit-touch-callout: none) {
    .hero {
        background-attachment: scroll;
    }

    body {
        -webkit-overflow-scrolling: touch;
    }

    #main-header {
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
    }

    /* Fix iOS rubber-band / auto-zoom */
    .nav-links {
        -webkit-overflow-scrolling: touch;
    }
}

/* ================================================================
   ACCESSIBILITY — REDUCED MOTION
   ================================================================ */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal-up {
        opacity: 1;
        transform: none;
    }
}

/* ================================================================
   PRINT STYLES
   ================================================================ */
@media print {

    .loading-screen,
    .toast-container,
    .back-to-top,
    .hamburger,
    .theme-toggle,
    .hero-bg-effects,
    .hero-scroll-indicator,
    .mobile-overlay,
    .cursor-glow {
        display: none !important;
    }
}