/* ═══════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --dark:        #09090b;
  --dark-card:   #111113;
  --dark-border: #1f1f23;
  --light:       #e4e4e7;
  --muted:       #71717a;
  --accent:      #a1a1aa;
  --accent-hover:#d4d4d8;
  --accent-soft: #52525b;
  --font-body:   'Inter', sans-serif;
  --font-head:   'Space Grotesk', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--dark);
  color: var(--light);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ═══════════════════════════════════════════
   UTILITIES
═══════════════════════════════════════════ */
.gradient-text {
  background: linear-gradient(135deg, #d4d4d8, #71717a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-accent { color: var(--accent); }
.text-cyan   { color: var(--accent-soft); }

.container {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 8rem 0; position: relative; }

.section-label {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

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

.section-sub {
  color: var(--muted);
  max-width: 40rem;
  margin-bottom: 4rem;
  margin-top: -3rem;
}

.section-divider {
  height: 1px;
  max-width: 56rem;
  margin: 8rem auto 0;
  background: linear-gradient(90deg, transparent, var(--dark-border), transparent);
}

/* ═══════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: 9999px;
  background: var(--accent);
  color: #fff;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
  cursor: pointer;
  border: none;
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--dark);
  box-shadow: 0 0 30px rgba(161,161,170,0.15);
  transform: translateY(-1px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: 9999px;
  border: 1px solid var(--dark-border);
  color: var(--light);
  font-weight: 500;
  font-size: 0.95rem;
  transition: border-color 0.3s, transform 0.2s;
  cursor: pointer;
  background: transparent;
}
.btn-outline:hover { border-color: var(--accent); transform: translateY(-1px); }

.btn-sm  { padding: 0.5rem 1.25rem; font-size: 0.875rem; }
.btn-lg  { padding: 1rem 2.5rem; font-size: 1.1rem; }
.btn-full { width: 100%; justify-content: center; border-radius: 0.75rem; }

/* ═══════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
#navbar.scrolled {
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(20px);
  border-color: var(--dark-border);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--light);
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  font-size: 0.875rem;
  color: var(--muted);
  transition: color 0.3s;
  position: relative;
}
.nav-links a:not(.btn-primary)::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.3s;
}
.nav-links a:not(.btn-primary):hover { color: var(--light); }
.nav-links a:not(.btn-primary):hover::after { width: 100%; }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem;
  border: 1px solid var(--dark-border);
  border-radius: 9999px;
  background: rgba(17,17,24,0.35);
}
.lang-link {
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  color: var(--muted);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.lang-link.active {
  color: var(--light);
  background: rgba(161,161,170,0.14);
}
.lang-link:hover { color: var(--light); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  z-index: 110;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--light);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(10,10,15,0.97);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-link {
  font-family: var(--font-head);
  font-size: 2rem;
  color: var(--light);
  transition: color 0.3s;
}
.mobile-link:hover { color: var(--accent); }

.mobile-lang {
  display: flex;
  gap: 0.75rem;
  margin-top: 2rem;
}
.mobile-lang-link {
  font-family: var(--font-head);
  font-size: 1.1rem;
  color: var(--muted);
  text-decoration: none;
  padding: 0.5rem 0.9rem;
  border-radius: 9999px;
  border: 1px solid var(--dark-border);
  transition: color 0.2s, background 0.2s;
}
.mobile-lang-link.active {
  color: var(--light);
  background: rgba(161,161,170,0.14);
}
.mobile-lang-link:hover { color: var(--light); }

/* ═══════════════════════════════════════════
   HERO
═══════════════════════════════════════════ */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  animation: orbFloat 20s ease-in-out infinite;
}
.orb-1 {
  width: 500px; height: 500px;
  background: rgba(161,161,170,0.04);
  top: 25%; left: 25%;
}
.orb-2 {
  width: 400px; height: 400px;
  background: rgba(212,212,216,0.03);
  bottom: 25%; right: 25%;
  animation-duration: 25s;
  animation-direction: reverse;
}
@keyframes orbFloat {
  0%,100% { transform: translate(0,0); }
  33%      { transform: translate(30px,-40px); }
  66%      { transform: translate(-20px,20px); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  padding: 0 1.5rem;
}
.hero-split {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 3rem;
  text-align: left;
}
.hero-text {
  max-width: 600px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  border: 1px solid var(--dark-border);
  background: rgba(17,17,24,0.5);
  backdrop-filter: blur(8px);
  margin-bottom: 2rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4ade80;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.8); }
}

#hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
#hero h1 .block { display: block; }
#hero h1 .block:last-child { margin-top: 0.5rem; }

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--muted);
  max-width: 40rem;
  margin: 0 0 2.5rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0;
}

.hero-photo {
  width: 20rem;
  height: 20rem;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--dark-border);
  box-shadow: 0 0 0 6px rgba(161,161,170,0.06), 0 0 0 12px rgba(161,161,170,0.03), 0 8px 32px rgba(0,0,0,0.4);
  flex-shrink: 0;
}
.hero-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--muted);
  animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}

