/* ============================================
   SATISH SHINGAD — FOUNDER PORTFOLIO
   css/style.css
   Premium Founder Portfolio Stylesheet
   Inspired by Apple, Stripe, Linear, Vercel
   ============================================ */

/* ============================================
   1. CSS RESET & BASE VARIABLES
   ============================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* ---- Brand Colors ---- */
  --blue-400: #60a5fa;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --sky-400: #38bdf8;
  --sky-500: #0ea5e9;
  --navy-900: #0f172a;
  --navy-950: #020617;

  /* ---- Neutrals ---- */
  --white: #ffffff;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --gray-950: #020617;

  /* ---- Gradients ---- */
  --gradient-primary: linear-gradient(135deg, #2563eb, #0ea5e9);
  --gradient-hero: linear-gradient(135deg, #1e3a8a, #2563eb, #0ea5e9, #38bdf8);
  --gradient-glow: linear-gradient(135deg, #2563eb, #0ea5e9, #7c3aed);

  /* ---- Spacing ---- */
  --section-pad: clamp(4rem, 10vw, 8rem);
  --container: 1240px;

  /* ---- Radius ---- */
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* ---- Shadows ---- */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 20px 40px -12px rgba(0, 0, 0, 0.25);
  --shadow-xl: 0 30px 60px -15px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 40px rgba(37, 99, 235, 0.35);
  --shadow-glow-lg: 0 0 80px rgba(37, 99, 235, 0.25);

  /* ---- Transitions ---- */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.65, 0, 0.35, 1);
  --transition-fast: 0.2s var(--ease-out);
  --transition-base: 0.4s var(--ease-out);
  --transition-slow: 0.8s var(--ease-out);

  /* ---- Fonts ---- */
  --font-en: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-gu: 'Anek Gujarati', 'Inter', sans-serif;
}

/* ---- Dark Mode (Default) ---- */
[data-theme="dark"] {
  --bg: var(--navy-950);
  --bg-alt: var(--navy-900);
  --surface: rgba(30, 41, 59, 0.6);
  --surface-solid: #1e293b;
  --surface-2: rgba(51, 65, 85, 0.5);
  --text-primary: var(--white);
  --text-secondary: var(--gray-400);
  --text-tertiary: var(--gray-500);
  --border: rgba(148, 163, 184, 0.15);
  --border-strong: rgba(148, 163, 184, 0.3);
  --glass-bg: rgba(15, 23, 42, 0.7);
  --glass-border: rgba(148, 163, 184, 0.12);
  --shadow-color: rgba(0, 0, 0, 0.5);
}

/* ---- Light Mode ---- */
[data-theme="light"] {
  --bg: var(--white);
  --bg-alt: var(--gray-100);
  --surface: rgba(255, 255, 255, 0.8);
  --surface-solid: var(--white);
  --surface-2: rgba(241, 245, 249, 0.8);
  --text-primary: var(--gray-900);
  --text-secondary: var(--gray-600);
  --text-tertiary: var(--gray-400);
  --border: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.15);
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(15, 23, 42, 0.06);
  --shadow-color: rgba(15, 23, 42, 0.08);
}

/* ============================================
   2. BASE STYLES
   ============================================ */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-en);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.5s var(--ease-out), color 0.5s var(--ease-out);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---- Reduced Motion ---- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---- Selection ---- */
::selection {
  background: var(--blue-600);
  color: var(--white);
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-alt);
}
::-webkit-scrollbar-thumb {
  background: var(--blue-600);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--blue-500);
}

/* ---- Focus ---- */
:focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================================
   3. UTILITIES
   ============================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.section {
  padding: var(--section-pad) 0;
  position: relative;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue-500);
  margin-bottom: 1rem;
}

.section-label::before {
  content: '';
  width: 1.5rem;
  height: 1px;
  background: var(--blue-500);
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================
   4. SKIP LINK
   ============================================ */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 10001;
  padding: 0.75rem 1.25rem;
  background: var(--blue-600);
  color: white;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 1rem;
}

