/* ============================================
   AZAM MALIK - ADVANCED PORTFOLIO STYLES
   Modern, Animated, Professional Design
   ============================================ */

/* ==================== CSS VARIABLES ==================== */
:root {
  /* Colors - Futuristic Cyber Theme */
  --bg-primary: #030014;
  --bg-secondary: #0a0a1a;
  --bg-tertiary: #0f0f24;
  --surface: rgba(255, 255, 255, 0.02);
  --surface-hover: rgba(255, 255, 255, 0.05);
  --glass: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(0, 255, 255, 0.15);
  
  /* Accent Colors - Neon Cyber */
  --accent: #00f0ff;
  --accent-light: #00ffff;
  --accent-soft: rgba(0, 240, 255, 0.1);
  --accent-glow: rgba(0, 240, 255, 0.5);
  --purple: #a855f7;
  --purple-soft: rgba(168, 85, 247, 0.15);
  --pink: #f472b6;
  --pink-soft: rgba(244, 114, 182, 0.15);
  --cyan: #06b6d4;
  --cyan-soft: rgba(6, 182, 212, 0.15);
  --neon-green: #00ff88;
  --neon-blue: #0066ff;
  --gradient-primary: linear-gradient(135deg, #00f0ff 0%, #a855f7 50%, #f472b6 100%);
  --gradient-secondary: linear-gradient(135deg, #a855f7 0%, #00f0ff 100%);
  --gradient-neon: linear-gradient(90deg, #00f0ff, #a855f7, #f472b6, #00f0ff);
  --gradient-text: linear-gradient(90deg, #00f0ff, #a855f7, #f472b6);
  
  /* Text */
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.75);
  --text-muted: rgba(255, 255, 255, 0.5);
  
  /* Layout */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
  --max-width: 1320px;
  --header-height: 80px;
  
  /* Typography - Futuristic Fonts */
  --font-heading: 'Orbitron', 'Rajdhani', sans-serif;
  --font-body: 'Rajdhani', 'Space Grotesk', sans-serif;
  --font-mono: 'Share Tech Mono', 'Fira Code', monospace;
  
  /* Shadows - Neon Glow */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 30px var(--accent-glow), 0 0 60px rgba(0, 240, 255, 0.2);
  --shadow-neon: 0 0 10px var(--accent), 0 0 20px var(--accent), 0 0 40px var(--accent);
  
  /* Transitions */
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --ease-elastic: cubic-bezier(0.68, -0.6, 0.32, 1.6);
  --transition-fast: 0.2s var(--ease-smooth);
  --transition-normal: 0.3s var(--ease-smooth);
  --transition-slow: 0.5s var(--ease-smooth);
}

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

/* Prevent horizontal overflow */
* {
  max-width: 100%;
}

img, video, iframe {
  max-width: 100%;
  height: auto;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: 100%;
  max-width: 100vw;
  position: relative;
}

* {
  max-width: 100%;
}

body.loading {
  overflow: hidden;
}

::selection {
  background: var(--accent);
  color: var(--bg-primary);
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* ==================== LOADING SCREEN ==================== */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2rem;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: grid-pulse 2s ease-in-out infinite;
}

@keyframes grid-pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-logo {
  width: 100px;
  height: 100px;
  position: relative;
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 900;
  font-family: var(--font-heading);
  color: var(--accent);
  text-shadow: var(--shadow-neon);
  letter-spacing: 0.1em;
  z-index: 1;
}

.loader-logo::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid var(--accent);
  clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 15px 100%, 0 calc(100% - 15px));
  animation: rotate-border 3s linear infinite;
}

.loader-logo::after {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid var(--purple);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  animation: rotate-border 3s linear infinite reverse;
}

@keyframes rotate-border {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}

.loader-bar {
  width: 250px;
  height: 2px;
  background: rgba(0, 240, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.loader-bar::before {
  content: 'INITIALIZING SYSTEM...';
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem;
  font-family: var(--font-mono);
  letter-spacing: 0.3em;
  color: var(--accent);
  text-shadow: 0 0 10px var(--accent-glow);
  white-space: nowrap;
}

.loader-bar::after {
  content: '';
  display: block;
  width: 30%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--accent), var(--purple), transparent);
  animation: loader-slide 1.5s ease-in-out infinite;
  box-shadow: 0 0 10px var(--accent), 0 0 20px var(--accent);
}

@keyframes loader-slide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(400%); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px var(--accent-glow); }
  50% { box-shadow: var(--shadow-neon); }
}

/* ==================== CURSOR ==================== */
.cursor {
  position: fixed;
  width: 30px;
  height: 30px;
  border: 1px solid var(--accent);
  pointer-events: none;
  z-index: 9998;
  transition: transform 0.15s ease, opacity 0.15s ease, width 0.2s ease, height 0.2s ease;
  transform: translate(-50%, -50%);
  clip-path: polygon(0 0, calc(100% - 5px) 0, 100% 5px, 100% 100%, 5px 100%, 0 calc(100% - 5px));
  box-shadow: 0 0 10px var(--accent-glow);
}

.cursor.hover {
  width: 60px;
  height: 60px;
  background: rgba(0, 240, 255, 0.1);
  box-shadow: 0 0 20px var(--accent-glow);
}

.cursor-dot {
  position: fixed;
  width: 4px;
  height: 4px;
  background: var(--accent);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px var(--accent), 0 0 20px var(--accent);
}

@media (hover: none) {
  .cursor, .cursor-dot { display: none; }
}

/* ==================== BACKGROUND EFFECTS ==================== */
.bg-gradient {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(168, 85, 247, 0.2), transparent),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(0, 240, 255, 0.15), transparent),
    radial-gradient(ellipse 50% 30% at 0% 100%, rgba(244, 114, 182, 0.1), transparent),
    radial-gradient(ellipse 40% 60% at 80% 80%, rgba(0, 102, 255, 0.1), transparent);
  pointer-events: none;
  overflow: hidden;
}

.bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  z-index: -1;
  background-image:
    linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  animation: grid-move 20s linear infinite;
  overflow: hidden;
}

@keyframes grid-move {
  0% { transform: perspective(500px) rotateX(60deg) translateY(0); }
  100% { transform: perspective(500px) rotateX(60deg) translateY(50px); }
}

