/* ============================================================
   MOHAMED AKRAM PORTFOLIO - MAIN STYLESHEET
   Sky Blue Gradient Theme | Dark/Light Mode | Animations
   ============================================================ */

/* ---- CSS Variables ---- */
:root {
  /* Sky Blue Palette */
  --sky-1: #00c6ff;
  --sky-2: #0072ff;
  --sky-3: #00bfff;
  --sky-4: #38bdf8;
  --sky-5: #7dd3fc;
  --accent: #00e5ff;
  --accent2: #005eff;

  /* Gradients */
  --grad-main: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
  --grad-hero: linear-gradient(135deg, #00c6ff 0%, #0072ff 50%, #00bfff 100%);
  --grad-glow: radial-gradient(circle, rgba(0,198,255,0.15) 0%, transparent 70%);
  --grad-text: linear-gradient(90deg, #00c6ff, #0072ff, #00e5ff);
  --grad-card: linear-gradient(145deg, rgba(0,198,255,0.05), rgba(0,114,255,0.08));

  /* Dark Theme (default) */
  --bg-primary: #050b18;
  --bg-secondary: #080f1f;
  --bg-card: #0d1a30;
  --bg-card2: #0a1525;
  --bg-nav: rgba(5,11,24,0.92);
  --bg-input: #0d1a30;
  --text-primary: #e8f4fd;
  --text-secondary: #8baac8;
  --text-muted: #4a6580;
  --border: rgba(0,198,255,0.15);
  --border-hover: rgba(0,198,255,0.4);
  --shadow: 0 20px 60px rgba(0,0,0,0.5);
  --shadow-sky: 0 0 30px rgba(0,198,255,0.2);
  --shadow-card: 0 8px 32px rgba(0,0,0,0.4);
  --glow: 0 0 20px rgba(0,198,255,0.3), 0 0 40px rgba(0,114,255,0.2);

  /* Typography */
  --font-display: 'Orbitron', monospace;
  --font-body: 'Rajdhani', sans-serif;
  --font-text: 'Inter', sans-serif;

  /* Transitions */
  --trans: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --trans-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme */
[data-theme="light"] {
  --bg-primary: #f0f7ff;
  --bg-secondary: #e8f4fd;
  --bg-card: #ffffff;
  --bg-card2: #f4faff;
  --bg-nav: rgba(240,247,255,0.95);
  --bg-input: #ffffff;
  --text-primary: #0a1628;
  --text-secondary: #2563a8;
  --text-muted: #6b9abf;
  --border: rgba(0,114,255,0.2);
  --border-hover: rgba(0,114,255,0.5);
  --shadow: 0 20px 60px rgba(0,114,255,0.1);
  --shadow-sky: 0 0 30px rgba(0,198,255,0.15);
  --shadow-card: 0 8px 32px rgba(0,114,255,0.12);
  --glow: 0 0 20px rgba(0,198,255,0.2), 0 0 40px rgba(0,114,255,0.1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
  cursor: none;
}

::selection { background: rgba(0,198,255,0.3); color: var(--text-primary); }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--grad-main); border-radius: 3px; }

/* ---- Particles ---- */
#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0; left: 0;
  z-index: 0;
  pointer-events: none;
}

/* ---- Custom Cursor ---- */
.custom-cursor {
  position: fixed;
  width: 36px; height: 36px;
  border: 2px solid var(--sky-1);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.15s ease, opacity 0.3s ease, width 0.3s ease, height 0.3s ease, background 0.3s ease;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}
.custom-cursor-dot {
  position: fixed;
  width: 6px; height: 6px;
  background: var(--sky-1);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.05s ease;
}
.custom-cursor.hover { width: 60px; height: 60px; background: rgba(0,198,255,0.1); }

/* ---- Page Loader ---- */
.page-loader {
  position: fixed; inset: 0;
  background: var(--bg-primary);
  display: flex; align-items: center; justify-content: center;
  z-index: 99999;
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.page-loader.hide { opacity: 0; pointer-events: none; transform: scale(1.02); }
.loader-inner { text-align: center; }
.loader-logo {
  position: relative; display: inline-block;
  width: 120px; height: 120px;
  margin-bottom: 20px;
}
.loader-text {
  font-family: var(--font-display);
  font-size: 2rem; font-weight: 900;
  background: var(--grad-text);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
}
.loader-ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--sky-1);
  animation: spin 1.2s linear infinite;
}
.loader-ring.r2 { inset: 8px; border-top-color: var(--sky-2); animation-duration: 1.8s; animation-direction: reverse; }
.loader-ring.r3 { inset: 16px; border-top-color: var(--sky-3); animation-duration: 2.4s; }
.loader-tagline {
  font-family: var(--font-body);
  color: var(--text-secondary);
  font-size: 0.85rem; letter-spacing: 3px; text-transform: uppercase;
  animation: pulse 1.5s ease infinite;
}

/* ---- Navbar ---- */
#mainNav {
  background: var(--bg-nav);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  transition: var(--trans);
  z-index: 1000;
}
#mainNav.scrolled {
  padding: 0.6rem 0;
  border-bottom-color: rgba(0,198,255,0.3);
  box-shadow: var(--shadow-sky);
}
.navbar-brand .brand-text {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 800;
  color: var(--text-primary);
}
.brand-dot { color: var(--sky-1); animation: pulse 2s ease infinite; }
.brand-dev {
  background: var(--grad-text);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.nav-link {
  font-family: var(--font-body);
  font-weight: 600; font-size: 0.95rem;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--text-secondary) !important;
  padding: 0.5rem 1rem !important;
  position: relative; transition: var(--trans);
}
.nav-link::after {
  content: '';
  position: absolute; bottom: 0; left: 50%; right: 50%;
  height: 2px; background: var(--grad-main);
  transition: var(--trans); border-radius: 2px;
}
.nav-link:hover, .nav-link.active {
  color: var(--sky-1) !important;
}
.nav-link:hover::after, .nav-link.active::after { left: 0; right: 0; }
.btn-hire-nav {
  background: var(--grad-main);
  color: #fff !important; font-family: var(--font-body);
  font-weight: 700; font-size: 0.85rem;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 8px 24px !important;
  border-radius: 50px; border: none;
  transition: var(--trans);
  box-shadow: 0 4px 20px rgba(0,198,255,0.3);
}
.btn-hire-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,198,255,0.5);
}

