/* === AVNISH TOLWANI PORTFOLIO — GLOBAL STYLES === */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Playfair+Display:wght@400;500;600;700&display=swap');

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

:root {
  --bg: #FAFAF8;
  --surface: #FFFFFF;
  --text: #1A1A1A;
  --text-secondary: #5A5A5A;
  --muted: #999;
  --accent: #C45D3E;
  --accent-hover: #A94E34;
  --accent-soft: rgba(196,93,62,0.07);
  --dark: #1A1A1A;
  --border: rgba(0,0,0,0.07);
  --radius: 8px;
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.06);
  --max-width: 1080px;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--bg); color: var(--text); line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }

/* === NAVIGATION === */
.nav {
  background: var(--dark);
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.nav-brand {
  color: white;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.3px;
  text-decoration: none;
}
.nav-brand span { color: var(--accent); }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: color 0.2s;
  text-transform: uppercase;
}
.nav-links a:hover, .nav-links a.active { color: white; }
.nav-toggle { display: none; background: none; border: none; color: white; font-size: 24px; cursor: pointer; }

/* === LAYOUT === */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }

/* === TYPOGRAPHY === */
.display-1 {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.5px;
}
.display-2 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 400;
  line-height: 1.25;
}
.section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-heading {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  margin-bottom: 16px;
  line-height: 1.3;
}
.text-muted { color: var(--text-secondary); }
.text-sm { font-size: 14px; }
.text-xs { font-size: 12px; }

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-body);
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-hover); color: white; transform: translateY(-1px); }
.btn-outline { background: transparent; border: 1.5px solid var(--dark); color: var(--dark); }
.btn-outline:hover { background: var(--dark); color: white; }
.btn-dark { background: var(--dark); color: white; }
.btn-dark:hover { background: #333; color: white; transform: translateY(-1px); }

/* === HERO === */
.hero {
  padding: 100px 0 80px;
  text-align: center;
}
.hero .display-1 { margin-bottom: 16px; }
.hero .subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 32px;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* === PROJECT CARDS === */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.25s;
  text-decoration: none;
  color: var(--text);
  display: block;
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  color: var(--text);
}
.project-card-visual {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.project-card-body { padding: 24px; }
.project-card-tag {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}
.project-card-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 6px;
  line-height: 1.3;
}
.project-card-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.project-card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-top: 12px;
}
.project-card.featured {
  grid-column: 1 / -1;
}
.project-card.featured .project-card-visual { height: 260px; }

/* === ABOUT TEASER === */
.about-teaser {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}
.about-teaser-text { flex: 1; }
.about-teaser-text p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.75;
}
.about-teaser-sidebar {
  width: 280px;
  flex-shrink: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.about-teaser-sidebar h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 12px;
  font-weight: 700;
}
.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.skill-tag {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
}

/* === FOOTER === */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.5);
  padding: 40px 0;
  text-align: center;
  font-size: 13px;
}
.footer a { color: rgba(255,255,255,0.7); }
.footer a:hover { color: white; }
.footer-links { margin-bottom: 12px; display: flex; justify-content: center; gap: 24px; }
.footer-copy { font-size: 11px; color: rgba(255,255,255,0.3); }

/* === CASE STUDY === */
.cs-hero {
  padding: 80px 0 60px;
  text-align: center;
}
.cs-hero .section-label { margin-bottom: 16px; }
.cs-hero .display-2 { max-width: 700px; margin: 0 auto 12px; }
.cs-hero .subtitle { font-size: 16px; color: var(--text-secondary); max-width: 580px; margin: 0 auto; }

.cs-meta-strip {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}
.cs-meta-item { text-align: center; }
.cs-meta-label { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.cs-meta-value { font-size: 14px; font-weight: 600; margin-top: 2px; }

.cs-content { max-width: 680px; margin: 0 auto; }
.cs-content h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  color: var(--accent);
  margin: 48px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent-soft);
}
.cs-content h2:first-child { margin-top: 0; }
.cs-content p { margin-bottom: 14px; font-size: 15px; color: #333; }

.cs-highlight {
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 20px 0;
}
.cs-highlight h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 8px;
  font-weight: 700;
}
.cs-highlight p { font-size: 14px; color: var(--text); margin-bottom: 8px; }
.cs-highlight p:last-child { margin-bottom: 0; }

.cs-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}
.cs-tool-tag {
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
}

.cs-outcomes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 20px 0;
}
.cs-outcome {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}
.cs-outcome-num { font-size: 32px; font-weight: 700; color: var(--accent); }
.cs-outcome-label { font-size: 12px; color: var(--text-secondary); margin-top: 4px; line-height: 1.4; }

.cs-cta {
  background: var(--dark);
  color: white;
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  margin-top: 48px;
}
.cs-cta h3 { font-family: var(--font-display); font-size: 22px; margin-bottom: 8px; font-weight: 400; }
.cs-cta p { font-size: 14px; opacity: 0.6; margin-bottom: 20px; }

/* === ABOUT PAGE === */
.about-content { max-width: 680px; margin: 0 auto; }
.about-content p { font-size: 15px; color: #333; margin-bottom: 16px; line-height: 1.8; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 32px 0; }
.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.about-card h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 12px;
  font-weight: 700;
}
.about-card p { font-size: 14px; color: var(--text-secondary); margin-bottom: 6px; line-height: 1.6; }
.about-card p:last-child { margin-bottom: 0; }

/* === CONTACT PAGE === */
.contact-info { max-width: 480px; margin: 0 auto; text-align: center; }
.contact-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.contact-item:last-child { border-bottom: none; }
.contact-item .label { font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); margin-bottom: 4px; }
.contact-item .value { font-size: 18px; font-weight: 500; }
.contact-item .value a { color: var(--text); }
.contact-item .value a:hover { color: var(--accent); }

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .display-1 { font-size: 34px; }
  .display-2 { font-size: 28px; }
  .section-heading { font-size: 26px; }
  .hero { padding: 60px 0 48px; }
  .section { padding: 48px 0; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-card.featured .project-card-visual { height: 200px; }
  .about-teaser { flex-direction: column; gap: 24px; }
  .about-teaser-sidebar { width: 100%; }
  .about-grid { grid-template-columns: 1fr; }
  .cs-outcomes { grid-template-columns: 1fr; }
  .cs-meta-strip { gap: 24px; }
  .nav-links { display: none; position: absolute; top: 60px; left: 0; right: 0; background: var(--dark); flex-direction: column; padding: 16px 24px; gap: 16px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
}
