/* 
 * MMAR Premium Portfolio — Main Stylesheet v3.0
 * Focus: Glassmorphism, 3D Animations, Scroll Reveals, Premium Typography
 */

@property --gradient-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

:root {
  --clr-bg-dark: #050510;
  --clr-glass-bg: rgba(255, 255, 255, 0.04);
  --clr-glass-border: rgba(255, 255, 255, 0.1);
  --clr-text-main: #f0f0f5;
  --clr-accent-1: #00f2fe;
  --clr-accent-2: #4facfe;
  --clr-accent-3: #f093fb;
  --clr-accent-4: #f5576c;
  --transition-smooth: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0;
  background-color: var(--clr-bg-dark);
  color: var(--clr-text-main);
  font-family: 'Urbanist', sans-serif;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* ========================================
   BACKGROUND CANVASES
   ======================================== */
#starfield-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* Three.js 3D Container */
#threejs-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
}

.site-content,
.site-header,
.site-footer {
  position: relative;
  z-index: 2;
}

/* ========================================
   SCROLL REVEAL SYSTEM
   ======================================== */
.reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.9s ease, transform 0.9s var(--transition-smooth);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-80px);
  transition: opacity 0.9s ease, transform 0.9s var(--transition-smooth);
}
.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(80px);
  transition: opacity 0.9s ease, transform 0.9s var(--transition-smooth);
}
.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.9s ease, transform 0.9s var(--transition-smooth);
}
.reveal-scale.active {
  opacity: 1;
  transform: scale(1);
}

.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }
.reveal-delay-4 { transition-delay: 0.6s; }

/* ========================================
   GLASSMORPHISM
   ======================================== */
.glass-panel {
  background: var(--clr-glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--clr-glass-border);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
  border-radius: 20px;
}

/* ========================================
   HEADER — Horizontal, Clean
   ======================================== */
.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 92%;
  max-width: 1300px;
  padding: 14px 32px;
  z-index: 1000;
  border-radius: 50px;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
.site-header.scrolled {
  background: rgba(5, 5, 16, 0.9) !important;
  box-shadow: 0 4px 30px rgba(0,0,0,0.6);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.site-branding {
  flex-shrink: 0;
}
.site-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.site-logo {
  max-height: 40px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.2));
  transition: transform 0.3s ease;
}
.site-logo-link:hover .site-logo {
  transform: scale(1.05);
}

/* Navigation — always horizontal */
.main-navigation {
  flex-shrink: 0;
}
.main-navigation ul,
.nav-fallback {
  list-style: none;
  display: flex !important;
  flex-direction: row !important;
  gap: 4px;
  margin: 0;
  padding: 0;
  align-items: center;
}
.main-navigation ul li a,
.nav-fallback a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 30px;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.main-navigation ul li a:hover,
.nav-fallback a:hover {
  color: #fff;
  background: rgba(0, 242, 254, 0.1);
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
.font-urbanist { font-family: 'Urbanist', sans-serif; }
.font-azonix { font-family: 'Azonix', 'Urbanist', sans-serif; font-weight: 800; text-transform: uppercase; }
.font-quffer { font-family: 'Quffer', 'Urbanist', sans-serif; font-weight: 600; }

/* ========================================
   HERO NAME — Bright, Visible, Animated
   ======================================== */
.hero-title {
  font-size: clamp(2.5rem, 5vw, 5rem);
  margin-bottom: 24px;
  line-height: 1.15;
  perspective: 800px;
  color: #ffffff;
  text-shadow: 
    0 0 40px rgba(0, 242, 254, 0.3),
    0 0 80px rgba(79, 172, 254, 0.15),
    0 4px 20px rgba(0,0,0,0.5);
  word-wrap: normal;
  word-break: normal;
  white-space: normal;
}

/* Each letter animates in with 3D rotation */
.hero-title .letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(50px) rotateX(90deg);
  transition: opacity 0.5s ease, transform 0.6s var(--transition-smooth);
  color: #ffffff;
}
.hero-title.active .letter {
  opacity: 1;
  transform: translateY(0) rotateX(0deg);
}

