:root {
    --bg: #050505;
    --bg-soft: #0f1115;
    --panel: rgba(15, 17, 21, 0.84);
    --panel-strong: #171b25;
    --text: #f5f7fb;
    --muted: #a8b4ca;
    --line: rgba(255, 255, 255, 0.10);
    --accent: #6366f1;
    --accent-strong: #8b5cf6;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
    --radius: 24px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: 'Manrope', sans-serif;
    color: var(--text);
    background:
        radial-gradient(ellipse at 80% 0%, rgba(99, 102, 241, 0.18) 0%, transparent 40%),
        radial-gradient(ellipse at 10% 90%, rgba(139, 92, 246, 0.14) 0%, transparent 38%),
        linear-gradient(180deg, #050505 0%, #080a10 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

/* ─── Navigation ─────────────────────────────────────────── */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(5, 5, 5, 0.82);
    border-bottom: 1px solid var(--line);
}

.nav-shell {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 72px;
    gap: 24px;
}

.brand {
    font-family: 'Sora', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--text);
    transition: opacity 0.2s;
    flex-shrink: 0;
}

.brand:hover { opacity: 0.75; }

.site-nav {
    display: flex;
    gap: 8px;
}

.site-nav a {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.site-nav a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--line);
}

.site-nav a.nav-active {
    color: var(--text);
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.3);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--muted);
    border-radius: 2px;
    transition: background 0.2s;
}

.hamburger:hover .bar { background: var(--text); }

/* ─── Shared ──────────────────────────────────────────────── */

.eyebrow {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.78rem;
    font-weight: 800;
}

.section-intro {
    margin-bottom: 36px;
}

.section-intro h2 {
    font-family: 'Sora', sans-serif;
    margin-top: 10px;
    font-size: clamp(1.9rem, 3.2vw, 3.2rem);
    line-height: 1.06;
    letter-spacing: -0.02em;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 24px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
    color: #f8fafc;
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover { box-shadow: 0 12px 40px rgba(99, 102, 241, 0.5); }

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--line);
    color: var(--text);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.tech-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.25);
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

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

/* ─── Section Wrapper ────────────────────────────────────── */

.section {
    padding: 80px 0;
}

.section-alt {
    background: rgba(255, 255, 255, 0.015);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

/* ─── Hero ───────────────────────────────────────────────── */

.hero {
    padding: 96px 0 80px;
}

.hero-container {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 56px;
    align-items: center;
}

.hero-profile-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(99, 102, 241, 0.4);
    box-shadow: 0 0 0 6px rgba(99, 102, 241, 0.08), var(--shadow);
}

.hero-content {
    animation: fadeUp 0.7s ease both;
}

.hero-title {
    font-family: 'Sora', sans-serif;
    font-size: clamp(2rem, 4vw, 3.4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-top: 12px;
    line-height: 1.1;
}

.hero-subtitle {
    color: var(--accent);
    font-weight: 700;
    font-size: 1rem;
    margin-top: 8px;
    letter-spacing: 0.01em;
}

.hero-desc {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.7;
    margin-top: 16px;
    max-width: 58ch;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 24px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 1rem;
    transition: color 0.2s, background 0.2s, border-color 0.2s, transform 0.2s;
}

.social-link:hover {
    color: var(--text);
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
}

/* ─── About ──────────────────────────────────────────────── */

.about-content {
    max-width: 760px;
}

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

.about-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 24px;
    padding: 24px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font-size: 0.93rem;
}

.info-item i {
    color: var(--accent);
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

.interests {
    margin-top: 28px;
}

.interests h3 {
    font-family: 'Sora', sans-serif;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.interest-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.interest-tags span {
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 500;
}

/* ─── Timeline ───────────────────────────────────────────── */

.timeline {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 32px;
    align-items: start;
}

.timeline-marker {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
    padding-top: 4px;
}

.timeline-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.5);
    flex-shrink: 0;
}