/* Theme Toggle */
.theme-toggle {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--sky-1);
  width: 40px; height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--trans);
  position: relative; overflow: hidden;
}
.theme-toggle:hover {
  border-color: var(--sky-1);
  box-shadow: var(--glow);
}

/* Hamburger */
.hamburger-btn {
  border: none; background: none; cursor: pointer;
  display: flex; flex-direction: column; gap: 5px; padding: 5px;
}
.hamburger-btn span {
  display: block; width: 25px; height: 2px;
  background: var(--sky-1); transition: var(--trans); border-radius: 2px;
}
.hamburger-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger-btn.active span:nth-child(2) { opacity: 0; }
.hamburger-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ---- Gradient Text ---- */
.grad-text, h1 span, h2 span {
  background: var(--grad-text);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Section Titles ---- */
.section-label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 4px; text-transform: uppercase;
  color: var(--sky-1);
  padding: 6px 16px;
  background: rgba(0,198,255,0.08);
  border: 1px solid rgba(0,198,255,0.2);
  border-radius: 50px;
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800; line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 1.05rem; color: var(--text-secondary);
  max-width: 560px; line-height: 1.7;
  font-family: var(--font-text);
}
.section-divider {
  width: 80px; height: 3px;
  background: var(--grad-main);
  border-radius: 3px; margin: 16px 0;
}
section { position: relative; z-index: 1; }

/* ---- Buttons ---- */
.btn-primary-custom {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--grad-main);
  color: #fff !important; font-family: var(--font-body);
  font-weight: 700; font-size: 0.95rem;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 14px 32px; border-radius: 50px;
  border: none; cursor: pointer;
  text-decoration: none;
  transition: var(--trans);
  box-shadow: 0 4px 20px rgba(0,198,255,0.3);
  position: relative; overflow: hidden;
}
.btn-primary-custom::before {
  content: '';
  position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s ease;
}
.btn-primary-custom:hover::before { left: 100%; }
.btn-primary-custom:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 35px rgba(0,198,255,0.5);
}
.btn-outline-custom {
  display: inline-flex; align-items: center; gap: 10px;
  background: transparent;
  color: var(--sky-1) !important;
  font-family: var(--font-body); font-weight: 700; font-size: 0.95rem;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 13px 32px; border-radius: 50px;
  border: 2px solid var(--sky-1);
  text-decoration: none; transition: var(--trans);
}
.btn-outline-custom:hover {
  background: rgba(0,198,255,0.1);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,198,255,0.25);
}

/* ---- Cards ---- */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 30px;
  transition: var(--trans);
  position: relative; overflow: hidden;
}
.glass-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 1px; background: var(--grad-main); transform: scaleX(0);
  transition: transform 0.4s ease; transform-origin: left;
}
.glass-card:hover { border-color: var(--border-hover); transform: translateY(-6px); box-shadow: var(--shadow-sky); }
.glass-card:hover::before { transform: scaleX(1); }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 120px 0 80px;
  position: relative; overflow: hidden;
}
.hero-bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,198,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,198,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridMove 20s linear infinite;
}
.hero-glow-1 {
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,198,255,0.12), transparent 70%);
  top: -100px; right: -100px; border-radius: 50%;
  animation: float 8s ease infinite;
}
.hero-glow-2 {
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(0,114,255,0.1), transparent 70%);
  bottom: 0; left: -80px; border-radius: 50%;
  animation: float 10s ease infinite reverse;
}

.hero-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-size: 0.85rem;
  font-weight: 600; letter-spacing: 3px; text-transform: uppercase;
  color: var(--sky-1);
  padding: 8px 20px;
  background: rgba(0,198,255,0.08);
  border: 1px solid rgba(0,198,255,0.2);
  border-radius: 50px; margin-bottom: 24px;
  animation: slideInLeft 0.8s ease both;
}
.hero-label .dot {
  width: 8px; height: 8px; background: var(--sky-1);
  border-radius: 50%; animation: pulse 1.5s ease infinite;
}
.hero-name {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  font-weight: 900; line-height: 1.1;
  color: var(--text-primary);
  animation: slideInLeft 0.8s ease 0.1s both;
}
.hero-name .highlight {
  background: var(--grad-hero);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  display: block;
}
.hero-typed-wrap {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--text-secondary); margin: 16px 0 24px;
  animation: slideInLeft 0.8s ease 0.2s both;
}
.hero-typed-wrap .typed-cursor { color: var(--sky-1); }
.hero-desc {
  font-family: var(--font-text); font-size: 1rem;
  color: var(--text-secondary); line-height: 1.8;
  max-width: 520px; margin-bottom: 36px;
  animation: slideInLeft 0.8s ease 0.3s both;
}
.hero-btns {
  display: flex; flex-wrap: wrap; gap: 16px;
  animation: slideInLeft 0.8s ease 0.4s both;
}
.hero-stats {
  display: flex; gap: 32px; margin-top: 48px;
  animation: slideInLeft 0.8s ease 0.5s both;
}
.hero-stat { text-align: left; }
.hero-stat-num {
  font-family: var(--font-display);
  font-size: 2rem; font-weight: 800;
  background: var(--grad-text);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  line-height: 1;
}
.hero-stat-label {
  font-size: 0.8rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 1px;
}

/* ── Hero right column block ── */
.hero-right-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

/* ================================================================
   HERO IMAGE WRAP — Fixed 500×500 container, circle centered
   Badges orbit at radius 215px from center using CSS+JS
   ================================================================ */
.hero-image-wrap {
  position: relative;
  width: 500px;
  height: 500px;
  flex-shrink: 0;
  margin: 0 auto;
  animation: slideInRight 0.8s ease 0.3s both;
}

/* Dashed rotating rings */
.hero-img-ring {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 380px; height: 380px;
  border: 1.5px dashed rgba(0,198,255,0.18);
  border-radius: 50%;
  animation: spin 28s linear infinite;
}
.hero-img-ring-2 {
  width: 320px; height: 320px;
  border: 1px solid rgba(0,198,255,0.08);
  animation-duration: 20s;
  animation-direction: reverse;
}
/* Orbit path ring (where badges travel) */
.hero-img-ring-orbit {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 430px; height: 430px;
  border-radius: 50%;
  border: 1px dashed rgba(0,198,255,0.06);
  pointer-events: none;
  z-index: 1;
}

