/* ============================================================
   DESIGN SYSTEM — P Madhulika Portfolio
   Clean · Minimal · Modern
   ============================================================ */

/* ---------- Custom Properties ---------- */
:root {
  /* Color Palette */
  --bg:           #0a0a0f;
  --bg-alt:       #0f0f1a;
  --surface:      #13131f;
  --surface-2:    #1a1a2e;
  --border:       rgba(255, 255, 255, 0.07);
  --border-hover: rgba(255, 255, 255, 0.14);

  --text-primary:   #f0f0f5;
  --text-secondary: #9090a8;
  --text-muted:     #55556a;

  --accent:       #7f7cff;
  --accent-soft:  rgba(127, 124, 255, 0.12);
  --accent-mid:   rgba(127, 124, 255, 0.25);
  --accent-glow:  rgba(127, 124, 255, 0.08);

  --badge-design: rgba(255, 174, 100, 0.15);
  --badge-design-text: #ffae64;
  --badge-dev:    rgba(100, 210, 255, 0.15);
  --badge-dev-text: #64d2ff;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Fraunces', Georgia, serif;

  /* Spacing */
  --space-xs:   0.25rem;
  --space-sm:   0.5rem;
  --space-md:   1rem;
  --space-lg:   1.5rem;
  --space-xl:   2.5rem;
  --space-2xl:  4rem;
  --space-3xl:  6rem;
  --space-4xl:  8rem;

  /* Radius */
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  18px;
  --radius-xl:  24px;
  --radius-full: 9999px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.42, 0, 0.58, 1);
  --duration-fast: 180ms;
  --duration-base: 300ms;
  --duration-slow: 600ms;

  /* Shadows */
  --shadow-sm:  0 2px 12px rgba(0, 0, 0, 0.3);
  --shadow-md:  0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg:  0 20px 60px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 0 1px var(--accent-mid), 0 8px 32px var(--accent-glow);

  /* Layout */
  --max-width: 1100px;
  --nav-h:     68px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- Utility ---------- */
.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-xl);
}

.section {
  padding-block: var(--space-4xl);
}

.section-alt {
  background-color: var(--bg-alt);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-lg);
}

.section-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--accent);
}

.section-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 300;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: var(--space-xl);
}

.section-heading em {
  font-style: italic;
  color: var(--accent);
}

.section-intro {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: var(--space-2xl);
}

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Stagger children ---------- */
.reveal:nth-child(2) { transition-delay: 80ms; }
.reveal:nth-child(3) { transition-delay: 160ms; }
.reveal:nth-child(4) { transition-delay: 240ms; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background var(--duration-base) var(--ease-in-out),
              backdrop-filter var(--duration-base) var(--ease-in-out),
              border-color var(--duration-base);
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}

.nav-inner {
  max-width: var(--max-width);
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--space-xl);
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--text-primary);
  flex-shrink: 0;
  transition: color var(--duration-fast);
}

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

.nav-links {
  display: flex;
  gap: var(--space-xl);
  margin-left: auto;
}

.nav-link {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color var(--duration-fast);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width var(--duration-base) var(--ease-out);
}

.nav-link:hover { color: var(--text-primary); }
.nav-link:hover::after { width: 100%; }

.nav-cta {
  margin-left: var(--space-lg);
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-full);
  background: var(--accent-soft);
  border: 1px solid var(--accent-mid);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: background var(--duration-fast), box-shadow var(--duration-fast);
}

.nav-cta:hover {
  background: var(--accent-mid);
  box-shadow: var(--shadow-glow);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  margin-left: auto;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-primary);
  transition: transform var(--duration-base), opacity var(--duration-base);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(10, 10, 15, 0.97);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-base);
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  text-align: center;
}

.mobile-nav-link {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--text-secondary);
  transition: color var(--duration-fast);
}

