@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@300;400;500;600;700&family=Orbitron:wght@400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');
@import url('https://fonts.cdnfonts.com/css/aquire');

/* --- Global Styles --- */
:root {
  /* Core Brand Colors */
  --primary-color: #2563eb;
  --primary-color-alt: #1d4ed8;
  --accent-color: #60a5fa;
  
  /* Light Mode Surface System */
  --bg: #fafbff;
  --bg-alt: #f1f5f9;
  --text: #0f172a;
  --text-alt: #475569;
  --surface-soft: rgba(255, 255, 255, 0.72);
  --surface-panel: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(247, 250, 255, 0.72));
  --surface-outline: rgba(15, 23, 42, 0.08);
  --surface-glass: rgba(255, 255, 255, 0.8);
  
  /* Shadows */
  --panel-shadow: 0 26px 80px rgba(15, 23, 42, 0.08);
  --panel-shadow-strong: 0 30px 90px rgba(15, 23, 42, 0.12);
  
  /* Shared tokens */
  --header-height: 4.5rem;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --primary-color: #8b5cf6;
  --primary-color-alt: #7c3aed;
  --accent-color: #a78bfa;
  
  --bg: #0b0f1a;
  --bg-alt: #111827;
  --text: #f1f5f9;
  --text-alt: #94a3b8;
  --surface-soft: rgba(15, 23, 42, 0.65);
  --surface-panel: linear-gradient(180deg, rgba(17, 24, 39, 0.82), rgba(11, 15, 26, 0.74));
  --surface-outline: rgba(255, 255, 255, 0.06);
  --surface-glass: rgba(11, 15, 26, 0.75);
  
  --panel-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
  --panel-shadow-strong: 0 32px 90px rgba(0, 0, 0, 0.55);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  background-color: var(--bg);
  color: var(--text);
  font-size: 16px;
  overflow-x: hidden;
  position: relative;
  transition: var(--transition);
}

/* Premium Light Glass Background with 3D Depth */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      100% 100% at 0% 0%,
      rgba(0, 113, 227, 0.03) 0%,
      transparent 50%
    ),
    radial-gradient(
      100% 100% at 100% 0%,
      rgba(41, 151, 255, 0.02) 0%,
      transparent 50%
    ),
    radial-gradient(
      100% 100% at 100% 100%,
      rgba(99, 168, 255, 0.03) 0%,
      transparent 50%
    ),
    radial-gradient(
      100% 100% at 0% 100%,
      rgba(208, 235, 255, 0.03) 0%,
      transparent 50%
    ),
    linear-gradient(
      180deg,
      rgba(250, 251, 255, 0.9) 0%,
      rgba(240, 244, 255, 0.95) 100%
    );
  pointer-events: none;
  z-index: -1;
  animation: gradientAnimation 20s ease infinite;
  backdrop-filter: blur(60px) saturate(120%);
  -webkit-backdrop-filter: blur(60px) saturate(120%);
}

/* Dark mode purple-blue background override */
[data-theme="dark"] body::before {
  background: radial-gradient(
      100% 100% at 0% 0%,
      rgba(139, 92, 246, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      100% 100% at 100% 0%,
      rgba(96, 165, 250, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      100% 100% at 100% 100%,
      rgba(167, 139, 250, 0.12) 0%,
      transparent 50%
    ),
    radial-gradient(
      100% 100% at 0% 100%,
      rgba(30, 58, 138, 0.2) 0%,
      transparent 50%
    ),
    linear-gradient(
      180deg,
      rgba(11, 16, 32, 0.96) 0%,
      rgba(11, 16, 32, 0.99) 100%
    );
  backdrop-filter: blur(80px) saturate(140%);
  -webkit-backdrop-filter: blur(80px) saturate(140%);
}

/* 3D Depth Animation */
@keyframes gradientAnimation {
  0% {
    background-position: 0% 0%;
  }
  50% {
    background-position: 100% 100%;
  }
  100% {
    background-position: 0% 0%;
  }
}

/* Enhanced 3D Animated Blobs */
.blob {
  position: fixed;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.08;
  mix-blend-mode: plus-lighter;
  pointer-events: none;
  z-index: -1;
  animation: blobFloat 30s infinite cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(
    45deg,
    rgba(157, 78, 221, 0.4),
    rgba(199, 125, 255, 0.4),
    rgba(216, 180, 254, 0.4)
  );
  transform-style: preserve-3d;
  perspective: 1000px;
}

[data-theme="dark"] .blob {
  opacity: 0.12;
  mix-blend-mode: soft-light;
  background: linear-gradient(
    45deg,
    rgba(157, 78, 221, 0.5),
    rgba(199, 125, 255, 0.5),
    rgba(216, 180, 254, 0.5)
  );
}

.blob-1 {
  top: -400px;
  left: -200px;
  animation-delay: 0s;
  width: 1000px;
  height: 1000px;
}

.blob-2 {
  bottom: -300px;
  right: -200px;
  animation-delay: -8s;
  width: 900px;
  height: 900px;
  filter: blur(100px);
}

.blob-3 {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -16s;
  width: 700px;
  height: 700px;
  filter: blur(60px);
}

@keyframes blobFloat {
  0% {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  25% {
    transform: translate(30px, -40px) rotate(90deg) scale(1.05);
  }
  50% {
    transform: translate(-20px, 30px) rotate(180deg) scale(0.95);
  }
  75% {
    transform: translate(-40px, -20px) rotate(270deg) scale(1.02);
  }
  100% {
    transform: translate(0, 0) rotate(360deg) scale(1);
  }
}

/* Premium Glass Card */
.glass-card {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.2),
    rgba(255, 255, 255, 0.1)
  );
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.glass-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: 0.5s;
}

.glass-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 24px 70px rgba(2, 6, 23, 0.5);
}

.glass-card:hover::before {
  left: 100%;
}

/* Modern Card Design */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 22px 60px rgba(2, 6, 23, 0.45);
}

/* Block Design Elements */
.block {
  position: relative;
  padding: 2rem;
  margin: 2rem 0;
  border-radius: 1rem;
  background: var(--bg-alt);
}

.block::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient);
  border-radius: 4px 0 0 4px;
}

/* Theme Toggle Button */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.theme-toggle {
  background: var(--surface-soft);
  border: 1px solid var(--surface-outline);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text);
  font-size: 1.1rem;
  z-index: 1002;
}

.theme-toggle:hover {
  background: var(--surface-panel);
  transform: translateY(-2px);
  box-shadow: var(--panel-shadow);
  color: var(--primary-color);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  z-index: 2000;
  width: 0%;
  box-shadow: 0 0 15px rgba(37, 99, 235, 0.4);
}

.glass-card {
  background: var(--card);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.24);
  border-radius: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.45);
}

.mono {
  font-family: "Fira Code", monospace;
}

/* Add smooth scroll behavior */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* Loading Screen */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-dark);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.loader-content {
  text-align: center;
}

.loader-circle {
  width: 50px;
  height: 50px;
  border: 3px solid var(--glass-border);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: loader-spin 1s infinite linear;
  margin-bottom: 1rem;
}

@keyframes loader-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Particles Container */
#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* Liquid Glass Hover Effects */
.glass-hover {
  position: relative;
  overflow: hidden;
}

.glass-hover::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: 0.5s;
}

.glass-hover:hover::before {
  left: 100%;
}

/* Liquid Animation */
@keyframes liquidFlow {
  0% {
    border-radius: 60% 40% 30% 70%/60% 30% 70% 40%;
  }
  50% {
    border-radius: 30% 60% 70% 40%/50% 60% 30% 60%;
  }
  100% {
    border-radius: 60% 40% 30% 70%/60% 30% 70% 40%;
  }
}

.liquid-border {
  position: relative;
}

.liquid-border::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(45deg, var(--primary-color), var(--accent));
  animation: liquidFlow 8s ease-in-out infinite;
  z-index: -1;
  filter: blur(8px);
}

/* 3D Transform on Scroll */
.transform-on-scroll {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  perspective: 1000px;
}

.transform-on-scroll.scrolled {
  transform: translateY(0);
}

/* Performance Optimizations */
.optimize-animation {
  will-change: transform, opacity;
}