/* ============================================
   5. LOADING SCREEN
   ============================================ */
.loader {
  position: fixed;
  inset: 0;
  background: var(--navy-950);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  transition: opacity 0.6s var(--ease-out), visibility 0.6s;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-logo {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: pulse 1.5s ease-in-out infinite;
}

.loader-bar {
  width: 200px;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.loader-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  animation: loadBar 1.5s var(--ease-out) forwards;
}

@keyframes loadBar {
  to { width: 100%; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ============================================
   6. SCROLL PROGRESS BAR
   ============================================ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--gradient-primary);
  z-index: 9999;
  width: 0%;
  transition: width 0.1s linear;
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.6);
}

/* ============================================
   7. CURSOR GLOW
   ============================================ */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.07) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
  will-change: transform;
}

@media (max-width: 768px) {
  .cursor-glow {
    display: none;
  }
}

/* ============================================
   8. NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  transition: all 0.4s var(--ease-out);
}

.navbar.scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: white;
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.5);
  position: relative;
  overflow: hidden;
}

.nav-logo-icon::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
  animation: shine 4s infinite;
}

@keyframes shine {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  position: relative;
}

.nav-links a:hover {
  color: var(--text-primary);
  background: var(--surface-2);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.theme-toggle:hover {
  border-color: var(--blue-500);
  color: var(--blue-500);
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.3);
}

.nav-cta {
  padding: 0.625rem 1.25rem;
  background: var(--blue-600);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.4);
}

.nav-cta:hover {
  background: var(--blue-500);
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(37, 99, 235, 0.6);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s var(--ease-out);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   9. HERO SECTION
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 8rem 0 4rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.hero-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 40%, rgba(37, 99, 235, 0.18), transparent),
    radial-gradient(ellipse 60% 50% at 80% 60%, rgba(14, 165, 233, 0.12), transparent),
    radial-gradient(ellipse 50% 40% at 50% 80%, rgba(124, 58, 237, 0.08), transparent);
  animation: meshShift 20s ease-in-out infinite alternate;
}

@keyframes meshShift {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.1) translate(-2%, 2%); }
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: floatBlob 15s ease-in-out infinite;
}

.hero-blob-1 {
  width: 500px;
  height: 500px;
  background: rgba(37, 99, 235, 0.35);
  top: -10%;
  right: -5%;
  animation-delay: 0s;
}

.hero-blob-2 {
  width: 400px;
  height: 400px;
  background: rgba(14, 165, 233, 0.25);
  bottom: -15%;
  left: -10%;
  animation-delay: -5s;
}

.hero-blob-3 {
  width: 300px;
  height: 300px;
  background: rgba(124, 58, 237, 0.2);
  top: 40%;
  left: 50%;
  animation-delay: -10s;
}

@keyframes floatBlob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--blue-400);
  border-radius: 50%;
  opacity: 0.4;
  animation: particleFloat linear infinite;
}

@keyframes particleFloat {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: 0.6; }
  90% { opacity: 0.6; }
  100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e;
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 1.25rem;
}

.hero-title .name {
  display: block;
  color: var(--text-primary);
  text-shadow: 0 0 60px rgba(37, 99, 235, 0.15);
}

.hero-title .role {
  display: block;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  min-height: 1.2em;
}

.typing-cursor {
  display: inline-block;
  width: 3px;
  height: 1em;
  background: var(--blue-500);
  margin-left: 4px;
  animation: blink 0.8s step-end infinite;
  vertical-align: text-bottom;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-desc {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 540px;
  margin-bottom: 2rem;
}

.hero-desc strong {
  color: var(--text-primary);
  font-weight: 600;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-full);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.3s var(--ease-spring);
  position: relative;
  overflow: hidden;
  font-family: inherit;
}

.btn-primary {
  background: var(--blue-600);
  color: white;
  box-shadow: 0 0 30px rgba(37, 99, 235, 0.5), 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.btn-primary:hover::before {
  transform: translateX(100%);
}

.btn-primary:hover {
  background: var(--blue-500);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 50px rgba(37, 99, 235, 0.7), 0 8px 25px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text-primary);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  border-color: var(--blue-500);
  color: var(--blue-500);
  transform: translateY(-3px);
  box-shadow: 0 0 30px rgba(37, 99, 235, 0.2);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  color: var(--blue-500);
  border-color: var(--blue-500);
  transform: translateY(-3px);
}

/* ---- Hero Visual ---- */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-3d-card {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-xl);
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
  box-shadow:
    0 40px 80px -20px rgba(37, 99, 235, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease-out);
}

