/* ==========================================================================
   Joan Jofra Portfolio - Warm & Elegant Design System
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  /* Color Palette - Warm, Elegant, Wine & Deep Emerald */
  --bg-main: #fcfaf7;
  --bg-surface: #ffffff;
  --bg-surface-warm: #f6f1ea;
  --bg-surface-elevated: rgba(255, 255, 255, 0.85);
  
  --primary-wine: #5c1827;
  --primary-wine-hover: #48111d;
  --primary-wine-light: #f5ebeb;
  
  --emerald-aguita: #0f3d32;
  --emerald-hover: #0a2c24;
  --emerald-light: #e8f2ef;
  
  --accent-gold: #b88646;
  --accent-gold-light: #faecd8;
  --accent-terracotta: #c85a32;
  
  --text-dark: #1e1e1e;
  --text-muted: #5a5754;
  --text-subtle: #87827c;
  --text-light: #ffffff;
  
  --border-soft: #e7dfd5;
  --border-gold: rgba(184, 134, 70, 0.28);
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(30, 20, 15, 0.04);
  --shadow-md: 0 8px 24px rgba(30, 20, 15, 0.07);
  --shadow-lg: 0 16px 40px rgba(30, 20, 15, 0.1);
  --shadow-wine: 0 10px 30px rgba(92, 24, 39, 0.15);
  
  /* Typography */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  
  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-dark);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(184, 134, 70, 0.03) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(15, 61, 50, 0.03) 0%, transparent 40%);
  overflow-x: hidden;
}

/* Typography styles */
h1, h2, h3, h4, .font-serif {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  line-height: 1.1;
}

h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.2;
}

h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  line-height: 1.3;
}

p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

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

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(252, 250, 247, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
  transition: var(--transition-smooth);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-initials {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-wine), var(--emerald-aguita));
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(92, 24, 39, 0.2);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: 0.02em;
}

.brand-tagline {
  font-size: 0.75rem;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 0.35rem 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-wine);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gold);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  background: var(--bg-surface-warm);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-full);
  padding: 3px;
}

.lang-btn {
  background: transparent;
  border: none;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.lang-btn.active {
  background: var(--primary-wine);
  color: var(--text-light);
  box-shadow: 0 2px 6px rgba(92, 24, 39, 0.25);
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text-dark);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding: 4.5rem 0 3.5rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.badge-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.pill-badge.wine {
  background: var(--primary-wine-light);
  color: var(--primary-wine);
  border: 1px solid rgba(92, 24, 39, 0.15);
}

.pill-badge.emerald {
  background: var(--emerald-light);
  color: var(--emerald-aguita);
  border: 1px solid rgba(15, 61, 50, 0.15);
}

.pill-badge.gold {
  background: var(--accent-gold-light);
  color: #8c5b1b;
  border: 1px solid rgba(184, 134, 70, 0.25);
}

.hero-title {
  color: var(--text-dark);
}

.hero-title .highlight-wine {
  color: var(--primary-wine);
  font-style: italic;
}

.hero-title .highlight-emerald {
  color: var(--emerald-aguita);
}

.hero-lead {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--primary-wine);
  color: var(--text-light);
  box-shadow: var(--shadow-wine);
}

.btn-primary:hover {
  background: var(--primary-wine-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(92, 24, 39, 0.25);
}

.btn-secondary {
  background: var(--emerald-aguita);
  color: var(--text-light);
  box-shadow: 0 8px 20px rgba(15, 61, 50, 0.18);
}

.btn-secondary:hover {
  background: var(--emerald-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 61, 50, 0.28);
}

.btn-outline {
  background: transparent;
  color: var(--text-dark);
  border-color: var(--border-soft);
}

.btn-outline:hover {
  border-color: var(--primary-wine);
  color: var(--primary-wine);
  background: var(--bg-surface);
  transform: translateY(-2px);
}

/* Hero Portrait Card */
.hero-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-portrait-card {
  position: relative;
  width: 100%;
  max-width: 380px;
  background: var(--bg-surface);
  padding: 1rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-soft);
  transition: transform 0.4s ease;
}

