/* ============================================
   Portfolio — Bold · Shapes · No Emojis
   ============================================ */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-deep: #030305;
  --bg-glass: rgba(18, 18, 24, 0.65);
  --bg-glass-hover: rgba(26, 26, 34, 0.8);
  --border-glass: rgba(255, 255, 255, 0.11);
  --border-glass-hover: rgba(255, 255, 255, 0.24);
  --text: #ffffff;
  --text-dim: #e4e4eb;
  --text-muted: #9090a8;
  --font-sans: 'Inter', -apple-system, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow-card: 0 8px 36px rgba(0,0,0,0.6);
  --shadow-hover: 0 16px 56px rgba(0,0,0,0.85);

  /* Theme-specific variables added for premium light/dark styling */
  --bg-modal: rgba(4, 4, 6, 0.98);
  --bg-overlay: rgba(0, 0, 0, 0.7);
  --shadow-modal: 0 24px 80px rgba(0,0,0,0.85);
  --shadow-inner-card: 0 10px 30px rgba(0,0,0,0.4);
  --shadow-diploma-card: 0 10px 40px rgba(0,0,0,0.3);
  --shadow-bento-hover: 0 5px 25px rgba(0,0,0,0.3);
  --bg-card-glow: rgba(8, 8, 12, 0.5);
  --bg-card-glow-hover: rgba(12, 12, 18, 0.7);
  --clock-bg: rgba(255, 255, 255, 0.03);
  --clock-border: rgba(255, 255, 255, 0.05);
  --close-btn-bg: rgba(255,255,255,0.05);
  --close-btn-bg-hover: rgba(255,255,255,0.1);
  --card-spotlight: rgba(255, 255, 255, 0.06);
  --opacity-blob: 0.42;
  --mix-blend-blob: screen;
  --scrollbar-thumb: rgba(255,255,255,0.06);
  --avatar-bg: rgba(10, 10, 15, 0.9);
  --title-gradient: linear-gradient(135deg, #ffffff, #e4e4eb);
  --avatar-text-gradient: linear-gradient(135deg, #ffffff, #065f46);
  --panel-row-border: rgba(255, 255, 255, 0.04);

  /* Bento borders */
  --bento-gold-border: rgba(251, 191, 36, 0.15);
  --bento-blue-border: rgba(59, 130, 246, 0.15);
  --bento-teal-border: rgba(45, 212, 191, 0.15);
  --bento-pink-border: rgba(236, 72, 153, 0.15);

  /* ===== Shape opacity variables (dark mode = 20% more saturated) ===== */
  --shape-hero-border: 0.43;
  --shape-hero-ring: 0.36;
  --shape-hero-dots: 0.50;
  --shape-hero-line1: 0.70;
  --shape-hero-line2: 0.50;

  --shape-services-grid: 0.36;
  --shape-services-circle: 0.29;
  --shape-services-bar: 0.50;

  --shape-contact-wave: 0.41;
  --shape-contact-wave-inner: 0.29;
  --shape-contact-circle: 0.36;

  --shape-exp-timeline: 0.64;
  --shape-exp-dots: 0.43;
  --shape-exp-ring: 0.41;

  --shape-skills-radial: 0.29;
  --shape-skills-cross: 0.50;
  --shape-skills-triangle: 0.36;

  --shape-edu-stripes: 0.16;
  --shape-edu-circle: 0.36;
  --shape-edu-corner: 0.43;

  /* Experience modal accent */
  --exp-accent: #2dd4bf;
  --exp-accent-rgb: 45, 212, 191;
}

:root[data-theme="light"] {
  --bg-deep: #ffffff;
  --bg-glass: #ffffff;
  --bg-glass-hover: #ffffff;
  --border-glass: rgba(0, 0, 0, 0.07);
  --border-glass-hover: rgba(0, 0, 0, 0.15);
  --text: #0b0a0f;
  --text-dim: #313038;
  --text-muted: #646273;
  --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.03), 0 2px 6px rgba(0, 0, 0, 0.01);
  --shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.07), 0 4px 12px rgba(0, 0, 0, 0.02);

  --bg-modal: rgba(255, 255, 255, 0.98);
  --bg-overlay: rgba(0, 0, 0, 0.15);
  --shadow-modal: 0 24px 80px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.02);
  --shadow-inner-card: 0 10px 30px rgba(0, 0, 0, 0.03);
  --shadow-diploma-card: 0 10px 40px rgba(0, 0, 0, 0.04);
  --shadow-bento-hover: 0 5px 25px rgba(0, 0, 0, 0.03);
  --bg-card-glow: rgba(255, 255, 255, 0.85);
  --bg-card-glow-hover: #ffffff;
  --clock-bg: rgba(0, 0, 0, 0.03);
  --clock-border: rgba(0, 0, 0, 0.05);
  --close-btn-bg: rgba(0, 0, 0, 0.04);
  --close-btn-bg-hover: rgba(0, 0, 0, 0.08);
  --card-spotlight: rgba(167, 139, 250, 0.12);
  --opacity-blob: 0;
  --mix-blend-blob: normal;
  --scrollbar-thumb: rgba(0, 0, 0, 0.12);
  --avatar-bg: rgba(255, 255, 255, 0.9);
  --title-gradient: linear-gradient(135deg, #0b0a0f, #3a3845);
  --avatar-text-gradient: linear-gradient(135deg, #0b0a0f, #6d28d9);
  --panel-row-border: rgba(0, 0, 0, 0.04);

  /* Bento borders (light mode) */
  --bento-gold-border: rgba(217, 119, 6, 0.22);
  --bento-blue-border: rgba(37, 99, 235, 0.22);
  --bento-teal-border: rgba(13, 148, 136, 0.22);
  --bento-pink-border: rgba(219, 39, 119, 0.22);

  /* Shape opacities — light mode (20% more saturated) */
  --shape-hero-border: 0.36;
  --shape-hero-ring: 0.30;
  --shape-hero-dots: 0.42;
  --shape-hero-line1: 0.58;
  --shape-hero-line2: 0.42;

  --shape-services-grid: 0.30;
  --shape-services-circle: 0.24;
  --shape-services-bar: 0.42;

  --shape-contact-wave: 0.34;
  --shape-contact-wave-inner: 0.24;
  --shape-contact-circle: 0.30;

  --shape-exp-timeline: 0.53;
  --shape-exp-dots: 0.36;
  --shape-exp-ring: 0.34;

  --shape-skills-radial: 0.24;
  --shape-skills-cross: 0.42;
  --shape-skills-triangle: 0.30;

  --shape-edu-stripes: 0.13;
  --shape-edu-circle: 0.30;
  --shape-edu-corner: 0.36;

  /* Experience modal accent — 30% darker in light mode */
  --exp-accent: #209486;
  --exp-accent-rgb: 32, 148, 134;
}

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-deep);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* ============================================
   APP LAYOUT
   ============================================ */