/* Lazy Loading */
.lazy-image {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lazy-image.loaded {
  opacity: 1;
}

/* Smooth Page Transitions */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--gradient);
  z-index: 1000;
  transition: width 0.1s linear;
}

/* Modern Form Styles */
.form-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  color: var(--text);
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-alt);
}

.form-group label {
  position: absolute;
  left: 1rem;
  top: 1rem;
  color: var(--text-alt);
  transition: var(--transition);
  pointer-events: none;
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
  top: -0.5rem;
  left: 0.5rem;
  font-size: 0.875rem;
  color: var(--primary);
  background: var(--bg);
  padding: 0 0.5rem;
}

/* Error and Success Messages */
.error-message,
.success-message {
  padding: 1rem;
  border-radius: 0.5rem;
  margin-top: 1rem;
  font-size: 0.875rem;
}

.error-message {
  background: #fee2e2;
  border: 1px solid #ef4444;
  color: #b91c1c;
}

.success-message {
  background: #dcfce7;
  border: 1px solid #22c55e;
  color: #15803d;
}

/* Modern Card Hover Effects */
.card {
  position: relative;
  overflow: hidden;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient);
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
}

.card:hover::after {
  opacity: 0.1;
}

/* Skill Progress Animation */
.skill-progress {
  width: 100%;
  height: 6px;
  background: var(--bg-alt);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.skill-progress-bar {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: var(--gradient);
  transition: width 1s var(--cubic-bezier);
}

/* Animated Background Shapes */
.animated-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.animated-shape {
  position: absolute;
  background: var(--gradient);
  filter: blur(50px);
  opacity: 0.1;
  animation: floatAnimation 20s infinite;
}

@keyframes floatAnimation {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(100px, 100px) rotate(180deg);
  }
  100% {
    transform: translate(0, 0) rotate(360deg);
  }
}

/* Image Hover Effects */
.hover-zoom {
  overflow: hidden;
  border-radius: 0.5rem;
}

.hover-zoom img {
  transition: transform 0.5s var(--cubic-bezier);
}

.hover-zoom:hover img {
  transform: scale(1.1);
}

/* 3D Curved Elements */
.btn,
.glass-card,
.skill-category,
.project-description {
  position: relative;
  transform-style: flat;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover,
.glass-card:hover,
.skill-category:hover,
.project-description:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.45);
}

.btn::before,
.glass-card::before,
.skill-category::before,
.project-description::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.3),
    rgba(255, 255, 255, 0.1),
    transparent
  );
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Glass Morphism Enhancement */
.glass-morphism {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

/* 3D Depth Effect */
.depth-effect {
  position: relative;
  transition: transform 0.3s ease;
}

.depth-effect::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.1));
  transform: translateZ(-1px);
  pointer-events: none;
}

.depth-effect:hover {
  transform: translateY(-4px);
}

/* Custom Cursor */
.custom-cursor {
  width: 20px;
  height: 20px;
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.1s ease;
  mix-blend-mode: difference;
}

.custom-cursor.active {
  transform: scale(1.5);
  background: var(--primary-color);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 6rem 0 2rem 0;
}

h1,
h2,
h3,
.nav-logo {
  font-family: 'Aquire', sans-serif;
  font-weight: 600;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: color 0.3s;
}

a:hover {
  color: var(--primary-color-alt);
}

img {
  max-width: 100%;
  height: auto;
}

ul {
  list-style: none;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--primary-color);
}

.btn {
  display: inline-block;
  background: var(--primary-color);
  color: #fff;
  padding: 12px 24px;
  border-radius: 5px;
  font-weight: 500;
  transition: background-color 0.3s, transform 0.3s;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--primary-color-alt);
  transform: translateY(-3px);
}

.btn i {
  margin-left: 5px;
}

/* --- Premium Navigation System --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
}

.header-scrolled {
  padding: 0.85rem 0;
  background: var(--surface-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--surface-outline);
  box-shadow: var(--panel-shadow);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.nav-logo {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  transition: var(--transition);
  letter-spacing: -0.02em;
}

.nav-logo i {
  color: var(--primary-color);
  font-size: 1.15rem;
  filter: drop-shadow(0 0 8px rgba(37, 99, 235, 0.3));
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2.8rem;
  list-style: none;
}

.nav-link {
  color: var(--text-alt);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}

.nav-link i {
  font-size: 0.85rem;
  color: var(--primary-color);
  opacity: 0.7;
}

.nav-link:hover, 
.nav-link.active {
  color: var(--text);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition);
  border-radius: 99px;
  transform: translateX(-50%);
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.4);
}

.nav-link:hover::after, 
.nav-link.active::after {
  width: 100%;
}

.nav-toggle,
.nav-close {
  display: none;
  font-size: 1.4rem;
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
}

.nav-toggle:hover,
.nav-close:hover {
  color: var(--primary-color);
}

/* --- Home/Hero Section --- */
.home {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 0;
  position: relative;
}

.home-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  max-width: 600px;
}

.greeting {
  color: var(--primary-color);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.hero-content h1 {
  font-size: clamp(40px, 8vw, 80px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.hero-content .title {
  font-size: clamp(24px, 5vw, 32px);
  color: var(--text-gray);
  font-weight: 500;
  margin-bottom: 2rem;
}

.hero-description {
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  color: var(--text-gray);
  max-width: 540px;
}

.cta-buttons {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.btn-primary {
  background: var(--primary-color);
  color: var(--bg-dark);
  font-weight: 600;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background: rgba(100, 255, 218, 0.1);
}

.hero-socials {
  display: flex;
  gap: 1.5rem;
}

.hero-socials a {
  font-size: 1.5rem;
  color: var(--text-gray);
  transition: all 0.3s ease;
}

.hero-socials a:hover {
  color: var(--primary-color);
  transform: translateY(-3px);
}

.hero-image {
  position: relative;
}

.hero-image-container {
  position: relative;
  max-width: 400px;
  margin: 0 auto;
}

.hero-image-container::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 20px;
  right: -20px;
  bottom: -20px;
  border: 2px solid var(--primary-color);
  border-radius: 4px;
  z-index: 0;
  transition: all 0.3s ease;
}

.hero-image-container:hover::before {
  top: 15px;
  left: 15px;
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  position: relative;
  z-index: 1;
  filter: grayscale(100%) contrast(1.1);
  transition: all 0.3s ease;
}

.hero-image img:hover {
  filter: none;
}

/* --- About Section --- */
.about-container {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.about-container.visible {
  opacity: 1;
  transform: translateY(0);
}

.about-container {
  max-width: 900px;
  margin: 0 auto;
}

.about-content {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 4rem;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(2, 6, 23, 0.45);
  padding: 2rem;
}

.about-description p {
  color: var(--text-gray);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.7;
}

.about-contact {
  margin: 2rem 0;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.contact-item i {
  color: var(--primary-color);
  margin-right: 1rem;
  font-size: 1.2rem;
}

.contact-item a,
.contact-item span {
  color: var(--text-gray);
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: var(--primary-color);
}

.about-image {
  position: relative;
}

.about-image-wrapper {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
}

.about-image-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(100, 255, 218, 0.2);
  mix-blend-mode: multiply;
}

.about-image img {
  width: 100%;
  height: auto;
  filter: grayscale(100%) contrast(1.1);
  transition: all 0.3s ease;
}

.about-image:hover img {
  filter: none;
}

.about-image-wrapper::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 20px;
  right: -20px;
  bottom: -20px;
  border: 2px solid var(--primary-color);
  border-radius: 4px;
  z-index: -1;
  transition: all 0.3s ease;
}

.about-image:hover .about-image-wrapper::before {
  top: 15px;
  left: 15px;
}

/* --- Skills Section --- */
.section-subtitle {
  color: var(--primary-color);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(2, 6, 23, 0.4);
  padding: 2rem;
}

.skill-category {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.2),
    rgba(255, 255, 255, 0.05)
  );
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 2rem;
  border-radius: 24px;
  transition: transform 0.3s ease;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  transform-style: preserve-3d;
  perspective: 1000px;
}

.skill-category:hover {
  transform: translateY(-5px);
}

.skill-category h3 {
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  font-family: "Fira Code", monospace;
}

.skill-list {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 0.5rem;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.skill-list::-webkit-scrollbar {
  display: none; /* Chrome, Safari and Opera */
}

.skill-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1.2rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  flex: 0 0 auto;
  min-width: max-content;
}

.skill-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-2);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.skill-item:hover::before {
  opacity: 1;
}

