/* ================================================================
   ABDUL RAHIM - AI ENGINEER PORTFOLIO
   Design System: Deep Black + Crimson Red
   Fonts: Bebas Neue, Playfair Display, Inter, JetBrains Mono
   
   CLEANUP NOTES:
   - Standardized spacing scale: 4/8/12/16/20/24/32/40/48/64/80px
   - Unified typography hierarchy
   - Removed duplicate rules
   - Fixed alignment inconsistencies
   - Polished hover states and transitions
   - Improved responsive breakpoints
================================================================ */

/* -- Design Tokens -- */
:root {
  /* Colors */
  --bg:          #0a0a0a;
  --bg-2:        #0e0e0e;
  --bg-3:        #181818;
  --bg-card:     #141414;
  --text:        #ffffff;
  --text-muted:  #999999;
  --text-dim:    #555555;
  --accent:      #cc1111;
  --accent-dark: #8b0000;
  --accent-glow: rgba(204, 17, 17, .25);

  /* Typography */
  --font-display: 'Bebas Neue', sans-serif;
  --font-script:  'Playfair Display', serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

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

  /* Layout */
  --nav-h:   80px;
  --max-w:   1200px;
  --pad-x:   clamp(20px, 5vw, 60px);

  /* Transitions */
  --ease:      0.3s ease;
  --ease-out:  0.4s cubic-bezier(.25, 1, .5, 1);

  /* Shadows */
  --shadow-sm:  0 2px 8px rgba(0, 0, 0, .3);
  --shadow-md:  0 8px 24px rgba(0, 0, 0, .4);
  --shadow-lg:  0 16px 48px rgba(0, 0, 0, .5);
  --shadow-glow: 0 0 24px rgba(204, 17, 17, .12);

  /* Border radius */
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-full: 9999px;

  /* Shadows - light section */
  --shadow-card:  0 4px 20px rgba(0,0,0,.08);
  --shadow-hover: 0 12px 40px rgba(0,0,0,.14);

  /* Border */
  --border-subtle: 1px solid rgba(255, 255, 255, .05);
  --border-hover:  1px solid rgba(204, 17, 17, .4);
}

