/* Explain: Styles for custom cursor, aurora animations, glassmorphism, and gradients. - */
* {
    box-sizing: border-box;
}

html {
    background: var(--bg-dark);
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    position: relative;
}

/* Custom glowing cursor */
#custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background: var(--aurora-cyan);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 15px var(--aurora-cyan), 0 0 30px var(--aurora-teal);
    transition: width 0.2s, height 0.2s;
    mix-blend-mode: screen;
}

.hover-target:hover ~ #custom-cursor,
a:hover ~ #custom-cursor,
button:hover ~ #custom-cursor {
    width: 40px;
    height: 40px;
    opacity: 0.5;
}

/* Aurora Background Animation */
.aurora-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: var(--bg-dark);
    overflow: hidden;
}

.aurora-blob {
    position: absolute;
    filter: blur(120px);
    opacity: 0.15;
    animation: drift 60s infinite alternate linear;
}

.blob-1 {
    top: -10%; left: -10%; width: 50vw; height: 50vw;
    background: radial-gradient(circle, var(--aurora-cyan) 0%, transparent 70%);
    animation-delay: 0s;
}

.blob-2 {
    bottom: -20%; right: -10%; width: 60vw; height: 60vw;
    background: radial-gradient(circle, var(--aurora-violet) 0%, transparent 70%);
    animation-delay: -5s;
}

.blob-3 {
    top: 30%; left: 40%; width: 40vw; height: 40vw;
    background: radial-gradient(circle, var(--aurora-teal) 0%, transparent 70%);
    animation-delay: -10s;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(10%, 15%) scale(1.1); }
    100% { transform: translate(-10%, -10%) scale(0.9); }
}

/* Glassmorphism */
.glass-panel {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Gradients */
.text-gradient {
    background: linear-gradient(90deg, var(--aurora-cyan), var(--aurora-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Fade in scroll animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Tilt Image */
.tilt-card {
    transition: transform 0.1s;
    transform-style: preserve-3d;
}

/* Float Animation (Simplified) */
.float-3d {
    animation: floatSimple 6s ease-in-out infinite;
}

@keyframes floatSimple {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Buttons */
.btn-aurora {
    background: linear-gradient(45deg, var(--aurora-cyan), var(--aurora-violet));
    border: none;
    color: white;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
}

.btn-aurora:hover {
    box-shadow: 0 4px 15px rgba(123, 47, 255, 0.4);
    transform: translateY(-1px);
}

.btn-aurora::after {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s ease;
}

.btn-aurora:hover::after {
    left: 150%;
}