/* ======================================
   DESIGN TOKENS & CSS VARIABLES
   ====================================== */
:root {
    /* Colors */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    --bg-glass: rgba(255, 255, 255, 0.04);
    --bg-glass-border: rgba(255, 255, 255, 0.08);

    --text-primary: #f0f0f5;
    --text-secondary: rgba(240, 240, 245, 0.6);
    --text-muted: rgba(240, 240, 245, 0.35);

    --accent-1: #6c5ce7;
    --accent-2: #a855f7;
    --accent-3: #3b82f6;
    --accent-glow: rgba(108, 92, 231, 0.3);

    --gradient-primary: linear-gradient(135deg, #6c5ce7 0%, #a855f7 50%, #3b82f6 100%);
    --gradient-text: linear-gradient(135deg, #a78bfa 0%, #818cf8 30%, #6366f1 60%, #a855f7 100%);
    --gradient-card: linear-gradient(135deg, rgba(108, 92, 231, 0.1) 0%, rgba(168, 85, 247, 0.05) 100%);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 48px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 60px rgba(108, 92, 231, 0.15);

    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Spacing */
    --section-padding: 120px;
    --container-max: 1200px;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ======================================
   RESET & BASE
   ====================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-1) var(--bg-primary);
}

html::-webkit-scrollbar {
    width: 6px;
}

html::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

html::-webkit-scrollbar-thumb {
    background: var(--accent-1);
    border-radius: 3px;
}

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

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

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

/* ======================================
   CURSOR GLOW EFFECT
   ====================================== */
.cursor-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    opacity: 0;
}

.cursor-glow.active {
    opacity: 1;
}

/* ======================================
   PARTICLE CANVAS
   ====================================== */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}

/* ======================================
   CONTAINER
   ====================================== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ======================================
   GLASS CARD
   ====================================== */
.glass-card {
    background: var(--bg-glass);
    border: 1px solid var(--bg-glass-border);
    border-radius: 16px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.4s var(--ease-smooth);
}

.glass-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(108, 92, 231, 0.2);
    box-shadow: var(--shadow-glow);
}

/* ======================================
   NAVIGATION
   ====================================== */
.nav-header-card {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1001;
    width: 265px;
    height: 64px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(15, 15, 20, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
                height 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
                border-radius 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                background 0.3s ease,
                padding 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-header-card.expanded {
    width: min(calc(100% - 32px), 940px);
    height: 82px;
    border-radius: 28px;
    padding: 0 20px;
    background: rgba(15, 15, 22, 0.96);
    border-color: rgba(255, 255, 255, 0.15);
}

.nav-header-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: inherit;
    font-family: inherit;
    width: 100%;
    height: 100%;
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateY(0);
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
                visibility 0.35s;
}

.nav-header-toggle:hover .shortcut-avatar-mini {
    transform: scale(1.06);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.45), 0 6px 20px rgba(124, 58, 237, 0.5);
}

.nav-header-card.expanded .nav-header-toggle {
    opacity: 0;
    visibility: hidden;
    transform: scale(0.9) translateY(-12px);
    pointer-events: none;
    position: absolute;
}

/* iOS-style avatar mini — bubble di collapsed state */
.shortcut-avatar-mini {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(145deg, #9333ea 0%, #7c3aed 40%, #6d28d9 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 800;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    font-family: var(--font-main);
    box-shadow:
        0 0 0 2.5px rgba(147, 51, 234, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2),
        0 4px 16px rgba(109, 40, 217, 0.5);
    flex-shrink: 0;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    overflow: hidden;
}

.shortcut-avatar-mini::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 55%;
    height: 35%;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    filter: blur(3px);
    pointer-events: none;
}

/* Teks nama di samping bubble (toggle collapsed) */
.toggle-name {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    line-height: 1;
}

.toggle-name-main {
    font-size: 0.82rem;
    font-weight: 700;
    color: #f0f0f5;
    letter-spacing: 0.02em;
}