.hero-3d-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.15), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(14, 165, 233, 0.25), transparent 50%);
}

.hero-3d-card-inner {
  position: absolute;
  inset: 3px;
  border-radius: calc(var(--radius-xl) - 3px);
  background: var(--navy-950);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 2rem;
  overflow: hidden;
}

.hero-ribbon-logo {
  width: 140px;
  height: 140px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-ribbon-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 30px rgba(37, 99, 235, 0.8));
}

.hero-card-text {
  text-align: center;
}

.hero-card-text h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
  letter-spacing: -0.02em;
}

.hero-card-text p {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.hero-card-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-tag {
  padding: 0.375rem 0.875rem;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(37, 99, 235, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--blue-400);
}

.hero-float {
  position: absolute;
  padding: 0.75rem 1rem;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  font-size: 0.8125rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-xl);
  animation: floatCard 6s ease-in-out infinite;
  z-index: 3;
}

.hero-float i {
  color: var(--blue-500);
}

.hero-float-1 {
  top: 10%;
  left: -5%;
  animation-delay: 0s;
}

.hero-float-2 {
  bottom: 15%;
  right: -5%;
  animation-delay: -3s;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

/* ============================================
   10. FOUNDER DASHBOARD / STATS
   ============================================ */
.stats-section {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.stat-item {
  text-align: center;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -1rem;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--border);
}

.stat-value {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================
   11. ABOUT SECTION
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image-frame {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-xl);
  background: var(--gradient-hero);
  padding: 3px;
  box-shadow: 0 30px 60px -20px rgba(37, 99, 235, 0.4);
  position: relative;
}

.about-image-inner {
  width: 100%;
  height: 100%;
  border-radius: calc(var(--radius-xl) - 3px);
  background: var(--navy-950);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.about-image-placeholder {
  font-size: 8rem;
  opacity: 0.8;
  filter: drop-shadow(0 0 30px rgba(37, 99, 235, 0.5));
}

.about-image-badge {
  position: absolute;
  bottom: -1rem;
  right: -1rem;
  padding: 0.875rem 1.25rem;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.about-image-badge i {
  color: var(--blue-500);
  font-size: 1.25rem;
}

.about-content h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

.about-content p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.about-content p strong {
  color: var(--text-primary);
  font-weight: 600;
}

.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

.about-highlight {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.about-highlight i {
  color: var(--blue-500);
  font-size: 0.875rem;
}

.about-timeline {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-timeline-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.about-timeline-year {
  flex-shrink: 0;
  width: 60px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--blue-500);
  padding-top: 0.125rem;
}

.about-timeline-dot {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue-600);
  margin-top: 0.375rem;
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.6);
  position: relative;
}

.about-timeline-dot::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: calc(100% + 1rem);
  background: linear-gradient(to bottom, var(--blue-600), transparent);
}

.about-timeline-item:last-child .about-timeline-dot::after {
  display: none;
}

.about-timeline-text {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================
   12. PROJECTS SECTION
   ============================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.project-card {
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.5s var(--ease-out);
  position: relative;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(37, 99, 235, 0.5);
  box-shadow: 0 30px 60px -15px rgba(37, 99, 235, 0.35), 0 0 40px rgba(37, 99, 235, 0.15);
}

.project-card.featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 400px;
}

.project-visual {
  position: relative;
  overflow: hidden;
  background: var(--gradient-hero);
  min-height: 220px;
}

.project-card.featured .project-visual {
  min-height: 100%;
}

.project-visual-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  transition: transform 0.6s var(--ease-out);
}

