@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg:       #000000;
    --bg-card:  #0d0d0d;
    --bg-card2: #111111;
    --border:   rgba(255,255,255,0.08);
    --border-hover: rgba(255,255,255,0.2);
    --white:    #ffffff;
    --gray:     #888888;
    --gray-lt:  #bbbbbb;
    --radius:   12px;
    --transition: 0.3s ease;
}

html { scroll-behavior: smooth; }
body {
    font-family: 'Space Grotesk', sans-serif;
    background: var(--bg);
    color: var(--white);
    overflow-x: hidden;
    line-height: 1.6;
}
a { text-decoration: none; color: inherit; }

/* ── Dots canvas ── */
#dotsCanvas {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

/* ── Noise overlay ── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    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)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

/* ── Nav ── */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 6%;
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition), background var(--transition);
}
nav.scrolled {
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(12px);
    border-color: var(--border);
}
.nav-logo {
    font-family: 'Space Mono', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}
.nav-logo span { color: var(--gray); }
.nav-logo-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    margin-right: 8px;
    vertical-align: middle;
    position: relative;
    top: -1px;
}
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
    font-size: 0.88rem;
    color: var(--gray);
    font-weight: 500;
    transition: color var(--transition);
    letter-spacing: 0.3px;
}
.nav-links a:hover { color: var(--white); }
.nav-cta {
    background: var(--white) !important;
    color: var(--bg) !important;
    padding: 9px 20px !important;
    border-radius: 6px !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    transition: opacity var(--transition) !important;
}
.nav-cta:hover { opacity: 0.85 !important; }

/* ── Hero ── */
.hero {
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 120px 6% 100px;
    position: relative;
    overflow: hidden;
}
.hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}
.hero-tag {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    color: var(--gray);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 28px;
    opacity: 0;
    animation: fadeUp 0.6s ease 0.2s forwards;
}
.hero-name {
    font-family: 'Space Mono', monospace;
    font-size: clamp(3.5rem, 10vw, 9rem);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -3px;
    margin-bottom: 32px;
    opacity: 0;
    animation: fadeUp 0.7s ease 0.35s forwards;
}
.hero-name .dim { color: rgba(255,255,255,0.18); }
.hero-sub {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--gray-lt);
    max-width: 560px;
    line-height: 1.65;
    margin-bottom: 48px;
    font-weight: 400;
    opacity: 0;
    animation: fadeUp 0.7s ease 0.5s forwards;
}
.hero-sub strong { color: var(--white); font-weight: 600; }
.hero-btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.7s ease 0.65s forwards;
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform var(--transition), opacity var(--transition), box-shadow var(--transition);
    border: none;
    font-family: 'Space Grotesk', sans-serif;
}
.btn-white { background: var(--white); color: var(--bg); }
.btn-white:hover { opacity: 0.88; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(255,255,255,0.15); }
.btn-outline { background: transparent; color: var(--white); border: 1px solid var(--border-hover); }
.btn-outline:hover { border-color: var(--white); transform: translateY(-2px); }
.hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    width: 100%;
}
.hero-left { flex: 1; }
.hero-arrow {
    flex-shrink: 0;
    width: 120px;
    opacity: 0.025;
    animation: fadeUp 0.7s ease 0.7s both;
    filter: blur(0.5px);
    align-self: center;
}
.hero-arrow svg { width: 100%; height: 100%; }
@media (max-width: 860px) { .hero-arrow { display: none; } }
.hero-right {
    flex-shrink: 0;
    width: 420px;
    opacity: 0;
    animation: fadeUp 0.7s ease 0.8s forwards;
}
.discord-start-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.68rem;
    color: var(--gray);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 12px;
    opacity: 0;
    animation: fadeUp 0.7s ease 0.75s forwards;
}

.hero-right {
    position: relative;
}
.hero-right::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.07) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
    animation: discordPulse 4s ease-in-out infinite;
}
@keyframes discordPulse {
    0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
    50%       { opacity: 1;   transform: translate(-50%, -50%) scale(1.08); }
}
.discord-card {
    position: relative;
    z-index: 1;
}