.toggle-name-sub {
    font-size: 0.7rem;
    font-weight: 500;
    color: rgba(240, 240, 245, 0.5);
    letter-spacing: 0.01em;
    white-space: nowrap;
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-out-up {
    transform: translateY(-8px) !important;
    opacity: 0 !important;
    transition: transform 0.22s cubic-bezier(0.4, 0, 1, 1), opacity 0.22s cubic-bezier(0.4, 0, 1, 1) !important;
}

.prepare-in {
    transform: translateY(8px) !important;
    opacity: 0 !important;
    transition: none !important;
}

.toggle-icon {
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(240, 240, 245, 0.45);
    transition: transform 0.3s ease, color 0.3s ease;
    margin-left: 2px;
}

.nav-header-toggle:hover .toggle-icon {
    color: rgba(240, 240, 245, 0.75);
}

.nav-header-card.expanded .toggle-icon {
    transform: rotate(180deg);
}

.nav-header-content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;
    width: 100%;
    height: 100%;
    position: absolute;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.95) translateY(12px);
    pointer-events: none;
    transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), 
                visibility 0.45s;
}

.nav-header-card.expanded .nav-header-content {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateY(0);
    pointer-events: auto;
}

.shortcut-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* iOS-style avatar full — di expanded card */
.shortcut-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(145deg, #9333ea 0%, #7c3aed 40%, #6d28d9 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    font-family: var(--font-main);
    box-shadow:
        0 0 0 3px rgba(147, 51, 234, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2),
        0 6px 24px rgba(109, 40, 217, 0.55);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.shortcut-avatar::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 55%;
    height: 35%;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    filter: blur(3px);
    pointer-events: none;
}

.shortcut-profile-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 180px;
}

.status-role {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #f8fafc;
    text-transform: uppercase;
}

.status-active {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent-1);
    opacity: 1;
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.shortcut-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.shortcut-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #f8fafc;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.shortcut-action:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.22);
}

.shortcut-status {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.shortcut-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.82rem;
    font-weight: 600;
    color: #f8fafc;
}

.shortcut-label.available {
    background: rgba(16, 185, 129, 0.18);
    border-color: rgba(16, 185, 129, 0.28);
    color: #a7f3d0;
}

@media (max-width: 900px) {
    .nav-header-card.expanded {
        width: min(calc(100% - 32px), 480px);
        height: 220px;
        border-radius: 24px;
        padding: 16px 14px;
    }

    .nav-header-card.expanded .nav-header-content {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        gap: 12px;
    }

    .shortcut-profile {
        justify-content: center;
    }

    .shortcut-profile-text {
        min-width: auto;
    }

    .shortcut-actions,
    .shortcut-status {
        justify-content: center;
    }

    .shortcut-action,
    .shortcut-label {
        width: auto;
        justify-content: center;
    }
}

.nav-desktop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s var(--ease-smooth);
}

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

.nav-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 2px;
    z-index: 1001;
}

.logo-bracket {
    color: var(--accent-1);
    font-weight: 400;
}

.logo-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 1px;
    transition: width 0.3s var(--ease-out);
}

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

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

/* Bottom Navigation (Mobile) */
.nav-mobile {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--bg-glass-border);
    padding: 12px 0;
}

.nav-mobile.active {
    display: block;
}

.nav-mobile-inner {
    display: flex;
    align-items: center;
    justify-content: space-around;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 8px;
}

.nav-mobile-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    color: var(--text-secondary);
    transition: all 0.3s var(--ease-smooth);
    font-size: 0.7rem;
    font-weight: 500;
    text-align: center;
    flex: 1;
}

.nav-icon {
    width: 24px;
    height: 24px;
    transition: all 0.3s var(--ease-smooth);
}

.nav-mobile-link:hover,
.nav-mobile-link.active {
    color: var(--accent-1);
}

.nav-mobile-link.active .nav-icon {
    filter: drop-shadow(0 0 8px rgba(108, 92, 231, 0.5));
}

