:root {
    --bg-primary:   #0a192f;
    --bg-secondary: #112240;
    --bg-card:      #0d1b35;
    --accent:       #64ffda;
    --text-bright:  #e6f1ff;
    --text-muted:   #8892b0;
    --border:       rgba(100, 255, 218, 0.12);
}

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

html { scroll-behavior: smooth; }

body {
    background: var(--bg-primary);
    color: var(--text-bright);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: #1d3a6e; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ── Navbar ── */
.navbar {
    background: rgba(10, 25, 47, 0.94) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0.9rem 0;
    transition: box-shadow 0.3s;
}
.navbar.scrolled { box-shadow: 0 8px 32px rgba(0,0,0,0.35); }

.navbar-brand {
    font-family: 'Fira Code', monospace;
    color: var(--accent) !important;
    font-size: 1.3rem;
    letter-spacing: 0.05em;
}

.nav-link {
    color: var(--text-bright) !important;
    font-size: 0.85rem;
    padding: 0.45rem 0.9rem !important;
    transition: color 0.25s;
}
.nav-link:hover, .nav-link.active { color: var(--accent) !important; }

.navbar-toggler { border-color: var(--accent); }
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%2364ffda' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ── Hero ── */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: radial-gradient(ellipse at 70% 50%, rgba(29, 58, 110, 0.35) 0%, transparent 65%),
                linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.hero-tag {
    font-family: 'Fira Code', monospace;
    color: var(--accent);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.hero-name {
    font-size: clamp(2.4rem, 6vw, 4.8rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.05;
    margin-bottom: 0.5rem;
}

.hero-role {
    font-size: clamp(1.4rem, 3.5vw, 2.8rem);
    font-weight: 600;
    color: var(--text-muted);
    min-height: 3.5rem;
    margin-bottom: 1.5rem;
}

.hero-role .typed { color: var(--accent); }
.cursor {
    display: inline-block;
    color: var(--accent);
    animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-bio {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 520px;
    line-height: 1.75;
    margin-bottom: 2.5rem;
}

.btn-outline-accent {
    border: 1.5px solid var(--accent);
    color: var(--accent);
    background: transparent;
    padding: 0.75rem 2rem;
    font-family: 'Fira Code', monospace;
    font-size: 0.88rem;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.25s, transform 0.25s;
    display: inline-block;
}
.btn-outline-accent:hover {
    background: rgba(100, 255, 218, 0.1);
    color: var(--accent);
    transform: translateY(-3px);
}

.hero-avatar {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bg-secondary), #0d2244);
    border: 2px solid var(--accent);
    box-shadow: 0 0 40px rgba(100, 255, 218, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 7rem;
    color: var(--accent);
    margin: 0 auto;
}

/* ── Section common ── */
section { padding: 5.5rem 0; }

.section-title {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    font-size: 1.7rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 3rem;
}
.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
    max-width: 220px;
}
.section-num {
    font-family: 'Fira Code', monospace;
    color: var(--accent);
    font-size: 0.95rem;
}

/* ── About ── */
#about { background: var(--bg-primary); }

.about-text {
    color: var(--text-muted);
    line-height: 1.8;
}
.about-text em { color: var(--accent); font-style: normal; }

.info-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.4rem 1.6rem;
}
.info-card h6 {
    font-family: 'Fira Code', monospace;
    color: var(--accent);
    font-size: 0.82rem;
    margin-bottom: 1rem;
    letter-spacing: 0.06em;
}
.info-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-muted);
    font-size: 0.88rem;
    padding: 0.35rem 0;
}
.info-row i { color: var(--accent); width: 16px; flex-shrink: 0; }

/* ── Skills ── */
#skills { background: var(--bg-secondary); }

.skill-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.4rem;
    height: 100%;
    transition: transform 0.3s, border-color 0.3s;
}
.skill-card:hover { transform: translateY(-6px); border-color: var(--accent); }

