:root {
    --bg: #0d1117;
    --bg-alt: #161b22;
    --card-bg: #1c2128;
    --border: #30363d;
    --accent: #58a6ff;
    --accent-green: #3fb950;
    --accent-gold: #d29922;
    --text: #e6edf3;
    --text-muted: #8b949e;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    line-height: 1.6;
}

/* ── Navbar ── */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(13, 17, 23, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0.9rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: box-shadow 0.3s;
}

.nav-brand {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.05em;
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.75rem;
}

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

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

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
}

/* ── Hero ── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 6rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 15% 55%, rgba(88, 166, 255, 0.09) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 15%, rgba(63, 185, 80, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    z-index: 1;
}

.hero-greeting {
    color: var(--accent);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.hero-name {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-name span {
    color: var(--accent);
}

.hero-title {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: var(--text-muted);
    margin-bottom: 0.4rem;
    font-weight: 400;
}

.hero-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    letter-spacing: 0.2em;
    opacity: 0.7;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ── Buttons ── */
.btn {
    padding: 0.7rem 1.6rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    display: inline-block;
    font-family: var(--font);
}

.btn-primary {
    background: var(--accent);
    color: #0d1117;
}

.btn-primary:hover {
    background: #79c0ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(88, 166, 255, 0.3);
}

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

.btn-outline:hover {
    background: rgba(88, 166, 255, 0.1);
    transform: translateY(-2px);
}

/* ── Sections ── */
.section {
    padding: 6rem 2rem;
}

.section-alt {
    background: var(--bg-alt);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--text);
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
}

.section-title span {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 400;
}

/* ── About ── */
.about-content {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 4rem;
    align-items: start;
}

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

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.stat {
    text-align: center;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.25rem 1rem;
}

.stat-number {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.35rem;
}

.stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ── Timeline ── */
.timeline {
    position: relative;
    padding-left: 1.5rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 0;
    width: 1px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
    padding-left: 2rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -1.85rem;
    top: 0.6rem;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 3px var(--bg-alt);
}

.timeline-content {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    transition: border-color 0.2s;
}

.timeline-content:hover {
    border-color: rgba(88, 166, 255, 0.4);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.2rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.timeline-header h3 {
    font-size: 1rem;
    font-weight: 600;
}

.timeline-date {
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 500;
    white-space: nowrap;
}

.timeline-company {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.9rem;
}

.timeline-content ul {
    padding-left: 1.1rem;
}

.timeline-content li {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 0.35rem;
    line-height: 1.65;
}

/* ── Skills ── */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.skill-category {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.25rem;
}

.skill-category h3 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 0.85rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: rgba(88, 166, 255, 0.08);
    color: var(--accent);
    border: 1px solid rgba(88, 166, 255, 0.2);
    padding: 0.2rem 0.65rem;
    border-radius: 20px;
    font-size: 0.78rem;
}

.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1.25rem;
}

.cert-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem 1.25rem;
    text-align: center;
    transition: border-color 0.2s, transform 0.2s;
}

.cert-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
}

.cert-icon {
    font-size: 1.75rem;
    margin-bottom: 0.6rem;
    display: block;
}

.cert-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.cert-card p {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    min-height: 2.4em;
}

.cert-year {
    font-size: 0.72rem;
    color: var(--accent);
    background: rgba(88, 166, 255, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
}

/* ── Projects ── */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
}

.project-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    transition: border-color 0.2s, transform 0.2s;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.project-tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-green);
    background: rgba(63, 185, 80, 0.1);
    border: 1px solid rgba(63, 185, 80, 0.25);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
}

.project-tag-blue {
    color: var(--accent);
    background: rgba(88, 166, 255, 0.1);
    border-color: rgba(88, 166, 255, 0.25);
}

.project-tag-gold {
    color: var(--accent-gold);
    background: rgba(210, 153, 34, 0.1);
    border-color: rgba(210, 153, 34, 0.25);
}

.project-year {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.project-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.project-sub {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
}

.project-detail {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 1rem;
    flex: 1;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: auto;
}

.project-tech span {
    font-size: 0.72rem;
    background: var(--bg-alt);
    color: var(--text-muted);
    border: 1px solid var(--border);
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
}

/* ── Blog ── */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
}

.blog-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: .6rem;
    transition: border-color .2s, transform .2s;
}

.blog-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
}

.blog-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.blog-tag {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--accent);
    background: rgba(88,166,255,.1);
    border: 1px solid rgba(88,166,255,.25);
    padding: .2rem .6rem;
    border-radius: 20px;
}

.blog-date {
    font-size: .8rem;
    color: var(--text-muted);
}

.blog-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
}

.blog-card p {
    font-size: .85rem;
    color: var(--text-muted);
    line-height: 1.65;
    flex: 1;
}

.blog-footer {
    display: flex;
    align-items: center;
    gap: .4rem;
    flex-wrap: wrap;
    margin-top: .25rem;
}

.blog-tech {
    font-size: .72rem;
    background: var(--bg-alt);
    color: var(--text-muted);
    border: 1px solid var(--border);
    padding: .2rem .5rem;
    border-radius: 4px;
}

.blog-read {
    margin-left: auto;
    font-size: .82rem;
    color: var(--accent);
    font-weight: 500;
}

/* ── Coming Soon ── */
.coming-soon {
    background: var(--card-bg);
    border: 1px dashed var(--border);
    border-radius: 8px;
    padding: 4rem 2rem;
    text-align: center;
}

.coming-soon-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.coming-soon p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.coming-soon-sub {
    margin-top: 0.4rem;
    font-size: 0.82rem !important;
    opacity: 0.55;
}

/* ── Daily Insights ── */
.insights-desc {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.7;
    max-width: 700px;
    margin-bottom: 2rem;
}

.insights-grid:empty {
    display: none;
}

.coming-soon code {
    background: rgba(88,166,255,.12);
    color: var(--accent);
    padding: .15rem .45rem;
    border-radius: 4px;
    font-size: .82rem;
    font-family: monospace;
}

/* ── Contact ── */
.contact-content {
    text-align: center;
    max-width: 480px;
    margin: 0 auto;
}

.contact-content p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.7;
}

/* ── Footer ── */
.footer {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.footer-visitors {
    margin-top: .75rem;
}

.footer-visitors img {
    height: 20px;
    opacity: .7;
    transition: opacity .2s;
}

.footer-visitors img:hover {
    opacity: 1;
}

/* ── Fade-in animation ── */
.fade-in {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg);
        flex-direction: column;
        padding: 1rem 2rem 1.5rem;
        border-bottom: 1px solid var(--border);
        gap: 1rem;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about-stats {
        grid-template-columns: repeat(4, 1fr);
    }

    .section {
        padding: 4rem 1.25rem;
    }

    .hero {
        padding: 6rem 1.25rem 3rem;
    }
}

@media (max-width: 480px) {
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn {
        text-align: center;
    }
}