/* Profile photo — always centered in the 500×500 wrap */
.hero-img-container {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 290px; height: 290px;
  border-radius: 50%;
  background: var(--grad-main);
  padding: 4px;
  box-shadow: var(--glow);
  z-index: 4;
  animation: heroImgFloat 6s ease-in-out infinite;
}
@keyframes heroImgFloat {
  0%,100% { transform: translate(-50%,-50%) translateY(0px); }
  50%      { transform: translate(-50%,-50%) translateY(-10px); }
}
.hero-img-container img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.hero-img-placeholder {
  width: 100%; height: 100%;
  border-radius: 50%;
  background: var(--bg-card);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 8px;
}
.hero-img-placeholder i { font-size: 3.5rem; color: var(--sky-1); }
.hero-img-placeholder span { font-size: 0.8rem; color: var(--text-muted); }

/* ================================================================
   ORBITING TECH BADGES
   CSS positions set initial placement; JS animates the orbit
   Wrap center = (250,250). Orbit radius = 215px.
   Badge positioned with transform: translate(-50%,-50%)
   PHP   (-55°):  left=250+cos(-55°)*215=250+123=373, top=250+sin(-55°)*215=250-176=74
   MySQL ( 30°):  left=250+cos(30°)*215=250+186=436,  top=250+sin(30°)*215=250+108=358
   WP    (160°):  left=250+cos(160°)*215=250-202=48,   top=250+sin(160°)*215=250+74=324
   ================================================================ */
.mobile-badges { display: none; }

.tech-badge {
  position: absolute;
  transform: translate(-50%, -50%);
  border-radius: 50px;
  padding: 9px 18px;
  font-size: 0.8rem; font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  z-index: 8;
  display: flex; align-items: center; gap: 8px;
  cursor: default;
  background: rgba(8, 20, 40, 0.88);
  border: 1px solid rgba(0,198,255,0.35);
  box-shadow: 0 4px 24px rgba(0,0,0,0.45),
              0 0 16px rgba(0,198,255,0.08),
              inset 0 1px 0 rgba(255,255,255,0.06);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
  /* Initial CSS positions */
}
[data-theme="light"] .tech-badge {
  background: rgba(230,245,255,0.92);
  border-color: rgba(0,114,255,0.3);
  color: #0a1628;
  box-shadow: 0 4px 20px rgba(0,114,255,0.18);
}
.tech-badge:hover {
  border-color: rgba(0,198,255,0.7);
  box-shadow: 0 8px 36px rgba(0,198,255,0.35), 0 0 24px rgba(0,198,255,0.2);
  z-index: 12;
}
.tech-badge i {
  color: var(--sky-1);
  font-size: 0.95rem;
  filter: drop-shadow(0 0 5px rgba(0,198,255,0.5));
}
/* Pulse dot */
.tech-badge::after {
  content: '';
  position: absolute;
  top: -3px; right: -3px;
  width: 8px; height: 8px;
  background: var(--sky-1);
  border-radius: 50%;
  border: 2px solid var(--bg-primary);
  animation: pulse 2s ease infinite;
}

/* CSS default positions (before JS kicks in) */
/* Initial CSS positions (before JS animates; degrees→coords at radius 215)
   PHP Expert  (-55°): 373,  74
   MySQL       ( 30°): 436, 358
   WordPress   (155°):  55, 341  */
.badge-php   { left: 373px; top:  74px; }
.badge-mysql { left: 436px; top: 358px; }
.badge-wp    { left:  55px; top: 341px; }

/* SVG Connector lines */
.badge-connector {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: visible;
}
.badge-connector line {
  stroke: rgba(0,198,255,0.18);
  stroke-width: 1;
  stroke-dasharray: 5 5;
}
@keyframes dashAnim { to { stroke-dashoffset: -20; } }

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-section { padding: 100px 0; }
.about-img-wrap {
  position: relative; display: inline-block;
}
.about-img-frame {
  width: 100%; max-width: 420px;
  border-radius: 24px; overflow: hidden;
  border: 2px solid var(--border);
  box-shadow: var(--shadow-card);
}
.about-img-frame img { width: 100%; display: block; }
.about-img-dots {
  position: absolute; bottom: -20px; right: -20px;
  width: 120px; height: 120px;
  background-image: radial-gradient(circle, rgba(0,198,255,0.4) 1px, transparent 1px);
  background-size: 12px 12px;
  border-radius: 50%; opacity: 0.5;
}
.about-exp-badge {
  position: absolute; top: 20px; right: -30px;
  background: var(--grad-main);
  color: #fff; padding: 16px 20px;
  border-radius: 16px; text-align: center;
  box-shadow: 0 8px 30px rgba(0,198,255,0.3);
}
.about-exp-badge .exp-num {
  font-family: var(--font-display);
  font-size: 1.8rem; font-weight: 900; display: block;
}
.about-exp-badge .exp-label { font-size: 0.7rem; opacity: 0.9; letter-spacing: 1px; }
.about-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0; }
.about-info-item { display: flex; flex-direction: column; gap: 2px; }
.about-info-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.about-info-value { font-size: 0.95rem; color: var(--text-primary); font-weight: 600; }

/* ============================================================
   SKILLS SECTION
   ============================================================ */
