/* ============================================
   DESIGN TOKENS & VARIABLES
   ============================================ */
:root {
    --color-bg: #0a0a0f;
    --color-bg-subtle: #111118;
    --color-surface: rgba(255, 255, 255, 0.03);
    --color-surface-hover: rgba(255, 255, 255, 0.06);
    --color-border: rgba(255, 255, 255, 0.06);
    --color-border-hover: rgba(255, 255, 255, 0.12);
    --color-text-primary: #f0f0f5;
    --color-text-secondary: #8888a0;
    --color-text-muted: #55556a;
    --color-accent: #a78bfa;
    --color-accent-light: #c4b5fd;
    --color-accent-dark: #6d28d9;
    --color-accent-glow: rgba(167, 139, 250, 0.25);
    --color-success: #34d399;
    --color-gradient-1: linear-gradient(135deg, #a78bfa 0%, #6d28d9 50%, #4c1d95 100%);
    --color-gradient-2: linear-gradient(135deg, #6d28d9 0%, #a78bfa 100%);
    --color-gradient-text: linear-gradient(135deg, #c4b5fd 0%, #a78bfa 40%, #8b5cf6 60%, #7c3aed 100%);
    --font-primary: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Space Grotesk', 'Outfit', sans-serif;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --shadow-glow: 0 0 60px rgba(167, 139, 250, 0.15);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
    --transition-smooth: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
    font-family: var(--font-primary);
    background: var(--color-bg);
    color: var(--color-text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

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

/* ============================================
   FLOATING SHAPES
   ============================================ */
.floating-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.04;
    animation: floatShape 20s ease-in-out infinite;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--color-accent);
    top: -100px;
    right: -50px;
    animation-delay: 0s;
    animation-duration: 25s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: var(--color-accent-dark);
    bottom: 10%;
    left: -60px;
    animation-delay: -5s;
    animation-duration: 20s;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

.shape-3 {
    width: 150px;
    height: 150px;
    background: var(--color-accent-light);
    top: 40%;
    right: 10%;
    animation-delay: -10s;
    animation-duration: 22s;
    border-radius: 50% 50% 30% 70% / 60% 40% 60% 40%;
}

.shape-4 {
    width: 100px;
    height: 100px;
    background: #8b5cf6;
    top: 20%;
    left: 15%;
    animation-delay: -7s;
    animation-duration: 18s;
}

.shape-5 {
    width: 250px;
    height: 250px;
    background: var(--color-accent);
    bottom: -80px;
    right: 20%;
    animation-delay: -3s;
    animation-duration: 28s;
    border-radius: 40% 60% 55% 45% / 55% 45% 55% 45%;
}

.shape-6 {
    width: 80px;
    height: 80px;
    background: var(--color-accent-light);
    top: 60%;
    left: 30%;
    animation-delay: -12s;
    animation-duration: 15s;
}

@keyframes floatShape {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    25% {
        transform: translate(30px, -40px) rotate(90deg) scale(1.1);
    }
    50% {
        transform: translate(-20px, 20px) rotate(180deg) scale(0.95);
    }
    75% {
        transform: translate(40px, 30px) rotate(270deg) scale(1.05);
    }
}

/* ============================================
   GRADIENT ORBS
   ============================================ */
.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.12;
    pointer-events: none;
    z-index: 0;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: var(--color-accent-dark);
    top: -15%;
    left: -10%;
    animation: orbFloat1 30s ease-in-out infinite;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: #7c3aed;
    bottom: -10%;
    right: -10%;
    animation: orbFloat2 25s ease-in-out infinite;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: var(--color-accent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: orbFloat3 20s ease-in-out infinite;
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(60px, 40px); }
    66% { transform: translate(-30px, 80px); }
}

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

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

/* ============================================
   CURSOR GLOW
   ============================================ */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--color-accent-glow) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

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

/* ============================================
   MAIN CONTAINER
   ============================================ */
.container {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    gap: 32px;
    max-width: 720px;
    margin: 0 auto;
}

/* ============================================
   ANIMATE IN
   ============================================ */
.animate-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeSlideIn 0.8s var(--transition-smooth) forwards;
    animation-delay: var(--delay, 0s);
}

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

/* ============================================
   BADGE
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 22px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-success);
    animation: pulseDot 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes pulseDot {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.5);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(52, 211, 153, 0);
    }
}

/* ============================================
   HERO TITLE
   ============================================ */
.hero-title {
    text-align: center;
    line-height: 1.1;
}

.greeting {
    display: block;
    font-family: var(--font-primary);
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    font-weight: 400;
    color: var(--color-text-secondary);
    margin-bottom: 12px;
    letter-spacing: 0.02em;
}

.name {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 8vw, 5.5rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.name-letter {
    display: inline-block;
    background: var(--color-gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: letterWave 3s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.08s);
}

.name-space {
    display: inline-block;
    width: 0.3em;
}

@keyframes letterWave {
    0%, 100% {
        transform: translateY(0);
    }
    15% {
        transform: translateY(-8px);
    }
    30% {
        transform: translateY(0);
    }
}

/* ============================================
   GLASS CARD
   ============================================ */
.glass-card {
    width: 100%;
    padding: 48px 40px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    box-shadow: var(--shadow-card);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-accent-glow), transparent);
    opacity: 0.6;
}