.hero-portrait-card:hover {
  transform: translateY(-4px);
}

.portrait-img-box {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #f0ece6;
  position: relative;
}

.portrait-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: contrast(1.05);
}

.portrait-caption {
  padding: 1.25rem 0.5rem 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.caption-name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-dark);
}

.caption-location {
  font-size: 0.85rem;
  color: var(--text-subtle);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.floating-badge {
  position: absolute;
  bottom: -15px;
  left: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-full);
  padding: 0.5rem 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-md);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-gold);
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.section {
  padding: 5rem 0;
  position: relative;
}

.section-alt {
  background-color: var(--bg-surface-warm);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-gold);
  margin-bottom: 0.75rem;
}

.section-title {
  margin-bottom: 1rem;
}

.section-description {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Two Pillars: Dual Balanced Focus
   ========================================================================== */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.pillar-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 2.75rem 2.25rem;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.pillar-card.wine-pillar {
  border-top: 5px solid var(--primary-wine);
}

.pillar-card.tech-pillar {
  border-top: 5px solid var(--emerald-aguita);
}

.pillar-icon {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}

.wine-pillar .pillar-icon {
  background: var(--primary-wine-light);
  color: var(--primary-wine);
}

.tech-pillar .pillar-icon {
  background: var(--emerald-light);
  color: var(--emerald-aguita);
}

.pillar-title {
  margin-bottom: 1rem;
  font-size: 1.75rem;
}

.pillar-desc {
  margin-bottom: 1.75rem;
  flex-grow: 1;
}

.pillar-highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-top: 1px solid var(--border-soft);
  padding-top: 1.25rem;
}

.pillar-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.pillar-highlights li svg {
  flex-shrink: 0;
  margin-top: 4px;
}

.wine-pillar .pillar-highlights li svg {
  color: var(--primary-wine);
}

.tech-pillar .pillar-highlights li svg {
  color: var(--emerald-aguita);
}

/* ==========================================================================
   Featured Project: Agüita Club de Vins
   ========================================================================== */
.project-banner {
  background: linear-gradient(135deg, #0d352b 0%, #08211b 100%);
  color: var(--text-light);
  border-radius: var(--radius-lg);
  padding: 3.5rem 3rem;
  box-shadow: 0 20px 45px rgba(13, 53, 43, 0.25);
  position: relative;
  overflow: hidden;
}

.project-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184, 134, 70, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.project-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.project-tag {
  display: inline-block;
  background: rgba(184, 134, 70, 0.25);
  color: #f7d294;
  border: 1px solid rgba(184, 134, 70, 0.4);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.project-title {
  color: var(--text-light);
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  margin-bottom: 1.25rem;
}

.project-desc {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

.project-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.feature-item {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: #f3f3f3;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.feature-item span.icon {
  color: #e5b36a;
}

.project-logo-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  text-align: center;
}

.project-logo-box img {
  max-width: 240px;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.project-logo-caption {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
}

/* ==========================================================================
   Experience Timeline (Trajectòria)
   ========================================================================== */
.timeline {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 15px;
  bottom: 15px;
  left: 20px;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary-wine), var(--emerald-aguita), var(--border-soft));
}

.timeline-item {
  position: relative;
  padding-left: 55px;
  margin-bottom: 2.75rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: 11px;
  top: 6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 4px solid var(--primary-wine);
  box-shadow: 0 0 0 4px rgba(92, 24, 39, 0.15);
  z-index: 2;
}

.timeline-item.emerald .timeline-dot {
  border-color: var(--emerald-aguita);
  box-shadow: 0 0 0 4px rgba(15, 61, 50, 0.15);
}

.timeline-card {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: 1.75rem 2rem;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.timeline-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-gold);
}

