/* ============================================================
   MOURCHID.COM — Main Stylesheet
   Design System: High-Tech Dark Professional
   ============================================================ */

/* ---- CSS Custom Properties ---- */
:root {
  --bg-primary:    #030b18;
  --bg-secondary:  #071020;
  --bg-card:       rgba(10, 20, 45, 0.75);
  --bg-card-hover: rgba(14, 28, 60, 0.9);
  --bg-nav:        rgba(3, 11, 24, 0.92);

  --cyan:    #00d4ff;
  --purple:  #8b5cf6;
  --gold:    #f59e0b;
  --green:   #10b981;
  --red:     #ef4444;

  --text-primary:   #f0f6ff;
  --text-secondary: #8faac3;
  --text-muted:     #4a6080;

  --border:         rgba(0, 212, 255, 0.12);
  --border-hover:   rgba(0, 212, 255, 0.35);

  --glow-cyan:   0 0 24px rgba(0, 212, 255, 0.25);
  --glow-purple: 0 0 24px rgba(139, 92, 246, 0.25);
  --glow-gold:   0 0 24px rgba(245, 158, 11, 0.25);

  --radius:    12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --nav-h: 70px;

  --font-sans:  'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-mono:  'JetBrains Mono', 'Fira Code', monospace;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

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

img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-decoration: none; transition: color var(--transition); }
a:hover { color: #fff; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

::selection { background: rgba(0,212,255,0.25); color: #fff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: rgba(0,212,255,0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--cyan); }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 2rem;
  background: var(--bg-nav);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}

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

.nav-inner {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--text-primary);
  text-decoration: none;
  white-space: nowrap;
}

.nav-logo-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #fff;
  font-weight: 800;
  box-shadow: var(--glow-cyan);
  flex-shrink: 0;
}

.nav-logo span { color: var(--cyan); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  background: rgba(0,212,255,0.08);
}

.nav-link.active { color: var(--cyan); }

.nav-cta {
  padding: 0.55rem 1.25rem;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: #fff !important;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  box-shadow: var(--glow-cyan);
  transition: opacity var(--transition), transform var(--transition);
  white-space: nowrap;
}

.nav-cta:hover { opacity: 0.85; transform: translateY(-1px); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: 8px;
  transition: background var(--transition);
}

.nav-hamburger:hover { background: rgba(255,255,255,0.07); }

.nav-hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

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

.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: var(--bg-nav);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 2rem;
  z-index: 999;
  flex-direction: column;
  gap: 0.5rem;
  transform: translateY(-110%);
  transition: transform var(--transition);
}

.nav-mobile.open { transform: translateY(0); }
.nav-mobile .nav-link { padding: 0.75rem 1rem; font-size: 1rem; }
.nav-mobile .nav-cta { margin-top: 0.75rem; text-align: center; }

/* ============================================================
   PAGE WRAPPER & SECTIONS
   ============================================================ */
.page-wrapper { padding-top: var(--nav-h); }

.section {
  padding: 6rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
}

.section-sm { padding: 4rem 2rem; }

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1rem;
  padding: 0.35rem 0.85rem;
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.2);
  border-radius: 100px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section-title span { color: var(--cyan); }

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.section-divider {
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  border-radius: 2px;
  margin: 1.25rem auto 0;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0 2rem;
}

#hero-canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,212,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
}

.hero-glow-left {
  position: absolute;
  top: 20%; left: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,212,255,0.08) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.hero-glow-right {
  position: absolute;
  bottom: 10%; right: -5%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(139,92,246,0.07) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 4rem;
  align-items: center;
  padding: 6rem 0 4rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  padding: 0.4rem 1rem;
  background: rgba(0,212,255,0.07);
  border: 1px solid rgba(0,212,255,0.25);
  border-radius: 100px;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.6s ease both;
}

.hero-badge-dot {
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.08;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  animation: fadeInUp 0.6s 0.1s ease both;
}

.hero-title-name {
  display: block;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-role {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 1.5rem;
  min-height: 2rem;
  animation: fadeInUp 0.6s 0.2s ease both;
}

.hero-role .typed-cursor {
  color: var(--cyan);
  animation: blink 1s step-end infinite;
}

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

.hero-description {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 540px;
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.6s 0.3s ease both;
}

.hero-description strong { color: var(--cyan); font-weight: 600; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3.5rem;
  animation: fadeInUp 0.6s 0.4s ease both;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s 0.5s ease both;
}

.hero-stat { }

.hero-stat-value {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.hero-stat-value span { color: var(--cyan); }

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

.hero-image-wrapper {
  position: relative;
  animation: fadeInRight 0.8s 0.2s ease both;
}

.hero-image-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: 0 0 0 1px var(--border), var(--glow-cyan);
}

.hero-image-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.hero-image-placeholder {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.hero-image-placeholder i { font-size: 4rem; color: var(--border-hover); }

.hero-image-badge {
  position: absolute;
  bottom: -1rem; left: -1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.875rem 1.25rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-image-badge-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--gold), #e07b00);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  color: #fff;
  flex-shrink: 0;
}

.hero-image-badge-text { }
.hero-image-badge-text strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}
.hero-image-badge-text span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.hero-image-badge2 {
  position: absolute;
  top: 1rem; right: -1.25rem;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  border-radius: var(--radius);
  padding: 0.65rem 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  box-shadow: var(--glow-cyan);
  white-space: nowrap;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.75rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--purple) 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(0,212,255,0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,212,255,0.45);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--cyan);
  border: 1.5px solid rgba(0,212,255,0.4);
}

