/* ============================================================
   Shashi Kumar Ellendula — DTA President 2027 Portfolio
   Visual identity: temple indigo + warm gold, dignified serif
   ============================================================ */

:root {
  --indigo:        #1a2238;   /* deep temple night */
  --indigo-soft:   #26304f;
  --indigo-ink:    #10162a;
  --gold:          #c9a24b;   /* aged brass / kalash gold */
  --gold-bright:   #e3bf6a;
  --cream:         #f6f2e9;   /* warm paper */
  --cream-deep:    #ece5d5;
  --maroon:        #7a2e2e;   /* kumkum accent, used sparingly */
  --text:          #23272f;
  --text-soft:     #55606f;
  --line:          rgba(26,34,56,0.12);
  --shadow:        0 18px 50px -24px rgba(16,22,42,0.45);

  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:  'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --wrap: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.12; color: var(--indigo); }

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

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

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 12px;
  font-weight: 500;
  color: var(--gold);
  margin-bottom: 18px;
  display: inline-block;
}
.eyebrow.dark { color: var(--maroon); }

/* ---------- Top navigation ---------- */
header.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(246,242,233,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--wrap); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 28px;
}
.brand { display: flex; align-items: center; gap: 13px; }
.brand .mark {
  width: 42px; height: 42px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--gold-bright), var(--gold) 60%, #9c7a2e);
  display: grid; place-items: center;
  font-family: var(--serif); font-weight: 700; color: var(--indigo-ink);
  font-size: 20px; box-shadow: inset 0 0 0 2px rgba(255,255,255,0.25);
  flex-shrink: 0;
}
.brand .bt { line-height: 1.15; }
.brand .bt strong { font-family: var(--serif); font-size: 19px; color: var(--indigo); display: block; letter-spacing: 0.01em; }
.brand .bt span { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-soft); }

nav.menu { display: flex; gap: 4px; align-items: center; }
nav.menu a {
  font-size: 14px; letter-spacing: 0.02em; padding: 9px 15px; border-radius: 6px;
  color: var(--text-soft); transition: color .2s, background .2s; white-space: nowrap;
}
nav.menu a:hover { color: var(--indigo); background: rgba(201,162,75,0.12); }
nav.menu a.active { color: var(--indigo); font-weight: 500; }
nav.menu a.active::after {
  content: ''; display: block; height: 2px; width: 18px; background: var(--gold);
  margin: 3px auto 0;
}

.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--indigo); margin: 5px 0; transition: .3s; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-family: var(--sans); font-size: 14px; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 14px 30px; border-radius: 2px; cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s; border: 1px solid transparent;
}
.btn-gold { background: var(--gold); color: var(--indigo-ink); font-weight: 500; }
.btn-gold:hover { background: var(--gold-bright); transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(201,162,75,0.7); }
.btn-ghost { border-color: rgba(246,242,233,0.4); color: var(--cream); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-bright); }
.btn-ink { border-color: var(--indigo); color: var(--indigo); }
.btn-ink:hover { background: var(--indigo); color: var(--cream); }

/* ---------- Hero ---------- */
.hero {
  position: relative; background: var(--indigo);
  color: var(--cream); overflow: hidden;
  padding: 120px 0 100px;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 78% 20%, rgba(201,162,75,0.18), transparent 60%),
    radial-gradient(ellipse 50% 60% at 10% 90%, rgba(122,46,46,0.25), transparent 60%);
  pointer-events: none;
}
/* subtle kolam / mandala line motif */
.hero .mandala {
  position: absolute; right: -140px; top: 50%; transform: translateY(-50%);
  width: 520px; height: 520px; opacity: 0.13; pointer-events: none;
}
.hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.35fr 1fr; gap: 60px; align-items: center;
}
.hero h1 { color: var(--cream); font-size: clamp(42px, 6vw, 74px); font-weight: 600; letter-spacing: -0.01em; }
.hero h1 .gold { color: var(--gold-bright); font-style: italic; }
.hero .lead { font-size: 20px; color: rgba(246,242,233,0.82); margin: 26px 0 34px; max-width: 30em; font-weight: 300; }
.hero .cta-row { display: flex; gap: 16px; flex-wrap: wrap; }
/* ---------- Photo slots (real images with graceful fallback) ---------- */
.photo {
  position: relative; border-radius: 4px; overflow: hidden;
  background: linear-gradient(160deg, var(--indigo-soft), var(--indigo-ink));
  border: 1px solid rgba(201,162,75,0.35); box-shadow: var(--shadow);
}
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-ph {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  color: rgba(246,242,233,0.4); font-family: var(--serif); gap: 8px; padding: 20px;
}
.photo-ph svg { width: 64px; height: 64px; opacity: 0.5; }
.photo-ph code { font-family: var(--sans); font-size: 12px; letter-spacing: 0.02em; background: rgba(201,162,75,0.16); color: var(--gold-bright); padding: 3px 8px; border-radius: 3px; }
.photo .frame-tag {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 22px 20px 18px; z-index: 2;
  background: linear-gradient(transparent, rgba(16,22,42,0.9));
  font-family: var(--serif); font-size: 22px; color: var(--cream);
}
.photo .frame-tag small { display:block; font-family: var(--sans); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-bright); margin-top: 4px; }
.hero-portrait { max-width: 100%; }