.app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 20px 36px;
  gap: 14px;
}

/* ============================================
   TOP BAR
   ============================================ */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 22px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
  flex-shrink: 0;
  box-shadow: var(--shadow-card);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-logo {
  color: #065f46;
  display: flex;
}

.topbar-name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.3px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-dim);
}

.topbar-status {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #4ade80;
  font-weight: 500;
  font-size: 12px;
}

.topbar-status::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.5);
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.topbar-email {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s ease;
}

.topbar-email:hover {
  color: #065f46;
}

/* ============================================
   MAIN
   ============================================ */
.main {
  display: grid;
  flex: 1;
  gap: 14px;
  min-height: 0;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}

/* All cards get one cell each — square-ish */
.card-hero { grid-area: 1 / 1 / 2 / 2; }
.card-exp { grid-area: 1 / 2 / 2 / 3; }
.card-skills { grid-area: 1 / 3 / 2 / 4; }
.card-services { grid-area: 2 / 1 / 3 / 2; }
.card-edu { grid-area: 2 / 2 / 3 / 3; }
.card-contact { grid-area: 2 / 3 / 3 / 4; }

/* ============================================
   CARDS — Filled with shapes
   ============================================ */
.card {
  position: relative;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
  padding: 24px 26px;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  user-select: none;
  overflow: hidden;
  
  /* 3D tilt */
  transform-style: preserve-3d;
  transform: perspective(1000px) rotateX(var(--rotate-x, 0deg)) rotateY(var(--rotate-y, 0deg));
  transition: transform 0.1s ease, background 0.3s, border-color 0.3s, box-shadow 0.3s;

  /* Full-height flex container */
  display: flex;
  flex-direction: column;
}

.card.no-tilt {
  transition: transform 0.5s cubic-bezier(0.2, 0, 0, 1), background 0.3s, border-color 0.3s, box-shadow 0.3s;
  transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
}

.card:hover {
  background: var(--bg-glass-hover);
  box-shadow: var(--shadow-hover);
}

.card:active {
  transform: scale(0.985);
  transition: transform 0.1s ease;
}

/* Card Spotlight Glow Effects */
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 1px; /* border thickness */
  background: radial-gradient(
    250px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    var(--glow-color, rgba(255, 255, 255, 0.2)),
    transparent 60%
  );
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 2;
}

.card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: radial-gradient(
    300px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    var(--glow-bg-color, rgba(255, 255, 255, 0.03)),
    transparent 60%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.card:hover::before,
.card:hover::after {
  opacity: 1;
}

/* Theme Glow Colors per Card type */
.card-hero {
  --glow-color: rgba(6, 95, 70, 0.7);
  --glow-bg-color: rgba(6, 95, 70, 0.16);
}
.card-services {
  --glow-color: rgba(59, 130, 246, 0.7);
  --glow-bg-color: rgba(59, 130, 246, 0.16);
}
.card-contact {
  --glow-color: rgba(255, 107, 107, 0.7);
  --glow-bg-color: rgba(255, 107, 107, 0.16);
}
.card-exp {
  --glow-color: rgba(45, 212, 191, 0.7);
  --glow-bg-color: rgba(45, 212, 191, 0.16);
}
.card-skills {
  --glow-color: rgba(251, 191, 36, 0.7);
  --glow-bg-color: rgba(251, 191, 36, 0.16);
}
.card-edu {
  --glow-color: rgba(236, 72, 153, 0.7);
  --glow-bg-color: rgba(236, 72, 153, 0.16);
}

/* --- Card Shapes Container --- */
.card-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: var(--radius);
  transform: translateZ(10px) scale(0.96);
  transition: transform 0.5s cubic-bezier(0.2, 0, 0, 1);
}

.card:hover .card-shapes {
  transform: translateZ(22px) scale(1.02);
}

.shape-el {
  position: absolute;
}

