/* =============================================
   SMBK PORTFOLIO — FULL MAZEDAAR CSS
   ============================================= */

/* ---- CSS Variables ---- */
:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --secondary: #06b6d4;
  --accent: #f59e0b;
  --success: #10b981;
  --bg: #0a0a0f;
  --bg-2: #111127;
  --bg-3: #1a1a2e;
  --surface: rgba(255,255,255,0.04);
  --surface-hover: rgba(255,255,255,0.08);
  --border: rgba(255,255,255,0.08);
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --font-heading: 'Orbitron', monospace;
  --font-body: 'Space Grotesk', sans-serif;
  --font-mono: 'Rajdhani', sans-serif;
  --glow: 0 0 40px rgba(99,102,241,0.3);
  --glow-strong: 0 0 80px rgba(99,102,241,0.5);
  --shadow: 0 25px 50px rgba(0,0,0,0.5);
  --radius: 16px;
  --radius-lg: 24px;
  --transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
}

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

html, body {
  max-width: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  cursor: none;
  position: relative;
  width: 100%;
}

/* Force cursor:none on EVERY interactive element */
a, button, input, textarea, select, label,
[data-tilt], .nav-link, .btn-primary, .btn-secondary,
.btn-outline, .btn-hire, .social-link, .project-card,
.cert-card, .soft-skill, .lang-bubble, .db-card,
.contact-link-item, .skill-bar-item, .hamburger,
#back-to-top, .overlay-btn, .project-link,
.orbit-planet, .float-stat, .footer-socials a {
  cursor: none !important;
}

a { text-decoration:none; color:inherit; }
ul { list-style:none; }
img { max-width:100%; }

/* =============================================
   LOADER
   ============================================= */
#loader {
  position:fixed; inset:0;
  background: var(--bg);
  z-index:9999;
  display:flex;
  align-items:center;
  justify-content:center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#loader.hidden { opacity:0; visibility:hidden; }

.loader-content { text-align:center; }
.loader-logo {
  font-family: var(--font-heading);
  font-size:4rem;
  font-weight:900;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip:text;
  animation: pulse-logo 1s ease infinite alternate;
  margin-bottom:2rem;
}
@keyframes pulse-logo {
  from { filter: drop-shadow(0 0 20px rgba(99,102,241,0.5)); }
  to   { filter: drop-shadow(0 0 60px rgba(6,182,212,0.8)); }
}
.loader-bar {
  width:200px; height:4px;
  background: rgba(255,255,255,0.1);
  border-radius:99px;
  overflow:hidden;
  margin:0 auto 1rem;
}
.loader-progress {
  height:100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius:99px;
  animation: load-fill 2s ease forwards;
}
@keyframes load-fill { from{width:0} to{width:100%} }
.loader-text {
  font-family: var(--font-mono);
  font-size:0.85rem;
  letter-spacing:0.2em;
  color: var(--text-muted);
}

/* =============================================
   CUSTOM CURSOR — MAZEDAAR EDITION
   ============================================= */

/* Inner glowing dot */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow:
    0 0 8px  rgba(99,102,241,0.9),
    0 0 20px rgba(6,182,212,0.6),
    0 0 40px rgba(99,102,241,0.3);
  pointer-events: none;
  z-index: 10001;
  opacity: 0;
  transition: width 0.2s ease, height 0.2s ease, opacity 0.2s ease, background 0.2s ease;
  will-change: transform;
}

/* Outer animated ring container */
.cursor-follower {
  position: fixed;
  top: 0;
  left: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  opacity: 0;
  transition:
    width   0.25s cubic-bezier(0.4,0,0.2,1),
    height  0.25s cubic-bezier(0.4,0,0.2,1),
    opacity 0.25s ease;
  will-change: transform;
}

.cursor-follower-ring {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    var(--primary) 0%,
    var(--secondary) 30%,
    transparent 50%,
    var(--primary) 70%,
    var(--secondary) 100%
  );
  animation: ring-spin 2s linear infinite;
  -webkit-mask:
    radial-gradient(farthest-side, transparent calc(100% - 2px), #fff calc(100% - 2px));
  mask:
    radial-gradient(farthest-side, transparent calc(100% - 2px), #fff calc(100% - 2px));
}

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

/* Hover state: inner dot shrinks + outer ring expands + changes color */
.cursor.hovering {
  width: 6px;
  height: 6px;
  background: var(--secondary);
  box-shadow:
    0 0 10px rgba(6,182,212,1),
    0 0 30px rgba(6,182,212,0.7),
    0 0 60px rgba(6,182,212,0.3);
}
.cursor-follower.hovering {
  width: 56px;
  height: 56px;
}
.cursor-follower.hovering .cursor-follower-ring {
  background: conic-gradient(
    from 0deg,
    var(--secondary) 0%,
    var(--primary) 30%,
    transparent 50%,
    var(--secondary) 70%,
    var(--primary) 100%
  );
  animation-duration: 0.8s;
}

/* Click burst */
.cursor.clicking {
  width: 5px;
  height: 5px;
  opacity: 0.6;
}
.cursor-follower.clicking {
  width: 68px;
  height: 68px;
  opacity: 0.4;
}

/* =============================================
   PARTICLES
   ============================================= */
#particles-js {
  position:fixed; inset:0;
  z-index:0;
  pointer-events:none;
}

/* =============================================
   NAVIGATION
   ============================================= */
#navbar {
  position:fixed; top:0; left:0; right:0;
  z-index:1000;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:1rem max(1.5rem, calc((100vw - min(1200px, 92vw)) / 2));
  background: rgba(10,10,15,0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
#navbar.scrolled {
  padding:0.7rem max(1.5rem, calc((100vw - min(1200px, 92vw)) / 2));
  background: rgba(10,10,15,0.92);
  box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}
.nav-logo {
  font-family: var(--font-heading);
  font-size:1.5rem;
  font-weight:900;
  color: var(--primary-light);
  letter-spacing:0.1em;
}
.logo-bracket { color: var(--secondary); }
.nav-links { display:flex; gap:1.75rem; }
.nav-link {
  font-family: var(--font-mono);
  font-size:0.9rem;
  font-weight:600;
  letter-spacing:0.1em;
  color: var(--text-muted);
  text-transform:uppercase;
  transition: var(--transition);
  position:relative;
}
.nav-link::after {
  content:'';
  position:absolute; bottom:-4px; left:0; right:0;
  height:2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius:99px;
  transform:scaleX(0);
  transition: transform 0.3s ease;
}
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link:hover::after, .nav-link.active::after { transform:scaleX(1); }

.btn-hire {
  padding:0.5rem 1.5rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-radius:8px;
  font-family: var(--font-mono);
  font-size:0.85rem;
  font-weight:600;
  letter-spacing:0.1em;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(99,102,241,0.3);
}
.btn-hire:hover {
  transform:translateY(-2px);
  box-shadow: 0 8px 30px rgba(99,102,241,0.5);
}

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

.nav-overlay {
  display:none;
  position:fixed; inset:0;
  background:rgba(0,0,0,0.5);
  z-index:800;
}

/* =============================================
   COMMON SECTION STYLES
   ============================================= */
section {
  position: relative;
  z-index: 1;
  padding: 100px 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}
