/* ============================================================
   Sesha Gudimella — Portfolio Site
   styles.css — All visual styling
   ============================================================ */

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

/* ── Design tokens ── */
:root {
  --bg:           #f5f6ff;
  --card:         #ffffff;
  --card-hover:   #fafaff;
  --border:       rgba(99,102,241,0.1);
  --border-hover: rgba(99,102,241,0.4);
  --accent:       #4f46e5;
  --accent-mid:   #6366f1;
  --accent-light: #818cf8;
  --accent-glow:  rgba(79,70,229,0.08);
  --green:        #059669;
  --green-light:  #10b981;
  --red:          #dc2626;
  --text:         #0f0f23;
  --text-muted:   #6b7280;
  --text-dim:     #374151;
  --shadow-sm:    0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:    0 4px 16px rgba(79,70,229,0.08), 0 1px 4px rgba(0,0,0,0.05);
  --shadow-lg:    0 8px 32px rgba(79,70,229,0.13), 0 2px 8px rgba(0,0,0,0.06);
}

/* ── Base ── */
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Nav ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 3rem;
  background: rgba(245,246,255,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(99,102,241,0.1);
  box-shadow: 0 1px 0 rgba(99,102,241,0.06);
}
.nav-brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.nav-brand-dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 0 3px rgba(79,70,229,0.15); }
.nav-brand-text { font-size: 0.9375rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text); }
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a { font-size: 0.8125rem; font-weight: 500; color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-cta { font-size: 0.8125rem; font-weight: 600; color: #fff; text-decoration: none; padding: 0.5rem 1.125rem; background: var(--accent); border-radius: 8px; transition: all 0.2s; box-shadow: 0 2px 8px rgba(79,70,229,0.3); }
.nav-cta:hover { background: #4338ca; box-shadow: 0 4px 14px rgba(79,70,229,0.4); transform: translateY(-1px); }

.page-wrap { max-width: 1100px; margin: 0 auto; padding: 0 3rem; }

/* ── Hero ── */
#hero {
  min-height: 100vh; display: grid; grid-template-columns: 1fr 380px;
  gap: 4rem; align-items: center; padding-top: 7rem; padding-bottom: 5rem; position: relative;
}
#hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 60% 50% at 10% 30%, rgba(139,92,246,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 90% 10%, rgba(79,70,229,0.1)  0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 60% 90%, rgba(5,150,105,0.07)  0%, transparent 60%);
}
#hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: radial-gradient(rgba(79,70,229,0.12) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 10%, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 10%, transparent 80%);
}
.hero-text  { position: relative; z-index: 1; }
.hero-visual { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; }

.eyebrow-pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); padding: 0.4rem 1rem;
  background: rgba(79,70,229,0.08); border: 1px solid rgba(79,70,229,0.18);
  border-radius: 100px; margin-bottom: 2rem;
}
.eyebrow-pill::before { content: ''; width: 5px; height: 5px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 6px rgba(79,70,229,0.6); }

