/* ============================================================
   Srini Gondi — Portfolio
   Oracle Redwood-inspired theme
   Brand: Oracle Red #C74634 · Oracle Sans (fallback) + Georgia
   ============================================================ */

:root {
  /* Redwood warm-neutral palette */
  --bg:         #ffffff;
  --bg-soft:    #faf8f6;   /* warm off-white section band */
  --bg-dark:    #1b1917;   /* Oracle dark band (stats/footer) */
  --panel:      #ffffff;
  --panel-2:    #f6f3f1;
  --line:       #e6e1dc;
  --line-dark:  #33302c;
  --text:       #201d1a;   /* warm near-black */
  --text-dim:   #5f5b56;
  --text-bright:#12100e;
  --text-invert:#f5f2ef;   /* text on dark bands */
  --text-invert-dim:#b6b0a9;

  /* Oracle brand */
  --accent:     #c74634;   /* Oracle Red */
  --accent-dim: #a5372a;   /* darker red for hover */
  --accent-soft:#fbeeeb;   /* red tint wash */
  --accent-glow: rgba(199, 70, 52, 0.10);

  --shadow:     0 20px 45px -28px rgba(45, 25, 20, 0.35);
  --shadow-sm:  0 8px 24px -18px rgba(45, 25, 20, 0.30);
  --radius:     14px;
  --maxw:       1080px;
  --font:       'Oracle Sans', 'Inter', system-ui, -apple-system, sans-serif;
  --serif:      Georgia, 'Times New Roman', 'Times', serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

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

a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-dim); }
strong { color: var(--text-bright); font-weight: 600; }

