/*
 * Portfolio — Utkarsh Shukla
 * Modern Dark Cyberpunk Theme | 2025
 */

/* ============================================================
   0. CSS VARIABLES
   ============================================================ */
:root {
  --bg:           #09090f;
  --bg-alt:       #0d0d1c;
  --bg-card:      rgba(255, 255, 255, 0.04);
  --bg-card-h:    rgba(255, 255, 255, 0.075);
  --purple:       #7c3aed;
  --purple-light: #9d5cf5;
  --cyan:         #06b6d4;
  --cyan-light:   #22d3ee;
  --pink:         #ec4899;
  --glow-p:       rgba(124,  58, 237, 0.35);
  --glow-c:       rgba(  6, 182, 212, 0.35);
  --text:         #f1f5f9;
  --text-2:       #94a3b8;
  --text-3:       #64748b;
  --border:       rgba(255, 255, 255, 0.07);
  --border-p:     rgba(124,  58, 237, 0.25);
  --radius:       16px;
  --radius-sm:    10px;
  --ease:         cubic-bezier(0.4, 0, 0.2, 1);
  --font:         'Inter', 'Space Grotesk', sans-serif;
}

/* ============================================================
   1. GLOBAL RESET + BOOTSTRAP OVERRIDES
   ============================================================ */
html { scroll-behavior: smooth; }

body {
  font-family: var(--font) !important;
  background-color: var(--bg) !important;
  color: var(--text) !important;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Override Bootstrap heading/text colors */
h1, h2, h3, h4, h5, h6 { color: var(--text); }
p { color: var(--text-2); margin-bottom: 0; }
a { color: inherit; text-decoration: none; transition: color 0.3s var(--ease); }
a:hover { color: var(--purple-light); text-decoration: none; }
ul { list-style: none; padding-left: 0; margin-bottom: 0; }
img { display: block; max-width: 100%; }
button { font-family: var(--font); }

/* Override Bootstrap form defaults */
.form-control,
input, textarea, select {
  background-color: transparent !important;
  color: var(--text) !important;
  border-color: var(--border) !important;
}
.form-control:focus { box-shadow: none !important; }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--purple); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--cyan); }

/* ============================================================
   2. TYPOGRAPHY UTILITY
   ============================================================ */
.gradient-text {
  background: linear-gradient(135deg, var(--purple-light) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline;
}

/* ============================================================
   3. PRELOADER
   ============================================================ */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader-inner {
  position: relative;
  width: 76px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: var(--purple);
  border-right-color: var(--cyan);
  animation: spin 0.9s linear infinite;
}

.preloader-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--purple-light), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   4. BACK TO TOP BUTTON
   ============================================================ */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 996;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  color: #fff !important;
  font-size: 1.4rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s var(--ease);
  box-shadow: 0 0 20px var(--glow-p);
  text-decoration: none;
}
.back-to-top.active { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-4px); box-shadow: 0 0 32px var(--glow-p); color: #fff !important; }

/* ============================================================
   5. HEADER & NAVBAR
   ============================================================ */
#header {
  padding: 14px 0;
  transition: all 0.4s var(--ease);
  z-index: 997;
  background: transparent;
}

#header.header-scrolled {
  background: rgba(9, 9, 15, 0.88) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.4);
}

/* Logo */
.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.logo-monogram {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
  letter-spacing: 1px;
  box-shadow: 0 0 20px var(--glow-p);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  flex-shrink: 0;
}
.logo-monogram:hover { transform: scale(1.1) rotate(-5deg); box-shadow: 0 0 36px var(--glow-p); }
.logo-monogram.sm { width: 34px; height: 34px; font-size: 0.8rem; border-radius: 9px; }

/* Desktop Nav */
.navbar { padding: 0; }
.navbar ul { display: flex; align-items: center; flex-wrap: nowrap; margin: 0; padding: 0; list-style: none; }
.navbar li { position: relative; }

.navbar a,
.navbar a:focus {
  display: flex;
  align-items: center;
  color: rgba(241, 245, 249, 0.75);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 8px 14px;
  white-space: nowrap;
  transition: color 0.3s var(--ease);
  position: relative;
  text-decoration: none;
  letter-spacing: 0.2px;
}

.navbar a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  transition: width 0.3s var(--ease);
}