.skill-card h6 {
    font-family: 'Fira Code', monospace;
    color: var(--accent);
    font-size: 0.82rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tag {
    display: inline-block;
    background: rgba(100, 255, 218, 0.07);
    border: 1px solid rgba(100, 255, 218, 0.18);
    color: var(--text-bright);
    font-size: 0.78rem;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    margin: 0.2rem;
    transition: background 0.2s, color 0.2s;
}
.tag:hover { background: rgba(100, 255, 218, 0.18); color: var(--accent); }

/* ── Projects ── */
#projects { background: var(--bg-primary); }

.project-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.8rem;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.project-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}
.project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(100, 255, 218, 0.3);
    box-shadow: 0 24px 48px rgba(0,0,0,0.3);
}
.project-card:hover::before { opacity: 1; }

.project-icon {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1rem;
}
.project-card h5 {
    color: #fff;
    font-weight: 600;
    margin-bottom: 0.6rem;
}
.project-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1.4rem;
}
.stack-tag {
    font-family: 'Fira Code', monospace;
    color: var(--accent);
    font-size: 0.73rem;
    background: rgba(100, 255, 218, 0.07);
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    margin: 0.15rem;
    display: inline-block;
}

/* ── Experience ── */
#experience { background: var(--bg-secondary); }

.timeline { position: relative; padding-left: 1.8rem; }
.timeline::before {
    content: '';
    position: absolute;
    left: 6px; top: 0; bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--accent), rgba(100,255,218,0.05));
}

.tl-item { position: relative; margin-bottom: 2.8rem; }
.tl-item::before {
    content: '';
    position: absolute;
    left: -1.55rem;
    top: 0.45rem;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px rgba(100,255,218,0.6);
}

.tl-date {
    font-family: 'Fira Code', monospace;
    color: var(--accent);
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
}
.tl-title {
    color: #fff;
    font-weight: 600;
    font-size: 1.05rem;
}
.tl-org {
    color: var(--accent);
    font-size: 0.88rem;
    margin-bottom: 0.7rem;
}
.tl-body {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.75;
    padding-left: 1rem;
}
.tl-body li { margin-bottom: 0.3rem; }

/* ── Education ── */
#education { background: var(--bg-primary); }

.edu-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.6rem;
    height: 100%;
    transition: transform 0.3s, border-color 0.3s;
}
.edu-card:hover { transform: translateY(-5px); border-color: var(--accent); }

.edu-year {
    font-family: 'Fira Code', monospace;
    color: var(--accent);
    font-size: 0.8rem;
}
.edu-degree {
    color: #fff;
    font-weight: 600;
    font-size: 1.05rem;
    margin: 0.3rem 0 0.15rem;
}
.edu-school { color: var(--text-muted); font-size: 0.9rem; }
.edu-note { color: var(--text-muted); font-size: 0.84rem; margin-top: 0.7rem; line-height: 1.6; }

/* ── Contact ── */
#contact {
    background: var(--bg-secondary);
    text-align: center;
}
.contact-eyebrow {
    font-family: 'Fira Code', monospace;
    color: var(--accent);
    font-size: 0.88rem;
    margin-bottom: 0.8rem;
}
.contact-heading {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}
.contact-sub {
    color: var(--text-muted);
    max-width: 480px;
    margin: 0 auto 2.2rem;
    line-height: 1.75;
}
.social-row {
    display: flex;
    justify-content: center;
    gap: 1.4rem;
    margin-top: 2.5rem;
}
.social-btn {
    color: var(--text-muted);
    font-size: 1.4rem;
    text-decoration: none;
    transition: color 0.25s, transform 0.25s;
}
.social-btn:hover { color: var(--accent); transform: translateY(-5px); }

/* ── Footer ── */
footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
    padding: 1.8rem 0;
    text-align: center;
    font-family: 'Fira Code', monospace;
    font-size: 0.78rem;
    color: var(--text-muted);
}
footer span { color: var(--accent); }

/* ── Fade-in animation ── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .hero-avatar { width: 200px; height: 200px; font-size: 5rem; }
}