.skill-item i {
  font-size: 1.5rem;
  color: var(--primary-color);
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.skill-item:hover i {
  transform: scale(1.1);
}

.skill-item span {
  font-size: 0.9rem;
  color: var(--text-light);
  position: relative;
  z-index: 1;
  font-weight: 500;
  white-space: nowrap;
}

.skill-level {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  position: relative;
  z-index: 1;
}

.skill-level::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: var(--gradient-1);
  border-radius: 2px;
  width: 0;
  transition: width 1s ease;
}

.skill-level.animate::before {
  width: var(--level);
}

/* Skill category improvements */
.skill-category {
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-category h3 {
  position: relative;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.skill-category h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 2px;
  background: var(--gradient-1);
}

.skill-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1.2rem;
}





/* --- Contact Section --- */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 4rem);
  margin-top: 3rem;
  align-items: flex-start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
}

.contact-description {
  font-size: 1.05rem;
  color: var(--text-alt);
  line-height: 1.7;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.method-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem;
  transition: transform 0.3s ease;
}

.method-card:hover {
  transform: translateX(10px);
}

.method-card i {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-soft);
  border-radius: 12px;
  color: var(--primary-color);
  font-size: 1.25rem;
}

.method-card div span {
  display: block;
  font-size: 0.8rem;
  color: var(--text-alt);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.method-card div a,
.method-card div p {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.contact-social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.contact-social-links a {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-panel);
  border: 1px solid var(--surface-outline);
  border-radius: 12px;
  color: var(--text-alt);
  font-size: 1.25rem;
  transition: all 0.3s ease;
}

.contact-social-links a:hover {
  background: var(--primary-color);
  color: #fff;
  transform: translateY(-5px);
}

.contact-form-container {
  padding: 2.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  position: relative;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem 0;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--surface-outline);
  color: var(--text);
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group label {
  position: absolute;
  top: 1rem;
  left: 0;
  color: var(--text-alt);
  pointer-events: none;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
  top: -1rem;
  font-size: 0.8rem;
  color: var(--primary-color);
  font-weight: 600;
}

/* --- Footer --- */
.footer {
  position: relative;
  padding: 5rem 0 2rem;
  margin-top: 4rem;
  overflow: hidden;
  background: var(--surface-panel);
  border-top: 1px solid var(--surface-outline);
}

.footer-animated-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
}

.footer-blob {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.1), transparent 70%);
  filter: blur(50px);
}

.b1 { top: -10%; left: -5%; }
.b2 { bottom: -10%; right: -5%; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 4rem;
  position: relative;
  z-index: 1;
}

.footer-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
}

.footer-text {
  color: var(--text-alt);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 35ch;
}

.footer-links,
.footer-contact-info {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a,
.footer-contact-info a {
  color: var(--text-alt);
  transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-contact-info a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.footer-contact-info li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-alt);
}

.footer-contact-info i {
  color: var(--primary-color);
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.footer-socials a {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-soft);
  border-radius: 10px;
  color: var(--text-alt);
  transition: all 0.3s ease;
}

.footer-socials a:hover {
  background: var(--primary-color);
  color: #fff;
  transform: scale(1.1);
}

.footer-bottom {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--surface-outline);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
}

.footer-credit span {
  color: var(--primary-color);
  font-weight: 600;
}

.footer-top {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-color);
  color: #fff;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.footer-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

@media (max-width: 992px) {
  .contact-content {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
}

/* Light theme-only enhancements for footer motion background */
[data-theme="light"] .footer-animated-bg::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: conic-gradient(
    from 0deg,
    rgba(37, 99, 235, 0.1),
    rgba(139, 92, 246, 0.1),
    rgba(96, 165, 250, 0.08),
    transparent 60%
  );
  filter: blur(80px) saturate(120%);
  animation: footerRings 30s linear infinite;
}

@keyframes footerRings {
  0% {
    transform: rotate(0deg) scale(1);
  }
  100% {
    transform: rotate(360deg) scale(1);
  }
}

[data-theme="light"] .footer-animated-bg .footer-blob {
  opacity: 0.28;
  filter: blur(40px) saturate(120%);
  mix-blend-mode: multiply;
  background: radial-gradient(
      circle at 30% 30%,
      rgba(37, 99, 235, 0.6),
      transparent 60%
    ),
    radial-gradient(circle at 70% 70%, rgba(139, 92, 246, 0.5), transparent 60%);
}

/* Light theme: make footer text palette blue */
[data-theme="light"] .footer-title,
[data-theme="light"] .footer-text,
[data-theme="light"] .footer-links a,
[data-theme="light"] .footer-contact li,
[data-theme="light"] .footer-contact a,
[data-theme="light"] .footer-credit,
[data-theme="light"] .footer-top {
  color: #000000;
}

[data-theme="light"] .footer-bottom {
  border-top-color: rgba(37, 99, 235, 0.15);
}

/* --- Scroll Up Button --- */
.scroll-up {
  position: fixed;
  right: 2rem;
  bottom: -3rem; /* Hidden by default */
  background-color: var(--primary-color);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  transition: bottom 0.4s, background-color 0.3s;
}

.scroll-up:hover {
  background-color: var(--primary-color-alt);
  color: #fff;
}

.show-scroll {
  bottom: 3rem;
}

/* --- Responsive Design (Media Queries) --- */
@media (max-width: 992px) {
  .container {
    padding: 0 1rem;
  }

  /* Stack primary grids on tablets */
  .home-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  .about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  .contact-container {
    display: grid;
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    order: 2;
  }

  .hero-image {
    order: 1;
    margin-bottom: 2rem;
  }

  .hero-socials {
    justify-content: center;
  }

  .about-image img {
    width: 280px;
    height: 280px;
    margin-bottom: 2rem;
  }

  .journey-container {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  body {
    /* Fix for nav menu overlap */
    padding-top: var(--header-height);
  }

  /* Stack featured sections and adjust grids on mobile */
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.25rem;
  }
  .skill-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .home {
    padding: 80px 0;
  }
  .section-title {
    font-size: 1.8rem;
  }



  .section-title {
    font-size: 2rem;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content h3 {
    font-size: 1.3rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .scroll-up {
    right: 1rem;
  }

  .show-scroll {
    bottom: 1rem;
  }
}

/* Small phones */
@media (max-width: 576px) {
  .container {
    padding: 0 14px;
  }
  .navbar {
    padding: 0 16px;
  }
  .home {
    padding: 70px 0;
  }
  .hero-content h1 {
    font-size: 2rem;
  }
  .hero-content .title {
    font-size: 1.1rem;
  }
  .hero-description {
    font-size: 1rem;
  }
  .cta-buttons {
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
  }
  .hero-image-container {
    max-width: 300px;
  }
  .about-content {
    gap: 1.25rem;
    padding: 1rem;
  }
  .about-image-wrapper::before {
    top: 12px;
    left: 12px;
    right: -12px;
    bottom: -12px;
  }
  .skills-grid {
    gap: 1rem;
    padding: 1rem;
  }
  .skill-item {
    padding: 0.75rem 1rem;
  }
  .featured-projects {
    gap: 48px;
    padding: 1rem;
  }
  .project-description {
    padding: 16px;
  }
  .journey-container {
    gap: 1.25rem;
    padding: 1rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* Very small devices */
@media (max-width: 380px) {
  .nav-logo {
    font-size: 1.2rem;
  }
  .hero-content h1 {
    font-size: 1.8rem;
  }
  .section-title {
    font-size: 1.5rem;
  }
  .btn {
    width: 100%;
    text-align: center;
    padding: 10px 16px;
  }
  .skill-list {
    grid-template-columns: 1fr;
  }
  .project-links {
    gap: 10px;
  }
}

/* Utility Classes */
.gradient-text {
  background: linear-gradient(135deg, var(--text) 30%, var(--primary-color) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline-block;
}

.mono {
  font-family: 'Space Grotesk', monospace;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
}

.section-subtitle {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 3rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

body {
  line-height: 1.7;
  letter-spacing: -0.01em;
}

/* --- Professional UI Refresh --- */
:root {
  --surface-soft: rgba(255, 255, 255, 0.72);
  --surface-panel: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.84),
    rgba(247, 250, 255, 0.72)
  );
  --surface-outline: rgba(15, 23, 42, 0.08);
  --panel-shadow: 0 26px 80px rgba(15, 23, 42, 0.12);
  --panel-shadow-strong: 0 24px 60px rgba(15, 23, 42, 0.16);
}

[data-theme="dark"] {
  --surface-soft: rgba(15, 23, 42, 0.72);
  --surface-panel: linear-gradient(
    180deg,
    rgba(17, 20, 42, 0.82),
    rgba(11, 16, 32, 0.74)
  );
  --surface-outline: rgba(148, 163, 184, 0.12);
  --panel-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  --panel-shadow-strong: 0 28px 70px rgba(0, 0, 0, 0.5);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}



main {
  position: relative;
  z-index: 1;
}

.container {
  max-width: 1180px;
  padding: 0 28px;
}

section {
  padding: clamp(5rem, 8vw, 7rem) 0;
  scroll-margin-top: 5.5rem;
}





.home {
  min-height: 100svh;
  padding-top: calc(var(--header-height) + 4rem);
  position: relative;
  overflow: hidden;
}

.home::before {
  content: "";
  position: absolute;
  top: -10%;
  right: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(
    circle at center,
    rgba(37, 99, 235, 0.12) 0%,
    transparent 70%
  );
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
  animation: pulse-slow 8s infinite alternate ease-in-out;
}

[data-theme="dark"] .home::before {
  background: radial-gradient(
    circle at center,
    rgba(139, 92, 246, 0.15) 0%,
    transparent 70%
  );
}

@keyframes pulse-slow {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.15); opacity: 0.8; }
}

.home-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  position: relative;
  z-index: 1;
}

.hero-content {
  opacity: 1; /* GSAP will handle initial state if used */
}

.hero-status {
  margin-bottom: 1.5rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1.1rem;
  background: var(--surface-soft);
  border: 1px solid var(--surface-outline);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-alt);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.status-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
  animation: blink 2s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.greeting {
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  display: block;
}

.gradient-text {
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 1.25rem;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--text) 30%, var(--primary-color) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-content .title {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 500;
  color: var(--text-alt);
  line-height: 1.3;
  margin-bottom: 1.5rem;
  max-width: 32ch;
}

.hero-description {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-alt);
  margin-bottom: 2.25rem;
  max-width: 60ch;
}