/* Gentle shape drift — only on shapes without their own transform */
@keyframes shapeDrift {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(3px, -4px); }
  50% { transform: translate(-2px, 2px); }
  75% { transform: translate(4px, -2px); }
}

.card-hero .shape-circle-big { animation: shapeDrift 10s ease-in-out infinite 0s; }
.card-hero .shape-ring-big { animation: shapeDrift 12s ease-in-out infinite 0.5s; }
.card-hero .shape-dots { animation: shapeDrift 9s ease-in-out infinite 1s; }

.card-services .shape-grid { animation: shapeDrift 11s ease-in-out infinite 0.2s; }
.card-services .shape-circle-sm { animation: shapeDrift 9s ease-in-out infinite 1.2s; }

.card-contact .shape-waves { animation: shapeDrift 13s ease-in-out infinite 0s; }
.card-contact .shape-circle-md { animation: shapeDrift 10s ease-in-out infinite 0.9s; }

.card-exp .shape-timeline { animation: shapeDrift 11s ease-in-out infinite 0.4s; }
.card-exp .shape-dot-row { animation: shapeDrift 9s ease-in-out infinite 1.1s; }
.card-exp .shape-ring-sm { animation: shapeDrift 8s ease-in-out infinite 0.7s; }

.card-skills .shape-radial { animation: shapeDrift 12s ease-in-out infinite 0.1s; }

.card-edu .shape-circle-outline { animation: shapeDrift 9s ease-in-out infinite 0.8s; }

/* ===== HERO CARD SHAPES (Green) ===== */
.card-hero .shape-circle-big {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 1.5px solid rgba(6, 95, 70, var(--shape-hero-border));
  top: -80px;
  right: -60px;
}

.card-hero .shape-ring-big {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 1.5px solid rgba(6, 95, 70, var(--shape-hero-ring));
  bottom: -40px;
  left: -40px;
}

.card-hero .shape-dots {
  width: 120px;
  height: 120px;
  bottom: 20px;
  right: 20px;
  background-image: radial-gradient(circle, rgba(6, 95, 70, var(--shape-hero-dots)) 1.5px, transparent 1.5px);
  background-size: 12px 12px;
}

.card-hero .shape-line-1 {
  width: 60px;
  height: 1.5px;
  background: rgba(6, 95, 70, var(--shape-hero-line1));
  top: 30px;
  right: 30px;
  transform: rotate(-45deg);
}

.card-hero .shape-line-2 {
  width: 40px;
  height: 1.5px;
  background: rgba(6, 95, 70, var(--shape-hero-line2));
  top: 38px;
  right: 20px;
  transform: rotate(-45deg);
}

/* ===== SERVICES CARD SHAPES (Blue) ===== */
.card-services .shape-grid {
  width: 100px;
  height: 100px;
  top: 10px;
  right: 10px;
  background-image: 
    linear-gradient(rgba(59, 130, 246, var(--shape-services-grid)) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, var(--shape-services-grid)) 1px, transparent 1px);
  background-size: 16px 16px;
}

.card-services .shape-circle-sm {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(59, 130, 246, var(--shape-services-circle));
  bottom: 10px;
  right: 20px;
}

.card-services .shape-bar {
  width: 80px;
  height: 4px;
  border-radius: 2px;
  background: rgba(59, 130, 246, var(--shape-services-bar));
  bottom: 30px;
  left: 20px;
}

/* ===== CONTACT CARD SHAPES (Coral) ===== */
.card-contact .shape-waves {
  width: 200px;
  height: 200px;
  top: -60px;
  right: -40px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 107, 107, var(--shape-contact-wave));
}

.card-contact .shape-waves::after {
  content: '';
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 107, 107, var(--shape-contact-wave-inner));
}

.card-contact .shape-circle-md {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 107, 107, var(--shape-contact-circle));
  bottom: 15px;
  left: 15px;
}

/* ===== EXPERIENCE CARD SHAPES (Teal) ===== */
.card-exp .shape-timeline {
  width: 2px;
  height: 120px;
  background: linear-gradient(to bottom, rgba(45, 212, 191, var(--shape-exp-timeline)), transparent);
  top: 10px;
  right: 30px;
}

.card-exp .shape-dot-row {
  width: 60px;
  height: 60px;
  bottom: 10px;
  right: 10px;
  background-image: radial-gradient(circle, rgba(45, 212, 191, var(--shape-exp-dots)) 2px, transparent 2px);
  background-size: 15px 15px;
}

.card-exp .shape-ring-sm {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1.5px solid rgba(45, 212, 191, var(--shape-exp-ring));
  bottom: 30px;
  left: 10px;
}

/* ===== SKILLS CARD SHAPES (Gold) ===== */
.card-skills .shape-radial {
  width: 200px;
  height: 200px;
  top: -50px;
  right: -50px;
  background: radial-gradient(circle, rgba(251, 191, 36, var(--shape-skills-radial)), transparent 60%);
}

.card-skills .shape-cross {
  width: 30px;
  height: 30px;
  bottom: 15px;
  right: 20px;
  background-image: 
    linear-gradient(rgba(251, 191, 36, var(--shape-skills-cross)) 1px, transparent 1px),
    linear-gradient(90deg, rgba(251, 191, 36, var(--shape-skills-cross)) 1px, transparent 1px);
  background-size: 10px 10px;
  transform: rotate(45deg);
}

.card-skills .shape-triangles {
  width: 0;
  height: 0;
  top: 20px;
  left: 15px;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 14px solid rgba(251, 191, 36, var(--shape-skills-triangle));
}

/* ===== EDUCATION CARD SHAPES (Pink) ===== */
.card-edu .shape-stripes {
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 20px,
    rgba(236, 72, 153, var(--shape-edu-stripes)) 20px,
    rgba(236, 72, 153, var(--shape-edu-stripes)) 21px
  );
}

.card-edu .shape-circle-outline {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 1.5px solid rgba(236, 72, 153, var(--shape-edu-circle));
  bottom: 5px;
  right: 10px;
}

.card-edu .shape-corner {
  width: 40px;
  height: 40px;
  top: 10px;
  right: 10px;
  border-top: 1.5px solid rgba(236, 72, 153, var(--shape-edu-corner));
  border-right: 1.5px solid rgba(236, 72, 153, var(--shape-edu-corner));
}

/* --- Card Content --- */
.card-content {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  transform: translateZ(15px);
  transition: transform 0.5s cubic-bezier(0.2, 0, 0, 1);
}

.card:hover .card-content {
  transform: translateZ(28px);
}

.card-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.card-title {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.card-sub {
  font-size: 14px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  margin-bottom: 6px;
}

.card-meta {
  font-size: 13px;
  color: var(--text-muted);
}

.card-preview {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.5;
}

/* Card sizing */
.card-hero { flex: 2; display: flex; }
.card-services { flex: 1.5; display: flex; }
.card-contact { flex: 1; display: flex; }
.card-exp { flex: 1.5; display: flex; }
.card-skills { flex: 1.5; display: flex; }
.card-edu { flex: 1; display: flex; }

/* ============================================
   MODALS
   ============================================ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg-overlay);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: var(--bg-modal);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  width: 750px;
  max-width: 94vw;
  max-height: 84vh;
  box-shadow: var(--shadow-modal);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalIn 0.35s cubic-bezier(0.2, 0, 0.1, 1);
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.92) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: var(--close-btn-bg);
  border: 1px solid var(--border-glass);
  color: var(--text-dim);
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.modal-close:hover {
  color: var(--text);
  background: var(--close-btn-bg-hover);
  border-color: var(--border-glass-hover);
}

.modal-body {
  padding: 36px 36px 30px;
  overflow-y: auto;
  flex: 1;
}

/* Modal color accents */
.modal-overlay[data-color="purple"] .modal {
  border-color: rgba(167, 139, 250, 0.15);
  box-shadow: var(--shadow-modal), 0 0 60px rgba(167, 139, 250, 0.03);
}
.modal-overlay[data-color="blue"] .modal {
  border-color: rgba(59, 130, 246, 0.15);
  box-shadow: var(--shadow-modal), 0 0 60px rgba(59, 130, 246, 0.03);
}
.modal-overlay[data-color="coral"] .modal {
  border-color: rgba(255, 107, 107, 0.15);
  box-shadow: var(--shadow-modal), 0 0 60px rgba(255, 107, 107, 0.03);
}
.modal-overlay[data-color="teal"] .modal {
  border-color: rgba(45, 212, 191, 0.15);
  box-shadow: var(--shadow-modal), 0 0 60px rgba(45, 212, 191, 0.03);
}
.modal-overlay[data-color="gold"] .modal {
  border-color: rgba(251, 191, 36, 0.15);
  box-shadow: var(--shadow-modal), 0 0 60px rgba(251, 191, 36, 0.03);
}
.modal-overlay[data-color="pink"] .modal {
  border-color: rgba(236, 72, 153, 0.15);
  box-shadow: var(--shadow-modal), 0 0 60px rgba(236, 72, 153, 0.03);
}

/* ============================================
   HERO FULL & REDESIGNED MODAL CONTENT
   ============================================ */
.hero-modal-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  align-items: start;
}

.hero-modal-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-right: 1px solid var(--panel-border);
  padding-right: 20px;
}

.hero-avatar-wrapper {
  position: relative;
  margin-bottom: 16px;
}

.hero-avatar {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: var(--avatar-bg);
  border: 2px solid rgba(167, 139, 250, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.hero-avatar span {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -1px;
  background: var(--avatar-text-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-avatar-glow {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.25) 0%, transparent 70%);
  filter: blur(4px);
  z-index: 1;
}

.hero-modal-name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
  color: #ffffff;
}

.hero-modal-role {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #065f46;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.hero-info-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 22px;
}

.hero-info-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: var(--panel-bg);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  font-size: 10px;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.hero-info-pill svg {
  color: rgba(167, 139, 250, 0.75);
}

.hero-modal-langs {
  width: 100%;
  text-align: left;
}

.lang-heading {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.lang-bar-item {
  margin-bottom: 12px;
}

.lang-info {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  margin-bottom: 4px;
}

.lang-name {
  font-weight: 600;
  color: var(--text-dim);
}

.lang-level {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
}

.lang-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 2px;
  overflow: hidden;
}

.lang-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, #065f46, #047857);
  box-shadow: 0 0 6px rgba(6, 95, 70, 0.4);
}

.hero-modal-right {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.hero-quote-card {
  background: rgba(6, 95, 70, 0.03);
  border-left: 3px solid #065f46;
  border-top: 1px solid var(--panel-border);
  border-right: 1px solid var(--panel-border);
  border-bottom: 1px solid var(--panel-border);
  padding: 18px 20px;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.quote-icon {
  position: absolute;
  right: 12px;
  top: 12px;
  color: rgba(167, 139, 250, 0.07);
  pointer-events: none;
}

.hero-modal-tagline {
  font-size: 15px;
  font-style: italic;
  color: var(--text-dim);
  line-height: 1.55;
  margin: 0;
  position: relative;
  z-index: 2;
}

.hero-bio-section h3,
.hero-interactive-links h3 {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.hero-modal-bio {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.65;
  margin: 0;
}

.hero-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.hero-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  border-radius: 12px;
  background: var(--panel-bg);
  border: 1px solid var(--border-glass);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
}

.hero-action-btn:hover {
  transform: translateY(-2px);
  background: var(--panel-bg-hover);
}

.email-btn:hover {
  border-color: rgba(6, 95, 70, 0.5);
  box-shadow: 0 0 15px rgba(6, 95, 70, 0.15);
  color: #065f46;
}

.web-btn:hover {
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}

.phone-btn:hover {
  border-color: rgba(45, 212, 191, 0.5);
  box-shadow: 0 0 15px rgba(45, 212, 191, 0.15);
  color: #2dd4bf;
}


/* ============================================
   SERVICES FULL & REDESIGNED MODAL CONTENT
   ============================================ */
.services-modal-container {
  display: flex;
  flex-direction: column;
}

.services-modal-header,
.contact-modal-header,
.exp-modal-header,
.edu-modal-header,
.skills-modal-header {
  margin-bottom: 24px;
}

.services-modal-badge,
.contact-modal-badge,
.exp-modal-badge,
.edu-modal-badge,
.skills-modal-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2.5px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.services-modal-title,
.contact-modal-title,
.exp-modal-title,
.edu-modal-title,
.skills-modal-title {
  font-size: 32px;
  font-weight: 850;
  letter-spacing: -0.75px;
  margin: 4px 0 6px;
  color: var(--text);
}

.services-modal-subtitle,
.contact-modal-subtitle,
.exp-modal-subtitle,
.edu-modal-subtitle,
.skills-modal-subtitle {
  font-size: 14px;
  color: var(--text-dim);
  margin: 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.service-glow-card {
  background: var(--bg-card-glow);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s cubic-bezier(0.2, 0, 0, 1);
}

.service-glow-card:hover {
  background: var(--bg-card-glow-hover);
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateY(-3px);
  box-shadow: var(--shadow-inner-card), 0 0 25px rgba(59, 130, 246, 0.05);
}

.service-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.service-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.06);
  border: 1px solid rgba(59, 130, 246, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #60a5fa;
  flex-shrink: 0;
}

.blue-glow {
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.15);
}

.service-card-meta {
  display: flex;
  flex-direction: column;
}

.service-tag {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.service-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.service-desc {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.55;
  margin: 0;
  flex-grow: 1;
}

.service-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.micro-pill {
  font-family: var(--font-mono);
  font-size: 9px;
  padding: 3px 8px;
  background: var(--panel-bg);
  border: 1px solid var(--border-glass);
  border-radius: 6px;
  color: var(--text-muted);
}


/* ============================================
   CONTACT FULL & REDESIGNED MODAL CONTENT
   ============================================ */
.contact-modal-container {
  display: flex;
  flex-direction: column;
}

.contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.contact-glow-card {
  background: var(--bg-card-glow);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s cubic-bezier(0.2, 0, 0, 1);
  position: relative;
}

.contact-glow-card:hover {
  background: var(--bg-card-glow-hover);
  border-color: rgba(255, 107, 107, 0.3);
  transform: translateY(-3px);
  box-shadow: var(--shadow-inner-card), 0 0 25px rgba(255, 107, 107, 0.05);
}

.contact-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 107, 107, 0.06);
  border: 1px solid rgba(255, 107, 107, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff6b6b;
  margin-bottom: 14px;
  flex-shrink: 0;
}

.coral-glow {
  box-shadow: 0 0 15px rgba(255, 107, 107, 0.15);
}

.contact-card-info {
  margin-bottom: 12px;
  flex-grow: 1;
}

.contact-label {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.contact-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  word-break: break-all;
}

.contact-subvalue {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 2px;
  font-family: var(--font-mono);
}

.contact-subvalue-small {
  font-size: 10px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-top: 4px;
}

.contact-subvalue-small a {
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px dashed var(--text-muted);
  transition: all 0.2s ease;
}

.contact-subvalue-small a:hover {
  color: var(--text);
  border-bottom-color: var(--text);
}

.contact-actions {
  display: flex;
  gap: 8px;
}

.contact-actions.full-width {
  width: 100%;
}

.contact-action-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-sans);
}

.contact-action-btn.primary {
  background: rgba(255, 107, 107, 0.1);
  border: 1px solid rgba(255, 107, 107, 0.3);
  color: #ff6b6b;
}

.contact-action-btn.primary:hover {
  background: #ff6b6b;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(255, 107, 107, 0.4);
}

.contact-action-btn.primary.block {
  width: 100%;
}

.contact-action-btn.copy-btn {
  background: var(--panel-bg);
  border: 1px solid var(--border-glass);
  color: var(--text-dim);
}

.contact-action-btn.copy-btn:hover {
  background: var(--panel-bg-hover);
  border-color: var(--border-glass-hover);
  color: var(--text);
}

/* Clipboard dynamic copy styling */
.contact-action-btn.copy-btn.copied {
  background: rgba(16, 185, 129, 0.1) !important;
  border-color: rgba(16, 185, 129, 0.4) !important;
  color: #10b981 !important;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.contact-operational-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  padding: 6px 0;
}

.status-pulse-green {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
  animation: pulseDot 2s ease-in-out infinite;
}


/* ============================================
   EXPERIENCE FULL & REDESIGNED TIMELINE
   ============================================ */
.exp-modal-container {
  display: flex;
  flex-direction: column;
}

.timeline-container {
  position: relative;
  padding-left: 24px;
}

.timeline-line {
  position: absolute;
  left: 5px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(180deg, var(--exp-accent) 0%, rgba(var(--exp-accent-rgb), 0.04) 100%);
}

.timeline-item {
  position: relative;
  margin-bottom: 18px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-node {
  position: absolute;
  left: -24px;
  top: 22px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-deep);
  border: 2px solid var(--exp-accent);
  z-index: 10;
}

.node-pulse {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid rgba(var(--exp-accent-rgb), 0.4);
  animation: pulseDot 2s ease-in-out infinite;
}

.timeline-card {
  background: var(--bg-card-glow);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 18px 20px;
  transition: all 0.25s cubic-bezier(0.2, 0, 0, 1);
}

.timeline-card:hover {
  background: var(--bg-card-glow-hover);
  border-color: rgba(var(--exp-accent-rgb), 0.3);
  transform: translateX(4px);
  box-shadow: var(--shadow-bento-hover), 0 0 20px rgba(var(--exp-accent-rgb), 0.04);
}

.timeline-card-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  margin-bottom: 10px;
}

.role-title {
  font-size: 16px;
  font-weight: 750;
  color: var(--text);
  margin: 0 0 2px;
}

.company-name {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--exp-accent);
}

.company-name a {
  color: inherit;
  text-decoration: none;
}

.company-name a:hover {
  text-decoration: underline;
}

.date-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: bold;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.date-badge.present {
  background: rgba(var(--exp-accent-rgb), 0.08);
  border-color: rgba(var(--exp-accent-rgb), 0.3);
  color: var(--exp-accent);
  box-shadow: 0 0 10px rgba(var(--exp-accent-rgb), 0.1);
}

.role-desc {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.55;
  margin: 0 0 12px;
}

.role-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.micro-skill {
  font-family: var(--font-mono);
  font-size: 8px;
  padding: 3px 8px;
  background: rgba(var(--exp-accent-rgb), 0.03);
  border: 1px solid rgba(var(--exp-accent-rgb), 0.1);
  border-radius: 6px;
  color: var(--exp-accent);
}


/* ============================================
   SKILLS FULL & REDESIGNED BENTO GRID
   ============================================ */
.skills-modal-container {
  display: flex;
  flex-direction: column;
}

.skills-bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.skills-bento-card {
  background: var(--bg-card-glow);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 16px 18px;
  transition: all 0.25s cubic-bezier(0.2, 0, 0, 1);
}

/* Bento custom proportions */
.skills-bento-card:nth-child(3) {
  grid-column: span 2; /* Web Dev spans full width */
}

.skills-bento-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 750;
  color: var(--text);
  margin-bottom: 12px;
}

.skills-bento-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--panel-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
}