.timeline-date {
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.timeline-content {
    padding: 28px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.timeline-content h3 {
    font-family: 'Sora', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
}

.timeline-content h4 {
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 6px;
}

.cgpa {
    display: inline-block;
    margin-top: 10px;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.25);
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 700;
}

.timeline-detail {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.timeline-detail p {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.timeline-list {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.timeline-list li {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.6;
    padding-left: 16px;
    position: relative;
}

.timeline-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.6;
}

/* ─── Highlight Card ─────────────────────────────────────── */

.highlight-card {
    padding: 36px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.14), rgba(139, 92, 246, 0.08));
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.highlight-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.highlight-header {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.highlight-header h3 {
    font-family: 'Sora', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
}

.project-year {
    padding: 4px 14px;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.25);
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 700;
}

.highlight-desc {
    color: var(--muted);
    line-height: 1.75;
    font-size: 1rem;
    max-width: 68ch;
}

.feature-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 600;
}

.pill i {
    color: var(--accent);
    font-size: 0.8rem;
}

/* ─── Projects Grid ──────────────────────────────────────── */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
}

.project-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 28px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.25s, border-color 0.25s;
}

.project-card:hover {
    transform: translateY(-2px);
    border-color: rgba(99, 102, 241, 0.25);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.project-header h3 {
    font-family: 'Sora', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    flex: 1;
}

.project-date {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    padding-top: 2px;
}

.project-desc {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.65;
    flex: 1;
}

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

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 600;
    transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.project-link:hover {
    color: var(--text);
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.35);
}

.project-link i { font-size: 0.8rem; }

.project-type {
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: auto;
}

/* ─── Skills Grid ────────────────────────────────────────── */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 14px;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 24px 16px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 18px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--muted);
    text-align: center;
    transition: transform 0.2s, border-color 0.2s, color 0.2s;
}

.skill-item:hover {
    transform: translateY(-2px);
    border-color: rgba(99, 102, 241, 0.3);
    color: var(--text);
}

.skill-item i {
    font-size: 1.6rem;
    color: var(--accent);
}

/* ─── Achievements ───────────────────────────────────────── */

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.achievement-card {
    display: flex;
    gap: 20px;
    padding: 28px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.25s, border-color 0.25s;
}

.achievement-card:hover {
    transform: translateY(-2px);
    border-color: rgba(99, 102, 241, 0.25);
}

.achievement-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.achievement-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.achievement-body h3 {
    font-family: 'Sora', sans-serif;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.3;
}

.achievement-date {
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.achievement-body p:not(.achievement-date) {
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.6;
}

.achievement-tag {
    font-size: 0.78rem;
    color: var(--muted);
    font-weight: 600;
    opacity: 0.7;
}

/* ─── Contact ────────────────────────────────────────────── */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

.contact-desc {
    color: var(--muted);
    line-height: 1.75;
    font-size: 1rem;
    margin-bottom: 28px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 28px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-item i {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 2px;
}

.contact-item p {
    color: var(--text);
    font-size: 0.93rem;
}

.contact-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.references {
    padding: 28px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.references h3 {
    font-family: 'Sora', sans-serif;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.reference-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}

.reference-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.reference-item h4 {
    font-family: 'Sora', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.reference-item p {
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.6;
}

/* ─── Footer ─────────────────────────────────────────────── */

.site-footer {
    padding: 28px 0 44px;
    border-top: 1px solid var(--line);
    background: rgba(5, 5, 5, 0.7);
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer-brand {
    display: inline-block;
    margin-bottom: 8px;
}

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

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.footer-links a {
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 999px;
    transition: color 0.2s, background 0.2s;
}

.footer-links a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

/* ─── Animation ──────────────────────────────────────────── */

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ─── Responsive ─────────────────────────────────────────── */

@media (max-width: 900px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hero-image {
        display: flex;
        justify-content: center;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .timeline-marker {
        flex-direction: row;
        align-items: center;
        gap: 12px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .site-nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(5, 5, 5, 0.97);
        border-bottom: 1px solid var(--line);
        padding: 16px 24px;
        gap: 4px;
        z-index: 10;
    }

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

    .site-nav a {
        padding: 12px 16px;
    }

    .site-header {
        position: relative;
    }

    .hamburger {
        display: flex;
    }

    .nav-shell {
        position: relative;
    }

    .hero {
        padding-top: 56px;
    }

    .section {
        padding: 56px 0;
    }

    .footer-grid {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .achievements-grid {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    }
}

@media (max-width: 480px) {
    .hero-profile-img {
        width: 140px;
        height: 140px;
    }

    .highlight-card {
        padding: 24px;
    }

    .achievement-card {
        flex-direction: column;
    }
}
