/* CSS Variables and Root Styles */
:root {
    color-scheme: dark;
    --pink: #ff64d4;
    --blue: #7dd3fc;
}

html,
body {
    height: 100%;
}

/* Main Background with Gradient Layers */
body {
    background: 
        radial-gradient(1200px 700px at 20% -10%, #1a1d27 0, transparent 60%),
        radial-gradient(1000px 600px at 120% 0%, #171925 0, transparent 55%),
        linear-gradient(180deg, #0b0c10, #0f1116 40%, #12141a 100%);
}

/* Noise Texture Overlay */
.noise {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .025;
    background-image: radial-gradient(rgba(255, 255, 255, .7) 1px, transparent 1.3px);
    background-size: 3px 3px;
    mix-blend-mode: normal;
}

/* Aurora Background Animation */
.aurora {
    position: fixed;
    inset: -20vh -10vw;
    pointer-events: none;
    filter: blur(64px) saturate(130%);
    opacity: .24;
    mix-blend-mode: screen;
    will-change: transform;
}

.aurora::before,
.aurora::after {
    content: '';
    position: absolute;
    inset: 0;
    background: conic-gradient(from 0deg at 50% 50%, var(--pink), #a78bfa, var(--blue), #60a5fa, #22d3ee, var(--pink));
    animation: spin 28s linear infinite;
}

.aurora::after {
    animation-direction: reverse;
    animation-duration: 36s;
    opacity: .6;
}

@keyframes spin {
    to {
        transform: rotate(1turn);
    }
}

/* Vector Graphics Background */
.vector {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .18;
    filter: blur(0.2px);
}

.vector path {
    stroke: url(#grad);
    stroke-width: 1.2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.vector .dash {
    stroke-dasharray: 240 600;
    animation: dash 22s linear infinite;
    opacity: .75;
}

.vector .dash2 {
    stroke-dasharray: 180 560;
    animation: dash 28s linear infinite reverse;
    opacity: .55;
}

@keyframes dash {
    to {
        stroke-dashoffset: -800;
    }
}

/* Glass Morphism Effect */
.glass {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    background: 
        linear-gradient(to bottom, rgba(18, 20, 26, .65), rgba(18, 20, 26, .55)) padding-box,
        linear-gradient(135deg, rgba(255, 100, 212, .35), rgba(125, 211, 252, .25)) border-box;
    border: 1px solid transparent;
    backdrop-filter: blur(22px) saturate(170%);
    -webkit-backdrop-filter: blur(22px) saturate(170%);
    box-shadow: var(--shadow, 0 10px 40px rgba(0, 0, 0, .35));
    transition: transform .35s cubic-bezier(.22, .61, .36, 1), box-shadow .35s ease, filter .35s ease, background-position 2s linear;
    background-size: 100% 100%, 200% 200%;
    background-position: 0 0, 0% 50%;
}

.glass:hover {
    background-position: 0 0, 100% 50%;
}

/* Interactive Button Styles */
.btn {
    position: relative;
    overflow: hidden;
    transition: transform .28s cubic-bezier(.22, .61, .36, 1), box-shadow .3s ease, filter .3s ease;
    will-change: transform;
}

/* Button Hover Light Effect */
.btn::after {
    content: "";
    position: absolute;
    inset: -110% -40%;
    background: radial-gradient(120px 120px at var(--x, 50%) var(--y, 50%), rgba(255, 255, 255, .18), transparent 55%);
    transition: opacity .25s;
    opacity: 0;
}

.btn:hover {
    transform: translateY(-4px) scale(1.035);
    box-shadow: 0 20px 60px rgba(125,211,252,0.10), 0 10px 40px rgba(255,100,212,0.07);
}

.btn:hover::after {
    opacity: 1;
}

/* Floating Animation */
.float {
    animation: floatY 6s ease-in-out infinite;
}

.float.delay-1 {
    animation-delay: .3s;
}

.float.delay-2 {
    animation-delay: .6s;
}

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

/* Ripple Click Effect */
.ripple {
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 9999px;
    pointer-events: none;
    background: radial-gradient(circle, rgba(255, 255, 255, .45) 0%, rgba(255, 255, 255, .08) 40%, transparent 70%);
    transform: translate(-50%, -50%) scale(1);
    opacity: .8;
    animation: ripple .7s ease-out forwards;
}

@keyframes ripple {
    to {
        transform: translate(-50%, -50%) scale(14);
        opacity: 0;
    }
}

/* Card Hover Effects with Light Effect */
.card {
    position: relative;
    overflow: hidden;
    transition: transform .28s cubic-bezier(.22, .61, .36, 1), box-shadow .3s ease;
}

/* Card Hover Light Effect - Bar Style */
.card::after {
    content: "";
    position: absolute;
    inset: -20% 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .12) var(--x, 50%), transparent);
    transition: opacity .25s;
    opacity: 0;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 20px 60px rgba(125, 211, 252, 0.12),
        0 16px 48px rgba(255, 100, 212, 0.10);
}

.card:hover::after {
    opacity: 1;
}

/* Pulse Animation for iOS-like Effect */
.pulse {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(600px 400px at 50% 50%, rgba(255, 180, 120, .2), transparent 70%);
  transition: opacity .8s cubic-bezier(.22, .61, .36, 1);
  z-index: 999;
}

.pulse.show {
  opacity: 1;
}

/* Reveal Animations */
@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(16px) scale(.985);
        filter: blur(6px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes fade {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.reveal {
    animation-fill-mode: both;
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .aurora,
    .reveal,
    .vector {
        animation: none !important;
    }
    
    .glass,
    .btn,
    .card,
    .float {
        transition: none !important;
        animation: none !important;
    }
}

/* Disable Text Selection */
body,
body * {
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}