.nav-mobile-link:hover .nav-icon {
    transform: scale(1.1);
}

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

    .nav-mobile {
        display: block;
    }

    body {
        padding-bottom: 80px;
    }
}

@media (min-width: 769px) {
    .nav-mobile {
        display: none;
    }
}

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

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 20%, rgba(108, 92, 231, 0.08) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 80%, rgba(59, 130, 246, 0.06) 0%, transparent 50%);
    animation: heroGlow 15s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-5%, 5%) rotate(3deg); }
}

.hero-content {
    text-align: left;
    position: relative;
    z-index: 1;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
    gap: 36px;
    align-items: center;
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
}

.hero-flag {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(108, 92, 231, 0.14);
    border: 1px solid rgba(108, 92, 231, 0.25);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent-1);
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(3.2rem, 6vw, 5.4rem);
    margin-top: 0;
    margin-bottom: 22px;
}

.hero-subtitle {
    max-width: 680px;
    color: var(--text-secondary);
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    line-height: 1.85;
    margin-top: 0;
}

.hero-cta {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.hero-stack {
    margin-top: 32px;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 28px;
}

.stat-card {
    padding: 22px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.09);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stat-card strong {
    font-size: 1.7rem;
    color: var(--text-primary);
}

.stat-card span {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.hero-panel {
    padding: 34px 30px;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.09);
}

.hero-panel h2 {
    font-size: clamp(1.8rem, 2.2vw, 2.4rem);
    line-height: 1.2;
    margin: 0;
}

.hero-panel p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 0;
}

.hero-panel .summary-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.hero-panel .summary-features div {
    padding: 18px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.hero-panel .summary-features strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.hero-panel .summary-features p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.summary-features strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.summary-features p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

/* Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: var(--bg-glass);
    border: 1px solid var(--bg-glass-border);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-family: var(--font-mono);
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.5);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Title */
.hero-greeting {
    display: block;
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -2px;
}

.hero-name {
    display: inline-flex;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: gradientShift 4s ease-in-out infinite alternate;
}

@keyframes gradientShift {
    0% { background-position: 0% center; }
    100% { background-position: 100% center; }
}

.letter {
    display: inline-block;
    animation: letterFloat 3s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.15s);
}

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

/* Subtitle */
.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--text-secondary);
    margin-top: 24px;
    font-family: var(--font-mono);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 2em;
}

.typing-cursor {
    animation: blink 1s step-end infinite;
    color: var(--accent-1);
    font-weight: 300;
}

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

/* CTA Buttons */
.hero-cta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 48px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font-main);
    cursor: pointer;
    transition: all 0.3s var(--ease-smooth);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 24px rgba(108, 92, 231, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(108, 92, 231, 0.5);
}

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

.btn-primary svg {
    transition: transform 0.3s var(--ease-smooth);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--bg-glass-border);
}

.btn-outline:hover {
    background: var(--bg-glass);
    border-color: rgba(108, 92, 231, 0.3);
    transform: translateY(-2px);
}

/* Scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: fadeInUp 1s ease 2s both;
}

.scroll-indicator {
    width: 24px;
    height: 40px;
    border: 2px solid var(--bg-glass-border);
    border-radius: 12px;
    position: relative;
}

.scroll-dot {
    width: 4px;
    height: 8px;
    background: var(--accent-1);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
    0% { top: 6px; opacity: 1; }
    100% { top: 24px; opacity: 0; }
}

/* Animate-in classes */
.animate-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s var(--ease-out) forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

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

/* ======================================
   SECTION COMMON
   ====================================== */
.section {
    padding: var(--section-padding) 0;
    position: relative;
    z-index: 1;
}

.section-dark {
    background: var(--bg-secondary);
}

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

.section-tag {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-1);
    letter-spacing: 2px;
    display: block;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -1px;
}

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

.section-line {
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
    margin: 20px auto 0;
}