/* -- Reset -- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; cursor: none; }
body {
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: none; }
p { margin: 0 0 1rem; }

/* -- Custom Cursor -- */
.cursor, .cursor-follower {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  top: -100px;
  left: -100px;
}
.cursor {
  width: 18px;
  height: 18px;
  background: transparent;
  border: 1.5px solid var(--accent);
  border-radius: 0;
  transition: transform .1s ease, width .2s, height .2s, border-color .2s;
}
.cursor::before, .cursor::after {
  content: '';
  position: absolute;
  background: var(--accent);
  border-radius: 0;
  transition: background .2s;
}
.cursor::before { width: 1px; height: 8px; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.cursor::after  { width: 8px; height: 1px; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.cursor-follower { display: none; }
.cursor.hovered { border-color: var(--accent); width: 24px; height: 24px; }
.cursor.hovered::before, .cursor.hovered::after { background: var(--accent); }

/* -- Navigation -- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad-x);
  background: transparent;
  transition: background .4s, backdrop-filter .4s, box-shadow .4s;
}
.nav.scrolled {
  background: rgba(0, 0, 0, .82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  box-shadow: 0 4px 24px rgba(0,0,0,.3);
}
.nav-brand {
  font-family: var(--font-display);
  font-size: 1.75rem;
  letter-spacing: .06em;
  color: var(--accent);
  transition: color var(--ease);
}
.nav-brand:hover { color: #fff; }
.nav-links { list-style: none; display: flex; gap: 40px; }
.nav-links a {
  font-size: .72rem;
  letter-spacing: .22em;
  font-weight: 500;
  color: #fff;
  transition: color var(--ease);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta {
  font-family: var(--font-display);
  font-size: .78rem;
  letter-spacing: .12em;
  padding: 10px 24px;
  background: var(--accent);
  border: 2px solid var(--accent);
  color: #fff;
  border-radius: var(--radius-full);
  white-space: nowrap;
  transition: background var(--ease), transform var(--ease), box-shadow var(--ease);
}
.nav-cta:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(204,17,17,.3);
}
.nav-menu-btn {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  padding: 6px;
}
.nav-menu-btn span {
  display: block;
  width: 26px;
  height: 2px;
  background: #fff;
  transition: transform var(--ease), opacity var(--ease), width var(--ease);
  transform-origin: center;
  border-radius: 2px;
}
.nav-menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-menu-btn.open span:nth-child(2) { opacity: 0; width: 0; }
.nav-menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* -- Mobile Menu -- */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 190;
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: circle(0% at 95% 5%);
  transition: clip-path .6s cubic-bezier(.77, 0, .175, 1);
}
.mobile-menu.open { clip-path: circle(150% at 95% 5%); }
.mobile-menu ul { list-style: none; text-align: center; }
.mobile-menu li { margin: var(--space-md) 0; overflow: hidden; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  letter-spacing: .08em;
  color: var(--text-muted);
  display: inline-block;
  transform: translateY(100%);
  transition: color .3s, transform .5s cubic-bezier(.25, 1, .5, 1);
}
.mobile-menu.open a { transform: translateY(0); }
.mobile-menu li:nth-child(1) a { transition-delay: .1s; }
.mobile-menu li:nth-child(2) a { transition-delay: .15s; }
.mobile-menu li:nth-child(3) a { transition-delay: .2s; }
.mobile-menu li:nth-child(4) a { transition-delay: .25s; }
.mobile-menu li:nth-child(5) a { transition-delay: .3s; }
.mobile-menu li:nth-child(6) a { transition-delay: .35s; }
.mobile-menu li:nth-child(7) a { transition-delay: .4s; }
.mobile-menu a:hover { color: var(--accent); }

/* -- Hero -- */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  max-height: 1100px;
  overflow: hidden;
  background: var(--bg);
}
.hero-bg-photo {
  position: absolute;
  inset: -20px;
  z-index: 1;
  overflow: hidden;
}
.hero-bg-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: brightness(.38) saturate(1.4) contrast(1.08);
  opacity: 0;
  transition: opacity 1s ease;
}
.hero-bg-photo img.loaded { opacity: 1; }
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(to top, var(--bg) 0%, rgba(10, 10, 10, .4) 40%, transparent 65%),
    linear-gradient(to bottom, rgba(10, 10, 10, .3) 0%, transparent 20%),
    linear-gradient(to right, rgba(10, 10, 10, .6) 0%, transparent 35%, transparent 65%, rgba(10, 10, 10, .6) 100%);
}
.hero-noise {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px;
}
.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: radial-gradient(ellipse 60% 30% at 50% 100%, rgba(139, 0, 0, .3) 0%, transparent 70%);
}
.hero-scan { display: none; }
.hero-content {
  position: absolute;
  bottom: clamp(60px, 10vh, 140px);
  left: var(--pad-x);
  z-index: 7;
  max-width: 700px;
}
.hero-label {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .2em;
  color: var(--accent);
  opacity: .85;
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--accent);
}

