@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #0a0a0a;
    --bg-light: #1a1a1a;
    --text-primary: #e0e0e0;
    --text-muted: #6a6a6a;
    --glow-default: #ffffff;
    --glow-live: 255, 255, 255;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    cursor: default;

    /* Prevent all text selection and image dragging */
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-user-drag: none;
}

/* Prevent image dragging globally */
img {
    -webkit-user-drag: none;
    user-select: none;
    pointer-events: none;
}

/* Re-enable pointer events for images inside interactive elements */
a img, button img, .project-link img {
    pointer-events: auto;
}

/* ======================== */
/*   GRADIENT BACKGROUND    */
/* ======================== */
#background {
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse at 50% 40%, var(--bg-light) 0%, var(--bg-dark) 70%);
    z-index: 0;
}

/* ======================== */
/*     DOT PATTERN LAYER    */
/* ======================== */
#dot-pattern {
    position: fixed;
    inset: 0;
    z-index: 1;
    opacity: 0.3;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.15) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

/* ======================== */
/*   GLOW CANVAS LAYER      */
/* ======================== */
#glow-canvas {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

/* ======================== */
/*   REACTIVE DOT OVERLAY   */
/* ======================== */
#reactive-dots {
    position: fixed;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}

/* ======================== */
/*      MAIN CONTENT        */
/* ======================== */
#content {
    position: relative;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    gap: 40px;
    padding: 40px;

    /* Smooth parallax and shockwave transform */
    will-change: transform;
    transition: none;
}

/* ======================== */
/*    REACTIVE ELEMENTS     */
/* ======================== */
.reactive-element {
    will-change: transform;
    transition: transform 0.15s ease-out;
}

/* ======================== */
/*          LOGO            */
/* ======================== */
#logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.2s;
    transition: transform 0.15s ease-out, filter 0.3s ease;
}

#logo {
    width: clamp(80px, 12vw, 160px);
    height: auto;
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.1));
    transition: filter 0.4s ease, transform 0.4s ease;
}

#logo:hover {
    filter: drop-shadow(0 0 50px rgba(255, 255, 255, 0.25));
    transform: scale(1.05);
}

#logo-text {
    font-size: clamp(28px, 4vw, 52px);
    font-weight: 700;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--text-primary);
    transition: text-shadow 0.3s ease;
}

#logo-tagline {
    font-size: clamp(12px, 1.4vw, 16px);
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

/* ======================== */
/*     PROJECT LINKS        */
/* ======================== */
#projects {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.6s;
}

.project-link {
    --project-glow: 255, 255, 255;

    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    text-decoration: none;
    font-size: clamp(13px, 1.3vw, 16px);
    font-weight: 400;
    letter-spacing: 0.5px;
    transition: border-color 0.3s ease, background 0.3s ease, transform 0.15s ease-out, box-shadow 0.3s ease;
    overflow: hidden;
}

.project-link::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: radial-gradient(
        circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(var(--project-glow), 0.10),
        transparent 60%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.project-link:hover::before {
    opacity: 1;
}

.project-link:hover {
    border-color: rgba(var(--project-glow), 0.35);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 30px rgba(var(--project-glow), 0.10);
}

.project-link img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.project-name {
    font-weight: 600;
}

.project-separator {
    color: var(--text-muted);
    font-weight: 300;
}

.project-description {
    color: var(--text-muted);
    font-weight: 300;
}

/* ======================== */
/*    REACTIVE STATES       */
/* ======================== */
.logo-glow #logo-text {
    text-shadow: 0 0 40px rgba(var(--glow-live), 0.3);
}

.logo-glow #logo-tagline {
    color: rgba(var(--glow-live), 0.5);
}

.logo-glow #logo {
    filter: drop-shadow(0 0 50px rgba(var(--glow-live), 0.25));
}

/* ======================== */
/*        FOOTER            */
/* ======================== */
#footer {
    position: fixed;
    bottom: 24px;
    width: 100%;
    text-align: center;
    font-size: 12px;
    font-weight: 300;
    letter-spacing: 1px;
    color: var(--text-muted);
    z-index: 4;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 1s;
    transition: color 0.3s ease, transform 0.15s ease-out;
}

/* ======================== */
/*      ANIMATIONS          */
/* ======================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ======================== */
/*     RESPONSIVE           */
/* ======================== */
@media (max-width: 600px) {
    #content {
        gap: 30px;
        padding: 20px;
    }

    .project-link {
        padding: 12px 20px;
        width: 100%;
        justify-content: center;
    }

    #logo-text {
        letter-spacing: 3px;
    }
}