.bg-noise {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  z-index: -1;
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  pointer-events: none;
  overflow: hidden;
}

/* Scan Line Effect */
.bg-grid::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  max-width: 100vw;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: scan-line 4s linear infinite;
  opacity: 0.5;
  pointer-events: none;
}

@keyframes scan-line {
  0% { top: 0; }
  100% { top: 100vh; }
}

/* ==================== CONTAINER ==================== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
  box-sizing: border-box;
  position: relative;
}

/* ==================== TYPOGRAPHY ==================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  text-shadow: 0 0 20px var(--accent-glow), 0 0 40px rgba(168, 85, 247, 0.3);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 3rem);
  text-shadow: 0 0 15px var(--accent-glow);
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  letter-spacing: 0.1em;
}

.lead {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 600px;
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.7rem;
  font-weight: 700;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--accent);
  margin-bottom: 1rem;
  text-shadow: 0 0 10px var(--accent-glow);
}

.eyebrow::before {
  content: '//';
  color: var(--purple);
}

.eyebrow::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
  min-width: 40px;
}

.gradient-text {
  background: var(--gradient-text);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 200% center; }
}

/* Glitch Text Effect */
.glitch {
  position: relative;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glitch::before {
  left: 2px;
  text-shadow: -2px 0 var(--pink);
  clip: rect(24px, 550px, 90px, 0);
  animation: glitch-anim 2s infinite linear alternate-reverse;
}

.glitch::after {
  left: -2px;
  text-shadow: -2px 0 var(--cyan);
  clip: rect(85px, 550px, 140px, 0);
  animation: glitch-anim 2s infinite linear alternate-reverse;
  animation-delay: -1s;
}

@keyframes glitch-anim {
  0% { clip: rect(31px, 9999px, 94px, 0); }
  20% { clip: rect(62px, 9999px, 42px, 0); }
  40% { clip: rect(16px, 9999px, 78px, 0); }
  60% { clip: rect(87px, 9999px, 55px, 0); }
  80% { clip: rect(24px, 9999px, 99px, 0); }
  100% { clip: rect(45px, 9999px, 23px, 0); }
}

.text-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.text-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  font-family: var(--font-heading);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  clip-path: inherit;
}

.btn.primary {
  background: var(--accent);
  color: var(--bg-primary);
  box-shadow: var(--shadow-glow);
  border-color: var(--accent);
}

.btn.primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-neon);
  text-shadow: 0 0 10px var(--bg-primary);
}

.btn.secondary {
  background: rgba(0, 240, 255, 0.05);
  border-color: var(--accent);
  color: var(--accent);
  backdrop-filter: blur(10px);
}

.btn.secondary:hover {
  background: rgba(0, 240, 255, 0.15);
  box-shadow: 0 0 20px var(--accent-glow);
  text-shadow: 0 0 10px var(--accent);
}

.btn.ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--glass-border);
}

.btn.ghost:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.btn.tertiary {
  background: var(--purple-soft);
  color: var(--purple);
  border-color: var(--purple);
}

.btn.tertiary:hover {
  background: var(--purple);
  color: var(--bg-primary);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
}

/* Button Icon Animation */
.btn svg {
  transition: transform var(--transition-normal);
}

.btn:hover svg {
  transform: translateX(5px);
  filter: drop-shadow(0 0 5px currentColor);
}

/* ==================== HEADER / NAVIGATION ==================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(3, 0, 20, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  transition: all var(--transition-normal);
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  overflow: hidden;
}

.site-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--purple), transparent);
  opacity: 0.5;
}

.site-header.scrolled {
  background: rgba(3, 0, 20, 0.98);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.1);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 2rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0 1rem;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
  font-weight: 900;
  font-size: 1rem;
  font-family: var(--font-heading);
  letter-spacing: 0.1em;
  transition: all var(--transition-normal);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  text-shadow: 0 0 10px var(--accent-glow);
}

.brand:hover .brand-mark {
  background: var(--accent);
  color: var(--bg-primary);
  box-shadow: var(--shadow-glow);
  text-shadow: none;
}

.brand-name {
  font-weight: 700;
  font-size: 1rem;
  font-family: var(--font-heading);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.brand-role {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* Navigation Links */
nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

nav a {
  position: relative;
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-heading);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: all var(--transition-normal);
}

nav a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width var(--transition-normal);
  transform: translateY(-50%);
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  transition: all var(--transition-normal);
  transform: translateX(-50%);
}

nav a:hover,
nav a.active {
  color: var(--accent);
  text-shadow: 0 0 10px var(--accent-glow);
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

nav a.active {
  color: var(--accent);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  cursor: pointer;
  border: 1px solid var(--glass-border);
  background: transparent;
  position: relative;
  z-index: 102;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-touch-callout: none;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--accent);
  transition: all var(--transition-normal);
  box-shadow: 0 0 5px var(--accent);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

@media (max-width: 480px) {
  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 5px);
  }

  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -5px);
  }
}

/* ==================== HERO SECTION ==================== */
.hero-section {
  min-height: auto;
  padding: calc(var(--header-height) + 2rem) 0 3rem;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 50%;
  width: min(600px, 100vw);
  height: min(600px, 100vw);
  background: radial-gradient(circle, var(--accent-glow), transparent 60%);
  filter: blur(80px);
  transform: translateX(-50%);
  pointer-events: none;
  animation: float 10s ease-in-out infinite;
  opacity: 0.6;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: 20%;
  right: 10%;
  width: min(300px, 80vw);
  height: min(300px, 80vw);
  background: radial-gradient(circle, rgba(168, 85, 247, 0.2), transparent 60%);
  filter: blur(60px);
  pointer-events: none;
  animation: float 8s ease-in-out infinite reverse;
  opacity: 0.5;
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.8; }
  50% { transform: translateX(-50%) translateY(-40px); opacity: 1; }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Hero Intro */
.hero-intro {
  position: relative;
  z-index: 1;
}

.hero-intro h1 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.hero-intro h1 .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(50px);
  animation: word-reveal 0.8s forwards;
}

@keyframes word-reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-intro .lead {
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fade-up 0.8s 0.5s forwards;
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
}