.hero-description strong {
  color: var(--text);
  font-weight: 600;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.hero-highlights span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: var(--surface-panel);
  border: 1px solid var(--surface-outline);
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.hero-highlights span:hover {
  transform: translateY(-3px);
  border-color: var(--primary-color);
}

.hero-highlights i {
  color: var(--primary-color);
  font-size: 1rem;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.btn {
  padding: 1rem 1.8rem;
  border-radius: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-size: 0.95rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-color-alt));
  color: #fff;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(37, 99, 235, 0.35);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--surface-outline);
  color: var(--text);
}

.btn-outline:hover {
  background: var(--surface-soft);
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-4px);
}

.hero-socials {
  display: flex;
  gap: 1rem;
}

.hero-socials a {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-panel);
  border: 1px solid var(--surface-outline);
  border-radius: 12px;
  color: var(--text-alt);
  font-size: 1.25rem;
  transition: all 0.3s ease;
}

.hero-socials a:hover {
  background: var(--primary-color);
  color: #fff;
  transform: translateY(-5px);
  border-color: var(--primary-color);
}

/* --- Hero Image & Floating Cards --- */
.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.hero-image-container {
  position: relative;
  width: min(100%, 420px);
  max-width: 420px;
  aspect-ratio: 1;
  margin-inline: auto;
  overflow: hidden;
  border-radius: 32px;
}

.hero-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 32px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 2;
}

.glass-accent {
  position: absolute;
  inset: -15px;
  background: linear-gradient(135deg, var(--primary-color), transparent);
  opacity: 0.15;
  border-radius: 40px;
  z-index: 1;
  filter: blur(10px);
}

.hero-floating-card {
  position: absolute;
  z-index: 3;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  animation: float 6s infinite ease-in-out;
}

[data-theme="dark"] .hero-floating-card {
  background: rgba(15, 23, 42, 0.7);
  border-color: rgba(255, 255, 255, 0.1);
}

.hero-floating-card i {
  font-size: 1.25rem;
  color: var(--primary-color);
}

.hero-floating-card span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.card-1 {
  top: 15%;
  left: 2%;
  animation-delay: 0s;
}

.card-2 {
  bottom: 15%;
  right: 2%;
  animation-delay: 3s;
}

@media (max-width: 768px) {
  .hero-floating-card {
    display: none;
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

@media (max-width: 992px) {
  .home-container {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 2rem;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-image {
    justify-content: center;
    margin-top: 3rem;
  }

  .card-1 { left: -5%; }
  .card-2 { right: -5%; }
}

.about-container {
  max-width: 1100px;
}

.about-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.glass-card {
  padding: clamp(1.5rem, 4vw, 3rem);
  background: var(--surface-panel);
  border: 1px solid var(--surface-outline);
  border-radius: 28px;
  box-shadow: var(--panel-shadow);
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .glass-card {
  background: rgba(15, 23, 42, 0.45);
}

.about-slogan {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.about-description {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-alt);
  margin-bottom: 2rem;
}

.about-description strong {
  color: var(--text);
  font-weight: 600;
}

.about-contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--text-alt);
  font-size: 0.95rem;
}

.contact-item i {
  color: var(--primary-color);
  font-size: 1.1rem;
}

.contact-item a:hover {
  color: var(--primary-color);
}

/* --- About Image & Liquid Border --- */
.about-image {
  position: relative;
}

.about-image-wrapper {
  position: relative;
  padding: 1rem;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-color-alt));
  animation: liquid-morph 8s infinite alternate ease-in-out;
  box-shadow: 0 20px 50px rgba(37, 99, 235, 0.2);
}

.about-image-wrapper img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: inherit;
  border: 4px solid var(--card);
}

@keyframes liquid-morph {
  0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
  100% { border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; }
}

.depth-effect {
  transition: transform 0.5s cubic-bezier(0.33, 1, 0.68, 1);
}

.about-image:hover .depth-effect {
  transform: scale(1.05) rotate(2deg);
}

/* --- Skills Showcase --- */
.skills-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.skill-category {
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.skill-category:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
}

.skill-category-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.skill-category-title i {
  color: var(--primary-color);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.skill-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  background: var(--surface-soft);
  border: 1px solid var(--surface-outline);
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  transition: all 0.2s ease;
}

.skill-tag:hover {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
  transform: scale(1.05);
}

.skill-tag i {
  font-size: 0.9rem;
}

/* --- Journey Section --- */
.journey-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: 3rem;
}

.journey-column {
  padding: 2.5rem;
  height: 100%;
}

.column-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.column-title i {
  color: var(--primary-color);
}

.timeline {
  position: relative;
  padding-left: 1.5rem;
  border-left: 1.5px solid var(--surface-outline);
}

.timeline-item {
  position: relative;
  padding-bottom: 2.5rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: calc(-1.5rem - 6.5px);
  top: 0.35rem;
  width: 12px;
  height: 12px;
  background: var(--bg);
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  z-index: 1;
  box-shadow: 0 0 0 4px var(--surface-soft);
}

.timeline-item h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.timeline-item h4 i {
  font-size: 0.9rem;
  opacity: 0.8;
  color: var(--primary-color);
}

