/* ═══════════════════════════════════════════════════════════
   Muhammed Maklad — Portfolio Stylesheet
   Features: Custom cursor · Unified BG · Editorial Headlines
═══════════════════════════════════════════════════════════ */

/* ─── CSS VARIABLES ───────────────────────────────────────── */
:root {
  color-scheme: dark;
  --bg:         #060a14;
  --card:       rgba(12, 18, 35, 0.75);
  --primary:    #5A87C7; /* New Dark Blue for dark mode */
  --primary-rgb:90, 135, 199;
  --accent:     #319795; /* New Teal for dark mode */
  --accent-rgb: 49, 151, 149;
  --purple:     #a78bfa;
  --purple-rgb: 167, 139, 250;
  --orange:     #fb923c;
  --orange-rgb: 251, 146, 60;
  --text:       #e2e8f0;
  --muted:      #7f8ea8;
  --border:     rgba(90, 135, 199, 0.13);
  --card-border:rgba(90, 135, 199, 0.09);
  --shadow:     rgba(0, 0, 0, 0.4);
  --nav-bg:     rgba(6, 10, 20, 0.8);
  --glow:       rgba(90, 135, 199, 0.15);
  --radius:     22px;
  --radius-sm:  13px;
  --transition: 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Cursor & Background helper variables */
  --cursor-ring: rgba(90, 135, 199, 0.7);
  --cursor-glow-bg: radial-gradient(circle, rgba(90, 135, 199, 0.07) 0%, transparent 65%);
  --cursor-hover-ring: rgba(49, 151, 149, 0.65);
  --cursor-hover-bg: rgba(49, 151, 149, 0.06);
  --cursor-click-bg: rgba(90, 135, 199, 0.1);
  --dot-grid: radial-gradient(rgba(90, 135, 199, 0.055) 1px, transparent 1px);
}
html[data-theme="light"] {
  color-scheme: light;
  --bg:         #f4f7ff;
  --card:       rgba(255, 255, 255, 0.82);
  --primary:    #1A365D; /* New Dark Blue for light mode */
  --primary-rgb:26, 54, 93;
  --accent:     #0F766E; /* New Teal for light mode */
  --accent-rgb: 15, 118, 110;
  --purple:     #7c3aed;
  --purple-rgb: 124, 58, 237;
  --orange:     #ea580c;
  --orange-rgb: 234, 88, 12;
  --text:       #0f172a;
  --muted:      #475569;
  --border:     rgba(26, 54, 93, 0.12);
  --card-border:rgba(26, 54, 93, 0.09);
  --shadow:     rgba(26, 54, 93, 0.1);
  --nav-bg:     rgba(244, 247, 255, 0.88);
  --glow:       rgba(26, 54, 93, 0.1);
  
  /* Light mode overrides for cursor & background */
  --cursor-ring: rgba(26, 54, 93, 0.7);
  --cursor-glow-bg: radial-gradient(circle, rgba(26, 54, 93, 0.06) 0%, transparent 65%);
  --cursor-hover-ring: rgba(15, 118, 110, 0.65);
  --cursor-hover-bg: rgba(15, 118, 110, 0.06);
  --cursor-click-bg: rgba(26, 54, 93, 0.1);
  --dot-grid: radial-gradient(rgba(26, 54, 93, 0.06) 1px, transparent 1px);
}

/* ─── RESET & BASE ────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
::selection { background: var(--primary); color: #fff; }
h1, h2, h3 { text-wrap: balance; }

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Hide default cursor on desktop — replaced by custom cursor */
  cursor: none;
}
/* Restore cursor on touch/mobile */
@media (hover: none) { body { cursor: auto; } }

/* ─── FOCUS STATES ────────────────────────────────────────── */
:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; border-radius: 8px; }

/* ─── HELPERS ─────────────────────────────────────────────── */
.highlight-primary { color: var(--primary); font-weight: 700; }
.highlight-accent  { color: var(--accent);  font-weight: 700; }
.highlight-purple  { color: var(--purple);  font-weight: 700; }

/* ═══════════════════════════════════════════════════════════
   CUSTOM MOUSE CURSOR — Modern Magnetic Morphing
═══════════════════════════════════════════════════════════ */
.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #fff;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease, opacity 0.2s ease, background 0.2s ease, border-radius 0.2s ease;
  mix-blend-mode: difference;
  will-change: transform;
}
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--cursor-ring);
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: width 0.4s cubic-bezier(0.23,1,0.32,1),
              height 0.4s cubic-bezier(0.23,1,0.32,1),
              border-color 0.4s ease,
              border-radius 0.4s ease,
              opacity 0.3s ease,
              background 0.4s ease;
  will-change: transform;
  backdrop-filter: none;
}
/* Cursor glow trail */
.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: var(--cursor-glow-bg);
  pointer-events: none;
  z-index: 99990;
  transform: translate(-50%, -50%);
  will-change: transform;
  mix-blend-mode: screen;
  transition: opacity 0.5s ease;
}

/* Hover state — ring expands + fills lightly */
body.cursor-hover .cursor-dot  { width: 8px; height: 8px; opacity: 0.6; }
body.cursor-hover .cursor-ring {
  width: 56px; height: 56px;
  border-color: var(--cursor-hover-ring);
  background: var(--cursor-hover-bg);
  border-radius: 14px;
}
/* Click state — dot squish + ring pulse */
body.cursor-click .cursor-dot  { width: 4px; height: 4px; }
body.cursor-click .cursor-ring { width: 26px; height: 26px; opacity: 0.9; border-color: var(--primary); background: var(--cursor-click-bg); }
/* Hide custom cursor on mobile */
@media (hover: none) { .cursor-dot, .cursor-ring, .cursor-glow { display: none; } }

/* ═══════════════════════════════════════════════════════════
   UNIFIED ONE-PAGE BACKGROUND
 ═══════════════════════════════════════════════════════════ */

/* Dot-grid texture over entire page */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: var(--dot-grid);
  background-size: 36px 36px;
  pointer-events: none;
  z-index: -1;
}

/* Floating orbs — full-page fixed */
.bg-orbs { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(110px); opacity: 0.13;
  animation: orbFloat 28s ease-in-out infinite;
  will-change: transform;
}
.orb-1 { width: 700px; height: 700px; background: var(--primary); top: -15%; left: -12%; animation-delay: 0s; }
.orb-2 { width: 550px; height: 550px; background: var(--accent);  bottom: 5%;  right: -8%;  animation-delay: -9s; }
.orb-3 { width: 450px; height: 450px; background: var(--purple);  top: 45%;   left: 25%;   animation-delay: -18s; }
.orb-4 { width: 300px; height: 300px; background: var(--orange);  top: 20%;   right: 20%;  animation-delay: -5s; opacity: 0.07; }
html[data-theme="light"] .orb { opacity: 0.07; }

@keyframes orbFloat {
  0%,100% { transform: translate(0,0) scale(1); }
  25%      { transform: translate(35px,-50px) scale(1.08); }
  50%      { transform: translate(-20px,40px) scale(0.94); }
  75%      { transform: translate(50px,20px) scale(1.04); }
}

/* Particles */
#particles { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.particle {
  position: absolute; border-radius: 50%; opacity: 0;
  animation: particleDrift linear infinite;
  will-change: transform, opacity;
}
@keyframes particleDrift {
  0%   { transform: translateY(100vh) scale(0); opacity: 0; }
  10%  { opacity: 0.55; }
  90%  { opacity: 0.25; }
  100% { transform: translateY(-120px) scale(1.4); opacity: 0; }
}

/* Sections — all transparent so background flows through */
section { background: transparent !important; padding: 120px 0; position: relative; }

/* Subtle section separator */
section + section::before {
  content: '';
  display: block;
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: min(900px, 80%);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--accent), transparent);
  opacity: 0.2;
}

/* ─── SCROLL PROGRESS ─────────────────────────────────────── */
.scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 3px; width: 0;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--purple));
  z-index: 99999;
  box-shadow: 0 0 10px var(--primary);
}

/* ═══════════════════════════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════════════════════════ */
.nav {
  position: fixed; top: 0; width: 100%; z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}
.nav.scrolled { box-shadow: 0 8px 40px rgba(0,0,0,0.2); }
.nav-inner {
  max-width: 1240px; margin: 0 auto; padding: 0 24px;
  height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  transition: height 0.3s ease;
}
.nav.scrolled .nav-inner { height: 62px; }

.brand {
  font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 21px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  cursor: pointer; white-space: nowrap; flex-shrink: 0;
  display: flex; align-items: center; gap: 8px; transition: opacity 0.3s;
}
.brand:hover { opacity: 0.8; }
.brand-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 8px var(--accent);
  animation: pulse 2.5s infinite; flex-shrink: 0;
  /* Reset gradient clip from parent */
  -webkit-text-fill-color: unset; background-clip: unset; -webkit-background-clip: unset;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(16,185,129,0.55); }
  50%      { box-shadow: 0 0 0 10px rgba(16,185,129,0); }
}

.nav-links { display: flex; align-items: center; gap: 2px; flex-wrap: nowrap; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: 13.5px; font-weight: 600;
  padding: 7px 13px; border-radius: 10px; transition: all 0.28s ease; white-space: nowrap;
  position: relative; cursor: none;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 2px; left: 50%; right: 50%;
  height: 2px; background: var(--primary); border-radius: 2px;
  transition: left 0.3s ease, right 0.3s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { left: 13px; right: 13px; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); background: rgba(96,165,250,0.07); }

/* Theme button */
.theme-btn {
  display: flex; align-items: center; gap: 8px; padding: 8px 16px;
  border-radius: 50px; background: var(--card); border: 1px solid var(--border);
  color: var(--text); font-family: 'DM Sans', sans-serif; font-size: 13.5px; font-weight: 600;
  cursor: none; transition: all 0.35s ease; white-space: nowrap; flex-shrink: 0;
}
.theme-btn:hover { border-color: var(--primary); box-shadow: 0 0 18px var(--glow); transform: translateY(-2px); }
.theme-icon { font-size: 16px; transition: transform 0.5s ease; }
.theme-btn:hover .theme-icon { transform: rotate(22deg) scale(1.15); }
.theme-label { display: none; }
@media (min-width: 960px) { .theme-label { display: block; } }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: none;
  padding: 10px; border-radius: 11px; background: var(--card); border: 1px solid var(--border);
  transition: border-color 0.3s; align-items: center; justify-content: center;
}
.hamburger:hover { border-color: var(--primary); }
.hamburger span {
  display: block; width: 21px; height: 2px; background: var(--text); border-radius: 2px;
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed; top: 78px; left: 0; right: 0;
  background: var(--nav-bg); backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px);
  border-bottom: 1px solid var(--border); padding: 16px 24px;
  z-index: 999; flex-direction: column; gap: 6px;
  display: flex; pointer-events: none; opacity: 0; transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.mobile-menu.open { pointer-events: auto; opacity: 1; transform: translateY(0); }
.mobile-menu a {
  color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 600;
  padding: 12px 18px; border-radius: 11px; transition: all 0.25s;
}
.mobile-menu a:hover { color: var(--primary); background: rgba(96,165,250,0.08); }
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-inner { height: 70px; }
  .nav.scrolled .nav-inner { height: 60px; }
  .mobile-menu { top: 70px; }
}

/* ─── LAYOUT ──────────────────────────────────────────────── */
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* ═══════════════════════════════════════════════════════════
   EDITORIAL SECTION HEADERS
═══════════════════════════════════════════════════════════ */
.section-header {
  margin-bottom: 80px;
  position: relative;
}
/* Top eyebrow row */
.section-eyebrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(96,165,250,0.07);
  padding: 5px 16px;
  border-radius: 50px;
  border: 1px solid rgba(96,165,250,0.18);
}
.section-label::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--primary);
  display: inline-block;
}
/* Ghost large number top-right */
.section-num {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(60px, 8vw, 96px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -4px;
  color: transparent;
  -webkit-text-stroke: 1px rgba(96,165,250,0.12);
  user-select: none;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: -10px;
  transition: -webkit-text-stroke 0.4s ease;
}
html[data-theme="light"] .section-num {
  -webkit-text-stroke: 1px rgba(37,99,235,0.1);
}
/* Title */
.section-header h2 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(38px, 6vw, 62px);
  font-weight: 800;
  letter-spacing: -2px;
  background: linear-gradient(135deg, var(--text) 30%, var(--primary) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  display: block;
  line-height: 1.05;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}
/* Subtitle line */
.section-sub {
  font-size: 15.5px;
  color: var(--muted);
  margin-top: 12px;
  max-width: 560px;
  line-height: 1.7;
}
/* Bottom accent line */
.section-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}
.section-line::before {
  content: '';
  display: block;
  height: 2px;
  width: 56px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 4px;
  flex-shrink: 0;
}
.section-line::after {
  content: '';
  display: block;
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
}

/* ═══════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-container {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding-inline: clamp(24px, 4vw, 48px);
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 64px;
  text-align: left;
}

/* Left Column Content */
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 560px;
  width: 100%;
  flex-shrink: 0;
}

.availability-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 22px;
  background: rgba(16,185,129,0.08); border: 1px solid rgba(16,185,129,0.22);
  border-radius: 50px; font-size: 13.5px; font-weight: 600; color: var(--accent);
  margin-bottom: 24px; animation: fadeUp 0.9s cubic-bezier(0.4,0,0.2,1) 0.1s backwards;
}

.availability-dot {
  width: 8px; height: 8px; background: var(--accent); border-radius: 50%;
  animation: pulse 2.5s infinite;
}

h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(4rem, 6vw, 5.5rem);
  font-weight: 800; line-height: 1.05; margin-bottom: 16px;
  background: linear-gradient(135deg, var(--text) 30%, var(--primary) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  animation: fadeUp 0.9s cubic-bezier(0.4,0,0.2,1) 0.28s backwards;
  letter-spacing: -2.5px;
}

.hero-role {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.5rem, 2vw, 2rem);
  font-weight: 600;
  text-transform: uppercase; letter-spacing: 2px;
  color: var(--primary); margin-bottom: 20px; min-height: 1.5em;
  animation: fadeUp 0.9s cubic-bezier(0.4,0,0.2,1) 0.38s backwards;
  white-space: nowrap;
}

.typed-cursor {
  display: inline-block; width: 2px; height: 1em;
  background: var(--primary); margin-left: 3px; vertical-align: text-bottom;
  animation: blink 0.95s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-desc {
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  color: var(--muted);
  max-width: 620px; margin: 0 0 28px 0; line-height: 1.8;
  animation: fadeUp 0.9s cubic-bezier(0.4,0,0.2,1) 0.46s backwards;
}

/* Hero Badge Rows */
.hero-tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  animation: fadeUp 0.9s cubic-bezier(0.4,0,0.2,1) 0.5s backwards;
}

.hero-tech-badge {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--primary);
  background: rgba(90, 135, 199, 0.08);
  border: 1px solid rgba(90, 135, 199, 0.16);
  padding: 5px 12px;
  border-radius: 50px;
}

html[data-theme="light"] .hero-tech-badge {
  background: rgba(30, 64, 175, 0.05);
  border-color: rgba(30, 64, 175, 0.1);
  color: #1d4ed8;
}

.cta {
  display: flex;
  flex-direction: row;
  gap: 16px;
  flex-wrap: nowrap;
  justify-content: flex-start;
  animation: fadeUp 0.9s cubic-bezier(0.4,0,0.2,1) 0.54s backwards;
  margin-bottom: 28px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 24px; border-radius: 12px;
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 13.5px;
  text-decoration: none; cursor: none; border: none;
  transition: all 0.4s cubic-bezier(0.34,1.56,0.64,1);
  position: relative; overflow: hidden;
}
.btn::before {
  content: ''; position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  transition: left 0.5s ease;
}
.btn:hover::before { left: 100%; }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; box-shadow: 0 10px 28px rgba(90,135,199,0.28); }
.btn-primary:hover { transform: translateY(-5px); box-shadow: 0 18px 42px rgba(90,135,199,0.44); }
.btn-outline { background: var(--card); color: var(--text); border: 1px solid var(--border); backdrop-filter: blur(14px); }
.btn-outline:hover { border-color: var(--primary); transform: translateY(-5px); box-shadow: 0 12px 28px var(--shadow); }
.btn-cv { background: linear-gradient(135deg, var(--purple), var(--primary)); color: #fff; box-shadow: 0 10px 28px rgba(167,139,250,0.28); }
.btn-cv:hover { transform: translateY(-5px); box-shadow: 0 18px 42px rgba(167,139,250,0.44); }

/* Social Strip */
.social-strip {
  display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 10px;
  animation: fadeUp 0.9s cubic-bezier(0.4,0,0.2,1) 0.65s backwards;
  margin-bottom: 40px;
}
.social-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 16px;
  border-radius: 50px; background: var(--card); border: 1px solid var(--border);
  color: var(--muted); text-decoration: none; font-size: 12.5px; font-weight: 600;
  transition: all 0.32s ease; backdrop-filter: blur(14px); cursor: none;
}
.social-chip:hover { color: var(--primary); border-color: var(--primary); transform: translateY(-3px); box-shadow: 0 8px 22px var(--shadow); }
.social-chip img { width: 15px; height: 15px; opacity: 0.75; transition: opacity 0.3s; }
.social-chip:hover img { opacity: 1; }



/* Right Column Visual */
.hero-visual {
  position: relative;
  width: 520px;
  height: 620px;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeUp 0.9s cubic-bezier(0.4,0,0.2,1) 0.45s backwards;
}

.image-container {
  position: relative;
  width: 520px;
  height: 620px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile-photo-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.profile-photo-wrap::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 15%;
  right: 15%;
  height: 16px;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.45) 0%, transparent 70%);
  z-index: 1;
  pointer-events: none;
  filter: blur(2px);
}

.profile-photo {
  height: 560px;
  width: auto;
  max-height: 560px;
  object-fit: contain;
  display: block;
  border: none;
  box-shadow: none;
  filter: drop-shadow(0 15px 25px rgba(0,0,0,0.65));
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.34,1.56,0.64,1);
  opacity: 0;
  animation: floatProfile 6s ease-in-out infinite alternate;
}

.profile-photo.ready {
  opacity: 1;
}

@keyframes floatProfile {
  0% { transform: translateY(0); }
  100% { transform: translateY(-10px); }
}

.float-cards-wrapper {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
}

/* Floating Technology Cards */
.float-card {
  position: absolute;
  background: rgba(12, 18, 35, 0.7);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  width: 170px;
  height: 56px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  color: var(--text);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: auto;
  scale: 1;
  transition: scale 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.float-card span {
  font-size: 15px;
  font-weight: 600;
}

.float-card:hover {
  scale: 1.05;
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(90, 135, 199, 0.4);
  animation-play-state: paused;
  cursor: default;
}

.tech-card-icon {
  width: 18px;
  height: 18px;
  color: var(--primary);
  flex-shrink: 0;
}

/* Symmetrical layout positioning around the profile photo */
/* Symmetrical layout positioning around the profile photo */
.card-python  { top: 0; left: 50%; transform: translateX(-50%); animation: floatCard 5s ease-in-out infinite alternate; animation-delay: 4.2s; }
.card-sql     { top: 80px; left: 0; animation: floatCard 5s ease-in-out infinite alternate; animation-delay: 0s; }
.card-powerbi { top: 80px; right: 0; animation: floatCard 5s ease-in-out infinite alternate; animation-delay: 0.6s; }
.card-etl     { top: 250px; left: -20px; animation: floatCard 5s ease-in-out infinite alternate; animation-delay: 2.4s; }
.card-ml      { top: 250px; right: -20px; animation: floatCard 5s ease-in-out infinite alternate; animation-delay: 3s; }
.card-excel   { bottom: 90px; left: 20px; animation: floatCard 5s ease-in-out infinite alternate; animation-delay: 1.2s; }
.card-tableau { bottom: 90px; right: 20px; animation: floatCard 5s ease-in-out infinite alternate; animation-delay: 1.8s; }
.card-azure   { bottom: 0; left: 50%; transform: translateX(-50%); animation: floatCard 5s ease-in-out infinite alternate; animation-delay: 3.6s; }

@keyframes floatCard {
  0% { translate: 0 0; }
  100% { translate: 0 8px; }
}

html[data-theme="light"] .float-card {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(37, 99, 235, 0.12);
  color: #1e293b;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.08);
}

html[data-theme="light"] .float-card:hover {
  box-shadow: 0 12px 25px rgba(37, 99, 235, 0.15);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--muted); font-size: 10.5px; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase;
  animation: fadeUp 0.9s cubic-bezier(0.4,0,0.2,1) 1.1s backwards;
  opacity: 0.5; transition: opacity 0.5s;
}
.mouse-icon { width: 21px; height: 34px; border: 2px solid currentColor; border-radius: 12px; position: relative; }
.mouse-wheel {
  position: absolute; top: 7px; left: 50%; transform: translateX(-50%);
  width: 3px; height: 6px; background: var(--primary); border-radius: 3px;
  animation: wheelScroll 2s ease-in-out infinite;
}
@keyframes wheelScroll {
  0%,100% { top: 7px; opacity: 1; }
  50%      { top: 18px; opacity: 0.2; }
}

/* Responsive Overrides */
@media (max-width: 1439px) {
  .profile-photo {
    height: 520px;
    max-height: 520px;
  }
  .hero-visual, .image-container {
    width: 460px;
    height: 560px;
  }
  .card-python  { top: 0; left: 50%; transform: translateX(-50%); }
  .card-sql     { top: 70px; left: 0; }
  .card-powerbi { top: 70px; right: 0; }
  .card-etl     { top: 220px; left: -10px; }
  .card-ml      { top: 220px; right: -10px; }
  .card-excel   { bottom: 80px; left: 10px; }
  .card-tableau { bottom: 80px; right: 10px; }
  .card-azure   { bottom: 0; left: 50%; transform: translateX(-50%); }
}

@media (max-width: 1023px) {
  .hero-content, .hero-visual, .image-container {
    display: contents;
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
    min-height: auto;
    padding-inline: clamp(20px, 4vw, 48px);
  }

  /* Grid order arrangement */
  .availability-badge { order: 1; justify-self: center; }
  h1 { order: 2; justify-self: center; }
  .hero-role { order: 3; justify-self: center; }
  .hero-desc { order: 4; justify-self: center; margin: 0 auto 16px; }
  .profile-photo-wrap { order: 5; justify-self: center; margin: 0 auto; position: relative; display: flex; justify-content: center; }
  .float-cards-wrapper { order: 6; justify-self: center; }
  .cta { order: 7; justify-self: center; }
  .social-strip { order: 8; justify-self: center; }

  .hero-connection-canvas {
    display: none;
  }

  .profile-photo {
    height: 380px;
    max-height: 400px;
    width: auto;
  }

  .float-cards-wrapper {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    width: 100%;
    max-width: 380px;
    margin: 16px auto;
    pointer-events: auto;
  }

  .float-card {
    position: static;
    width: 100%;
    height: 50px;
    padding: 0 16px;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    animation: floatMobileGrid 4s ease-in-out infinite alternate;
  }

  .float-card span {
    font-size: 13px;
  }

  .tech-card-icon {
    width: 16px;
    height: 16px;
  }

  .card-sql     { animation-delay: 0s; }
  .card-powerbi { animation-delay: 0.5s; }
  .card-excel   { animation-delay: 1s; }
  .card-tableau { animation-delay: 1.5s; }
  .card-etl     { animation-delay: 2s; }
  .card-ml      { animation-delay: 2.5s; }
  .card-azure   { animation-delay: 3s; }
  .card-python  { animation-delay: 3.5s; }

  .cta {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 12px;
  }

  .btn {
    width: 100%;
    max-width: 270px;
    justify-content: center;
  }

  .social-strip {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }
}

@media (max-width: 767px) {
  .hero {
    padding-top: 100px;
  }

  .hero-container {
    gap: 24px;
    padding-inline: 16px;
  }

  .profile-photo-wrap::after {
    display: none;
  }

  .profile-photo {
    width: 85%;
    height: auto;
    max-width: 280px;
  }

  .float-cards-wrapper {
    max-width: 320px;
    gap: 12px;
  }

  .float-card {
    height: 44px;
  }

  .float-card span {
    font-size: 12px;
  }

  .tech-card-icon {
    width: 14px;
    height: 14px;
  }

  .social-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 8px;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  .social-chip {
    justify-content: center;
  }
}

@keyframes floatMobileGrid {
  0% { translate: 0 0; }
  100% { translate: 0 -6px; }
}

/* ═══════════════════════════════════════════════════════════
   CARDS
═══════════════════════════════════════════════════════════ */
.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 36px;
  backdrop-filter: blur(26px); -webkit-backdrop-filter: blur(26px);
  transition: border-color var(--transition), box-shadow var(--transition);
  position: relative; overflow: hidden;
}
.card::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at var(--mx, 70%) var(--my, 30%), rgba(96,165,250,0.08), transparent 65%);
  opacity: 0; transition: opacity 0.4s; pointer-events: none;
}
.card:hover { border-color: rgba(96,165,250,0.28); box-shadow: 0 28px 72px -10px rgba(0,0,0,0.32); }
.card:hover::after { opacity: 1; }
@media (hover: none) { .card { transform: none !important; } }

.grid    { display: grid; gap: 26px; }
.cols-2  { grid-template-columns: repeat(auto-fit, minmax(min(100%,430px),1fr)); }
.cols-3  { grid-template-columns: repeat(auto-fit, minmax(min(100%,320px),1fr)); }

h3 {
  font-family: 'Outfit', sans-serif; font-size: clamp(19px,2.2vw,23px); font-weight: 700;
  color: var(--text); margin-bottom: 12px; letter-spacing: -0.4px;
}
.muted { color: var(--muted); font-size: 15px; line-height: 1.82; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 13px; border-radius: 8px; font-size: 13px; font-weight: 600;
  transition: all 0.26s ease; cursor: default;
  background: rgba(96,165,250,0.06); border: 1px solid rgba(96,165,250,0.15); color: var(--primary);
}
.chip:hover { background: rgba(96,165,250,0.12); transform: translateY(-2px); border-color: rgba(96,165,250,0.3); }
.chip-tech-icon {
  flex-shrink: 0;
  vertical-align: middle;
  transition: transform 0.3s ease;
}
.chip:hover .chip-tech-icon {
  transform: scale(1.18);
}
.chip.accent { background: rgba(16,185,129,0.06);  border-color: rgba(16,185,129,0.15);  color: var(--accent); }
.chip.accent:hover { background: rgba(16,185,129,0.12); border-color: rgba(16,185,129,0.3); }
.chip.purple { background: rgba(167,139,250,0.06); border-color: rgba(167,139,250,0.15); color: var(--purple); }
.chip.purple:hover { background: rgba(167,139,250,0.12); border-color: rgba(167,139,250,0.3); }
.chip.orange { background: rgba(251,146,60,0.06);  border-color: rgba(251,146,60,0.15);  color: var(--orange); }
.chip.orange:hover { background: rgba(251,146,60,0.12); border-color: rgba(251,146,60,0.3); }

/* ─── ABOUT ───────────────────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 32px; align-items: start; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }
.about-text { font-size: 15.5px; line-height: 1.9; color: var(--muted); }
.stats-col  { display: flex; flex-direction: column; gap: 18px; }
.stats-row  { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
.stat-card {
  background: rgba(96,165,250,0.04); border: 1px solid var(--border);
  border-radius: 17px; padding: 24px; text-align: center; transition: all 0.36s ease;
}
.stat-card:hover { transform: translateY(-5px); border-color: var(--primary); background: rgba(96,165,250,0.08); }
.stat-num { font-family: 'Outfit', sans-serif; font-size: 32px; font-weight: 800; color: var(--primary); letter-spacing: -1px; }
.stat-label { font-size: 12.5px; color: var(--muted); margin-top: 5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.stat-sub   { font-size: 11px; color: var(--muted); opacity: 0.6; margin-top: 3px; }

/* ─── TIMELINE ────────────────────────────────────────────── */
.timeline { position: relative; padding-left: 44px; }
.timeline::before {
  content: ''; position: absolute; left: 8px; top: 16px; bottom: 16px; width: 2px;
  background: linear-gradient(180deg, var(--primary), var(--accent), var(--purple));
  border-radius: 4px; opacity: 0.22;
}
.tl-item {
  position: relative; background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 32px; margin-bottom: 24px;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.tl-marker {
  position: absolute; left: -42px; top: 34px;
  width: 17px; height: 17px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--primary);
  box-shadow: 0 0 0 4px rgba(96,165,250,0.12);
  transition: all 0.36s ease; z-index: 2;
}
.tl-item:hover { transform: translateX(7px); border-color: rgba(96,165,250,0.28); box-shadow: 0 14px 48px rgba(0,0,0,0.2); }
.tl-item:hover .tl-marker { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(16,185,129,0.15), 0 0 14px rgba(16,185,129,0.4); transform: scale(1.2); }

.tl-present { border-color: rgba(96,165,250,0.3); background: rgba(96,165,250,0.03); box-shadow: 0 12px 40px rgba(0,0,0,0.1); }
.tl-present .tl-marker { background: var(--bg); border-color: var(--primary); box-shadow: 0 0 0 4px rgba(96,165,250,0.2), 0 0 16px rgba(96,165,250,0.5); }
.tl-present:hover { border-color: var(--primary); }
.tl-present .tl-date { background: var(--primary); color: var(--bg); padding: 5px 13px; }

.tl-meta  { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.tl-date  { font-size: 12.5px; color: var(--primary); font-weight: 700; background: rgba(96,165,250,0.08); padding: 4px 11px; border-radius: 7px; }
.tl-org   { font-size: 12.5px; color: var(--accent); font-weight: 700; }

/* ─── ACHIEVEMENTS ────────────────────────────────────────── */
.ribbon {
  position: absolute; top: 14px; right: 14px;
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px;
  border-radius: 50px; font-size: 12px; font-weight: 800; color: white; z-index: 2;
}
.ribbon.gold   { background: linear-gradient(135deg,rgba(251,191,36,0.92),rgba(245,158,11,0.97)); border: 1px solid rgba(251,191,36,0.3); box-shadow: 0 8px 20px rgba(245,158,11,0.28); }
.ribbon.bronze { background: linear-gradient(135deg,rgba(180,83,9,0.88),rgba(217,119,6,0.93));   border: 1px solid rgba(217,119,6,0.3);   box-shadow: 0 8px 20px rgba(180,83,9,0.28); }
.achievement-card {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: 24px; overflow: hidden; position: relative;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.achievement-card:hover { transform: translateY(-10px); border-color: rgba(96,165,250,0.38); box-shadow: 0 36px 80px -10px rgba(0,0,0,0.38); }
.achievement-card img { width: 100%; height: 195px; object-fit: cover; display: block; transition: transform 0.75s ease; }
.achievement-card:hover img { transform: scale(1.07); }
.achievement-card.no-img img { display: none; }
.achievement-body { padding: 26px; }

/* ─── SKILLS ──────────────────────────────────────────────── */
.skill-card { border-top: 3px solid var(--primary); }
.skill-card[data-color="primary"] { border-top-color: var(--primary); }
.skill-card[data-color="accent"]  { border-top-color: var(--accent); }
.skill-card[data-color="purple"]  { border-top-color: var(--purple); }
.skill-card[data-color="orange"]  { border-top-color: var(--orange); }
.skill-card[data-color="primary"]:hover { box-shadow: 0 0 0 1px var(--primary), 0 28px 65px -10px rgba(96,165,250,0.18); }
.skill-card[data-color="accent"]:hover  { box-shadow: 0 0 0 1px var(--accent),  0 28px 65px -10px rgba(16,185,129,0.18); }
.skill-card[data-color="purple"]:hover  { box-shadow: 0 0 0 1px var(--purple),  0 28px 65px -10px rgba(167,139,250,0.18); }
.skill-card[data-color="orange"]:hover  { box-shadow: 0 0 0 1px var(--orange),  0 28px 65px -10px rgba(251,146,60,0.18); }
.skill-icon {
  width: 52px; height: 52px; margin-bottom: 18px; display: flex; align-items: center; justify-content: center;
  border-radius: 14px; background: rgba(96,165,250,0.06); border: 1px solid rgba(96,165,250,0.12);
  transition: all 0.35s ease;
}
.skill-card[data-color="primary"] .skill-icon { color: var(--primary); border-color: rgba(96,165,250,0.18); }
.skill-card[data-color="accent"]  .skill-icon { color: var(--accent);  background: rgba(16,185,129,0.06); border-color: rgba(16,185,129,0.18); }
.skill-card[data-color="purple"]  .skill-icon { color: var(--purple);  background: rgba(167,139,250,0.06); border-color: rgba(167,139,250,0.18); }
.skill-card[data-color="orange"]  .skill-icon { color: var(--orange);  background: rgba(251,146,60,0.06); border-color: rgba(251,146,60,0.18); }
.skill-card:hover .skill-icon { transform: scale(1.08) rotate(-3deg); }

/* ═══════════════════════════════════════════════════════════
   PREMIUM SKILLS SECTION — Full Animation System
═══════════════════════════════════════════════════════════ */

/* Section container — relative for canvas overlay */
.skills-section {
  position: relative;
  overflow: hidden;
}

/* ─── Particle Canvas ────────────────────────────────────── */
.skills-particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}

/* ─── Ambient gradient lights ────────────────────────────── */
.skills-ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.skills-light {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0;
  transition: opacity 1.2s ease;
  will-change: transform, opacity;
}
.skills-section.skills-visible .skills-light { opacity: 1; }
.skills-light-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(96,165,250,0.12) 0%, transparent 70%);
  top: -10%; left: -5%;
  animation: skillsLightFloat1 14s ease-in-out infinite;
}
.skills-light-2 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(16,185,129,0.10) 0%, transparent 70%);
  bottom: 5%; right: -5%;
  animation: skillsLightFloat2 18s ease-in-out infinite;
}
.skills-light-3 {
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(167,139,250,0.09) 0%, transparent 70%);
  top: 40%; left: 40%;
  animation: skillsLightFloat3 22s ease-in-out infinite;
}
@keyframes skillsLightFloat1 {
  0%,100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(40px, -30px) scale(1.08); }
  66%      { transform: translate(-20px, 50px) scale(0.94); }
}
@keyframes skillsLightFloat2 {
  0%,100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-50px, -40px) scale(1.1); }
}
@keyframes skillsLightFloat3 {
  0%,100% { transform: translate(0, 0) scale(1); }
  40%      { transform: translate(30px, 40px) scale(1.05); }
  80%      { transform: translate(-40px, -20px) scale(0.96); }
}

/* ─── Section header entrance ────────────────────────────── */
.skills-eyebrow-anim,
.skills-title-anim,
.skills-subtitle-anim,
.skills-line-anim {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}
.skills-section.skills-visible .skills-eyebrow-anim  { opacity: 1; transform: translateY(0); transition-delay: 0s; }
.skills-section.skills-visible .skills-title-anim    { opacity: 1; transform: translateY(0); transition-delay: 0.12s; }
.skills-section.skills-visible .skills-subtitle-anim { opacity: 1; transform: translateY(0); transition-delay: 0.22s; }
.skills-section.skills-visible .skills-line-anim     { opacity: 1; transform: translateY(0); transition-delay: 0.32s; }

/* Gradient line expands on reveal */
.skills-line-anim::before {
  width: 0 !important;
  transition: width 0.85s cubic-bezier(0.4, 0, 0.2, 1) 0.45s !important;
}
.skills-section.skills-visible .skills-line-anim::before {
  width: 56px !important;
}

/* ─── Premium card base ──────────────────────────────────── */
.skill-card-premium {
  position: relative;
  overflow: hidden;
  /* Staggered card slide-up overrides via data-card-index */
  transition:
    transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1),
    border-color 0.4s ease,
    box-shadow 0.4s ease !important;
  will-change: transform, box-shadow;
}

/* Card entrance timing via data attribute — used in JS */
.skill-card-premium[data-card-index="0"] { --card-delay: 0ms; }
.skill-card-premium[data-card-index="1"] { --card-delay: 120ms; }
.skill-card-premium[data-card-index="2"] { --card-delay: 240ms; }
.skill-card-premium[data-card-index="3"] { --card-delay: 360ms; }
.skill-card-premium[data-card-index="4"] { --card-delay: 480ms; }
.skill-card-premium[data-card-index="5"] { --card-delay: 600ms; }

/* ─── Card hover lift ─────────────────────────────────────── */
.skill-card-premium:hover {
  transform: perspective(900px) translateY(-8px) !important;
}

/* ─── Mouse radial light inside card ────────────────────── */
.skill-card-mouse-light {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  opacity: 0;
  background: radial-gradient(
    circle 200px at var(--light-x, 50%) var(--light-y, 50%),
    rgba(var(--primary-rgb), 0.13) 0%,
    transparent 70%
  );
  transition: opacity 0.3s ease;
  z-index: 0;
}
.skill-card-premium[data-color="accent"] .skill-card-mouse-light {
  background: radial-gradient(
    circle 200px at var(--light-x, 50%) var(--light-y, 50%),
    rgba(var(--accent-rgb), 0.13) 0%,
    transparent 70%
  );
}
.skill-card-premium[data-color="purple"] .skill-card-mouse-light {
  background: radial-gradient(
    circle 200px at var(--light-x, 50%) var(--light-y, 50%),
    rgba(var(--purple-rgb), 0.13) 0%,
    transparent 70%
  );
}
.skill-card-premium[data-color="orange"] .skill-card-mouse-light {
  background: radial-gradient(
    circle 200px at var(--light-x, 50%) var(--light-y, 50%),
    rgba(var(--orange-rgb), 0.13) 0%,
    transparent 70%
  );
}
.skill-card-premium:hover .skill-card-mouse-light { opacity: 1; }

/* ─── Animated border glow overlay ──────────────────────── */
.skill-card-border-glow {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  background: transparent;
  border: 1px solid transparent;
  background-clip: padding-box;
  transition: opacity 0.45s ease;
}
/* Animated gradient border using pseudo trick */
.skill-card-premium::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    var(--border-angle, 135deg),
    transparent 30%,
    rgba(var(--primary-rgb), 0.0) 50%,
    transparent 70%
  );
  -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.45s ease;
  z-index: 0;
}
.skill-card-premium[data-color="primary"]::before {
  background: linear-gradient(var(--border-angle, 135deg), transparent 20%, rgba(var(--primary-rgb),0.6) 50%, transparent 80%);
}
.skill-card-premium[data-color="accent"]::before {
  background: linear-gradient(var(--border-angle, 135deg), transparent 20%, rgba(var(--accent-rgb),0.6) 50%, transparent 80%);
}
.skill-card-premium[data-color="purple"]::before {
  background: linear-gradient(var(--border-angle, 135deg), transparent 20%, rgba(var(--purple-rgb),0.6) 50%, transparent 80%);
}
.skill-card-premium[data-color="orange"]::before {
  background: linear-gradient(var(--border-angle, 135deg), transparent 20%, rgba(var(--orange-rgb),0.6) 50%, transparent 80%);
}
.skill-card-premium:hover::before { opacity: 1; }

/* ─── Floating icon animation ────────────────────────────── */
.skill-icon-float {
  animation: skillIconFloat 3.8s ease-in-out infinite;
  will-change: transform;
  position: relative;
  z-index: 1;
}
.skill-card-premium[data-card-index="1"] .skill-icon-float { animation-delay: -1.2s; }
.skill-card-premium[data-card-index="2"] .skill-icon-float { animation-delay: -2.5s; }
.skill-card-premium[data-card-index="3"] .skill-icon-float { animation-delay: -0.7s; }
.skill-card-premium[data-card-index="4"] .skill-icon-float { animation-delay: -1.9s; }
.skill-card-premium[data-card-index="5"] .skill-icon-float { animation-delay: -3.1s; }

@keyframes skillIconFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}

/* Icon scale on hover */
.skill-card-premium:hover .skill-icon-float {
  transform: translateY(-6px) scale(1.12) !important;
  animation-play-state: paused;
}

/* Icon glow pulse */
.skill-card-premium[data-color="primary"] .skill-icon-float { filter: drop-shadow(0 0 0px rgba(var(--primary-rgb),0)); }
.skill-card-premium[data-color="accent"]  .skill-icon-float { filter: drop-shadow(0 0 0px rgba(var(--accent-rgb),0)); }
.skill-card-premium[data-color="purple"]  .skill-icon-float { filter: drop-shadow(0 0 0px rgba(var(--purple-rgb),0)); }
.skill-card-premium[data-color="orange"]  .skill-icon-float { filter: drop-shadow(0 0 0px rgba(var(--orange-rgb),0)); }

.skill-card-premium[data-color="primary"] .skill-icon-float { animation: skillIconFloat 3.8s ease-in-out infinite, skillIconGlowPrimary 4s ease-in-out infinite; }
.skill-card-premium[data-color="accent"]  .skill-icon-float { animation: skillIconFloat 3.8s ease-in-out infinite, skillIconGlowAccent 4s ease-in-out infinite; }
.skill-card-premium[data-color="purple"]  .skill-icon-float { animation: skillIconFloat 3.8s ease-in-out infinite, skillIconGlowPurple 4s ease-in-out infinite; }
.skill-card-premium[data-color="orange"]  .skill-icon-float { animation: skillIconFloat 3.8s ease-in-out infinite, skillIconGlowOrange 4s ease-in-out infinite; }

@keyframes skillIconGlowPrimary {
  0%, 60%, 100% { filter: drop-shadow(0 0 0px rgba(var(--primary-rgb),0)); }
  80%            { filter: drop-shadow(0 0 10px rgba(var(--primary-rgb),0.7)); }
}
@keyframes skillIconGlowAccent {
  0%, 60%, 100% { filter: drop-shadow(0 0 0px rgba(var(--accent-rgb),0)); }
  80%            { filter: drop-shadow(0 0 10px rgba(var(--accent-rgb),0.7)); }
}
@keyframes skillIconGlowPurple {
  0%, 60%, 100% { filter: drop-shadow(0 0 0px rgba(var(--purple-rgb),0)); }
  80%            { filter: drop-shadow(0 0 10px rgba(var(--purple-rgb),0.7)); }
}
@keyframes skillIconGlowOrange {
  0%, 60%, 100% { filter: drop-shadow(0 0 0px rgba(var(--orange-rgb),0)); }
  80%            { filter: drop-shadow(0 0 10px rgba(var(--orange-rgb),0.7)); }
}

/* ─── Skill badge entrance animation ────────────────────── */
.skill-badge {
  opacity: 0;
  transform: translateY(8px) scale(0.9);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              background 0.26s ease, border-color 0.26s ease;
  will-change: opacity, transform;
}
.skill-card-premium.badges-visible .skill-badge { opacity: 1; transform: translateY(0) scale(1); }
/* Sequential badge stagger via nth-child */
.skill-card-premium.badges-visible .skill-badge:nth-child(1) { transition-delay: 0ms; }
.skill-card-premium.badges-visible .skill-badge:nth-child(2) { transition-delay: 60ms; }
.skill-card-premium.badges-visible .skill-badge:nth-child(3) { transition-delay: 120ms; }
.skill-card-premium.badges-visible .skill-badge:nth-child(4) { transition-delay: 180ms; }
.skill-card-premium.badges-visible .skill-badge:nth-child(5) { transition-delay: 240ms; }
.skill-card-premium.badges-visible .skill-badge:nth-child(6) { transition-delay: 300ms; }
.skill-card-premium.badges-visible .skill-badge:nth-child(7) { transition-delay: 360ms; }

/* Badge hover glow pulse micro-interaction */
.skill-badge:hover {
  box-shadow: 0 0 12px rgba(var(--primary-rgb), 0.35) !important;
  transform: translateY(-2px) scale(1.04) !important;
}
.skill-badge.accent:hover  { box-shadow: 0 0 12px rgba(var(--accent-rgb),0.35) !important; }
.skill-badge.purple:hover  { box-shadow: 0 0 12px rgba(var(--purple-rgb),0.35) !important; }
.skill-badge.orange:hover  { box-shadow: 0 0 12px rgba(var(--orange-rgb),0.35) !important; }

/* ─── Card content above overlays ───────────────────────── */
.skill-card-premium h3,
.skill-card-premium .muted,
.skill-card-premium .chips { position: relative; z-index: 1; }

/* ─── Scroll parallax variable — applied via JS ─────────── */
.skills-grid {
  --scroll-offset: 0px;
}
.skill-card-premium { will-change: transform; }

/* ─── Reduced motion overrides ───────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .skill-icon-float { animation: none !important; }
  .skills-light { animation: none !important; }
  .skill-badge { opacity: 1 !important; transform: none !important; }
  .skills-eyebrow-anim, .skills-title-anim, .skills-subtitle-anim, .skills-line-anim {
    opacity: 1 !important; transform: none !important;
  }
}



/* ─── PROJECTS ────────────────────────────────────────────── */
.project-card { display: flex; flex-direction: column; }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.project-icon {
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  border-radius: 12px; background: rgba(var(--primary-rgb), 0.07); border: 1px solid rgba(var(--primary-rgb), 0.14);
  color: var(--primary); flex-shrink: 0; transition: all 0.35s ease;
}
.project-card:hover .project-icon { background: rgba(var(--primary-rgb), 0.13); transform: scale(1.08) rotate(-4deg); }

/* Project Cover Images Support */
.project-image-wrapper {
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}
.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.project-card:hover .project-image {
  transform: scale(1.06);
}

.project-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 24px; }

/* ─── PROBLEM SOLVING ─────────────────────────────────────── */
.ps-hero { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 44px; margin-bottom: 52px; align-items: center; }
@media (max-width: 900px) { .ps-hero { grid-template-columns: 1fr; } }
.ps-stat-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
.ps-stat {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; text-align: center; transition: all 0.36s ease;
}
.ps-stat:hover { transform: translateY(-5px); border-color: var(--primary); box-shadow: 0 14px 38px rgba(0,0,0,0.2); }
.ps-stat-num {
  font-family: 'Outfit', sans-serif; font-size: 40px; font-weight: 800; letter-spacing: -1px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.ps-stat-label { font-size: 12px; color: var(--muted); margin-top: 7px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }
.category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,210px),1fr)); gap: 14px; }
.category-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 17px;
  padding: 22px; transition: all 0.36s ease; text-decoration: none; color: inherit; display: block;
}
.category-card:hover { transform: translateY(-7px); border-color: var(--primary); box-shadow: 0 20px 48px -8px rgba(0,0,0,0.24); }
.cat-icon {
  width: 46px; height: 46px; display: flex; align-items: center; justify-content: center;
  border-radius: 12px; background: rgba(var(--primary-rgb), 0.07); border: 1px solid rgba(var(--primary-rgb), 0.13);
  color: var(--primary); margin-bottom: 12px; transition: all 0.35s ease;
}
.category-card:hover .cat-icon { transform: scale(1.1) rotate(-5deg); background: rgba(var(--primary-rgb), 0.13); }
.cat-name  { font-family: 'Outfit', sans-serif; font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.cat-count { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.cat-bar   { height: 3px; background: rgba(var(--primary-rgb), 0.1); border-radius: 4px; margin-top: 16px; overflow: hidden; }
.cat-fill  { height: 100%; border-radius: 4px; transition: width 1.1s cubic-bezier(0.4,0,0.2,1); }
.diff-pills { display: flex; gap: 5px; margin-top: 11px; flex-wrap: wrap; }
.diff-pill { padding: 2px 8px; border-radius: 5px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; }
.easy   { background: rgba(16,185,129,0.12); color: #10b981; border: 1px solid rgba(16,185,129,0.25); }
.medium { background: rgba(251,146,60,0.12);  color: #fb923c; border: 1px solid rgba(251,146,60,0.25); }
.hard   { background: rgba(239,68,68,0.12);   color: #ef4444; border: 1px solid rgba(239,68,68,0.25); }

/* ─── CONTACT ─────────────────────────────────────────────── */
/* Layout: two-column on desktop */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; gap: 40px; } }

/* Left: CTA side */
.contact-cta-side { padding-top: 8px; }
.contact-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 18px; border-radius: 50px;
  background: rgba(16,185,129,0.09); border: 1px solid rgba(16,185,129,0.22);
  font-size: 13px; font-weight: 700; color: var(--accent);
  margin-bottom: 28px; letter-spacing: 0.01em;
}
.contact-badge-dot {
  width: 7px; height: 7px; background: var(--accent); border-radius: 50%;
  animation: pulse 2.5s infinite;
}
.contact-headline {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 800; line-height: 1.2; letter-spacing: -1.5px;
  color: var(--text); margin-bottom: 20px;
}
.contact-hl {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.contact-body {
  font-size: 15.5px; color: var(--muted); line-height: 1.8; margin-bottom: 32px; max-width: 420px;
}
.contact-cta-btn { font-size: 15px; padding: 14px 28px; }

/* Right: contact chips */
.contact-chips-side { display: flex; flex-wrap: wrap; gap: 14px; }
.contact-chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 20px;
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: 50px;
  text-decoration: none; color: var(--text); font-weight: 600; font-size: 14px;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1); cursor: none;
}
.contact-chip svg { color: var(--cc, var(--primary)); flex-shrink: 0; transition: transform 0.3s ease; }
.contact-chip:hover { border-color: var(--primary); transform: translateY(-5px); box-shadow: 0 12px 30px rgba(0,0,0,0.15); color: var(--primary); }
.contact-chip:hover svg { transform: scale(1.15) rotate(-4deg); }

/* ─── BACK TO TOP ─────────────────────────────────────────── */
@keyframes bounceUp {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
.back-to-top {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--card);
  border: none;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  z-index: 800;
  color: var(--text);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: all 0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { transform: translateY(-5px); box-shadow: 0 12px 38px var(--shadow); }
.progress-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  pointer-events: none;
}
.progress-ring__circle-bg {
  stroke: var(--border);
  transition: stroke var(--transition);
}
.progress-ring__circle {
  stroke: var(--primary);
  stroke-linecap: round;
  transition: stroke-dashoffset 0.08s linear, stroke var(--transition);
}
.arrow-icon {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, color 0.3s ease;
}
.back-to-top:hover .arrow-icon {
  transform: translateY(-4px);
  color: var(--primary);
}

/* ─── FOOTER ──────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--border); padding: 44px 24px 32px; background: transparent; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.footer-brand { text-align: left; }
.footer-name  { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 17px; color: var(--text); letter-spacing: -0.5px; }
.footer-role  { font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.footer-links { display: flex; gap: 12px; align-items: center; }
.footer-links a {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--border);
  background: var(--card); transition: all 0.28s ease; cursor: none;
}
.footer-links a:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: 0 8px 20px var(--shadow); }
.footer-links img { width: 17px; height: 17px; }
.footer-divider { height: 1px; background: var(--border); margin: 22px 0; }
.footer-copy { font-size: 12.5px; color: var(--muted); text-align: center; opacity: 0.65; }

/* ─── ANIMATIONS ──────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in {
  opacity: 0; transform: translateY(26px);
  transition: opacity 0.72s cubic-bezier(0.4,0,0.2,1), transform 0.72s cubic-bezier(0.4,0,0.2,1);
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
.grid > .fade-in:nth-child(2) { transition-delay: 0.08s; }
.grid > .fade-in:nth-child(3) { transition-delay: 0.15s; }
.grid > .fade-in:nth-child(4) { transition-delay: 0.21s; }
.grid > .fade-in:nth-child(5) { transition-delay: 0.27s; }
.grid > .fade-in:nth-child(6) { transition-delay: 0.33s; }

/* ─── SCROLLBAR ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ─── REDUCED MOTION ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .cursor-dot, .cursor-ring, .cursor-glow { display: none !important; }
}

/* ─── PRINT ───────────────────────────────────────────────── */
@media print {
  .nav, .mobile-menu, #particles, .bg-orbs, .back-to-top,
  .scroll-progress, .scroll-indicator, .cursor-dot, .cursor-ring, .cursor-glow { display: none !important; }
  body { background: white; color: black; cursor: auto; }
  .card, .tl-item, .achievement-card { border: 1px solid #ddd; background: white; box-shadow: none; }
}

/* ─── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 600px) {
  section { padding: 70px 0; }
  .container { padding: 0 16px; }
  .card { padding: 24px 18px; }
  .hero { padding-top: 108px; padding-bottom: 86px; }
  h1 { letter-spacing: -1px; }
  .cta { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 270px; justify-content: center; }
  .section-num { font-size: 56px; }
  .back-to-top { bottom: 14px; right: 14px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-brand { text-align: center; }
}

/* ─── PREMIUM LOADING EXPERIENCE ────────────────────────── */
body.loading-active {
  overflow: hidden;
  height: 100vh;
}

.loading-screen {
  position: fixed;
  inset: 0;
  background: #08111F; /* Dark background from Edit.md */
  color: #FFFFFF;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), visibility 1s;
  overflow: hidden;
  font-family: 'Outfit', sans-serif;
}

.loading-screen.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Content wrapper */
.loader-overlay-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 90%;
  max-width: 500px;
  pointer-events: none;
}

/* 2. Name */
.loader-name {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(34px, 6vw, 52px);
  font-weight: 900;
  letter-spacing: -1.5px;
  background: linear-gradient(135deg, #FFFFFF 30%, #3B82F6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  filter: drop-shadow(0 0 30px rgba(59, 130, 246, 0.25));
}

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

/* 3. Professional Title */
.loader-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  color: #06B6D4; /* Secondary cyan */
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 40px;
  opacity: 0;
  transition: opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.2s, letter-spacing 1.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

.loader-title.visible {
  opacity: 0.85;
  letter-spacing: 6px; /* gradally expands */
}

/* 4. Animated Loading Indicator */
.loader-progress-container {
  position: relative;
  width: 240px;
  height: 2px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 24px;
}

.loader-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #3B82F6, #06B6D4, #8B5CF6);
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
  transition: width 0.1s linear;
}

/* 5. Footer Text */
.loader-footer {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  color: #7f8ea8;
  font-style: italic;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.loader-footer.visible {
  opacity: 0.65;
}