@keyframes nameGlitch {
  0%, 94%, 100% { clip-path: none; transform: none; color: #fff; }
  95% { clip-path: polygon(0 22%, 100% 22%, 100% 40%, 0 40%); transform: translateX(-5px) skewX(-2deg); color: rgba(255, 80, 80, 1); }
  96% { clip-path: polygon(0 55%, 100% 55%, 100% 75%, 0 75%); transform: translateX(5px) skewX(2deg); color: #fff; }
  97% { clip-path: polygon(0 10%, 100% 10%, 100% 30%, 0 30%); transform: translateX(-3px); color: rgba(204, 17, 17, .9); }
  98% { clip-path: none; transform: translateX(2px); }
  99% { clip-path: none; transform: none; }
}
.hero-name {
  font-family: var(--font-display);
  font-size: clamp(72px, 12vw, 180px);
  line-height: .85;
  letter-spacing: -.02em;
  color: #fff;
  text-shadow: 0 4px 20px rgba(0, 0, 0, .5);
  margin-bottom: var(--space-md);
  animation: nameGlitch 9s infinite;
  will-change: transform;
}
.hero-role {
  font-family: var(--font-display);
  font-size: clamp(.9rem, 1.6vw, 1.5rem);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: var(--space-lg);
  white-space: nowrap;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .5);
}
.blink-cursor {
  color: var(--accent);
  animation: blink 1s step-end infinite;
  font-family: var(--font-mono);
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.hero-cta { display: flex; gap: var(--space-md); flex-wrap: wrap; align-items: center; }
.hero-trust {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
  font-size: .8rem;
  color: var(--text-muted);
}
.trust-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  flex-shrink: 0;
  animation: pulseDot 1.8s ease infinite;
}
@keyframes pulseDot { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.hero-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 180px;
  background: linear-gradient(to top, var(--bg) 0%, transparent 100%);
  z-index: 6;
  pointer-events: none;
}

/* -- Buttons -- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 30px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  border: 2px solid var(--accent);
  border-radius: var(--radius-full);
  white-space: nowrap;
  transition: background var(--ease), color var(--ease), transform var(--ease), box-shadow var(--ease);
  cursor: none;
}
.btn-primary:hover {
  background: transparent;
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(204, 17, 17, .25);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  border: 2px solid rgba(255, 255, 255, .7);
  color: #fff;
  font-family: var(--font-display);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: border-color .4s, color .4s, transform var(--ease), box-shadow var(--ease);
  cursor: none;
}
.btn-outline::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateX(-101%);
  transition: transform .42s cubic-bezier(.4, 0, .2, 1);
  z-index: -1;
}
.btn-outline:hover::before { transform: translateX(0); }
.btn-outline:hover {
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(204, 17, 17, .15);
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 11px 22px;
  border: 2px solid rgba(255, 255, 255, .25);
  color: rgba(255,255,255,.7);
  font-family: var(--font-display);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  transition: border-color var(--ease), color var(--ease), background var(--ease), transform var(--ease);
  cursor: none;
  background: none;
}
.btn-ghost:hover { border-color: var(--accent); color: #fff; background: var(--accent); transform: translateY(-2px); }

/* -- Marquee -- */
.marquee-strip {
  width: 100%;
  overflow: hidden;
  background: #0a0a0a;
  padding: 16px 0;
  position: relative;
  border-top: 3px solid var(--accent);
  border-bottom: 3px solid var(--accent);
}
.marquee-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #0a0a0a 0%, transparent 6%, transparent 94%, #0a0a0a 100%);
  pointer-events: none;
  z-index: 1;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee-track span {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .22em;
  color: #ffffff;
  white-space: nowrap;
  padding: 0 var(--space-lg);
  text-transform: uppercase;
  font-weight: 500;
}
.marquee-track .dot {
  font-size: .5rem;
  opacity: 1;
  padding: 0;
  display: flex;
  align-items: center;
  color: var(--accent);
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* -- Section Base -- */
.section { padding: clamp(48px, 8vw, 80px) 0; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad-x); }
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .16em;
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: var(--space-md);
  background: rgba(204,17,17,.08);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(204,17,17,.2);
}
.section-label::before { display: none; }
.section-header { margin-bottom: var(--space-2xl); }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  letter-spacing: .05em;
  line-height: 1;
  margin-bottom: var(--space-md);
}
.section-title em {
  font-family: var(--font-script);
  font-style: italic;
  color: var(--accent);
  font-size: .88em;
  letter-spacing: 0;
}
.section-sub {
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 580px;
}

