 * { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

:root {
    --navy: #1c2b4a;
    --text: #222222;
    --muted: #666666;
    --light: #f4f4f2;
    --border: #ddddd8;
    --white: #ffffff;
    --link: #1c4fa0;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--white);
    color: var(--text);
    font-size: 15px;
    line-height: 1.65;
}

/* ── HEADER ── */
header {
    background: var(--navy);
    position: sticky;
    top: 0;
    z-index: 99;
}

nav {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    font-family: 'Merriweather', serif;
    font-size: 1rem;
    color: #fff;
    text-decoration: none;
    font-weight: 400;
    letter-spacing: 0.02em;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    transition: color 0.15s;
}

.nav-links a:hover { color: #fff; }

.nav-resume {
    font-size: 0.78rem;
    font-weight: 500;
    color: #fff;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.45);
    padding: 0.35rem 1rem;
    text-decoration: none;
    letter-spacing: 0.04em;
    transition: background 0.15s, border-color 0.15s;
}

.nav-resume:hover {
    background: rgba(255,255,255,0.12);
    border-color: #fff;
}

/* ── HERO ── */
#home {
    background: var(--navy);
    border-bottom: 4px solid #c8a84b;
    padding: 5rem 2rem 4.5rem;
}

.hero-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.hero-photo {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,0.25);
  flex-shrink: 0;
}

.hero-name {
    font-family: 'Merriweather', serif;
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 0.6rem;
}

.hero-title {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.65);
    font-weight: 300;
    margin-bottom: 1.4rem;
    letter-spacing: 0.02em;
}

.hero-desc {
    font-size: 0.92rem;
    color: rgba(255,255,255,0.75);
    font-weight: 300;
    line-height: 1.75;
    max-width: 560px;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.btn-gold {
    background: #c8a84b;
    color: #1c2b4a;
    border: none;
    padding: 0.6rem 1.4rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.04em;
    cursor: pointer;
}

.btn-ghost {
    background: transparent;
    color: rgba(255,255,255,0.8);
    border: 1px solid rgba(255,255,255,0.4);
    padding: 0.6rem 1.4rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 400;
    text-decoration: none;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
}

.btn-ghost:hover { border-color: rgba(255,255,255,0.8); color: #fff; }

/* ── PAGE WRAPPER ── */
.page {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ── SECTION BASE ── */
section {
    padding: 3.5rem 0;
    border-bottom: 1px solid var(--border);
}

section:last-child { border-bottom: none; }

.section-header {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 2rem;
}

.section-tag {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    border-left: 3px solid #c8a84b;
    padding-left: 0.6rem;
}

h2 {
    font-family: 'Merriweather', serif;
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--navy);
}

/* ── ABOUT ── */
#about {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: start;
}

.about-text p {
    font-size: 0.9rem;
    color: var(--muted);
    font-weight: 300;
    line-height: 1.8;
    margin-bottom: 0.9rem;
}

.about-text p:last-child { margin-bottom: 0; }

/* Education — only IIT */
.edu-card {
    background: var(--light);
    border: 1px solid var(--border);
    border-left: 3px solid var(--navy);
    padding: 1.2rem 1.4rem;
}

.edu-school {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.edu-course {
    font-size: 0.81rem;
    color: var(--muted);
    font-weight: 300;
    margin-bottom: 0.35rem;
    line-height: 1.5;
}

.edu-score {
    font-size: 0.81rem;
    font-weight: 600;
    color: var(--navy);
}

/* ── SKILLS ── */

/* ── SKILLS ── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
}

.skill-card {
  padding: 1.1rem 0.5rem;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: 4px;
  border: 1px solid;
  color: var(--text);
}

.skill-card:nth-child(4n+1) { background: #eef3fb; border-color: #c5d5f0; }
.skill-card:nth-child(4n+2) { background: #edf7f5; border-color: #b5ddd8; }
.skill-card:nth-child(4n+3) { background: #fdf6e8; border-color: #e8d29a; }
.skill-card:nth-child(4n+0) { background: #fdf0f0; border-color: #f0c8c8; }

/* ── PROJECTS ── */
/* #projects {} */

.project-list { display: flex; flex-direction: column; }

.project-entry {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 1.4rem;
    padding: 1.8rem 0;
    border-bottom: 1px solid var(--border);
}

.project-entry:last-child { border-bottom: none; }

.p-num {
    font-family: 'Merriweather', serif;
    font-size: 1rem;
    color: #cccccc;
    font-weight: 700;
    padding-top: 0.1rem;
    text-align: right;
}

.p-title {
    font-family: 'Merriweather', serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.4rem;
}

.p-desc {
    font-size: 0.86rem;
    color: var(--muted);
    font-weight: 300;
    line-height: 1.75;
    margin-bottom: 0.85rem;
}

.p-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.p-tag {
    font-size: 0.72rem;
    font-weight: 500;
    padding: 0.2rem 0.65rem;
    background: #edf2fb;
    color: var(--link);
    border: 1px solid #c9d9f2;
    border-radius: 2px;
    letter-spacing: 0.03em;
}

/* ── CONTACT ── */
/* ── CONTACT ── */
 
.contact-intro {
    font-size: 0.9rem;
    color: var(--muted);
    font-weight: 300;
    line-height: 1.8;
    margin-bottom: 1.4rem;
    max-width: 600px;
}

.contact-email-link {
    display: inline-block;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--link);
    text-decoration: none;
    /* border-bottom: 1px solid currentColor; */
    padding-bottom: 1px;
    margin-bottom: 2rem;
}

/* Three link cards side by side */
.contact-cards {
  display: flex;
  gap: 1.8rem;
  flex-wrap: wrap;
  align-items: center;
}

.contact-card {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
  letter-spacing: 0.02em;
}

.contact-card:hover {
  border-bottom-color: var(--link);
}

#contact {
  text-align: center;
}

#contact .contact-intro {
  margin-left: auto;
  margin-right: auto;
}

#contact .contact-email-link {
  display: block;
  text-align: center;
}

#contact .contact-cards {
  justify-content: center;
}

/* ── FOOTER ── */
footer {
    background: var(--light);
    border-top: 1px solid var(--border);
}

.footer-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--muted);
    font-weight: 300;
}

/* ── RESPONSIVE ── */
@media (max-width: 720px) {
    .nav-links { display: none; }
    nav { padding: 0 1.2rem; }
    .page { padding: 0 1.2rem; }
    #home { padding: 3rem 1.2rem; }
    #about { grid-template-columns: 1fr; gap: 2rem; }
    .hero-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }

    .hero-photo {
        width: 130px;
        height: 130px;
        align-self: center;
        order: -1;
    }
    .skills-grid { grid-template-columns: repeat(3, 1fr); }
    .project-entry { grid-template-columns: 1fr; }
    .p-num { display: none; }
    .contact-cards { flex-direction: column; }
    .footer-inner { flex-direction: column; gap: 0.3rem; text-align: center; }
}