/* ============================================================
   SACHIN DUBEY PORTFOLIO — GLOBAL STYLESHEET
   McKinsey Design System: Navy #051C2C, Accent #2251FF
   Fonts: Playfair Display (headings) + Inter (body)
   ============================================================ */

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:        #051C2C;
  --navy-mid:    #0A2D45;
  --accent:      #2251FF;
  --accent-light:#E8EDFF;
  --white:       #FFFFFF;
  --off-white:   #F7F8FA;
  --border:      #E2E6EC;
  --text-body:   #3C4858;
  --text-muted:  #6B7A90;
  --text-light:  #9AA5B4;
  --gold:        #B8963E;
  --max-w:       1200px;
  --section-v:   96px;
  --transition:  0.25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

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

ul { list-style: none; }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.2rem; }

p { color: var(--text-body); line-height: 1.75; }

/* ── LAYOUT ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
}

.section { padding: var(--section-v) 0; }
.section-sm { padding: 60px 0; }
.section-alt { background: var(--off-white); }
.section-navy { background: var(--navy); }

/* ── EYEBROW ── */
.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--accent);
  flex-shrink: 0;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 2px;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn-primary:hover { background: #1a3fd4; border-color: #1a3fd4; transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }

.btn-text {
  background: transparent;
  color: var(--accent);
  border-color: transparent;
  padding-left: 0;
  padding-right: 0;
}
.btn-text:hover { color: #1a3fd4; }
.btn-text::after { content: ' →'; }

/* ── NAVIGATION ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  height: 68px;
  display: flex;
  align-items: center;
}
.nav-inner {
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.5px;
}
.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links li a {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-body);
  padding: 6px 10px;
  border-radius: 2px;
  transition: color var(--transition);
}
.nav-links li a:hover,
.nav-links li a.active { color: var(--accent); }

.nav-cta-wrap { display: flex; align-items: center; gap: 12px; }
.nav-cta { padding: 9px 22px; font-size: 0.75rem; }

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  transition: all var(--transition);
}

/* Mobile nav */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-cta-wrap { display: none; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--white);
    border-bottom: 2px solid var(--accent);
    padding: 20px 40px 28px;
    gap: 4px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  }
}

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  background: var(--navy);
  padding: 120px 0 72px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: var(--accent);
}
.page-hero .eyebrow { color: rgba(255,255,255,0.5); }
.page-hero .eyebrow::before { background: rgba(255,255,255,0.4); }
.page-hero h1 { color: var(--white); margin-bottom: 20px; }
.page-hero p { color: rgba(255,255,255,0.72); font-size: 1.1rem; max-width: 680px; }

/* ── SECTION HEADING ── */
.section-heading { margin-bottom: 56px; }
.section-heading h2 { margin-bottom: 16px; }
.section-heading p { color: var(--text-muted); font-size: 1.05rem; max-width: 600px; }
.section-heading.center { text-align: center; }
.section-heading.center p { margin: 0 auto; }
.section-heading.center .eyebrow { justify-content: center; }

/* ── DIVIDER ── */
.divider {
  width: 48px;
  height: 3px;
  background: var(--accent);
  margin: 20px 0;
}
.divider.center { margin: 20px auto; }

/* ── CARDS ── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 40px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: 0 12px 48px rgba(5,28,44,0.1);
  transform: translateY(-3px);
}
.card-icon {
  font-size: 2rem;
  margin-bottom: 20px;
  display: block;
}
.card h3 { font-size: 1.2rem; margin-bottom: 12px; }
.card p { font-size: 0.92rem; color: var(--text-muted); }

/* ── METRIC CARDS ── */
.metric-card {
  background: var(--navy);
  color: var(--white);
  padding: 40px 32px;
  border-radius: 4px;
  text-align: center;
}
.metric-card .metric-value {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 8px;
}
.metric-card .metric-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}
.metric-card .metric-sub {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  margin-top: 6px;
}

/* ── GRID ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }

@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .container { padding: 0 20px; }
  :root { --section-v: 60px; }
}

/* ── TAGS / PILLS ── */
.tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  background: var(--accent-light);
  color: var(--accent);
  margin: 3px 3px 3px 0;
}
.tag-gold {
  background: rgba(184,150,62,0.12);
  color: var(--gold);
}

/* ── TIMELINE ── */
.timeline { position: relative; padding-left: 40px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 7px; top: 8px; bottom: 8px;
  width: 2px;
  background: var(--border);
}
.timeline-item { position: relative; margin-bottom: 56px; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -36px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--accent);
}
.timeline-date {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.timeline-title { font-size: 1.15rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.timeline-company {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 14px;
}
.timeline-body { font-size: 0.92rem; color: var(--text-body); }
.timeline-body ul { padding-left: 18px; list-style: disc; margin-top: 10px; }
.timeline-body ul li { margin-bottom: 6px; }

/* ── STAT BAR ── */
.stat-bar {
  background: var(--navy);
  padding: 48px 0;
}
.stat-bar-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.08);
}
.stat-item {
  background: var(--navy);
  padding: 32px 24px;
  text-align: center;
}
.stat-item .val {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-item .lbl {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
@media (max-width: 700px) {
  .stat-bar-inner { grid-template-columns: repeat(2, 1fr); }
}

/* ── FOOTER ── */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.55);
  padding: 60px 0 36px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
@media (max-width: 800px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 500px) {
  .footer-inner { grid-template-columns: 1fr; }
}
.footer-brand .footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}
.footer-brand .footer-logo span { color: var(--accent); }
.footer-brand p { font-size: 0.88rem; line-height: 1.6; }
.footer-col h5 {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  color: rgba(255,255,255,0.55);
  font-size: 0.88rem;
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}
@media (max-width: 600px) {
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ── QUOTE / PULL QUOTE ── */
.pull-quote {
  border-left: 4px solid var(--accent);
  padding: 24px 32px;
  background: var(--off-white);
  margin: 32px 0;
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--navy);
  line-height: 1.6;
}

/* ── ICON BOX ── */
.icon-box {
  width: 56px;
  height: 56px;
  border-radius: 4px;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  flex-shrink: 0;
}

/* ── BADGE ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid;
}
.badge-blue { color: var(--accent); border-color: var(--accent); background: var(--accent-light); }
.badge-navy { color: var(--white); border-color: var(--navy); background: var(--navy); }
.badge-gold { color: var(--gold); border-color: var(--gold); background: rgba(184,150,62,0.1); }

/* ── ACCORDION (Philosophy) ── */
.accordion-item {
  border-bottom: 1px solid var(--border);
}
.accordion-header {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 24px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.accordion-header h3 {
  font-size: 1.1rem;
  color: var(--navy);
  font-family: 'Playfair Display', serif;
}
.accordion-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: transform var(--transition);
}
.accordion-item.open .accordion-icon { transform: rotate(45deg); }
.accordion-body {
  display: none;
  padding: 0 0 24px;
}
.accordion-item.open .accordion-body { display: block; }

/* ── FORM ── */
.form-group { margin-bottom: 24px; }
.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 8px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 2px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--navy);
  background: var(--white);
  transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--accent); }
.form-group textarea { min-height: 140px; resize: vertical; }

/* ── BACK TO TOP ── */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  background: var(--accent);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition);
  border: none;
  font-size: 1.1rem;
  z-index: 999;
  box-shadow: 0 4px 16px rgba(34,81,255,0.3);
}
.back-to-top.visible { opacity: 1; pointer-events: all; }
.back-to-top:hover { background: #1a3fd4; transform: translateY(-2px); }