/* -- About Section -- */
.about-section {
  background: #ffffff;
}
.about-intro {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-2xl);
  align-items: start;
}
.about-section .section-title { color: #111111; }
.about-text { font-size: .92rem; color: #111111; line-height: 1.85; margin-bottom: var(--space-md); }
.about-text strong { color: #000000; }
.about-section .section-label {
  background: rgba(204,17,17,.06);
  border-color: rgba(204,17,17,.15);
}
.about-section .section-title em { color: var(--accent); }
.about-highlight-card {
  background: linear-gradient(145deg, #d41818 0%, #a00e0e 100%);
  border: none;
  border-top: none;
  padding: var(--space-xl) var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: 0 6px 20px rgba(204, 17, 17, .3);
  position: relative;
  overflow: hidden;
  transition: transform .35s ease, box-shadow .35s ease;
}
.about-highlight-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  pointer-events: none;
}
.about-highlight-card::after {
  content: '';
  position: absolute;
  bottom: -30px;
  left: -30px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(0,0,0,.1);
  pointer-events: none;
}
.about-highlight-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(139, 0, 0, .5);
}
.ahc-label {
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}
.ahc-label { color: rgba(255,255,255,.7); }
.ahc-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  letter-spacing: .05em;
  line-height: 1.1;
  margin-bottom: var(--space-md);
  color: #fff;
}
.ahc-text {
  font-size: .84rem;
  color: rgba(255,255,255,.85);
  line-height: 1.8;
  margin: 0;
}

/* -- Skills Section -- */
.skills-section {
  background: #f5f5f5;
  background-image:
    repeating-linear-gradient(
      90deg,
      rgba(204, 17, 17, .07) 0px,
      rgba(204, 17, 17, .07) 1px,
      transparent 1px,
      transparent 80px
    );
  position: relative;
}
.skills-section .section-title { color: #111111; }
.skills-section .section-title em { color: var(--accent); }
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}
.feat-card {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, .08);
  border-top: 2px solid rgba(204, 17, 17, .3);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-lg);
  box-shadow: var(--shadow-card);
  transition: transform .35s ease, box-shadow .35s ease, background .35s ease, border-color .35s ease;
}
.feat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(204, 17, 17, .08), transparent);
  transition: left .55s ease;
  pointer-events: none;
}
.feat-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s cubic-bezier(.25, 1, .5, 1);
  box-shadow: 0 0 12px rgba(204, 17, 17, .6);
}
.feat-card:hover {
  background: var(--accent);
  border-color: var(--accent);
  border-top-color: var(--accent-dark);
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(204, 17, 17, .4), 0 0 0 1px rgba(204,17,17,.5);
}
.feat-card:hover::before { left: 140%; }
.feat-card:hover::after { transform: scaleX(1); }
.feat-card:hover h3 { color: #ffffff; text-shadow: none; }
.feat-card:hover .feat-icon {
  background: rgba(0, 0, 0, .12);
  border-color: rgba(0, 0, 0, .25);
  box-shadow: none;
  color: #000;
  transform: scale(1.12);
}
.feat-card:hover .chip { border-color: rgba(255,255,255,.5); color: #fff; background: rgba(255,255,255,.15); }
.feat-card-header { display: flex; align-items: center; gap: 14px; margin-bottom: var(--space-md); }
.feat-icon {
  width: 38px;
  height: 38px;
  background: rgba(204, 17, 17, .1);
  border: 1px solid rgba(204, 17, 17, .2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
  transition: background .35s, border-color .35s, box-shadow .35s, transform .35s;
}
.feat-icon svg { width: 18px; height: 18px; }
.feat-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin: 0;
  color: #111111;
  transition: color .35s, text-shadow .35s;
}

/* -- Experience and Education (Timeline) -- */
.experience-section {
  background: #ffffff;
}
.experience-section .section-title { color: #111111; }
.experience-section .section-title em { color: var(--accent); }
.education-section {
  background: #f5f5f5;
  background-image:
    repeating-linear-gradient(
      90deg,
      rgba(204, 17, 17, .07) 0px,
      rgba(204, 17, 17, .07) 1px,
      transparent 1px,
      transparent 80px
    );
}
.education-section .t-item {
  background: #ffffff;
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 0, 0, .08);
  border-left: 4px solid var(--accent);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
  box-shadow: var(--shadow-card);
  border-top: none;
  border-bottom: none;
}
.education-section .t-item:hover { background: #fff; box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.education-section .section-header { position: relative; z-index: 1; background: #f5f5f5; padding-bottom: var(--space-sm); }
.education-section .section-title { color: #111111; }
.education-section .section-label {
  color: var(--accent);
  background: rgba(204,17,17,.08);
  border-color: rgba(204,17,17,.2);
}
.timeline { display: flex; flex-direction: column; gap: var(--space-md); }
.t-item {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 0 var(--space-lg);
  padding: var(--space-lg);
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, .08);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--ease), transform var(--ease);
}
.t-item:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.t-year {
  font-family: var(--font-mono);
  font-size: .65rem;
  letter-spacing: .1em;
  color: var(--accent);
  text-transform: uppercase;
  padding-top: 4px;
  line-height: 1.5;
  opacity: .85;
}
.t-role {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 4px;
  color: #111111;
}
.t-company {
  font-family: var(--font-mono);
  font-size: .65rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-md);
}
.t-bullets { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.t-bullets li {
  font-size: .85rem;
  color: #444444;
  padding-left: var(--space-md);
  position: relative;
  line-height: 1.6;
}
.t-bullets li::before { content: '\2014'; position: absolute; left: 0; color: var(--accent); font-size: .7rem; }
.t-bullets li strong { color: #111111; }
.t-note { font-size: .85rem; color: #444444; line-height: 1.7; }

/* -- Certifications -- */
.certifications-section {
  background: #ffffff;
  border-top: 1px solid rgba(0,0,0,.06);
}
.certifications-section .section-title { color: #111111; }
.cert-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}
.cert-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
  padding: var(--space-lg);
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, .08);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform var(--ease), box-shadow var(--ease);
}
.cert-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.cert-icon { font-size: 1.6rem; flex-shrink: 0; line-height: 1; }
.cert-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #111111;
  margin-bottom: 5px;
}
.cert-sub {
  font-size: .72rem;
  color: #666666;
  margin-bottom: 10px;
}
.cert-link {
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}

/* -- Projects Section -- */
.projects-section {
  background: #111111;
  background-image: radial-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px);
  background-size: 28px 28px;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
  align-items: stretch;
}
.proj-card {
  background: linear-gradient(160deg, #1d1d1d 0%, #111 100%);
  border: 1px solid rgba(255, 255, 255, .1);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px rgba(0,0,0,.4);
  position: relative;
}
.proj-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(204,17,17,.3), 0 20px 50px rgba(0,0,0,.7), 0 0 40px rgba(204,17,17,.15);
}
.proj-spec-tape {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 8px var(--space-md);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  font-family: var(--font-mono);
  font-size: .52rem;
  letter-spacing: .1em;
  color: rgba(255,255,255,.4);
  text-transform: uppercase;
  background: rgba(204,17,17,.08);
  transition: background var(--ease), color var(--ease);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.proj-card:hover .proj-spec-tape { background: rgba(204,17,17,.15); color: rgba(255,255,255,.6); }
.proj-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  box-shadow: 0 0 8px var(--accent);
  animation: pulseDot 1.8s ease infinite;
}
.proj-status-dot.internal { background: #22c55e; box-shadow: 0 0 8px #22c55e; }
.proj-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: #0d0d0d;
  overflow: hidden;
  cursor: none;
  flex-shrink: 0;
}
.proj-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: .7;
  transition: opacity .4s, transform .6s;
}
.proj-thumb .play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.6) 100%);
  transition: background var(--ease);
}
.proj-card:hover .proj-thumb img { opacity: 1; transform: scale(1.08); }
.proj-card:hover .proj-thumb .play-overlay { background: linear-gradient(180deg, rgba(204,17,17,.1) 0%, rgba(0,0,0,.7) 100%); }
.badge-spotlight {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  font-family: var(--font-display);
  font-size: .62rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  background: var(--accent);
  color: #fff;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}
.proj-card .proj-body {
  padding: var(--space-md) var(--space-md);
  display: flex;
  flex-direction: column;
  flex: 1;
}
.proj-tag {
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  margin-bottom: var(--space-sm);
  align-self: flex-start;
}
.proj-tag::before { display: none; }
.proj-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  letter-spacing: .04em;
  line-height: 1.1;
  margin-bottom: var(--space-md);
}
.proj-card .proj-title {
  font-size: 1rem;
  text-transform: uppercase;
  line-height: 1.2;
  letter-spacing: .04em;
  color: #ffffff;
  margin-bottom: var(--space-sm);
  min-height: unset;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.proj-desc {
  font-size: .82rem;
  color: rgba(255,255,255,.65);
  line-height: 1.75;
  margin-bottom: var(--space-md);
}
.proj-card .proj-desc { font-size: .78rem; margin-bottom: 12px; }
.proj-bullets { list-style: none; margin-bottom: var(--space-md); }
.proj-bullets li {
  font-size: .82rem;
  color: var(--text-muted);
  padding: 5px 0 5px var(--space-md);
  border-bottom: 1px solid rgba(255, 255, 255, .04);
  position: relative;
}
.proj-bullets li:last-child { border: none; }
.proj-bullets li::before { content: '\2014'; position: absolute; left: 0; color: var(--accent); font-size: .7rem; }
.proj-bullets li strong { color: var(--text); }
.proj-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: var(--space-sm); }
.chip-row { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-bottom: var(--space-md); }
.chip {
  font-family: var(--font-mono);
  font-size: .58rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid rgba(204, 17, 17, .25);
  color: #444444;
  background: rgba(204, 17, 17, .05);
  border-radius: var(--radius-full);
  transition: border-color var(--ease), color var(--ease), background var(--ease);
}