@keyframes fade-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero Badges */
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.hero-badges span {
  padding: 0.4rem 1rem;
  font-size: 0.65rem;
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: rgba(0, 240, 255, 0.03);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  transition: all var(--transition-normal);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.hero-badges span:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 0 15px var(--accent-glow);
  text-shadow: 0 0 10px var(--accent-glow);
}

/* Hero CTA */
.hero-cta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

/* Hero Stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.stat-tile {
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.03), rgba(168, 85, 247, 0.03));
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

.stat-tile::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--purple));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-normal);
}

.stat-tile::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 15px;
  height: 15px;
  background: linear-gradient(135deg, transparent 50%, var(--accent) 50%);
  opacity: 0.5;
}

.stat-tile:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 0 30px var(--accent-glow);
}

.stat-tile:hover::before {
  transform: scaleX(1);
}

.stat-number {
  font-size: 2rem;
  font-weight: 900;
  font-family: var(--font-heading);
  letter-spacing: 0.05em;
  color: var(--accent);
  text-shadow: 0 0 15px var(--accent-glow);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.25rem;
  line-height: 1.3;
}

/* Hero Visuals */
.hero-visuals {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.25rem;
  align-items: start;
}

.hero-visuals > * {
  width: 100%;
}

/* Flip Card */
.flip-card {
  perspective: 1200px;
  min-height: 400px;
  flex: 1;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s var(--ease-smooth);
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.02), rgba(168, 85, 247, 0.02));
  border: 1px solid var(--glass-border);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.75rem;
  min-height: 400px;
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}

.flip-card-front::before,
.flip-card-back::before {
  content: '';
  position: absolute;
  inset: 0;
  clip-path: inherit;
  border: 1px solid var(--accent);
  opacity: 0.3;
  pointer-events: none;
}

.flip-card-front::after,
.flip-card-back::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 25px;
  height: 25px;
  background: linear-gradient(135deg, transparent 50%, var(--accent) 50%);
  opacity: 0.6;
}

.flip-card-back {
  transform: rotateY(180deg);
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.05), rgba(0, 240, 255, 0.05));
}

/* Profile Frame */
.profile-frame {
  position: relative;
  width: 140px;
  height: 140px;
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}

.profile-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid var(--accent);
  clip-path: inherit;
  animation: border-glow 2s ease-in-out infinite;
  z-index: 2;
  pointer-events: none;
}

.profile-frame::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 20px;
  height: 20px;
  background: var(--accent);
  clip-path: polygon(0 0, 100% 100%, 100% 0);
  z-index: 3;
}

@keyframes border-glow {
  0%, 100% { box-shadow: inset 0 0 10px var(--accent-glow); }
  50% { box-shadow: inset 0 0 20px var(--accent-glow), inset 0 0 30px var(--accent-glow); }
}

.profile-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1) contrast(1.05);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Card Header */
.card-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.card-header h3 {
  margin: 0;
  font-size: 1.1rem;
}

.card-header p {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin: 0;
}

/* Chips */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.65rem;
  font-weight: 700;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid var(--purple);
  color: var(--purple);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.chip.status {
  background: rgba(0, 240, 255, 0.1);
  border-color: var(--accent);
  color: var(--accent);
}

.chip.status::before {
  content: '';
  width: 6px;
  height: 6px;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
  animation: pulse 1.5s ease-in-out infinite;
}

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

.chip-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.chip-row span {
  padding: 0.35rem 0.75rem;
  font-size: 0.6rem;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  color: var(--text-muted);
  border: 1px solid var(--glass-border);
  clip-path: polygon(0 0, calc(100% - 5px) 0, 100% 5px, 100% 100%, 5px 100%, 0 calc(100% - 5px));
}

.card-tagline {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-family: var(--font-body);
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

/* Business Card Back */
.business-card {
  gap: 0.75rem;
}

.card-logo {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: var(--bg-primary);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.5rem;
}

.card-role {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.divider {
  width: 80%;
  height: 1px;
  background: var(--glass-border);
  margin: 0.5rem 0;
}

.card-contact {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.card-contact a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.card-contact a:hover {
  color: var(--accent);
}

/* Social Row */
.social-row {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.social-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--glass-border);
  background: transparent;
  color: var(--text-secondary);
  transition: all var(--transition-normal);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.social-icon:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0, 240, 255, 0.1);
  box-shadow: 0 0 20px var(--accent-glow);
}

.social-icon svg {
  filter: drop-shadow(0 0 2px currentColor);
}

/* Tech Card / Marquee */
.tech-card {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.05), rgba(168, 85, 247, 0.05));
  border: 1px solid var(--glass-border);
  padding: 1.75rem 1.5rem;
  backdrop-filter: blur(20px);
  overflow: hidden;
  position: relative;
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 200px;
  justify-content: space-between;
}

.tech-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
  z-index: 1;
}

.tech-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, transparent 50%, var(--accent) 50%);
  opacity: 0.6;
  z-index: 1;
}

.tech-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.2);
  transform: translateY(-3px);
}

.hero-marquee {
  overflow: hidden;
  padding: 0.75rem 0;
  position: relative;
  border-bottom: 1px solid rgba(0, 240, 255, 0.1);
  width: 100%;
  max-width: 100%;
}

.hero-marquee:first-child {
  padding-top: 0;
}

.hero-marquee:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.hero-marquee::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: var(--gradient-primary);
  opacity: 0.4;
  border-radius: var(--radius-full);
}

.hero-card-title {
  font-size: 0.65rem;
  font-weight: 700;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--accent);
  margin-bottom: 0.75rem;
  text-shadow: 0 0 10px var(--accent-glow);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  padding-left: 1rem;
}

.hero-card-title::before {
  content: '▶';
  font-size: 0.55rem;
  color: var(--purple);
  position: absolute;
  left: 0;
  text-shadow: 0 0 8px rgba(168, 85, 247, 0.6);
}

.hero-card-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
  margin-left: 0.5rem;
  opacity: 0.3;
}

.marquee-track {
  display: flex;
  gap: 2.5rem;
  animation: marquee 25s linear infinite;
  white-space: nowrap;
  padding: 0.5rem 0;
  width: max-content;
  will-change: transform;
}