.section-container {
  max-width: min(1200px, 92vw);
  margin-inline: auto;
  width: 100%;
  padding: 0;
}
.section-header { text-align:center; margin-bottom:4rem; }
.section-tag {
  display:inline-block;
  font-family: var(--font-mono);
  font-size:0.8rem;
  font-weight:700;
  letter-spacing:0.3em;
  text-transform:uppercase;
  color: var(--primary-light);
  background: rgba(99,102,241,0.1);
  padding:0.4rem 1.2rem;
  border-radius:99px;
  border:1px solid rgba(99,102,241,0.2);
  margin-bottom:1rem;
}
.section-title {
  font-family: var(--font-heading);
  font-size:clamp(2rem, 4vw, 3rem);
  font-weight:900;
  letter-spacing:0.05em;
  line-height:1.1;
  margin-bottom:1rem;
}
.title-line {
  width:60px; height:4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius:99px;
  margin:0 auto;
}
.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn-primary {
  display:inline-flex;
  align-items:center;
  gap:0.6rem;
  padding:0.85rem 2rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color:white;
  border-radius:12px;
  font-family: var(--font-mono);
  font-size:0.95rem;
  font-weight:700;
  letter-spacing:0.05em;
  border:none;
  cursor:pointer;
  transition: var(--transition);
  box-shadow: 0 8px 25px rgba(99,102,241,0.35);
  position:relative;
  overflow:hidden;
}
.btn-primary::before {
  content:'';
  position:absolute; inset:0;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  opacity:0;
  transition: opacity 0.4s;
}
.btn-primary:hover { transform:translateY(-3px); box-shadow:var(--glow-strong); }
.btn-primary:hover::before { opacity:1; }
.btn-primary span, .btn-primary i { position:relative; z-index:1; }

.btn-secondary {
  display:inline-flex;
  align-items:center;
  gap:0.6rem;
  padding:0.85rem 2rem;
  background: transparent;
  color: var(--text);
  border-radius:12px;
  font-family: var(--font-mono);
  font-size:0.95rem;
  font-weight:700;
  letter-spacing:0.05em;
  border:1px solid var(--border);
  transition: var(--transition);
}
.btn-secondary:hover {
  background: var(--surface-hover);
  border-color: var(--primary);
  transform:translateY(-3px);
  box-shadow: var(--glow);
}

.btn-outline {
  display:inline-flex;
  align-items:center;
  gap:0.6rem;
  padding:0.85rem 2rem;
  background: transparent;
  color: var(--primary-light);
  border-radius:12px;
  font-family: var(--font-mono);
  font-size:0.95rem;
  font-weight:700;
  border:1px solid rgba(99,102,241,0.4);
  transition: var(--transition);
}
.btn-outline:hover {
  background: rgba(99,102,241,0.1);
  border-color: var(--primary);
  transform:translateY(-3px);
}

/* =============================================
   HERO SECTION
   ============================================= */
#hero {
  position:relative;
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:2.5rem;
  max-width:min(1200px, 92vw);
  margin-inline:auto;
  padding:120px 0 80px;
  overflow:visible;
  width:100%;
}
#hero-canvas {
  position:fixed; inset:0;
  z-index:0;
  opacity:0.4;
  pointer-events:none;
}

.hero-content {
  position:relative;
  z-index:2;
  flex:1 1 520px;
  max-width:620px;
  min-width:0;
}

.hero-badge {
  display:inline-flex;
  align-items:center;
  gap:0.6rem;
  padding:0.5rem 1.2rem;
  background: rgba(16,185,129,0.1);
  border:1px solid rgba(16,185,129,0.3);
  border-radius:99px;
  font-size:0.8rem;
  font-weight:600;
  color: var(--success);
  margin-bottom:1.5rem;
  animation: badge-glow 2s ease infinite alternate;
}
@keyframes badge-glow {
  from { box-shadow:0 0 10px rgba(16,185,129,0.2); }
  to   { box-shadow:0 0 30px rgba(16,185,129,0.5); }
}
.badge-dot {
  width:8px; height:8px;
  background: var(--success);
  border-radius:50%;
  animation: dot-pulse 1.5s ease infinite;
}
@keyframes dot-pulse {
  0%,100% { transform:scale(1); opacity:1; }
  50% { transform:scale(1.5); opacity:0.5; }
}

.hero-greeting {
  font-family: var(--font-mono);
  font-size:1.1rem;
  font-weight:600;
  color: var(--text-muted);
  letter-spacing:0.15em;
  margin-bottom:0.5rem;
}

.hero-name {
  font-family: var(--font-heading);
  font-size:clamp(2.2rem, 4.2vw, 3.8rem);
  font-weight:900;
  line-height:1.1;
  letter-spacing:0.02em;
  margin-bottom:1rem;
}
.name-line { display:block; }
.name-line:first-child {
  animation: slide-in-left 1s ease both;
}
.name-line.gradient-text {
  animation: slide-in-left 1s 0.2s ease both;
}
@keyframes slide-in-left {
  from { opacity:0; transform:translateX(-60px); }
  to   { opacity:1; transform:translateX(0); }
}

.hero-typed {
  font-family: var(--font-mono);
  font-size:clamp(1rem, 2vw, 1.3rem);
  font-weight:600;
  color: var(--secondary);
  min-height:2em;
  margin-bottom:1.2rem;
  letter-spacing:0.1em;
}

.hero-desc {
  color: var(--text-muted);
  font-size:1rem;
  line-height:1.7;
  margin-bottom:2.5rem;
}

.hero-btns { display:flex; gap:1rem; flex-wrap:wrap; margin-bottom:2rem; }

.hero-socials { display:flex; gap:1rem; }
.social-link {
  width:44px; height:44px;
  border-radius:12px;
  border:1px solid var(--border);
  display:flex; align-items:center; justify-content:center;
  color: var(--text-muted);
  font-size:1rem;
  transition: var(--transition);
  background: var(--surface);
}
.social-link:hover {
  background: var(--primary);
  border-color: var(--primary);
  color:white;
  transform:translateY(-4px) scale(1.1);
  box-shadow: var(--glow);
}

/* Hero 3D Card */
.hero-3d-card {
  position:relative;
  z-index:2;
  flex-shrink:0;
}
.card-inner {
  background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(6,182,212,0.08));
  border:1px solid rgba(99,102,241,0.3);
  border-radius:var(--radius-lg);
  padding:2.5rem;
  backdrop-filter:blur(20px);
  box-shadow: var(--shadow), 0 0 60px rgba(99,102,241,0.15);
  min-width:280px;
  transform-style:preserve-3d;
}