.project-card:hover .project-visual-inner {
  transform: scale(1.1);
}

.project-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0, 0, 0, 0.4));
}

.project-content {
  padding: 1.75rem;
}

.project-card.featured .project-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem;
}

.project-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(37, 99, 235, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--blue-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.project-card h3 {
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.project-card p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.project-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.project-feature {
  padding: 0.375rem 0.75rem;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.project-actions {
  display: flex;
  gap: 0.75rem;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
  border: 1px solid var(--border);
  color: var(--text-primary);
  background: transparent;
}

.project-link:hover {
  border-color: var(--blue-500);
  color: var(--blue-500);
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.2);
}

.project-link.primary {
  background: var(--blue-600);
  color: white;
  border-color: var(--blue-600);
}

.project-link.primary:hover {
  background: var(--blue-500);
  box-shadow: 0 0 30px rgba(37, 99, 235, 0.5);
}

/* ============================================
   13. TIMELINE SECTION
   ============================================ */
.timeline-horizontal {
  display: flex;
  gap: 0;
  overflow-x: auto;
  padding: 2rem 0;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.timeline-horizontal::-webkit-scrollbar {
  display: none;
}

.timeline-node {
  flex: 0 0 280px;
  scroll-snap-align: start;
  position: relative;
  padding: 0 1rem;
}

.timeline-node-line {
  position: absolute;
  top: 24px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-600), var(--sky-500));
  opacity: 0.3;
}

.timeline-node:first-child .timeline-node-line {
  left: 50%;
}

.timeline-node:last-child .timeline-node-line {
  right: 50%;
}

.timeline-node-dot {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--surface-solid);
  border: 2px solid var(--blue-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--blue-500);
  margin: 0 auto 1.5rem;
  z-index: 2;
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.4);
  transition: all 0.4s var(--ease-spring);
}

.timeline-node:hover .timeline-node-dot {
  transform: scale(1.15);
  background: var(--blue-600);
  color: white;
  box-shadow: 0 0 40px rgba(37, 99, 235, 0.7);
}

.timeline-node-content {
  text-align: center;
}

.timeline-node-content h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.timeline-node-content p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================
   14. SKILLS SECTION
   ============================================ */
.skills-capsules {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
}

.skill-capsule {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius-full);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: default;
  transition: all 0.4s var(--ease-spring);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.skill-capsule::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.4s;
}

.skill-capsule:hover::before {
  opacity: 0.15;
}

.skill-capsule:hover {
  transform: translateY(-4px) scale(1.05);
  border-color: var(--blue-500);
  box-shadow: 0 0 30px rgba(37, 99, 235, 0.3), 0 10px 25px -10px rgba(0, 0, 0, 0.3);
}

.skill-capsule i {
  color: var(--blue-500);
  font-size: 1rem;
  position: relative;
  z-index: 1;
  transition: transform 0.4s var(--ease-spring);
}

.skill-capsule:hover i {
  transform: scale(1.2) rotate(-5deg);
}

.skill-capsule span {
  position: relative;
  z-index: 1;
}

/* ============================================
   15. BUILDING IN PUBLIC / TESTIMONIALS
   ============================================ */
.marquee-wrapper {
  position: relative;
  overflow: hidden;
  padding: 1rem 0;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
  display: flex;
  gap: 1.5rem;
  animation: marqueeScroll 40s linear infinite;
  width: max-content;
}

.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.testimonial-card {
  flex: 0 0 360px;
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  transition: all 0.4s var(--ease-out);
}