/* After animation completes, apply gradient shimmer */
.hero-title.animated .letter {
  background: linear-gradient(
    135deg,
    #ffffff 0%,
    var(--clr-accent-1) 25%,
    var(--clr-accent-2) 50%,
    var(--clr-accent-3) 75%,
    #ffffff 100%
  );
  background-size: 400% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmerText 4s ease-in-out infinite;
}

@keyframes shimmerText {
  0%   { background-position: 100% 0; }
  50%  { background-position: 0% 0; }
  100% { background-position: 100% 0; }
}

.hero-subtitle {
  font-size: clamp(0.95rem, 1.8vw, 1.3rem);
  font-weight: 400;
  letter-spacing: 1px;
  margin-bottom: 40px;
  color: rgba(255,255,255,0.75);
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

/* ========================================
   SECTION TITLES — Animated
   ======================================== */
.section-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin-bottom: 30px;
  color: var(--clr-accent-1);
  text-shadow: 0 0 20px rgba(0, 242, 254, 0.2);
}
.section-title .letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(30px) rotateX(90deg);
  transition: opacity 0.4s ease, transform 0.5s var(--transition-smooth);
  color: var(--clr-accent-1);
}
.section-title.active .letter {
  opacity: 1;
  transform: translateY(0) rotateX(0deg);
}

/* ========================================
   LAYOUT
   ======================================== */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 120px 0;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero-section {
  justify-content: center;
  text-align: center;
  padding: 0 !important;
  margin: 0 !important;
  height: 100vh;
  position: relative;
  overflow: hidden;
}
.hero-content {
  position: relative;
  z-index: 2;
}

/* Scroll Indicator — Pure CSS Mouse */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: bottom 0.3s ease;
  z-index: 10;
}
.scroll-indicator:hover {
  bottom: 32px;
}
.scroll-indicator span {
  font-size: 0.7rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}
.scroll-mouse {
  width: 24px;
  height: 40px;
  border: 2px solid rgba(0, 242, 254, 0.4);
  border-radius: 14px;
  position: relative;
}
.scroll-mouse::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 7px;
  background: var(--clr-accent-1);
  border-radius: 3px;
  animation: scrollWheel 2s ease infinite;
}
@keyframes scrollWheel {
  0%   { opacity: 1; top: 8px; }
  100% { opacity: 0; top: 24px; }
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about-section {
  margin: 60px auto;
  padding: 60px;
  max-width: 1100px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  align-items: center;
}

.bio-content p {
  font-size: 1.05rem;
  line-height: 1.9;
  margin-bottom: 16px;
  color: rgba(255,255,255,0.72);
}
.bio-content strong {
  color: var(--clr-accent-1);
  font-weight: 600;
}

/* Credential Tags */
.credential-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 25px;
}
.credential-tag {
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  border: 1px solid rgba(0, 242, 254, 0.25);
  color: var(--clr-accent-1);
  background: rgba(0, 242, 254, 0.04);
  transition: all 0.3s ease;
}
.credential-tag:hover {
  background: rgba(0, 242, 254, 0.12);
  border-color: var(--clr-accent-1);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.15);
}

/* About Visual — Pulsing Orb */
.about-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-visual-orb {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(0,242,254,0.12), rgba(79,172,254,0.06), transparent 70%);
  border: 1px solid rgba(0,242,254,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: orbPulse 4s ease-in-out infinite;
}
.about-visual-orb::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 1px solid rgba(0,242,254,0.06);
  animation: orbPulse 4s ease-in-out infinite reverse;
}
.about-visual-orb .orb-text {
  font-size: 3.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--clr-accent-1), var(--clr-accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 4px;
}
@keyframes orbPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.06); }
}

/* ========================================
   PROJECTS / SHOWCASE
   ======================================== */
.projects-section {
  display: block;
  padding: 120px 0;
}