.card-avatar {
  position:relative;
  width:140px; height:140px;
  margin:0 auto 2rem;
  display:flex;
  align-items:center;
  justify-content:center;
}
.avatar-ring {
  position:absolute; inset:-8px;
  border-radius:50%;
  border:3px solid transparent;
  background: linear-gradient(135deg, var(--primary), var(--secondary)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  animation: ring-rotate 4s linear infinite;
}
@keyframes ring-rotate { to { transform:rotate(360deg); } }

.avatar-core {
  width:120px; height:120px;
  border-radius:50%;
  background: linear-gradient(135deg, var(--primary-dark), var(--bg-3));
  display:flex; align-items:center; justify-content:center;
  font-family:var(--font-heading);
  font-size:2rem;
  font-weight:900;
  color:white;
  box-shadow: 0 0 40px rgba(99,102,241,0.4);
}

.avatar-orbit {
  position:absolute;
  border-radius:50%;
  border:1px solid rgba(99,102,241,0.3);
}
.orbit1 {
  width:160px; height:160px;
  top:50%; left:50%;
  transform:translate(-50%,-50%);
  animation: orbit-spin 8s linear infinite;
}
.orbit2 {
  width:190px; height:190px;
  top:50%; left:50%;
  transform:translate(-50%,-50%);
  animation: orbit-spin 12s linear infinite reverse;
}
@keyframes orbit-spin {
  to { transform:translate(-50%,-50%) rotate(360deg); }
}

.card-info {
  display:flex;
  gap:1.5rem;
  justify-content:center;
  align-items:center;
}
.card-stat { text-align:center; }
.stat-val {
  font-family: var(--font-heading), 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.8rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  line-height: 1.2;
}
.stat-label {
  font-size:0.7rem;
  font-weight:600;
  letter-spacing:0.1em;
  color:var(--text-muted);
  text-transform:uppercase;
}
.card-divider {
  width:1px; height:40px;
  background: var(--border);
}

.hero-scroll-indicator {
  position:absolute;
  bottom:2rem; left:50%;
  transform:translateX(-50%);
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:0.5rem;
  color:var(--text-muted);
  font-size:0.75rem;
  letter-spacing:0.2em;
  text-transform:uppercase;
  animation: scroll-bounce 2s ease infinite;
}
.scroll-dot {
  width:8px; height:8px;
  border-radius:50%;
  background: var(--primary);
  animation: dot-scroll 2s ease infinite;
}
@keyframes scroll-bounce {
  0%,100% { opacity:0.5; transform:translateX(-50%) translateY(0); }
  50% { opacity:1; transform:translateX(-50%) translateY(-10px); }
}
@keyframes dot-scroll {
  0%,100% { opacity:0.3; }
  50% { opacity:1; box-shadow: var(--glow); }
}

/* =============================================
   ABOUT SECTION
   ============================================= */
#about {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}

.about-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:5rem;
  align-items:center;
}

.about-visual {
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
}

.about-orbit-system {
  position:relative;
  width:320px; height:320px;
}
.orbit-center {
  position:absolute; top:50%; left:50%;
  transform:translate(-50%,-50%);
  z-index:5;
}
.orbit-avatar {
  width:90px; height:90px;
  border-radius:50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display:flex; align-items:center; justify-content:center;
  font-family:var(--font-heading);
  font-size:1.5rem;
  font-weight:900;
  color:white;
  box-shadow: 0 0 50px rgba(99,102,241,0.6);
  animation: float-avatar 4s ease infinite;
}
@keyframes float-avatar {
  0%,100% { transform:translateY(0) scale(1); }
  50% { transform:translateY(-12px) scale(1.05); }
}

.orbit-ring {
  position:absolute; top:50%; left:50%;
  border-radius:50%;
  border:1px dashed rgba(99,102,241,0.3);
  display:flex; align-items:flex-start; justify-content:center;
}
.ring-1 {
  width:160px; height:160px;
  transform:translate(-50%,-50%);
  animation:orbit-spin 6s linear infinite;
}
.ring-2 {
  width:230px; height:230px;
  transform:translate(-50%,-50%);
  animation:orbit-spin 10s linear infinite reverse;
}
.ring-3 {
  width:310px; height:310px;
  transform:translate(-50%,-50%);
  animation:orbit-spin 16s linear infinite;
}
.orbit-planet {
  width:40px; height:40px;
  border-radius:50%;
  background: var(--bg-3);
  border:2px solid var(--primary);
  display:flex; align-items:center; justify-content:center;
  color: var(--primary-light);
  font-size:0.9rem;
  margin-top:-20px;
  transition: var(--transition);
  animation: counter-rotate 1s linear infinite;
}
.ring-1 .orbit-planet { animation: counter-orbit 6s linear infinite; }
.ring-2 .orbit-planet { animation: counter-orbit 10s linear infinite reverse; }
.ring-3 .orbit-planet { animation: counter-orbit 16s linear infinite; }

@keyframes counter-orbit {
  to { transform: rotate(-360deg); }
}
.orbit-planet:hover { background:var(--primary); color:white; }

.about-stats-floating {
  position:absolute;
  bottom:-20px; right:-20px;
  display:flex;
  flex-direction:column;
  gap:1rem;
}
.float-stat {
  display:flex; align-items:center; gap:1rem;
  background: rgba(10,10,15,0.85);
  border:1px solid var(--border);
  border-radius:12px;
  padding:0.8rem 1.2rem;
  backdrop-filter:blur(10px);
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.float-stat:hover { border-color:var(--primary); transform:translateX(5px); }
.float-icon {
  width:38px; height:38px;
  border-radius:10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display:flex; align-items:center; justify-content:center;
  color:white;
  font-size:0.9rem;
}
.float-val {
  font-family:var(--font-heading);
  font-size:1.3rem;
  font-weight:900;
  color:var(--primary-light);
}
.float-lbl {
  font-size:0.7rem;
  font-weight:600;
  color:var(--text-muted);
  letter-spacing:0.1em;
  text-transform:uppercase;
}

/* About content */
.about-content h3 {
  font-family:var(--font-heading);
  font-size:1.5rem;
  font-weight:700;
  color:var(--text);
  margin-bottom:1.5rem;
  line-height:1.4;
}
.about-text {
  color:var(--text-muted);
  line-height:1.8;
  margin-bottom:1.2rem;
  font-size:0.95rem;
}
.about-text strong { color:var(--text); }

.about-info-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:1rem;
  margin:2rem 0;
}
.info-item {
  display:flex;
  flex-direction:column;
  gap:0.2rem;
  padding:0.8rem 1rem;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:10px;
  transition:var(--transition);
}
.info-item:hover { border-color:var(--primary); background:var(--surface-hover); }
.info-label {
  font-size:0.75rem;
  font-weight:700;
  letter-spacing:0.1em;
  text-transform:uppercase;
  color:var(--primary-light);
}
.info-label i { margin-right:0.4rem; }
.info-val {
  font-size:0.85rem;
  color:var(--text-muted);
  word-break:break-all;
}

.about-btns { display:flex; gap:1rem; flex-wrap:wrap; }

/* =============================================
   SKILLS SECTION
   ============================================= */
#skills {
  background: var(--bg-2);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.skill-category {
  background: var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:2rem;
  transition:var(--transition);
}
.skill-category:hover {
  border-color:rgba(99,102,241,0.4);
  background:var(--surface-hover);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3), 0 0 20px rgba(99,102,241,0.1);
}

.skill-cat-header {
  display:flex;
  align-items:center;
  gap:1rem;
  margin-bottom:1.5rem;
}
.skill-cat-icon {
  width:46px; height:46px;
  border-radius:12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display:flex; align-items:center; justify-content:center;
  color:white;
  font-size:1.1rem;
  flex-shrink:0;
  box-shadow: 0 0 20px rgba(99,102,241,0.4);
}
.skill-cat-header h3 {
  font-family:var(--font-heading);
  font-size:1rem;
  font-weight:700;
  color:var(--text);
}

