/* style.css */
:root {
    --brand: #6366f1;
    --brand-hover: #4f46e5;
    --surface: #f8fafc;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(255, 255, 255, 0.8);
}

body {
    background-color: var(--surface);
    color: var(--text-main);
    scroll-behavior: smooth;
}

/* ============================
   Glassmorphism & Utilities
============================ */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.glass-nav {
    background: rgba(248, 250, 252, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.glass-nav.scrolled {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.text-gradient {
    background: linear-gradient(135deg, var(--brand) 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================
   Buttons
============================ */
.btn-primary {
    background: var(--brand);
    color: white;
    font-weight: 600;
    border-radius: 1rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary:hover {
    background: var(--brand-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--text-main);
    font-weight: 600;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-secondary:hover {
    border-color: var(--brand);
    color: var(--brand);
}

/* ============================
   Ambient Orbs (Фоновые свечения)
============================ */
.ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
    pointer-events: none;
    animation: pulse-slow 10s infinite alternate;
}
.orb-1 {
    top: -10%; left: -5%; width: 50vw; height: 50vw;
    background: rgba(99, 102, 241, 0.15);
}
.orb-2 {
    bottom: 20%; right: -10%; width: 40vw; height: 40vw;
    background: rgba(168, 85, 247, 0.1);
    animation-delay: -5s;
}
.orb-3 {
    top: 40%; left: 30%; width: 30vw; height: 30vw;
    background: rgba(56, 188, 248, 0.1);
}

@keyframes pulse-slow {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.1); opacity: 1; }
}

/* ============================
   Floating Elements (Hero)
============================ */
.perspective-container {
    perspective: 1000px;
    transform-style: preserve-3d;
}

.floating {
    animation: float 6s ease-in-out infinite;
}

.floating-delayed {
    animation: float 8s ease-in-out infinite;
    animation-delay: -3s;
}

@keyframes float {
    0% { transform: translateY(0px) rotateX(5deg) rotateY(-10deg); }
    50% { transform: translateY(-20px) rotateX(8deg) rotateY(-5deg); }
    100% { transform: translateY(0px) rotateX(5deg) rotateY(-10deg); }
}

/* ============================
   WOW-Effect: Face Swap (Interactive)
============================ */
.face-swap-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 4/5;
    overflow: hidden;
    cursor: crosshair;
}

.face-swap-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1.5rem;
}

.overlay-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 20;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.face-swap-container:hover .overlay-wrapper {
    opacity: 0;
}

/* ============================
   Scroll Reveal Animations
============================ */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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