/* ==========================================================================
   VIGNESH PORTFOLIO — DESIGN SYSTEM & STYLES
   Color System: Background #0B1220, Card #111A2E, Text #F1F5F9, Muted #94A3B8, Accent #14B8A6
   Fonts: Space Grotesk (Headings), Inter (Body), JetBrains Mono (Code/Tags)
   ========================================================================== */

:root {
  /* Colors */
  --bg: #0B1220;
  --bg-elevated: #0f182c;
  --bg-card: #111A2E;
  --bg-card-hover: #17233d;
  --text: #F1F5F9;
  --text-muted: #94A3B8;
  --text-subtle: #64748B;
  
  --accent: #14B8A6;
  --accent-hover: #0d9488;
  --accent-light: rgba(20, 184, 166, 0.12);
  --accent-glow: rgba(20, 184, 166, 0.25);
  --accent-border: rgba(20, 184, 166, 0.35);

  --border: #1E293B;
  --border-light: #334155;

  /* Typography */
  --font-head: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  /* 8px Spacing Scale */
  --space-8: 8px;
  --space-16: 16px;
  --space-24: 24px;
  --space-32: 32px;
  --space-48: 48px;
  --space-96: 96px;

  /* Layout */
  --max-w: 1100px;
  --nav-h: 70px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.4);
  --shadow-card-hover: 0 12px 30px -4px rgba(0, 0, 0, 0.6), 0 0 15px -2px rgba(20, 184, 166, 0.15);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 20px);
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-24);
  padding-right: var(--space-24);
}

/* Section Common */
section {
  padding-top: var(--space-96);
  padding-bottom: var(--space-96);
  position: relative;
}

.section-header {
  margin-bottom: var(--space-48);
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--space-8);
}

.section-eyebrow::after {
  content: "";
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--accent-border);
}

.section-title {
  font-family: var(--font-head);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 650px;
  margin-top: var(--space-8);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-normal);
  text-align: center;
  white-space: nowrap;
}

.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn-primary {
  background-color: var(--accent);
  color: #07101C;
  font-weight: 600;
  border: 1px solid var(--accent);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-outline {
  background-color: transparent;
  color: var(--text);
  border: 1px solid var(--border-light);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  background-color: var(--accent-light);
}

.btn-accent-outline {
  background-color: transparent;
  color: var(--accent);
  border: 1px solid var(--accent-border);
}

.btn-accent-outline:hover {
  background-color: var(--accent);
  color: #07101C;
  border-color: var(--accent);
  box-shadow: 0 4px 12px var(--accent-glow);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
  border-radius: var(--radius-sm);
}

/* ─────────────────────────────────────────────────────────────
   NAVBAR (STICKY)
   ───────────────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  background: rgba(11, 18, 32, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.navbar.scrolled {
  border-bottom-color: var(--border-light);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

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

.nav-logo {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nav-logo-dot {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-32);
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 4px 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--accent);
  border-radius: 2px;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: var(--space-16);
}

/* Hamburger button */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition-normal);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-light);
  padding: var(--space-24);
  flex-direction: column;
  gap: var(--space-16);
  z-index: 999;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
}

.mobile-menu a {
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.mobile-menu .btn {
  margin-top: var(--space-8);
  width: 100%;
}

/* ─────────────────────────────────────────────────────────────
   HERO SECTION
   ───────────────────────────────────────────────────────────── */
#hero {
  padding-top: calc(var(--nav-h) + var(--space-96));
  padding-bottom: var(--space-96);
  min-height: 82vh;
  display: flex;
  align-items: center;
}

.hero-badge-wrap {
  margin-bottom: var(--space-24);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background-color: var(--bg-card);
  border: 1px solid var(--accent-border);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text);
}

.status-dot-pulse {
  position: relative;
  width: 8px;
  height: 8px;
}

.status-dot-pulse::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background-color: var(--accent);
}

.status-dot-pulse::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background-color: var(--accent);
  opacity: 0.4;
  animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(0.9); opacity: 0; }
}

.hero-name {
  font-family: var(--font-head);
  font-size: 56px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: var(--space-16);
}

.hero-title {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: var(--space-16);
}

.hero-pitch {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 680px;
  margin-bottom: var(--space-32);
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-16);
  margin-bottom: var(--space-48);
}

.hero-socials {
  display: flex;
  align-items: center;
  gap: var(--space-16);
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.social-link svg {
  width: 18px;
  height: 18px;
}

.social-link:hover {
  color: var(--accent);
  border-color: var(--accent-border);
  background-color: var(--accent-light);
  transform: translateY(-2px);
}

/* ─────────────────────────────────────────────────────────────
   PROJECTS SECTION (DIRECTLY AFTER HERO)
   ───────────────────────────────────────────────────────────── */
#projects {
  background-color: var(--bg);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-32);
}