.title-glass {
  display: inline-block;
  padding: 12px 35px;
  margin-bottom: 50px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.project-card {
  overflow: hidden;
  transition: transform 0.4s var(--transition-smooth), box-shadow 0.4s ease, border-color 0.4s ease;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}
.project-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 50px rgba(0, 242, 254, 0.12);
  border-color: rgba(0, 242, 254, 0.35);
}

.project-media {
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(0,242,254,0.04), rgba(240,147,251,0.04));
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.project-card:hover .project-media img {
  transform: scale(1.1);
}
.project-icon {
  font-size: 3rem;
  opacity: 0.25;
}

.project-info {
  padding: 25px 28px 28px;
  flex-grow: 1;
}
.project-title {
  font-size: 1.25rem;
  margin: 0 0 8px 0;
  color: #fff;
}


.hero-title {
  font-size: 4.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  display: inline-block;
  animation: neonPulse 3s infinite alternate;
}
.hero-title .highlight {
  color: var(--accent-color);
  position: relative;
  display: inline-block;
}
.hero-title .highlight::before {
  content: '';
  position: absolute;
  top: 0; left: -10px; right: -10px; bottom: 0;
  background: var(--accent-color);
  z-index: -1;
  filter: blur(25px);
  opacity: 0.4;
  animation: pulseGlow 2s infinite alternate;
}

@keyframes neonPulse {
  0% { text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 20px var(--clr-accent-1), 0 0 40px var(--clr-accent-1); }
  50% { text-shadow: 0 0 2px #fff, 0 0 5px #fff, 0 0 10px var(--clr-accent-1), 0 0 20px var(--clr-accent-1); }
  100% { text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 20px var(--clr-accent-1), 0 0 40px var(--clr-accent-1); }
}
@keyframes pulseGlow {
  0% { opacity: 0.2; transform: scale(0.95); }
  100% { opacity: 0.6; transform: scale(1.05); }
}



.project-tech {
  font-size: 0.78rem;
  color: var(--clr-accent-3);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 500;
}
.project-excerpt {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 20px;
  line-height: 1.7;
}
.project-excerpt p { margin: 0; }

.btn-primary {
  display: inline-block;
  padding: 10px 28px;
  background: linear-gradient(135deg, var(--clr-accent-1), var(--clr-accent-2));
  color: var(--clr-bg-dark);
  text-decoration: none;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.84rem;
  letter-spacing: 0.5px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.btn-primary:hover {
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.35);
  transform: translateY(-2px);
}

/* ========================================
   HIGHLIGHTS SLIDER
   ======================================== */
.image-slider-section {
  padding: 80px 0 60px 0;
  overflow: hidden;
  position: relative;
}
.image-slider-section .container {
  text-align: center;
}
.image-slider-section .title-glass {
  display: inline-block;
  padding: 15px 40px;
  border-radius: 50px;
  border: 1px solid rgba(0, 242, 254, 0.3);
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  margin-bottom: 40px;
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.1);
}
.image-slider-section .section-title {
  margin-bottom: 0;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
}

.image-slider .swiper-slide {
  width: 80%; /* Takes 80% of screen so the next slide peeks in on mobile */
  max-width: 300px; /* Force an optimal size for desktop so they don't squish */
}
.slider-card {
  padding: 30px 20px;
  border-radius: 20px;
  text-align: center;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, border-color 0.3s ease;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.slider-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 242, 254, 0.3);
}
.slider-card h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--clr-accent-1);
  letter-spacing: 1px;
}
.slider-card p {
  margin: 0;
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
  margin: 60px auto 20px auto;
  width: 92%;
  max-width: 1300px;
  padding: 28px 40px;
  border-radius: 50px;
}
.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-site-logo {
  max-height: 40px;
  width: auto;
  object-fit: contain;
  margin-bottom: 8px;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.2));
  display: block;
}
.footer-info p {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.45);
}
.footer-nav ul {
  list-style: none;
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
}
.footer-nav ul li a {
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  font-size: 0.84rem;
  padding: 6px 14px;
  border-radius: 20px;
  transition: all 0.3s ease;
}
.footer-nav ul li a:hover {
  color: #fff;
  background: rgba(255,255,255,0.06);
}
.footer-socials {
  display: flex;
  gap: 10px;
}
.footer-socials a {
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  font-size: 0.84rem;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.3s ease;
}
.footer-socials a:hover {
  color: var(--clr-accent-1);
  border-color: var(--clr-accent-1);
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.15);
}

