/* ============================================
   GHULAM MUSTAFA — Material Expressive Portfolio
   Full Solution Architect Design System
   ============================================ */

/* --- CSS Custom Properties (Design Tokens) --- */
:root {
  /* Primary Palette — Muted Blue */
  --primary: #5b7ba5;
  --primary-light: #8ba4c4;
  --primary-dark: #3d5a80;
  --primary-container: #e8eef4;
  --on-primary: #ffffff;
  --on-primary-container: #1b2e44;

  /* Secondary — Muted Teal-Blue */
  --secondary: #6b8ea3;
  --secondary-light: #90b4c8;
  --secondary-container: #e4eef3;
  --on-secondary: #ffffff;

  /* Tertiary — Muted Slate Blue */
  --tertiary: #7b89a8;
  --tertiary-light: #9fadc4;
  --tertiary-container: #eaedf4;

  --faded: #cfdef0;

  /* Surface System */
  --surface: #f5f7fa;
  --surface-dim: #edf0f5;
  --surface-container: #e8ebf2;
  --surface-container-high: #e0e4ed;
  --surface-container-highest: #d8dce8;
  --surface-variant: #e2e6ef;

  /* On-Surface */
  --on-surface: #1a2332;
  --on-surface-variant: #4a5568;
  --on-surface-muted: #8b95a5;

  /* Outline */
  --outline: #a0aab8;
  --outline-variant: #d0d5de;

  /* Accent Chips */
  --accent-blue: #5b7ba5;
  --accent-teal: #6b9dad;
  --accent-purple: #7b89a8;
  --accent-orange: #c4a46b;
  --accent-rose: #b07080;
  --accent-green: #6ba58b;

  /* Gradients — Muted Blue */
  --gradient-hero: linear-gradient(135deg, #5b7ba5 0%, #7b89a8 100%);
  --gradient-primary: linear-gradient(135deg, #5b7ba5 0%, #3d5a80 100%);
  --gradient-secondary: linear-gradient(135deg, #6b8ea3 0%, #5b7ba5 100%);
  --gradient-warm: linear-gradient(135deg, #c4a46b 0%, #b07080 100%);
  --gradient-surface: linear-gradient(180deg, #f5f7fa 0%, #edf0f5 100%);
  --gradient-glass: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.7) 0%,
    rgba(245, 247, 250, 0.5) 100%
  );
  --gradient-mesh:
    radial-gradient(at 40% 20%, hsla(215, 30%, 65%, 0.08) 0px, transparent 50%),
    radial-gradient(at 80% 0%, hsla(200, 25%, 60%, 0.06) 0px, transparent 50%),
    radial-gradient(at 0% 50%, hsla(220, 25%, 65%, 0.05) 0px, transparent 50%),
    radial-gradient(at 80% 50%, hsla(210, 20%, 65%, 0.04) 0px, transparent 50%);

  /* Elevation / Shadows — removed */
  --shadow-xs: none;
  --shadow-sm: none;
  --shadow-md: none;
  --shadow-lg: none;
  --shadow-xl: none;
  --shadow-2xl: none;
  --shadow-glow: none;
  --shadow-glow-lg: none;

  /* Border Radii — Expressive & Curvy */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-2xl: 40px;
  --radius-full: 999px;

  /* Typography */
  --font-display: "Inter", "Google Sans Display", system-ui, sans-serif;
  --font-body: "Inter", "Roboto", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", monospace;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;

  /* Transitions */
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 200ms;
  --duration-normal: 350ms;
  --duration-slow: 500ms;

  /* Layout */
  --max-width: 1200px;
  --nav-height: 72px;
}

/* ============================================
   BASE RESET & GLOBAL STYLES
   ============================================ */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap");

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-body);
  background: var(--surface);
  color: var(--on-surface);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Mesh gradient background on body */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: var(--gradient-mesh);
  z-index: -1;
  pointer-events: none;
}

::selection {
  background: var(--primary-container);
  color: var(--on-primary-container);
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ============================================
   SCROLL REVEAL ANIMATION SYSTEM
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out);
}