.skills-section { padding: 100px 0; }
.skill-category-title {
  font-family: var(--font-display); font-size: 0.75rem;
  font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: var(--sky-1);
  margin-bottom: 20px; display: flex; align-items: center; gap: 12px;
}
.skill-category-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.skill-item {
  margin-bottom: 20px;
}
.skill-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.skill-name { font-family: var(--font-body); font-size: 0.95rem; font-weight: 600; color: var(--text-primary); }
.skill-meta { display: flex; align-items: center; gap: 12px; }
.skill-level-badge {
  font-size: 0.65rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  padding: 3px 10px; border-radius: 50px;
}
.skill-level-badge.expert { background: rgba(0,198,255,0.15); color: var(--sky-1); border: 1px solid rgba(0,198,255,0.3); }
.skill-level-badge.intermediate { background: rgba(0,114,255,0.15); color: #4db6ff; border: 1px solid rgba(0,114,255,0.3); }
.skill-level-badge.beginner { background: rgba(100,200,255,0.1); color: #7dd3fc; border: 1px solid rgba(100,200,255,0.2); }
.skill-percent { font-family: var(--font-display); font-size: 0.8rem; font-weight: 700; color: var(--sky-1); }
.skill-bar { height: 6px; background: var(--bg-card2); border-radius: 3px; overflow: hidden; }
.skill-bar-fill {
  height: 100%; border-radius: 3px;
  background: var(--grad-main); width: 0;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.skill-bar-fill::after {
  content: ''; position: absolute;
  right: 0; top: 50%; transform: translateY(-50%);
  width: 10px; height: 10px;
  background: var(--sky-1); border-radius: 50%;
  box-shadow: 0 0 8px var(--sky-1);
}

/* Skill Cards (icon style) */
.skill-icon-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  transition: var(--trans);
  cursor: default;
}
.skill-icon-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-5px);
  box-shadow: var(--shadow-sky);
}
.skill-icon-card i { font-size: 2rem; color: var(--sky-1); display: block; margin-bottom: 8px; }
.skill-icon-card .s-name { font-size: 0.85rem; font-weight: 700; color: var(--text-primary); display: block; }
.skill-icon-card .s-level { font-size: 0.7rem; color: var(--text-muted); }

/* ============================================================
   EXPERIENCE & EDUCATION (TIMELINE)
   ============================================================ */
.timeline { position: relative; padding-left: 30px; }
.timeline::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px; background: linear-gradient(to bottom, var(--sky-1), transparent);
}
.timeline-item { position: relative; margin-bottom: 40px; }
.timeline-dot {
  position: absolute; left: -38px; top: 6px;
  width: 16px; height: 16px;
  background: var(--grad-main); border-radius: 50%;
  border: 3px solid var(--bg-primary);
  box-shadow: 0 0 12px var(--sky-1);
}
.timeline-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 16px; padding: 24px;
  transition: var(--trans);
}
.timeline-card:hover { border-color: var(--border-hover); box-shadow: var(--shadow-sky); }
.timeline-period {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 1px;
  color: var(--sky-1); text-transform: uppercase;
  padding: 3px 12px; background: rgba(0,198,255,0.1);
  border-radius: 50px; display: inline-block; margin-bottom: 8px;
}
.timeline-title { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--text-primary); }
.timeline-company { font-size: 0.9rem; color: var(--text-secondary); font-weight: 600; margin-bottom: 8px; }
.timeline-desc { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; }
.tech-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tech-tag {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.5px;
  padding: 3px 10px; border-radius: 50px;
  background: rgba(0,198,255,0.1);
  border: 1px solid rgba(0,198,255,0.2);
  color: var(--sky-1);
}

/* ============================================================
   PROJECTS SECTION
   ============================================================ */
.projects-section { padding: 100px 0; }
.project-filter-bar {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center; margin-bottom: 48px;
}
.filter-btn {
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-secondary); font-family: var(--font-body);
  font-weight: 600; font-size: 0.85rem; letter-spacing: 1px;
  text-transform: uppercase; padding: 8px 20px;
  border-radius: 50px; cursor: pointer; transition: var(--trans);
}
.filter-btn.active, .filter-btn:hover {
  background: var(--grad-main); color: #fff;
  border-color: transparent; box-shadow: 0 4px 15px rgba(0,198,255,0.3);
}
.project-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 20px; overflow: hidden;
  transition: var(--trans); height: 100%;
}
.project-card:hover { border-color: var(--border-hover); transform: translateY(-8px); box-shadow: var(--shadow-sky); }
.project-thumbnail {
  height: 200px; overflow: hidden; position: relative;
  background: var(--bg-card2);
}
.project-thumbnail img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.project-card:hover .project-thumbnail img { transform: scale(1.08); }
.project-thumbnail-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(0,198,255,0.1), rgba(0,114,255,0.1));
}
.project-thumbnail-placeholder i { font-size: 3rem; color: rgba(0,198,255,0.3); }
.project-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(5,11,24,0.9), transparent);
  display: flex; align-items: flex-end; padding: 16px;
  opacity: 0; transition: var(--trans);
}
.project-card:hover .project-overlay { opacity: 1; }
.project-links { display: flex; gap: 10px; }
.project-link-btn {
  width: 36px; height: 36px;
  background: rgba(0,198,255,0.2); backdrop-filter: blur(10px);
  border: 1px solid rgba(0,198,255,0.3); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--sky-1); font-size: 0.8rem; text-decoration: none;
  transition: var(--trans);
}
.project-link-btn:hover { background: var(--grad-main); color: #fff; border-color: transparent; }
.project-body { padding: 20px; }
.project-cat {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--sky-1);
  background: rgba(0,198,255,0.1); border: 1px solid rgba(0,198,255,0.2);
  padding: 3px 10px; border-radius: 50px; display: inline-block; margin-bottom: 10px;
}
.project-title { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.project-desc { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 14px; }
.project-status-badge {
  font-size: 0.7rem; font-weight: 600; padding: 3px 10px; border-radius: 50px;
}
.status-completed { background: rgba(0,198,255,0.1); color: var(--sky-1); border: 1px solid rgba(0,198,255,0.2); }
.status-ongoing { background: rgba(255,165,0,0.1); color: #ffa500; border: 1px solid rgba(255,165,0,0.2); }

/* ============================================================
   SERVICES SECTION
   ============================================================ */
.services-section { padding: 100px 0; }
.service-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 24px; padding: 36px 28px;
  height: 100%; transition: var(--trans); position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute;
  top: -60%; left: -60%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(0,198,255,0.05), transparent 60%);
  opacity: 0; transition: opacity 0.5s ease;
}
.service-card:hover::before { opacity: 1; }
.service-card:hover { border-color: var(--border-hover); transform: translateY(-8px); box-shadow: var(--shadow-sky); }
.service-icon-wrap {
  width: 64px; height: 64px;
  background: rgba(0,198,255,0.1); border: 1px solid rgba(0,198,255,0.2);
  border-radius: 18px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; transition: var(--trans);
}
.service-card:hover .service-icon-wrap {
  background: var(--grad-main); border-color: transparent;
  box-shadow: 0 8px 20px rgba(0,198,255,0.3);
}
.service-icon-wrap i { font-size: 1.6rem; color: var(--sky-1); transition: var(--trans); }
.service-card:hover .service-icon-wrap i { color: #fff; }
.service-title { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--text-primary); margin-bottom: 12px; }
.service-desc { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 16px; }
.service-price {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  margin-top: 4px;
}
.service-price::before {
  content: '';
}
.service-features { list-style: none; margin-top: 16px; }
.service-features li {
  font-size: 0.85rem; color: var(--text-secondary);
  padding: 5px 0; display: flex; align-items: center; gap: 8px;
}
.service-features li i { color: var(--sky-1); font-size: 0.7rem; }