.marquee-track.slow {
  animation-duration: 35s;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-track span {
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-body);
  letter-spacing: 0.02em;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 2.5rem;
  padding: 0.6rem 1.1rem;
  background: rgba(0, 240, 255, 0.04);
  border: 1px solid rgba(0, 240, 255, 0.15);
  transition: all var(--transition-normal);
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
  position: relative;
  white-space: nowrap;
}

.marquee-track span::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-normal);
}

.marquee-track span::after {
  content: '▸';
  color: var(--accent);
  font-size: 0.65rem;
  margin-left: 0.75rem;
  text-shadow: 0 0 5px var(--accent-glow);
  opacity: 0.7;
}

.marquee-track span:hover {
  background: rgba(0, 240, 255, 0.12);
  border-color: var(--accent);
  transform: scale(1.08);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
  color: var(--accent);
}

.marquee-track span:hover::before {
  transform: scaleX(1);
}

.marquee-track span:hover::after {
  opacity: 1;
  transform: translateX(2px);
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==================== MAIN ==================== */
main {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  box-sizing: border-box;
  position: relative;
}

/* ==================== SECTIONS ==================== */
section {
  padding: 6rem 0;
  position: relative;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  box-sizing: border-box;
}

.section-header {
  max-width: 700px;
  margin-bottom: 3rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-note {
  color: var(--text-secondary);
  max-width: 560px;
}

/* Page Hero */
.page-hero {
  padding: calc(var(--header-height) + 4rem) 0 3rem;
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  position: relative;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, var(--accent-glow), transparent 70%);
  transform: translateX(-50%);
  filter: blur(100px);
  opacity: 0.3;
  pointer-events: none;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.page-section {
  padding: 5rem 0;
  position: relative;
}

/* About Section Special Styling */
#about {
  background: linear-gradient(180deg, var(--bg-primary) 0%, rgba(3, 0, 20, 0.5) 50%, var(--bg-primary) 100%);
  position: relative;
  overflow: hidden;
}

#about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse 60% 40% at 20% 30%, rgba(0, 240, 255, 0.08), transparent),
    radial-gradient(ellipse 50% 30% at 80% 70%, rgba(168, 85, 247, 0.08), transparent);
  pointer-events: none;
  z-index: 0;
}

#about .container {
  position: relative;
  z-index: 1;
}

/* ==================== GRID LAYOUTS ==================== */
.split {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  align-items: start;
}

#about .split > div:first-child {
  position: relative;
}

#about .split > div:first-child::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), var(--purple), var(--pink));
  border-radius: var(--radius-full);
  opacity: 0.6;
}

#about h2 {
  position: relative;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  line-height: 1.3;
}

#about h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100px;
  height: 3px;
  background: var(--gradient-primary);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
  box-shadow: 0 0 15px var(--accent-glow);
}

#about h2 .gradient-text {
  display: inline-block;
  position: relative;
}

#about .eyebrow {
  margin-bottom: 1rem;
}

#about .split > div:first-child p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  position: relative;
}

#about .split > div:first-child p:first-of-type {
  font-size: 1.15rem;
  color: var(--text-primary);
  font-weight: 500;
  padding-left: 1.5rem;
  position: relative;
}

#about .split > div:first-child p:first-of-type::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 3px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
}

#about .split > div:first-child p:not(:first-of-type) {
  padding-left: 0.5rem;
  border-left: 2px solid transparent;
  transition: all var(--transition-normal);
}

#about .split > div:first-child p:not(:first-of-type):hover {
  border-left-color: var(--accent);
  padding-left: 1rem;
  color: var(--text-primary);
}

.split.align-center {
  align-items: center;
}

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

.cards-grid.three {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* ==================== CARDS ==================== */
.card {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.02), rgba(168, 85, 247, 0.02));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  backdrop-filter: blur(10px);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-normal);
}

.card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, transparent 50%, var(--accent) 50%);
  opacity: 0.3;
  transition: opacity var(--transition-normal);
}

.card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.2), 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card:hover::before {
  transform: scaleX(1);
}

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

.card h3 {
  margin-bottom: 0.75rem;
  font-family: var(--font-heading);
  letter-spacing: 0.05em;
}

.card p {
  color: var(--text-secondary);
  font-family: var(--font-body);
}

.card-eyebrow {
  font-size: 0.7rem;
  color: var(--accent);
  font-weight: 700;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 0.75rem;
  text-shadow: 0 0 10px var(--accent-glow);
}

.card.highlight {
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--accent-soft), rgba(168, 85, 247, 0.1));
  box-shadow: 0 0 20px var(--accent-glow);
}

.card.highlight::before {
  transform: scaleX(1);
}

/* About Card */
.about-card {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.05), rgba(168, 85, 247, 0.05));
  border: 1px solid var(--glass-border);
  padding: 2rem;
  backdrop-filter: blur(20px);
  position: relative;
  clip-path: polygon(0 0, calc(100% - 25px) 0, 100% 25px, 100% 100%, 25px 100%, 0 calc(100% - 25px));
  overflow: hidden;
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
  z-index: 1;
}

.about-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 25px;
  height: 25px;
  background: linear-gradient(135deg, transparent 50%, var(--accent) 50%);
  opacity: 0.6;
  z-index: 1;
}

.about-card > div {
  padding: 1.5rem 1.25rem;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.03), rgba(168, 85, 247, 0.03));
  border: 1px solid var(--glass-border);
  transition: all var(--transition-normal);
  position: relative;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  overflow: hidden;
}

.about-card > div::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-normal);
}

.about-card > div:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
  box-shadow: 0 0 25px var(--accent-glow);
}

.about-card > div:hover::before {
  transform: scaleX(1);
}

.about-card .stat-number {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  line-height: 1.1;
  background: var(--gradient-text);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 3s ease infinite;
}

.about-card .stat-label {
  font-size: 0.7rem;
  margin-top: 0.25rem;
  line-height: 1.4;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

/* Quote Card */
.quote-card {
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  backdrop-filter: blur(10px);
  position: relative;
}

.quote-card::before {
  content: '"';
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  font-size: 4rem;
  font-family: Georgia, serif;
  color: var(--accent);
  opacity: 0.3;
  line-height: 1;
}

.quote-card p {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-secondary);
  position: relative;
  z-index: 1;
}

.quote-author {
  margin-top: 1rem;
  color: var(--text-muted);
  font-style: normal;
  font-weight: 600;
}