.reveal.visible {
  padding-top: 24px;
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

/* Stagger children */
.stagger-children .reveal:nth-child(1) {
  transition-delay: 0s;
}

.stagger-children .reveal:nth-child(2) {
  transition-delay: 0.08s;
}

.stagger-children .reveal:nth-child(3) {
  transition-delay: 0.16s;
}

.stagger-children .reveal:nth-child(4) {
  transition-delay: 0.24s;
}

.stagger-children .reveal:nth-child(5) {
  transition-delay: 0.32s;
}

.stagger-children .reveal:nth-child(6) {
  transition-delay: 0.4s;
}

.stagger-children .reveal:nth-child(7) {
  transition-delay: 0.48s;
}

.stagger-children .reveal:nth-child(8) {
  transition-delay: 0.56s;
}

/* ============================================
   NAVIGATION BAR
   ============================================ */
nav#topNav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(16px, 4vw, 48px);
  height: var(--nav-height);
  background: rgba(248, 250, 255, 0.6);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border-bottom: none;
  transition: all var(--duration-normal) var(--ease-out);
}

nav#topNav.scrolled {
  background: rgba(245, 247, 250, 0.92);
  border-bottom: none;
  box-shadow: none;
  height: 64px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
  cursor: pointer;
  transition: transform var(--duration-fast) var(--ease-spring);
}

.nav-logo:hover {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--on-surface-variant);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  transition: all var(--duration-fast) var(--ease-out);
  position: relative;
}

.nav-links a:hover {
  color: var(--primary);
  background: var(--primary-container);
}

.nav-links a.active {
  color: var(--primary);
  background: var(--primary-container);
  font-weight: 600;
}

/* Mobile hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background var(--duration-fast);
  z-index: 1001;
}

.nav-hamburger:hover {
  background: var(--surface-container);
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2.5px;
  background: var(--on-surface);
  border-radius: var(--radius-full);
  transition: all var(--duration-normal) var(--ease-out);
  transform-origin: center;
}

.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Mobile menu overlay */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-out);
}

.mobile-menu-overlay.active {
  opacity: 1;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-filled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--gradient-primary);
  color: var(--on-primary);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
  box-shadow: none;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-filled::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.2) 0%,
    transparent 60%
  );
  opacity: 0;
  transition: opacity var(--duration-fast);
}

.btn-filled:hover {
  transform: translateY(-2px);
  box-shadow: none;
}

.btn-filled:hover::before {
  opacity: 1;
}

.btn-filled:active {
  transform: translateY(0) scale(0.98);
}

.btn-tonal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--primary-container);
  color: var(--primary-dark);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
  text-decoration: none;
}

.btn-tonal:hover {
  background: var(--surface-container-highest);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-tonal:active {
  transform: translateY(0) scale(0.98);
}

.btn-outlined {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 27px;
  background: transparent;
  color: var(--primary);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  border-radius: 12px;
  border: none;
  background: var(--surface-container);
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
  text-decoration: none;
}

.btn-outlined:hover {
  background: var(--primary-container);
  color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: none;
}

.btn-outlined:active {
  transform: translateY(0) scale(0.98);
}

/* ============================================
   SECTION SHARED STYLES
   ============================================ */
section {
  padding: clamp(60px, 10vw, 120px) clamp(16px, 5vw, 48px);
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: clamp(40px, 6vw, 72px);
  position: relative;
  z-index: 1;
}

.section-eyebrow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-body);
  font-size: clamp(
    3rem,
    7.5vw,
    120px
  ); /* Fits longest strings within the viewport seamlessly */
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--on-surface);
  opacity: 0.04; /* Faded effect */
  white-space: nowrap;
  pointer-events: none; /* Allows clicking elements underneath */
  z-index: -1;
  margin: 0;
  padding: 0;
  max-width: 100%;
  width: 100%;
  overflow: hidden;
  text-align: center;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 800;
  color: var(--on-surface);
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin: 0;
}