.gold-glow { box-shadow: 0 0 10px rgba(251, 191, 36, 0.1); color: #fbbf24 !important; background: rgba(251, 191, 36, 0.05) !important; }
.blue-glow { box-shadow: 0 0 10px rgba(59, 130, 246, 0.1); color: #60a5fa !important; background: rgba(59, 130, 246, 0.05) !important; }
.teal-glow { box-shadow: 0 0 10px rgba(45, 212, 191, 0.1); color: #2dd4bf !important; background: rgba(45, 212, 191, 0.05) !important; }
.pink-glow { box-shadow: 0 0 10px rgba(236, 72, 153, 0.1); color: #f472b6 !important; background: rgba(236, 72, 153, 0.05) !important; }
.slate-glow { box-shadow: 0 0 10px rgba(255, 255, 255, 0.05); color: var(--text-dim) !important; background: var(--panel-bg) !important; }

.skills-bento-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.skills-bento-card:hover {
  background: var(--bg-card-glow-hover);
  transform: scale(1.01);
}

/* Bento card default accent borders */
.gold-border { border-color: var(--bento-gold-border); }
.blue-border { border-color: var(--bento-blue-border); }
.teal-border { border-color: var(--bento-teal-border); }
.pink-border { border-color: var(--bento-pink-border); }

/* Hover accent colors per bento card */
.gold-border:hover { border-color: rgba(251, 191, 36, 0.3); box-shadow: var(--shadow-bento-hover), 0 0 15px rgba(251, 191, 36, 0.03); }
.blue-border:hover { border-color: rgba(59, 130, 246, 0.3); box-shadow: var(--shadow-bento-hover), 0 0 15px rgba(59, 130, 246, 0.03); }
.teal-border:hover { border-color: rgba(45, 212, 191, 0.3); box-shadow: var(--shadow-bento-hover), 0 0 15px rgba(45, 212, 191, 0.03); }
.pink-border:hover { border-color: rgba(236, 72, 153, 0.3); box-shadow: var(--shadow-bento-hover), 0 0 15px rgba(236, 72, 153, 0.03); }
.slate-border:hover { border-color: var(--border-glass-hover); box-shadow: var(--shadow-bento-hover), 0 0 15px rgba(255, 255, 255, 0.02); }

/* Skill tag themed hovers */
.tag.gold-tag:hover { background: rgba(251, 191, 36, 0.08); border-color: rgba(251, 191, 36, 0.3); color: #fbbf24; }
.tag.blue-tag:hover { background: rgba(59, 130, 246, 0.08); border-color: rgba(59, 130, 246, 0.3); color: #60a5fa; }
.tag.teal-tag:hover { background: rgba(45, 212, 191, 0.08); border-color: rgba(45, 212, 191, 0.3); color: #2dd4bf; }
.tag.pink-tag:hover { background: rgba(236, 72, 153, 0.08); border-color: rgba(236, 72, 153, 0.3); color: #f472b6; }
.tag.slate-tag:hover { background: var(--panel-bg-hover); border-color: var(--border-glass-hover); color: var(--text); }


/* ============================================
   EDUCATION FULL & REDESIGNED DIPLOMA
   ============================================ */
.edu-modal-container {
  display: flex;
  flex-direction: column;
}

.edu-diploma-card {
  display: flex;
  gap: 20px;
  background: rgba(236, 72, 153, 0.015);
  border: 1px solid rgba(236, 72, 153, 0.1);
  padding: 24px;
  border-radius: 18px;
  box-shadow: var(--shadow-diploma-card), 0 0 30px rgba(236, 72, 153, 0.02);
}

.diploma-glow-circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(236, 72, 153, 0.06);
  border: 1px solid rgba(236, 72, 153, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f472b6;
  box-shadow: 0 0 15px rgba(236, 72, 153, 0.15);
  flex-shrink: 0;
}

.diploma-content {
  flex-grow: 1;
}

.diploma-degree {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.diploma-school {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  margin: 4px 0 8px;
}

.diploma-description {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
  margin: 0 0 18px;
}

.diploma-divider {
  height: 1px;
  background: var(--panel-border);
  margin: 18px 0;
}

.subjects-heading {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2.5px;
  color: var(--text-muted);
  margin-top: 0;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.edu-subjects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}

.subject-tag-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--panel-bg);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-dim);
}

.subject-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.subject-dot.programming { background: #f472b6; box-shadow: 0 0 8px #f472b6; }
.subject-dot.webdev { background: #065f46; box-shadow: 0 0 8px #065f46; }
.subject-dot.networks { background: #3b82f6; box-shadow: 0 0 8px #3b82f6; }
.subject-dot.databases { background: #fbbf24; box-shadow: 0 0 8px #fbbf24; }
.subject-dot.hardware { background: #2dd4bf; box-shadow: 0 0 8px #2dd4bf; }
.subject-dot.ict { background: #ff6b6b; box-shadow: 0 0 8px #ff6b6b; }

.edu-actions {
  display: flex;
}

.edu-external-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(236, 72, 153, 0.08);
  border: 1px solid rgba(236, 72, 153, 0.25);
  color: #f472b6;
  text-decoration: none;
  font-weight: 600;
  font-size: 12px;
  border-radius: 12px;
  transition: all 0.2s;
}

.edu-external-btn:hover {
  background: #f472b6;
  color: #ffffff;
  box-shadow: 0 0 15px rgba(236, 72, 153, 0.35);
  transform: translateY(-1px);
}


/* ============================================
   RESPONSIVE DESIGN ADAPTATIONS FOR MODALS
   ============================================ */
@media (max-width: 680px) {
  .hero-modal-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .hero-modal-left {
    border-right: none;
    border-bottom: 1px solid var(--panel-border);
    padding-right: 0;
    padding-bottom: 20px;
  }
  .services-grid,
  .contact-cards-grid,
  .skills-bento-grid,
  .edu-subjects-grid {
    grid-template-columns: 1fr;
  }
  .skills-bento-card:nth-child(3) {
    grid-column: span 1;
  }
  .hero-links-grid {
    grid-template-columns: 1fr;
  }
  .edu-diploma-card {
    flex-direction: column;
    gap: 16px;
  }
}

/* ============================================
   SECTION LABEL (Fallback helper)
   ============================================ */
.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2.5px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--close-btn-bg-hover); }

/* ============================================
   CARD SUB-ELEMENTS (DYNAMIC ACCENTS)
   ============================================ */
.card-action {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 14px;
  opacity: 0.6;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}

.card:hover .card-action {
  opacity: 1;
  color: var(--text);
  transform: translateX(4px);
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
}

.location-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #065f46;
  box-shadow: 0 0 8px #065f46;
  display: inline-block;
  animation: pulseDot 2s ease-in-out infinite;
}

.mini-timeline-container {
  position: relative;
  width: 80%;
  height: 4px;
  margin: 14px auto 6px auto; /* Center it and adjust margins */
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  align-self: center; /* Center within flex parent */
}
:root[data-theme="light"] .mini-timeline-container {
  background: rgba(0, 0, 0, 0.08);
}
.mini-timeline-track {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 30%;
  background: #2dd4bf;
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(45, 212, 191, 0.6);
}
.mini-timeline-nodes {
  position: absolute;
  width: 100%;
  display: flex;
  justify-content: flex-start;
  top: -5px;
  pointer-events: none;
}
.mini-node {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #2dd4bf;
  border: 2px solid var(--bg-deep);
  transition: all 0.3s ease;
}
.mini-node.active {
  background: #2dd4bf;
  border-color: #2dd4bf;
  box-shadow: 0 0 8px rgba(45, 212, 191, 0.6);
  position: relative;
  left: 30%; /* Position at the end of the 30% track */
  transform: translateX(-50%); /* Center the node */
}
.mini-node.active::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
}
.card:hover .mini-node.active {
  transform: scale(1.2) translateX(-50%);
}

.mini-skills-status {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}
.mini-skill-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.mini-skill-label {
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}
.mini-bar {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 1.5px;
  overflow: hidden;
  max-width: 80px;
}
.mini-bar-fill {
  height: 100%;
  border-radius: 1.5px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1s cubic-bezier(0.2, 0, 0, 1) 0.2s;
}
.card:hover .mini-bar-fill {
  transform: scaleX(1);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 800px) {
  html, body { overflow: auto; }
  .app { height: auto; padding: 14px; }
  .main {
    display: flex;
    flex-direction: column;
  }
  .card-hero,
  .card-exp,
  .card-services,
  .card-skills,
  .card-edu,
  .card-contact {
    grid-column: auto;
    grid-row: auto;
  }
  .topbar-right { display: none; }
  .theme-toggle {
    margin-left: auto;
  }
  .modal { width: 95vw; max-height: 90vh; }
}

/* ===== DYNAMIC BACKGROUND BLOBS ===== */
.bg-blobs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(130px);
  opacity: var(--opacity-blob);
  mix-blend-mode: var(--mix-blend-blob);
}

.blob-purple {
  width: 45vw;
  height: 45vw;
  background: radial-gradient(circle, #065f46 0%, transparent 80%);
  top: -10vw;
  left: -10vw;
  animation: driftBlob1 30s infinite alternate ease-in-out;
}

.blob-blue {
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, #3b82f6 0%, transparent 80%);
  bottom: -10vw;
  right: -5vw;
  animation: driftBlob2 22s infinite alternate ease-in-out;
}

.blob-coral {
  width: 35vw;
  height: 35vw;
  background: radial-gradient(circle, #ff6b6b 0%, transparent 80%);
  top: 35%;
  left: 45%;
  animation: driftBlob3 26s infinite alternate ease-in-out;
}

@keyframes driftBlob1 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(12vw, 8vh) scale(1.1); }
  100% { transform: translate(-4vw, -4vh) scale(0.95); }
}

@keyframes driftBlob2 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-8vw, -12vh) scale(0.9); }
  100% { transform: translate(6vw, 4vh) scale(1.05); }
}

@keyframes driftBlob3 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-12vw, 8vh) scale(1.05); }
  100% { transform: translate(8vw, -8vh) scale(0.95); }
}

/* ===== SHAPES IDLE FLOATING ANIMATIONS ===== */
@keyframes floatCircle {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-8px) scale(1.02); }
}
@keyframes floatRing {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-4px, 6px) rotate(4deg); }
}
@keyframes spinCross {
  0% { transform: rotate(45deg); }
  100% { transform: rotate(405deg); }
}
@keyframes breatheWaves {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.04); opacity: 1; }
}
@keyframes bobBar {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
@keyframes pulseDots {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 0.4; }
}

/* Applying animations to shapes */
.card-hero .shape-circle-big {
  animation: floatCircle 10s infinite ease-in-out;
}
.card-hero .shape-ring-big {
  animation: floatRing 12s infinite ease-in-out;
}
.card-hero .shape-dots {
  animation: pulseDots 4s infinite ease-in-out;
}
.card-services .shape-circle-sm {
  animation: floatCircle 8s infinite ease-in-out;
}
.card-services .shape-bar {
  animation: bobBar 6s infinite ease-in-out;
}
.card-contact .shape-waves {
  animation: breatheWaves 7s infinite ease-in-out;
}
.card-contact .shape-circle-md {
  animation: floatCircle 9s infinite ease-in-out;
}
.card-exp .shape-ring-sm {
  animation: floatRing 11s infinite ease-in-out;
}
.card-skills .shape-cross {
  animation: spinCross 24s infinite linear;
}
.card-skills .shape-triangles {
  animation: floatCircle 7s infinite ease-in-out;
}
.card-edu .shape-circle-outline {
  animation: floatRing 14s infinite ease-in-out;
}

/* ===== HIGH TECH CLOCK STYLE ===== */
.topbar-clock {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  background: var(--clock-bg);
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid var(--clock-border);
  margin-right: 6px;
}
.topbar-clock svg {
  color: #065f46;
}
.topbar-clock .timezone {
  color: var(--text-muted);
  font-size: 10px;
}

/* ============================================
   THEME TOGGLE BUTTON
   ============================================ */
.theme-toggle {
  background: var(--clock-bg);
  border: 1px solid var(--clock-border);
  color: var(--text-dim);
  cursor: pointer;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s cubic-bezier(0.2, 0, 0, 1);
  padding: 0;
  position: relative;
  overflow: hidden;
}

.theme-toggle:hover {
  background: var(--close-btn-bg-hover);
  color: var(--text);
  border-color: var(--border-glass-hover);
  transform: scale(1.05);
}

.theme-toggle:active {
  transform: scale(0.95);
}

.theme-toggle .sun-icon {
  display: block;
}
.theme-toggle .moon-icon {
  display: none;
}

:root[data-theme="light"] .theme-toggle .sun-icon {
  display: none;
}
:root[data-theme="light"] .theme-toggle .moon-icon {
  display: block;
}