/* ============================================================
   BLOG SECTION
   ============================================================ */
.blog-section { padding: 100px 0; }
.blog-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 20px; overflow: hidden; height: 100%; transition: var(--trans);
}
.blog-card:hover { border-color: var(--border-hover); transform: translateY(-6px); box-shadow: var(--shadow-sky); }
.blog-thumbnail { height: 200px; overflow: hidden; background: var(--bg-card2); position: relative; }
.blog-thumbnail img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.blog-card:hover .blog-thumbnail img { transform: scale(1.06); }
.blog-cat-badge {
  position: absolute; top: 12px; left: 12px;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  padding: 4px 12px; border-radius: 50px;
  background: var(--grad-main); color: #fff;
}
.blog-body { padding: 24px; }
.blog-meta { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.blog-meta-item { font-size: 0.8rem; color: var(--text-muted); display: flex; align-items: center; gap: 5px; }
.blog-meta-item i { color: var(--sky-1); }
.blog-title { font-family: var(--font-display); font-size: 0.95rem; font-weight: 700; color: var(--text-primary); margin-bottom: 10px; line-height: 1.4; }
.blog-excerpt { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 16px; }
.read-more-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.85rem; font-weight: 700; color: var(--sky-1);
  text-decoration: none; letter-spacing: 1px; text-transform: uppercase;
  transition: var(--trans);
}
.read-more-link:hover { color: var(--sky-4); gap: 12px; }

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-section { padding: 100px 0; }
.contact-info-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 20px; padding: 30px; height: 100%;
}
.contact-info-item {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 16px 0; border-bottom: 1px solid var(--border);
}
.contact-info-item:last-child { border-bottom: none; }
.contact-icon {
  width: 44px; height: 44px; min-width: 44px;
  background: rgba(0,198,255,0.1);
  border: 1px solid rgba(0,198,255,0.2);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
}
.contact-icon i { color: var(--sky-1); }
.contact-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 2px; }
.contact-value { font-size: 0.95rem; color: var(--text-primary); font-weight: 600; }
.contact-value a { color: var(--text-primary); text-decoration: none; transition: var(--trans); }
.contact-value a:hover { color: var(--sky-1); }

.contact-form { background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; padding: 36px; }
.form-group { margin-bottom: 20px; }
.form-label { font-size: 0.8rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 8px; display: block; }
.form-control-custom {
  width: 100%; background: var(--bg-input);
  border: 1px solid var(--border); border-radius: 12px;
  color: var(--text-primary); font-family: var(--font-text); font-size: 0.95rem;
  padding: 12px 18px; transition: var(--trans); outline: none;
}
.form-control-custom:focus { border-color: var(--sky-1); box-shadow: 0 0 0 3px rgba(0,198,255,0.1); }
.form-control-custom::placeholder { color: var(--text-muted); }
textarea.form-control-custom { resize: vertical; min-height: 130px; }
.availability-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 50px;
  background: rgba(0,255,128,0.1); border: 1px solid rgba(0,255,128,0.2);
  font-size: 0.8rem; font-weight: 700; color: #00ff80;
  margin-top: 16px;
}
.availability-dot { width: 8px; height: 8px; background: #00ff80; border-radius: 50%; animation: pulse 1.5s ease infinite; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-section { padding: 80px 0; }
.testimonial-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 20px; padding: 28px; text-align: center;
  transition: var(--trans);
}
.testimonial-card:hover { border-color: var(--border-hover); box-shadow: var(--shadow-sky); }
.testimonial-stars { color: #ffd700; font-size: 0.9rem; margin-bottom: 12px; }
.testimonial-text { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; font-style: italic; margin-bottom: 20px; }
.testimonial-author { font-weight: 700; color: var(--text-primary); font-size: 0.95rem; }
.testimonial-role { font-size: 0.8rem; color: var(--text-muted); }

/* ============================================================
   STATS / COUNTER
   ============================================================ */
.stats-section { padding: 80px 0; }
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 24px;
  text-align: center;
  transition: var(--trans);
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad-main);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}
.stat-card:hover { border-color: var(--border-hover); transform: translateY(-6px); box-shadow: var(--shadow-sky); }
.stat-card:hover::before { transform: scaleX(1); }
.stat-icon {
  width: 64px; height: 64px;
  background: rgba(0,198,255,0.1);
  border: 1px solid rgba(0,198,255,0.2);
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.6rem;
  color: var(--sky-1);
  transition: var(--trans);
}
.stat-card:hover .stat-icon {
  background: var(--grad-main);
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(0,198,255,0.3);
  color: #fff;
}
.stat-number {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 900;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  margin-bottom: 8px;
}
.stat-suffix { font-family: var(--font-display); color: var(--sky-1); }
.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  position: relative; overflow: hidden; z-index: 1;
}
.footer-glow {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 600px; height: 2px;
  background: var(--grad-main);
  box-shadow: 0 0 40px rgba(0,198,255,0.3);
}
.footer-top { padding: 80px 0 40px; }
.footer-logo {
  font-family: var(--font-display); font-size: 1.8rem; font-weight: 900;
  color: var(--text-primary); text-decoration: none; display: block; margin-bottom: 16px;
}
.footer-logo span { color: var(--sky-1); }
.footer-bio { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 38px; height: 38px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary); font-size: 0.9rem; text-decoration: none;
  transition: var(--trans);
}
.footer-social a:hover {
  background: var(--grad-main); color: #fff;
  border-color: transparent; transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0,198,255,0.3);
}
.footer-heading {
  font-family: var(--font-display); font-size: 0.8rem;
  font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--sky-1); margin-bottom: 20px;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  font-size: 0.9rem; color: var(--text-muted); text-decoration: none;
  transition: var(--trans); display: flex; align-items: center; gap: 8px;
}
.footer-links a i { font-size: 0.7rem; color: var(--sky-1); }
.footer-links a:hover { color: var(--sky-1); gap: 14px; }
.footer-contact-list { list-style: none; }
.footer-contact-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.9rem; color: var(--text-muted); margin-bottom: 12px;
}
.footer-contact-list li i { color: var(--sky-1); margin-top: 3px; min-width: 16px; }
.footer-contact-list li a { color: var(--text-muted); text-decoration: none; transition: var(--trans); }
.footer-contact-list li a:hover { color: var(--sky-1); }
.btn-hire-footer {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--grad-main); color: #fff;
  padding: 10px 22px; border-radius: 50px;
  font-size: 0.85rem; font-weight: 700; text-decoration: none;
  transition: var(--trans); margin-top: 12px;
}
.btn-hire-footer:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,198,255,0.3); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0; font-size: 0.85rem; color: var(--text-muted);
}