/* ============================================
   HERO SECTION
   ============================================ */
#hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  min-height: calc(100vh - var(--nav-height));
  padding-top: calc(var(--nav-height) + 40px);
  position: relative;
}

/* Decorative blobs */
#hero::before {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(79, 70, 229, 0.08) 0%,
    transparent 70%
  );
  top: -100px;
  left: -200px;
  z-index: -1;
  animation: float-blob 20s ease-in-out infinite;
}

#hero::after {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(124, 58, 237, 0.06) 0%,
    transparent 70%
  );
  bottom: -100px;
  right: -100px;
  z-index: -1;
  animation: float-blob 25s ease-in-out infinite reverse;
}

@keyframes float-blob {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(30px, -30px) scale(1.05);
  }

  66% {
    transform: translate(-20px, 20px) scale(0.95);
  }
}

.hero-text {
  max-width: 560px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-green);
  background: rgba(107, 165, 139, 0.08);
  border: none;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: none;
  }

  50% {
    box-shadow: none;
  }
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 80px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -2px;
  color: var(--on-surface);
  margin-bottom: 12px;
}

.hero-name span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.5vw, 22px);
  font-weight: 600;
  color: var(--on-surface-variant);
  margin-bottom: 16px;
}

.hero-desc {
  font-size: 15px;
  line-height: 1.75;
  color: var(--on-surface-variant);
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Hero Card (Profile Card) */
.hero-card {
  background: var(--surface-container);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  border: none;
  border-radius: var(--radius-2xl);
  padding: clamp(28px, 4vw, 40px);
  box-shadow: none;
  position: relative;
  overflow: hidden;
  transition: transform var(--duration-slow) var(--ease-out);
}

.hero-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 180deg,
    transparent 0%,
    rgba(79, 70, 229, 0.03) 25%,
    transparent 50%,
    rgba(124, 58, 237, 0.03) 75%,
    transparent 100%
  );
  animation: rotate-glow 15s linear infinite;
  z-index: -1;
}

@keyframes rotate-glow {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

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

.hero-avatar {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-xl);
  background: var(--gradient-primary);
  color: var(--on-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 20px;
  box-shadow: none;
  overflow: hidden;
}

.hero-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--on-surface);
  margin-bottom: 4px;
}

.hero-card > p {
  font-size: 14px;
  color: var(--on-surface-variant);
  margin-bottom: 24px;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.stat-chip {
  background: var(--surface-container);
  border-radius: var(--radius-lg);
  padding: 16px 12px;
  text-align: center;
  transition: all var(--duration-normal) var(--ease-out);
  border: none;
}

.stat-chip:hover {
  background: var(--primary-container);
  border: none;
  transform: translateY(-2px);
}

.stat-chip .num {
  display: block;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-chip .lbl {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--on-surface-variant);
  margin-top: 2px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--on-surface-variant);
  transition: all var(--duration-fast) var(--ease-out);
  border: none;
}

.contact-link:hover {
  background: var(--surface-container);
  color: var(--primary);
  border: none;
  transform: translateX(4px);
}

.contact-link .icon {
  font-size: 18px;
  color: var(--primary);
}

/* ============================================
   SKILLS SECTION
   ============================================ */
#skills {
  background: var(--surface-dim);
  max-width: 100%;
  position: relative;
}

#skills::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--outline-variant),
    transparent
  );
}

#skills > * {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
}

.skill-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  border: none;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--on-surface);
  transition: all var(--duration-normal) var(--ease-spring);
  cursor: default;
}

.skill-chip:hover {
  background: var(--primary-container);
  border-color: var(--primary-light);
  color: var(--primary-dark);
  transform: translateY(-3px) scale(1.04);
  box-shadow: var(--shadow-md);
}

.skill-chip:hover {
  box-shadow: none;
}

.skill-chip .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient-primary);
  flex-shrink: 0;
  transition: transform var(--duration-fast) var(--ease-spring);
}

