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

:root {
    --bg: #080b10;
    --bg2: #0d1117;
    --surface: rgba(255, 255, 255, 0.04);
    --border: rgba(255, 255, 255, 0.08);
    --text: #e8eaf0;
    --muted: #6b7280;
    --accent: #6ee7b7;
    --accent2: #818cf8;
    --accent3: #f472b6;
    --glow: rgba(110, 231, 183, 0.15);
    --glow2: rgba(129, 140, 248, 0.12);
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: "DM Sans", sans-serif;
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
}
.hidden-block {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
/* ─── Background canvas ─── */
#bg-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* ─── Noise overlay ─── */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1;
    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='1'/%3E%3C/svg%3E");
    opacity: 0.025;
    pointer-events: none;
}

/* ─── Layout ─── */
.wrapper {
    position: relative;
    z-index: 2;
}

section {
    padding: 100px 24px;
}
.container {
    max-width: 900px;
    margin: 0 auto;
}

/* ─── Nav ─── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(8, 11, 16, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-logo {
    font-family: "Syne", sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: -0.03em;
    color: var(--text);
    text-decoration: none;
}

.nav-logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}
.nav-links a {
    text-decoration: none;
    color: var(--muted);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: color 0.2s;
}
.nav-links a:hover {
    color: var(--text);
}

/* ─── Hero ─── */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-inner {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 28px;
    opacity: 0;
    animation: fadeUp 0.7s ease 0.2s forwards;
}

.hero-eyebrow::before {
    content: "";
    display: block;
    width: 24px;
    height: 1px;
    background: var(--accent);
}

.hero-name {
    width: 100%;
    font-family: "Syne", sans-serif;
    font-size: clamp(3.5rem, 9vw, 8rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.04em;
    color: #fff;
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.35s forwards;
}

.hero-name .line2 {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 60%, var(--accent3) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--muted);
    max-width: 560px;
    margin-bottom: 48px;
    line-height: 1.7;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.5s forwards;
}

.hero-sub strong {
    color: var(--text);
    font-weight: 500;
}

.hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.65s forwards;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 26px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent);
    color: #080b10;
}
.btn-primary:hover {
    background: #a7f3d0;
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(110, 231, 183, 0.35);
}

.btn-glass {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
}
.btn-glass:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* ─── Scroll indicator ─── */
.scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeIn 1s ease 1.2s forwards;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--muted), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

/* ─── Divider ─── */
.divider {
    width: 100%;
    height: 1px;
    background: var(--border);
    margin: 0 auto;
    max-width: 900px;
}

/* ─── About ─── */
#about .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.section-label {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 20px;
}

.section-title {
    font-family: "Syne", sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #fff;
    margin-bottom: 24px;
}

.about-text {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-text strong {
    color: var(--text);
    font-weight: 500;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 40px;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px 20px;
    transition:
        border-color 0.25s,
        transform 0.25s;
}

.stat-card:hover {
    border-color: rgba(110, 231, 183, 0.3);
    transform: translateY(-3px);
}

.stat-number {
    font-family: "Syne", sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--muted);
    font-weight: 500;
}

.about-visual {
    position: relative;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-orb {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(
        circle at 40% 40%,
        rgba(110, 231, 183, 0.2),
        rgba(129, 140, 248, 0.15),
        transparent 70%
    );
    border: 1px solid rgba(110, 231, 183, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: orbPulse 4s ease-in-out infinite;
}

.about-orb::before {
    content: "";
    position: absolute;
    inset: 20px;
    border-radius: 50%;
    border: 1px solid rgba(110, 231, 183, 0.1);
}

.about-orb-inner {
    font-family: "Syne", sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    color: #fff;
    line-height: 1.3;
}

.about-orb-inner span {
    display: block;
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 4px;
}

/* ─── Social / Cards ─── */
#social {
    padding: 80px 24px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 48px;
}

.social-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px 28px;
    text-decoration: none;
    color: var(--text);
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    overflow: hidden;
    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-card::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.3s;
}