.navbar a:hover,
.navbar .active,
.navbar li:hover > a { color: #f1f5f9; }
.navbar a:hover::after,
.navbar .active::after { width: 60%; }

/* Resume CTA Button in Navbar */
.nav-resume-btn {
  margin-left: 8px;
  padding: 8px 18px !important;
  border-radius: 50px !important;
  background: linear-gradient(135deg, var(--purple), var(--cyan)) !important;
  color: #fff !important;
  font-weight: 600 !important;
  font-size: 0.83rem !important;
  gap: 5px;
  box-shadow: 0 0 16px var(--glow-p);
  transition: all 0.3s var(--ease) !important;
}
.nav-resume-btn::after { display: none !important; }
.nav-resume-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 28px var(--glow-p);
  color: #fff !important;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  color: var(--text);
  font-size: 1.6rem;
  cursor: pointer;
  display: none;
  line-height: 1;
  transition: all 0.3s;
}

@media (max-width: 991px) {
  .mobile-nav-toggle { display: block; }
  .navbar ul { display: none; }

  .navbar.navbar-mobile {
    position: fixed;
    inset: 0;
    background: rgba(9, 9, 15, 0.97);
    backdrop-filter: blur(20px);
    z-index: 9998;
  }
  .navbar.navbar-mobile .mobile-nav-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    color: var(--text);
  }
  .navbar.navbar-mobile ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    gap: 8px;
  }
  .navbar.navbar-mobile a { font-size: 1.1rem; padding: 12px 20px; color: var(--text); }
  .nav-resume-btn { margin-left: 0 !important; }
  .navbar.navbar-mobile a::after { display: none; }
}

/* ============================================================
   6. HERO SECTION
   ============================================================ */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 25% 20%, rgba(124,58,237,0.14) 0%, transparent 55%),
              radial-gradient(ellipse at 75% 80%, rgba(6,182,212,0.11) 0%, transparent 55%),
              var(--bg);
}

/* Particles Canvas */
#particles-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.55;
}

/* Ambient Orbs */
.hero-orbs { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  animation: orbFloat 9s ease-in-out infinite;
}
.orb-1 { width: 480px; height: 480px; top: -160px; left: -160px; background: rgba(124, 58, 237, 0.16); animation-delay: 0s; }
.orb-2 { width: 380px; height: 380px; bottom: -120px; right: -120px; background: rgba(6, 182, 212, 0.13); animation-delay: -3.5s; }
.orb-3 { width: 280px; height: 280px; top: 55%; left: 48%; transform: translate(-50%, -50%); background: rgba(236, 72, 153, 0.07); animation-delay: -7s; }

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0); }
  33%       { transform: translate(25px, -18px); }
  66%       { transform: translate(-18px, 25px); }
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 110px 0 90px;
}
.hero-inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

/* Available Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(124, 58, 237, 0.13);
  border: 1px solid rgba(124, 58, 237, 0.28);
  border-radius: 50px;
  padding: 6px 18px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--purple-light);
  margin-bottom: 28px;
  letter-spacing: 0.4px;
}
.badge-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  animation: pulseDot 2s infinite;
}
@keyframes pulseDot {
  0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); }
  70%  { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* Hero Title */
.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 20px;
  letter-spacing: -1.5px;
}

/* Typed wrap */
.hero-typed-wrap {
  font-size: clamp(1.1rem, 2.8vw, 1.7rem);
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 24px;
  min-height: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.typed-prefix { color: var(--text-2); }
.typed { color: var(--cyan-light); }

/* Hero Description */
.hero-desc {
  font-size: 1rem;
  color: var(--text-2);
  line-height: 1.9;
  max-width: 580px;
  margin: 0 auto 36px;
}
.hero-desc strong { color: var(--text); font-weight: 600; }
.hero-desc br { display: none; }
@media (min-width: 576px) { .hero-desc br { display: block; } }

/* CTA Buttons */
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 52px;
}

.btn-primary-glow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--purple) 0%, var(--cyan) 100%);
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  transition: all 0.3s var(--ease);
  box-shadow: 0 0 22px var(--glow-p), 0 4px 18px rgba(0,0,0,0.3);
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary-glow:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 38px var(--glow-p), 0 8px 28px rgba(0,0,0,0.4);
  color: #fff;
}