/* Skill bars */
.skill-bars { display:flex; flex-direction:column; gap:1.2rem; }
.skill-bar-item {}
.skill-bar-header {
  display:flex;
  justify-content:space-between;
  margin-bottom:0.4rem;
  font-size:0.85rem;
  font-weight:600;
}
.skill-pct { color:var(--primary-light); }
.bar-bg {
  height:8px;
  background:rgba(255,255,255,0.06);
  border-radius:99px;
  overflow:hidden;
}
.bar-fill {
  height:100%;
  width:0;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius:99px;
  transition: width 1.5s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 0 10px rgba(99,102,241,0.5);
}

/* Language bubbles */
.lang-bubbles {
  display:flex;
  flex-wrap:wrap;
  gap:0.8rem;
}
.lang-bubble {
  display:flex;
  align-items:center;
  gap:0.5rem;
  padding:0.6rem 1.2rem;
  background: rgba(255,255,255,0.04);
  border:1px solid var(--border);
  border-radius:99px;
  font-size:0.85rem;
  font-weight:600;
  transition:var(--transition);
  cursor:default;
}
.lang-bubble span:first-child { font-size:1.1rem; }
.lang-bubble:hover {
  background: rgba(var(--clr, 99 102 241) / 0.15);
  border-color: var(--clr, var(--primary));
  transform:translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

/* DB grid */
.db-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:1rem;
}
.db-card {
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:0.4rem;
  padding:1rem;
  background:rgba(255,255,255,0.03);
  border:1px solid var(--border);
  border-radius:12px;
  text-align:center;
  font-size:0.85rem;
  font-weight:600;
  transition:var(--transition);
  cursor:default;
}
.db-card i { font-size:1.5rem; color:var(--primary-light); }
.db-card:hover {
  background:rgba(99,102,241,0.1);
  border-color:rgba(99,102,241,0.4);
  transform:translateY(-4px);
  box-shadow: var(--glow);
}
.db-sub { font-size:0.7rem; color:var(--text-muted); font-weight:400; }

/* AI tags */
.ai-skills { display:flex; flex-wrap:wrap; gap:0.7rem; }
.ai-skill-tag {
  display:flex;
  align-items:center;
  gap:0.4rem;
  padding:0.5rem 1rem;
  background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(6,182,212,0.08));
  border:1px solid rgba(99,102,241,0.25);
  border-radius:8px;
  font-size:0.82rem;
  font-weight:600;
  color:var(--primary-light);
  transition:var(--transition);
  cursor:default;
}
.ai-skill-tag i { color:var(--secondary); }
.ai-skill-tag:hover {
  background:linear-gradient(135deg, rgba(99,102,241,0.2), rgba(6,182,212,0.15));
  border-color:var(--primary);
  transform:translateY(-3px);
}

/* Soft skills */
.soft-skills-section {}
.soft-title {
  font-family:var(--font-heading);
  font-size:1.1rem;
  font-weight:700;
  text-align:center;
  margin-bottom:2rem;
  color:var(--text-muted);
  letter-spacing:0.15em;
  text-transform:uppercase;
}
.soft-skills-row {
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:1.5rem;
}
.soft-skill {
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:0.7rem;
  padding:1.5rem 1.2rem;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius);
  min-width:110px;
  text-align:center;
  transition:var(--transition);
  cursor:default;
}
.soft-icon {
  width:50px; height:50px;
  border-radius:50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display:flex; align-items:center; justify-content:center;
  font-size:1.2rem;
  color:white;
  box-shadow: 0 0 20px rgba(99,102,241,0.4);
}
.soft-skill span { font-size:0.8rem; font-weight:600; color:var(--text-muted); }
.soft-skill:hover {
  border-color:var(--primary);
  transform:translateY(-8px) scale(1.05);
  box-shadow: var(--glow), var(--shadow);
}
.soft-skill:hover .soft-icon { box-shadow: var(--glow-strong); }

/* =============================================
   EXPERIENCE SECTION
   ============================================= */
#experience {
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
}

.timeline { position:relative; padding:1rem 0; }
.timeline::before {
  content:'';
  position:absolute; left:50%; top:0; bottom:0;
  width:2px;
  background: linear-gradient(180deg, transparent, var(--primary), var(--secondary), transparent);
  transform:translateX(-50%);
}

.timeline-item {
  position:relative;
  width:50%;
  padding:0 3rem 3rem 0;
}
.timeline-item:nth-child(even) {
  margin-left:50%;
  padding:0 0 3rem 3rem;
}
.timeline-item:nth-child(even) .timeline-card-header { flex-direction:row-reverse; text-align:right; }
.timeline-item:nth-child(even) .timeline-tech { justify-content:flex-end; }
.timeline-item:nth-child(even) .job-bullets { padding-left:1.2rem; }

.timeline-dot {
  position:absolute;
  top:0; right:-20px;
  width:40px; height:40px;
  border-radius:50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border:4px solid var(--bg);
  display:flex; align-items:center; justify-content:center;
  color:white;
  font-size:0.85rem;
  z-index:2;
  box-shadow: 0 0 20px rgba(99,102,241,0.5);
}
.timeline-item:nth-child(even) .timeline-dot { right:auto; left:-20px; }
.timeline-dot.volunteer {
  background: linear-gradient(135deg, var(--accent), #d97706);
  box-shadow: 0 0 20px rgba(245,158,11,0.5);
}

.timeline-card {
  background: var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:1.8rem;
  transition:var(--transition);
  transform-style:preserve-3d;
}
.timeline-card:hover {
  border-color:rgba(99,102,241,0.4);
  background:var(--surface-hover);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 30px rgba(99,102,241,0.1);
}
.volunteer-card:hover { border-color:rgba(245,158,11,0.4); box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 30px rgba(245,158,11,0.1); }

.timeline-card-header {
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  flex-wrap:wrap;
  gap:1rem;
  margin-bottom:1rem;
}
.job-title {
  font-family:var(--font-heading);
  font-size:1rem;
  font-weight:700;
  color:var(--text);
  margin-bottom:0.3rem;
}
.company-name {
  font-size:0.85rem;
  font-weight:600;
  color:var(--primary-light);
}
.company-name i { margin-right:0.3rem; }
.job-period {
  font-size:0.78rem;
  font-weight:600;
  color:var(--text-muted);
  background:rgba(255,255,255,0.05);
  padding:0.35rem 0.8rem;
  border-radius:99px;
  border:1px solid var(--border);
  white-space:nowrap;
}
.job-period i { margin-right:0.3rem; }

.timeline-tech {
  display:flex;
  flex-wrap:wrap;
  gap:0.5rem;
  margin-bottom:1rem;
}
.tech-tag {
  font-size:0.72rem;
  font-weight:700;
  letter-spacing:0.08em;
  padding:0.25rem 0.7rem;
  border-radius:6px;
  background: rgba(99,102,241,0.12);
  border:1px solid rgba(99,102,241,0.25);
  color:var(--primary-light);
}

.job-bullets { padding-left:1.2rem; }
.job-bullets li {
  position:relative;
  font-size:0.87rem;
  color:var(--text-muted);
  line-height:1.7;
  margin-bottom:0.6rem;
  padding-left:0.5rem;
}
.job-bullets li::marker { color: var(--primary); }
.job-bullets li strong { color:var(--text); }

/* =============================================
   PROJECTS SECTION
   ============================================= */
#projects {
  background: var(--bg-2);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 2rem;
}