.section-desc {
    color: var(--text-secondary);
    margin-top: 16px;
    font-size: 1.05rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Animate on scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.7s var(--ease-out);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

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

.about-card {
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.about-avatar {
    position: relative;
    width: 120px;
    height: 120px;
    margin-bottom: 28px;
}

.avatar-ring {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: var(--gradient-primary);
    animation: ringRotate 6s linear infinite;
    opacity: 0.7;
}

@keyframes ringRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.avatar-ring::before {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: var(--bg-primary);
}

.avatar-inner {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--gradient-card);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-glass-border);
}

.avatar-text {
    font-size: 3rem;
    font-weight: 900;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.about-role {
    color: var(--accent-2);
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.about-bio {
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 420px;
}

.about-bio strong {
    color: var(--text-primary);
}

.about-stats {
    display: flex;
    gap: 32px;
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid var(--bg-glass-border);
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-suffix {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.skill-card {
    padding: 28px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.skill-card:hover::before {
    opacity: 1;
}

.skill-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--gradient-card);
    border: 1px solid var(--bg-glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--accent-2);
    transition: all 0.3s var(--ease-smooth);
}

.skill-card:hover .skill-icon {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(168, 85, 247, 0.15);
}

.skill-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.skill-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ======================================
   TEAM SECTION
   ====================================== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.team-card {
    padding: 40px 28px;
    text-align: center;
    position: relative;
    overflow: hidden;
    cursor: default;
}

.team-card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(108, 92, 231, 0.06) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

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

.team-avatar {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-card);
    border: 2px solid var(--bg-glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.4s var(--ease-out);
}

.team-card:hover .team-avatar {
    transform: scale(1.1);
}

.team-avatar-ring {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid var(--bg-glass-border);
    transition: border-color 0.3s ease;
}

.team-avatar-ring.active {
    border-color: var(--accent-1);
    box-shadow: 0 0 20px rgba(108, 92, 231, 0.2);
}

.team-card:hover .team-avatar-ring {
    border-color: var(--accent-2);
}

.team-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.team-role {
    font-size: 0.85rem;
    color: var(--accent-2);
    font-weight: 500;
    margin-bottom: 12px;
}

.team-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.team-initial {
    position: absolute;
    bottom: -20px;
    right: -10px;
    font-size: 8rem;
    font-weight: 900;
    color: rgba(108, 92, 231, 0.03);
    line-height: 1;
    pointer-events: none;
}

/* Team Banner */
.team-banner {
    padding: 40px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.banner-bg {
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0.05;
}

.banner-tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-1);
    letter-spacing: 3px;
    display: block;
    margin-bottom: 8px;
}

.banner-content {
    position: relative;
    z-index: 1;
}

.banner-content h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 8px;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.banner-content p {
    color: var(--text-secondary);
    font-size: 1rem;
}

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

.project-card {
    padding: 32px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.project-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.project-badge {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.12);
    color: #93c5fd;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.project-status {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-family: var(--font-mono);
    letter-spacing: 0.8px;
}

.project-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.project-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
}

.project-meta span {
    padding: 8px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.78rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.life-schedule {
    position: relative;
    display: grid;
    gap: 18px;
    margin-top: 32px;
    padding-left: 30px;
}

.life-schedule::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 20px;
    width: 2px;
    height: calc(100% - 40px);
    background: rgba(108, 92, 231, 0.16);
    border-radius: 999px;
}

.schedule-row {
    position: relative;
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 20px;
    align-items: flex-start;
    padding: 24px 24px 24px 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(108, 92, 231, 0.12);
    transition: transform 0.3s var(--ease-smooth), background 0.3s var(--ease-smooth);
}

.schedule-row::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 28px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent-1);
    border: 2px solid rgba(255, 255, 255, 0.35);
}

.schedule-row:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.08);
}