.project-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
  box-shadow: var(--shadow-card);
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-light);
  box-shadow: var(--shadow-card-hover);
}

.project-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0d1527;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.project-thumb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  transition: transform var(--transition-normal);
}

.project-card:hover .project-thumb-img {
  transform: scale(1.03);
}

.project-thumb-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #0d182e 0%, #111A2E 50%, #0d222e 100%);
  padding: var(--space-24);
  text-align: center;
}

.project-thumb-fallback::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(20, 184, 166, 0.12), transparent 60%);
}

.thumb-tag-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-8);
  background: rgba(11, 18, 32, 0.6);
}

.thumb-display-name {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  max-width: 90%;
}

.project-card-body {
  padding: var(--space-24);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

.project-category {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  font-weight: 500;
}

.project-title {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-8);
  line-height: 1.3;
}

.project-summary {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-16);
  flex-grow: 1;
}

.project-metric {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #38bdf8;
  background-color: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-16);
  width: fit-content;
}

.project-metric svg {
  width: 14px;
  height: 14px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  margin-bottom: var(--space-24);
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.tech-tag:hover {
  border-color: var(--accent-border);
  color: var(--accent);
}

.project-footer-actions {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  padding-top: var(--space-16);
  border-top: 1px solid var(--border);
}

/* More Projects Toggle Section */
.more-projects-wrapper {
  margin-top: var(--space-48);
}

.toggle-more-btn {
  margin: 0 auto;
}

.more-projects-grid {
  display: none;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-24);
  margin-top: var(--space-32);
}

.more-projects-grid.visible {
  display: grid;
}

/* ─────────────────────────────────────────────────────────────
   EXPERIENCE SECTION (VERTICAL TIMELINE)
   ───────────────────────────────────────────────────────────── */
#experience {
  background-color: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.experience-timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline-item {
  position: relative;
  padding-left: var(--space-48);
}

.timeline-line {
  position: absolute;
  top: 8px;
  bottom: 0;
  left: 11px;
  width: 2px;
  background-color: var(--border-light);
}

.timeline-marker {
  position: absolute;
  top: 8px;
  left: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--bg);
  border: 3px solid var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}

.exp-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-32);
  box-shadow: var(--shadow-card);
}

.exp-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-8);
  margin-bottom: var(--space-16);
}

.exp-role {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

.exp-company-row {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  font-size: 16px;
  color: var(--accent);
  font-weight: 500;
  margin-top: 4px;
}

.exp-period {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.exp-summary {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: var(--space-24);
  line-height: 1.6;
}

.exp-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
  margin-bottom: var(--space-32);
}

.exp-bullet-item {
  position: relative;
  padding-left: var(--space-24);
  font-size: 15px;
  color: var(--text);
  line-height: 1.6;
}

.exp-bullet-item::before {
  content: "▹";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-size: 16px;
}

.exp-bullet-item strong {
  color: var(--accent);
  font-weight: 600;
}

.exp-delivered-box {
  background-color: rgba(11, 18, 32, 0.5);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-24);
}

.exp-delivered-title {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-16);
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.exp-delivered-title svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

.sites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: var(--space-12);
  align-items: stretch;
}

.site-chip {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
  gap: 4px;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.site-chip:hover {
  border-color: var(--accent-border);
  transform: translateY(-2px);
  background-color: var(--accent-light);
}

.site-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

.site-name-row span,
.site-domain {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-name-row svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.site-chip:hover .site-name-row svg {
  color: var(--accent);
  transform: translate(2px, -2px);
}

.site-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

@media (max-width: 560px) {
  .sites-grid {
    grid-template-columns: 1fr;
  }
}

/* ─────────────────────────────────────────────────────────────
   SKILLS SECTION (GROUPED TAGS, NO BARS)
   ───────────────────────────────────────────────────────────── */
#skills {
  background-color: var(--bg);
}

.skills-categories {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-24);
}

.skill-category-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-24);
  transition: border-color var(--transition-fast);
}

.skill-category-card:hover {
  border-color: var(--border-light);
}

.skill-cat-header {
  margin-bottom: var(--space-16);
}

.skill-cat-title {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: var(--space-8);
  margin-bottom: 4px;
}

.skill-cat-title svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

.skill-cat-desc {
  font-size: 14px;
  color: var(--text-muted);
}

.skill-tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
}