/* ═══════════════════════════════════════════
   ANIMATE IN (hero elements)
═══════════════════════════════════════════ */
.animate-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.7s ease forwards;
  animation-delay: var(--delay, 0s);
}
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════
   SCROLL REVEAL
═══════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.reveal-right {
  transform: translateX(30px);
}
.reveal.visible {
  opacity: 1;
  transform: translate(0);
}

/* ═══════════════════════════════════════════
   ABOUT
═══════════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.about-bio { display: flex; flex-direction: column; gap: 1.25rem; }
.about-bio p { color: var(--muted); line-height: 1.8; }
.about-bio strong { color: var(--light); font-weight: 500; }

.about-cards { display: flex; flex-direction: column; gap: 1.25rem; }

.card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 1rem;
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: border-color 0.3s;
}
.card:hover { border-color: rgba(161,161,170,0.25); }

.card-icon {
  width: 2.5rem; height: 2.5rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.icon-accent { background: rgba(161,161,170,0.08); color: var(--accent); }
.icon-cyan   { background: rgba(161,161,170,0.06); color: var(--accent-soft); }

.card h3 { font-family: var(--font-head); font-weight: 600; color: var(--light); margin-bottom: 0.25rem; }
.card-meta { font-size: 0.8rem; margin-bottom: 0.5rem; }
.card-desc { font-size: 0.85rem; color: var(--muted); line-height: 1.6; }
.certs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}
.cert-tile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 0.75rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, background 0.2s;
}
a.cert-tile:hover {
  border-color: rgba(161,161,170,0.3);
  background: rgba(161,161,170,0.06);
}
.cert-tile-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: rgba(161,161,170,0.08);
  color: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cert-tile-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
  min-width: 0;
}
.cert-tile-info strong {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--light);
}
.cert-tile-info span {
  font-size: 0.75rem;
  color: var(--muted);
}
.cert-tile-action {
  color: var(--muted);
  flex-shrink: 0;
  transition: color 0.2s;
}
a.cert-tile:hover .cert-tile-action { color: var(--light); }

/* ═══════════════════════════════════════════
   SKILLS
═══════════════════════════════════════════ */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.skills-subtitle {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--light);
  margin-bottom: 2rem;
}

.skill-bars { display: flex; flex-direction: column; }

.skill-bar { margin-bottom: 1.25rem; }
.skill-bar-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}
.skill-bar-header span:first-child { color: var(--light); }
.skill-bar-header span:last-child  { color: var(--muted); }

.bar-track {
  height: 6px;
  background: var(--dark-border);
  border-radius: 9999px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  border-radius: 9999px;
  width: 0;
  transition: width 1.2s ease;
}
.bar-purple { background: var(--accent); }
.bar-cyan   { background: var(--accent-soft); }

.creative-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.creative-chip {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 0.75rem;
  padding: 1rem;
  font-size: 0.875rem;
  color: var(--light);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: border-color 0.3s, transform 0.2s;
  cursor: default;
}
.creative-chip:hover { border-color: var(--accent); transform: translateY(-2px); }

.soft-skills { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.soft-tag {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  border: 1px solid var(--dark-border);
  font-size: 0.8rem;
  color: var(--muted);
  transition: color 0.3s, border-color 0.3s;
  cursor: default;
}
.soft-tag:hover { color: var(--accent); border-color: var(--accent); }

/* ═══════════════════════════════════════════
   PORTFOLIO
═══════════════════════════════════════════ */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 3rem;
}
.filter-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  background: transparent;
  border: 1px solid var(--dark-border);
  color: var(--muted);
}
.filter-btn:hover { color: var(--light); border-color: var(--accent); }
.filter-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.project-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 1rem;
  padding: 1.5rem;
  cursor: pointer;
  transition: border-color 0.3s, transform 0.3s;
}
.project-card:hover { border-color: rgba(161,161,170,0.3); transform: translateY(-4px); }
.project-card.hidden { display: none; }

.project-icon {
  width: 3.5rem; height: 3.5rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  transition: transform 0.3s;
}
.project-card:hover .project-icon { transform: scale(1.1); }

.project-cat {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.5rem;
}

.project-title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--light);
  margin-bottom: 0.75rem;
  transition: color 0.3s;
}
.project-card:hover .project-title { color: var(--accent); }

.project-desc {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag {
  font-size: 0.7rem;
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  background: var(--dark);
  border: 1px solid var(--dark-border);
  color: var(--muted);
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10,10,15,0.9);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 1.25rem;
  padding: 2rem;
  max-width: 32rem;
  width: 100%;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s;
}
.modal-overlay.open .modal { transform: scale(1); }

.modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1rem;
  cursor: pointer;
  transition: color 0.3s;
  line-height: 1;
  padding: 0.25rem;
}
.modal-close:hover { color: var(--light); }

.modal-icon {
  width: 5rem; height: 5rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}
.modal-image {
  width: 100%;
  border-radius: 0.75rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--dark-border);
  object-fit: cover;
  max-height: 220px;
}
.modal-videos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.modal-video-wrap {
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid var(--dark-border);
  background: rgba(0,0,0,0.3);
}
.modal-video-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  padding: 0.5rem 0.75rem 0;
  letter-spacing: 0.05em;
}
.modal-video {
  width: 100%;
  display: block;
  border-radius: 0 0 0.75rem 0.75rem;
  max-height: 250px;
}
.modal-video-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0 0 1.25rem;
 }