/* Chips on dark backgrounds (proj cards, other cards) */
.proj-card .chip, .other-card .chip {
  border-color: rgba(255, 255, 255, .35);
  color: #ffffff;
  background: rgba(255, 255, 255, .15);
}

/* Know More / Show Less toggle button */
.card-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--accent);
  border: 2px solid var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 9px 20px;
  border-radius: var(--radius-full);
  cursor: none;
  transition: background var(--ease), border-color var(--ease), color var(--ease), transform var(--ease), box-shadow var(--ease);
  margin-top: var(--space-sm);
  align-self: flex-start;
  box-shadow: 0 4px 14px rgba(204, 17, 17, .3);
}
.card-toggle:hover {
  background: transparent;
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(204, 17, 17, .25);
}
.toggle-chevron { transition: transform .35s cubic-bezier(.25, 1, .5, 1); flex-shrink: 0; }
.proj-card.card-open .toggle-chevron { transform: rotate(180deg); }
.card-toggle .toggle-label { font-size: 0; line-height: 0; }
.card-toggle .toggle-label::before { content: 'Know More'; font-size: .78rem; line-height: 1; }
.proj-card.card-open .toggle-label::before { content: 'Show Less'; }

/* Expandable content */
.card-expand {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .55s cubic-bezier(.25, 1, .5, 1), opacity .35s ease;
  padding-top: 0;
}
.proj-card.card-open .card-expand { max-height: 2000px; opacity: 1; padding-top: var(--space-md); }