.skill-pill {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.skill-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
  background-color: var(--accent-light);
  transform: translateY(-2px);
}

/* ─────────────────────────────────────────────────────────────
   ABOUT + EDUCATION SECTION
   ───────────────────────────────────────────────────────────── */
#about {
  background-color: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-edu-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-48);
}

.about-bio-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-32);
}

.about-text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: var(--space-24);
}

.about-highlights {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}

.highlight-row {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  font-size: 14px;
  color: var(--text);
}

.highlight-row svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
  flex-shrink: 0;
}

/* Education Cards */
.edu-cards-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
}

.edu-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-24);
  position: relative;
  transition: border-color var(--transition-fast);
}

.edu-card:hover {
  border-color: var(--border-light);
}

.edu-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-8);
}

.edu-degree {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.edu-score-badge {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background-color: var(--accent-light);
  border: 1px solid var(--accent-border);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.edu-school {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.edu-period {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-subtle);
  margin-bottom: var(--space-8);
}

.edu-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ─────────────────────────────────────────────────────────────
   CONTACT SECTION
   ───────────────────────────────────────────────────────────── */
#contact {
  background-color: var(--bg);
  text-align: center;
}

.contact-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-48) var(--space-32);
  max-width: 760px;
  margin: 0 auto;
  box-shadow: var(--shadow-card);
}

.contact-eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-8);
}

.contact-headline {
  font-family: var(--font-head);
  font-size: 36px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-16);
}

.contact-body {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto var(--space-32) auto;
  line-height: 1.6;
}

.contact-action-group {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-16);
  margin-bottom: var(--space-32);
}

.contact-direct-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-24);
  padding-top: var(--space-24);
  border-top: 1px solid var(--border);
}

.contact-item-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.contact-item-link:hover {
  color: var(--accent);
}

.contact-item-link svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

/* ─────────────────────────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────────────────────────── */
.footer {
  background-color: var(--bg);
  border-top: 1px solid var(--border);
  padding: var(--space-32) 0;
  font-size: 14px;
  color: var(--text-muted);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-16);
}

.footer-author {
  color: var(--text);
  font-weight: 500;
}

.footer-author span {
  color: var(--accent);
}

/* ─────────────────────────────────────────────────────────────
   CASE STUDY MODAL
   ───────────────────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(7, 12, 22, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-24);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  transform: translateY(20px);
  transition: transform 0.25s ease;
  position: relative;
}

.modal-backdrop.active .modal-dialog {
  transform: translateY(0);
}

.modal-header {
  padding: var(--space-24) var(--space-32);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: sticky;
  top: 0;
  background-color: var(--bg-card);
  z-index: 10;
}

.modal-category {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.modal-title {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.modal-body {
  padding: var(--space-32);
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
}

.case-section-title {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-8);
  display: flex;
  align-items: center;
  gap: 6px;
}

.case-section-body {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

.case-result-box {
  background-color: var(--accent-light);
  border: 1px solid var(--accent-border);
  padding: var(--space-16);
  border-radius: var(--radius-sm);
  color: var(--text);
}

.modal-footer {
  padding: var(--space-20) var(--space-32);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-12);
  background-color: rgba(11, 18, 32, 0.5);
}

/* ─────────────────────────────────────────────────────────────
   SCROLL FADE ANIMATION
   ───────────────────────────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─────────────────────────────────────────────────────────────
   RESPONSIVENESS (MOBILE-FIRST BREAKPOINTS)
   Desktop Max: 1100px. Collapses at 768px. Phone down to 360px.
   ───────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .about-edu-grid {
    grid-template-columns: 1fr;
  }
  .skills-categories {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --space-96: 56px;
  }

  section {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .nav-links,
  .nav-cta .btn {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-menu {
    display: flex;
  }

  .hero-name {
    font-size: 36px;
  }

  .hero-title {
    font-size: 20px;
  }

  .hero-pitch {
    font-size: 16px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .section-title {
    font-size: 28px;
  }

  .projects-grid,
  .more-projects-grid {
    grid-template-columns: 1fr;
    gap: var(--space-24);
  }

  .timeline-item {
    padding-left: var(--space-32);
  }

  .timeline-line {
    left: 7px;
  }

  .timeline-marker {
    left: 0;
  }

  .exp-card {
    padding: var(--space-20);
  }

  .exp-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .modal-dialog {
    margin: var(--space-12);
  }

  .modal-header,
  .modal-body {
    padding: var(--space-20);
  }

  .contact-action-group .btn {
    width: 100%;
  }
}

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .fade-up {
    opacity: 1 !important;
    transform: none !important;
  }
}