.timeline-item .location {
  display: block;
  font-size: 0.95rem;
  color: var(--text-alt);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.timeline-duration {
  font-size: 0.85rem;
  color: var(--primary-color);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  background: var(--surface-soft);
  border: 1px solid var(--surface-outline);
  border-radius: 8px;
  width: fit-content;
}

@media (max-width: 992px) {
  .journey-container {
    grid-template-columns: 1fr;
  }
}

.featured-projects {
  gap: 1.5rem;
  padding: 1.5rem;
}

.featured-project {
  gap: 1.5rem;
  padding: 1.5rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid var(--surface-outline);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

[data-theme="dark"] .featured-project {
  background: rgba(15, 23, 42, 0.5);
}

.project-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.project-overline {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-title {
  margin: 0;
  color: var(--text);
}

.project-description {
  padding: 1.25rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid var(--surface-outline);
  color: var(--text-alt);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

[data-theme="dark"] .project-description {
  background: rgba(15, 23, 42, 0.58);
}

.project-tech-list {
  gap: 0.75rem;
  margin: 0.5rem 0 0;
}

.project-tech-list li {
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: var(--surface-soft);
  border: 1px solid var(--surface-outline);
  color: var(--text);
  font-size: 0.8rem;
}

.project-links {
  gap: 0.85rem;
  margin-top: 0.25rem;
}

.project-links a {
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--surface-soft);
  border: 1px solid var(--surface-outline);
  color: var(--text);
}

.project-image a {
  position: relative;
  max-width: none;
  aspect-ratio: 16 / 10;
  padding-top: 2.75rem;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    rgba(248, 250, 252, 0.95),
    rgba(226, 232, 240, 0.85)
  );
  border: 1px solid var(--surface-outline);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

[data-theme="dark"] .project-image a {
  background: linear-gradient(
    180deg,
    rgba(17, 24, 39, 0.95),
    rgba(15, 23, 42, 0.9)
  );
}

.project-image a::before {
  content: "";
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: #ff5f57;
  box-shadow: 1.05rem 0 0 #febc2e, 2.1rem 0 0 #28c840;
  z-index: 2;
}

.project-image a::after {
  content: "Live preview";
  position: absolute;
  top: 0.78rem;
  right: 1rem;
  z-index: 2;
  color: var(--text-alt);
  font-size: 0.8rem;
  font-family: "Fira Code", monospace;
}

.project-image iframe {
  position: absolute;
  inset: 2.75rem 0 0 0;
  width: 100%;
  height: calc(100% - 2.75rem);
  border: 0;
  background: #fff;
}

.contact {
  max-width: none;
}

.contact .container {
  max-width: 880px;
}

.contact-content {
  margin-top: 2rem;
  padding: clamp(1.8rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1.5rem;
  align-items: start;
}

.contact-copy {
  text-align: left;
}

.contact-content p {
  max-width: 52ch;
  margin: 0 0 1.5rem;
  color: var(--text-alt);
  font-size: 1.08rem;
}

.contact-direct {
  display: grid;
  gap: 0.85rem;
}

.contact-form {
  padding: 1.5rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.44);
  border: 1px solid var(--surface-outline);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

[data-theme="dark"] .contact-form {
  background: rgba(15, 23, 42, 0.46);
}

.contact-form .form-group {
  margin-bottom: 1.25rem;
}

.contact-form .form-group input,
.contact-form .form-group textarea {
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--surface-outline);
  border-radius: 16px;
}

[data-theme="dark"] .contact-form .form-group input,
[data-theme="dark"] .contact-form .form-group textarea {
  background: rgba(15, 23, 42, 0.72);
}

.contact-form .form-group textarea {
  resize: vertical;
  min-height: 160px;
}

.contact-form .form-group label {
  left: 1rem;
  top: 0.95rem;
}

.contact-form .form-group input:focus ~ label,
.contact-form .form-group input:not(:placeholder-shown) ~ label,
.contact-form .form-group textarea:focus ~ label,
.contact-form .form-group textarea:not(:placeholder-shown) ~ label {
  background: var(--card);
  border-radius: 999px;
}

.contact-cta {
  margin: 0;
}

.contact-social {
  margin-top: 2rem;
  gap: 1rem;
}

.footer {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.86),
    rgba(245, 248, 255, 0.96)
  );
  border-top: 1px solid var(--surface-outline);
}

[data-theme="dark"] .footer {
  background: linear-gradient(
    180deg,
    rgba(7, 10, 20, 0.94),
    rgba(11, 16, 32, 0.98)
  );
}

.footer-grid {
  gap: 1.5rem;
}

.footer-col {
  padding: 1.5rem;
  border-radius: 22px;
  background: var(--surface-soft);
  border: 1px solid var(--surface-outline);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.footer-title {
  margin-bottom: 1rem;
  color: var(--text);
}

.footer-text,
.footer-links a,
.footer-contact li,
.footer-contact a,
.footer-credit,
.footer-tagline {
  color: var(--text-alt);
}

.footer-links {
  display: grid;
  gap: 0.7rem;
}

.footer-contact {
  display: grid;
  gap: 0.85rem;
}

.footer-bottom {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--surface-outline);
}

.theme-toggle {
  width: 3.25rem;
  height: 3.25rem;
  background: var(--surface-soft);
  border: 1px solid var(--surface-outline);
  box-shadow: var(--panel-shadow);
}

.theme-toggle:hover {
  transform: translateY(-3px) scale(1.03);
}

@media (max-width: 992px) {
  .navbar {
    padding: 0 20px;
  }

  .home::before {
    right: 50%;
    transform: translateX(50%);
  }

  .hero-highlights {
    justify-content: center;
  }

  .featured-project {
    grid-template-columns: 1fr;
  }

  .featured-project .project-content,
  .featured-project .project-image,
  .featured-project:nth-child(odd) .project-content,
  .featured-project:nth-child(odd) .project-image,
  .featured-project:nth-child(even) .project-content,
  .featured-project:nth-child(even) .project-image {
    grid-column: 1 / -1 !important;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 18px;
  }

  .section-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(85vw, 400px);
    height: 100vh;
    background: var(--surface-glass);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-left: 1px solid var(--surface-outline);
    padding: 5rem 3rem;
    transition: right 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    gap: 2.5rem;
    align-items: flex-start;
  }

  .nav-link {
    font-size: 1.5rem;
    font-weight: 600;
  }

  .nav-toggle, .nav-close {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-close {
    position: absolute;
    top: 2rem;
    right: 2.5rem;
  }

  .hero-content,
  .contact-content,
  .journey-column {
    text-align: center;
  }

  .contact-content {
    grid-template-columns: 1fr;
  }

  .hero-content .title,
  .hero-description,
  .contact-content p {
    max-width: none;
  }

  .contact-copy {
    text-align: center;
  }

  .contact-item {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .hero-content h1 {
    font-size: clamp(2.5rem, 16vw, 3.6rem);
  }

  .status-pill,
  .hero-highlights span,
  .project-tech-list li {
    font-size: 0.75rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .project-image a::after {
    display: none;
  }

  .featured-project,
  .featured-projects,
  .skills-grid,
  .journey-container,
  .about-content,
  .contact-content {
    padding: 1rem;
  }

  .project-image a {
    padding-top: 2.35rem;
  }

  .project-image iframe {
    inset: 2.35rem 0 0 0;
    height: calc(100% - 2.35rem);
  }
}

/* --- Icon Enrichment --- */
.nav-logo,
.nav-link,
.section-subtitle,
.section-title,
.status-pill,
.hero-highlights span,
.skill-category h3,
.project-overline,
.project-title,
.project-tech-list li,
.footer-title,
.footer-links a,
.timeline-item h4,
.timeline-duration,
.contact-cta .btn {
  display: inline-flex;
  align-items: center;
}

.nav-logo {
  gap: 0.55rem;
}

.nav-logo i {
  font-size: 1rem;
  color: var(--primary-color);
}

.nav-link {
  gap: 0.45rem;
  white-space: nowrap;
}

.nav-link i {
  font-size: 0.82rem;
  color: var(--primary-color);
}

.section-subtitle {
  display: flex;
  width: fit-content;
  gap: 0.55rem;
}

.section-subtitle i {
  font-size: 0.85rem;
}

.section-title {
  display: flex;
  justify-content: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.section-title i {
  font-size: 0.8em;
  color: var(--primary-color);
}

.greeting {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.greeting i {
  font-size: 0.95rem;
}

.status-pill i {
  color: #22c55e;
  font-size: 0.95rem;
}

.hero-highlights span {
  gap: 0.55rem;
}

.hero-highlights span i {
  color: var(--primary-color);
  font-size: 0.9rem;
}

.skill-category h3 {
  display: flex;
  gap: 0.6rem;
}

.skill-category h3 i {
  color: var(--primary-color);
  font-size: 1rem;
}

.timeline-item h4 {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.timeline-item h4 i,
.timeline-duration i {
  color: var(--primary-color);
  font-size: 0.9rem;
}

.project-overline {
  gap: 0.5rem;
}

.project-overline i,
.project-title i {
  color: var(--primary-color);
}

.project-tech-list li {
  gap: 0.5rem;
}

.project-title,
.footer-title {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.project-tech-list li i {
  color: var(--primary-color);
  font-size: 0.9rem;
}

.footer-title {
  gap: 0.6rem;
}

.footer-title i {
  color: var(--primary-color);
}

.footer-links a {
  gap: 0.6rem;
}

.footer-links a i {
  width: 1rem;
  color: var(--primary-color);
}

@media (max-width: 768px) {
  .nav-link {
    gap: 0.65rem;
  }

  .section-title {
    flex-wrap: wrap;
  }
}

/* ============================================================
   SKILLS — Flat tag grid (replaces heavy category cards)
   ============================================================ */
.skills-flat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--surface-panel);
  border: 1px solid var(--surface-outline);
  border-radius: 28px;
  box-shadow: var(--panel-shadow);
}

.skill-group {
  padding: 1.25rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.44);
  border: 1px solid var(--surface-outline);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

[data-theme="dark"] .skill-group {
  background: rgba(15, 23, 42, 0.5);
}

.skill-group:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}

.skill-group-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-color);
  margin-bottom: 0.9rem;
  font-family: "Fira Code", monospace;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: var(--surface-soft);
  border: 1px solid var(--surface-outline);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 500;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
  position: relative;
  z-index: 2;
}

.skill-tag i {
  color: var(--primary-color);
  font-size: 0.88rem;
}

.skill-tag:hover {
  border-color: var(--primary-color);
  color: var(--primary-color) !important;
  background: var(--surface-soft);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.12);
  transform: translateY(-2px);
}

.skill-tag:hover i {
  color: var(--primary-color) !important;
}

.skill-tag:hover,
.skill-tag:focus-visible {
  opacity: 1 !important;
  visibility: visible !important;
}

[data-theme="dark"] .skill-tag:hover {
  box-shadow: 0 6px 18px rgba(139, 92, 246, 0.18);
}

/* ============================================================
   PROJECT PREVIEW — Lightweight placeholder (replaces iframes)
   ============================================================ */
.project-preview-link {
  display: block;
  width: 100%;
  text-decoration: none;
  border-radius: 22px;
  overflow: hidden;
}

.project-image a.project-preview-link {
  background: none;
  padding-top: 0;
  max-width: none;
  aspect-ratio: auto;
}

.project-image a.project-preview-link::before,
.project-image a.project-preview-link::after {
  display: none;
}

.project-preview-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 200px;
  padding: 2.5rem 1.5rem;
  border-radius: 22px;
  background: var(--surface-panel);
  border: 1px solid var(--surface-outline);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.1);
  transition: all 0.3s ease;
  text-align: center;
}