.btn-outline-glow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  border: 1.5px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  backdrop-filter: blur(8px);
  transition: all 0.3s var(--ease);
  white-space: nowrap;
}
.btn-outline-glow:hover {
  border-color: var(--purple);
  background: rgba(124, 58, 237, 0.1);
  color: var(--text);
  transform: translateY(-3px);
  box-shadow: 0 0 22px var(--glow-p);
}

/* Hero Stats Bar */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 60px;
  padding: 16px 32px;
  backdrop-filter: blur(12px);
  width: fit-content;
  margin: 0 auto;
  gap: 0;
}
.hero-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 26px;
}
.stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--purple-light), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}
.stat-lbl {
  font-size: 0.68rem;
  color: var(--text-3);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-top: 3px;
}
.hero-stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
  flex-shrink: 0;
}

/* Scroll Hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.hero-scroll-hint a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-3);
  font-size: 0.7rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.3s;
}
.hero-scroll-hint a:hover { color: var(--cyan); }
.scroll-mouse {
  width: 22px;
  height: 36px;
  border: 2px solid rgba(255,255,255,0.18);
  border-radius: 20px;
  display: flex;
  justify-content: center;
  padding-top: 5px;
}
.scroll-dot {
  width: 3px;
  height: 7px;
  border-radius: 2px;
  background: var(--cyan);
  animation: scrollDot 2s ease-in-out infinite;
}
@keyframes scrollDot {
  0%   { transform: translateY(0);    opacity: 1; }
  100% { transform: translateY(12px); opacity: 0; }
}

/* ============================================================
   7. SECTIONS — SHARED STYLES
   ============================================================ */
.section { padding: 96px 0; }
.alt-bg { background-color: var(--bg-alt) !important; }

.section-header { text-align: center; margin-bottom: 60px; }

.section-tag {
  display: inline-block;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.22);
  color: var(--purple-light);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 50px;
  margin-bottom: 14px;
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
  margin-bottom: 12px;
  line-height: 1.15;
}

.section-subtitle {
  font-size: 0.98rem;
  color: var(--text-2);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================================================
   8. ABOUT SECTION
   ============================================================ */
.about-photo-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
.about-photo-glow {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,0.28) 0%, transparent 70%);
  filter: blur(35px);
  z-index: 0;
  pointer-events: none;
}
.about-photo {
  width: 210px;
  height: 210px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid transparent;
  background:
    linear-gradient(var(--bg), var(--bg)) padding-box,
    linear-gradient(135deg, var(--purple), var(--cyan)) border-box;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 40px var(--glow-p);
  animation: photoGlow 4s ease-in-out infinite alternate;
  display: block;
}
@keyframes photoGlow {
  from { box-shadow: 0 0 28px var(--glow-p); }
  to   { box-shadow: 0 0 55px var(--glow-c); }
}

.about-info-badges {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}
.info-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 15px;
  transition: all 0.3s var(--ease);
}
.info-badge:hover {
  background: var(--bg-card-h);
  border-color: var(--border-p);
  transform: translateX(4px);
}
.info-badge > i {
  font-size: 1rem;
  color: var(--purple-light);
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}
.ib-label { display: block; font-size: 0.68rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.8px; }
.ib-value { display: block; font-size: 0.83rem; color: var(--text); font-weight: 500; margin-top: 1px; word-break: break-all; }

/* About Right Side */
.about-content { padding-top: 8px; }

.about-heading {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 18px;
}
.about-text {
  color: var(--text-2) !important;
  margin-bottom: 14px;
  font-size: 0.95rem;
  line-height: 1.85;
}
.about-text strong { color: var(--text); }

/* Skills */
.skills-wrap { margin: 28px 0 32px; }
.skills-heading {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.skills-heading::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border-p), transparent);
}
.skill-item { margin-bottom: 13px; }
.skill-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.skill-name { font-size: 0.8rem; color: var(--text-2); }
.skill-pct  { font-size: 0.78rem; font-weight: 700; color: var(--purple-light); }
.skill-bar {
  height: 5px;
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  overflow: hidden;
}
.skill-fill {
  height: 100%;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  transition: width 1.2s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 0 6px var(--glow-p);
}