h1.hero-headline { font-size: clamp(2.5rem, 4.5vw, 4.25rem); font-weight: 900; line-height: 1.08; letter-spacing: -0.045em; color: var(--text); margin-bottom: 1.75rem; }
.gradient-text { background: linear-gradient(120deg, #4f46e5 0%, #7c3aed 50%, #6366f1 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-sub { font-size: 1.0625rem; color: var(--text-muted); max-width: 480px; line-height: 1.75; margin-bottom: 3rem; }

/* ── Metrics strip ── */
.metrics-strip {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border); border-radius: 18px;
  overflow: hidden; background: white; box-shadow: var(--shadow-md); max-width: 560px;
}
.metric-cell { padding: 1.5rem; border-right: 1px solid var(--border); }
.metric-cell:last-child { border-right: none; }
.metric-val { font-size: 1.875rem; font-weight: 800; letter-spacing: -0.05em; line-height: 1; margin-bottom: 0.4rem; }
.metric-val.green  { color: var(--green); }
.metric-val.accent { color: var(--accent); }
.metric-val.indigo { color: #4f46e5; font-size: 1.25rem; line-height: 1.3; }
.metric-label { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-muted); }

/* ── Sections ── */
section.content-section { padding: 5.5rem 0; border-top: 1px solid rgba(99,102,241,0.1); }
.section-kicker { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.625rem; }
h2.section-heading { font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 800; letter-spacing: -0.035em; color: var(--text); margin-bottom: 0.875rem; }
.section-lead { font-size: 1rem; color: var(--text-muted); max-width: 480px; line-height: 1.7; margin-bottom: 3rem; }

/* ── Impact cards ── */
.impact-stack { display: flex; flex-direction: column; gap: 1.5rem; }
.impact-card {
  background: white; border: 1px solid var(--border); border-radius: 20px;
  padding: 2.25rem 2.5rem; position: relative; overflow: hidden;
  box-shadow: var(--shadow-sm); transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.impact-card:hover { border-color: rgba(79,70,229,0.25); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card-c1::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, #10b981, #059669); }
.card-c2::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, #6366f1, #4f46e5); }
.card-c3::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, #7c3aed, #6366f1); }
.card-c4::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, #f59e0b, #d97706); }

.ic-header { margin-bottom: 1.5rem; }
.ic-index { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.5rem; }
.ic-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 2rem; }
.ic-title { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.025em; color: var(--text); line-height: 1.3; flex: 1; }
.ic-stat { text-align: right; flex-shrink: 0; }
.ic-stat-num { font-size: 2.75rem; font-weight: 900; letter-spacing: -0.06em; line-height: 1; }
.ic-stat-num.green  { color: var(--green); }
.ic-stat-num.accent { color: var(--accent); }
.ic-stat-num.muted  { font-size: 1.5rem; line-height: 1.3; color: var(--text-muted); }
.ic-stat-num .arrow { color: var(--accent); }
.ic-stat-sub { font-size: 0.72rem; color: var(--text-muted); display: block; margin-top: 0.2rem; text-align: right; font-weight: 500; }
.ic-content-row { display: grid; grid-template-columns: 1fr 300px; gap: 2.5rem; align-items: start; margin-bottom: 1.75rem; }
.ic-body { font-size: 0.9375rem; color: var(--text-dim); line-height: 1.8; }
.ic-body p + p { margin-top: 0.875rem; }
.ic-body strong { color: var(--text); font-weight: 600; }
.ic-visual-pane { background: var(--bg); border: 1px solid rgba(99,102,241,0.1); border-radius: 14px; padding: 1.25rem; display: flex; align-items: center; justify-content: center; min-height: 180px; }
.ic-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag { font-size: 0.71rem; font-weight: 500; padding: 0.3rem 0.75rem; background: rgba(79,70,229,0.06); border: 1px solid rgba(79,70,229,0.12); border-radius: 100px; color: var(--accent); }

/* ── Writing cards ── */
.writing-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.writing-card { display: block; text-decoration: none; background: white; border: 1px solid var(--border); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-sm); transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s; }
.writing-card:hover { border-color: rgba(79,70,229,0.3); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.wc-banner { height: 80px; display: flex; align-items: center; padding: 0 1.75rem; gap: 0.875rem; }
.wc-banner-sonos { background: linear-gradient(135deg, #f0f7ff 0%, #e8efff 100%); border-bottom: 1px solid rgba(79,70,229,0.1); }
.wc-banner-dd    { background: linear-gradient(135deg, #faf5ff 0%, #ede9fe 100%); border-bottom: 1px solid rgba(124,58,237,0.12); }
.wc-icon { width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.wc-icon-sonos { background: rgba(79,70,229,0.1);  border: 1px solid rgba(79,70,229,0.2); }
.wc-icon-dd    { background: rgba(124,58,237,0.1); border: 1px solid rgba(124,58,237,0.2); }
.wc-banner-label { font-size: 0.875rem; font-weight: 700; color: var(--text); }
.wc-banner-sub   { font-size: 0.7rem; color: var(--text-muted); margin-top: 0.1rem; }
.wc-body { padding: 1.75rem; }
.wc-title { font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text); line-height: 1.4; margin-bottom: 0.875rem; }
.wc-quote { font-size: 0.875rem; font-style: italic; color: #4b5563; line-height: 1.65; border-left: 3px solid var(--accent-mid); padding: 0.75rem 1rem; border-radius: 0 8px 8px 0; background: rgba(99,102,241,0.04); margin-bottom: 1rem; }
.wc-desc { font-size: 0.875rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 1.25rem; }
.wc-link { font-size: 0.8125rem; font-weight: 600; color: var(--accent); display: inline-flex; align-items: center; gap: 0.375rem; }
.wc-link-arrow { display: inline-block; transition: transform 0.2s; }
.writing-card:hover .wc-link-arrow { transform: translateX(4px); }

/* ── Principles ── */
.principles-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.principle-card { padding: 1.75rem; background: white; border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-sm); transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s; }
.principle-card:hover { border-color: rgba(79,70,229,0.25); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.p-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.625rem; }
.p-icon { width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.p-icon-1 { background: rgba(79,70,229,0.1);  border: 1px solid rgba(79,70,229,0.2);  }
.p-icon-2 { background: rgba(5,150,105,0.1);  border: 1px solid rgba(5,150,105,0.2);  }
.p-icon-3 { background: rgba(245,158,11,0.1); border: 1px solid rgba(245,158,11,0.2); }
.p-icon-4 { background: rgba(124,58,237,0.1); border: 1px solid rgba(124,58,237,0.2); }
.p-icon-5 { background: rgba(14,165,233,0.1); border: 1px solid rgba(14,165,233,0.2); }
.p-num   { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; color: var(--text-muted); }
.p-title { font-size: 1rem; font-weight: 700; letter-spacing: -0.015em; color: var(--text); margin-bottom: 0.5rem; line-height: 1.4; }
.p-body  { font-size: 0.875rem; color: var(--text-muted); line-height: 1.7; }

/* ── Tech Stack ── */
.stack-cats { display: flex; flex-direction: column; gap: 1.75rem; }
.stack-cat-label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.75rem; padding-left: 0.25rem; }
.stack-chips { display: flex; flex-wrap: wrap; gap: 0.625rem; }
.stack-chip { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; background: white; border: 1px solid var(--border); border-radius: 100px; font-size: 0.8125rem; font-weight: 500; color: var(--text-dim); box-shadow: var(--shadow-sm); transition: all 0.2s; }
.stack-chip:hover { border-color: var(--border-hover); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.chip-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.arch-wrap { background: white; border: 1px solid var(--border); border-radius: 20px; padding: 2rem 2rem 1.5rem; box-shadow: var(--shadow-md); margin-top: 2.5rem; overflow-x: auto; }
.arch-eyebrow { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 1.25rem; }

/* ── Projects ── */
.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.project-card { background: white; border: 1px solid var(--border); border-radius: 18px; padding: 1.75rem; box-shadow: var(--shadow-sm); transition: all 0.3s; }
.project-card:hover { border-color: rgba(79,70,229,0.3); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.proj-header { display: flex; align-items: flex-start; gap: 0.875rem; margin-bottom: 1rem; }
.proj-icon { width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.proj-name { font-size: 1rem; font-weight: 700; color: var(--text); letter-spacing: -0.02em; line-height: 1.3; margin-bottom: 0.2rem; }
.proj-desc-short { font-size: 0.78rem; color: var(--text-muted); }
.proj-body { font-size: 0.875rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 1.25rem; }
.proj-footer { display: flex; align-items: center; justify-content: space-between; }
.proj-lang { display: inline-flex; align-items: center; gap: 0.375rem; font-size: 0.72rem; font-weight: 500; color: var(--text-muted); }
.proj-lang-dot { width: 10px; height: 10px; border-radius: 50%; }
.proj-link { font-size: 0.8rem; font-weight: 600; color: var(--accent); text-decoration: none; display: inline-flex; align-items: center; gap: 0.3rem; transition: gap 0.2s; }
.proj-link:hover { gap: 0.5rem; }

/* ── Connect ── */
#connect { text-align: center; display: flex; flex-direction: column; align-items: center; }
.connect-lead { font-size: 1rem; color: var(--text-muted); max-width: 440px; line-height: 1.75; margin-bottom: 2.5rem; }
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.875rem 1.75rem; border-radius: 10px; font-size: 0.9375rem; font-weight: 600; text-decoration: none; transition: all 0.2s; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 4px 14px rgba(79,70,229,0.35); }
.btn-primary:hover { background: #4338ca; box-shadow: 0 6px 20px rgba(79,70,229,0.45); transform: translateY(-2px); }

/* ── Footer ── */
footer { border-top: 1px solid rgba(99,102,241,0.1); padding: 2rem 3rem; text-align: center; font-size: 0.8rem; color: var(--text-muted); }

/* ── Animations ── */
.fade-up { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
@keyframes pulse-ring { 0% { opacity: 0.5; r: 40; } 100% { opacity: 0; r: 60; } }
.pulse-ring  { animation: pulse-ring 2.4s ease-out infinite; }
.pulse-ring2 { animation: pulse-ring 2.4s ease-out 1.2s infinite; }

/* ── Responsive ── */
@media (max-width: 900px) {
  #hero { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .ic-content-row { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  nav { padding: 1rem 1.25rem; }
  .nav-links, .nav-cta { display: none; }
  .page-wrap { padding: 0 1.25rem; }
  #hero { padding-top: 6rem; }
  .metrics-strip { grid-template-columns: 1fr; max-width: 100%; }
  .metric-cell { border-right: none; border-bottom: 1px solid var(--border); }
  .metric-cell:last-child { border-bottom: none; }
  .writing-row, .principles-grid { grid-template-columns: 1fr; }
  .ic-title-row { flex-direction: column-reverse; gap: 0.75rem; }
  .ic-stat { text-align: left; }
  footer { padding: 1.5rem 1.25rem; }
  .projects-grid { grid-template-columns: 1fr; }
}
