:root {
    --color-bg: #0a0a0a;
    --color-bg-secondary: #121212;
    --color-text: #e0e0e0;
    --color-text-muted: #6b6b6b;
    --color-accent: #ffffff;
    --color-glow: rgba(255, 255, 255, 0.1);
    --font-primary: 'Space Grotesk', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

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

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg);
    color: var(--color-text);
    overflow-x: hidden;
    cursor: default;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background-color: var(--color-accent);
    color: var(--color-bg);
}

.bg-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0;
    animation: float 20s ease-in-out infinite;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(60, 60, 60, 0.4) 0%, transparent 70%);
    top: -10%;
    left: -10%;
    animation: float 25s ease-in-out infinite, pulse 8s ease-in-out infinite;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(80, 80, 80, 0.3) 0%, transparent 70%);
    bottom: -10%;
    right: -10%;
    animation: float 30s ease-in-out infinite reverse, pulse 10s ease-in-out infinite 2s;
}

.shape-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(70, 70, 70, 0.35) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: float 20s ease-in-out infinite, rotate 40s linear infinite;
}

.shape-4 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(90, 90, 90, 0.25) 0%, transparent 70%);
    top: 20%;
    right: 20%;
    animation: float 28s ease-in-out infinite, pulse 12s ease-in-out infinite 4s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
        opacity: 0.6;
    }

    25% {
        transform: translate(30px, -50px);
        opacity: 0.8;
    }

    50% {
        transform: translate(-20px, -30px);
        opacity: 0.5;
    }

    75% {
        transform: translate(40px, 20px);
        opacity: 0.7;
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

@keyframes rotate {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.grain-overlay {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.08;
    background: radial-gradient(ellipse at 20% 30%, rgba(100, 100, 100, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(150, 150, 150, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 40% 80%, rgba(120, 120, 120, 0.1) 0%, transparent 50%),
        url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='3' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
    animation: nebula 20s ease-in-out infinite;
}

@keyframes nebula {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.08;
    }

    25% {
        transform: translate(-2%, 3%) rotate(1deg);
        opacity: 0.12;
    }

    50% {
        transform: translate(3%, -2%) rotate(-1deg);
        opacity: 0.06;
    }

    75% {
        transform: translate(-3%, -3%) rotate(0.5deg);
        opacity: 0.1;
    }
}

#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.container {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.header {
    text-align: center;
    margin-bottom: 4rem;
    opacity: 0;
    animation: fadeInUp 1s var(--transition-smooth) 0.2s forwards;
}

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

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

.title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 300;
    letter-spacing: 0.2em;
    color: var(--color-accent);
    font-family: var(--font-mono);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    position: relative;
    background: linear-gradient(90deg, #ffffff 0%, #808080 50%, #ffffff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

.title-underline {
    height: 1px;
    width: 60%;
    margin: 0 auto 1rem;
    background: linear-gradient(90deg, transparent 0%, var(--color-accent) 50%, transparent 100%);
    opacity: 0.3;
    animation: lineExpand 2s ease-in-out infinite alternate;
}

@keyframes lineExpand {
    0% {
        width: 40%;
        opacity: 0.2;
    }

    100% {
        width: 80%;
        opacity: 0.5;
    }
}

.subtitle {
    font-size: clamp(0.875rem, 2vw, 1.125rem);
    font-family: var(--font-mono);
    color: var(--color-text-muted);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-top: 1rem;
    font-weight: 300;
}

.links-section {
    width: 100%;
    margin-bottom: 4rem;
}

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

.link-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-decoration: none;
    color: var(--color-text);
    overflow: hidden;
    transition: all 0.4s var(--transition-smooth);
    opacity: 0;
    transform: translateX(-50px);
    animation: slideIn 0.6s var(--transition-smooth) forwards;
    backdrop-filter: blur(10px);
}

.link-item:nth-child(1) {
    animation-delay: 0.4s;
}

.link-item:nth-child(2) {
    animation-delay: 0.5s;
}

.link-item:nth-child(3) {
    animation-delay: 0.6s;
}

.link-item:nth-child(4) {
    animation-delay: 0.7s;
}

.link-item:nth-child(5) {
    animation-delay: 0.8s;
}

.link-item:nth-child(6) {
    animation-delay: 0.9s;
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.link-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: left 0.6s var(--transition-smooth);
}

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

.link-item:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(10px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.link-number {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--color-text-muted);
    letter-spacing: 0.2em;
    transition: color 0.3s ease;
}

.link-item:hover .link-number {
    color: var(--color-accent);
}

.link-text {
    flex: 1;
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    margin-left: 2rem;
    transition: transform 0.3s var(--transition-smooth);
}

.link-item:hover .link-text {
    transform: translateX(5px);
}

.link-icon {
    width: 20px;
    height: 20px;
    color: var(--color-text-muted);
    transition: all 0.3s ease;
}

.link-item:hover .link-icon {
    color: var(--color-accent);
    transform: translate(5px, -5px);
}

.link-icon svg {
    width: 100%;
    height: 100%;
}

.footer {
    text-align: center;
    opacity: 0;
    animation: fadeInUp 1s var(--transition-smooth) 1s forwards;
}

.footer-text {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--color-text-muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

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

    .header {
        margin-bottom: 3rem;
    }

    .link-item {
        padding: 1.25rem 1.5rem;
    }

    .link-text {
        font-size: 1.125rem;
        margin-left: 1rem;
    }

    .link-number {
        font-size: 0.65rem;
    }

    /* Disable background animations on mobile */
    .bg-shapes {
        display: none;
    }

    .grain-overlay {
        display: none;
    }

    #particleCanvas {
        display: none;
    }
}

@media (max-width: 480px) {
    .link-item {
        padding: 1rem 1.25rem;
    }

    .link-text {
        font-size: 1rem;
    }

    .link-icon {
        width: 16px;
        height: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.link-item:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 4px;
}

.link-item:focus:not(:focus-visible) {
    outline: none;
}