/* Media Card */
.media-card {
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  backdrop-filter: blur(10px);
}

.media-card .btn {
  margin-top: 1.5rem;
}

/* Video Placeholder */
.video-placeholder {
  background: var(--surface);
  border: 2px dashed var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 200px;
}

.video-placeholder p {
  font-weight: 600;
}

.video-placeholder span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Contact Card */
.contact-card {
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  backdrop-filter: blur(10px);
}

/* ==================== TIMELINE ==================== */
.timeline {
  display: grid;
  gap: 1.5rem;
  position: relative;
  padding-left: 2.5rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--purple), var(--pink), var(--accent));
  box-shadow: 0 0 10px var(--accent-glow);
}

.timeline article {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.02), rgba(168, 85, 247, 0.02));
  border: 1px solid var(--glass-border);
  padding: 1.5rem 2rem;
  position: relative;
  transition: all var(--transition-normal);
  clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 15px 100%, 0 calc(100% - 15px));
}

.timeline article::before {
  content: '';
  position: absolute;
  left: -3rem;
  top: 1.5rem;
  width: 14px;
  height: 14px;
  background: var(--accent);
  border: 2px solid var(--bg-primary);
  box-shadow: var(--shadow-neon);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.timeline article::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 15px;
  height: 15px;
  background: linear-gradient(135deg, transparent 50%, var(--accent) 50%);
  opacity: 0.4;
}

.timeline article:hover {
  transform: translateX(10px);
  border-color: var(--accent);
  box-shadow: 0 0 30px var(--accent-glow);
}

.timeline article:hover::after {
  opacity: 1;
}

.timeline-date {
  font-size: 0.7rem;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 0.75rem;
  text-shadow: 0 0 10px var(--accent-glow);
}

.timeline-org {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

/* ==================== LISTS ==================== */
.list-check {
  display: grid;
  gap: 0.75rem;
  margin-top: 2rem;
}

.list-check.two-col {
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem 1.5rem;
}

.list-check li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--text-secondary);
  padding: 0.75rem;
  background: rgba(0, 240, 255, 0.02);
  border: 1px solid var(--glass-border);
  transition: all var(--transition-normal);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  position: relative;
}

.list-check li::before {
  content: '▶';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  font-size: 0.7rem;
  text-shadow: 0 0 8px var(--accent-glow);
  margin-top: 0.15rem;
}

.list-check li::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 100%;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--transition-normal);
}

.list-check li:hover {
  border-color: var(--accent);
  transform: translateX(5px);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.list-check li:hover::after {
  transform: scaleY(1);
}

.contact-list {
  display: grid;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.contact-list a {
  color: var(--accent);
}

.contact-list a:hover {
  text-decoration: underline;
}

/* ==================== LOGO CLOUD ==================== */
.logo-cloud {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.logo-cloud span {
  padding: 1rem 1.5rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.75rem;
  font-family: var(--font-heading);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: rgba(0, 240, 255, 0.02);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  transition: all var(--transition-normal);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

.logo-cloud span:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 0 20px var(--accent-glow);
  text-shadow: 0 0 10px var(--accent-glow);
}

/* ==================== BOOKS SECTION ==================== */
.book-card {
  text-align: center;
}

.book-card h3 {
  font-family: var(--font-heading);
  letter-spacing: 0.05em;
}

.book-cover {
  height: 300px;
  overflow: hidden;
  background: var(--bg-secondary);
  margin-bottom: 1rem;
  position: relative;
  border: 1px solid var(--glass-border);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
}

.book-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, var(--bg-primary));
  z-index: 1;
  pointer-events: none;
}

.book-cover::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, transparent 50%, var(--accent) 50%);
  opacity: 0.6;
  z-index: 2;
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform var(--transition-slow);
  filter: saturate(0.9);
  background: var(--bg-secondary);
}

.book-card:hover .book-cover img {
  transform: scale(1.05);
  filter: saturate(1.1);
}

.book-card:hover .book-cover {
  border-color: var(--accent);
  box-shadow: 0 0 30px var(--accent-glow);
}

.book-card .btn {
  margin-top: 1rem;
}