.mobile-nav-link:hover { color: var(--text-primary); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all var(--duration-base) var(--ease-out);
  text-decoration: none;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 0 var(--accent-mid);
}

.btn-primary:hover {
  background: #6a67ef;
  box-shadow: 0 4px 20px rgba(127, 124, 255, 0.4);
  transform: translateY(-1px);
}

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

.btn-ghost:hover {
  background: var(--surface);
  color: var(--text-primary);
  border-color: var(--border-hover);
}

.btn-lg {
  padding: 0.9rem 2.2rem;
  font-size: 1rem;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-h);
}

/* Subtle grid background */
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to bottom, transparent 0%, var(--bg) 90%),
    linear-gradient(rgba(127, 124, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127, 124, 255, 0.03) 1px, transparent 1px);
  background-size: 100% 100%, 48px 48px, 48px 48px;
  z-index: 0;
}

/* Radial glow */
.hero::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(127, 124, 255, 0.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-block: var(--space-3xl);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  padding: 0.35rem 0.9rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.4); }
  50% { box-shadow: 0 0 0 5px rgba(74, 222, 128, 0); }
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: var(--space-xl);
  max-width: 760px;
}

.hero-headline em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 500px;
  margin-bottom: var(--space-xl);
  line-height: 1.7;
}

.hero-sub strong {
  color: var(--text-primary);
  font-weight: 500;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-2xl);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero-scroll-hint {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  animation: float 3s ease-in-out infinite;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--space-3xl);
  align-items: start;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  font-size: 1.02rem;
  max-width: 560px;
}

.about-text p strong { color: var(--text-primary); font-weight: 500; }
.about-text p em { color: var(--accent); font-style: italic; }

.about-stats {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
  padding: var(--space-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.stat { text-align: center; }

.stat-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 300;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

.about-card {
  position: sticky;
  top: calc(var(--nav-h) + var(--space-xl));
}

.about-card-inner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  transition: border-color var(--duration-base);
}

.about-card-inner:hover {
  border-color: var(--border-hover);
}

.about-avatar {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  border: 1px solid var(--accent-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--accent);
  margin-bottom: var(--space-lg);
}

.about-info h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.about-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
}

.about-detail-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.about-detail-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border);
}

.about-detail-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.detail-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  flex-shrink: 0;
}

.detail-value {
  font-size: 0.82rem;
  color: var(--text-secondary);
  text-align: right;
}

/* ============================================================
   EXPERIENCE
   ============================================================ */
.experience-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.exp-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: border-color var(--duration-base), box-shadow var(--duration-base);
}

.exp-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.exp-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: var(--space-xl) var(--space-xl) var(--space-lg);
  border-bottom: 1px solid var(--border);
}

.exp-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4ade80;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.2);
  border-radius: var(--radius-full);
  padding: 0.2rem 0.6rem;
  margin-bottom: var(--space-sm);
}

.exp-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.exp-org {
  font-size: 0.87rem;
  color: var(--accent);
  font-weight: 500;
}

.exp-date {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  letter-spacing: 0.02em;
  padding-top: 4px;
}

.exp-body {
  padding: var(--space-xl);
}

.exp-desc {
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  font-size: 0.95rem;
}

.exp-bullets {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.exp-bullets li {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
  font-size: 0.93rem;
  color: var(--text-secondary);
}

.bullet-icon {
  flex-shrink: 0;
  color: var(--accent);
  font-size: 0.7rem;
  margin-top: 0.4rem;
}

.exp-bullets strong {
  color: var(--text-primary);
  font-weight: 500;
}

.exp-skills-used {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.exp-skills-used span {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0.2rem 0.65rem;
}

/* ============================================================
   PROJECTS
   ============================================================ */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl) var(--space-2xl);
  transition: border-color var(--duration-base), box-shadow var(--duration-base);
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--accent-mid) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--duration-base);
  pointer-events: none;
}