/* About Action Row */
.about-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.about-socials { display: flex; gap: 10px; align-items: center; }
.social-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  font-size: 0.9rem;
  transition: all 0.3s var(--ease);
  text-decoration: none;
}
.social-icon-btn:hover {
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  border-color: transparent;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 0 16px var(--glow-p);
}

/* ============================================================
   9. SERVICES SECTION
   ============================================================ */
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 26px;
  position: relative;
  overflow: hidden;
  transition: all 0.38s var(--ease);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124,58,237,0.06), rgba(6,182,212,0.03));
  opacity: 0;
  transition: opacity 0.38s;
  pointer-events: none;
}
.service-card:hover {
  background: var(--bg-card-h);
  border-color: var(--border-p);
  transform: translateY(-8px);
  box-shadow: 0 20px 55px rgba(0,0,0,0.3), 0 0 28px var(--glow-p);
}
.service-card:hover::before { opacity: 1; }
.service-card.featured {
  background: linear-gradient(135deg, rgba(124,58,237,0.1), rgba(6,182,212,0.05));
  border-color: rgba(124,58,237,0.3);
}

.svc-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(124,58,237,0.18), rgba(6,182,212,0.09));
  border: 1px solid rgba(124,58,237,0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--purple-light);
  margin-bottom: 20px;
  transition: all 0.3s var(--ease);
  flex-shrink: 0;
}
.service-card:hover .svc-icon-wrap {
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 18px var(--glow-p);
}
.svc-title { font-size: 1.05rem; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.svc-desc { font-size: 0.86rem; color: var(--text-2) !important; line-height: 1.8; margin-bottom: 18px; flex: 1; }
.svc-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-3);
  font-size: 0.85rem;
  transition: all 0.3s var(--ease);
  align-self: flex-start;
}
.service-card:hover .svc-arrow {
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  border-color: transparent;
  color: #fff;
  transform: rotate(45deg);
}

/* ============================================================
   10. COUNTER SECTION
   ============================================================ */
.counter-section {
  position: relative;
  padding: 72px 0;
  overflow: hidden;
  background: var(--bg-alt);
}
.counter-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124,58,237,0.07), rgba(6,182,212,0.05));
  pointer-events: none;
}
.counter-bg-overlay { display: none; }

.counter-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  transition: all 0.3s var(--ease);
  height: 100%;
}
.counter-box:hover {
  border-color: var(--border-p);
  transform: translateY(-4px);
  box-shadow: 0 10px 36px rgba(0,0,0,0.2), 0 0 18px var(--glow-p);
}
.counter-icon-wrap {
  font-size: 1.7rem;
  color: var(--cyan);
  margin-bottom: 12px;
}
.counter-num-wrap {
  display: flex;
  align-items: flex-start;
  gap: 1px;
  line-height: 1;
}
.counter {
  font-family: 'Space Grotesk', sans-serif !important;
  font-size: 2.5rem !important;
  font-weight: 800 !important;
  background: linear-gradient(135deg, var(--purple-light), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1 !important;
  margin-bottom: 0 !important;
  display: block;
}
.counter-suffix {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--purple-light), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.3;
}
.counter-label {
  font-size: 0.72rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 8px;
}

/* ============================================================
   11. PORTFOLIO SECTION
   ============================================================ */
.portfolio-filters {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 44px;
}
.filter-btn {
  padding: 8px 22px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-2);
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  font-family: var(--font);
}
.filter-btn:hover {
  border-color: var(--border-p);
  color: var(--text);
  background: rgba(124,58,237,0.09);
}
.filter-btn.active {
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 16px var(--glow-p);
}