/* Urdu Text Styling with Jameel Noori Nastaleeq */
@font-face {
  font-family: 'Jameel Noori Nastaleeq';
  src: url('Assets/fonts/Jameel-Noori-Nastaleeq.ttf') format('truetype'),
       url('Assets/fonts/JameelNooriNastaleeq.ttf') format('truetype'),
       url('fonts/Jameel-Noori-Nastaleeq.ttf') format('truetype'),
       url('https://raw.githubusercontent.com/linux-nerd/Urdu-Fonts/master/Jameel%20Noori%20Nastaleeq/Jameel%20Noori%20Nastaleeq.ttf') format('truetype'),
       url('https://cdn.jsdelivr.net/gh/linux-nerd/Urdu-Fonts@master/Jameel%20Noori%20Nastaleeq/Jameel%20Noori%20Nastaleeq.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

.urdu-text {
  font-family: 'Jameel Noori Nastaleeq', 'Jameel Noori Nastaleeq Regular', 'Noto Nastaliq Urdu', 'Nafees Web Naskh', 'Al Qalam Taj Nastaleeq', 'Urdu Naskh Asiatype', serif !important;
  font-weight: normal !important;
  direction: rtl !important;
  text-align: center !important;
  line-height: 1.9 !important;
  letter-spacing: 0.03em !important;
  font-size: 1.2em !important;
  font-feature-settings: "liga" 1, "kern" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  display: block;
  margin: 0 auto;
}

/* ==================== GALLERY - 3D CAROUSEL ==================== */
.gallery-section {
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.carousel-wrapper {
  position: relative;
  max-width: 1200px;
  margin: 3rem auto 0;
  perspective: 1200px;
  overflow: visible;
  padding: 0 1rem;
  box-sizing: border-box;
}

.carousel-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 500px;
  margin: 0 auto;
  transform-style: preserve-3d;
  overflow: hidden;
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
  position: absolute;
  width: 80%;
  max-width: 600px;
  height: 400px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  transform-style: preserve-3d;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.3;
  pointer-events: none;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 3;
  transform: translate(-50%, -50%) translateZ(0px) scale(1);
  pointer-events: all;
}

.carousel-slide.prev {
  opacity: 0.6;
  z-index: 2;
  transform: translate(-50%, -50%) translateX(-200px) translateZ(-200px) rotateY(25deg) scale(0.85);
}

.carousel-slide.next {
  opacity: 0.6;
  z-index: 2;
  transform: translate(-50%, -50%) translateX(200px) translateZ(-200px) rotateY(-25deg) scale(0.85);
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 2px solid var(--glass-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-normal);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
  filter: saturate(0.9);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.carousel-slide.active img {
  border-color: var(--accent);
  filter: saturate(1.1);
  box-shadow: 0 0 50px var(--accent-glow), 0 30px 80px rgba(0, 0, 0, 0.6);
}

.carousel-slide:hover img {
  transform: scale(1.02);
}

/* Carousel Navigation Buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(10, 10, 15, 0.7);
  border: 2px solid var(--accent);
  color: var(--accent);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  transition: all var(--transition-normal);
  backdrop-filter: blur(10px);
}

.carousel-btn:hover {
  background: var(--accent);
  color: var(--bg-primary);
  box-shadow: 0 0 30px var(--accent-glow);
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.carousel-prev {
  left: 15px;
}

.carousel-next {
  right: 15px;
}

@media (min-width: 1025px) {
  .carousel-prev {
    left: 20px;
  }

  .carousel-next {
    right: 20px;
  }
}

.carousel-btn svg {
  width: 20px;
  height: 20px;
  filter: drop-shadow(0 0 5px currentColor);
}

/* Carousel Dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
  z-index: 10;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(0, 240, 255, 0.3);
  border: 2px solid var(--glass-border);
  cursor: pointer;
  transition: all var(--transition-normal);
  clip-path: polygon(0 0, calc(100% - 3px) 0, 100% 3px, 100% 100%, 3px 100%, 0 calc(100% - 3px));
}

.carousel-dot:hover {
  background: rgba(0, 240, 255, 0.5);
  border-color: var(--accent);
  transform: scale(1.2);
}

.carousel-dot.active {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 15px var(--accent-glow);
  transform: scale(1.3);
}

/* ==================== ADVISOR SECTION ==================== */
.advisor-section {
  background: linear-gradient(135deg, var(--accent-soft), var(--purple-soft));
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

/* ==================== CONTACT SECTION ==================== */
.contact-section {
  padding: 5rem 0;
}

.contact-grid {
  align-items: start;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  align-items: start;
}

/* Contact Form */
.contact-form {
  display: grid;
  gap: 1.25rem;
}

.contact-form label {
  display: grid;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
  font-family: var(--font-body);
  color: var(--text-primary);
  background: rgba(0, 240, 255, 0.02);
  border: 1px solid var(--glass-border);
  transition: all var(--transition-normal);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
  background: rgba(0, 240, 255, 0.05);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-muted);
  font-family: var(--font-body);
}

.contact-form .btn {
  margin-top: 0.5rem;
}

/* ==================== FAQ ==================== */
.faq {
  display: grid;
  gap: 1.5rem;
}

.faq-item {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--glass-border);
}

.faq-item h3 {
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.faq-item p {
  color: var(--text-secondary);
}

/* ==================== FOOTER ==================== */
.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--glass-border);
  background: var(--bg-primary);
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--purple), transparent);
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-grid a:hover {
  color: var(--accent);
  text-shadow: 0 0 10px var(--accent-glow);
}

/* ==================== SCROLL REVEAL ANIMATIONS ==================== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger animations */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* ==================== SCROLL PROGRESS BAR ==================== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--purple), var(--pink));
  z-index: 200;
  transition: width 0.1s ease;
  box-shadow: 0 0 10px var(--accent), 0 0 20px var(--accent);
}