/* Other projects grid */
.other-section-head {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
  color: #ffffff;
}
.other-section-sub { font-size: .82rem; color: var(--text-muted); margin-bottom: var(--space-lg); }
.other-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}
.other-card {
  padding: var(--space-lg) var(--space-lg) var(--space-md);
  background: linear-gradient(145deg, #d41818 0%, #a00e0e 100%);
  border: none;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  transition: transform .35s ease, box-shadow .35s ease;
  box-shadow: 0 6px 20px rgba(204, 17, 17, .3);
  position: relative;
  overflow: hidden;
}
.other-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  pointer-events: none;
}
.other-card::after {
  content: '';
  position: absolute;
  bottom: -30px;
  left: -30px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(0,0,0,.08);
  pointer-events: none;
}
.other-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 16px 40px rgba(139, 0, 0, .5);
}
.other-card h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 6px;
  color: #ffffff;
}
.other-card p { font-size: .78rem; color: rgba(255,255,255,.85); margin-bottom: var(--space-md); line-height: 1.5; flex: 1; }
.other-link {
  font-size: .65rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #fff;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  background: rgba(255,255,255,.15);
  border-radius: var(--radius-full);
  transition: background var(--ease);
}
.other-card:hover .other-link { background: rgba(255,255,255,.25); }
.link-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: var(--space-lg); }