.skill-chip:hover .dot {
  transform: scale(1.4);
}

/* Alternate dot colors */
.skill-chip:nth-child(3n + 1) .dot {
  background: var(--gradient-primary);
}

.skill-chip:nth-child(3n + 2) .dot {
  background: var(--gradient-secondary);
}

.skill-chip:nth-child(3n) .dot {
  background: var(--gradient-warm);
}

/* ============================================
   EXPERIENCE SECTION
   ============================================ */
#experience {
  position: relative;
}

.exp-timeline {
  position: relative;
  max-width: 820px;
}

/* ============================================
   PROJECT FILTER BAR
   ============================================ */
.project-filter {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.project-filter-btn {
  padding: 8px 16px;
  border: 1px solid var(--outline-variant);
  background: var(--surface-container);
  color: var(--on-surface);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
}

.project-filter-btn:hover {
  background: var(--primary-container);
  color: var(--primary-dark);
  border-color: var(--primary);
}

.project-filter-btn.active {
  background: var(--gradient-primary);
  color: var(--on-primary);
  border-color: transparent;
}

.project-card[data-platform="web"] {
  border: 1px solid rgba(104, 145, 190, 0.18);
}

.project-card[data-platform="mobile"] {
  border: 1px solid rgba(129, 195, 166, 0.18);
}

/* Vertical line */
.exp-timeline::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(
    180deg,
    var(--primary-light),
    var(--tertiary-light),
    var(--secondary-light)
  );
  border-radius: var(--radius-full);
  opacity: 0.4;
}

.exp-item {
  position: relative;
  margin-bottom: 32px;
}

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

.exp-dot {
  position: absolute;
  left: -98px;
  top: 24px;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  z-index: 2;
  transition: all var(--duration-normal) var(--ease-spring);
}

.exp-dot .icon {
  color: #ffffff39;
  font-size: 64px;
}

.exp-item:hover .exp-dot {
  transform: scale(1.15);
  box-shadow: none;
}

/* Alternate dot gradient colors */
.exp-item:nth-child(2) .exp-dot {
  background: var(--gradient-secondary);
}

.exp-item:nth-child(3) .exp-dot {
  background: linear-gradient(135deg, #8b5cf6, #a855f7);
}

.exp-item:nth-child(4) .exp-dot {
  background: var(--gradient-warm);
}

.exp-item:nth-child(5) .exp-dot {
  background: linear-gradient(135deg, #06b6d4, #0ea5e9);
}

.exp-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border: none;
  border-radius: var(--radius-xl);
  padding: clamp(20px, 3vw, 32px);
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.exp-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--duration-normal);
}

.exp-card:hover {
  border: none;
  box-shadow: none;
  transform: translateX(4px);
}

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

/* Alternate card top border colors */
.exp-item:nth-child(2) .exp-card::before {
  background: var(--gradient-secondary);
}

.exp-item:nth-child(3) .exp-card::before {
  background: linear-gradient(135deg, #8b5cf6, #a855f7);
}

.exp-item:nth-child(4) .exp-card::before {
  background: var(--gradient-warm);
}

.exp-item:nth-child(5) .exp-card::before {
  background: linear-gradient(135deg, #06b6d4, #0ea5e9);
}

.exp-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.exp-role {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--on-surface);
}

.exp-date {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-container);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.exp-company {
  font-size: 14px;
  color: var(--on-surface-variant);
  margin-bottom: 12px;
}

.exp-project-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--tertiary);
  background: var(--tertiary-container);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.exp-bullets {
  list-style: none;
  margin-bottom: 16px;
}

.exp-bullets li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--on-surface-variant);
  margin-bottom: 6px;
}

.exp-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-light);
}

.exp-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tech-tag {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: var(--surface-container);
  color: var(--on-surface-variant);
  border: none;
  transition: all var(--duration-fast) var(--ease-out);
}