/* ---------- Background decor ---------- */
.bg-grid {
  position: fixed; inset: 0; z-index: -2;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.5;
  mask-image: radial-gradient(ellipse 75% 55% at 50% 0%, #000 10%, transparent 70%);
}
.bg-glow {
  position: fixed; top: -18%; left: 50%; transform: translateX(-50%);
  width: 1000px; height: 640px; z-index: -1;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 62%);
  filter: blur(30px);
  pointer-events: none;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 50px);
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid transparent;
  transition: padding .3s, background .3s, border-color .3s, box-shadow .3s;
}
.nav.scrolled {
  padding: 12px clamp(20px, 5vw, 50px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 26px -22px rgba(45, 25, 20, 0.5);
}
.nav__logo-mark {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px;
  background: var(--accent);
  border-radius: 11px;
  color: #fff;
  font-family: var(--serif); font-weight: 700; font-size: 17px; letter-spacing: .5px;
  transition: transform .25s, background .25s;
}
.nav__logo-mark:hover { transform: translateY(-3px); background: var(--accent-dim); }

.nav__links { display: flex; align-items: center; gap: clamp(18px, 3vw, 34px); }
.nav__links a {
  color: var(--text); font-size: 14px; font-weight: 500;
  transition: color .2s; letter-spacing: .2px;
}
.nav__links a:hover { color: var(--accent); }
.nav__num { font-family: var(--serif); color: var(--accent); font-size: 13px; margin-right: 4px; font-style: italic; }
.nav__resume {
  background: var(--accent); color: #fff !important;
  padding: 9px 18px; border-radius: 8px; font-size: 13px !important; font-weight: 600;
  transition: background .2s, transform .2s !important;
}
.nav__resume:hover { background: var(--accent-dim); transform: translateY(-2px); }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav__toggle span { width: 26px; height: 2px; background: var(--accent); border-radius: 2px; transition: .3s; }

/* ---------- Layout ---------- */
main { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 5vw, 40px); }
.section { padding: clamp(70px, 12vh, 120px) 0 0; }
.section__title {
  display: flex; align-items: center; gap: 12px;
  font-size: clamp(24px, 4vw, 32px); color: var(--text-bright); font-weight: 700;
  margin-bottom: 40px; white-space: nowrap; letter-spacing: -.5px;
}
.section__title::after {
  content: ""; height: 1px; width: 100%; max-width: 300px;
  background: var(--line); margin-left: 8px;
}
.section__num { font-family: var(--serif); color: var(--accent); font-size: 20px; font-weight: 400; font-style: italic; }
.subsection__title { margin: 60px 0 26px; font-size: 21px; color: var(--text-bright); font-weight: 700; letter-spacing: -.3px; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh; display: flex; flex-direction: column; justify-content: center;
  max-width: 880px;
}
.hero__intro {
  color: var(--accent); font-family: var(--serif); font-style: italic;
  font-size: 20px; margin-bottom: 20px;
}
.hero__name {
  font-size: clamp(46px, 9vw, 92px); font-weight: 800; line-height: 1.02;
  color: var(--text-bright); letter-spacing: -2.5px;
}
.hero__tagline {
  font-size: clamp(32px, 6.5vw, 66px); font-weight: 800; line-height: 1.06;
  color: var(--text-dim); letter-spacing: -2px; margin-top: 6px;
}
.hero__name::after {
  content: ""; display: block; width: 88px; height: 5px;
  background: var(--accent); border-radius: 3px; margin-top: 22px;
}
.hero__blurb { margin-top: 26px; max-width: 620px; color: var(--text-dim); font-size: 18px; }
.hero__cta { display: flex; gap: 16px; margin-top: 42px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-family: var(--font); font-size: 15px; font-weight: 600;
  padding: 15px 28px; border-radius: 8px; transition: transform .2s, background .2s, box-shadow .2s, color .2s;
  cursor: pointer; letter-spacing: .2px;
}
.btn--primary { background: var(--accent); color: #fff !important; }
.btn--primary:hover { background: var(--accent-dim); transform: translateY(-3px); box-shadow: 0 14px 30px -14px var(--accent); }
.btn--ghost { border: 1.5px solid var(--accent); color: var(--accent) !important; }
.btn--ghost:hover { background: var(--accent-soft); transform: translateY(-3px); }
.btn--lg { padding: 18px 44px; font-size: 16px; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 3fr 2fr; gap: 50px; align-items: start; }
.about__text p { margin-bottom: 16px; color: var(--text-dim); }
.about__text strong { color: var(--text); }
.about__tech {
  list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; margin-top: 12px;
}
.about__tech li { position: relative; padding-left: 22px; font-size: 15px; color: var(--text-dim); font-weight: 500; }
.about__tech li::before { content: "▪"; position: absolute; left: 0; color: var(--accent); }

.about__card {
  position: relative; background: var(--panel);
  border: 1px solid var(--line); border-top: 4px solid var(--accent);
  border-radius: var(--radius); padding: 34px 28px;
  text-align: center; box-shadow: var(--shadow);
}
.about__initials {
  display: inline-grid; place-items: center; width: 86px; height: 86px; margin-bottom: 18px;
  border-radius: 22px; background: var(--accent); color: #fff;
  font-family: var(--serif); font-weight: 700; font-size: 32px;
}
.about__role { color: var(--text-bright); font-weight: 700; font-size: 20px; }
.about__company { color: var(--accent); font-weight: 600; font-size: 15px; margin-top: 4px; }
.about__loc { color: var(--text-dim); font-size: 14px; margin-top: 8px; }

/* ---------- Stats (Oracle dark band) ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  margin: 90px 0 0; background: var(--bg-dark); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
.stat {
  padding: 40px 20px; text-align: center;
  border-right: 1px solid var(--line-dark); transition: background .25s;
}
.stat:last-child { border-right: 0; }
.stat:hover { background: #241f1c; }
.stat__num { display: block; font-size: clamp(38px, 5vw, 52px); font-weight: 800; color: var(--accent); font-family: var(--serif); line-height: 1; }
.stat__label { display: block; margin-top: 12px; font-size: 14px; color: var(--text-invert-dim); letter-spacing: .3px; }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 28px; }
.timeline::before {
  content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(var(--accent), var(--line));
}
.tl { position: relative; margin-bottom: 46px; }
.tl__marker {
  position: absolute; left: -28px; top: 6px; width: 13px; height: 13px; border-radius: 50%;
  background: var(--accent); border: 2px solid var(--bg); box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px var(--line);
}
.tl__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.tl__role { font-size: 20px; color: var(--text-bright); font-weight: 700; letter-spacing: -.3px; }
.tl__at { color: var(--accent); font-weight: 600; }
.tl__date { font-family: var(--serif); font-style: italic; font-size: 14px; color: var(--text-dim); white-space: nowrap; }
.tl__meta { font-size: 14px; color: var(--text-dim); margin: 4px 0 14px; font-weight: 500; }
.tl__points { list-style: none; display: grid; gap: 10px; }
.tl__points li { position: relative; padding-left: 24px; color: var(--text-dim); font-size: 16px; }
.tl__points li::before { content: "▪"; position: absolute; left: 0; color: var(--accent); }

/* ---------- Earlier experience ---------- */
.earlier { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.earlier__item {
  background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: 10px; padding: 20px;
  display: flex; flex-direction: column; gap: 5px; transition: transform .25s, box-shadow .25s;
}
.earlier__item:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.earlier__co { color: var(--accent); font-weight: 600; font-size: 13px; }
.earlier__role { color: var(--text-bright); font-weight: 700; font-size: 15px; }
.earlier__note { color: var(--text-dim); font-size: 14px; }

/* ---------- Skills ---------- */
.skills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.skill-card {
  background: var(--panel);
  border: 1px solid var(--line); border-top: 3px solid var(--accent);
  border-radius: var(--radius); padding: 28px 24px;
  transition: transform .25s, box-shadow .25s;
}
.skill-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.skill-card h3 { color: var(--text-bright); font-size: 18px; margin-bottom: 16px; font-weight: 700; }
.skill-card ul { list-style: none; display: grid; gap: 10px; }
.skill-card li { position: relative; padding-left: 22px; font-size: 15px; color: var(--text-dim); }
.skill-card li::before { content: "▪"; position: absolute; left: 0; color: var(--accent); }

/* ---------- Certs ---------- */
.certs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cert {
  background: var(--bg-soft); border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: 10px; padding: 20px 22px;
}
.cert__title { display: block; color: var(--text-bright); font-weight: 700; font-size: 16px; }
.cert__sub { display: block; color: var(--text-dim); font-family: var(--serif); font-style: italic; font-size: 14px; margin-top: 5px; }

/* ---------- Contact ---------- */
.section--contact { text-align: center; max-width: 640px; margin: 0 auto; padding-top: clamp(90px, 15vh, 150px); }
.contact__pre { font-family: var(--serif); font-style: italic; color: var(--accent); font-size: 20px; margin-bottom: 16px; }
.contact__pre .section__num { font-size: 20px; }
.contact__title { font-size: clamp(42px, 8vw, 68px); color: var(--text-bright); font-weight: 800; letter-spacing: -2px; }
.contact__text { color: var(--text-dim); margin: 22px 0 38px; font-size: 18px; }

/* ---------- Footer (Oracle dark band) ---------- */
.footer {
  text-align: center; padding: 60px 20px 44px; margin-top: 90px;
  background: var(--bg-dark); color: var(--text-invert);
  border-top: 4px solid var(--accent);
}
.footer__social { display: flex; gap: 26px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }
.footer__social a { color: var(--text-invert-dim); font-size: 14px; font-weight: 500; }
.footer__social a:hover { color: var(--accent); }
.footer__built { color: var(--text-invert-dim); font-family: var(--serif); font-style: italic; font-size: 14px; opacity: .8; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.hero .reveal { transition-delay: .05s; }
.hero .reveal:nth-child(2) { transition-delay: .12s; }
.hero .reveal:nth-child(3) { transition-delay: .2s; }
.hero .reveal:nth-child(4) { transition-delay: .3s; }
.hero .reveal:nth-child(5) { transition-delay: .4s; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .about__aside { max-width: 320px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line-dark); }
  .skills, .earlier, .certs { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav__links { position: fixed; inset: 0 0 0 auto; width: min(75vw, 320px);
    flex-direction: column; justify-content: center; gap: 30px;
    background: var(--bg-soft); border-left: 1px solid var(--line);
    transform: translateX(100%); transition: transform .35s; padding: 40px; }
  .nav__links.open { transform: none; }
  .nav__links a { font-size: 17px; }
  .nav__toggle { display: flex; z-index: 60; }
  .nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle.open span:nth-child(2) { opacity: 0; }
  .nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .skills, .earlier, .certs, .about__tech { grid-template-columns: 1fr; }
  .tl__head { flex-direction: column; gap: 2px; }
}
@media (max-width: 460px) {
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0 !important; border-bottom: 1px solid var(--line-dark); }
  .stat:last-child { border-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