/* Portfolio Grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

@media (max-width: 991px) {
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
  .portfolio-grid { grid-template-columns: 1fr; }
}

.portfolio-item {
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.portfolio-item.hidden {
  opacity: 0;
  transform: scale(0.92);
  pointer-events: none;
  display: none;
}

.portfolio-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.38s var(--ease);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.portfolio-card:hover {
  border-color: var(--border-p);
  transform: translateY(-6px);
  box-shadow: 0 20px 55px rgba(0,0,0,0.4), 0 0 28px var(--glow-p);
}

.portfolio-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  flex-shrink: 0;
}
.portfolio-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
  display: block;
}
.portfolio-card:hover .portfolio-img { transform: scale(1.08); }

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124,58,237,0.82), rgba(6,182,212,0.68));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.38s var(--ease);
}
.portfolio-card:hover .portfolio-overlay { opacity: 1; }

.overlay-btns { display: flex; gap: 12px; }
.ovr-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,0.14);
  border: 1.5px solid rgba(255,255,255,0.28);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  transition: all 0.3s var(--ease);
  transform: translateY(18px);
  opacity: 0;
  text-decoration: none;
}
.portfolio-card:hover .ovr-btn { transform: translateY(0); opacity: 1; }
.portfolio-card:hover .ovr-btn:nth-child(2) { transition-delay: 0.06s; }
.ovr-btn:hover { background: rgba(255,255,255,0.28); transform: scale(1.1) !important; color: #fff; }

.portfolio-info { padding: 16px 18px 18px; }
.ptag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 50px;
  margin-bottom: 8px;
}
.game-tag  { background: rgba(124,58,237,0.14); color: var(--purple-light); border: 1px solid rgba(124,58,237,0.2); }
.web3-tag  { background: rgba(6,182,212,0.12);  color: var(--cyan);         border: 1px solid rgba(6,182,212,0.2); }
.arvr-tag  { background: rgba(236,72,153,0.12); color: var(--pink);          border: 1px solid rgba(236,72,153,0.2); }
.live-tag  { background: rgba(34,197,94,0.12);  color: #4ade80;              border: 1px solid rgba(34,197,94,0.2); }

.ptitle {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.45;
}
.pdate {
  font-size: 0.75rem;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ============================================================
   12. TESTIMONIALS
   ============================================================ */
.testimonials-section { padding: 96px 0; background-color: var(--bg-alt); }

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 38px 34px;
  max-width: 680px;
  margin: 0 auto 32px;
}
.testi-quote {
  font-size: 2.8rem;
  line-height: 1;
  background: linear-gradient(135deg, var(--purple-light), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 14px;
}
.testi-text { font-size: 0.97rem; color: var(--text-2) !important; line-height: 1.85; font-style: italic; margin-bottom: 22px; }
.testi-stars { margin-bottom: 20px; }
.testi-stars i { color: #fbbf24; font-size: 0.88rem; }
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border-p); flex-shrink: 0; }
.author-name { display: block; font-weight: 700; color: var(--text); font-size: 0.92rem; }
.author-role { display: block; font-size: 0.75rem; color: var(--text-3); }

/* Swiper Pagination Override */
.swiper-pagination { margin-top: 10px; position: relative !important; bottom: auto !important; }
.swiper-pagination-bullet {
  background: rgba(255,255,255,0.2) !important;
  opacity: 1 !important;
  width: 8px !important;
  height: 8px !important;
}
.swiper-pagination-bullet-active {
  background: linear-gradient(135deg, var(--purple), var(--cyan)) !important;
  width: 24px !important;
  border-radius: 4px !important;
}

/* ============================================================
   13. BLOG SECTION
   ============================================================ */
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.38s var(--ease);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  border-color: var(--border-p);
  transform: translateY(-6px);
  box-shadow: 0 20px 55px rgba(0,0,0,0.3), 0 0 24px var(--glow-p);
}
.blog-img-wrap { position: relative; overflow: hidden; aspect-ratio: 16 / 9; flex-shrink: 0; }
.blog-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); display: block; }
.blog-card:hover .blog-img { transform: scale(1.06); }