.tech-tag:hover {
  background: var(--primary-container);
  border-color: var(--primary-light);
  color: var(--primary-dark);
}

/* ============================================
   PROJECTS SECTION
   ============================================ */
#projects {
  background: var(--surface-dim);
  max-width: 100%;
  position: relative;
}

#projects::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--outline-variant),
    transparent
  );
}

#projects > * {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

.project-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border: none;
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-out);
  display: flex;
  flex-direction: column;
  position: relative;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  padding: 1.5px;
  background: linear-gradient(
    135deg,
    transparent 50%,
    rgba(91, 123, 165, 0.12) 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--duration-normal);
  pointer-events: none;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: none;
  border: none;
}

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

.project-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 24px 0;
}

.project-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  transition: transform var(--duration-normal) var(--ease-spring);
}

.project-card:hover .project-icon {
  transform: scale(1.1) rotate(-3deg);
}

.project-icon.blue {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
}

.project-icon.teal {
  background: linear-gradient(135deg, #ccfbf1, #99f6e4);
}

.project-icon.purple {
  background: linear-gradient(135deg, #ede9fe, #ddd6fe);
}

.project-icon.orange {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
}

.project-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--on-surface);
}

.project-sub {
  font-size: 13px;
  color: var(--on-surface-variant);
  margin-top: 2px;
}

.project-body {
  padding: 16px 24px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--on-surface-variant);
  margin-bottom: 16px;
  flex: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.project-tags .tech-tag[href] {
  color: var(--primary);
  text-decoration: none;
  cursor: pointer;
  font-weight: 700;
}

.project-tags .tech-tag[href]:hover {
  background: var(--primary);
  color: var(--on-primary);
  border-color: var(--primary);
}

/* ============================================
   PUBLICATIONS SECTION
   ============================================ */
#publications {
  position: relative;
}

#publications > * {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.pub-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border: none;
  border-radius: var(--radius-xl);
  padding: clamp(24px, 3vw, 36px);
  display: flex;
  gap: 24px;
  align-items: flex-start;
  transition: all var(--duration-normal) var(--ease-out);
  max-width: 800px;
}

.pub-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(79, 70, 229, 0.2);
}

.pub-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-lg);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
  box-shadow: none;
}

.pub-content {
  flex: 1;
}

.pub-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.pub-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--on-surface);
}

.pub-year {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-container);
  padding: 3px 12px;
  border-radius: var(--radius-full);
}

.pub-subtitle {
  font-size: 14px;
  color: var(--on-surface-variant);
  margin-bottom: 12px;
}

.pub-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--on-surface-variant);
  margin-bottom: 16px;
}

/* ============================================
   EDUCATION SECTION
   ============================================ */
#education {
  background: var(--surface-dim);
  max-width: 100%;
  position: relative;
}

#education::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--outline-variant),
    transparent
  );
}

#education > * {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.edu-grid {
  max-width: 600px;
  margin: 0 auto;
}

.edu-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border: none;
  border-radius: var(--radius-xl);
  padding: clamp(24px, 3vw, 32px);
  display: flex;
  gap: 20px;
  align-items: center;
  transition: all var(--duration-normal) var(--ease-out);
}

.edu-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(79, 70, 229, 0.2);
}

.edu-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: var(--gradient-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
  box-shadow: none;
  transition: transform var(--duration-normal) var(--ease-spring);
}

.edu-card:hover .edu-icon {
  transform: scale(1.1) rotate(-5deg);
}

.edu-degree {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--on-surface);
  margin-bottom: 2px;
}

.edu-school {
  font-size: 14px;
  font-weight: 500;
  color: var(--on-surface-variant);
  margin-bottom: 4px;
}

.edu-year {
  font-size: 13px;
  color: var(--on-surface-muted);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
#contact {
  text-align: center;
  position: relative;
}