.btn-outline:hover {
  background: rgba(0,212,255,0.08);
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(255,255,255,0.05);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  color: var(--text-primary);
}

.btn-sm { padding: 0.5rem 1.2rem; font-size: 0.85rem; }
.btn-lg { padding: 1rem 2.25rem; font-size: 1.05rem; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  backdrop-filter: blur(12px);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,212,255,0.3), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), var(--glow-cyan);
}

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

.card-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}

.card-icon-cyan { background: rgba(0,212,255,0.12); color: var(--cyan); }
.card-icon-purple { background: rgba(139,92,246,0.12); color: var(--purple); }
.card-icon-gold { background: rgba(245,158,11,0.12); color: var(--gold); }
.card-icon-green { background: rgba(16,185,129,0.12); color: var(--green); }

.card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}

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

/* ============================================================
   TAGS / BADGES
   ============================================================ */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(0,212,255,0.08);
  color: var(--cyan);
  border: 1px solid rgba(0,212,255,0.2);
}

.tag-purple {
  background: rgba(139,92,246,0.08);
  color: var(--purple);
  border-color: rgba(139,92,246,0.2);
}

.tag-gold {
  background: rgba(245,158,11,0.08);
  color: var(--gold);
  border-color: rgba(245,158,11,0.2);
}

.tag-green {
  background: rgba(16,185,129,0.08);
  color: var(--green);
  border-color: rgba(16,185,129,0.2);
}

.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline { position: relative; padding-left: 2rem; }

.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--cyan), var(--purple), transparent);
}

.timeline-item {
  position: relative;
  padding-bottom: 3rem;
}

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

.timeline-dot {
  position: absolute;
  left: -2.4rem;
  top: 0.3rem;
  width: 14px; height: 14px;
  background: var(--cyan);
  border-radius: 50%;
  border: 2px solid var(--bg-primary);
  box-shadow: 0 0 12px var(--cyan);
}

.timeline-date {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.timeline-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.timeline-company {
  font-size: 0.9rem;
  color: var(--purple);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.timeline-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================================
   SKILLS
   ============================================================ */
.skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.skill-group { }

.skill-group-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.skill-group-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.skill-item {
  margin-bottom: 0.85rem;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.4rem;
  font-size: 0.88rem;
}

.skill-name { color: var(--text-primary); font-weight: 500; }
.skill-pct { color: var(--text-muted); font-size: 0.8rem; }

.skill-bar {
  height: 5px;
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  width: 0;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   GRID LAYOUTS
   ============================================================ */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }

/* ============================================================
   PAGE HERO (sub-pages)
   ============================================================ */
.page-hero {
  position: relative;
  padding: 5rem 2rem 4rem;
  text-align: center;
  overflow: hidden;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,212,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

.page-hero-content { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }

.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ============================================================
   RESUME PAGE
   ============================================================ */
.resume-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3rem;
  align-items: start;
}

.resume-sidebar { position: sticky; top: calc(var(--nav-h) + 2rem); }

.resume-section-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cyan);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* ============================================================
   PROJECT CARDS
   ============================================================ */
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}

.project-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-5px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.4), var(--glow-cyan);
}

.project-card-image {
  aspect-ratio: 16/9;
  background: var(--bg-secondary);
  overflow: hidden;
  position: relative;
}

.project-card-image img { width: 100%; height: 100%; object-fit: cover; }

.project-card-image-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.project-card-image-placeholder i { font-size: 2.5rem; }

.project-card-body { padding: 1.5rem; }

.project-card-company {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cyan);
  margin-bottom: 0.5rem;
}

.project-card-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.65rem;
  line-height: 1.3;
}

.project-card-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  justify-content: center;
}

.filter-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.filter-btn:hover, .filter-btn.active {
  background: rgba(0,212,255,0.1);
  border-color: rgba(0,212,255,0.3);
  color: var(--cyan);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-card);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--transition);
}

.gallery-item:hover { transform: scale(1.02); box-shadow: 0 20px 50px rgba(0,0,0,0.5); }

.gallery-item img { width: 100%; height: 100%; object-fit: cover; }

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}

.gallery-item:hover .gallery-item-overlay { opacity: 1; }

.gallery-item-title { font-size: 0.85rem; font-weight: 600; color: #fff; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  backdrop-filter: blur(8px);
}

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

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox-content img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0,0,0,0.8);
}

.lightbox-close {
  position: fixed;
  top: 1.5rem; right: 1.5rem;
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.2rem;
  transition: background var(--transition);
}

.lightbox-close:hover { background: rgba(255,255,255,0.2); }

.lightbox-nav {
  position: fixed;
  top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.1rem;
  transition: background var(--transition);
}

.lightbox-nav:hover { background: rgba(255,255,255,0.18); }
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