/* Scroll to Top */
.scroll-top {
  position: fixed; bottom: 30px; right: 30px;
  width: 44px; height: 44px;
  background: var(--grad-main); color: #fff;
  border: none; border-radius: 12px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; transition: var(--trans);
  opacity: 0; transform: translateY(20px);
  box-shadow: 0 4px 20px rgba(0,198,255,0.3); z-index: 900;
}
.scroll-top.show { opacity: 1; transform: translateY(0); }
.scroll-top:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,198,255,0.5); }

/* ============================================================
   POPUP
   ============================================================ */
.popup-overlay {
  position: fixed; inset: 0;
  background: rgba(5,11,24,0.8); backdrop-filter: blur(8px);
  z-index: 9998; display: flex; align-items: center; justify-content: center;
}
.popup-modal {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 24px; padding: 40px;
  max-width: 480px; width: 90%; position: relative;
  animation: scaleIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 20px 60px rgba(0,198,255,0.2);
}
.popup-close {
  position: absolute; top: 16px; right: 16px;
  background: var(--bg-card2); border: 1px solid var(--border);
  border-radius: 50%; width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); cursor: pointer; transition: var(--trans);
}
.popup-close:hover { color: var(--sky-1); border-color: var(--sky-1); }
.popup-title { font-family: var(--font-display); font-size: 1.2rem; color: var(--text-primary); margin-bottom: 12px; }
.popup-msg { color: var(--text-secondary); line-height: 1.7; margin-bottom: 20px; }

/* Maintenance */
.maintenance-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: var(--bg-primary);
}
.maintenance-content { text-align: center; max-width: 600px; padding: 40px; }

/* ============================================================
   BLOG SINGLE PAGE
   ============================================================ */
.blog-post-hero { padding: 140px 0 80px; background: var(--bg-secondary); }
.blog-post-content {
  font-family: var(--font-text); font-size: 1rem;
  line-height: 1.9; color: var(--text-secondary);
}
.blog-post-content h2, .blog-post-content h3 {
  font-family: var(--font-display);
  color: var(--text-primary); margin: 2rem 0 1rem;
}
.blog-post-content p { margin-bottom: 1.2rem; }
.blog-post-content code {
  background: var(--bg-card2); padding: 2px 8px;
  border-radius: 4px; font-size: 0.9em;
  color: var(--sky-1); border: 1px solid var(--border);
}
.blog-post-content pre {
  background: var(--bg-card2); border: 1px solid var(--border);
  border-radius: 12px; padding: 20px; overflow-x: auto;
  margin: 1.5rem 0;
}

/* ============================================================
   PAGE HERO (for inner pages)
   ============================================================ */
.page-hero {
  padding: 140px 0 80px;
  text-align: center; position: relative; overflow: hidden;
}
.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900; color: var(--text-primary);
}
.breadcrumb-wrap { display: flex; justify-content: center; margin-top: 16px; }
.breadcrumb { background: transparent; margin: 0; }
.breadcrumb-item { font-size: 0.9rem; color: var(--text-muted); }
.breadcrumb-item a { color: var(--sky-1); text-decoration: none; }
.breadcrumb-item.active { color: var(--text-secondary); }
.breadcrumb-item + .breadcrumb-item::before { color: var(--text-muted); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.6; transform: scale(0.95); } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }
@keyframes gridMove { from { background-position: 0 0; } to { background-position: 60px 60px; } }
@keyframes slideInLeft { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideInUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: scale(1); } }
@keyframes shimmer { 0% { background-position: -200% center; } 100% { background-position: 200% center; } }
@keyframes gradientShift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes borderGlow { 0%,100% { box-shadow: 0 0 10px rgba(0,198,255,0.2); } 50% { box-shadow: 0 0 30px rgba(0,198,255,0.5); } }

/* Gradient animated text */
.grad-animated {
  background: linear-gradient(90deg, var(--sky-1), var(--sky-2), var(--sky-3), var(--sky-1));
  background-size: 200% auto;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  animation: shimmer 3s linear infinite;
}

/* ---- Utility ---- */
.text-sky { color: var(--sky-1); }
.bg-grad { background: var(--grad-main); }
.z-1 { z-index: 1; position: relative; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
/* ============================================================
   RESPONSIVE - TABLET
   ============================================================ */
/* ============================================================
   RESPONSIVE - TABLET (992px and below)
   ============================================================ */
@media (max-width: 991px) {
  .hero-image-wrap { margin-top: 20px; }
  .hero-img-container { width: 240px; height: 240px; }
  .hero-img-ring { width: 310px; height: 310px; }
  .hero-img-ring-2 { width: 270px; height: 270px; }
  /* On tablet: hide floating desktop badges */
  .tech-badge { display: none !important; }
  /* Show mobile badges pill row */
  .mobile-badges { display: flex !important; }
  .about-exp-badge { right: 0; }
  .navbar-collapse {
    background: rgba(5,11,24,0.98);
    backdrop-filter: blur(30px);
    padding: 16px; border-radius: 16px;
    margin-top: 10px; border: 1px solid var(--border);
  }
}

/* ============================================================
   MOBILE BOTTOM NAV (App Navigation)
   ============================================================ */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9990;
  background: rgba(5,11,24,0.96);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border-top: 1px solid rgba(0,198,255,0.12);
  padding: 8px 0 max(8px, env(safe-area-inset-bottom));
  align-items: center;
  justify-content: space-around;
}
.mob-nav-item {
  display: flex; flex-direction: column;
  align-items: center; gap: 3px;
  text-decoration: none;
  color: rgba(139,170,200,0.7);
  font-size: 0.56rem; font-weight: 700;
  letter-spacing: 0.8px; text-transform: uppercase;
  padding: 4px 12px 2px;
  border-radius: 12px;
  transition: all 0.25s ease;
  min-width: 56px; min-height: 44px;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}
.mob-nav-item i {
  font-size: 1.15rem;
  transition: all 0.25s ease;
  display: block;
  margin-bottom: 2px;
}
.mob-nav-item.active { color: var(--sky-1); }
.mob-nav-item.active::before {
  content: '';
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 32px; height: 2px;
  background: var(--grad-main);
  border-radius: 0 0 4px 4px;
}
.mob-nav-item.active i { filter: drop-shadow(0 0 5px rgba(0,198,255,0.5)); }
/* Center HIRE button */
.mob-nav-hire {
  background: var(--grad-main) !important;
  color: #fff !important;
  border-radius: 50% !important;
  width: 52px !important; height: 52px !important;
  min-width: 52px !important; min-height: 52px !important;
  margin-top: -16px;
  box-shadow: 0 4px 20px rgba(0,198,255,0.5),
              0 0 0 3px var(--bg-primary),
              0 0 0 5px rgba(0,198,255,0.25);
  padding: 0 !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 1px !important;
  flex-direction: column;
  text-align: center;
  font-size: 0.48rem !important;
  letter-spacing: 0.5px !important;
  font-weight: 900 !important;
  text-transform: uppercase;
}
.mob-nav-hire i {
  font-size: 1rem !important;
  color: #fff !important;
  margin: 0 !important;
  display: block;
  line-height: 1;
}
.mob-nav-hire span {
  display: block;
  font-size: 0.45rem !important;
  font-weight: 900 !important;
  color: #fff !important;
  letter-spacing: 0.5px;
  line-height: 1;
}
.mob-nav-hire::before { display: none !important; }

/* ============================================================
   MOBILE (768px and below) — Full App Experience
   ============================================================ */