/* ---------- Section scaffolding ---------- */
section.block { padding: 92px 0; }
section.block.tint { background: var(--cream-deep); }
section.block.ink { background: var(--indigo); color: var(--cream); }
section.block.ink h1, section.block.ink h2, section.block.ink h3 { color: var(--cream); }
section.block.ink .eyebrow { color: var(--gold-bright); }

.section-head { max-width: 44em; margin-bottom: 54px; }
.section-head h2 { font-size: clamp(30px, 4vw, 46px); }
.section-head p { color: var(--text-soft); font-size: 18px; margin-top: 16px; }
section.block.ink .section-head p { color: rgba(246,242,233,0.78); }

/* ---------- Stat strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.stat { background: var(--cream); padding: 34px 26px; text-align: center; }
section.block.ink .stat { background: var(--indigo-soft); }
.stat .num { font-family: var(--serif); font-size: 46px; color: var(--gold); font-weight: 600; line-height: 1; }
.stat .lbl { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-soft); margin-top: 10px; }
section.block.ink .stat .lbl { color: rgba(246,242,233,0.7); }

/* ---------- Pillar cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.card {
  background: var(--cream); border: 1px solid var(--line); border-radius: 4px;
  padding: 38px 32px; transition: transform .25s, box-shadow .25s;
  position: relative; overflow: hidden;
}
.card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
  transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card:hover::before { transform: scaleX(1); }
.card .ico {
  width: 52px; height: 52px; border-radius: 50%; background: rgba(201,162,75,0.14);
  display: grid; place-items: center; margin-bottom: 22px; color: var(--gold);
}
.card .ico svg { width: 26px; height: 26px; }
.card h3 { font-size: 25px; margin-bottom: 12px; }
.card p { color: var(--text-soft); font-size: 15.5px; }

/* ---------- Timeline ---------- */
.timeline { position: relative; margin-top: 20px; }
.timeline::before {
  content: ''; position: absolute; left: 120px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(var(--gold), rgba(201,162,75,0.15));
}
.tl-item { display: grid; grid-template-columns: 120px 1fr; gap: 40px; padding: 18px 0 34px; position: relative; }
.tl-item .yr { font-family: var(--serif); font-size: 30px; color: var(--gold); text-align: right; font-weight: 600; }
.tl-item .body { position: relative; padding-left: 34px; }
.tl-item .body::before {
  content: ''; position: absolute; left: -8px; top: 8px; width: 15px; height: 15px;
  border-radius: 50%; background: var(--cream); border: 3px solid var(--gold);
}
section.block.ink .tl-item .body::before { background: var(--indigo); }
.tl-item .body h4 { font-size: 21px; margin-bottom: 6px; }
.tl-item .body p { color: var(--text-soft); font-size: 15.5px; }
section.block.ink .tl-item .body p { color: rgba(246,242,233,0.75); }

/* ---------- Roadmap phases ---------- */
.phase { display: grid; grid-template-columns: 90px 1fr; gap: 30px; border-top: 1px solid var(--line); padding: 34px 0; }
.phase:last-child { border-bottom: 1px solid var(--line); }
.phase .pn { font-family: var(--serif); font-size: 40px; color: var(--gold); font-weight: 600; }
.phase h3 { font-size: 24px; margin-bottom: 8px; }
.phase ul { list-style: none; margin-top: 14px; }
.phase li { padding-left: 26px; position: relative; margin-bottom: 9px; color: var(--text-soft); font-size: 15.5px; }
.phase li::before { content: '◈'; position: absolute; left: 0; color: var(--gold); font-size: 12px; top: 2px; }

/* ---------- Quote ---------- */
.pullquote { max-width: 40em; margin: 0 auto; text-align: center; }
.pullquote .q { font-family: var(--serif); font-size: clamp(26px, 4vw, 40px); font-style: italic; line-height: 1.3; color: var(--cream); }
.pullquote .q::before { content: '“'; color: var(--gold); }
.pullquote .q::after  { content: '”'; color: var(--gold); }
.pullquote .attr { margin-top: 26px; letter-spacing: 0.2em; text-transform: uppercase; font-size: 13px; color: var(--gold-bright); }