/* ========================================
   SWIPER HERO SLIDER
   ======================================== */
.hero-slider {
  width: 100vw;
  height: 100vh;
  position: relative;
}
.hero-slider .swiper-slide {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.slide-video-wrap {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}
.slide-video-wrap iframe {
  width: 100vw;
  height: 56.25vw; /* 16:9 aspect */
  min-height: 100vh;
  min-width: 177.77vh; /* 16:9 aspect */
  position: absolute;
  top: 50%; left: 50%;
  /* Scale up by 1.4 to push YouTube titles and logos out of the visible viewport */
  transform: translate(-50%, -50%) scale(1.4);
  pointer-events: none;
  border: none;
  object-fit: cover;
}
.slide-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(5, 5, 16, 0.65); /* Darken for text visibility */
  z-index: 1;
  pointer-events: auto; /* Absorb clicks to prevent YT UI */
}
.slide-content {
  text-align: center;
  z-index: 2;
  max-width: 900px;
  padding: 0 20px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.swiper-slide-active .slide-content {
  opacity: 1;
  transform: translateY(0);
}
.slide-title {
  font-size: clamp(2rem, 5vw, 4.5rem);
  margin-bottom: 20px;
  text-shadow: 0 4px 30px rgba(0,0,0,0.8);
  word-wrap: normal;
  word-break: normal;
}
.slide-subtitle {
  font-size: clamp(1rem, 2vw, 1.4rem);
  color: rgba(255,255,255,0.8);
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.hero-slider .swiper-button-next,
.hero-slider .swiper-button-prev {
  color: var(--clr-accent-1);
}
.hero-slider .swiper-pagination-bullet {
  background: #fff;
  opacity: 0.5;
}
.hero-slider .swiper-pagination-bullet-active {
  background: var(--clr-accent-1);
  opacity: 1;
}

/* ========================================
   VIDEO FEATURE SECTIONS
   ======================================== */
.video-feature-section,
.video-break-section {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  margin: 60px 0;
}
.video-bg-container {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1;
}
.video-bg-container iframe {
  width: 100vw;
  height: 56.25vw;
  min-height: 100%;
  min-width: 177.77vh;
  position: absolute;
  top: 50%; left: 50%;
  /* Scale up by 1.4 to push YouTube titles and logos out of the visible viewport */
  transform: translate(-50%, -50%) scale(1.4);
  pointer-events: none;
  object-fit: cover;
}
.video-overlay-gradient {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(to bottom, var(--clr-bg-dark) 0%, rgba(5,5,16,0.5) 50%, var(--clr-bg-dark) 100%);
}
.video-feature-content,
.video-break-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}
.video-feature-content p,
.video-break-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: rgba(255,255,255,0.8);
}

/* ========================================
   SERVICES GRID
   ======================================== */
.services-section {
  padding: 100px 0;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.service-card {
  padding: 40px 30px;
  text-align: center;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 242, 254, 0.1);
}
.service-icon {
  font-size: 3.5rem;
  margin-bottom: 20px;
}
.service-title {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: var(--clr-accent-1);
}
.service-desc {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
}



/* ========================================
   CONTACT CTA
   ======================================== */
.contact-section {
  padding: 100px 0;
}
.contact-box {
  text-align: center;
  padding: 80px 40px;
  max-width: 800px;
  margin: 0 auto;
  background: radial-gradient(circle at top, rgba(0,242,254,0.1), transparent 70%);
}
.contact-box p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: rgba(255,255,255,0.7);
}