.project-card:hover {
  border-color: rgba(127, 124, 255, 0.3);
  box-shadow: var(--shadow-md), 0 0 40px rgba(127, 124, 255, 0.05);
}

.project-card:hover::before { opacity: 1; }

.project-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
}

.project-number {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--border);
  line-height: 1;
}

.project-badges {
  display: flex;
  gap: var(--space-sm);
}

.badge {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  padding: 0.25rem 0.7rem;
}

.badge-design {
  background: var(--badge-design);
  color: var(--badge-design-text);
}

.badge-dev {
  background: var(--badge-dev);
  color: var(--badge-dev-text);
}

.project-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.project-tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: var(--space-xl);
}

/* Case Study Layout */
.case-study {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
  padding: var(--space-xl);
  background: var(--bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.case-block h4 {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.case-block p,
.case-block ul {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.case-block em { color: var(--text-primary); font-style: italic; }
.case-block strong { color: var(--text-primary); font-weight: 500; }

.feature-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding-left: var(--space-md);
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: var(--space-md);
}

.feature-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--text-muted);
  font-size: 0.8em;
}

/* Full-width last case block */
.case-study .case-block:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.project-stack span {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-mid);
  border-radius: var(--radius-full);
  padding: 0.25rem 0.75rem;
}

/* ============================================================
   SKILLS
   ============================================================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.skill-category {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  transition: border-color var(--duration-base), transform var(--duration-base) var(--ease-out);
}

.skill-category:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

.skill-cat-icon {
  font-size: 1.2rem;
  color: var(--accent);
  margin-bottom: var(--space-md);
  line-height: 1;
}

.skill-category h3 {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

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

.skill-tags span {
  font-size: 0.75rem;
  color: var(--text-secondary);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0.2rem 0.6rem;
  transition: border-color var(--duration-fast), color var(--duration-fast);
}

.skill-tags span:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ============================================================
   ACTIVITIES
   ============================================================ */
.activities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.activity-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  transition: border-color var(--duration-base), transform var(--duration-base) var(--ease-out);
  text-align: center;
}

.activity-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

.activity-icon {
  font-size: 2rem;
  margin-bottom: var(--space-md);
}

.activity-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.activity-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ============================================================
   CONTACT
   ============================================================ */
.section-contact {
  background: var(--bg-alt);
  position: relative;
  overflow: hidden;
}

.section-contact::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse at bottom center, rgba(127, 124, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.contact-inner {
  max-width: 600px;
  margin-inline: auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.contact-heading {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 300;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
}

.contact-heading em {
  font-style: italic;
  color: var(--accent);
}

.contact-sub {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-2xl);
  line-height: 1.7;
}

.contact-actions {
  margin-bottom: var(--space-2xl);
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--duration-fast), transform var(--duration-fast);
  border-bottom: 1px solid transparent;
}

.contact-link:hover {
  color: var(--text-primary);
  transform: translateY(-2px);
  border-bottom-color: var(--border);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding-block: var(--space-xl);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  :root {
    --space-4xl: 5rem;
    --space-3xl: 4rem;
    --space-2xl: 3rem;
  }

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

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-card { position: static; }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .activities-grid {
    grid-template-columns: 1fr;
  }

  .case-study {
    grid-template-columns: 1fr;
  }

  .case-study .case-block:last-child:nth-child(odd) {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  :root {
    --space-4xl: 4rem;
  }

  .container {
    padding-inline: var(--space-lg);
  }

  .hero-content {
    padding-block: var(--space-2xl);
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn { width: 100%; justify-content: center; }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .exp-card-header {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .about-stats {
    flex-wrap: wrap;
    gap: var(--space-lg);
  }

  .stat-divider { display: none; }

  .project-card {
    padding: var(--space-xl);
  }
}

/* ============================================================
   SELECTION + SCROLLBAR
   ============================================================ */
::selection {
  background: var(--accent-mid);
  color: var(--text-primary);
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: var(--surface-2);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }
