/* ============================================================
   PORTFOLIO — DESIGN SYSTEM
   Color Palette, Typography, Glassmorphism, Animations
   ============================================================ */
/* ---------- CSS CUSTOM PROPERTIES ---------- */
:root {
  /* Background hues */
  --bg-primary: #060608;
  --bg-secondary: #0c0c10;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.06);
  --bg-sidebar: rgba(8, 8, 12, 0.95);
  /* Accent gradient */
  --accent: #4a9eff;
  --accent-light: #6bb5ff;
  --accent-gradient: linear-gradient(135deg, #4a9eff, #6bb5ff);
  /* Ambient glow */
  --glow-blue: rgba(74, 158, 255, 0.12);
  --glow-pink: rgba(74, 158, 255, 0.08);
  /* Text */
  --text-primary: #e8e8ec;
  --text-secondary: rgba(232, 232, 236, 0.55);
  --text-muted: rgba(232, 232, 236, 0.3);
  /* Glass */
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-blur: 18px;
  /* Typography */
  --font-heading: "Playfair Display", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  /* Sidebar width */
  --sidebar-w: 280px;
  /* Transitions */
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- LIGHT THEME ---------- */
[data-theme="light"] {
  /* Background hues */
  --bg-primary: #f8f9fa;
  --bg-secondary: #ffffff;
  --bg-card: rgba(0, 0, 0, 0.03);
  --bg-card-hover: rgba(0, 0, 0, 0.06);
  --bg-sidebar: rgba(255, 255, 255, 0.95);

  /* Accent gradient */
  --accent: #2563eb;
  --accent-light: #3b82f6;
  --accent-gradient: linear-gradient(135deg, #2563eb, #60a5fa);

  /* Ambient glow */
  --glow-blue: rgba(37, 99, 235, 0.12);
  --glow-pink: rgba(37, 99, 235, 0.08);

  /* Text */
  --text-primary: #0f172a;
  --text-secondary: rgba(15, 23, 42, 0.7);
  --text-muted: rgba(15, 23, 42, 0.45);

  /* Glass */
  --glass-border: rgba(0, 0, 0, 0.08);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ============================================================
   ANIMATED BACKGROUND EFFECTS
   ============================================================ */
.bg-effects {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Floating gradient orbs */
.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(200px);
  opacity: 0.55;
  will-change: transform;
}

.bg-orb--1 {
  width: 750px;
  height: 750px;
  top: -15%;
  right: -10%;
  background: radial-gradient(circle,
      rgba(74, 158, 255, 0.7),
      rgba(40, 80, 180, 0.25) 60%,
      transparent);
  animation: orbFloat1 18s ease-in-out infinite;
}

.bg-orb--2 {
  width: 650px;
  height: 650px;
  bottom: -15%;
  left: -10%;
  background: radial-gradient(circle,
      rgba(107, 181, 255, 0.55),
      rgba(74, 130, 255, 0.15) 60%,
      transparent);
  animation: orbFloat2 22s ease-in-out infinite;
}

.bg-orb--3 {
  width: 500px;
  height: 500px;
  top: 40%;
  left: 30%;
  background: radial-gradient(circle,
      rgba(100, 180, 255, 0.4),
      transparent 65%);
  animation: orbFloat3 26s ease-in-out infinite;
}

/* Subtle dot grid overlay */
.bg-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle,
      rgba(255, 255, 255, 0.12) 1.2px,
      transparent 1.2px);
  background-size: 32px 32px;
}

/* Noise texture */
.bg-noise {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: repeating-conic-gradient(rgba(255, 255, 255, 0.08) 0% 25%,
      transparent 0% 50%);
  background-size: 4px 4px;
}

/* Vignette — darkens edges for depth */
.bg-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center,
      transparent 40%,
      rgba(0, 0, 0, 0.4) 100%);
}

@keyframes orbFloat1 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  25% {
    transform: translate(-60px, 40px) scale(1.08);
  }

  50% {
    transform: translate(-30px, 80px) scale(0.95);
  }

  75% {
    transform: translate(40px, 30px) scale(1.05);
  }
}

@keyframes orbFloat2 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  25% {
    transform: translate(50px, -50px) scale(1.1);
  }

  50% {
    transform: translate(80px, -20px) scale(0.92);
  }

  75% {
    transform: translate(20px, -60px) scale(1.06);
  }
}

@keyframes orbFloat3 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(-70px, -40px) scale(1.12);
  }

  66% {
    transform: translate(50px, 60px) scale(0.9);
  }
}

a {
  text-decoration: none;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

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

/* ---------- SCROLLBAR ---------- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* ============================================================
   FLOATING THEME TOGGLE
   ============================================================ */
.floating-theme-btn {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #febc2e;
  font-size: 1.25rem;
  cursor: pointer;
  z-index: 101;
  transition: all 0.3s var(--ease-smooth);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(254, 188, 46, 0.15);
}

.floating-theme-btn:hover {
  color: #ffcf54;
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 20px rgba(254, 188, 46, 0.25);
}

[data-theme="light"] .floating-theme-btn {
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-secondary);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .floating-theme-btn:hover {
  background: #ffffff;
  color: var(--accent);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* ============================================================
   ICON DOCK NAVIGATION
   ============================================================ */
.dock {
  position: fixed;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.6rem;
  background: rgba(18, 18, 22, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 22px;
  z-index: 100;
}

[data-theme="light"] .dock {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.dock-icon {
  position: relative;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: var(--text-muted);
  font-size: 1rem;
  transition: all 0.3s var(--ease-smooth);
  cursor: pointer;
}

.dock-icon:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.dock-icon.active {
  color: var(--accent-light);
  background: rgba(74, 158, 255, 0.1);
}

[data-theme="light"] .dock-icon.active {
  background: rgba(37, 99, 235, 0.1);
}

.dock-divider {
  width: 24px;
  height: 1px;
  background: var(--glass-border);
  margin: 4px 0;
}

/* Tooltip */
.dock-tooltip {
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(-6px);
  padding: 0.35rem 0.8rem;
  background: rgba(20, 20, 24, 0.95);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s var(--ease-smooth);
}

[data-theme="light"] .dock-tooltip {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.dock-icon:hover .dock-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.main-content {
  margin-left: 0;
  position: relative;
  z-index: 1;
}

.section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 4rem;
}

.section-content {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

/* ============================================================
   HERO / ABOUT SECTION
   ============================================================ */
.hero-heading {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.hero-line {
  display: block;
}

.hero-line.accent {
  color: var(--accent-light);
  font-style: italic;
}

/* Hero Name Wrapper — for hover image effect */
.hero-name-wrapper {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.hero-hover-image {
  position: absolute;
  top: 50%;
  right: -280px;
  transform: translateY(-50%) scale(0.8) rotate(-3deg);
  width: 240px;
  height: 300px;
  border-radius: 16px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.3s ease;
  z-index: 50;
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.6),
    0 0 40px rgba(74, 158, 255, 0.15);
  border: 2px solid rgba(74, 158, 255, 0.2);
}

.hero-name-wrapper:hover .hero-hover-image {
  opacity: 1;
  transform: translateY(-50%) scale(1) rotate(-2deg);
}

.hover-cycle-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-subtitle {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  margin-bottom: 3rem;
  position: relative;
  padding-left: 2.5rem;
}

.hero-subtitle::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 2rem;
  height: 2px;
  background: var(--accent-gradient);
}

/* About Grid */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
  align-items: center;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.about-text strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ============================================================
   HERO TWO-COLUMN LAYOUT & ANIMATED ILLUSTRATION
   ============================================================ */
.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-text-col {
  position: relative;
  z-index: 2;
}

/* ---- Animated Illustration Container ---- */
.hero-illustration {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- Code Editor Mockup ---- */
.hero-editor {
  position: relative;
  width: 80%;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(12, 12, 18, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(74, 158, 255, 0.06);
  z-index: 2;
  backdrop-filter: blur(12px);
}

.editor-topbar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .editor-topbar {
  background: rgba(0, 0, 0, 0.02);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.editor-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.editor-dot.red {
  background: #ff5f57;
}

.editor-dot.yellow {
  background: #febc2e;
}

.editor-dot.green {
  background: #28c840;
}

.editor-tab-name {
  margin-left: 0.6rem;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-muted);
  font-family: "Inter", monospace;
}

.editor-body {
  padding: 1rem 0.75rem;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.72rem;
  line-height: 1.65;
}

.code-line {
  color: var(--text-muted);
  white-space: nowrap;
}

.code-line .ln {
  display: inline-block;
  width: 1.6rem;
  text-align: right;
  margin-right: 0.8rem;
  color: rgba(255, 255, 255, 0.15);
  user-select: none;
}

[data-theme="light"] .code-line .ln {
  color: rgba(0, 0, 0, 0.25);
}

.code-line .kw {
  color: #c678dd;
}

.code-line .fn {
  color: #61afef;
}

.code-line .str {
  color: #98c379;
}

.code-line .dec {
  color: #e5c07b;
}

/* Blinking cursor */
.cursor-blink {
  color: var(--accent-light);
  animation: cursorBlink 1s step-end infinite;
}

@keyframes cursorBlink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* ---- Floating Tech Icons ---- */
.hero-float-icon {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  background: rgba(18, 18, 24, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  z-index: 3;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  transition:
    transform 0.3s var(--ease-smooth),
    box-shadow 0.3s var(--ease-smooth);
}

[data-theme="light"] .hero-float-icon {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.hero-float-icon:hover {
  transform: scale(1.2) !important;
  box-shadow: 0 12px 35px rgba(74, 158, 255, 0.25);
}

/* Icon positions & orbital animations */
.float-icon-1 {
  top: 5%;
  left: 10%;
  color: #dd0031;
  animation: floatOrbit1 6s ease-in-out infinite;
}

.float-icon-2 {
  top: 5%;
  right: 8%;
  color: #68217a;
  animation: floatOrbit2 7s ease-in-out infinite 0.5s;
}

.float-icon-3 {
  top: 40%;
  right: 0%;
  color: #f7df1e;
  animation: floatOrbit3 5.5s ease-in-out infinite 1s;
}

.float-icon-4 {
  bottom: 20%;
  right: 5%;
  color: #e44d26;
  animation: floatOrbit4 6.5s ease-in-out infinite 1.5s;
}

.float-icon-5 {
  bottom: 5%;
  right: 25%;
  color: #264de4;
  animation: floatOrbit5 7.5s ease-in-out infinite 0.3s;
}

.float-icon-6 {
  bottom: 5%;
  left: 15%;
  color: #4169e1;
  animation: floatOrbit6 6s ease-in-out infinite 2s;
}

.float-icon-7 {
  top: 40%;
  left: 0%;
  color: #6c63ff;
  animation: floatOrbit7 5s ease-in-out infinite 0.8s;
}

.float-icon-8 {
  bottom: 30%;
  left: 3%;
  color: #f05032;
  animation: floatOrbit8 7s ease-in-out infinite 1.2s;
}

@keyframes floatOrbit1 {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(12px, -18px);
  }
}

@keyframes floatOrbit2 {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(-15px, 14px);
  }
}

@keyframes floatOrbit3 {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(-20px, -10px);
  }
}

@keyframes floatOrbit4 {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(-12px, 18px);
  }
}

@keyframes floatOrbit5 {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(16px, 12px);
  }
}

@keyframes floatOrbit6 {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(14px, -16px);
  }
}

@keyframes floatOrbit7 {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(18px, 10px);
  }
}

@keyframes floatOrbit8 {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(-10px, -20px);
  }
}

/* Glow behind illustration */
.hero-illustration-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70%;
  height: 70%;
  border-radius: 50%;
  background: radial-gradient(circle,
      rgba(74, 158, 255, 0.15),
      transparent 70%);
  pointer-events: none;
  z-index: 1;
  animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {

  0%,
  100% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

.accent-text {
  color: var(--accent-light) !important;
}

/* CV Download Button */
.cv-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding: 0.7rem 1.6rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent-gradient);
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease-smooth);
  text-decoration: none;
}

.cv-btn:hover {
  box-shadow: 0 8px 30px rgba(74, 158, 255, 0.35);
  transform: translateY(-2px);
}

/* Profile Image */
.about-image {
  display: flex;
  justify-content: center;
}

.image-frame {
  width: 220px;
  height: 280px;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  background: var(--bg-card);
  backdrop-filter: blur(var(--glass-blur));
  overflow: hidden;
  position: relative;
}

.image-frame::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(160deg, rgba(74, 158, 255, 0.3), transparent 50%);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--text-muted);
  background: linear-gradient(135deg,
      rgba(74, 158, 255, 0.06),
      rgba(40, 80, 160, 0.06));
}

/* Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 1.75rem;
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  transition: all 0.4s var(--ease-smooth);
  position: relative;
  overflow: hidden;
}

.bento-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.1),
      transparent);
}

.bento-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.bento-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.bento-card p {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.bento-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: #fff;
  margin-bottom: 1rem;
}

.bento-passion {
  grid-column: span 2;
}

/* Skill Chips */
.skill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  background: rgba(74, 158, 255, 0.1);
  border: 1px solid rgba(74, 158, 255, 0.2);
  color: var(--accent-light);
}

/* Stats */
.stats-row {
  display: flex;
  gap: 1.5rem;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-light);
}

.stat-label {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ============================================================
   ABOUT ME SECTION
   ============================================================ */
.aboutme-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3rem;
  align-items: start;
}

/* Photo Column */
.aboutme-photo-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.aboutme-photo-frame {
  position: relative;
  width: 260px;
  height: 320px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: var(--bg-card);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 50px rgba(74, 158, 255, 0.08);
  transition: all 0.5s var(--ease-smooth);
}

.aboutme-photo-frame:hover {
  transform: translateY(-6px);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.5),
    0 0 70px rgba(74, 158, 255, 0.15);
  border-color: rgba(74, 158, 255, 0.25);
}

.aboutme-photo-frame::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 22px;
  padding: 1px;
  background: linear-gradient(160deg, rgba(74, 158, 255, 0.4), transparent 50%);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: 2;
}

.aboutme-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.aboutme-photo-glow {
  position: absolute;
  bottom: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 200%;
  height: 60%;
  background: radial-gradient(ellipse,
      rgba(74, 158, 255, 0.2),
      transparent 70%);
  pointer-events: none;
}

/* Availability Status */
.aboutme-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.1rem;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 500;
  color: #4ade80;
  letter-spacing: 0.02em;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {

  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5);
  }

  50% {
    opacity: 0.7;
    box-shadow: 0 0 0 6px rgba(74, 222, 128, 0);
  }
}

/* Info Column */
.aboutme-info-col {
  padding-top: 0.5rem;
}

.aboutme-name {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.aboutme-role {
  color: var(--accent-light);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  letter-spacing: 0.03em;
}

.aboutme-bio {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.75;
  margin-bottom: 2rem;
}

/* Details Grid */
.aboutme-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.aboutme-detail {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  transition: all 0.3s var(--ease-smooth);
}

.aboutme-detail:hover {
  background: var(--bg-card-hover);
  border-color: rgba(74, 158, 255, 0.15);
  transform: translateY(-2px);
}

.aboutme-detail i {
  font-size: 1rem;
  color: var(--accent-light);
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.aboutme-detail div {
  display: flex;
  flex-direction: column;
}

.detail-label {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.detail-value {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
}

/* Philosophy Quote */
.aboutme-philosophy {
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-left: 3px solid var(--accent);
  border-radius: 0 14px 14px 0;
  position: relative;
}

.aboutme-quote-icon {
  font-size: 1.2rem;
  color: var(--accent);
  opacity: 0.3;
  margin-bottom: 0.5rem;
  display: block;
}

.aboutme-philosophy p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-style: italic;
  line-height: 1.7;
}

/* ============================================================
   SKILLS SECTION
   ============================================================ */
.skills-showcase {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.skills-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.skills-group-label {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.skills-group-label i {
  font-size: 0.75rem;
  color: var(--accent-light);
}

.skills-tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.skill-tile {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.1rem;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  transition: all 0.35s var(--ease-smooth);
  cursor: default;
}

.skill-tile:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

.skill-tile i {
  font-size: 1.3rem;
  transition: transform 0.3s var(--ease-smooth);
}

.skill-tile:hover i {
  transform: scale(1.15);
}

.skill-tile span {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
}

/* ============================================================
   SECTION HEADINGS (Shared)
   ============================================================ */
.section-heading {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  position: relative;
}

.section-heading::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background: var(--accent-gradient);
  border-radius: 3px;
  margin-top: 0.75rem;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 3rem;
}

/* ============================================================
   PROJECTS SECTION
   ============================================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s var(--ease-smooth);
  position: relative;
}

.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.08),
      transparent);
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(74, 158, 255, 0.2);
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(74, 158, 255, 0.05);
}

.project-card-image {
  width: 100%;
  height: 180px;
  overflow: hidden;
  position: relative;
}

.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-smooth);
}

.project-card:hover .project-card-image img {
  transform: scale(1.08);
}

.project-card-image .project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      transparent 40%,
      rgba(10, 14, 26, 0.85) 100%);
}

.project-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.project-card-body h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.project-card-body p {
  color: var(--text-secondary);
  font-size: 0.8rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-card-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.project-card-tech span {
  padding: 0.25rem 0.65rem;
  border-radius: 15px;
  font-size: 0.65rem;
  font-weight: 600;
  background: rgba(74, 158, 255, 0.08);
  border: 1px solid rgba(74, 158, 255, 0.18);
  color: var(--accent-light);
  letter-spacing: 0.03em;
}

.project-card-footer {
  padding: 0 1.5rem 1.25rem;
  display: flex;
  justify-content: flex-end;
}

.read-more-btn {
  border: none;
  background: none;
  color: var(--accent-light);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  transition: gap 0.3s var(--ease-smooth);
}

.read-more-btn:hover {
  gap: 0.7rem;
}

.read-more-btn i {
  font-size: 0.7rem;
  transition: transform 0.3s var(--ease-smooth);
}

.project-card:hover .read-more-btn i {
  transform: translateX(3px);
}

/* ============================================================
   PROJECT DETAIL MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 15, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s var(--ease-smooth);
}

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

.modal-container {
  width: 90vw;
  max-width: 950px;
  max-height: 85vh;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  transform: scale(0.92) translateY(30px);
  transition: transform 0.45s var(--ease-smooth);
}

.modal-overlay.active .modal-container {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.3s var(--ease-smooth);
}

.modal-close:hover {
  background: rgba(74, 158, 255, 0.1);
  border-color: var(--accent);
  color: var(--accent-light);
}

.modal-overlay.active .animate-modal-content {
  opacity: 1;
  transform: translateY(0);
}

.modal-body-new {
  height: 100%;
  max-height: 85vh;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  /* Custom scrollbar for modal */
  scrollbar-width: thin;
  scrollbar-color: rgba(74, 158, 255, 0.3) transparent;
}

.modal-body-new::-webkit-scrollbar {
  width: 6px;
}

.modal-body-new::-webkit-scrollbar-thumb {
  background: rgba(74, 158, 255, 0.3);
  border-radius: 6px;
}

/* ---- Hero Image Area ---- */
.modal-hero {
  width: 100%;
  position: relative;
  background: var(--bg-card);
}

.modal-carousel {
  width: 100%;
  height: 400px;
  /* Taller hero image */
  background: var(--bg-secondary);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.modal-carousel .modal-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.35s var(--ease-smooth);
}

.carousel-dots {
  position: absolute;
  bottom: 4.5rem;
  /* Lifted up so it's not hidden behind the floating card */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.75rem;
  z-index: 50;
  /* Ensure it stays above everything in the hero */
  background: rgba(0, 0, 0, 0.4);
  padding: 0.5rem 1rem;
  border-radius: 30px;
  backdrop-filter: blur(8px);
}

.modal-thumb {
  width: 45px;
  height: 35px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.6;
  transition: all 0.3s var(--ease-smooth);
}

.modal-thumb:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.modal-thumb.active {
  opacity: 1;
  border-color: var(--accent-light);
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.modal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---- Floating Info Card ---- */
.modal-header-card {
  position: relative;
  margin: -4rem auto 2rem;
  /* Pulls it up over the hero image */
  width: 90%;
  background: rgba(18, 18, 24, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;

  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.5s ease 0.1s,
    transform 0.5s ease 0.1s;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.modal-category {
  font-size: 0.95rem;
  color: var(--accent-light);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.modal-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ---- Content Area Below ---- */
.modal-content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  padding: 1rem 3rem 4rem;

  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.5s ease 0.2s,
    transform 0.5s ease 0.2s;
}

.modal-label {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.modal-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--glass-border), transparent);
}

.modal-description {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ---- Challenge / Action / Result ---- */
.modal-car-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--glass-border);
}

.modal-car-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-left: 3px solid transparent;
  transition: all 0.3s var(--ease-smooth);
}

.modal-car-item:hover {
  background: rgba(255, 255, 255, 0.04);
  transform: translateX(4px);
}

.modal-car-item:nth-child(1) {
  border-left-color: #f59e0b;
}

.modal-car-item:nth-child(2) {
  border-left-color: #4a9eff;
}

.modal-car-item:nth-child(3) {
  border-left-color: #34d399;
}

.modal-car-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
  color: #fff;
}

.modal-car-icon.challenge {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.modal-car-icon.action {
  background: linear-gradient(135deg, #4a9eff, #2850a0);
}

.modal-car-icon.result {
  background: linear-gradient(135deg, #34d399, #059669);
}

.modal-car-label {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.3rem;
}

.modal-car-item:nth-child(1) .modal-car-label {
  color: #fbbf24;
}

.modal-car-item:nth-child(2) .modal-car-label {
  color: var(--accent-light);
}

.modal-car-item:nth-child(3) .modal-car-label {
  color: #34d399;
}

.modal-car-text {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

.modal-sidebar-col {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.modal-features {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.modal-features li {
  color: var(--text-secondary);
  font-size: 0.85rem;
  padding: 0.3rem 0;
  padding-left: 1.2rem;
  position: relative;
}

.modal-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.modal-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.modal-tech-chip {
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.modal-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.2rem;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--glass-border);
  background: var(--bg-card);
  color: var(--text-primary);
  transition: all 0.3s var(--ease-smooth);
}

.modal-link:hover {
  background: var(--accent-gradient);
  border-color: var(--accent);
  color: #fff;
}

.modal-link i {
  font-size: 0.75rem;
}

/* ============================================================
   EXPERIENCE / TIMELINE  — Centered Alternating Layout
   ============================================================ */
.section-experience .section-content {
  max-width: 1000px;
}

.timeline {
  position: relative;
  padding: 0;
}

/* Center vertical line */
.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg,
      var(--accent) 0%,
      rgba(74, 158, 255, 0.1) 100%);
}

.timeline-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  margin-bottom: 3rem;
  width: 100%;
}

/* ---- Node in the center ---- */
.timeline-node {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 2rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--accent-light);
  z-index: 2;
  box-shadow: 0 0 20px rgba(74, 158, 255, 0.2);
}

/* ---- Card base ---- */
.timeline-card {
  width: calc(50% - 45px);
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.75rem;
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  transition: all 0.4s var(--ease-smooth);
  position: relative;
}

.timeline-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.06),
      transparent);
}

.timeline-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(74, 158, 255, 0.15);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.3);
}

/* ---- Right-side card (odd items — default) ---- */
.timeline-item:nth-child(odd) {
  justify-content: flex-end;
}

.timeline-item:nth-child(odd) .timeline-card {
  margin-left: auto;
  margin-right: 0;
}

.timeline-item:nth-child(odd) .timeline-card:hover {
  transform: translateX(6px);
}

/* ---- Left-side card (even items) ---- */
.timeline-item:nth-child(even) {
  justify-content: flex-start;
}

.timeline-item:nth-child(even) .timeline-card {
  margin-left: 0;
  margin-right: auto;
}

.timeline-item:nth-child(even) .timeline-card:hover {
  transform: translateX(-6px);
}

/* ---- Shared card inner styles ---- */
.timeline-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.timeline-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg-card-hover);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.timeline-info h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
}

.timeline-info .role {
  color: var(--accent-light);
  font-size: 0.8rem;
  font-weight: 500;
}

.timeline-date {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--bg-card-hover);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.timeline-tasks {
  list-style: none;
}

.timeline-tasks li {
  color: var(--text-secondary);
  font-size: 0.82rem;
  padding: 0.25rem 0;
  padding-left: 1rem;
  position: relative;
}

.timeline-tasks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

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

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 2rem 1.75rem;
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  transition: all 0.45s var(--ease-smooth);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.06),
      transparent);
}

.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: radial-gradient(circle at 30% 20%,
      rgba(74, 158, 255, 0.04),
      transparent 60%);
  opacity: 0;
  transition: opacity 0.45s var(--ease-smooth);
  pointer-events: none;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(74, 158, 255, 0.2);
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.35),
    0 0 40px rgba(74, 158, 255, 0.06);
}

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

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
  transition: transform 0.4s var(--ease-smooth);
}

.service-card:hover .service-icon {
  transform: scale(1.1);
}

.service-icon.icon-web {
  background: linear-gradient(135deg, #4a9eff, #2850a0);
}

.service-icon.icon-frontend {
  background: linear-gradient(135deg, #6bb5ff, #4a9eff);
}

.service-icon.icon-backend {
  background: linear-gradient(135deg, #34d399, #059669);
}

.service-icon.icon-api {
  background: linear-gradient(135deg, #a78bfa, #7c3aed);
}

.service-icon.icon-responsive {
  background: linear-gradient(135deg, #f472b6, #db2777);
}

.service-icon.icon-performance {
  background: linear-gradient(135deg, #fbbf24, #d97706);
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  position: relative;
  z-index: 1;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}

.service-features {
  list-style: none;
  position: relative;
  z-index: 1;
}

.service-features li {
  color: var(--text-secondary);
  font-size: 0.78rem;
  padding: 0.3rem 0;
  padding-left: 1.2rem;
  position: relative;
}

.service-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* ============================================================
   PRICING SECTION
   ============================================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 22px;
  padding: 2.5rem 2rem;
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  transition: all 0.45s var(--ease-smooth);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.pricing-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.06),
      transparent);
}

.pricing-card:hover {
  transform: translateY(-8px);
  border-color: rgba(74, 158, 255, 0.15);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
}

/* Popular / featured plan */
.pricing-card.popular {
  border-color: rgba(74, 158, 255, 0.3);
  background: rgba(74, 158, 255, 0.04);
  box-shadow: 0 0 60px rgba(74, 158, 255, 0.08);
  transform: scale(1.04);
}

.pricing-card.popular:hover {
  transform: scale(1.04) translateY(-8px);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.4),
    0 0 60px rgba(74, 158, 255, 0.12);
}

.pricing-badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--accent-gradient);
  color: #fff;
}

.pricing-tier {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 0.5rem;
}

.pricing-price {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  line-height: 1.1;
}

.pricing-price .currency {
  font-size: 1.2rem;
  vertical-align: super;
  margin-right: 0.15rem;
  font-weight: 600;
}

.pricing-price .period {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-muted);
}

.pricing-desc {
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--glass-border);
}

.pricing-features {
  list-style: none;
  margin-bottom: 2rem;
  flex: 1;
}

.pricing-features li {
  color: var(--text-secondary);
  font-size: 0.82rem;
  padding: 0.45rem 0;
  padding-left: 1.6rem;
  position: relative;
}

.pricing-features li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 0.5rem;
  font-size: 0.65rem;
  color: var(--accent-light);
}

.pricing-features li.disabled {
  color: var(--text-muted);
}

.pricing-features li.disabled::before {
  content: "\f00d";
  color: var(--text-muted);
}

.pricing-cta {
  display: block;
  width: 100%;
  padding: 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: var(--bg-card-hover);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.35s var(--ease-smooth);
  text-decoration: none;
}

.pricing-cta:hover {
  background: rgba(74, 158, 255, 0.1);
  border-color: rgba(74, 158, 255, 0.3);
  color: var(--accent-light);
  box-shadow: 0 8px 30px rgba(74, 158, 255, 0.1);
}

.pricing-card.popular .pricing-cta {
  background: var(--accent-gradient);
  border-color: transparent;
  color: #fff;
}

.pricing-card.popular .pricing-cta:hover {
  box-shadow: 0 12px 35px rgba(74, 158, 255, 0.3);
  transform: translateY(-2px);
}

/* ============================================================
   CUSTOM PLAN BUILDER
   ============================================================ */
.custom-plan {
  margin-top: 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 22px;
  padding: 2.5rem;
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  position: relative;
  overflow: hidden;
}

.custom-plan::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-gradient);
  opacity: 0.6;
}

.custom-plan-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--glass-border);
  flex-wrap: wrap;
  gap: 1.5rem;
}

.custom-plan-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.custom-plan-subtitle {
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.custom-plan-total {
  text-align: right;
}

.custom-plan-total-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.custom-plan-total .pricing-price {
  font-size: 2.4rem;
  color: var(--accent-light);
  transition: all 0.3s var(--ease-smooth);
}

/* Price bump animation */
.price-bump {
  animation: priceBump 0.3s var(--ease-smooth);
}

@keyframes priceBump {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.15);
  }

  100% {
    transform: scale(1);
  }
}

/* Feature Grid */
.custom-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 2rem;
}

/* Individual Feature Toggle */
.custom-feature {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.3s var(--ease-smooth);
  user-select: none;
}

.custom-feature:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(74, 158, 255, 0.15);
  transform: translateY(-1px);
}

.custom-feature:has(.custom-feature-cb:checked) {
  background: rgba(74, 158, 255, 0.06);
  border-color: rgba(74, 158, 255, 0.25);
}

.custom-feature-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.custom-feature-left i {
  font-size: 0.9rem;
  color: var(--accent-light);
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.custom-feature-text {
  font-size: 0.82rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.custom-feature:has(.custom-feature-cb:checked) .custom-feature-text {
  color: var(--text-primary);
}

.custom-feature-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.custom-feature-price {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  font-family: var(--font-body);
}

.custom-feature:has(.custom-feature-cb:checked) .custom-feature-price {
  color: var(--accent-light);
}

/* Hide default checkbox */
.custom-feature-cb {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Custom Toggle Switch */
.custom-toggle {
  position: relative;
  width: 38px;
  height: 22px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s var(--ease-smooth);
  flex-shrink: 0;
}

.custom-toggle::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transition: all 0.3s var(--ease-smooth);
}

.custom-feature-cb:checked+.custom-toggle {
  background: var(--accent-gradient);
  border-color: transparent;
}

.custom-feature-cb:checked+.custom-toggle::after {
  left: 19px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

/* Custom CTA */
.custom-plan-cta {
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.custom-plan-cta.active {
  background: var(--accent-gradient);
  border-color: transparent;
  color: #fff;
}

.custom-plan-cta.active:hover {
  box-shadow: 0 12px 35px rgba(74, 158, 255, 0.3);
  transform: translateY(-2px);
}

/* ============================================================
   TESTIMONIALS SECTION
   ============================================================ */
.testimonial-view-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.testimonial-main {
  width: 100%;
  min-height: 250px;
  position: relative;
}

.testimonial-card-single {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: scale(0.98);
  pointer-events: none;
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

.testimonial-card-single:hover {
  transform: translateY(-6px);
  border-color: rgba(74, 158, 255, 0.2);
  box-shadow:
    0 30px 30px rgba(0, 0, 0, 0.35),
    0 0 40px rgba(74, 158, 255, 0.06);
}

.testimonial-card-single.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  position: relative;
}

.testimonial-card-single::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
      transparent,
      rgba(74, 158, 255, 0.4),
      transparent);
}

.testimonial-thumbnails {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.testimonial-thumb-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  font-size: 1rem;
  opacity: 0.5;
  transition: all 0.3s var(--ease-smooth);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.testimonial-thumb-btn:hover {
  opacity: 0.8;
  transform: translateY(-3px);
}

.testimonial-thumb-btn.active {
  opacity: 1;
  transform: scale(1.15);
  border-color: var(--accent-light);
  box-shadow: 0 8px 20px rgba(74, 158, 255, 0.3);
}

.testimonial-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: radial-gradient(circle at 80% 10%,
      rgba(74, 158, 255, 0.05),
      transparent 60%);
  opacity: 0;
  transition: opacity 0.7s var(--ease-smooth);
  pointer-events: none;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  border-color: rgba(74, 158, 255, 0.2);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.35),
    0 0 40px rgba(74, 158, 255, 0.06);
}

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

.testimonial-quote-icon {
  font-size: 1.6rem;
  color: var(--accent);
  opacity: 0.25;
  margin-bottom: 1rem;
}

.testimonial-stars {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
  font-size: 0.8rem;
}

.testimonial-text {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
  font-style: italic;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  position: relative;
  z-index: 1;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: 0.04em;
}

.testimonial-info h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.testimonial-info span {
  font-size: 0.78rem;
  color: var(--accent-light);
  font-weight: 500;
}

.testimonial-author a:hover {
  color: var(--accent-light);
  border-bottom: 2px solid var(--accent-light);
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.section-contact {
  min-height: auto;
  padding-bottom: 8rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  transition: all 0.4s var(--ease-smooth);
}

.contact-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(74, 158, 255, 0.15);
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.contact-card i {
  font-size: 1.2rem;
  color: var(--accent-light);
}

.contact-card span {
  font-size: 0.85rem;
  font-weight: 500;
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.animate-in {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.7s var(--ease-smooth),
    transform 0.7s var(--ease-smooth);
}

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

/* Stagger children */
.animate-in:nth-child(2) {
  transition-delay: 0.1s;
}

.animate-in:nth-child(3) {
  transition-delay: 0.2s;
}

.animate-in:nth-child(4) {
  transition-delay: 0.3s;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .section {
    padding: 4rem 2.5rem;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-illustration {
    max-width: 360px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-image {
    order: -1;
  }

  .image-frame {
    width: 180px;
    height: 220px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .aboutme-layout {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .aboutme-info-col {
    text-align: left;
  }

  .aboutme-photo-frame {
    width: 220px;
    height: 270px;
  }

  .modal-container {
    height: 90vh;
    max-height: none;
    align-self: flex-end;
    transform: translateY(100%);
    border-radius: 24px 24px 0 0;
  }

  .modal-overlay.active .modal-container {
    transform: translateY(0);
  }

  .modal-content-grid {
    grid-template-columns: 1fr;
    padding: 1rem 1.5rem 4rem;
    gap: 2rem;
  }

  .modal-header-card {
    padding: 1.5rem 1rem;
    width: 95%;
    margin-top: -3rem;
  }

  .modal-title {
    font-size: 1.6rem;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 4rem 1.25rem;
  }

  /* Dock becomes bottom horizontal bar on mobile */
  .dock {
    left: 50%;
    top: auto;
    bottom: 1rem;
    transform: translateX(-50%);
    flex-direction: row;
    border-radius: 18px;
    max-width: calc(100vw - 2rem);
    padding: 0.4rem;
    gap: 0.15rem;
  }

  .dock-divider {
    width: 1px;
    height: 24px;
    margin: 0 4px;
  }

  .dock-icon {
    width: 36px;
    height: 36px;
    font-size: 0.85rem;
    border-radius: 10px;
  }

  .dock-tooltip {
    display: none;
  }

  .hero-hover-image {
    display: none;
  }

  .hero-layout {
    grid-template-columns: 1fr;
  }

  .hero-illustration {
    display: none;
  }

  .bento-grid {
    grid-template-columns: 1fr;
  }

  .bento-passion {
    grid-column: span 1;
  }

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

  .hero-heading {
    font-size: clamp(2.2rem, 10vw, 3.5rem);
  }

  .modal-container {
    width: 95vw;
    max-height: 90vh;
  }

  .modal-body {
    grid-template-columns: 1fr;
    max-height: 90vh;
    overflow-y: auto;
  }

  .modal-carousel {
    aspect-ratio: 16/10;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

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

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .custom-plan {
    padding: 1.5rem;
  }

  .custom-features-grid {
    grid-template-columns: 1fr;
  }

  .custom-plan-header {
    flex-direction: column;
  }

  .custom-plan-total {
    text-align: left;
  }

  .aboutme-details-grid {
    grid-template-columns: 1fr;
  }

  .aboutme-photo-frame {
    width: 200px;
    height: 250px;
  }

  .pricing-card.popular {
    transform: none;
  }

  .pricing-card.popular:hover {
    transform: translateY(-8px);
  }

  /* Collapse timeline to single column left-aligned */
  .timeline::before {
    left: 16px;
    transform: none;
  }

  .timeline-node {
    left: 16px;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    font-size: 0.7rem;
  }

  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    justify-content: flex-end;
  }

  .timeline-item:nth-child(odd) .timeline-card,
  .timeline-item:nth-child(even) .timeline-card {
    width: calc(100% - 50px);
    margin-left: auto;
    margin-right: 0;
  }

  .timeline-item:nth-child(even) .timeline-card:hover {
    transform: translateX(6px);
  }
}

@media (max-width: 480px) {
  .section {
    padding: 3rem 0.75rem 2.5rem;
  }

  .section-contact {
    padding-bottom: 90px;
  }

  .dock {
    padding: 0.3rem;
    gap: 0.1rem;
    bottom: 0.5rem;
  }

  .dock-icon {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
    border-radius: 8px;
  }

  .stats-row {
    flex-wrap: wrap;
  }
}

.stats-row {
  flex-wrap: wrap;
}