:root {
    --bg: #f8fafc;
    --surface: #ffffff;
    --surface-soft: #f1f5f9;
    --text: #0f172a;
    --muted: #475569;
    --primary: #10b981;
    --primary-dark: #059669;
    --primary-soft: rgba(16, 185, 129, 0.12);
    --border: #e2e8f0;
    --shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
}

section[id] {
    scroll-margin-top: 76px;
}

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--primary-dark);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-links a {
    text-decoration: none;
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--primary-dark);
}

.hero {
    padding: 64px 0 56px;
    background:
        radial-gradient(circle at 85% 20%, rgba(16, 185, 129, 0.12), transparent 45%),
        radial-gradient(circle at 15% 15%, rgba(56, 189, 248, 0.12), transparent 40%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.35fr 0.9fr;
    gap: 40px;
    align-items: center;
}

.badge-pill {
    display: inline-block;
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.hero h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 12px;
}

.hero-role {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 16px;
}

.hero-desc {
    color: var(--muted);
    margin-bottom: 24px;
    max-width: 580px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.btn {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-outline {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary-dark);
}

.social-row {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.social-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-pill {
    text-decoration: none;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.social-pill:hover {
    border-color: var(--primary);
    color: var(--primary-dark);
}

.hero-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.avatar-ring {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    padding: 6px;
    background: var(--surface);
    border: 2px solid var(--primary-soft);
    box-shadow: var(--shadow);
}

.avatar-ring img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.terminal-box {
    background: #0f172a;
    color: #e2e8f0;
    padding: 14px 16px;
    border-radius: 12px;
    width: 100%;
    max-width: 280px;
    box-shadow: var(--shadow);
    font-size: 0.85rem;
}

.terminal-box pre {
    font-family: Consolas, "Courier New", monospace;
    white-space: pre-line;
    line-height: 1.5;
}

.term-dots {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
}

.term-dots span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #475569;
}

.section {
    padding: 64px 0;
}

.section-alt {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-title {
    text-align: center;
    font-size: 1.85rem;
    margin-bottom: 36px;
}

.section-title::after {
    content: "";
    display: block;
    width: 48px;
    height: 4px;
    background: var(--primary);
    border-radius: 4px;
    margin: 10px auto 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.project-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
}

.project-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}

.project-title {
    font-size: 1.15rem;
    font-weight: 700;
}

.project-tag {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary-dark);
    white-space: nowrap;
}

.project-desc {
    color: var(--muted);
    font-size: 0.94rem;
    margin-bottom: 14px;
}

.tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-chip {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    background: var(--surface-soft);
    color: var(--text);
    border: 1px solid var(--border);
}

.project-links {
    display: flex;
    gap: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.project-link {
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.project-link:hover {
    text-decoration: underline;
}

.skills-block {
    margin-bottom: 32px;
}

.sub-heading {
    font-size: 1.1rem;
    margin-bottom: 14px;
    color: var(--text);
}

.tech-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.info-two-col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.info-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
}

.info-card h3 {
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    font-size: 1.1rem;
}

.info-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-list li strong {
    display: block;
    color: var(--text);
}

.info-list li span {
    color: var(--muted);
    font-size: 0.92rem;
}

.contact-box {
    max-width: 720px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 36px 28px;
    text-align: center;
    box-shadow: var(--shadow);
}

.contact-badge {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary-dark);
    display: grid;
    place-items: center;
    font-size: 1.4rem;
    margin: 0 auto 14px;
}

.contact-box h2 {
    font-size: 1.7rem;
    margin-bottom: 10px;
}

.contact-box > p {
    color: var(--muted);
    margin-bottom: 24px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    text-align: left;
    margin-bottom: 24px;
}

.contact-item-box {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: border-color 0.2s ease;
}

.contact-item-box:hover {
    border-color: var(--primary);
}

.contact-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--muted);
    letter-spacing: 0.04em;
}

.contact-value {
    font-weight: 600;
    color: var(--text);
    font-size: 0.95rem;
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.footer {
    padding: 24px 0;
    text-align: center;
    color: var(--muted);
    font-size: 0.88rem;
}

@media (max-width: 768px) {
    .hero-grid,
    .projects-grid,
    .info-two-col,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        gap: 14px;
        font-size: 0.85rem;
    }

    .hero h1 {
        font-size: 2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .reveal {
    opacity: 0;
    transform: translateY(42px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0ms);
    }
}