/* ===================================
   Design System & Variables
   =================================== */

:root {
    /* Colors */
    --aurora-green: #22c55e;
    --aurora-teal: #2dd4bf;
    --aurora-purple: #8b5cf6;

    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.85);
    --text-muted: rgba(255, 255, 255, 0.6);

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s ease;
}

/* ===================================
   Reset & Base
   =================================== */

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

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: #020408;
    overflow: hidden;
    height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ===================================
   Mouse Reveal Mask
   =================================== */

.reveal-mask {
    position: fixed;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    background: radial-gradient(circle 400px at var(--mouse-x, 50%) var(--mouse-y, 50%),
            transparent 0%,
            transparent 30%,
            rgba(2, 4, 8, 0.7) 60%,
            rgba(2, 4, 8, 0.95) 100%);
    transition: opacity 0.3s ease;
}

/* ===================================
   Aurora Borealis Effect
   =================================== */

.aurora-container {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

/* Aurora wave layers */
.aurora-wave {
    position: absolute;
    width: 200%;
    height: 70%;
    left: -50%;
    filter: blur(60px);
}

.aurora-wave-1 {
    top: -15%;
    background: linear-gradient(180deg,
            transparent 0%,
            rgba(34, 197, 94, 0.5) 15%,
            rgba(16, 185, 129, 0.6) 35%,
            rgba(34, 197, 94, 0.4) 55%,
            transparent 100%);
    transform-origin: center top;
    animation: auroraWave1 12s ease-in-out infinite;
}

.aurora-wave-2 {
    top: -10%;
    background: linear-gradient(180deg,
            transparent 0%,
            rgba(45, 212, 191, 0.4) 20%,
            rgba(20, 184, 166, 0.55) 45%,
            rgba(45, 212, 191, 0.3) 70%,
            transparent 100%);
    animation: auroraWave2 15s ease-in-out infinite;
}

.aurora-wave-3 {
    top: -5%;
    background: linear-gradient(180deg,
            transparent 0%,
            rgba(139, 92, 246, 0.35) 25%,
            rgba(168, 85, 247, 0.5) 50%,
            rgba(236, 72, 153, 0.3) 75%,
            transparent 100%);
    animation: auroraWave3 18s ease-in-out infinite;
}

/* Shimmer overlay */
.aurora-shimmer {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            transparent 0%,
            rgba(255, 255, 255, 0.03) 50%,
            transparent 100%);
    animation: shimmer 4s ease-in-out infinite;
}

@keyframes auroraWave1 {

    0%,
    100% {
        transform: translateX(0%) skewX(-5deg) scaleY(1);
        opacity: 0.8;
    }

    25% {
        transform: translateX(5%) skewX(3deg) scaleY(1.2);
        opacity: 1;
    }

    50% {
        transform: translateX(-3%) skewX(-8deg) scaleY(0.9);
        opacity: 0.7;
    }

    75% {
        transform: translateX(8%) skewX(5deg) scaleY(1.1);
        opacity: 0.9;
    }
}

@keyframes auroraWave2 {

    0%,
    100% {
        transform: translateX(3%) skewX(5deg) scaleY(1);
        opacity: 0.7;
    }

    33% {
        transform: translateX(-5%) skewX(-10deg) scaleY(1.25);
        opacity: 1;
    }

    66% {
        transform: translateX(10%) skewX(8deg) scaleY(0.85);
        opacity: 0.6;
    }
}

@keyframes auroraWave3 {

    0%,
    100% {
        transform: translateX(-5%) skewX(-3deg) scaleY(1);
        opacity: 0.6;
    }

    50% {
        transform: translateX(8%) skewX(6deg) scaleY(1.15);
        opacity: 0.9;
    }
}

@keyframes shimmer {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.6;
    }
}

/* Stars background */
.stars {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(2px 2px at 20px 30px, white, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, white, transparent),
        radial-gradient(2px 2px at 160px 120px, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(1px 1px at 230px 80px, white, transparent),
        radial-gradient(2px 2px at 300px 150px, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1px 1px at 350px 30px, white, transparent),
        radial-gradient(2px 2px at 420px 100px, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1px 1px at 500px 60px, white, transparent),
        radial-gradient(2px 2px at 580px 140px, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 650px 90px, white, transparent),
        radial-gradient(2px 2px at 720px 40px, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(1px 1px at 800px 120px, white, transparent),
        radial-gradient(2px 2px at 880px 70px, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1px 1px at 950px 150px, white, transparent),
        radial-gradient(1px 1px at 100px 200px, white, transparent),
        radial-gradient(2px 2px at 200px 300px, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1px 1px at 400px 250px, white, transparent),
        radial-gradient(2px 2px at 600px 350px, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 750px 280px, white, transparent);
    background-size: 1000px 400px;
    animation: twinkle 8s ease-in-out infinite;
    opacity: 0.6;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 0.8;
    }
}

/* ===================================
   Hero Section
   =================================== */

.hero {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content {
    padding: 0 clamp(20px, 5vw, 60px);
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(56px, 14vw, 140px);
    font-weight: 500;
    line-height: 1.0;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.2s;
}

.hero-subtitle {
    font-size: clamp(18px, 3vw, 22px);
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 48px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.4s;
}

.hero-subtitle-accent {
    color: var(--text-muted);
    font-size: 0.9em;
}

.hero-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.6s;
}

.hero-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 100px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all var(--transition-fast);
}

.hero-link:hover {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.5) 0%, rgba(45, 212, 191, 0.5) 50%, rgba(139, 92, 246, 0.5) 100%);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(34, 197, 94, 0.25);
}

.hero-link svg {
    opacity: 0.8;
}

/* ===================================
   Animations
   =================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   Responsive Design
   =================================== */

@media (max-width: 640px) {
    .hero-links {
        flex-direction: column;
        gap: 12px;
    }

    .hero-link {
        justify-content: center;
    }

    .reveal-mask {
        background: radial-gradient(circle 250px at var(--mouse-x, 50%) var(--mouse-y, 50%),
                transparent 0%,
                transparent 30%,
                rgba(2, 4, 8, 0.7) 60%,
                rgba(2, 4, 8, 0.95) 100%);
    }
}

/* ===================================
   Resume Protection Modal
   =================================== */

.resume-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.resume-modal.active {
    opacity: 1;
    visibility: visible;
}

.resume-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.resume-modal-content {
    position: relative;
    background: rgba(10, 15, 25, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 40px;
    max-width: 360px;
    width: 90%;
    text-align: center;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s ease;
}

.resume-modal.active .resume-modal-content {
    transform: translateY(0) scale(1);
}

.resume-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    transition: color var(--transition-fast);
}

.resume-modal-close:hover {
    color: var(--text-primary);
}

.resume-modal-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.4) 0%, rgba(45, 212, 191, 0.4) 50%, rgba(139, 92, 246, 0.4) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
}

.resume-modal-content h3 {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.resume-modal-content p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 24px;
}

.resume-modal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.7) 0%, rgba(45, 212, 191, 0.7) 50%, rgba(139, 92, 246, 0.7) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.resume-modal-btn:hover {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.9) 0%, rgba(45, 212, 191, 0.9) 50%, rgba(139, 92, 246, 0.9) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(34, 197, 94, 0.3);
}