/* ========================================
   INTRO SPACER (3D ANIMATION SHOWCASE)
   ======================================== */
.intro-spacer-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: transparent;
  padding: 120px 0;
  position: relative;
  z-index: 2;
}
.intro-spacer-content {
  max-width: 800px;
  padding: 60px;
  background: radial-gradient(circle at center, rgba(0,242,254,0.05), transparent 70%);
  border-radius: 30px;
}
.intro-spacer-content h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 20px;
  color: #fff;
  text-shadow: 0 0 20px rgba(0, 242, 254, 0.4);
}
.intro-spacer-content p {
  font-size: 1.25rem;
  color: rgba(255,255,255,0.7);
  letter-spacing: 1px;
}

/* ========================================
   RESPONSIVE
   ======================================== */

/* Mobile Menu Toggle (hamburger icon) */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1000;
}
.mobile-menu-toggle span {
  width: 30px;
  height: 3px;
  background: #fff;
  border-radius: 10px;
  transition: all 0.3s linear;
  position: relative;
  transform-origin: 1px;
}
.mobile-menu-toggle.open span:nth-child(1) { transform: rotate(45deg); }
.mobile-menu-toggle.open span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.open span:nth-child(3) { transform: rotate(-45deg); }

/* Close button inside mobile nav — hidden on desktop */
.mobile-nav-close {
  display: none;
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10001;
  line-height: 1;
  transition: all 0.3s ease;
}
.mobile-nav-close:hover {
  background: rgba(0, 242, 254, 0.2);
  border-color: var(--clr-accent-1);
  transform: rotate(90deg);
}

/* Backdrop overlay behind mobile nav */
.mobile-menu-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .about-visual-orb {
    width: 180px;
    height: 180px;
  }
  .about-visual-orb::before {
    width: 220px;
    height: 220px;
  }
  .site-header {
    padding: 10px 18px;
    border-radius: 20px;
  }
  .hero-title { font-size: 2rem; }
  .credential-tags { justify-content: center; }
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }

  /* Show hamburger on mobile */
  .mobile-menu-toggle {
    display: flex;
  }

  /* Close button hidden on desktop, shown on mobile */
  .mobile-nav-close {
    display: block !important;
  }

  /* Slide-in mobile nav overlay */
  .main-navigation {
    position: fixed !important;
    top: 0 !important;
    right: -100% !important;
    width: 80vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    background: rgba(5, 5, 16, 0.98) !important;
    backdrop-filter: blur(30px) !important;
    -webkit-backdrop-filter: blur(30px) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    z-index: 9999 !important;
    border-left: 1px solid rgba(0, 242, 254, 0.15) !important;
    box-shadow: -10px 0 40px rgba(0,0,0,0.8) !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow-y: auto !important;
  }
  .main-navigation.open {
    right: 0 !important;
  }

  /* Override the desktop row layout for nav links */
  .main-navigation ul,
  .main-navigation .nav-fallback {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 35px !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
  }
  .main-navigation .nav-fallback a,
  .main-navigation ul li a {
    font-size: 1.4rem !important;
    color: rgba(255,255,255,0.85) !important;
    text-decoration: none !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    padding: 12px 24px !important;
    border-radius: 12px !important;
    transition: all 0.3s ease !important;
    white-space: nowrap !important;
  }
  .main-navigation .nav-fallback a:hover,
  .main-navigation ul li a:hover {
    color: #fff !important;
    background: rgba(0, 242, 254, 0.15) !important;
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.5) !important;
  }

  /* Backdrop overlay */
  .mobile-menu-backdrop.active {
    display: block !important;
  }
}

/* ========================================
   WORD ANIMATIONS
   ======================================== */
.animate-words {
  display: inline-block;
}
.animate-words .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  filter: blur(5px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              color 0.4s ease;
}
.animate-words.active .word {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}
.animate-words.active .word:hover {
  color: var(--clr-accent-1);
  text-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
  transform: translateY(-5px) scale(1.05);
}


/* Background images replacing videos */
.slide-bg-image, .section-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}
