@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300..700&family=JetBrains+Mono:wght@400;700&display=swap');

:root {
    --bg-color: #000000;
    --accent-color: #D32F2F; /* Blood Red */
    --accent-glow: rgba(211, 47, 47, 0.4);
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --nav-bg: rgba(10, 10, 10, 0.8);
    --card-bg: #0a0a0a;
    --font-main: 'Space Grotesk', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Base & Scroll --- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

* { margin: 0; padding: 0; box-sizing: border-box; cursor: crosshair; }
body { 
    background: radial-gradient(circle at 50% -20%, #1a0505 0%, #000000 70%);
    color: var(--text-primary); 
    font-family: var(--font-main); 
    overflow-x: hidden; 
    line-height: 1.4; 
}

/* Grainy Texture */
.noise { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    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.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.05; 
    pointer-events: none; 
    z-index: 9999; 
    mix-blend-mode: overlay;
}

/* --- Navigation --- */
nav { 
    position: fixed; 
    top: 1.5rem; 
    left: 50%; 
    transform: translateX(-50%); 
    width: 90%; 
    max-width: 600px;
    background: var(--nav-bg); 
    backdrop-filter: blur(12px); 
    padding: 0.6rem 1.2rem; 
    border-radius: 100px; 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    display: flex; 
    justify-content: space-between;
    align-items: center; 
    z-index: 1000; 
}

.nav-links { 
    display: flex; 
    gap: 1.2rem; 
}

.nav-links a { 
    color: var(--text-secondary); 
    text-decoration: none; 
    font-size: 0.8rem; 
    font-weight: 500; 
    transition: var(--transition); 
}
.nav-links a:hover { color: var(--text-primary); }
.say-hi-btn { background: var(--accent-color); color: white; padding: 0.5rem 1.2rem; border-radius: 100px; text-decoration: none; font-size: 0.85rem; font-weight: 600; transition: var(--transition); }
.say-hi-btn:hover { transform: scale(1.05); box-shadow: 0 0 20px var(--accent-glow); }

/* --- Hero Section --- */
.hero { min-height: 100vh; padding: 10rem 8% 5rem; display: flex; flex-direction: column; justify-content: center; position: relative; }
.hero-meta { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-secondary); text-transform: uppercase; margin-bottom: 2rem; }
.dot { color: var(--accent-color); margin-right: 0.5rem; }
h1 { font-size: clamp(3rem, 10vw, 8.5rem); font-weight: 700; line-height: 0.85; letter-spacing: -0.05em; margin-bottom: 2rem; }
h1 .highlight { background: rgba(211, 47, 47, 0.15); padding: 0 0.5rem; border-radius: 8px; color: #eee; }
.accent-text { color: var(--accent-color); }
.hero-description { font-size: clamp(1.1rem, 2vw, 1.5rem); color: var(--text-secondary); max-width: 600px; margin-bottom: 3rem; font-weight: 400; }
.hero-description a { color: var(--text-primary); text-decoration: underline; text-decoration-color: var(--accent-color); text-underline-offset: 4px; }
.hero-btns { display: flex; gap: 1rem; margin-bottom: 5rem; }
.btn-work { background: var(--accent-color); color: white; padding: 1rem 2.2rem; border-radius: 100px; text-decoration: none; font-weight: 600; display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; }
.btn-email { background: transparent; border: 1px solid rgba(255, 255, 255, 0.1); color: var(--text-primary); padding: 1rem 2.2rem; border-radius: 100px; text-decoration: none; font-family: var(--font-mono); font-size: 0.85rem; }

/* Marquee */
.marquee-container { width: 100%; padding: 2rem 0; border-top: 1px solid rgba(255, 255, 255, 0.05); overflow: hidden; position: absolute; bottom: 0; left: 0; }
.marquee { display: flex; gap: 4rem; white-space: nowrap; animation: scroll 40s linear infinite; }
.marquee span { font-family: var(--font-mono); font-size: 0.85rem; color: #333; display: flex; align-items: center; gap: 1rem; text-transform: uppercase; }

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

/* --- Horizontal Projects --- */
.projects-horizontal-container { 
    position: relative; 
    width: 100%; 
    overflow: hidden;
    background: var(--bg-color);
}

.sticky-wrapper { 
    position: relative;
    width: 100%; 
    height: 100vh; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    padding: 0 8%; 
}

.projects-header { 
    margin-bottom: 4vh; 
    z-index: 10;
}

.projects-header h2 {
    font-size: clamp(2.5rem, 5vw, 6rem);
    line-height: 0.9;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.muted { 
    color: #444; 
    display: block;
    margin-top: 0.5rem;
}

.projects-slider { 
    display: flex; 
    flex-wrap: nowrap; 
    gap: 6vw; 
    will-change: transform; 
    align-items: center;
}
.project-slide { min-width: 600px; height: 58vh; }
.slide-card { background: #080808; border: 1px solid rgba(255, 255, 255, 0.03); border-radius: 32px; padding: 3rem 3.5rem; transition: var(--transition); height: 100%; display: flex; flex-direction: column; justify-content: flex-start; }
.slide-card:hover { border-color: var(--accent-color); background: #0c0c0c; transform: translateY(-10px) scale(1.02); }

.card-meta { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-secondary); margin-bottom: 2rem; }
.slide-card h3 { font-size: 3rem; line-height: 1; margin-bottom: 0.8rem; font-weight: 700; letter-spacing: -0.02em; }
.tagline { font-size: 1.2rem; color: var(--text-secondary); margin-bottom: 2rem; }

.card-img-container { width: 100%; aspect-ratio: 16/8; background: #000; border-radius: 12px; margin-bottom: 2rem; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.05); }
.card-img-container img { width: 100%; height: 100%; object-fit: cover; opacity: 0.4; filter: grayscale(1); transition: var(--transition); }
.slide-card:hover .card-img-container img { opacity: 0.75; filter: grayscale(0) sepia(0.5) hue-rotate(-50deg) contrast(1.1); }

.card-desc { color: #888; font-size: 1.1rem; margin-bottom: 2.5rem; line-height: 1.6; }
.card-tags { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: auto; }
.card-tags span { font-family: var(--font-mono); font-size: 0.7rem; color: #555; background: #1a1a1a; padding: 0.3rem 0.8rem; border-radius: 5px; }

.card-link { font-family: var(--font-mono); font-size: 0.9rem; text-decoration: none; color: var(--text-primary); display: flex; align-items: center; gap: 0.5rem; border-bottom: 1px solid #222; padding-bottom: 0.5rem; width: fit-content; transition: var(--transition); }
.card-link:hover { color: var(--accent-color); border-color: var(--accent-color); }

/* --- Stack Section --- */
.stack { padding: 10rem 8%; }
.stack h2 { font-size: clamp(2.5rem, 6vw, 6.5rem); line-height: 0.9; margin-bottom: 5rem; letter-spacing: -0.04em; }

.stack-container { display: grid; grid-template-columns: 1.5fr 1fr; gap: 6rem; align-items: start; }
.stack-bars { display: flex; flex-direction: column; gap: 2.5rem; }
.skill-bar { width: 100%; }
.skill-info { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 1.1rem; margin-bottom: 0.8rem; }
.bar-outer { height: 2px; width: 100%; background: #1a1a1a; position: relative; }
.bar-inner { height: 100%; background: var(--accent-color); position: absolute; left: 0; top: 0; box-shadow: 0 0 15px var(--accent-glow); }

.stack-categories { display: flex; flex-direction: column; gap: 1.5rem; }
.stack-card { background: #0c0c0c; border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 16px; padding: 2rem; }
.stack-card .card-title { font-family: var(--font-mono); font-size: 0.75rem; color: var(--accent-color); display: block; margin-bottom: 1.5rem; letter-spacing: 1px; }
.tags { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.tags span { font-family: var(--font-mono); font-size: 0.85rem; color: var(--text-secondary); background: #1a1a1a; padding: 0.4rem 1rem; border-radius: 50px; border: 1px solid rgba(255, 255, 255, 0.05); }

/* --- Timeline Section --- */
.timeline { padding: 10rem 8%; background: #020202; }
.timeline h2 { font-size: clamp(2.5rem, 6vw, 6.5rem); line-height: 0.9; margin-bottom: 6rem; letter-spacing: -0.04em; }

.timeline-list { max-width: 900px; margin: 0 auto; }
.timeline-item { display: grid; grid-template-columns: 150px 1fr; gap: 4rem; padding-bottom: 4rem; border-bottom: 1px solid rgba(255, 255, 255, 0.05); margin-bottom: 4rem; position: relative; }
.timeline-item:last-child { border-bottom: none; margin-bottom: 0; }

.timeline-item .year { font-size: 3rem; font-weight: 700; color: var(--accent-color); line-height: 1; }
.timeline-item h3 { font-size: 2rem; margin-bottom: 1rem; color: #eee; }
.timeline-item p { color: var(--text-secondary); font-size: 1.15rem; }
.current .year { color: #fff; text-shadow: 0 0 20px var(--accent-glow); }

/* --- Contact & Footer --- */
.contact { padding: 10rem 8%; background: #000; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.contact-header h2 { font-size: clamp(2.5rem, 6vw, 6.5rem); line-height: 0.9; margin-bottom: 1.5rem; letter-spacing: -0.04em; }
.accent-italic { color: var(--accent-color); font-style: italic; font-family: var(--font-main); font-weight: 300; }
.contact-header p { color: var(--text-secondary); font-size: 1.2rem; margin-bottom: 3rem; }
.contact-btns { display: flex; gap: 1rem; }
.btn-discord { background: var(--accent-color); color: white; padding: 1.1rem 2.8rem; border-radius: 100px; text-decoration: none; font-weight: 600; display: flex; align-items: center; gap: 0.8rem; font-size: 0.95rem; }
.btn-email-pill { background: transparent; border: 1px solid rgba(255, 255, 255, 0.1); color: var(--text-primary); padding: 1.1rem 2.8rem; border-radius: 100px; text-decoration: none; font-family: var(--font-mono); font-size: 0.9rem; display: flex; align-items: center; gap: 0.8rem; }

.social-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid rgba(255, 255, 255, 0.05); background: #050505; margin-top: 6rem; }
.social-card { padding: 3rem 2.5rem; border-right: 1px solid rgba(255, 255, 255, 0.05); border-bottom: 1px solid rgba(255, 255, 255, 0.05); text-decoration: none; display: flex; flex-direction: column; position: relative; transition: var(--transition); }
.social-card:hover { background: #111; }
.social-card:nth-child(3n) { border-right: none; }
.social-label { font-family: var(--font-mono); font-size: 0.7rem; color: #555; margin-bottom: 1rem; }
.social-value { font-size: 1.8rem; font-weight: 600; color: #fff; }
.arrow { position: absolute; top: 2.5rem; right: 2.5rem; font-size: 0.8rem; color: #333; transition: var(--transition); }
.social-card:hover .arrow { color: var(--accent-color); transform: translate(3px, -3px); }

footer { padding: 4rem 8%; border-top: 1px solid rgba(255, 255, 255, 0.05); display: flex; justify-content: space-between; color: #444; font-size: 0.85rem; font-family: var(--font-mono); }
.status { color: #4CAF50; }

/* Rotating Graphic */
.rotating-stamp {
    position: fixed;
    bottom: 3rem;
    right: 3rem;
    width: 120px;
    height: 120px;
    z-index: 100;
    pointer-events: none;
}

.stamp-inner {
    width: 100%;
    height: 100%;
    position: relative;
    animation: rotate 15s linear infinite;
}

.stamp-text {
    position: absolute;
    width: 100%;
    height: 100%;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    fill: #333;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.flower-symbol {
    display: inline-block;
    color: var(--accent-color);
    font-size: 1.2em;
    animation: rotate 8s linear infinite;
    vertical-align: middle;
    margin: 0 10px;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hi-anim {
    display: inline-block;
    color: var(--accent-color);
    transition: var(--transition);
}

/* Labels */
.section-label { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-secondary); text-transform: uppercase; margin-bottom: 2.5rem; display: block; letter-spacing: 1px; }
.dot-accent { color: var(--accent-color); margin-right: 0.5rem; }

/* --- Responsive --- */
@media (max-width: 1024px) {
    h1 { font-size: clamp(3rem, 12vw, 5rem); }
    
    .rotating-stamp { display: none; }
    .projects-horizontal-container { height: auto !important; overflow: visible; }
    .sticky-wrapper { height: auto !important; padding: 10rem 6% 5rem; justify-content: flex-start; }
    .projects-slider { flex-direction: column; width: 100% !important; transform: none !important; gap: 4rem; }
    .project-slide { min-width: 100%; width: 100%; height: auto; }
    .slide-card { padding: 2.5rem; border-radius: 20px; }
    .slide-card h3 { font-size: 2.5rem; }

    .stack-container { grid-template-columns: 1fr; gap: 4rem; }
    
    .social-grid { grid-template-columns: repeat(2, 1fr); }
    .social-card { padding: 2rem 1.5rem; }
    .social-card:nth-child(2n) { border-right: none; }
    .social-card:nth-child(3n) { border-right: 1px solid rgba(255, 255, 255, 0.05); }
}

@media (max-width: 768px) {
    nav { width: 95%; padding: 0.5rem 1rem; }
    .nav-links { display: none; } /* Hide links on very small screens for simplicity */
    
    .hero { padding: 12rem 6% 5rem; }
    .hero-meta { flex-direction: column; gap: 0.5rem; }
    
    .btn-work, .btn-email, .btn-discord, .btn-email-pill { 
        width: 100%; 
        justify-content: center; 
        padding: 1rem;
    }
    .hero-btns, .contact-btns { flex-direction: column; width: 100%; }
    
    .timeline-item { grid-template-columns: 1fr; gap: 1rem; padding-bottom: 3rem; margin-bottom: 3rem; }
    .timeline-item .year { font-size: 2rem; }
    
    .social-grid { grid-template-columns: 1fr; }
    .social-card { border-right: none !important; }
    .social-value { font-size: 1.4rem; }
    
    footer { flex-direction: column; gap: 1rem; text-align: center; }
}