/* ==================== BACK TO TOP ==================== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-normal);
  z-index: 90;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  box-shadow: 0 0 20px var(--accent-glow);
}

.back-to-top:hover {
  transform: translateY(-5px);
  background: var(--accent);
  color: var(--bg-primary);
  box-shadow: var(--shadow-neon);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-visuals {
    order: -1;
  }

  .split,
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .contact-section {
    padding: 3rem 0;
  }
  
  .contact-form {
    gap: 1rem;
  }
  
  .contact-form input,
  .contact-form textarea {
    padding: 0.875rem 1rem;
    font-size: 0.9rem;
  }
  
  .logo-cloud {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  
  .logo-cloud span {
    padding: 0.75rem 1rem;
    font-size: 0.7rem;
  }

}

@media (max-width: 900px) {
  .nav-container {
    gap: 1rem;
    padding: 0 1rem;
  }
  
  .brand {
    gap: 0.5rem;
  }
  
  .brand-mark {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }
  
  .brand-name {
    font-size: 0.85rem;
  }
  
  .brand-role {
    font-size: 0.6rem;
    display: none;
  }
  
  nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    width: 100%;
    flex-direction: column;
    background: rgba(3, 0, 20, 0.98);
    backdrop-filter: blur(20px);
    padding: 1.5rem;
    gap: 0.5rem;
    transform: translateY(-150%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    border-bottom: 1px solid var(--glass-border);
    z-index: 100;
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  }
  
  nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  nav a {
    padding: 1rem;
    text-align: center;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    width: 100%;
    display: block;
  }
  
  nav a:hover {
    background: rgba(0, 240, 255, 0.1);
  }
  
  .menu-toggle {
    display: flex !important;
    z-index: 102 !important;
    position: relative;
    background: rgba(0, 240, 255, 0.05);
    border-color: var(--accent);
    pointer-events: auto !important;
    touch-action: manipulation;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
  }
  
  .menu-toggle:hover,
  .menu-toggle:focus {
    background: rgba(0, 240, 255, 0.15);
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
    outline: none;
  }
  
  .menu-toggle:active {
    transform: scale(0.95);
    background: rgba(0, 240, 255, 0.2);
  }
  
  .nav-container .btn.secondary,
  .nav-container a.btn {
    display: none !important;
  }
  
  .nav-container {
    justify-content: space-between;
    position: relative;
    align-items: center;
    overflow: visible;
  }
  
  .site-header {
    z-index: 101;
    overflow: visible;
  }
  
  .brand {
    z-index: 1;
  }
  
  .menu-toggle {
    order: 2;
    margin-left: auto;
  }
  
  nav {
    order: 3;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 65px;
  }
  
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
    position: relative;
  }
  
  .container {
    padding: 0 1rem;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }
  
  .site-header {
    width: 100%;
    max-width: 100vw;
    left: 0;
    right: 0;
  }
  
  .nav-container {
    width: 100%;
    max-width: 100%;
    padding: 0 1rem;
  }
  
  .site-header {
    height: var(--header-height);
  }
  
  .nav-container {
    height: 100%;
    padding: 0 0.75rem;
  }
  
  .brand {
    gap: 0.5rem;
  }
  
  .brand-mark {
    width: 36px;
    height: 36px;
    font-size: 0.8rem;
  }
  
  .brand-name {
    font-size: 0.8rem;
  }
  
  .brand-role {
    display: none;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .page-section {
    padding: 3rem 0;
  }
  
  .hero-section {
    padding: calc(var(--header-height) + 1.5rem) 0 3rem;
    min-height: auto;
  }
  
  .hero-grid {
    gap: 2rem;
  }
  
  .hero-intro h1 {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
    margin-bottom: 1rem;
  }
  
  .hero-intro .lead {
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
  }
  
  .hero-badges {
    margin-bottom: 1.25rem;
  }
  
  .hero-badges span {
    font-size: 0.6rem;
    padding: 0.35rem 0.85rem;
  }
  
  .hero-cta {
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
  }
  
  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }
  
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .stat-tile {
    padding: 1rem;
  }
  
  .stat-number {
    font-size: 1.75rem;
  }
  
  .stat-label {
    font-size: 0.65rem;
  }
  
  .flip-card {
    min-height: auto;
  }

  .flip-card-inner {
    transform: none !important;
    display: grid;
    gap: 1.5rem;
  }

  .flip-card-front,
  .flip-card-back {
    position: relative;
    transform: none;
    backface-visibility: visible;
    min-height: auto;
    padding: 1.25rem;
  }
  
  .profile-frame {
    width: 120px;
    height: 120px;
  }
  
  .tech-card {
    padding: 1.25rem 1rem;
    min-height: auto;
  }
  
  .hero-marquee {
    padding: 0.5rem 0;
  }
  
  .hero-card-title {
    font-size: 0.6rem;
    margin-bottom: 0.5rem;
  }
  
  .marquee-track {
    gap: 1.5rem;
  }
  
  .marquee-track span {
    font-size: 0.75rem;
    padding: 0.5rem 0.85rem;
  }
  
  .cards-grid,
  .cards-grid.three {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .about-card {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }
  
  .list-check.two-col {
    grid-template-columns: 1fr;
  }
  
  #about .split > div:first-child::before {
    display: none;
  }
  
  #about .split > div:first-child p:first-of-type {
    padding-left: 0;
    font-size: 0.95rem;
  }
  
  #about .split > div:first-child p:first-of-type::before {
    display: none;
  }
  
  #about h2 {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }
  
  #about h2::after {
    width: 50px;
  }
  
  .timeline {
    padding-left: 1.5rem;
  }
  
  .timeline article::before {
    left: -1.75rem;
    width: 10px;
    height: 10px;
  }
  
  .carousel-wrapper {
    max-width: 100%;
  }
  
  .carousel-container {
    height: 400px;
  }
  
  .carousel-slide {
    width: 90%;
    height: 350px;
  }
  
  .carousel-wrapper {
    padding: 0 0.5rem;
  }
  
  .carousel-prev {
    left: 5px;
  }
  
  .carousel-next {
    right: 5px;
  }
  
  .carousel-btn {
    width: 40px;
    height: 40px;
  }
  
  .carousel-btn svg {
    width: 16px;
    height: 16px;
  }
  
  .section-header {
    margin-bottom: 2rem;
  }
  
  .section-header h2 {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }
}

@media (max-width: 480px) {
  :root {
    --header-height: 60px;
  }
  
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
    position: relative;
  }
  
  * {
    max-width: 100%;
    box-sizing: border-box;
  }
  
  h1 {
    font-size: clamp(1.5rem, 8vw, 2rem);
  }
  
  h2 {
    font-size: clamp(1.25rem, 6vw, 1.75rem);
  }

  .container {
    padding: 0 0.75rem;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }
  
  .hero-section::before {
    width: min(300px, 85vw) !important;
    height: min(300px, 85vw) !important;
  }
  
  .hero-section::after {
    width: min(150px, 60vw) !important;
    height: min(150px, 60vw) !important;
    right: 5% !important;
  }
  
  .carousel-wrapper {
    padding: 0 0.5rem !important;
    margin: 2rem auto 0 !important;
  }
  
  .marquee-track {
    gap: 1rem !important;
  }
  
  .marquee-track span {
    flex-shrink: 0;
    white-space: nowrap;
  }
  
  .site-header {
    height: var(--header-height);
  }
  
  .nav-container {
    padding: 0 0.5rem !important;
    gap: 0.5rem;
    width: 100%;
    max-width: 100%;
  }
  
  .site-header {
    width: 100%;
    max-width: 100vw;
    left: 0;
    right: 0;
  }
  
  .brand {
    gap: 0.4rem;
  }
  
  .brand-mark {
    width: 32px;
    height: 32px;
    font-size: 0.7rem;
  }
  
  .brand-name {
    font-size: 0.7rem;
  }
  
  .brand-role {
    display: none;
  }
  
  .menu-toggle {
    padding: 8px !important;
    display: flex !important;
    z-index: 102;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
  }
  
  .menu-toggle span {
    width: 20px;
    height: 2px;
  }
  
  nav {
    padding: 1rem 0.75rem;
  }
  
  nav a {
    padding: 0.875rem;
    font-size: 0.8rem;
  }

  .card,
  .about-card,
  .quote-card,
  .contact-card,
  .media-card {
    padding: 1.25rem;
  }

  #about .split > div:first-child p {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  #about .split > div:first-child p:first-of-type {
    font-size: 0.95rem;
  }

  .about-card .stat-number {
    font-size: 1.75rem;
  }

  .list-check li {
    padding: 0.5rem;
    font-size: 0.85rem;
  }

  .btn {
    padding: 0.7rem 1.25rem;
    font-size: 0.75rem;
  }

  .carousel-wrapper {
    padding: 0 0.5rem;
    margin: 2rem auto 0;
  }
  
  .carousel-container {
    height: 350px;
  }
  
  .carousel-slide {
    width: 95%;
    max-width: 95%;
    height: 300px;
  }
  
  .carousel-prev {
    left: 5px;
  }
  
  .carousel-next {
    right: 5px;
  }
  
  .carousel-btn {
    width: 35px;
    height: 35px;
    background: rgba(0, 240, 255, 0.2);
  }

  .carousel-dots {
    gap: 0.5rem;
    margin-top: 1.5rem;
  }

  .carousel-dot {
    width: 10px;
    height: 10px;
  }

  .tech-card {
    padding: 1rem 0.75rem;
  }

  .hero-card-title {
    font-size: 0.55rem;
    padding-left: 0.75rem;
  }

  .marquee-track {
    gap: 1.25rem;
  }

  .marquee-track span {
    font-size: 0.65rem;
    padding: 0.4rem 0.7rem;
  }

  .back-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
  }
  
  .contact-wrapper {
    gap: 1.5rem;
  }
  
  .contact-form input,
  .contact-form textarea {
    padding: 0.75rem 0.875rem;
    font-size: 0.85rem;
  }
  
  .logo-cloud {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .logo-cloud span {
    padding: 0.625rem 0.875rem;
    font-size: 0.65rem;
  }
  
  .footer-grid {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
    font-size: 0.7rem;
  }
  
  section {
    padding: 2.5rem 0;
  }
  
  .page-section {
    padding: 2.5rem 0;
  }
  
  .hero-visuals {
    gap: 1rem;
  }
  
  .hero-grid {
    gap: 1.5rem;
    width: 100%;
    max-width: 100%;
  }
  
  .hero-section::before {
    width: min(300px, 85vw);
    height: min(300px, 85vw);
  }
  
  .hero-section::after {
    width: min(150px, 60vw);
    height: min(150px, 60vw);
    right: 5%;
  }
  
  .section-header {
    margin-bottom: 1.5rem;
  }
  
  .section-header h2 {
    font-size: clamp(1.25rem, 6vw, 1.75rem);
  }
  
  .eyebrow {
    font-size: 0.65rem;
    margin-bottom: 0.5rem;
  }
  
  .page-hero {
    padding: calc(var(--header-height) + 1.5rem) 0 2rem;
  }
  
  .page-hero h1 {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }
  
  .contact-section {
    padding: 2.5rem 0;
  }
  
  .gallery-section {
    padding: 2.5rem 0;
  }
  
  .advisor-section {
    padding: 2.5rem 0;
  }
  
  .advisor-section .split {
    gap: 1.5rem;
  }
  
  .advisor-section .btn {
    width: 100%;
    justify-content: center;
  }
  
  .book-cover {
    height: 250px;
  }
  
  .marquee-track {
    gap: 1rem;
  }
  
  .marquee-track span {
    flex-shrink: 0;
  }
}

/* Very Small Screens */
@media (max-width: 360px) {
  :root {
    --header-height: 55px;
  }
  
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
  }
  
  .container {
    padding: 0 0.5rem;
    width: 100%;
    max-width: 100%;
  }
  
  .menu-toggle {
    padding: 6px !important;
    display: flex !important;
    min-width: 40px;
    min-height: 40px;
  }
  
  .menu-toggle span {
    width: 18px;
    height: 2px;
  }
  
  .nav-container {
    padding: 0 0.4rem;
  }
  
  .brand-mark {
    width: 28px;
    height: 28px;
    font-size: 0.65rem;
  }
  
  .brand-name {
    font-size: 0.65rem;
  }
  
  .hero-intro h1 {
    font-size: clamp(1.25rem, 8vw, 1.75rem);
  }
  
  .hero-intro .lead {
    font-size: 0.85rem;
  }
  
  .btn {
    padding: 0.625rem 1rem;
    font-size: 0.7rem;
  }
  
  .stat-number {
    font-size: 1.25rem;
  }
  
  .card,
  .about-card {
    padding: 1rem;
  }
}

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

  html {
    scroll-behavior: auto;
  }
}