/* -- Contact Section -- */
.contact-section {
  background: #0a0a0a;
  position: relative;
  overflow: hidden;
  border-top: none;
}
.contact-section .section-title { color: #ffffff; }
.contact-section .section-title em { color: var(--accent); }
.contact-section .section-label {
  color: var(--accent);
  background: rgba(204,17,17,.12);
  border-color: rgba(204,17,17,.25);
}
.contact-bg-text {
  position: absolute;
  bottom: -50px;
  right: -30px;
  font-family: var(--font-display);
  font-size: clamp(80px, 14vw, 180px);
  color: rgba(255, 255, 255, .03);
  letter-spacing: .05em;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
  position: relative;
  z-index: 1;
}
.contact-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  letter-spacing: .05em;
  line-height: 1;
  color: #ffffff;
  margin-bottom: var(--space-2xl);
}
.contact-heading em {
  font-family: var(--font-script);
  font-style: italic;
  color: var(--accent);
  font-size: .88em;
}
.contact-details { display: flex; flex-direction: column; gap: var(--space-lg); margin-bottom: var(--space-2xl); }
.contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  color: rgba(255,255,255,.6);
  font-size: .88rem;
  transition: color var(--ease);
}
.contact-item:hover { color: #ffffff; }
.contact-icon { width: 20px; height: 20px; flex-shrink: 0; color: var(--accent); }
.contact-icon svg { width: 100%; height: 100%; }
.social-links { display: flex; gap: 14px; margin-top: var(--space-xl); }
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .2);
  color: rgba(255,255,255,.7);
  transition: background var(--ease), border-color var(--ease), transform var(--ease);
}
.social-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: scale(1.1);
}
.social-link svg { display: block; }
.contact-form-wrap {
  padding: var(--space-2xl);
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.contact-form { display: flex; flex-direction: column; gap: var(--space-lg); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg); }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: .62rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
}
.form-group input, .form-group textarea {
  width: 100%;
  background: #242424;
  border: 1px solid rgba(255,255,255,.1);
  color: #ffffff;
  padding: 13px var(--space-md);
  font-family: var(--font-body);
  font-size: .88rem;
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color var(--ease), background var(--ease), box-shadow var(--ease);
  resize: vertical;
  cursor: none;
}
.form-group textarea { min-height: 110px; }
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(255,255,255,.25); }
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--accent);
  background: #2d2d2d;
  box-shadow: 0 0 0 3px rgba(204, 17, 17, .15);
}
.btn-submit { align-self: flex-start; margin-top: var(--space-sm); }
.btn-arrow { transition: transform var(--ease); }
.btn-primary:hover .btn-arrow { transform: translateX(4px); }
.btn-submit.success { background: #1a6b1a; border-color: #1a6b1a; pointer-events: none; }

/* -- Footer -- */
.footer {
  background: var(--bg-2);
  border-top: var(--border-subtle);
  padding: var(--space-xl) 0;
}
.footer-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-lg);
}
.footer-role {
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .22em;
  color: #fff;
  text-transform: uppercase;
}
.footer-socials { display: flex; gap: 14px; align-items: center; justify-self: center; }
.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .35);
  color: #fff;
  transition: border-color var(--ease), color var(--ease), transform var(--ease);
}
.footer-socials a:hover { border-color: var(--accent); color: var(--accent); transform: scale(1.1); }
.footer-socials svg { display: block; width: 16px; height: 16px; }
.footer-copy { font-size: .6rem; color: #fff; letter-spacing: .08em; text-align: right; }

/* -- Video Modal -- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.modal.open { opacity: 1; pointer-events: all; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .92);
  backdrop-filter: blur(8px);
}
.modal-content {
  position: relative;
  z-index: 1;
  width: min(820px, 94vw);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}
.modal-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: none;
  transition: color var(--ease);
}
.modal-close:hover { color: var(--accent); }
#modal-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: .08em;
  margin-bottom: var(--space-lg);
}
#modal-iframe { width: 100%; aspect-ratio: 16/9; display: block; border: none; background: #000; }

/* -- AI Assistant -- */
.assistant-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 400;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 12px 20px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: .85rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  box-shadow: 0 4px 20px rgba(204,17,17,.4);
  transition: background var(--ease), transform var(--ease), box-shadow var(--ease);
  cursor: none;
}
.assistant-fab:hover {
  background: var(--accent-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(204,17,17,.5);
}
.fab-pulse {
  position: absolute;
  inset: 0;
  border: 2px solid var(--accent);
  animation: fabRing 2s ease-out infinite;
  pointer-events: none;
}
@keyframes fabRing { 0% { opacity: .6; transform: scale(1); } 100% { opacity: 0; transform: scale(1.5); } }
.fab-label { font-size: .72rem; letter-spacing: .14em; }

.assistant-panel {
  position: fixed;
  bottom: 100px;
  right: 28px;
  width: 420px;
  max-width: calc(100vw - 40px);
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius-lg);
  z-index: 399;
  display: none;
  flex-direction: column;
  max-height: 70vh;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
.assistant-panel.open { display: flex; }
.assistant-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.assistant-title { display: flex; align-items: center; gap: 12px; }
.assistant-title strong { font-family: var(--font-display); font-size: 1.05rem; letter-spacing: .06em; }
.assistant-title span, .muted { color: var(--text-muted); }
.small { font-size: .82rem; }
.assistant-actions { display: flex; gap: var(--space-sm); }
.icon-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: .9rem;
  padding: 4px 8px;
  cursor: none;
  transition: color var(--ease);
}
.icon-btn:hover { color: var(--accent); }
.assistant-body { flex: 1; overflow: hidden; display: flex; flex-direction: column; }
.avatar-mini { flex-shrink: 0; }
.chat {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.msg { max-width: 90%; }
.msg.bot { align-self: flex-start; }
.msg.user { align-self: flex-end; }
.msg p {
  font-size: .84rem;
  color: var(--text-muted);
  line-height: 1.6;
  padding: 10px 14px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .06);
}
.msg.user p { background: rgba(204, 17, 17, .15); border-color: rgba(204, 17, 17, .2); color: var(--text); }
.msg.thinking p { opacity: .5; font-style: italic; }
.quick-replies { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--space-sm); }
.qr {
  font-size: .72rem;
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, .1);
  background: none;
  padding: 5px 10px;
  cursor: none;
  transition: border-color var(--ease), color var(--ease);
}
.qr:hover { border-color: var(--accent); color: var(--accent); }
.chat-input { display: flex; border-top: 1px solid rgba(255, 255, 255, .06); }
.chat-input input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: .85rem;
  padding: 12px 14px;
  cursor: none;
}
.chat-input input::placeholder { color: var(--text-dim); }
.send-btn {
  background: var(--accent);
  border: none;
  color: white;
  padding: 0 var(--space-md);
  font-size: 1rem;
  cursor: none;
  transition: background var(--ease);
}
.send-btn:hover { background: var(--accent-dark); }