[data-theme="dark"] .project-preview-placeholder {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.project-preview-placeholder:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 64px rgba(15, 23, 42, 0.16);
  border-color: var(--primary-color);
}

.preview-icon {
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-color-alt));
  color: #fff;
  font-size: 1.4rem;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

[data-theme="dark"] .preview-icon {
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.35);
}

.preview-label {
  font-family: "Fira Code", monospace;
  font-size: 0.8rem;
  color: var(--text-alt);
  letter-spacing: 0.02em;
}

.preview-visit {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-color-alt));
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.25);
  transition: all 0.2s ease;
}

.project-preview-placeholder:hover .preview-visit {
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.4);
}

/* ============================================================
   MOBILE PERFORMANCE & DESIGN — phones only
   ============================================================ */
@media (max-width: 640px) {
  /* Disable expensive blobs on mobile */
  .blob {
    display: none;
  }

  /* Reduce section spacing */
  section {
    padding: clamp(3rem, 6vw, 5rem) 0;
  }

  /* Skills flat grid — single column on small phones */
  .skills-flat-grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
    padding: 1rem;
    border-radius: 20px;
  }

  .skill-group {
    padding: 1rem;
    border-radius: 16px;
  }

  /* Projects — single column, no 12-column grid */
  .featured-project {
    grid-template-columns: 1fr !important;
    padding: 1rem;
    border-radius: 18px;
    gap: 1rem;
  }

  .featured-project .project-content,
  .featured-project .project-image {
    grid-column: 1 / -1 !important;
  }

  .project-preview-placeholder {
    min-height: 160px;
    padding: 1.75rem 1rem;
    border-radius: 16px;
  }

  .preview-icon {
    width: 2.8rem;
    height: 2.8rem;
    font-size: 1.1rem;
  }

  .featured-projects {
    gap: 1rem;
    padding: 1rem;
    border-radius: 20px;
  }

  /* Hero — tighter on phone */
  .home {
    padding-top: calc(var(--header-height) + 1.5rem);
  }

  .hero-content h1 {
    font-size: clamp(2.2rem, 10vw, 3.4rem);
  }

  .hero-highlights {
    gap: 0.5rem;
  }

  .hero-highlights span {
    font-size: 0.78rem;
    padding: 0.55rem 0.85rem;
  }

  /* About — simpler layout */
  .about-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1rem;
    border-radius: 20px;
  }

  /* Journey — stack columns */
  .journey-container {
    flex-direction: column;
    padding: 1rem;
    border-radius: 20px;
    gap: 1rem;
  }

  .journey-column {
    padding: 1rem;
    border-radius: 16px;
  }

  /* Contact */
  .contact-content {
    grid-template-columns: 1fr;
    padding: 1rem;
    border-radius: 20px;
    gap: 1rem;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .footer-col {
    padding: 1rem;
    border-radius: 16px;
  }

  /* Reduce navbar padding */
  .navbar {
    padding: 0 1.5rem;
  }
}

/* Mobile Optimization - Disable Heavy Animations & Filters */
@media screen and (max-width: 768px) {
  body::before {
    animation: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  
  .blob, .blob-1, .blob-2, .blob-3 {
    display: none !important;
    animation: none !important;
  }
  
  .glass-card {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
    transform: none !important;
  }
  
  .glass-card:hover, .btn:hover, .skill-category:hover, .project-description:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15) !important;
  }
  
  .liquid-border::before {
    animation: none !important;
    filter: none !important;
  }
  
  .animated-shape {
    display: none !important;
  }
  
  .depth-effect, .transform-on-scroll {
    transform: none !important;
    transition: none !important;
  }
  
  .depth-effect:hover {
    transform: none !important;
  }

  /* Project previews: hide iframe on mobile, show placeholder */
  .project-iframe-wrapper,
  .desktop-only {
    display: none !important;
  }
  
  .project-preview-link.mobile-only,
  .mobile-only {
    display: block !important;
  }

  /* Phone: keep profile images colorful */
  .hero-image img,
  .hero-image-container img,
  .about-image img,
  .about-image-wrapper img {
    filter: none !important;
  }

  .about-image-wrapper::after {
    background: transparent !important;
  }
}

/* ============================================
   Project Preview: Desktop shows iframe, Mobile shows placeholder
   ============================================ */

/* Default: show iframe, hide mobile placeholder */
.desktop-only {
  display: block;
}

.mobile-only {
  display: none !important;
}

.project-iframe-wrapper {
  display: block;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  width: 100%;
  aspect-ratio: 16 / 10;
}

.project-preview-link.mobile-only {
  display: none !important;
}

.project-iframe-wrapper:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

