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

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #111118;
    --accent-purple: #8b5cf6;
    --accent-cyan: #06b6d4;
    --accent-pink: #ec4899;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow-glow: rgba(139, 92, 246, 0.3);

    --font-primary: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: "JetBrains Mono", "Consolas", monospace;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background:
        radial-gradient(
            ellipse at top,
            rgba(139, 92, 246, 0.1) 0%,
            transparent 50%
        ),
        radial-gradient(
            ellipse at bottom,
            rgba(6, 182, 212, 0.08) 0%,
            transparent 50%
        ),
        linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(
            2px 2px at 20px 30px,
            rgba(255, 255, 255, 0.3),
            transparent
        ),
        radial-gradient(
            2px 2px at 40px 70px,
            rgba(255, 255, 255, 0.2),
            transparent
        ),
        radial-gradient(
            1px 1px at 90px 40px,
            rgba(255, 255, 255, 0.4),
            transparent
        ),
        radial-gradient(
            1px 1px at 130px 80px,
            rgba(255, 255, 255, 0.2),
            transparent
        ),
        radial-gradient(
            2px 2px at 160px 30px,
            rgba(255, 255, 255, 0.3),
            transparent
        );
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: twinkle 12s ease-in-out infinite alternate;
    will-change: opacity;
}

@keyframes twinkle {
    0% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        opacity: 0.3;
    }
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.6;
    animation: float 30s ease-in-out infinite;
    will-change: transform, opacity;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--accent-purple), transparent);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-cyan), transparent);
    bottom: 20%;
    right: 10%;
    animation-delay: -7s;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, var(--accent-pink), transparent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
}

@keyframes float {
    0%,
    100% {
        transform: translate3d(0, 0, 0) rotate(0deg);
        opacity: 0.6;
    }
    33% {
        transform: translate3d(30px, -30px, 0) rotate(120deg);
        opacity: 0.8;
    }
    66% {
        transform: translate3d(-20px, 20px, 0) rotate(240deg);
        opacity: 0.4;
    }
}

.container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.main-card {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 4rem 3rem;
    text-align: center;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    max-width: 600px;
    width: 100%;
    overflow: hidden;
    animation: cardFloat 8s ease-in-out infinite;
    will-change: transform;
    transform: translateZ(0);
}

@keyframes cardFloat {
    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(0, -10px, 0);
    }
}

.title {
    position: relative;
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    font-family: var(--font-primary);
    margin-bottom: 3rem;
    perspective: 1000px;
}

.title-text {
    position: relative;
    z-index: 2;
    background: linear-gradient(
        135deg,
        var(--accent-purple),
        var(--accent-cyan),
        var(--accent-pink)
    );
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 6s ease-in-out infinite;
    text-shadow: 0 0 30px rgba(139, 92, 246, 0.5);
    transform: translateZ(20px);
    will-change: background-position;
}

.title-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        var(--accent-purple),
        var(--accent-cyan),
        var(--accent-pink)
    );
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: blur(8px);
    opacity: 0.7;
    z-index: 1;
    animation: gradientShift 6s ease-in-out infinite reverse;
    transform: translateZ(-10px);
    will-change: background-position;
}

@keyframes gradientShift {
    0%,
    100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

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

.github-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.8s both;
}

.github-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    will-change: transform;
}

.github-link::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transition: left 0.5s;
}

.github-link:hover::before {
    left: 100%;
}

.github-link:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(139, 92, 246, 0.2),
        0 0 20px rgba(139, 92, 246, 0.1);
}

.github-link:active {
    transform: translateY(0);
}

.github-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.github-link:hover .github-icon {
    transform: rotate(360deg);
}

.footer {
    margin-top: 3rem;
    animation: fadeInUp 1s ease-out 1.2s both;
}

.footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .main-card {
        padding: 3rem 2rem;
        border-radius: 20px;
    }

    .title {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }

    .github-links {
        flex-direction: column;
        gap: 1rem;
    }

    .github-link {
        justify-content: center;
        padding: 1rem;
    }

    .orb-1,
    .orb-2,
    .orb-3 {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 480px) {
    .main-card {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }

    .github-link {
        font-size: 0.9rem;
        padding: 0.875rem 1.25rem;
    }

    .github-icon {
        width: 18px;
        height: 18px;
    }
}

@media (prefers-contrast: high) {
    :root {
        --glass-bg: rgba(255, 255, 255, 0.1);
        --glass-border: rgba(255, 255, 255, 0.2);
        --text-secondary: #cccccc;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .background,
    .gradient-orb {
        animation: none;
    }
}

@media print {
    .background,
    .gradient-orb {
        display: none;
    }

    .main-card {
        background: white;
        color: black;
        box-shadow: none;
        border: 1px solid black;
    }

    .title-text,
    .title-glow {
        color: black !important;
        -webkit-text-fill-color: black !important;
    }
}