.modal-cat { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; display: block; margin-bottom: 0.5rem; }
.modal-title { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; color: var(--light); margin-bottom: 1rem; }
.modal-desc { color: var(--muted); line-height: 1.7; margin-bottom: 1.5rem; }
.modal-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.modal-actions { display: flex; gap: 1rem; }

/* ═══════════════════════════════════════════
   SERVICES
═══════════════════════════════════════════ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.service-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 1rem;
  padding: 1.75rem;
  transition: border-color 0.3s, transform 0.3s;
}
.service-card:hover { border-color: rgba(161,161,170,0.25); transform: translateY(-6px); }

.service-icon {
  width: 3rem; height: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: transform 0.3s;
}
.service-card:hover .service-icon { transform: scale(1.1); }

.service-card h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--light);
  margin-bottom: 0.75rem;
}
.service-card p { font-size: 0.875rem; color: var(--muted); line-height: 1.6; }

.cta-box {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 1.25rem;
  padding: 3.5rem;
  text-align: center;
}
.cta-box h3 {
  font-family: var(--font-head);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--light);
  margin-bottom: 1rem;
}
.cta-box p { color: var(--muted); max-width: 36rem; margin: 0 auto 2rem; }

/* ═══════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-intro { color: var(--muted); line-height: 1.8; margin-bottom: 2rem; }

.contact-info { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--muted);
  transition: color 0.3s;
}
.contact-item:hover { color: var(--light); }
.contact-icon {
  width: 2.5rem; height: 2.5rem;
  border-radius: 0.5rem;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.3s;
}
.contact-item:hover .contact-icon { border-color: var(--accent); color: var(--accent); }

.socials-label { font-size: 0.875rem; color: var(--muted); margin-bottom: 1rem; }
.socials-row { display: flex; gap: 0.75rem; }
.social-btn {
  width: 2.75rem; height: 2.75rem;
  border-radius: 0.5rem;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: border-color 0.3s, color 0.3s, transform 0.2s;
}
.social-btn:hover { border-color: var(--accent); color: var(--light); transform: translateY(-2px); }

.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group label { font-size: 0.875rem; color: var(--muted); }
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border-radius: 0.75rem;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  color: var(--light);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color 0.3s;
  outline: none;
  resize: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(107,107,128,0.5); }
.form-group input:focus,
.form-group textarea:focus { border-color: var(--accent); }

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
#footer {
  border-top: 1px solid var(--dark-border);
  padding: 2.5rem 0;
}
.footer-inner {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.footer-inner p { font-size: 0.875rem; color: var(--muted); text-align: center; }
.footer-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted);
}

/* ═══════════════════════════════════════════
   PRELOADER / WELCOME ANIMATION
═══════════════════════════════════════════ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0, 1), visibility 0.8s;
}
.preloader.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.pre-logo {
  font-family: var(--font-head);
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 700;
  color: var(--light);
  overflow: hidden;
  display: flex;
}
.pre-logo .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%);
  animation: charReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes charReveal {
  to { opacity: 1; transform: translateY(0); }
}

.pre-line {
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  margin: 1.5rem 0;
  animation: lineExpand 0.8s 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes lineExpand {
  to { width: min(300px, 60vw); }
}

.pre-tagline {
  font-family: var(--font-head);
  font-size: clamp(0.9rem, 2.5vw, 1.25rem);
  color: var(--muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeIn 0.8s 1.2s ease forwards;
}
@keyframes fadeIn {
  to { opacity: 1; }
}

/* Body locked during preloader */
body.loading {
  overflow: hidden;
}

/* ═══════════════════════════════════════════
   CURSOR FOLLOWER
═══════════════════════════════════════════ */
.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(161,161,170,0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
  opacity: 0;
}
.cursor-glow.visible {
  opacity: 1;
}

/* ═══════════════════════════════════════════
   CLIP REVEAL (trendy 2026 text reveal)
═══════════════════════════════════════════ */
.clip-reveal {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.clip-reveal.visible {
  clip-path: inset(0 0% 0 0);
}

/* Staggered fade for hero after preloader */
.hero-stagger {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-stagger.show {
  opacity: 1;
  transform: translateY(0);
}

/* Subtle noise texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.015;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' 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;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .projects-grid,
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .about-grid,
  .skills-grid,
  .contact-grid,
  .certs-grid { grid-template-columns: 1fr; }

  .modal-videos { grid-template-columns: 1fr; }

  .projects-grid,
  .services-grid { grid-template-columns: 1fr; }

  .cta-box { padding: 2rem; }

  .section { padding: 5rem 0; }

  .hero-split {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-text { max-width: 100%; }
  .hero-photo {
    width: 12rem;
    height: 12rem;
    margin: 0 auto;
    order: -1;
  }
  .hero-cta { justify-content: center; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; align-items: center; }
  .modal-actions { flex-direction: column; }
}