/* Universal Overflow Prevention - Mobile */
@media (max-width: 768px) {
  * {
    max-width: 100vw;
  }
  
  body > * {
    max-width: 100vw;
    overflow-x: hidden;
  }
  
  .container,
  .nav-container,
  .hero-grid,
  .split,
  .cards-grid,
  .carousel-wrapper,
  section,
  main {
    max-width: 100vw;
    overflow-x: hidden;
  }
}

/* ==================== YOUTUBE VIDEO CARDS & EMBEDS ==================== */
.yt-video-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.yt-video-card:hover {
  transform: translateY(-8px);
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 12px 30px rgba(99, 102, 241, 0.2);
}

.yt-thumb-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 aspect ratio */
  overflow: hidden;
  background: #090a0f;
}

.yt-thumb-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.yt-video-card:hover .yt-thumb-wrapper img {
  transform: scale(1.08);
}

.yt-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 15, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.yt-video-card:hover .yt-play-overlay {
  background: rgba(10, 10, 15, 0.15);
}

.yt-play-btn-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff0000, #cc0000);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.yt-video-card:hover .yt-play-btn-circle {
  transform: scale(1.15);
  box-shadow: 0 0 30px rgba(255, 0, 0, 0.85);
}

.yt-video-info {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.yt-video-info h4 {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.yt-video-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: auto;
  padding-top: 0.5rem;
}

/* Video Modal */
.yt-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.yt-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.yt-modal-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
}

.yt-modal-iframe-wrapper {
  position: relative;
  padding-top: 56.25%;
  width: 100%;
}

.yt-modal-iframe-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.yt-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.yt-modal-close:hover {
  background: #ff0000;
}

.video-slide-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(0deg, rgba(10, 10, 15, 0.95) 0%, rgba(10, 10, 15, 0.6) 70%, transparent 100%);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  border-bottom-left-radius: var(--radius-xl);
  border-bottom-right-radius: var(--radius-xl);
  pointer-events: none;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  transition: color 0.3s ease;
}

.carousel-slide.active:hover .video-slide-title {
  color: var(--cyan);
}