.timeline-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.timeline-role {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-dark);
}

.timeline-company {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary-wine);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.timeline-item.emerald .timeline-company {
  color: var(--emerald-aguita);
}

.timeline-period {
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--bg-surface-warm);
  color: var(--text-subtle);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}

.timeline-period.current {
  background: var(--emerald-light);
  color: var(--emerald-aguita);
  font-weight: 700;
}

.timeline-desc {
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ==========================================================================
   Education & Honors
   ========================================================================== */
.edu-honors-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.card-group-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.card-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.info-card {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.info-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.info-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.35rem;
}

.info-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
}

.info-card-year {
  font-size: 0.82rem;
  color: var(--text-subtle);
  background: var(--bg-surface-warm);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.info-card-institution {
  font-size: 0.95rem;
  color: var(--primary-wine);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.info-card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Skills & Languages Pills */
.skills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.skill-tag {
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-dark);
  transition: var(--transition-smooth);
}

.skill-tag:hover {
  border-color: var(--primary-wine);
  color: var(--primary-wine);
  background: var(--primary-wine-light);
}

.lang-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
}

.lang-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.lang-name {
  font-weight: 600;
  font-size: 0.92rem;
}

.lang-level {
  font-size: 0.8rem;
  color: var(--accent-gold);
  font-weight: 600;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.75rem;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-gold);
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-wine-light);
  color: var(--primary-wine);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-card.emerald .contact-icon {
  background: var(--emerald-light);
  color: var(--emerald-aguita);
}

.contact-card.gold .contact-icon {
  background: var(--accent-gold-light);
  color: var(--accent-gold);
}

.contact-label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-subtle);
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.contact-value {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.4;
}

.contact-value a:hover {
  color: var(--primary-wine);
  text-decoration: underline;
}

.contact-card.emerald .contact-value a:hover {
  color: var(--emerald-aguita);
}

.quick-links-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.quick-link-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.15rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.quick-link-chip:hover {
  background: var(--primary-wine);
  color: var(--text-light);
  border-color: var(--primary-wine);
  transform: translateY(-2px);
}

/* Contact Message Box / Form */
.contact-form-panel {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-md);
}

.form-title {
  margin-bottom: 0.5rem;
  font-size: 1.6rem;
}

.form-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--bg-main);
  transition: var(--transition-smooth);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--primary-wine);
  background: var(--bg-surface);
  box-shadow: 0 0 0 3px rgba(92, 24, 39, 0.1);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #181615;
  color: #a8a49e;
  padding: 4rem 0 2rem;
  border-top: 1px solid #2d2926;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand h4 {
  color: #ffffff;
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  color: #8c8780;
  font-size: 0.95rem;
  max-width: 320px;
}

.footer-col-title {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}

.footer-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-nav a {
  color: #8c8780;
  font-size: 0.92rem;
}

.footer-nav a:hover {
  color: #e5b36a;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid #2d2926;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #6e6963;
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #8c8780;
  cursor: pointer;
  background: transparent;
  border: none;
  font-size: 0.85rem;
}

.back-to-top:hover {
  color: #ffffff;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .hero-content {
    align-items: center;
  }
  
  .hero-cta-group {
    justify-content: center;
  }
  
  .pillars-grid {
    grid-template-columns: 1fr;
  }
  
  .project-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .project-features {
    grid-template-columns: 1fr;
  }
  
  .project-cta-wrap {
    display: flex;
    justify-content: center;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .edu-honors-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: var(--bg-surface);
    flex-direction: column;
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid var(--border-soft);
    gap: 1.25rem;
  }
  
  .nav-menu.open {
    display: flex;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .timeline::before {
    left: 15px;
  }
  
  .timeline-dot {
    left: 6px;
  }
  
  .timeline-item {
    padding-left: 42px;
  }
  
  .timeline-meta {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