.testimonial-card:hover {
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: 0 20px 40px -15px rgba(37, 99, 235, 0.3);
  transform: translateY(-4px);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 1rem;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.testimonial-meta h5 {
  font-size: 0.9375rem;
  font-weight: 700;
}

.testimonial-meta p {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.testimonial-body {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.testimonial-stars {
  display: flex;
  gap: 0.25rem;
  margin-top: 1rem;
  color: #fbbf24;
  font-size: 0.75rem;
}

/* ============================================
   16. BLOG SECTION
   ============================================ */
.blog-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.blog-search {
  position: relative;
  flex: 1;
  max-width: 320px;
}

.blog-search input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-primary);
  font-size: 0.875rem;
  font-family: inherit;
  outline: none;
  transition: all var(--transition-fast);
}

.blog-search input:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.2);
}

.blog-search i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-tertiary);
  font-size: 0.875rem;
}

.blog-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.blog-filter {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: inherit;
}

.blog-filter:hover,
.blog-filter.active {
  background: var(--blue-600);
  border-color: var(--blue-600);
  color: white;
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.4);
}

.blog-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
}

.blog-featured {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all 0.5s var(--ease-out);
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.blog-featured:hover {
  transform: translateY(-6px);
  border-color: rgba(37, 99, 235, 0.5);
  box-shadow: 0 30px 60px -15px rgba(37, 99, 235, 0.3);
}

.blog-featured-visual {
  aspect-ratio: 16 / 9;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.blog-featured-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.5));
}

.blog-featured-content {
  padding: 2rem;
}

.blog-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all 0.4s var(--ease-out);
  cursor: pointer;
  display: flex;
  gap: 1rem;
  padding: 1rem;
  backdrop-filter: blur(10px);
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: 0 20px 40px -15px rgba(37, 99, 235, 0.25);
}

.blog-card-visual {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  background: var(--gradient-primary);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}

.blog-card-content h5 {
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  line-height: 1.4;
}

.blog-card-content p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.blog-card-meta {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
  font-size: 0.6875rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.blog-category {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  background: rgba(37, 99, 235, 0.15);
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--blue-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.blog-featured-content h3 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.blog-featured-content p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* ---- Newsletter ---- */
.newsletter {
  margin-top: 2rem;
  padding: 2rem;
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: center;
  backdrop-filter: blur(10px);
}

.newsletter h4 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.newsletter p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin-bottom: 1.25rem;
}

.newsletter-form {
  display: flex;
  gap: 0.75rem;
  max-width: 480px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-primary);
  font-size: 0.9375rem;
  font-family: inherit;
  outline: none;
  transition: all var(--transition-fast);
}

.newsletter-form input:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.2);
}

.newsletter-form button {
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  border: none;
  background: var(--blue-600);
  color: white;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: inherit;
  white-space: nowrap;
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.4);
}

.newsletter-form button:hover {
  background: var(--blue-500);
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(37, 99, 235, 0.6);
}

/* ============================================
   17. CONTACT SECTION
   ============================================ */
.contact {
  position: relative;
  overflow: hidden;
  background: var(--navy-950);
  border-radius: var(--radius-xl);
  margin: 0 clamp(1.25rem, 4vw, 2.5rem) var(--section-pad);
  padding: clamp(3rem, 8vw, 6rem) clamp(1.5rem, 5vw, 4rem);
}

[data-theme="light"] .contact {
  background: var(--gray-900);
}

.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 20% 30%, rgba(37, 99, 235, 0.3), transparent),
    radial-gradient(ellipse 50% 50% at 80% 70%, rgba(14, 165, 233, 0.15), transparent);
}

.contact-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.contact h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: white;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.contact p {
  color: var(--gray-400);
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.contact-card {
  padding: 1.5rem 1rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  text-decoration: none;
  color: white;
  transition: all 0.4s var(--ease-spring);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.contact-card:hover {
  transform: translateY(-6px) scale(1.03);
  background: rgba(37, 99, 235, 0.15);
  border-color: rgba(37, 99, 235, 0.5);
  box-shadow: 0 20px 40px -10px rgba(37, 99, 235, 0.5);
}

.contact-card i {
  font-size: 1.5rem;
  color: var(--blue-400);
  transition: transform 0.4s var(--ease-spring);
}

.contact-card:hover i {
  transform: scale(1.2);
}

.contact-card span {
  font-size: 0.8125rem;
  font-weight: 600;
}

.contact-form {
  display: flex;
  gap: 0.75rem;
  max-width: 480px;
  margin: 0 auto;
}

.contact-form input {
  flex: 1;
  padding: 0.875rem 1.25rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: white;
  font-size: 0.9375rem;
  font-family: inherit;
  outline: none;
  transition: all var(--transition-fast);
  backdrop-filter: blur(10px);
}

.contact-form input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.contact-form input:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2), 0 0 30px rgba(37, 99, 235, 0.3);
}