.project-card {
  background: var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius);
  overflow:hidden;
  transition:var(--transition);
  position:relative;
  transform-style:preserve-3d;
}
.project-card:hover {
  border-color:rgba(99,102,241,0.4);
  box-shadow: 0 30px 60px rgba(0,0,0,0.5), 0 0 30px rgba(99,102,241,0.15);
  transform:translateY(-8px);
}
.project-card.featured {
  border-color:rgba(245,158,11,0.3);
}
.project-card.featured:hover {
  border-color:rgba(245,158,11,0.6);
  box-shadow: 0 30px 60px rgba(0,0,0,0.5), 0 0 30px rgba(245,158,11,0.15);
}

.featured-badge {
  position:absolute; top:12px; right:12px;
  z-index:5;
  font-size:0.7rem;
  font-weight:700;
  letter-spacing:0.1em;
  padding:0.3rem 0.8rem;
  border-radius:99px;
  background: linear-gradient(135deg, var(--accent), #d97706);
  color:#000;
  box-shadow: 0 4px 15px rgba(245,158,11,0.4);
}

.project-img-wrapper {
  position:relative;
  height:180px;
  overflow:hidden;
}
.project-visual {
  width:100%; height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
}
.pos-visual   { background: linear-gradient(135deg, #1e1b4b, #312e81); }
.ecom-visual  { background: linear-gradient(135deg, #0c4a6e, #0369a1); }
.ai-visual    { background: linear-gradient(135deg, #064e3b, #047857); }
.inv-visual   { background: linear-gradient(135deg, #3b0764, #6b21a8); }
.anon-visual  { background: linear-gradient(135deg, #1c1917, #374151); }

.pv-icons {
  display:flex;
  gap:1.5rem;
  font-size:2.5rem;
  color:rgba(255,255,255,0.3);
  position:relative;
  z-index:1;
}
.pv-glow {
  position:absolute;
  width:100px; height:100px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(99,102,241,0.4), transparent 70%);
  top:50%; left:50%;
  transform:translate(-50%,-50%);
  animation: glow-pulse 3s ease infinite;
}
@keyframes glow-pulse {
  0%,100% { transform:translate(-50%,-50%) scale(1); opacity:0.5; }
  50% { transform:translate(-50%,-50%) scale(1.8); opacity:1; }
}

.project-img-wrapper {
  position:relative;
  height:180px;
  overflow:hidden;
  cursor:pointer;
}

.project-overlay {
  position:absolute; inset:0;
  background: rgba(0,0,0,0.72);
  backdrop-filter:blur(4px);
  -webkit-backdrop-filter:blur(4px);
  display:flex;
  align-items:center;
  justify-content:center;
  opacity:0;
  pointer-events:none;
  transition:var(--transition);
  z-index:10;
}
.project-card:hover .project-overlay {
  opacity:1;
  pointer-events:auto;
}
.overlay-btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:0.5rem;
  padding:0.75rem 1.6rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color:white;
  border-radius:10px;
  font-weight:700;
  font-size:0.9rem;
  text-decoration:none;
  transition:var(--transition);
  transform:translateY(15px);
  box-shadow: 0 8px 25px rgba(99,102,241,0.4);
  position:relative;
  z-index:20;
  pointer-events:auto;
}
.project-card:hover .overlay-btn { transform:translateY(0); }
.overlay-btn:hover {
  transform:scale(1.08);
  box-shadow: 0 10px 30px rgba(6,182,212,0.6);
}

.project-content { padding:1.5rem; }
.project-number {
  font-family:var(--font-heading);
  font-size:0.7rem;
  font-weight:900;
  letter-spacing:0.3em;
  color:rgba(99,102,241,0.4);
  margin-bottom:0.5rem;
}
.project-content h3 {
  font-family:var(--font-heading);
  font-size:0.95rem;
  font-weight:700;
  color:var(--text);
  margin-bottom:0.8rem;
  line-height:1.3;
}
.project-content p {
  font-size:0.82rem;
  color:var(--text-muted);
  line-height:1.7;
  margin-bottom:1rem;
}
.project-tech {
  display:flex;
  flex-wrap:wrap;
  gap:0.4rem;
  margin-bottom:1rem;
}
.project-tech span {
  font-size:0.68rem;
  font-weight:700;
  padding:0.2rem 0.6rem;
  border-radius:6px;
  background:rgba(99,102,241,0.1);
  border:1px solid rgba(99,102,241,0.2);
  color:var(--primary-light);
  letter-spacing:0.05em;
}
.project-link {
  display:inline-flex;
  align-items:center;
  gap:0.4rem;
  font-size:0.82rem;
  font-weight:700;
  color:var(--primary-light);
  transition:var(--transition);
}
.project-link:hover {
  color:var(--secondary);
  gap:0.8rem;
}

/* =============================================
   CERTIFICATIONS SECTION
   ============================================= */
#certifications {
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
}

.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1.5rem;
}

.cert-card {
  display:flex;
  align-items:center;
  gap:1rem;
  padding:1.2rem;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius);
  transition:var(--transition);
  position:relative;
  overflow:hidden;
  cursor:default;
}
.cert-card:hover {
  border-color:rgba(99,102,241,0.4);
  transform:translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 20px rgba(99,102,241,0.1);
}
.cert-shine {
  position:absolute;
  top:-100%; left:-100%;
  width:300%; height:300%;
  background: linear-gradient(135deg, transparent 30%, rgba(255,255,255,0.05) 50%, transparent 70%);
  transition: 0.6s;
}
.cert-card:hover .cert-shine { transform:translate(30%, 30%); }

.cert-icon {
  width:44px; height:44px;
  border-radius:10px;
  display:flex; align-items:center; justify-content:center;
  font-size:1.2rem;
  flex-shrink:0;
}
.cert-icon.microsoft { background: linear-gradient(135deg, #0078d4, #004578); color:#5bb4ef; }
.cert-icon.google    { background: linear-gradient(135deg, #4285f4, #1a73e8); color:#a8c7fa; }
.cert-icon.dotnet    { background: linear-gradient(135deg, #512bd4, #3b1fa8); color:#a78bfa; }
.cert-icon.data      { background: linear-gradient(135deg, #0ea5e9, #0284c7); color:#7dd3fc; }
.cert-icon.python    { background: linear-gradient(135deg, #3776ab, #ffd343); color:#fff; }
.cert-icon.marketing { background: linear-gradient(135deg, #f59e0b, #d97706); color:#fff; }
.cert-icon.freelance { background: linear-gradient(135deg, #10b981, #047857); color:#fff; }
.cert-icon.meta      { background: linear-gradient(135deg, #8b5cf6, #6d28d9); color:#ddd6fe; }
.cert-icon.internship{ background: linear-gradient(135deg, #6366f1, #4f46e5); color:#c7d2fe; }

/* "View Certificate" label inside cert card */
.cert-view {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--secondary);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
@media (min-width: 769px) {
  .cert-view {
    opacity: 0;
    transform: translateY(4px);
  }
  a.cert-card:hover .cert-view {
    opacity: 1;
    transform: translateY(0);
  }
}
a.cert-card {
  text-decoration: none;
  color: inherit;
  display: flex;
}

.cert-info h4 {
  font-size:0.8rem;
  font-weight:700;
  color:var(--text);
  line-height:1.4;
  margin-bottom:0.2rem;
}
.cert-issuer {
  font-size:0.7rem;
  font-weight:600;
  color:var(--primary-light);
  letter-spacing:0.05em;
}

/* =============================================
   STATS SECTION
   ============================================= */
#stats {
  background: linear-gradient(135deg, var(--bg-3) 0%, var(--bg-2) 100%);
  padding:80px 0;
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 2rem;
}
.stat-item {
  text-align:center;
  padding:2rem 1rem;
  border-radius:var(--radius);
  background:var(--surface);
  border:1px solid var(--border);
  transition:var(--transition);
  position:relative;
  overflow:hidden;
}
.stat-item::before {
  content:'';
  position:absolute; inset:0;
  background: linear-gradient(135deg, rgba(99,102,241,0.05), rgba(6,182,212,0.05));
  opacity:0;
  transition:0.4s;
}
.stat-item:hover { border-color:rgba(99,102,241,0.4); transform:translateY(-6px); }
.stat-item:hover::before { opacity:1; }
.stat-number {
  font-family:var(--font-heading);
  font-size:3rem;
  font-weight:900;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
  margin-bottom:0.5rem;
}
.stat-label {
  font-size:0.85rem;
  font-weight:600;
  color:var(--text-muted);
  text-transform:uppercase;
  letter-spacing:0.15em;
}

/* =============================================
   CONTACT SECTION
   ============================================= */
#contact {
  background: var(--bg);
}

.contact-grid {
  display:grid;
  grid-template-columns:1fr 1.3fr;
  gap:4rem;
  align-items:start;
}

.contact-info h3 {
  font-family:var(--font-heading);
  font-size:1.6rem;
  font-weight:700;
  color:var(--text);
  margin-bottom:1rem;
}
.contact-info p {
  color:var(--text-muted);
  line-height:1.8;
  margin-bottom:2rem;
  font-size:0.95rem;
}

.contact-links { display:flex; flex-direction:column; gap:1rem; }
.contact-link-item {
  display:flex;
  align-items:center;
  gap:1.2rem;
  padding:1.2rem;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:12px;
  transition:var(--transition);
}
.contact-link-item:hover {
  border-color:rgba(99,102,241,0.4);
  background:var(--surface-hover);
  transform:translateX(8px);
  box-shadow: var(--glow);
}
.contact-link-item:has(.whatsapp):hover {
  border-color:rgba(37,211,102,0.4);
  box-shadow: 0 0 30px rgba(37,211,102,0.2);
}
.contact-link-icon {
  width:44px; height:44px;
  border-radius:10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display:flex; align-items:center; justify-content:center;
  color:white;
  font-size:1rem;
  flex-shrink:0;
}
.contact-link-icon.linkedin { background: linear-gradient(135deg, #0077b5, #005885); }
.contact-link-icon.github   { background: linear-gradient(135deg, #333, #111); }
.contact-link-icon.whatsapp { background: linear-gradient(135deg, #25d366, #128c7e); }
.contact-link-label {
  font-size:0.7rem;
  font-weight:700;
  letter-spacing:0.1em;
  text-transform:uppercase;
  color:var(--text-muted);
  margin-bottom:0.2rem;
}
.contact-link-val {
  font-size:0.85rem;
  font-weight:600;
  color:var(--text);
  word-break:break-all;
}

/* Contact Form */
.contact-form-wrapper {
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  padding:2.5rem;
}
.contact-form { display:flex; flex-direction:column; gap:1.5rem; }
.form-group {
  position:relative;
}
.form-group input,
.form-group textarea {
  width:100%;
  background: rgba(255,255,255,0.04);
  border:none;
  border-bottom:2px solid rgba(255,255,255,0.1);
  border-radius:0;
  color:var(--text);
  font-family:var(--font-body);
  font-size:0.95rem;
  padding:1.2rem 0 0.4rem;
  outline:none;
  transition:var(--transition);
  resize:none;
}
.form-group input:focus,
.form-group textarea:focus { border-bottom-color:var(--primary); }
.form-group label {
  position:absolute;
  top:0.8rem; left:0;
  font-size:0.9rem;
  font-weight:600;
  color:var(--text-muted);
  transition:var(--transition);
  pointer-events:none;
}
.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
  top:-0.6rem;
  font-size:0.7rem;
  color:var(--primary-light);
  letter-spacing:0.1em;
  text-transform:uppercase;
}
.form-btn { width:100%; justify-content:center; padding:1rem; margin-top:0.5rem; }

.contact-status {
  display: none;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.2rem;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  margin-top: 0.5rem;
  transition: var(--transition);
}
.contact-status.sending {
  display: flex;
  background: rgba(99,102,241,0.15);
  border: 1px solid rgba(99,102,241,0.4);
  color: var(--primary-light);
}
.contact-status.success {
  display: flex;
  background: rgba(16,185,129,0.15);
  border: 1px solid rgba(16,185,129,0.4);
  color: #34d399;
}
.contact-status.error {
  display: flex;
  background: rgba(239,68,68,0.15);
  border: 1px solid rgba(239,68,68,0.4);
  color: #f87171;
}

/* =============================================
   FOOTER
   ============================================= */
footer {
  position:relative;
  background: var(--bg-3);
  border-top:1px solid var(--border);
  padding:3rem 2rem 2rem;
  text-align:center;
}
.footer-inner { position:relative; z-index:1; }
.footer-logo {
  font-family:var(--font-heading);
  font-size:2rem;
  font-weight:900;
  color:var(--primary-light);
  margin-bottom:1rem;
}
.footer-text { color:var(--text-muted); font-size:0.9rem; margin-bottom:1.5rem; }
.footer-socials {
  display:flex;
  justify-content:center;
  gap:1rem;
  margin-bottom:2rem;
}
.footer-socials a {
  width:40px; height:40px;
  border-radius:10px;
  background:var(--surface);
  border:1px solid var(--border);
  display:flex; align-items:center; justify-content:center;
  color:var(--text-muted);
  transition:var(--transition);
}
.footer-socials a:hover {
  background:var(--primary);
  border-color:var(--primary);
  color:white;
  transform:translateY(-4px);
  box-shadow:var(--glow);
}
.footer-copy { font-size:0.75rem; color:rgba(255,255,255,0.2); }
.footer-wave {
  position:absolute; top:0; left:0; right:0;
  line-height:0;
}

/* =============================================
   CYBER/NEON THEMED BACK TO TOP (PERFECT VIEWPORT CONSTRAINTS)
   ============================================= */
.back-to-top, #back-to-top {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: rgba(15, 17, 26, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(124, 77, 255, 0.4);
  border-radius: 99px;
  cursor: pointer;
  padding: 0.8rem 0.6rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  user-select: none;
}

.back-to-top.visible, #back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover, #back-to-top:hover {
  transform: translateY(-3px);
  border-color: #00f0ff;
  box-shadow: 0 0 15px rgba(124, 77, 255, 0.5), 0 0 25px rgba(0, 240, 255, 0.3);
}

/* Vertical progress bar capsule */
.btt-bar-track {
  width: 4px;
  height: 38px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 99px;
  position: relative;
  overflow: hidden;
}

.btt-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, #7c4dff, #00f0ff);
  box-shadow: 0 0 10px rgba(124, 77, 255, 0.8);
  border-radius: 99px;
  transition: height 0.15s ease-out;
}

/* Vertical BACK TOP label */
.btt-text {
  font-family: var(--font-heading), 'Orbitron', sans-serif;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  color: #9d4edd;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  transition: color 0.3s ease, filter 0.3s ease;
}

.back-to-top:hover .btt-text, #back-to-top:hover .btt-text {
  color: #00f0ff;
  filter: drop-shadow(0 0 6px rgba(0, 240, 255, 0.8));
}

.btt-icon {
  display: none;
  color: #7c4dff;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.back-to-top:hover .btt-icon, #back-to-top:hover .btt-icon {
  color: #00f0ff;
}

/* =============================================
   SCROLLBAR
   ============================================= */
::-webkit-scrollbar { width:6px; }
::-webkit-scrollbar-track { background:var(--bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  border-radius:99px;
}

/* =============================================
   RESPONSIVE DESIGN (MOBILE: 320-480px, TABLET: 481-1024px, DESKTOP: >1024px)
   ============================================= */

/* Touch & Mobile Cursor fallback */
@media (hover: none) and (pointer: coarse) {
  body, a, button, input, textarea, select, label,
  [data-tilt], .nav-link, .btn-primary, .btn-secondary,
  .btn-outline, .btn-hire, .social-link, .project-card,
  .cert-card, .soft-skill, .lang-bubble, .db-card,
  .contact-link-item, .skill-bar-item, .hamburger,
  #back-to-top, .overlay-btn, .project-link,
  .orbit-planet, .float-stat, .footer-socials a {
    cursor: auto !important;
  }
  .cursor, .cursor-follower {
    display: none !important;
  }
}

/* 1. Large Tablets & Small Laptops (<= 1024px) */
@media (max-width: 1024px) {
  .section-container {
    max-width: 100%;
    padding: 0 2rem;
  }
  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
  }
  .certs-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
  }
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .about-grid {
    gap: 3rem;
  }
}

/* 2. Tablets & Mobile Landscape (<= 768px) */
@media (max-width: 768px) {
  section {
    padding: 55px 0;
  }
  .section-container {
    padding: 0 1.25rem;
  }
  .section-header {
    margin-bottom: 2.2rem;
  }
  .section-title {
    font-size: clamp(1.8rem, 5vw, 2.4rem);
  }

  /* Navigation & Mobile Drawer */
  #navbar {
    padding: 0.85rem 1.25rem;
  }
  .nav-links, .nav-cta {
    display: none;
  }
  .hamburger {
    display: flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    padding: 10px;
  }

  #navbar.mobile-open .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; right: 0;
    width: 280px;
    max-width: 85vw;
    height: 100vh;
    background: rgba(17, 17, 39, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-left: 1px solid var(--border);
    align-items: flex-start;
    padding: 5rem 1.8rem 2rem;
    gap: 1.5rem;
    z-index: 1001;
    box-shadow: -10px 0 30px rgba(0,0,0,0.6);
  }
  #navbar.mobile-open .nav-cta {
    display: block;
    position: fixed;
    bottom: 2rem;
    right: 1.8rem;
    z-index: 1002;
  }
  #navbar.mobile-open .nav-overlay {
    display: block;
    z-index: 1000;
  }

  /* Hero Section Stack */
  #hero {
    flex-direction: column;
    padding: 100px 1.25rem 45px;
    text-align: center;
    gap: 2.5rem;
    min-height: auto;
    justify-content: center;
  }
  .hero-content {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-name {
    font-size: clamp(2rem, 6.5vw, 3rem);
    word-break: break-word;
    overflow-wrap: break-word;
  }
  .hero-typed {
    font-size: 1.1rem;
    min-height: 2rem;
  }
  .hero-btns, .hero-socials {
    justify-content: center;
  }
  .hero-3d-card {
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
  }
  .card-inner {
    padding: 1.8rem 1.5rem;
    min-width: unset;
    width: 100%;
  }

  /* About Section Stack */
  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }
  .about-visual {
    flex-direction: column;
    gap: 1.5rem;
    overflow: hidden;
  }
  .about-orbit-system {
    margin: 0 auto;
  }
  .about-stats-floating {
    position: static;
    flex-direction: row;
    justify-content: center;
    margin-top: 1rem;
    gap: 1rem;
    flex-wrap: wrap;
    bottom: auto;
    right: auto;
  }
  .about-content h3 {
    text-align: center;
  }
  .about-text {
    text-align: center;
  }
  .about-info-grid {
    text-align: left;
  }
  .about-btns {
    justify-content: center;
  }

  /* Grids */
  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }
  .certs-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.2rem;
  }
  .cert-view {
    opacity: 1 !important;
    transform: translateY(0) !important;
  }

  .project-overlay {
    opacity: 1 !important;
    pointer-events: auto !important;
    background: rgba(10, 10, 20, 0.45) !important;
  }
  .overlay-btn {
    transform: translateY(0) !important;
    padding: 0.65rem 1.35rem;
    font-size: 0.85rem;
  }

  /* Timeline */
  .timeline::before { left: 20px; }
  .timeline-item {
    width: 100%;
    padding: 0 0 2rem 3.5rem;
  }
  .timeline-item:nth-child(even) {
    margin-left: 0;
    padding: 0 0 2rem 3.5rem;
  }
  .timeline-dot {
    left: 2px;
    right: auto;
    width: 36px;
    height: 36px;
  }
  .timeline-item:nth-child(even) .timeline-dot {
    left: 2px;
  }
  .timeline-item:nth-child(even) .timeline-card-header {
    flex-direction: row;
    text-align: left;
  }
  .timeline-item:nth-child(even) .timeline-tech {
    justify-content: flex-start;
  }
  .timeline-card {
    padding: 1.4rem;
  }

  /* Compact Back-to-Top for Mobile & Tablets (<= 768px) */
  .back-to-top, #back-to-top {
    bottom: 20px;
    right: 16px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    padding: 0;
    gap: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
  }
  .btt-bar-track,
  .btt-text {
    display: none !important;
  }
  .btt-icon {
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    color: #7c4dff;
  }
  .back-to-top:hover .btt-icon, #back-to-top:hover .btt-icon {
    color: #00f0ff;
  }
}

/* 3. Small Mobile Devices (320px - 480px) */
@media (max-width: 480px) {
  section {
    padding: 42px 0;
  }
  .section-container {
    padding: 0 1rem;
  }
  .section-header {
    margin-bottom: 1.8rem;
  }
  .section-title {
    font-size: clamp(1.6rem, 7vw, 2rem);
  }

  #navbar {
    padding: 0.75rem 1rem;
  }
  .nav-logo {
    font-size: 1.25rem;
  }

  #hero {
    padding: 85px 1rem 35px;
    gap: 1.8rem;
  }
  .hero-name {
    font-size: clamp(1.75rem, 8vw, 2.2rem);
    line-height: 1.2;
    margin-bottom: 0.6rem;
  }
  .hero-typed {
    font-size: 0.95rem;
    min-height: 1.8rem;
    margin-bottom: 0.8rem;
  }
  .hero-desc {
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 1.3rem;
  }
  .hero-btns {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
    margin-bottom: 1.3rem;
  }
  .btn-primary, .btn-secondary, .btn-outline {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1rem;
    font-size: 0.88rem;
  }

  /* Hero 3D Card */
  .hero-3d-card {
    max-width: 310px;
  }
  .card-inner {
    padding: 1.2rem 1rem;
  }
  .card-avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.2rem;
  }
  .avatar-core {
    width: 82px;
    height: 82px;
    font-size: 1.4rem;
  }
  .orbit1 { width: 115px; height: 115px; }
  .orbit2 { width: 135px; height: 135px; }
  .card-info {
    gap: 0.4rem;
    justify-content: space-around;
  }
  .card-divider { height: 28px; }
  .stat-val { font-size: 1.25rem; }
  .stat-label { font-size: 0.58rem; letter-spacing: 0.05em; }

  /* About Orbit System */
  .about-orbit-system {
    width: 240px;
    height: 240px;
  }
  .ring-1 { width: 110px; height: 110px; }
  .ring-2 { width: 170px; height: 170px; }
  .ring-3 { width: 230px; height: 230px; }
  .orbit-avatar { width: 60px; height: 60px; font-size: 1.1rem; }
  .orbit-planet { width: 30px; height: 30px; font-size: 0.7rem; margin-top: -15px; }

  .about-stats-floating {
    flex-direction: row;
    gap: 0.6rem;
    width: 100%;
    justify-content: center;
  }
  .float-stat {
    padding: 0.55rem 0.8rem;
    gap: 0.5rem;
  }
  .float-icon {
    width: 30px;
    height: 30px;
    font-size: 0.75rem;
  }
  .float-val { font-size: 1.05rem; }
  .float-lbl { font-size: 0.6rem; }

  .about-content h3 { font-size: 1.2rem; }
  .about-text { font-size: 0.85rem; }
  .about-info-grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
    margin: 1.25rem 0;
  }
  .info-item {
    padding: 0.7rem 0.85rem;
  }

  /* Skills & Languages */
  .skill-category {
    padding: 1.2rem 1rem;
  }
  .lang-bubbles {
    gap: 0.5rem;
  }
  .lang-bubble {
    padding: 0.45rem 0.8rem;
    font-size: 0.78rem;
  }
  .db-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
  }
  .db-card {
    padding: 0.75rem 0.4rem;
    font-size: 0.78rem;
  }
  .ai-skills {
    gap: 0.45rem;
  }
  .ai-skill-tag {
    padding: 0.35rem 0.7rem;
    font-size: 0.75rem;
  }
  .soft-skills-row {
    gap: 0.5rem;
  }
  .soft-skill {
    min-width: 75px;
    flex: 1 1 80px;
    padding: 0.8rem 0.4rem;
  }
  .soft-icon {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }
  .soft-skill span { font-size: 0.65rem; }

  /* Timeline */
  .timeline::before { left: 12px; }
  .timeline-item {
    padding: 0 0 1.6rem 2.4rem;
  }
  .timeline-item:nth-child(even) {
    padding: 0 0 1.6rem 2.4rem;
  }
  .timeline-dot {
    width: 26px;
    height: 26px;
    font-size: 0.7rem;
    left: 0;
  }
  .timeline-card {
    padding: 1rem;
  }
  .timeline-card-header {
    flex-direction: column;
    gap: 0.4rem;
  }
  .job-title { font-size: 0.88rem; }
  .company-name { font-size: 0.78rem; }
  .job-period {
    align-self: flex-start;
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
  }
  .job-bullets {
    padding-left: 0.8rem;
  }
  .job-bullets li {
    font-size: 0.78rem;
    line-height: 1.5;
    margin-bottom: 0.4rem;
  }

  /* Projects */
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }
  .project-img-wrapper {
    height: 145px;
  }
  .pv-icons {
    font-size: 1.6rem;
    gap: 0.8rem;
  }
  .project-content {
    padding: 1rem;
  }
  .project-content h3 { font-size: 0.88rem; }
  .project-content p { font-size: 0.78rem; }
  .overlay-btn {
    padding: 0.5rem 1rem;
    font-size: 0.78rem;
  }

  /* Certifications */
  .certs-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
  .cert-card {
    padding: 0.9rem;
    gap: 0.75rem;
    min-height: 48px;
  }
  .cert-icon {
    width: 36px;
    height: 36px;
    font-size: 0.95rem;
  }
  .cert-info h4 { font-size: 0.75rem; }

  /* Stats Grid */
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
  }
  .stat-item {
    padding: 1rem 0.4rem;
  }
  .stat-number { font-size: 1.85rem; }
  .stat-label { font-size: 0.65rem; }

  /* Contact Links & Form */
  .contact-info h3 { font-size: 1.25rem; }
  .contact-info p { font-size: 0.85rem; }
  .contact-link-item {
    padding: 0.75rem 0.85rem;
    gap: 0.8rem;
    min-height: 44px;
  }
  .contact-link-icon {
    width: 34px;
    height: 34px;
    font-size: 0.82rem;
  }
  .contact-link-val { font-size: 0.75rem; }

  .contact-form-wrapper {
    padding: 1.15rem;
  }
  .form-group input,
  .form-group textarea {
    font-size: 0.88rem;
    padding: 0.9rem 0 0.3rem;
  }

  /* Sleek Back to Top on mobile */
  .back-to-top, #back-to-top {
    bottom: 18px;
    right: 16px;
  }
}

/* =============================================
   ANIMATION UTILITIES
   ============================================= */
.fade-in-up {
  opacity:0;
  transform:translateY(40px);
  animation:fade-in-up 0.8s ease forwards;
}
@keyframes fade-in-up {
  to { opacity:1; transform:translateY(0); }
}

/* Floating shapes in bg */
.bg-shape {
  position:absolute;
  border-radius:50%;
  filter:blur(80px);
  pointer-events:none;
}

/* Glitch effect for logo */
@keyframes glitch {
  0%   { clip-path:polygon(0 0,100% 0,100% 35%,0 35%); transform:translate(-4px,0); }
  25%  { clip-path:polygon(0 65%,100% 65%,100% 100%,0 100%); transform:translate(4px,0); }
  50%  { clip-path:polygon(0 45%,100% 45%,100% 55%,0 55%); transform:translate(-2px,0); }
  75%  { clip-path:polygon(0 20%,100% 20%,100% 50%,0 50%); transform:translate(2px,0); }
  100% { clip-path:polygon(0 0,100% 0,100% 100%,0 100%); transform:translate(0,0); }
}

