:root {
    --bg-color: #0a0a0a;
    --text-primary: #f4f4f0;
    --text-secondary: #888888;
    --accent: #2e2e2e;
    
    --font-serif: 'Playfair Display', serif;
    --font-mono: 'Space Mono', monospace;
    --font-sans: 'Inter', sans-serif;
}

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

body, html {
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow-x: hidden;
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 50;
    opacity: 0.03;
    background: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.75" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
}

.bg-animated {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: 0;
    background-color: var(--bg-color);
    pointer-events: none;
}



.cursor-dot, .cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    mix-blend-mode: difference;
}

.cursor-dot {
    width: 5px;
    height: 5px;
    background-color: var(--text-primary);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(244, 244, 240, 0.2);
    transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease;
}

.cursor-outline.hover {
    width: 80px;
    height: 80px;
    background-color: var(--text-primary);
    border-color: transparent;
}


@media (pointer: fine) {
    *, ::before, ::after {
        cursor: none !important;
    }
}

.meta-text {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-content {
    width: 300px;
    max-width: 80%;
    text-align: center;
}

.loader-number {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    letter-spacing: 0.2em;
}

.loader-line-container {
    width: 100%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.loader-line {
    width: 0%;
    height: 100%;
    background-color: var(--text-primary);
}

.main-container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3rem 4rem;
    opacity: 0;
    visibility: hidden;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.header-left {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.status-dot {
    width: 5px;
    height: 5px;
    background-color: var(--text-primary);
    border-radius: 50%;
    animation: pulse 2.5s infinite;
    opacity: 0.8;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.5; }
    50% { transform: scale(1.5); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.5; }
}

.hero {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-top: -2vh;
}

.hero-name-container {
    overflow: hidden;
    padding: 10px 20px;
}

.hero-name {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 11vw, 10rem);
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.03em;
    color: var(--text-primary);
    white-space: nowrap;
}

.char-wrapper {
    display: inline-block;
    overflow: hidden;
    padding-right: 0.05em; 
}

.char {
    position: relative;
    display: inline-block;
    transform: translateY(115%);
}

.char::after {
    content: attr(data-char);
    position: absolute;
    left: 0;
    top: 100%;
    color: var(--text-primary);
}

.hero-subtitle {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-bottom: 2rem;
}

.quote {
    font-family: var(--font-serif);
    font-weight: 400;
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 320px;
    letter-spacing: 0.02em;
}

.links-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-end;
}

.magnetic-link {
    position: relative;
    padding: 0.25rem 0;
    display: inline-block;
    transition: color 0.3s ease;
}

.magnetic-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 1px;
    background-color: var(--text-secondary);
    transition: width 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.magnetic-link:hover {
    color: var(--text-primary);
}

.magnetic-link:hover::after {
    width: 100%;
    background-color: var(--text-primary);
}

.marquee-container {
    position: absolute;
    bottom: 1.5rem;
    left: 0;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    opacity: 0.2;
}

.marquee-content {
    display: inline-block;
    animation: marquee 40s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } 
}

.reveal-fade {
    opacity: 0;
    transform: translateY(15px);
}

@media (max-width: 768px) {
    .main-container {
        padding: 1.5rem 1.25rem;
    }
    
    .header {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        text-align: center;
    }
    
    .header-left {
        align-items: center;
    }
    
    .hero {
        margin-top: 0;
        gap: 1rem;
    }
    
    .hero-name-container {
        padding: 0;
    }
    
    .hero-name {
        font-size: clamp(1.5rem, 10vw, 3rem);
        white-space: nowrap;
    }
    
    .footer {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        padding-bottom: 3.5rem;
        text-align: center;
    }
    
    .links-container {
        align-items: center;
    }

    .quote {
        display: none;
    }
    
    .marquee-container {
        bottom: 0.75rem;
        opacity: 0.15;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .status-dot, .marquee-content {
        animation: none !important;
    }
}