.contact-submit {
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-full);
  border: none;
  background: var(--blue-600);
  color: white;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s var(--ease-spring);
  box-shadow: 0 0 30px rgba(37, 99, 235, 0.5);
  font-family: inherit;
  white-space: nowrap;
}

.contact-submit:hover {
  background: var(--blue-500);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 0 50px rgba(37, 99, 235, 0.8);
}

.contact-submit i {
  transition: transform 0.3s var(--ease-spring);
}

.contact-submit:hover i {
  transform: translateX(4px);
}

/* ============================================
   18. FOOTER
   ============================================ */
.footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
}

.footer-logo {
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text-primary);
}

.footer-logo-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: white;
}

.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--blue-500);
}

.footer-socials {
  display: flex;
  gap: 0.75rem;
}

.footer-social {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition-fast);
  font-size: 0.875rem;
}

.footer-social:hover {
  background: var(--blue-600);
  border-color: var(--blue-600);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.5);
}

.footer-copy {
  color: var(--text-tertiary);
  font-size: 0.8125rem;
}

.footer-copy .heart {
  color: #ef4444;
  animation: heartbeat 1.5s ease-in-out infinite;
  display: inline-block;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

/* ============================================
   19. FLOATING CTA
   ============================================ */
.floating-cta {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 900;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--blue-600);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.5), 0 0 0 0 rgba(37, 99, 235, 0.4);
  transition: all 0.3s var(--ease-spring);
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

.floating-cta.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.floating-cta:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.7), 0 0 0 8px rgba(37, 99, 235, 0.15);
}

/* ============================================
   20. SCROLL REVEAL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.reveal-stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.15s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.2s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.25s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.3s; }

/* ============================================
   21. RESPONSIVE — TABLET (≤1024px)
   ============================================ */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-btns {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  .hero-3d-card {
    max-width: 340px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-card.featured {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .contact-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================
   22. RESPONSIVE — MOBILE (≤768px)
   ============================================ */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    gap: 0.25rem;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    padding: 0.75rem 1rem;
  }

  .hamburger {
    display: flex;
  }

  .nav-cta {
    display: none;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .stat-item:not(:last-child)::after {
    display: none;
  }

  .hero-float {
    display: none;
  }

  .contact-form,
  .newsletter-form {
    flex-direction: column;
  }

  .contact-submit,
  .newsletter-form button {
    justify-content: center;
  }

  .floating-cta {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 50px;
    height: 50px;
  }
}

/* ============================================
   23. RESPONSIVE — SMALL MOBILE (≤480px)
   ============================================ */
@media (max-width: 480px) {
  .hero-title {
    font-size: 2.25rem;
  }

  .hero-btns {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .stat-value {
    font-size: 1.75rem;
  }

  .contact-cards {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .contact-card {
    padding: 1rem 0.75rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .about-highlights {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   24. PRINT STYLES
   ============================================ */
@media print {
  .navbar,
  .floating-cta,
  .cursor-glow,
  .scroll-progress,
  .loader,
  .hero-bg,
  .marquee-wrapper,
  .contact-form,
  .newsletter-form {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .hero,
  .section,
  .contact {
    padding: 2rem 0;
    min-height: auto;
  }

  .project-card,
  .blog-card,
  .testimonial-card {
    break-inside: avoid;
    border: 1px solid #ccc;
    box-shadow: none;
  }
}