.glass-card:hover {
    border-color: var(--color-border-hover);
    box-shadow: var(--shadow-card), var(--shadow-glow);
}

/* ============================================
   CONSTRUCTION ICON
   ============================================ */
.construction-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: rotateGear 8s linear infinite;
}

.gear-icon {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 15px var(--color-accent-glow));
}

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

/* ============================================
   CARD CONTENT
   ============================================ */
.card-title {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 4vw, 1.85rem);
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.card-description {
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    font-weight: 400;
    color: var(--color-text-secondary);
    line-height: 1.7;
    max-width: 500px;
    margin: 0 auto;
}

/* ============================================
   PROGRESS BAR
   ============================================ */
.progress-section {
    margin-top: 36px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.progress-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.progress-value {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-accent-light);
}

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

.progress-fill {
    height: 100%;
    width: 0%;
    background: var(--color-gradient-2);
    border-radius: 100px;
    transition: width 2s var(--transition-smooth);
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmerProgress 2s ease-in-out infinite;
}

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

.progress-glow {
    position: absolute;
    top: -4px;
    left: 0;
    height: 14px;
    width: 0%;
    background: var(--color-accent);
    filter: blur(12px);
    opacity: 0.4;
    border-radius: 100px;
    transition: width 2s var(--transition-smooth);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section {
    text-align: center;
    width: 100%;
}

.contact-text {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 20px;
    font-weight: 400;
}

.phone-button {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 18px 32px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--color-text-primary);
    transition: all 0.4s var(--transition-smooth);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    width: 100%;
    max-width: 400px;
}

.phone-button:hover {
    border-color: var(--color-accent);
    background: rgba(167, 139, 250, 0.05);
    box-shadow: 0 0 40px rgba(167, 139, 250, 0.12);
    transform: translateY(-2px);
}

.phone-button:hover .phone-arrow {
    transform: translateX(4px);
    opacity: 1;
}

.phone-button:hover .phone-icon-wrapper {
    background: var(--color-accent);
    box-shadow: 0 0 20px var(--color-accent-glow);
}

.phone-button:hover .phone-icon {
    color: white;
    animation: ringPhone 0.6s ease-in-out;
}

@keyframes ringPhone {
    0%, 100% { transform: rotate(0deg); }
    15% { transform: rotate(15deg); }
    30% { transform: rotate(-12deg); }
    45% { transform: rotate(10deg); }
    60% { transform: rotate(-8deg); }
    75% { transform: rotate(5deg); }
}

.phone-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: rgba(167, 139, 250, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s var(--transition-smooth);
    flex-shrink: 0;
}

.phone-icon {
    width: 22px;
    height: 22px;
    color: var(--color-accent);
    transition: color 0.3s ease;
}

.phone-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    flex: 1;
}

.phone-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.phone-number {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-primary);
    letter-spacing: 0.02em;
}

.phone-arrow {
    width: 20px;
    height: 20px;
    color: var(--color-accent);
    opacity: 0.4;
    transition: all 0.4s var(--transition-smooth);
    flex-shrink: 0;
}

.button-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(167, 139, 250, 0.06), transparent);
    animation: buttonShimmer 4s ease-in-out infinite;
}

@keyframes buttonShimmer {
    0%, 100% { left: -100%; }
    50% { left: 100%; }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    text-align: center;
    padding-top: 16px;
}

.footer p {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    font-weight: 400;
    letter-spacing: 0.02em;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .container {
        padding: 32px 20px;
        gap: 28px;
    }

    .glass-card {
        padding: 36px 28px;
        border-radius: var(--radius-lg);
    }

    .construction-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 20px;
    }

    .phone-button {
        padding: 16px 24px;
        gap: 14px;
    }

    .phone-icon-wrapper {
        width: 42px;
        height: 42px;
    }

    .phone-number {
        font-size: 1rem;
    }

    .orb-1 { width: 300px; height: 300px; }
    .orb-2 { width: 250px; height: 250px; }
    .orb-3 { width: 200px; height: 200px; }
}

@media (max-width: 480px) {
    .container {
        padding: 24px 16px;
        gap: 24px;
    }

    .badge {
        padding: 8px 16px;
        font-size: 0.7rem;
    }

    .glass-card {
        padding: 28px 20px;
        border-radius: var(--radius-md);
    }

    .construction-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 16px;
    }

    .phone-button {
        padding: 14px 18px;
        gap: 12px;
        border-radius: var(--radius-md);
    }

    .phone-icon-wrapper {
        width: 38px;
        height: 38px;
        border-radius: var(--radius-sm);
    }

    .phone-icon {
        width: 18px;
        height: 18px;
    }

    .phone-number {
        font-size: 0.95rem;
    }

    .phone-arrow {
        display: none;
    }

    .shape-1 { width: 180px; height: 180px; }
    .shape-5 { width: 150px; height: 150px; }
}

@media (max-width: 360px) {
    .name {
        font-size: 2.4rem;
    }

    .card-title {
        font-size: 1.2rem;
    }
}

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

    .cursor-glow {
        display: none;
    }
}

/* ============================================
   SELECTION
   ============================================ */
::selection {
    background: var(--color-accent);
    color: white;
}