@media (max-width: 768px) {

  /* ── Global ── */
  html { -webkit-overflow-scrolling: touch; scroll-behavior: smooth; }
  body { cursor: default; padding-bottom: 72px; }
  * { -webkit-tap-highlight-color: transparent; }
  .custom-cursor, .custom-cursor-dot { display: none; }
  .container { padding-left: 16px; padding-right: 16px; }
  .mobile-bottom-nav { display: flex !important; }

  /* ── Navbar ── */
  #mainNav { padding: 10px 0; }
  .navbar-brand .brand-text { font-size: 1.1rem; }
  .btn-hire-nav { display: none; }
  /* Navbar collapse dropdown */
  #navbarNav {
    background: rgba(5,11,24,0.98) !important;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(0,198,255,0.15);
    border-radius: 18px;
    padding: 16px;
    margin-top: 10px;
    position: relative;
    z-index: 1051;
    width: 100%;
  }
  .nav-link {
    font-size: 1rem;
    padding: 12px 14px !important;
    border-radius: 10px;
    margin-bottom: 3px;
    display: flex !important;
    align-items: center;
    min-height: 48px;
  }
  .nav-link:hover, .nav-link.active {
    background: rgba(0,198,255,0.08);
  }
  .navbar-nav { gap: 2px; }

  /* ── HERO SECTION ── */
  .hero-section { padding: 80px 0 20px; min-height: auto; overflow: visible; }
  .hero-bg-grid { opacity: 0.4; }

  /* Stack: image column on top, text below */
  .hero-section .row { flex-direction: column-reverse; }
  .hero-section .col-lg-6 { width: 100%; }

  /* Right block: image + pill badges centered */
  .hero-right-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    width: 100%;
  }

  /* ── HERO IMAGE WRAP: shrink to 260×260 ── */
  .hero-image-wrap {
    width: 220px !important;
    height: 220px !important;
    min-height: 220px !important;
    margin: 0 auto 4px;
    padding: 0 !important;
  }
  /* All rings scale to fit 220px wrap */
  .hero-img-ring-orbit { width: 220px !important; height: 220px !important; }
  .hero-img-ring       { width: 206px !important; height: 206px !important; border-width: 1.5px; }
  .hero-img-ring-2     { width: 182px !important; height: 182px !important; }
  /* Profile photo */
  .hero-img-container {
    width: 160px !important; height: 160px !important;
    top: 50% !important; left: 50% !important;
    transform: translate(-50%,-50%) !important;
    animation: heroImgFloat 6s ease-in-out infinite !important;
  }

  /* CRITICAL: Hide desktop orbit badges completely on mobile */
  .tech-badge { display: none !important; opacity: 0 !important; visibility: hidden !important; }
  .badge-connector { display: none !important; }

  /* ── Mobile pill badges (below image) ── */
  .mobile-badges {
    display: flex !important;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    padding: 0 12px;
    width: 100%;
  }
  .mobile-badge {
    display: inline-flex !important;
    align-items: center; gap: 6px;
    background: rgba(13,26,48,0.88);
    border: 1px solid rgba(0,198,255,0.22);
    border-radius: 50px;
    padding: 7px 14px;
    font-size: 0.72rem; font-weight: 700;
    color: var(--text-primary);
    animation: float 4s ease infinite;
    box-shadow: 0 4px 14px rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
  }
  .mobile-badge:nth-child(2) { animation-delay: 0.6s; }
  .mobile-badge:nth-child(3) { animation-delay: 1.2s; }
  .mobile-badge i { color: var(--sky-1); font-size: 0.8rem; }

  /* ── Hero text ── */
  .hero-section .col-lg-6:first-child { text-align: center; padding-top: 16px; }
  .hero-label { font-size: 0.65rem; padding: 5px 12px; margin-bottom: 14px; display: inline-flex; }
  .hero-name { font-size: clamp(1.7rem, 7vw, 2.3rem); text-align: center; line-height: 1.15; }
  .hero-typed-wrap { font-size: 0.92rem; text-align: center; margin: 10px 0 12px; }
  .hero-desc { font-size: 0.85rem; text-align: center; line-height: 1.7; margin-bottom: 20px; max-width: 100%; }

  /* Hero buttons: 2-col grid */
  .hero-btns {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    max-width: 340px;
    margin: 0 auto;
  }
  .hero-btns > a:first-child { grid-column: 1 / -1; }
  .btn-primary-custom, .btn-outline-custom {
    padding: 12px 14px;
    font-size: 0.75rem;
    letter-spacing: 1px;
    width: 100%;
    justify-content: center;
    border-radius: 14px;
    min-height: 44px;
  }

  /* Hero stats */
  .hero-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    max-width: 340px;
    margin-left: auto; margin-right: auto;
  }
  .hero-stat { text-align: center; }
  .hero-stat-num { font-size: 1.3rem; }
  .hero-stat-label { font-size: 0.6rem; letter-spacing: 1px; }
  .scroll-indicator { display: none !important; }

  /* ── Stats cards ── */
  .stats-section { padding: 24px 0 36px; }
  .stat-card { padding: 20px 12px; border-radius: 16px; }
  .stat-icon { width: 44px; height: 44px; font-size: 1.1rem; border-radius: 12px; margin-bottom: 10px; }
  .stat-number { font-size: 1.6rem; }
  .stat-label { font-size: 0.6rem; letter-spacing: 1px; }

  /* ── Sections ── */
  section { padding: 44px 0 !important; }
  .section-title { font-size: clamp(1.4rem, 6vw, 2rem); }
  .section-label { font-size: 0.62rem; padding: 5px 12px; }
  .section-divider { margin: 10px 0; }

  /* ── About page ── */
  .about-section { padding: 44px 0 !important; }
  .about-img-frame { max-width: 220px; margin: 0 auto; border-radius: 18px; }
  .about-img-wrap { text-align: center; margin-bottom: 24px; }
  .about-exp-badge { right: 10px; top: 10px; padding: 10px 14px; }
  .about-exp-badge .exp-num { font-size: 1.3rem; }
  .about-info-grid { grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
  .about-info-label { font-size: 0.68rem; }
  .about-info-value { font-size: 0.82rem; }

  /* ── Contact page ── */
  .contact-section { padding: 36px 0 80px !important; }
  .contact-form { padding: 18px 14px; border-radius: 16px; }
  .contact-info-card { padding: 18px 14px; border-radius: 16px; margin-bottom: 18px; }
  .form-control-custom { padding: 11px 13px; font-size: 0.9rem; border-radius: 10px; }
  .form-label { font-size: 0.68rem; }
  .form-group { margin-bottom: 13px; }
  .contact-info-item { padding: 12px 0; gap: 12px; }
  .contact-icon { width: 40px; height: 40px; border-radius: 10px; }
  .availability-badge { font-size: 0.78rem; padding: 7px 14px; }

  /* ── Skills ── */
  .skill-icon-card { padding: 12px 8px; border-radius: 12px; }
  .skill-icon-card i { font-size: 1.3rem; margin-bottom: 5px; }
  .skill-icon-card .s-name { font-size: 0.68rem; }

  /* ── Projects filter ── */
  .project-filter-bar {
    gap: 6px;
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 6px;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  .project-filter-bar::-webkit-scrollbar { display: none; }
  .filter-btn { padding: 6px 13px; font-size: 0.72rem; white-space: nowrap; flex-shrink: 0; }
  .project-card { border-radius: 14px; }
  .project-thumbnail { height: 170px; }

  /* ── Services ── */
  .service-card { padding: 20px 16px; border-radius: 16px; }
  .service-icon-wrap { width: 50px; height: 50px; border-radius: 13px; margin-bottom: 12px; }
  .service-icon-wrap i { font-size: 1.2rem; }
  .service-title { font-size: 0.9rem; }
  .service-desc { font-size: 0.83rem; }

  /* ── Blog ── */
  .blog-thumbnail { height: 160px; }
  .blog-title { font-size: 0.88rem; }
  .blog-excerpt { font-size: 0.8rem; }
  .blog-search-wrap { display: flex; gap: 8px; width: 100%; margin-bottom: 12px; }
  .blog-search-wrap input { flex: 1; }
  .blog-filter-wrap { overflow-x: auto; flex-wrap: nowrap !important; gap: 6px; padding-bottom: 4px; scrollbar-width: none; }
  .blog-filter-wrap::-webkit-scrollbar { display: none; }

  /* ── Timeline ── */
  .timeline { padding-left: 18px; }
  .timeline-dot { left: -26px; width: 13px; height: 13px; }
  .timeline-card { padding: 14px; border-radius: 12px; }
  .timeline-title { font-size: 0.9rem; }

  /* ── Page hero ── */
  .page-hero { padding: 90px 0 32px; }
  .page-hero-title { font-size: clamp(1.5rem, 6vw, 2rem); }

  /* ── Glass card ── */
  .glass-card { padding: 16px; border-radius: 14px; }

  /* ── Footer ── */
  .site-footer .footer-top { padding: 32px 0 16px; }
  .footer-bottom { padding: 12px 0; font-size: 0.76rem; }

  /* Scroll top: above bottom nav */
  .scroll-top { bottom: 80px; right: 14px; width: 38px; height: 38px; border-radius: 10px; }

  /* ── Touch feel ── */
  .project-card:active, .service-card:active, .blog-card:active {
    transform: scale(0.975);
    transition: transform 0.1s ease;
  }
  a, button { min-height: 44px; }
}

/* ---- Extra small (400px) ---- */
@media (max-width: 400px) {
  .hero-img-container { width: 150px; height: 150px; }
  .hero-img-ring { width: 205px; height: 205px; }
  .hero-img-ring-2 { width: 178px; height: 178px; }
  .hero-name { font-size: 1.55rem; }
  .about-info-grid { grid-template-columns: 1fr; }
  .mobile-badge { font-size: 0.68rem; padding: 5px 10px; }
}