.schedule-time {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(108, 92, 231, 0.12);
    border: 1px solid rgba(108, 92, 231, 0.18);
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.schedule-note {
    color: var(--text-secondary);
    line-height: 1.75;
    font-size: 0.95rem;
}

.project-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* ======================================
   CONTACT SECTION
   ====================================== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-card {
    padding: 32px;
    display: flex;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 0 0 16px 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-card:hover::before {
    opacity: 1;
}

#contact-github .contact-card::before,
#contact-github::before {
    background: linear-gradient(90deg, #6e5494, #333);
}

#contact-whatsapp .contact-card::before,
#contact-whatsapp::before {
    background: linear-gradient(90deg, #25d366, #128c7e);
}

#contact-telegram .contact-card::before,
#contact-telegram::before {
    background: linear-gradient(90deg, #0088cc, #229ED9);
}

.contact-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s var(--ease-smooth);
}

.contact-icon.github {
    background: rgba(110, 84, 148, 0.15);
    color: #c9a0ff;
}

.contact-icon.whatsapp {
    background: rgba(37, 211, 102, 0.12);
    color: #25d366;
}

.contact-icon.telegram {
    background: rgba(0, 136, 204, 0.12);
    color: #229ED9;
}

.contact-card:hover .contact-icon {
    transform: scale(1.1);
}

.contact-info h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.contact-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.contact-arrow {
    margin-left: auto;
    color: var(--text-muted);
    transition: all 0.3s var(--ease-smooth);
}

.contact-card:hover .contact-arrow {
    color: var(--text-primary);
    transform: translate(4px, -4px);
}

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

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-brand {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 700;
}

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

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

.footer-links a {
    color: var(--text-muted);
    transition: all 0.3s ease;
    display: flex;
    padding: 4px;
}

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

/* ======================================
   RESPONSIVE
   ====================================== */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

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

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

    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .hero-content {
        text-align: center;
    }

    .hero-summary {
        min-height: auto;
        padding: 28px;
    }

    .summary-features {
        grid-template-columns: 1fr;
    }

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

    .about-stats {
        gap: 20px;
    }

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

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

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

    .footer-inner {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

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

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

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

    .about-stats {
        flex-direction: column;
        gap: 16px;
    }

    .stat {
        display: flex;
        align-items: baseline;
        gap: 8px;
        justify-content: center;
    }

    .stat-label {
        display: inline;
        margin-top: 0;
    }
}

/* ======================================
   LOADING SCREEN
   ====================================== */
.loader {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s var(--ease-smooth), visibility 0.6s;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    font-family: var(--font-mono);
    font-size: 3rem;
    margin-bottom: 32px;
    animation: loaderPulse 1.5s ease-in-out infinite;
}

.loader-bracket {
    color: var(--accent-1);
    font-weight: 400;
}

.loader-text {
    font-weight: 900;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.loader-bar {
    width: 200px;
    height: 3px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
    margin: 0 auto 16px;
}

.loader-bar-fill {
    width: 0%;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 3px;
    transition: width 0.3s var(--ease-smooth);
}

.loader-subtitle {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 4px;
    text-transform: uppercase;
}

/* ======================================
   NAV LINK ACTIVE STATE
   ====================================== */
.nav-link.active {
    color: var(--text-primary);
}

.nav-link.active::after {
    width: 100%;
}

/* ======================================
   3D TILT CARD
   ====================================== */
.tilt-card {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.tilt-card > * {
    transform: translateZ(0);
}

/* ======================================
   EXTRA HOVER EFFECTS
   ====================================== */
.project-card {
    transition: all 0.4s var(--ease-smooth);
}

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

.team-card {
    transition: all 0.4s var(--ease-smooth);
}

.team-card:hover {
    transform: translateY(-6px);
}

.contact-card {
    transition: all 0.4s var(--ease-smooth);
}

.contact-card:hover {
    transform: translateY(-4px);
}

/* ======================================
   SELECTION COLOR
   ====================================== */
::selection {
    background: rgba(108, 92, 231, 0.3);
    color: var(--text-primary);
}

/* ======================================
   NOISE OVERLAY
   ====================================== */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.015;
    mix-blend-mode: overlay;
}