#contact > p {
  font-size: 16px;
  color: var(--on-surface-variant);
  max-width: 520px;
  margin: -20px auto 40px;
  line-height: 1.7;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border: none;
  border-radius: var(--radius-xl);
  transition: all var(--duration-normal) var(--ease-out);
  text-align: left;
  text-decoration: none;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(79, 70, 229, 0.2);
  background: rgba(255, 255, 255, 0.95);
}

.contact-card .icon {
  font-size: 24px;
  color: var(--primary);
  background: var(--primary-container);
  padding: 12px;
  border-radius: var(--radius-lg);
  transition: all var(--duration-normal) var(--ease-spring);
}

.contact-card:hover .icon {
  background: var(--gradient-primary);
  color: var(--on-primary);
  transform: scale(1.1) rotate(-5deg);
}

.contact-card .label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--on-surface-muted);
  margin-bottom: 2px;
}

.contact-card .value {
  font-size: 14px;
  font-weight: 500;
  color: var(--on-surface);
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: var(--on-surface);
  color: var(--on-surface-muted);
  text-align: center;
  padding: 32px 24px;
  font-size: 13px;
  position: relative;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
}

footer p {
  opacity: 0.6;
}

/* ============================================
   DECORATIVE CURVY DIVIDERS
   ============================================ */
.wave-divider {
  position: relative;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.wave-divider svg {
  display: block;
  width: 100%;
  height: auto;
}

.wave-divider.flip {
  transform: rotate(180deg);
}

/* ============================================
   FLOATING PARTICLES (CSS Only)
   ============================================ */
.particles {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--primary-light);
  opacity: 0.15;
  animation: float-particle linear infinite;
}

@keyframes float-particle {
  0% {
    transform: translateY(100vh) translateX(0) scale(0);
    opacity: 0;
  }

  10% {
    opacity: 0.15;
  }

  90% {
    opacity: 0.15;
  }

  100% {
    transform: translateY(-10vh) translateX(100px) scale(1);
    opacity: 0;
  }
}

.particle:nth-child(1) {
  left: 10%;
  animation-duration: 18s;
  animation-delay: 0s;
  width: 3px;
  height: 3px;
}

.particle:nth-child(2) {
  left: 25%;
  animation-duration: 22s;
  animation-delay: 2s;
  width: 5px;
  height: 5px;
}

.particle:nth-child(3) {
  left: 40%;
  animation-duration: 16s;
  animation-delay: 4s;
}

.particle:nth-child(4) {
  left: 55%;
  animation-duration: 24s;
  animation-delay: 1s;
  width: 6px;
  height: 6px;
}

.particle:nth-child(5) {
  left: 70%;
  animation-duration: 20s;
  animation-delay: 3s;
  width: 3px;
  height: 3px;
}

.particle:nth-child(6) {
  left: 85%;
  animation-duration: 19s;
  animation-delay: 5s;
}

.particle:nth-child(7) {
  left: 15%;
  animation-duration: 25s;
  animation-delay: 7s;
  width: 5px;
  height: 5px;
}

.particle:nth-child(8) {
  left: 65%;
  animation-duration: 21s;
  animation-delay: 6s;
  width: 3px;
  height: 3px;
}

/* ============================================
   SCROLL PROGRESS BAR
   ============================================ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--gradient-primary);
  z-index: 10000;
  width: 0%;
  transition: width 50ms linear;
  border-radius: 0 var(--radius-full) var(--radius-full) 0;
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background: var(--gradient-primary);
  color: var(--on-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
  opacity: 0;
  transform: translateY(20px) scale(0.8);
  transition: all var(--duration-normal) var(--ease-spring);
  box-shadow: none;
  border: none;
}

.back-to-top.visible {
  opacity: 1;
  box-shadow: none;
  border: none;
}

.back-to-top:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: none;
}

/* ============================================
   CURSOR GLOW EFFECT
   ============================================ */
