/* Base Styles */
body {
    font-family: 'Inter', sans-serif;
}

/* Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

/* Glass Effect Utility */
.glass {
    background: rgba(22, 27, 34, 0.65);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(240, 246, 252, 0.1);
    box-shadow:
        0 4px 30px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
}

/* Hover Glass Card */
.glass-card {
    background: rgba(22, 27, 34, 0.4);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(240, 246, 252, 0.1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: relative;
    /* For spotlight */
    overflow: hidden;
    /* Clip spotlight */
}

.glass-card:hover {
    background: rgba(30, 36, 46, 0.6);
    backdrop-filter: blur(16px);
    border-color: rgba(88, 166, 255, 0.4);
    transform: translateY(-4px);
    box-shadow:
        0 20px 25px -5px rgba(0, 0, 0, 0.3),
        0 8px 10px -6px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
}

/* Spotlight Effect */
.glass-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    padding: 1px;
    /* Border width */
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y),
            rgba(255, 255, 255, 0.4),
            transparent 40%);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
    z-index: 2;
}

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

/* Inner Spotlight Glow on background */
.glass-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y),
            rgba(255, 255, 255, 0.04),
            transparent 40%);
    opacity: 0;
    transition: opacity 0.5s;
    z-index: -1;
    pointer-events: none;
}

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


/* Tech Stack Pills */
.tech-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 0.75rem;
    transition: all 0.3s ease;
}

.group:hover .tech-pill {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Preloader */
#preloader {
    position: fixed;
    inset: 0;
    background: #0d1117;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease-in-out;
}

.loader-text-mask {
    overflow: hidden;
}

.loader-text {
    transform: translateY(100%);
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.2s;
}

@keyframes slideUp {
    to {
        transform: translateY(0);
    }
}

/* Aurora Background */
.aurora-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: drift 20s infinite alternate;
}

.aurora-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: #1f2937;
    /* Dark Grey/Blue */
    animation-duration: 25s;
}

.aurora-2 {
    bottom: -10%;
    right: -10%;
    width: 40vw;
    height: 40vw;
    background: #1e3a8a;
    /* Deep Blue */
    animation-duration: 30s;
    animation-delay: -5s;
}

.aurora-3 {
    top: 40%;
    left: 40%;
    width: 30vw;
    height: 30vw;
    background: #0f4c5c;
    /* Deep Cyan/Teal (Subtle) */
    opacity: 0.2;
    animation-duration: 40s;
    animation-delay: -10s;
}

@keyframes drift {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(30px, 50px) scale(1.1);
    }
}