/* === VOYTECH.ETH - Dark Hacker Aesthetic === */

:root {
    --bg-primary: #0a0a0b;
    --bg-secondary: #111113;
    --bg-tertiary: #18181b;

    --text-primary: #fafafa;
    --text-secondary: #a1a1aa;
    --text-muted: #52525b;

    --accent-primary: #22d3ee;
    --accent-secondary: #06b6d4;
    --accent-glow: rgba(34, 211, 238, 0.15);
    --accent-dim: rgba(34, 211, 238, 0.5);

    --border-color: rgba(255, 255, 255, 0.06);
    --border-accent: rgba(34, 211, 238, 0.3);

    --font-display: 'JetBrains Mono', monospace;
    --font-body: 'Outfit', sans-serif;

    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

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

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

/* Custom cursor */
.terminal-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 1px solid var(--accent-primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease, opacity 0.2s ease;
    mix-blend-mode: difference;
}

.terminal-cursor::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 4px;
    background: var(--accent-primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

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

/* Grid overlay */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 50% at 50% 0%, black 30%, transparent 70%);
}

/* Container */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
}

/* === HERO SECTION === */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 0;
    position: relative;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-bottom: 4rem;
}

/* Avatar */
.avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.avatar-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.1); }
}

.avatar-frame {
    width: 140px;
    height: 140px;
    border: 2px solid var(--border-accent);
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
    animation: fadeInScale 0.8s var(--ease-out-expo) forwards;
    opacity: 0;
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.avatar-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid rgba(255,255,255,0.1);
    pointer-events: none;
}

.avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: contrast(1.05) saturate(0.95);
}

.avatar-label {
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-display);
    font-size: 0.65rem;
    color: var(--accent-primary);
    background: var(--bg-primary);
    padding: 2px 10px;
    letter-spacing: 0.2em;
    border: 1px solid var(--border-accent);
}

.blink {
    animation: blink 1s steps(1) infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Hero text */
.hero-text {
    flex: 1;
}

.name-wrapper {
    overflow: hidden;
}

.name {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 1rem;
}

.char {
    display: inline-block;
    animation: charReveal 0.6s var(--ease-out-expo) forwards;
    animation-delay: calc(var(--i) * 0.05s + 0.3s);
    opacity: 0;
    transform: translateY(100%);
}

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

.char.dot {
    color: var(--text-muted);
}

.char.eth {
    color: var(--accent-primary);
    text-shadow: 0 0 30px var(--accent-glow);
}

.tagline {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--text-secondary);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    animation: fadeIn 0.8s ease 0.8s forwards;
    opacity: 0;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.tag-word {
    animation: tagSlide 0.5s var(--ease-out-expo) forwards;
    animation-delay: calc(var(--d) * 0.1s + 0.9s);
    opacity: 0;
    transform: translateX(-10px);
}

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

.tag-sep {
    color: var(--text-muted);
    font-family: var(--font-display);
    font-size: 0.8rem;
}

/* Stats */
.stats {
    display: flex;
    gap: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.stat {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s var(--ease-out-expo);
    transition-delay: var(--delay, 0s);
}

.stat.visible {
    opacity: 1;
    transform: translateY(0);
}

.stat-value {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    display: block;
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* === SECTION STYLES === */
section {
    padding: 5rem 0;
    position: relative;
}

.section-marker {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.marker-line {
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, var(--accent-primary), transparent);
}

.marker-text {
    font-family: var(--font-display);
    font-size: 0.75rem;
    color: var(--accent-primary);
    letter-spacing: 0.2em;
    font-weight: 500;
}

/* === INTRO SECTION === */
.intro-content {
    max-width: 700px;
}

.intro-text {
    font-size: 1.35rem;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.intro-text em {
    color: var(--text-primary);
    font-style: normal;
    font-weight: 400;
}

.intro-text a {
    color: var(--accent-primary);
    text-decoration: none;
    position: relative;
    font-weight: 400;
}

.intro-text a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--accent-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s var(--ease-out-expo);
}

.intro-text a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* === TIMELINE / BIO === */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, var(--accent-primary), var(--border-color) 30%, var(--border-color) 70%, transparent);
}

.timeline-item {
    position: relative;
    padding-bottom: 2.5rem;
    padding-left: 2rem;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.6s var(--ease-out-expo);
    transition-delay: calc(var(--i) * 0.1s);
}

.timeline-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 0.5rem;
    width: 8px;
    height: 8px;
    background: var(--bg-primary);
    border: 2px solid var(--accent-dim);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.timeline-item:hover::before {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px var(--accent-glow);
}

.timeline-marker {
    margin-bottom: 0.5rem;
}

.year {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-primary);
    background: var(--accent-glow);
    padding: 3px 10px;
    border-radius: 2px;
}

.timeline-content p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.timeline-content strong {
    color: var(--text-primary);
    font-weight: 500;
}

/* === PROJECTS === */
.project-grid {
    display: grid;
    gap: 1rem;
}

.project-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    text-decoration: none;
    transition: all 0.4s var(--ease-out-expo);
    opacity: 0;
    transform: translateY(20px);
}

.project-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition-delay: calc(var(--i) * 0.1s);
}

.project-card:hover {
    background: var(--bg-tertiary);
    border-color: var(--border-accent);
    transform: translateX(8px);
}

.project-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-glow);
    border: 1px solid var(--border-accent);
    flex-shrink: 0;
}

.project-icon svg {
    width: 24px;
    height: 24px;
    color: var(--accent-primary);
}

.project-info {
    flex: 1;
}

.project-info h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.project-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.project-arrow {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: all 0.3s var(--ease-out-expo);
}

.project-card:hover .project-arrow {
    color: var(--accent-primary);
    transform: translateX(5px);
}

/* === FOOTER === */
.footer {
    padding: 4rem 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s var(--ease-out-expo);
}

.social-link:hover {
    background: var(--bg-tertiary);
    border-color: var(--border-accent);
    color: var(--text-primary);
}

.social-link svg {
    width: 18px;
    height: 18px;
}

.social-link:hover svg {
    color: var(--accent-primary);
}

.footer-text {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.separator {
    color: var(--border-color);
}

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

.status-dot {
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    animation: statusPulse 2s ease infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    body {
        cursor: auto;
    }

    .terminal-cursor {
        display: none;
    }

    .container {
        padding: 0 1.5rem;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .avatar-frame {
        width: 120px;
        height: 120px;
    }

    .name {
        font-size: 2.5rem;
    }

    .tagline {
        justify-content: center;
        font-size: 1rem;
    }

    .stats {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .stat-value {
        font-size: 2rem;
    }

    .timeline {
        padding-left: 1.5rem;
    }

    .timeline-item {
        padding-left: 1.5rem;
    }

    .intro-text {
        font-size: 1.15rem;
    }

    .social-links {
        flex-direction: column;
        align-items: center;
    }

    .footer-text {
        flex-direction: column;
        gap: 0.5rem;
    }

    .separator {
        display: none;
    }
}

@media (max-width: 480px) {
    .name {
        font-size: 2rem;
    }

    .tag-sep {
        display: none;
    }

    .tagline {
        flex-direction: column;
        gap: 0.25rem;
    }
}

/* Hover states for links - restore cursor */
a, button {
    cursor: pointer;
}