/* ---------- Prose ---------- */
.prose { max-width: 52em; }
.prose p { margin-bottom: 20px; color: var(--text-soft); font-size: 17.5px; }
.prose p.lead-p { font-size: 21px; color: var(--text); font-family: var(--serif); line-height: 1.5; }
.prose h3 { font-size: 27px; margin: 40px 0 14px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: start; }

/* ---------- List feature ---------- */
.feat-list { list-style: none; }
.feat-list li { padding: 16px 0 16px 40px; border-bottom: 1px solid var(--line); position: relative; }
.feat-list li::before {
  content: ''; position: absolute; left: 4px; top: 22px; width: 16px; height: 16px;
  border: 2px solid var(--gold); border-radius: 50%;
}
.feat-list li strong { color: var(--indigo); font-weight: 600; }
.feat-list li span { color: var(--text-soft); font-size: 15px; display: block; }

/* ---------- Portrait placeholder (about) ---------- */
.portrait-lg {
  aspect-ratio: 3/4; border-radius: 4px; overflow: hidden; box-shadow: var(--shadow);
  background: linear-gradient(160deg, var(--indigo-soft), var(--indigo-ink));
  display: grid; place-items: center; border: 1px solid rgba(201,162,75,0.3);
  position: relative;
}
.portrait-lg .ph { color: rgba(246,242,233,0.3); text-align: center; }
.portrait-lg .ph svg { width: 70px; height: 70px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: start; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(246,242,233,0.7); margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; padding: 14px 16px; background: rgba(246,242,233,0.06); font-family: var(--sans);
  border: 1px solid rgba(246,242,233,0.2); border-radius: 3px; color: var(--cream); font-size: 15px;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field textarea { min-height: 130px; resize: vertical; }
.contact-info .ci { padding: 20px 0; border-bottom: 1px solid rgba(246,242,233,0.15); }
.contact-info .ci .k { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-bright); }
.contact-info .ci .v { font-family: var(--serif); font-size: 22px; margin-top: 5px; }

/* ---------- Footer ---------- */
footer.foot { background: var(--indigo-ink); color: rgba(246,242,233,0.7); padding: 60px 0 34px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.foot h4 { color: var(--cream); font-size: 22px; margin-bottom: 16px; }
.foot p { font-size: 15px; max-width: 26em; }
.foot ul { list-style: none; }
.foot ul li { margin-bottom: 10px; }
.foot ul a { font-size: 15px; transition: color .2s; }
.foot ul a:hover { color: var(--gold-bright); }
.foot-bottom { border-top: 1px solid rgba(246,242,233,0.12); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; letter-spacing: 0.04em; }
.foot-note { font-size: 12px; color: rgba(246,242,233,0.4); margin-top: 10px; max-width: 40em; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Page hero (interior) ---------- */
.page-hero { background: var(--indigo); color: var(--cream); padding: 96px 0 70px; position: relative; overflow: hidden; }
.page-hero::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 70% at 85% 10%, rgba(201,162,75,0.16), transparent 60%);
}
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero h1 { color: var(--cream); font-size: clamp(38px, 5.5vw, 62px); }
.page-hero p { color: rgba(246,242,233,0.8); font-size: 19px; margin-top: 18px; max-width: 42em; font-weight: 300; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-portrait { max-width: 340px; }
  .two-col, .contact-grid, .grid-3, .grid-2, .foot-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  nav.menu {
    position: fixed; top: 74px; right: 0; bottom: 0; width: 78%; max-width: 320px;
    background: var(--indigo); flex-direction: column; align-items: flex-start;
    padding: 30px 26px; gap: 6px; transform: translateX(100%); transition: transform .3s;
    box-shadow: -20px 0 50px rgba(0,0,0,0.3);
  }
  nav.menu.open { transform: none; }
  nav.menu a { color: rgba(246,242,233,0.85); width: 100%; padding: 13px 12px; font-size: 16px; }
  nav.menu a:hover, nav.menu a.active { background: rgba(201,162,75,0.15); color: var(--gold-bright); }
  nav.menu a.active::after { display: none; }
  .menu-toggle { display: block; }
  .timeline::before { left: 60px; }
  .tl-item { grid-template-columns: 60px 1fr; gap: 18px; }
  .tl-item .yr { font-size: 20px; }
}
@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr; }
  .phase { grid-template-columns: 1fr; gap: 8px; }
  section.block { padding: 64px 0; }
}