.lightbox-caption {
  position: fixed;
  bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  text-align: center;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

/* ============================================================
   LIBRARY / BOOKS
   ============================================================ */
.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}

.book-card {
  cursor: pointer;
  transition: all var(--transition);
}

.book-card:hover { transform: translateY(-6px); }

.book-cover {
  aspect-ratio: 2/3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  margin-bottom: 0.9rem;
  position: relative;
  box-shadow: 6px 6px 20px rgba(0,0,0,0.5);
  transition: box-shadow var(--transition);
}

.book-card:hover .book-cover {
  box-shadow: 10px 10px 35px rgba(0,0,0,0.7), var(--glow-cyan);
  border-color: var(--border-hover);
}

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

.book-cover-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  text-align: center;
  background: linear-gradient(135deg, var(--bg-secondary), rgba(0,212,255,0.05));
}

.book-cover-placeholder i { font-size: 2rem; color: var(--cyan); }
.book-cover-placeholder span { font-size: 0.75rem; color: var(--text-secondary); font-weight: 600; }

.book-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.book-author {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.book-category-section { margin-bottom: 3.5rem; }

.book-category-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.book-category-title span { color: var(--cyan); }
.book-category-count {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 400;
  background: rgba(255,255,255,0.05);
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
}

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

.contact-form-group {
  margin-bottom: 1.5rem;
}

.contact-form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.contact-form-group input,
.contact-form-group textarea,
.contact-form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}

.contact-form-group input:focus,
.contact-form-group textarea:focus,
.contact-form-group select:focus {
  outline: none;
  border-color: rgba(0,212,255,0.5);
  box-shadow: 0 0 0 3px rgba(0,212,255,0.1);
}

.contact-form-group textarea { resize: vertical; min-height: 140px; }

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1.1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.contact-info-item:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.contact-info-icon {
  width: 44px; height: 44px;
  background: rgba(0,212,255,0.1);
  color: var(--cyan);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-info-text strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}

.contact-info-text span {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ============================================================
   PATENT CARD
   ============================================================ */
.patent-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.patent-card::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 150px; height: 150px;
  background: radial-gradient(circle at top right, rgba(245,158,11,0.07), transparent 70%);
}

.patent-card:hover {
  border-color: rgba(245,158,11,0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4), var(--glow-gold);
}

.patent-number {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.patent-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.patent-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.patent-meta span { display: flex; align-items: center; gap: 0.4rem; }

.patent-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 4rem 2rem 2rem;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}

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

.footer-brand-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 1rem 0 1.5rem;
  max-width: 280px;
}

.footer-socials { display: flex; gap: 0.75rem; }

.social-link {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  font-size: 0.95rem;
  transition: all var(--transition);
}

.social-link:hover {
  background: rgba(0,212,255,0.1);
  border-color: rgba(0,212,255,0.3);
  color: var(--cyan);
  transform: translateY(-2px);
}

.footer-heading {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.footer-links { display: flex; flex-direction: column; gap: 0.6rem; }

.footer-link {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.footer-link:hover { color: var(--cyan); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-bottom-text a { color: var(--cyan); }

/* ============================================================
   AVAILABILITY BANNER
   ============================================================ */
.availability-banner {
  background: linear-gradient(135deg, rgba(16,185,129,0.12), rgba(0,212,255,0.08));
  border: 1px solid rgba(16,185,129,0.3);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.availability-dot {
  width: 10px; height: 10px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2s ease infinite;
  flex-shrink: 0;
}

.availability-text { font-size: 0.9rem; color: var(--text-primary); }
.availability-text strong { color: var(--green); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  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; }

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-center { text-align: center; }
.text-cyan { color: var(--cyan); }
.text-purple { color: var(--purple); }
.text-gold { color: var(--gold); }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-mono { font-family: var(--font-mono); }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.items-center { align-items: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ============================================================
   RESPONSIVE — TABLET (≤ 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-image-wrapper { display: none; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }

  .resume-layout { grid-template-columns: 1fr; }
  .resume-sidebar { position: static; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: 1fr; }

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

/* ============================================================
   RESPONSIVE — MOBILE (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
  :root { --nav-h: 60px; }

  .section { padding: 4rem 1.25rem; }
  .page-hero { padding: 3.5rem 1.25rem 2.5rem; }

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

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

  .hero { padding: 0 1.25rem; }
  .hero-title { font-size: 2.4rem; }
  .hero-stats { gap: 1.5rem; }

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

  .timeline { padding-left: 1.5rem; }
  .timeline-dot { left: -1.9rem; }

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

  .hero-image-badge, .hero-image-badge2 { display: none; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2rem; }
  .hero-description { font-size: 0.95rem; }
  .btn { padding: 0.65rem 1.4rem; font-size: 0.875rem; }
  .section-title { font-size: 1.75rem; }
}

/* ============================================================
   PRINT STYLES (resume)
   ============================================================ */
@media print {
  .nav, .footer, .hero-actions, .page-hero { display: none; }
  body { background: #fff; color: #000; }
  .card { border: 1px solid #ddd; background: #fff; }
  .section { padding: 2rem 0; }
}