/* -- Reveal Animation -- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.25, 1, .5, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* -- Responsive: Tablet (1024px) -- */
@media (max-width: 1024px) {
  .about-intro { grid-template-columns: 1fr; gap: var(--space-xl); }
  .contact-grid { grid-template-columns: 1fr; gap: var(--space-2xl); }
  .project-grid { grid-template-columns: repeat(3, 1fr); }
  .other-grid { grid-template-columns: repeat(2, 1fr); }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-form-wrap { padding: var(--space-xl); }
  .hero-content { max-width: 100%; }
}

/* -- Responsive: Mobile (768px) -- */
@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  html { cursor: auto; }
  .cursor, .cursor-follower { display: none; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-menu-btn { display: flex; }
  .hero-name { font-size: clamp(48px, 14vw, 90px); }
  .hero-role { white-space: normal; }
  .hero-content { bottom: clamp(50px, 8vh, 100px); }
  .hero-cta { flex-wrap: wrap; gap: 10px; }
  .project-grid { grid-template-columns: 1fr; }
  .other-grid { grid-template-columns: 1fr; }
  .feat-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: var(--space-lg); }
  .t-item { grid-template-columns: 76px 1fr; }
  .cert-grid { grid-template-columns: 1fr; }
  .assistant-panel { width: calc(100vw - 40px); right: 20px; }
  .assistant-fab { bottom: 20px; right: 20px; padding: 10px 14px; }
  .fab-label { display: none; }
  .footer-row { grid-template-columns: 1fr; text-align: center; gap: var(--space-md); }
  .footer-copy { text-align: center; }
  .footer-socials { justify-self: center; }
  /* Remove title clamp at full width — not needed */
  .proj-card .proj-title { -webkit-line-clamp: unset; min-height: unset; }
  .hero-label { font-size: .65rem; }
  .btn-primary, .btn-outline { padding: 10px 20px; font-size: .7rem; }
}

/* -- Responsive: Small Mobile (480px) -- */
@media (max-width: 480px) {
  .hero-name { font-size: 13vw; }
  .section-title { font-size: 1.9rem; }
  .section { padding: var(--space-2xl) 0; }
  .t-item { grid-template-columns: 64px 1fr; gap: 0 12px; }
  .t-year { font-size: .58rem; }
  .hero-cta { gap: var(--space-sm); }
  .hero-trust { font-size: .72rem; }
  .nav { padding: 0 var(--space-md); }
  .contact-form-wrap { padding: var(--space-md); }
  .cert-card { flex-direction: column; gap: var(--space-sm); }
  .other-grid { grid-template-columns: 1fr; }
}