.blog-cat-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 50px;
  z-index: 1;
}
.ai-badge   { background: rgba(124,58,237,0.92); color: #fff; }
.meta-badge { background: rgba(6,182,212,0.92);  color: #fff; }
.web3-badge { background: rgba(236,72,153,0.92); color: #fff; }

.blog-body {
  padding: 20px 20px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-title { font-size: 0.97rem; font-weight: 700; margin-bottom: 10px; line-height: 1.5; }
.blog-title a { color: var(--text); transition: color 0.3s; }
.blog-title a:hover { color: var(--purple-light); }
.blog-excerpt { font-size: 0.83rem; color: var(--text-2) !important; line-height: 1.75; flex: 1; margin-bottom: 14px; }
.blog-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: auto;
}
.blog-author { display: flex; align-items: center; gap: 8px; font-size: 0.78rem; color: var(--text-2); }
.blog-avatar { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.blog-read-more {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--purple-light);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.3s var(--ease);
  text-decoration: none;
}
.blog-read-more:hover { color: var(--cyan); gap: 8px; }

/* ============================================================
   14. CONTACT SECTION
   ============================================================ */
.contact-info-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 32px; }

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  transition: all 0.3s var(--ease);
}
.contact-info-item:hover { border-color: var(--border-p); background: var(--bg-card-h); }

.ci-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(124,58,237,0.18), rgba(6,182,212,0.09));
  border: 1px solid rgba(124,58,237,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--purple-light);
  flex-shrink: 0;
}
.contact-info-item h4 { font-size: 0.75rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 3px; font-weight: 600; }
.contact-info-item p { font-size: 0.88rem; color: var(--text) !important; margin: 0; }
.contact-info-item a { color: var(--text); transition: color 0.3s; }
.contact-info-item a:hover { color: var(--cyan); }

.contact-social-wrap h4 { font-size: 0.88rem; font-weight: 700; color: var(--text); margin-bottom: 12px; }

.social-links-row { display: flex; gap: 10px; flex-wrap: wrap; }
.social-link-btn {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text-2);
  transition: all 0.3s var(--ease);
  text-decoration: none;
}
.social-link-btn:hover { color: #fff; transform: translateY(-3px); border-color: transparent; }
.social-link-btn.fb:hover { background: #1877f2; box-shadow: 0 0 14px rgba(24,119,242,0.4); }
.social-link-btn.ig:hover { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.social-link-btn.tw:hover { background: #0f0f0f; box-shadow: 0 0 14px rgba(255,255,255,0.1); }
.social-link-btn.li:hover { background: #0a66c2; box-shadow: 0 0 14px rgba(10,102,194,0.4); }
.social-link-btn.gh:hover { background: #333; box-shadow: 0 0 14px rgba(255,255,255,0.15); }

/* Contact Form */
.contact-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 38px 34px;
}
@media (max-width: 576px) { .contact-form-wrap { padding: 24px 18px; } }

.form-group-modern { display: flex; flex-direction: column; gap: 6px; }
.form-group-modern label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-3);
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.form-input {
  background: rgba(255,255,255,0.04) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-sm) !important;
  padding: 11px 15px !important;
  color: var(--text) !important;
  font-family: var(--font) !important;
  font-size: 0.9rem !important;
  transition: all 0.3s var(--ease) !important;
  width: 100%;
  outline: none !important;
  box-shadow: none !important;
}
.form-input::placeholder { color: var(--text-3) !important; }
.form-input:focus {
  border-color: var(--purple) !important;
  background: rgba(124,58,237,0.05) !important;
  box-shadow: 0 0 0 3px rgba(124,58,237,0.1) !important;
}
.form-textarea { resize: vertical; min-height: 120px; }

.btn-submit { border: none; cursor: pointer; margin-top: 6px; }

.loading, .error-message, .sent-message { display: none; margin-bottom: 12px; font-size: 0.88rem; }
.loading { color: var(--cyan); }
.error-message { color: #ef4444; }
.sent-message { color: #22c55e; }

/* ============================================================
   15. FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg);
  padding: 36px 0;
}
.footer-top-line {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--purple), var(--cyan), transparent);
  margin-bottom: 36px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-name { font-family: 'Space Grotesk', sans-serif; font-weight: 700; color: var(--text); font-size: 0.95rem; }
.footer-copy { font-size: 0.8rem; color: var(--text-3); }
.footer-copy .bi-heart-fill { color: #ef4444; }
.footer-nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-nav a { font-size: 0.8rem; color: var(--text-3); transition: color 0.3s; text-decoration: none; }
.footer-nav a:hover { color: var(--purple-light); }

/* ============================================================
   16. RESPONSIVE HELPERS
   ============================================================ */
@media (max-width: 991px) {
  .section { padding: 72px 0; }
  .hero-stats { padding: 14px 20px; }
  .hero-stat-item { padding: 0 16px; }
  .about-photo { width: 180px; height: 180px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-nav { justify-content: center; }
}

@media (max-width: 767px) {
  .hero-title { font-size: 2.2rem; letter-spacing: -0.8px; }
  .hero-stats {
    flex-wrap: wrap;
    border-radius: var(--radius);
    padding: 18px 16px;
    gap: 14px 0;
  }
  .hero-stat-divider { display: none; }
  .hero-stat-item { padding: 6px 16px; width: 50%; }
  .hero-actions { flex-direction: column; align-items: center; }
  .btn-primary-glow,
  .btn-outline-glow { width: 100%; max-width: 290px; justify-content: center; }
  .testimonial-card { padding: 26px 20px; }
  .about-content { margin-top: 28px; }
}

@media (max-width: 480px) {
  .hero-badge { font-size: 0.72rem; padding: 5px 13px; }
  .section-title { font-size: 1.75rem; }
  .section-tag { font-size: 0.68rem; }
  .hero-stat-item { width: 50%; }
}

/* ============================================================
   18. WORK EXPERIENCE TIMELINE
   ============================================================ */
.experience-section { background-color: var(--bg) !important; }

.exp-timeline {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding-left: 40px;
}

/* Vertical line */
.exp-timeline::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--purple), var(--cyan), transparent);
  border-radius: 2px;
}

/* Each row */
.exp-item {
  position: relative;
  margin-bottom: 32px;
}
.exp-item:last-child { margin-bottom: 0; }

/* Dot on timeline */
.exp-dot {
  position: absolute;
  left: -33px;
  top: 26px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--border-p);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: border-color 0.3s var(--ease);
}
.exp-item:hover .exp-dot { border-color: var(--cyan); }
.exp-dot-inner {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  animation: dotPulse 2.5s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.5); opacity: 0.6; }
}