/* Browser topbar with macOS-style dots */
.iframe-topbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  user-select: none;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.dot.r { background: #ff5f57; }
.dot.y { background: #ffbd2e; }
.dot.g { background: #28c840; }

.iframe-url {
  margin-left: 8px;
  font-size: 0.72rem;
  color: var(--text-alt);
  font-family: 'Fira Code', monospace;
  letter-spacing: 0.02em;
  opacity: 0.75;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-iframe-wrapper iframe {
  position: absolute;
  top: 33px; /* account for topbar height */
  left: 0;
  width: 250%; /* Force a large desktop viewport for the iframe */
  height: calc((100% - 33px) * 2.5);
  border: none;
  display: block;
  transform-origin: top left;
  transform: scale(0.4); /* Scale the 250% viewport down to 100% of container */
  pointer-events: none;
}

/* Transparent overlay — clicking opens site in a new tab */
.iframe-overlay-link {
  position: absolute;
  inset: 0;
  top: 30px;
  z-index: 2;
  cursor: pointer;
}

.iframe-overlay-link:hover::after {
  content: 'Open ↗';
  position: absolute;
  bottom: 12px;
  right: 14px;
  background: var(--primary);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  pointer-events: none;
  opacity: 0.92;
}

/* ============================================================
   PROJECT CARDS — Premium Redesign
   ============================================================ */
.projects-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
  margin-top: 2rem;
}

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  background: var(--surface-panel);
  border: 1px solid var(--surface-outline);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.33, 1, 0.68, 1),
              box-shadow 0.35s cubic-bezier(0.33, 1, 0.68, 1);
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 32px 72px rgba(15, 23, 42, 0.16);
}

[data-theme="dark"] .project-card {
  background: rgba(15, 23, 42, 0.55);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .project-card:hover {
  box-shadow: 0 32px 72px rgba(0, 0, 0, 0.45);
}

/* --- Project Visual Placeholders --- */
.project-preview-placeholder.project-card--monarch {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.15) 50%, rgba(167, 139, 250, 0.15) 100%);
  border-color: rgba(99, 102, 241, 0.2);
}
.project-preview-placeholder.project-card--orbit {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.15) 0%, rgba(56, 189, 248, 0.15) 50%, rgba(125, 211, 252, 0.15) 100%);
  border-color: rgba(14, 165, 233, 0.2);
}
.project-preview-placeholder.project-card--weather {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(251, 191, 36, 0.15) 50%, rgba(252, 211, 77, 0.15) 100%);
  border-color: rgba(245, 158, 11, 0.2);
}

[data-theme="dark"] .project-preview-placeholder.project-card--monarch {
  background: linear-gradient(135deg, rgba(67, 56, 202, 0.3) 0%, rgba(109, 40, 217, 0.3) 50%);
}
[data-theme="dark"] .project-preview-placeholder.project-card--orbit {
  background: linear-gradient(135deg, rgba(3, 105, 161, 0.3) 0%, rgba(2, 132, 199, 0.3) 50%);
}
[data-theme="dark"] .project-preview-placeholder.project-card--weather {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.3) 0%, rgba(245, 158, 11, 0.3) 50%);
}

.project-card__body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Live badge */
.project-card__badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.project-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.5rem;
  flex: 1;
}

.project-card__title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.project-card__desc {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-alt);
}

/* Tech pills */
.project-card__tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.25rem;
}

.project-card__tech span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  background: var(--surface-soft);
  border: 1px solid var(--surface-outline);
  color: var(--text);
  transition: all 0.2s ease;
}

.project-card__tech span:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.project-card__tech span i {
  font-size: 0.72rem;
  opacity: 0.7;
}

/* Action buttons */
.project-card__actions {
  display: flex;
  gap: 0.65rem;
  margin-top: auto;
  padding-top: 0.5rem;
}

.project-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1.15rem;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.33, 1, 0.68, 1);
  cursor: pointer;
}

.project-card__btn--primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-color-alt));
  color: #fff;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

.project-card__btn--primary:hover {
  box-shadow: 0 8px 28px rgba(37, 99, 235, 0.45);
  transform: translateY(-2px);
}

[data-theme="dark"] .project-card__btn--primary {
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
}

[data-theme="dark"] .project-card__btn--primary:hover {
  box-shadow: 0 8px 28px rgba(139, 92, 246, 0.45);
}

.project-card__btn--ghost {
  background: var(--surface-soft);
  border: 1px solid var(--surface-outline);
  color: var(--text);
}

.project-card__btn--ghost:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
}

.project-card__btn i {
  font-size: 0.78rem;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .projects-showcase {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .project-card__hero {
    height: 150px;
  }

  .project-card__icon {
    width: 3.5rem;
    height: 3.5rem;
    font-size: 1.3rem;
    border-radius: 16px;
  }
}

@media (max-width: 480px) {
  .project-card {
    border-radius: 18px;
  }

  .project-preview-placeholder {
    min-height: 160px;
  }

  .project-card__body {
    padding: 1.25rem;
    gap: 0.8rem;
  }

  .project-card__title {
    font-size: 1.15rem;
  }

  .project-card__actions {
    flex-direction: column;
  }

  .project-card__btn {
    justify-content: center;
  }
}

/* ============================================================
   UX Fixes: remove tilt hover + improve contact section
   ============================================================ */

/* Stop 3D tilt on hover (requested) */
.btn:hover,
.glass-card:hover,
.skill-category:hover,
.project-description:hover {
  transform: translateY(-4px) !important;
}

.skill-category,
.glass-card,
.project-description,
.btn {
  transform-style: flat;
}

/* Keep Skills heading visible and stable on hover interactions */
#skills .section-title {
  display: block;
  text-align: center;
  position: relative;
  z-index: 2;
}

#skills .skills-showcase,
#skills .skill-category,
#skills .skill-tag {
  overflow: visible;
}

#skills .skill-category::before {
  z-index: 0;
}

#skills .skill-category > * {
  position: relative;
  z-index: 1;
}

/* Contact redesign polish */
.contact-content {
  background: var(--surface-panel);
  border: 1px solid var(--surface-outline);
  border-radius: 28px;
  box-shadow: var(--panel-shadow);
}

.contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: var(--surface-soft);
  border: 1px solid var(--surface-outline);
  color: var(--primary-color);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.contact-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 0.4rem;
}

.contact-quick-actions .btn {
  min-width: 220px;
  justify-content: center;
}

.method-card {
  border-radius: 18px;
}

.method-card:hover {
  transform: translateY(-3px);
}

@media (max-width: 768px) {
  .contact-quick-actions {
    flex-direction: column;
  }

  .contact-quick-actions .btn {
    width: 100%;
    min-width: 0;
  }
}

/* Contact section redesign */
#contact .contact-content {
  margin-top: 2rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: stretch;
  background: var(--surface-panel);
  border: 1px solid var(--surface-outline);
  border-radius: 24px;
  box-shadow: var(--panel-shadow);
  position: relative;
  overflow: hidden;
  max-width: 100%;
}

#contact .contact-content::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 10%, rgba(37, 99, 235, 0.08), transparent 45%);
  pointer-events: none;
}

#contact .contact-info {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding: 1.25rem;
  border-radius: 18px;
  background: var(--surface-soft);
  border: 1px solid var(--surface-outline);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#contact .contact-title {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
  letter-spacing: -0.02em;
}

#contact .contact-description {
  margin: 0;
  color: var(--text-alt);
  font-size: 0.98rem;
  line-height: 1.7;
}

#contact .contact-points {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.35rem;
}

#contact .contact-point {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  max-width: 100%;
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  background: var(--surface-panel);
  border: 1px solid var(--surface-outline);
  color: var(--text);
  font-size: 0.9rem;
  text-decoration: none;
  overflow: hidden;
}

#contact .contact-point span {
  min-width: 0;
  overflow-wrap: anywhere;
}

#contact .contact-point i {
  color: var(--primary-color);
}

#contact .contact-social-links {
  margin-top: auto;
}

#contact .contact-form-container {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding: clamp(1rem, 2.5vw, 1.5rem);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.5);
  overflow: hidden;
}

[data-theme="dark"] #contact .contact-form-container {
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

#contact .contact-form {
  padding: 1rem;
  border-radius: 14px;
  background: transparent;
  border: none;
  box-shadow: none;
}

#contact .contact-form-head {
  margin-bottom: 0.6rem;
}

#contact .contact-form-head h3 {
  margin: 0 0 0.25rem;
  font-family: "Inter", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

#contact .contact-form-head p {
  margin: 0;
  font-size: 0.87rem;
  color: var(--text-alt);
}

[data-theme="dark"] #contact .contact-form-head p {
  color: #cbd5e1;
}