.discord-card {
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 14px;
    background: #0d0d0d;
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    transition: border-color var(--transition), box-shadow var(--transition);
    box-shadow: 0 0 40px rgba(255,255,255,0.04);
}
.discord-card:hover {
    border-color: rgba(255,255,255,0.5);
    box-shadow: 0 0 60px rgba(255,255,255,0.08);
}
.discord-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.discord-icon { font-size: 1.8rem; }
.discord-logo { width: 44px; height: 44px; color: #5865F2; }
.discord-live {
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    color: #4ade80;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.discord-card h3 { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.5px; }
.discord-card > p { font-size: 0.88rem; color: var(--gray-lt); line-height: 1.7; }
.discord-perks {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.discord-perks li {
    font-size: 0.85rem;
    color: var(--gray-lt);
    display: flex;
    align-items: center;
    gap: 10px;
}
.discord-perks li::before {
    content: '→';
    color: var(--white);
    font-weight: 700;
    font-family: 'Space Mono', monospace;
}
.discord-btn {
    width: 100%;
    justify-content: center;
    padding: 15px !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
}

@media (max-width: 860px) {
    .hero-inner { flex-direction: column; }
    .hero-right { width: 100%; max-width: 400px; }
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 6%;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    color: var(--gray);
    letter-spacing: 2px;
    opacity: 0;
    animation: fadeUp 0.7s ease 1s forwards;
}
.scroll-line {
    width: 40px;
    height: 1px;
    background: var(--gray);
    animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
    0%, 100% { width: 40px; opacity: 1; }
    50% { width: 20px; opacity: 0.4; }
}

/* ── Section base ── */
section { padding: 100px 6%; position: relative; z-index: 1; }
.section-eyebrow {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    color: var(--gray);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.section-title { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 700; line-height: 1.15; margin-bottom: 16px; }
.section-sub { font-size: 1rem; color: var(--gray-lt); max-width: 520px; }
.section-header { margin-bottom: 64px; }

/* ── Divider ── */
.divider { height: 1px; background: var(--border); margin: 0 6%; }

/* ── Why Me ── */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2px;
}
.why-card {
    background: var(--bg-card);
    padding: 40px 32px;
    border: 1px solid var(--border);
    transition: border-color var(--transition), background var(--transition);
    cursor: default;
}
.why-card:hover { border-color: var(--border-hover); background: var(--bg-card2); }
.why-num {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    color: var(--gray);
    letter-spacing: 2px;
    margin-bottom: 20px;
}
.why-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; line-height: 1.3; }
.why-card p { font-size: 0.88rem; color: var(--gray-lt); line-height: 1.65; }

/* ── Marquee ── */
.marquee-wrap {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
}
.marquee-track {
    overflow: hidden;
}
.marquee-inner {
    display: flex;
    gap: 2px;
    width: max-content;
    animation: marqueeScroll 28s linear infinite;
}
.marquee-inner:hover { animation-play-state: paused; }
@keyframes marqueeScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ── Projects ── */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2px;
}
.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: border-color var(--transition), transform var(--transition);
    position: relative;
    overflow: hidden;
    width: 380px;
    flex-shrink: 0;
}
.project-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}
.project-card:hover::before { transform: translateX(100%); }
.project-card:hover { border-color: var(--border-hover); transform: translateY(-4px); }
.project-tag {
    font-family: 'Space Mono', monospace;
    font-size: 0.68rem;
    color: var(--gray);
    letter-spacing: 2px;
    text-transform: uppercase;
}
.project-card h3 { font-size: 1.3rem; font-weight: 700; line-height: 1.2; }
.project-card p { font-size: 0.9rem; color: var(--gray-lt); line-height: 1.7; flex: 1; }
.project-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}
.stack-tag {
    font-family: 'Space Mono', monospace;
    font-size: 0.68rem;
    color: var(--gray);
    border: 1px solid var(--border);
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

/* ── Client Work ── */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.client-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: border-color var(--transition);
}
.client-card:hover { border-color: var(--border-hover); }
.client-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.client-card-top h3 {
    font-size: 1.1rem;
    font-weight: 600;
}
.client-card-top h3 a {
    color: var(--white);
    text-decoration: none;
    transition: color var(--transition);
}
.client-card-top h3 a:hover { color: var(--gray-lt); }
.client-badge {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    color: var(--gray);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 3px 8px;
    white-space: nowrap;
}
.client-bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.client-bullets li {
    font-size: 0.88rem;
    color: var(--gray-lt);
    padding-left: 16px;
    position: relative;
}
.client-bullets li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--gray);
}

/* ── Reviews ── */
.reviews-section { background: var(--bg-card); }
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
}
.review-card {
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 36px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: border-color var(--transition);
    flex-shrink: 0;
}
.review-card:hover { border-color: var(--border-hover); }
.review-stars { color: var(--white); font-size: 0.8rem; letter-spacing: 3px; }
.review-card blockquote {
    font-size: 0.92rem;
    color: var(--gray-lt);
    line-height: 1.75;
    font-style: italic;
    flex: 1;
}
.review-author { display: flex; align-items: center; gap: 12px; }
.review-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: #1a1a1a;
    border: 1px solid var(--border-hover);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--gray-lt);
}
.review-avatar-img { padding: 0; overflow: hidden; }
.review-avatar-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.review-name { font-size: 0.88rem; font-weight: 600; }
.review-handle { font-size: 0.78rem; color: var(--gray); font-family: 'Space Mono', monospace; }

/* ── CTA ── */
.cta-section {
    text-align: center;
    padding: 120px 6%;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
    pointer-events: none;
}
.cta-section h2 {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1px;
}
.cta-section p { font-size: 1.05rem; color: var(--gray-lt); margin-bottom: 48px; max-width: 500px; margin-left: auto; margin-right: auto; }
.cta-contacts {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    margin-top: 32px;
}
.cta-contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--gray);
    border: 1px solid var(--border);
    padding: 12px 20px;
    border-radius: 8px;
    transition: color var(--transition), border-color var(--transition);
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
}
.cta-contact-link:hover { color: var(--white); border-color: var(--border-hover); }

/* ── Footer ── */
footer {
    border-top: 1px solid var(--border);
    padding: 32px 6%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
footer p { font-size: 0.8rem; color: var(--gray); font-family: 'Space Mono', monospace; }

/* ── Scroll Animations ── */
.fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up-d1 { transition-delay: 0.1s; }
.fade-up-d2 { transition-delay: 0.2s; }
.fade-up-d3 { transition-delay: 0.3s; }

/* ── Keyframes ── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ── */
@media (max-width: 680px) {
    nav { padding: 16px 5%; }
    .nav-links { display: none; }
    section { padding: 72px 5%; }
    .hero { padding: 100px 5% 60px; }
    .hero-name { letter-spacing: -2px; }
    footer { flex-direction: column; text-align: center; }
}