.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(79, 70, 229, 0.06) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: -1;
  transform: translate(-50%, -50%);
  transition:
    left 0.3s ease-out,
    top 0.3s ease-out;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
  #hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
    min-height: auto;
    padding-bottom: 60px;
  }

  .hero-text {
    max-width: 600px;
    margin: 0 auto;
  }

  .hero-desc {
    max-width: 100%;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-card {
    max-width: 480px;
    margin: 0 auto;
  }

  .exp-timeline {
    padding-left: 48px;
  }

  .exp-dot {
    left: -40px;
    width: 36px;
    height: 36px;
  }

  .exp-dot .icon {
    font-size: 16px;
  }

  .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  nav#topNav {
    padding: 0 16px;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: rgba(245, 247, 250, 0.98);
    backdrop-filter: blur(24px);
    flex-direction: column;
    align-items: stretch;
    padding: calc(var(--nav-height) + 20px) 20px 20px;
    box-shadow: none;
    z-index: 1000;
    gap: 4px;
    transform: translateX(100%);
    transition: transform var(--duration-normal) var(--ease-out);
  }

  .nav-links.open {
    display: flex;
    transform: translateX(0);
  }

  .nav-links a {
    padding: 14px 20px;
    border-radius: var(--radius-md);
    font-size: 15px;
  }

  .mobile-menu-overlay.active {
    display: block;
  }

  .desktop-hire-btn {
    display: none !important;
  }

  .nav-hamburger {
    display: flex;
  }

  #hireBtn {
    width: 40%;
    align-items:flex-end;
  }

  /* Hero */
  #hero {
    padding-top: calc(var(--nav-height) + 20px);
  }

  .hero-name {
    font-size: clamp(36px, 10vw, 56px);
    letter-spacing: -1px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn-filled,
  .hero-actions .btn-tonal,
  .hero-actions .btn-outlined {
    justify-content: center;
    padding: 14px 24px;
  }

  .hero-card {
    max-width: 100%;
  }

  .stat-row {
    gap: 8px;
  }

  .stat-chip {
    padding: 12px 8px;
  }

  .stat-chip .num {
    font-size: 20px;
  }

  /* Experience */
  .exp-timeline {
    padding-left: 0;
  }

  .exp-timeline::before {
    left: 16px;
  }

  .exp-dot {
    left: 2px;
    width: 32px;
    height: 32px;
  }

  .exp-dot .icon {
    font-size: 14px;
  }

  .exp-card {
    margin-left: 52px;
    padding: 20px;
  }

  .exp-meta {
    flex-direction: column;
    gap: 6px;
  }

  .exp-date {
    align-self: flex-start;
  }

  /* Projects */
  .projects-grid {
    grid-template-columns: 1fr;
  }

  /* Publications */
  .pub-card {
    flex-direction: column;
    text-align: center;
  }

  .pub-icon {
    align-self: center;
  }

  .pub-meta {
    justify-content: center;
  }

  .pub-content .exp-tech {
    justify-content: center;
  }

  /* Education */
  .edu-card {
    flex-direction: column;
    text-align: center;
  }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr;
  }

  /* Contact in hero card */
  .contact-link {
    font-size: 12px;
  }

  /* Back to top */
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
  }
}

/* Small phones */
@media (max-width: 380px) {
  section {
    padding-left: 12px;
    padding-right: 12px;
  }

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

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

  .stat-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .stat-chip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  nav#topNav,
  .particles,
  .scroll-progress,
  .back-to-top,
  .cursor-glow,
  .wave-divider {
    display: none !important;
  }

  section {
    page-break-inside: avoid;
    padding: 20px 0;
  }

  .reveal {
    padding-top: 24px;
    opacity: 1 !important;
    transform: none !important;
  }

  body::before {
    display: none;
  }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* Focus visible for keyboard nav */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

/* ============================================
   SMOOTH LOADING ANIMATION
   ============================================ */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--surface);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    opacity 0.5s var(--ease-out),
    visibility 0.5s;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gradient-primary);
  margin: 0 6px;
  animation: loader-bounce 1.4s ease-in-out infinite both;
}

.loader-dot:nth-child(1) {
  animation-delay: -0.32s;
}