#contact .contact-form .form-group {
  margin-bottom: 1rem;
}

#contact .contact-form .form-group input,
#contact .contact-form .form-group textarea {
  width: 100%;
  max-width: 100%;
  border-radius: 12px;
  padding: 0.95rem 1rem;
}

#contact .contact-form .btn {
  width: 100%;
  justify-content: center;
}

@media (max-width: 900px) {
  #contact .contact-content {
    grid-template-columns: 1fr;
  }

  #contact .contact-info,
  #contact .contact-form-container {
    padding: 1rem;
  }
}

/* ══════════════════════════════════════════════════════════════
   CSS VARIABLE FIXES — define all previously-undefined tokens
══════════════════════════════════════════════════════════════ */
:root {
  /* Aliases for undefined vars used in older rules */
  --primary: var(--primary-color);
  --primary-alt: rgba(37, 99, 235, 0.15);
  --accent: var(--accent-color);
  --card: rgba(255,255,255,0.72);
  --border: rgba(15,23,42,0.1);
  --shadow: 0 4px 24px rgba(15,23,42,0.08);
  --gradient: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  --gradient-1: linear-gradient(135deg, #2563eb, #60a5fa);
  --gradient-2: linear-gradient(135deg, #8b5cf6, #a78bfa);
  --bg-dark: #0b0f1a;
  --text-gray: var(--text-alt);
  --text-light: var(--text-alt);
  --glass-border: rgba(255,255,255,0.15);
  --cubic-bezier: cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --card: rgba(11,15,26,0.75);
  --border: rgba(255,255,255,0.08);
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --gradient: linear-gradient(135deg, #8b5cf6, #a78bfa);
  --gradient-1: linear-gradient(135deg, #8b5cf6, #a78bfa);
  --gradient-2: linear-gradient(135deg, #6366f1, #818cf8);
  --glass-border: rgba(255,255,255,0.08);
  --primary-alt: rgba(139,92,246,0.2);
  --text-gray: #94a3b8;
  --text-light: #94a3b8;
}

/* ══════════════════════════════════════════════════════════════
   TECH STACK TABS — Skills Section Redesign
══════════════════════════════════════════════════════════════ */
.skills { padding: 6rem 0; }

.tech-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin: 2rem auto 2.5rem;
  background: var(--surface-soft);
  border: 1px solid var(--surface-outline);
  border-radius: 50px;
  padding: .4rem;
  width: fit-content;
  box-shadow: var(--panel-shadow);
}

.tech-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-alt);
  font-size: .95rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  padding: .6rem 1.8rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all .3s ease;
  position: relative;
}

.tech-tab-btn.active {
  background: var(--primary-color);
  color: #fff;
  box-shadow: 0 4px 15px rgba(37,99,235,.35);
}

[data-theme="dark"] .tech-tab-btn.active {
  background: var(--primary-color);
  box-shadow: 0 4px 15px rgba(139,92,246,.4);
}

.tech-tab-pane { display: none; animation: tabFadeIn .35s ease; }
.tech-tab-pane.active { display: block; }

@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.tech-skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.tech-skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  cursor: default;
}

.tech-skill-item span {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-alt);
  text-align: center;
  line-height: 1.3;
  transition: color .25s;
}

.tech-skill-item:hover span { color: var(--primary-color); }

.tech-skill-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--skill-color, #6366f1) 12%, transparent);
  border: 2px solid color-mix(in srgb, var(--skill-color, #6366f1) 30%, transparent);
  font-size: 1.85rem;
  color: var(--skill-color, var(--primary-color));
  transition: all .35s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 2px 16px color-mix(in srgb, var(--skill-color, #6366f1) 15%, transparent);
  position: relative;
  overflow: hidden;
}

.tech-skill-icon img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.tech-skill-item:hover .tech-skill-icon {
  transform: translateY(-6px) scale(1.1);
  background: var(--skill-color, var(--primary-color));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 14px 32px color-mix(in srgb, var(--skill-color, #6366f1) 45%, transparent);
}

[data-theme="dark"] .tech-skill-item:hover .tech-skill-icon {
  background: var(--skill-color, var(--primary-color));
  box-shadow: 0 12px 32px color-mix(in srgb, var(--skill-color, #8b5cf6) 45%, transparent);
}

.tech-skill-item:hover .tech-skill-icon img { filter: brightness(0) invert(1); }

@media (max-width: 600px) {
  .tech-skills-grid { grid-template-columns: repeat(auto-fill, minmax(80px,1fr)); gap: 1rem; }
  .tech-skill-icon { width: 58px; height: 58px; font-size: 1.4rem; }
  .tech-tabs { flex-wrap: wrap; border-radius: 16px; }
}

/* ══════════════════════════════════════════════════════════════
   PROJECT IMAGE SUPPORT
══════════════════════════════════════════════════════════════ */
.project-preview-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
  background: var(--bg-alt);
  max-height: 220px;
}

.project-preview-img {
  width: 100%;
  height: 100%;
  max-height: 220px;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}

.project-preview-link {
  display: block;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
}

.project-preview-link:hover .project-preview-img {
  transform: scale(1.05);
}

/* ══════════════════════════════════════════════════════════════
   SKELETON LOADERS
══════════════════════════════════════════════════════════════ */
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.skeleton-card { pointer-events: none; }

.skeleton-preview {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 16px 16px 0 0;
  background: linear-gradient(90deg, var(--bg-alt) 25%, var(--surface-soft) 50%, var(--bg-alt) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.skeleton-line {
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--bg-alt) 25%, var(--surface-soft) 50%, var(--bg-alt) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.skeleton-line.w60 { width: 60%; }
.skeleton-line.w80 { width: 80%; }
.skeleton-line.w100 { width: 100%; }
.skeleton-line.mt8 { margin-top: 8px; }
.skeleton-line.mt4 { margin-top: 4px; }

/* ── Contact form alerts ── */
.form-alert {
  padding: .85rem 1rem;
  border-radius: 10px;
  font-size: .88rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1rem;
  transition: opacity .4s ease;
}
.form-alert--success {
  background: rgba(16,185,129,.12);
  border: 1px solid rgba(16,185,129,.3);
  color: #34d399;
}
.form-alert--error {
  background: rgba(239,68,68,.12);
  border: 1px solid rgba(239,68,68,.3);
  color: #fca5a5;
}
.form-alert i { font-size: 1rem; }

/* ═══════════════════════════════════════════════════════════════════════
   CERTIFICATES & AWARDS SECTION
   ═══════════════════════════════════════════════════════════════════════ */

.certificates {
  padding: 6rem 0;
}

.certificates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.cert-card {
  padding: 1.5rem;
  border-radius: 16px;
  transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s ease;
  position: relative;
  overflow: hidden;
}

.cert-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 100%;
  border-radius: 16px 0 0 16px;
  background: linear-gradient(180deg, var(--primary-color) 0%, #a855f7 100%);
  opacity: 0;
  transition: opacity .3s ease;
}

.cert-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,.18);
}
.cert-card:hover::before { opacity: 1; }

.cert-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .75rem;
}

.cert-type {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .3rem .7rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}

.cert-type--certificate {
  background: rgba(59,130,246,.12);
  color: #60a5fa;
  border: 1px solid rgba(59,130,246,.25);
}

.cert-type--award {
  background: rgba(251,191,36,.12);
  color: #fbbf24;
  border: 1px solid rgba(251,191,36,.25);
}

.cert-date {
  font-size: .78rem;
  color: var(--text-alt);
  display: inline-flex;
  align-items: center;
  gap: .3rem;
}

.cert-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: .5rem;
}

.cert-card__meta {
  margin-bottom: .75rem;
}

.cert-issuer {
  font-size: .82rem;
  color: var(--text-alt);
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}

.cert-card__footer {
  padding-top: .75rem;
  border-top: 1px solid rgba(255,255,255,.06);
}

.cert-link {
  font-size: .82rem;
  font-weight: 600;
  color: var(--primary-color);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  transition: color .2s ease, gap .2s ease;
}
.cert-link:hover {
  color: #a855f7;
  gap: .55rem;
}

.hidden { display: none !important; }

@media (max-width: 640px) {
  .certificates-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .cert-card { padding: 1.15rem; }
}