.social-card:hover {
    transform: translateY(-6px);
}

.social-card:hover::before {
    opacity: 1;
}

.social-card.tg {
    --card-accent: #29b6f6;
}
.social-card.tg::before {
    background: radial-gradient(circle at top left, rgba(41, 182, 246, 0.12), transparent 60%);
}
.social-card.tg:hover {
    border-color: rgba(41, 182, 246, 0.35);
    box-shadow: 0 20px 60px rgba(41, 182, 246, 0.12);
}

.social-card.ig {
    --card-accent: #f472b6;
}
.social-card.ig::before {
    background: radial-gradient(circle at top left, rgba(244, 114, 182, 0.12), transparent 60%);
}
.social-card.ig:hover {
    border-color: rgba(244, 114, 182, 0.35);
    box-shadow: 0 20px 60px rgba(244, 114, 182, 0.12);
}

.social-card.gh {
    --card-accent: #c0c0c0;
}
.social-card.gh::before {
    background: radial-gradient(circle at top left, rgba(192, 192, 192, 0.1), transparent 60%);
}
.social-card.gh:hover {
    border-color: rgba(192, 192, 192, 0.25);
    box-shadow: 0 20px 60px rgba(192, 192, 192, 0.08);
}

.social-card.li {
    --card-accent: #60a5fa;
}
.social-card.li::before {
    background: radial-gradient(circle at top left, rgba(96, 165, 250, 0.12), transparent 60%);
}
.social-card.li:hover {
    border-color: rgba(96, 165, 250, 0.35);
    box-shadow: 0 20px 60px rgba(96, 165, 250, 0.12);
}

.card-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--card-accent);
    transition: background 0.3s;
}

.social-card:hover .card-icon {
    background: rgba(255, 255, 255, 0.09);
}

.card-icon svg {
    width: 22px;
    height: 22px;
}

.card-name {
    font-family: "Syne", sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

.card-handle {
    font-size: 0.82rem;
    color: var(--muted);
    margin-top: 4px;
}

.card-arrow {
    margin-top: auto;
    align-self: flex-end;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    transition:
        background 0.2s,
        color 0.2s,
        transform 0.2s;
}

.social-card:hover .card-arrow {
    background: var(--card-accent);
    color: #080b10;
    border-color: var(--card-accent);
    transform: rotate(-45deg);
}

/* ─── Tech stack ─── */
#stack {
    padding: 60px 24px 80px;
}

.stack-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 36px;
}

.stack-pill {
    padding: 8px 18px;
    border-radius: 100px;
    border: 1px solid var(--border);
    font-size: 0.82rem;
    color: var(--muted);
    background: var(--surface);
    transition: all 0.2s;
    cursor: default;
}

.stack-pill:hover {
    border-color: rgba(110, 231, 183, 0.3);
    color: var(--accent);
    background: rgba(110, 231, 183, 0.06);
}

/* ─── Footer ─── */
footer {
    border-top: 1px solid var(--border);
    padding: 40px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.footer-logo {
    font-family: "Syne", sans-serif;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.footer-logo span {
    color: var(--accent);
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--muted);
}

.footer-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--muted);
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    animation: statusPulse 2s ease-in-out infinite;
}

/* ─── Animations ─── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes scrollPulse {
    0%,
    100% {
        transform: scaleY(1);
        opacity: 0.5;
    }
    50% {
        transform: scaleY(0.6);
        opacity: 1;
    }
}

@keyframes orbPulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.04);
    }
}

@keyframes statusPulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(110, 231, 183, 0.6);
    }
    50% {
        box-shadow: 0 0 0 5px rgba(110, 231, 183, 0);
    }
}

/* ─── Scroll-reveal ─── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}
.reveal.visible {
    opacity: 1;
    transform: none;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
    nav {
        padding: 16px 20px;
    }
    .nav-links {
        display: none;
    }
    #hero {
        padding: 100px 20px 60px;
    }
    #about .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .about-visual {
        height: 200px;
    }
    .about-orb {
        width: 180px;
        height: 180px;
    }
    footer {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

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