.loader-dot:nth-child(2) {
  animation-delay: -0.16s;
}

.loader-dot:nth-child(3) {
  animation-delay: 0s;
}

@keyframes loader-bounce {
  0%,
  80%,
  100% {
    transform: scale(0.4);
    opacity: 0.3;
  }

  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ============================================
   TYPEWRITER CURSOR EFFECT
   ============================================ */
.typewriter-cursor {
  display: inline-block;
  width: 3px;
  height: 1em;
  background: var(--primary);
  margin-left: 2px;
  animation: blink-cursor 1s step-end infinite;
  vertical-align: text-bottom;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1200;
  background: rgba(10, 22, 44, 0.6);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--duration-fast) ease,
    visibility var(--duration-fast) ease;
}

.hire-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(90%, 480px);
  max-width: 480px;
  padding: 32px 40px;
  z-index: 1201;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: stretch;
  justify-content: flex-start;
  background: linear-gradient(180deg, #ffffff, #f5f8ff);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 35px rgba(12, 30, 56, 0.24);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--duration-fast) ease,
    visibility var(--duration-fast) ease,
    transform var(--duration-fast) ease;
}

.hire-modal:not(.hidden) {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.hire-modal h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: -0.5px;
  text-align: center;
}

.hire-modal p {
  margin: 0;
  color: var(--on-surface-variant);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 600;
  text-align: center;
}

.hire-modal label {
  display: block;
  margin-top: 16px;
  color: var(--on-surface);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.hire-modal input,
.hire-modal textarea {
  width: 100%;
  margin-top: 8px;
  padding: 12px 14px;
  border: 1.5px solid var(--outline-variant);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--on-surface);
  font-size: 14px;
  font-family: var(--font-body);
  transition:
    border-color var(--duration-fast) ease,
    box-shadow var(--duration-fast) ease;
}

.hire-modal input:focus,
.hire-modal textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(91, 123, 165, 0.08);
}

.hire-modal textarea {
  resize: none;
  min-height: 72px;
  line-height: 1.6;
}

.hire-modal textarea:focus {
  min-height: 120px;
}

#hireEmailFormElement {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  #hireEmailFormElement {
    grid-template-columns: repeat(2, 1fr);
  }
}

#hireEmailFormElement .modal-buttons {
  grid-column: 1 / -1;
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

#hireEmailFormElement .modal-buttons button {
  min-width: 160px;
  border-radius: 10px;
  padding: 12px 22px;
}

.hire-modal textarea {
  grid-column: span 2;
}

.hire-options {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.hire-options {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.hire-modal .modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  border: none;
  background: none;
  color: var(--on-surface-variant);
  font-size: 22px;
  cursor: pointer;
}

@media (max-width: 600px) {
  .hire-modal {
    padding: 18px 16px;
    width: min(96%, 480px);
    max-height: 95vh;
    overflow-y: auto;
  }
  .hire-modal h2 {
    font-size: 1.2rem;
  }
  .hire-modal p {
    font-size: 13px;
  }
  #hireEmailFormElement {
    grid-template-columns: 1fr;
  }
  #hireEmailFormElement .modal-buttons {
    justify-content: center;
  }
  .hire-modal textarea {
    min-height: 100px;
  }
}

/* global responsive improvements */
@media (max-width: 1024px) {
  #hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
  #projects .projects-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  nav#topNav {
    padding: 0 12px;
  }
  .section-title {
    font-size: clamp(22px, 6vw, 28px);
  }
  .btn-filled,
  .btn-tonal,
  .btn-outlined {
    width: 100%;
    justify-content: center;
  }
  .hire-modal {
    padding: 16px 14px;
  }
  .hire-modal input,
  .hire-modal textarea {
    font-size: 13px;
  }
}

/* no more global overwrite */

@keyframes blink-cursor {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}
.mobile-hire-btn {
  display: none;
}

@media (max-width: 768px) {
  .mobile-hire-btn {
    display: inline-flex;
  }
}