/* Card */
.exp-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 28px;
  transition: all 0.38s var(--ease);
  position: relative;
  overflow: hidden;
}
.exp-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--purple), var(--cyan));
  border-radius: 3px 0 0 3px;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.exp-card:hover {
  background: var(--bg-card-h);
  border-color: var(--border-p);
  transform: translateX(6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.25), 0 0 20px var(--glow-p);
}
.exp-card:hover::before { opacity: 1; }

/* Current job — special glow */
.exp-card.current {
  border-color: rgba(124, 58, 237, 0.28);
  background: linear-gradient(135deg, rgba(124,58,237,0.07), rgba(6,182,212,0.03));
}
.exp-card.current::before { opacity: 1; }

/* Meta row (badge + date) */
.exp-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.exp-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 50px;
}
.current-badge {
  background: rgba(34, 197, 94, 0.14);
  color: #4ade80;
  border: 1px solid rgba(34,197,94,0.25);
}
.current-badge i { font-size: 0.5rem; animation: dotPulse 2s infinite; }
.intern-badge {
  background: rgba(6,182,212,0.12);
  color: var(--cyan);
  border: 1px solid rgba(6,182,212,0.22);
}

.exp-date {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: var(--text-3);
}
.exp-duration {
  font-size: 0.72rem;
  color: var(--text-3);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  padding: 2px 10px;
  border-radius: 50px;
}

/* Title row */
.exp-role {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -0.2px;
}

.exp-company {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--purple-light);
  font-weight: 500;
  margin-bottom: 16px;
}
.exp-company > i { font-size: 0.9rem; color: var(--purple-light); }
.exp-location {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  color: var(--text-3);
  font-weight: 400;
}

/* Bullet points */
.exp-points {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.exp-points li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-2) !important;
  line-height: 1.7;
}
.exp-points li i {
  font-size: 0.7rem;
  color: var(--cyan);
  margin-top: 5px;
  flex-shrink: 0;
}

/* Tech tags */
.exp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.exp-tag {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-2);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  padding: 3px 11px;
  border-radius: 50px;
  letter-spacing: 0.3px;
  transition: all 0.25s var(--ease);
}
.exp-card:hover .exp-tag {
  border-color: rgba(124,58,237,0.2);
  color: var(--text);
  background: rgba(124,58,237,0.06);
}

@media (max-width: 576px) {
  .exp-timeline { padding-left: 28px; }
  .exp-timeline::before { left: 8px; }
  .exp-dot { left: -25px; width: 14px; height: 14px; }
  .exp-dot-inner { width: 5px; height: 5px; }
  .exp-card { padding: 20px 18px; }
  .exp-role { font-size: 1rem; }
}

/* ============================================================
   19. ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}