/* ============================================================
   Developers Tech – Global Stylesheet
   Author: Wasif Ali
   ============================================================ */

/* ─── Google Fonts ────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,400&family=JetBrains+Mono:wght@400;500&display=swap');

/* ─── CSS Variables ───────────────────────────────────────── */
:root {
  --bg:          #060d1e;
  --bg2:         #080f22;
  --bg3:         #0b1530;
  --surface:     rgba(13, 22, 45, 0.8);
  --glass:       rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
  --cyan:        #00d4ff;
  --cyan-dim:    rgba(0, 212, 255, 0.15);
  --cyan-glow:   rgba(0, 212, 255, 0.3);
  --purple:      #7c3aed;
  --purple-dim:  rgba(124, 58, 237, 0.15);
  --purple-glow: rgba(124, 58, 237, 0.3);
  --green:       #00ff87;
  --orange:      #ff6b35;
  --text:        #dde8f5;
  --text-dim:    #8899bb;
  --text-muted:  #4a5a7a;
  --white:       #ffffff;

  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --radius-sm:   8px;
  --radius-md:   16px;
  --radius-lg:   24px;
  --radius-xl:   32px;

  --shadow-glow-cyan:   0 0 40px rgba(0, 212, 255, 0.18), 0 0 80px rgba(0, 212, 255, 0.08);
  --shadow-glow-purple: 0 0 40px rgba(124, 58, 237, 0.2), 0 0 80px rgba(124, 58, 237, 0.08);
  --shadow-card:        0 8px 32px rgba(0, 0, 0, 0.4);
  --transition-fast:    0.2s ease;
  --transition-med:     0.4s cubic-bezier(0.23, 1, 0.32, 1);
  --transition-slow:    0.7s cubic-bezier(0.23, 1, 0.32, 1);

  --nav-h: 100px;
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none;
}

::selection { background: var(--cyan-dim); color: var(--cyan); }

a { text-decoration: none; color: inherit; }

img { max-width: 100%; display: block; }

ul { list-style: none; }

/* ─── Custom Cursor ───────────────────────────────────────── */
#cursor {
  position: fixed;
  width: 36px; height: 36px;
  border: 1.5px solid var(--cyan);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.25s, height 0.25s, border-color 0.25s, background 0.25s;
}
#cursor-dot {
  position: fixed;
  width: 6px; height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s;
}
#cursor.cursor-hover {
  width: 56px; height: 56px;
  border-color: var(--purple);
  background: rgba(124, 58, 237, 0.08);
}
#cursor-dot.cursor-dot-hover {
  transform: translate(-50%, -50%) scale(0);
}

/* ─── Floating Background Symbols ────────────────────────── */
#floating-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.float-sym {
  position: absolute;
  font-family: var(--font-mono);
  color: var(--cyan);
  white-space: nowrap;
  user-select: none;
  will-change: transform, left, top;
}

/* ─── Code Symbol Background (Reference Style) ───────────── */
.code-background {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 10% 20%, rgba(124, 58, 237, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(0, 212, 255, 0.1) 0%, transparent 40%);
  overflow: hidden;
  z-index: -1;
}
.code-symbol {
  position: absolute;
  bottom: -50px;
  background: transparent;
  color: #00E0C6;
  font-family: 'Courier New', monospace;
  font-weight: bold;
  opacity: 0;
  animation: floatUp linear infinite;
}
.code-symbol:nth-child(1)  { left: 10%; font-size: 30px; animation-duration: 10s; animation-delay: 0s;  opacity: 0.2; }
.code-symbol:nth-child(2)  { left: 20%; font-size: 50px; animation-duration: 15s; animation-delay: 2s;  opacity: 0.1; }
.code-symbol:nth-child(3)  { left: 35%; font-size: 20px; animation-duration: 12s; animation-delay: 4s;  opacity: 0.15; }
.code-symbol:nth-child(4)  { left: 50%; font-size: 60px; animation-duration: 18s; animation-delay: 0s;  opacity: 0.05; }
.code-symbol:nth-child(5)  { left: 65%; font-size: 35px; animation-duration: 11s; animation-delay: 0s;  opacity: 0.2; color: #ffffff; }
.code-symbol:nth-child(6)  { left: 75%; font-size: 25px; animation-duration: 14s; animation-delay: 3s;  opacity: 0.15; }
.code-symbol:nth-child(7)  { left: 85%; font-size: 40px; animation-duration: 16s; animation-delay: 5s;  opacity: 0.1; }
.code-symbol:nth-child(8)  { left:  5%; font-size: 30px; animation-duration: 20s; animation-delay: 7s;  opacity: 0.1; }
.code-symbol:nth-child(9)  { left: 95%; font-size: 28px; animation-duration: 13s; animation-delay: 1s;  opacity: 0.1; }
.code-symbol:nth-child(10) { left: 45%; font-size: 55px; animation-duration: 19s; animation-delay: 4s;  opacity: 0.05; }
@keyframes floatUp {
  0%   { transform: translateY(0) rotate(0deg);    opacity: 0;   bottom: -50px; }
  10%  { opacity: 0.2; }
  90%  { opacity: 0.2; }
  100% { transform: translateY(-120vh) rotate(360deg); opacity: 0; bottom: 100%; }
}

/* ─── Footer Boxes Animation (Reference Style) ───────────── */
.footer-container {
  position: relative;
  background-color: var(--bg2);
  overflow: hidden;
  z-index: 1;
  border-top: 1px solid var(--glass-border);
  border-radius: 30px 30px 0 0;
  padding: 64px 5% 32px;
  margin-top: 0;
}
.boxes-animation {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}
.boxes {
  position: absolute;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  animation: rotateBox linear infinite;
}
.boxes1 { width: 150px; height: 150px; top: 10%;   left: 5%;  border-color: rgba(0, 212, 255, 0.1);  animation-duration: 25s; }
.boxes2 { width:  60px; height:  60px; bottom: 20%; right: 15%; border-color: rgba(0, 212, 255, 0.15); animation-duration: 15s; animation-direction: reverse; }
.boxes3 { width: 300px; height: 300px; top: -50px;  right: -50px; border-width: 1px; animation-duration: 40s; }
.boxes4 { width:  30px; height:  30px; bottom: 10%; left: 20%; background-color: rgba(0, 212, 255, 0.05); border: none; animation-duration: 10s; }
.boxes5 { width: 100px; height: 100px; bottom: 40%; left: 50%;  opacity: 0.1; animation-duration: 30s; }
@keyframes rotateBox {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ─── Footer Logo Standby Animation ──────────────────────── */
.footer-logo-animated {
  display: inline-block;
  height: 100px;
  width: auto;
  filter: drop-shadow(0 0 5px rgba(0, 212, 255, 0.4));
  transition: all 0.3s ease;
  animation: systemStandby 3s infinite ease-in-out;
}
@keyframes systemStandby {
  0%   { transform: scale(1);    opacity: 0.85; filter: drop-shadow(0 0 0px rgba(0, 212, 255, 0)); }
  50%  { transform: scale(1.05); opacity: 1;    filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.5)); }
  100% { transform: scale(1);    opacity: 0.85; filter: drop-shadow(0 0 0px rgba(0, 212, 255, 0)); }
}
.footer-logo-animated:hover {
  animation-play-state: paused;
  opacity: 1;
  filter: drop-shadow(0 0 12px rgba(0, 212, 255, 0.7));
  cursor: pointer;
}


/* ─── Animated Mesh Gradient Background ───────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 10% 10%, rgba(0, 212, 255, 0.05) 0%, transparent 60%),
    radial-gradient(ellipse 60% 70% at 90% 80%, rgba(124, 58, 237, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 50% 50%, rgba(0, 255, 135, 0.02) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ─── Page Wrapper ────────────────────────────────────────── */
.page-wrapper {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ─── Navbar ──────────────────────────────────────────────── */
#main-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 2000;
  display: flex;
  align-items: center;
  padding: 0 5%;
  transition: background var(--transition-fast), box-shadow var(--transition-fast);
}
#main-nav.scrolled {
  background: rgba(6, 13, 30, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 0 rgba(0, 212, 255, 0.1), 0 8px 32px rgba(0,0,0,0.4);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--white);
  letter-spacing: -0.02em;
}
.nav-logo img {
  height: 100px;
  width: auto;
  border-radius: 0;
  filter: drop-shadow(0 0 5px rgba(0, 212, 255, 0.4));
  transition: filter 0.3s ease;
}
.nav-logo img:hover {
  filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.7));
}
.logo-accent { color: var(--cyan); }
#nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none; /* Hide default bullets */
}
.nav-link {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-dim);
  padding: 8px 16px;
  border-radius: 999px;
  transition: color var(--transition-fast), background var(--transition-fast);
  position: relative;
}
.nav-link:hover { color: var(--white); background: var(--glass); }
.nav-link.active {
  color: var(--cyan);
  background: var(--cyan-dim);
}
.nav-cta {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--bg);
  background: var(--cyan);
  padding: 9px 22px;
  border-radius: 999px;
  margin-left: 8px;
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}
.nav-cta:hover {
  box-shadow: 0 0 20px var(--cyan-glow);
  transform: translateY(-1px);
}
.nav-cta svg, .nav-link svg {
  width: 16px;
  height: 16px;
  margin-left: 6px;
  vertical-align: middle;
  transition: transform 0.3s ease;
}
.nav-cta:hover svg { transform: translateX(3px); }
#nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
#nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition-fast);
}
#nav-toggle.toggle-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#nav-toggle.toggle-active span:nth-child(2) { opacity: 0; }
#nav-toggle.toggle-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 13px 28px;
  border-radius: 999px;
  border: none;
  cursor: none;
  transition: all var(--transition-med);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.08);
  opacity: 0;
  transition: opacity var(--transition-fast);
}
.btn:hover::before { opacity: 1; }

.btn-primary {
  background: linear-gradient(135deg, var(--cyan) 0%, #0099cc 100%);
  color: var(--bg);
  box-shadow: 0 4px 20px var(--cyan-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--cyan-glow);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--glass-border);
}
.btn-outline:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 20px var(--cyan-dim);
  transform: translateY(-2px);
}
.btn-ghost {
  background: var(--glass);
  color: var(--cyan);
  border: 1px solid var(--cyan-dim);
}
.btn-ghost:hover {
  background: var(--cyan-dim);
  transform: translateY(-2px);
}
.btn-success { background: linear-gradient(135deg, var(--green), #00cc6a) !important; color: var(--bg) !important; }
.btn svg {
  width: 18px;
  height: 18px;
  margin-left: 6px;
  vertical-align: middle;
  transition: transform 0.3s ease;
}
.btn:hover svg { transform: translateX(4px); }

.project-link { 
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.project-link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s ease;
}
.project-link.primary:hover svg { transform: translate(2px, -2px); }
.project-link:not(.primary):hover svg { transform: scale(1.1); }
.btn-spinner {
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: var(--bg);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Sections & Layout ───────────────────────────────────── */
.section {
  padding: 96px 5%;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
}
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--cyan);
  background: var(--cyan-dim);
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.section-subtitle {
  color: var(--text-dim);
  font-size: 1rem;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.8;
}
.gradient-text {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--purple) 60%, var(--green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Scroll Reveal ───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s cubic-bezier(0.23, 1, 0.32, 1),
              transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}
.reveal.from-left { transform: translateX(-36px); }
.reveal.from-right { transform: translateX(36px); }
.reveal.scale-up { transform: scale(0.92); }
.reveal.revealed {
  opacity: 1;
  transform: none;
}

/* ─── Glass Card ──────────────────────────────────────────── */
.glass-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
}
.card-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  transition: background 0.1s;
}

/* ─── Blob Decorations ────────────────────────────────────── */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  will-change: transform;
}
.blob-cyan  { background: var(--cyan-glow); }
.blob-purple { background: var(--purple-glow); }
.blob-green { background: rgba(0, 255, 135, 0.18); }

/* ─── Page Hero Banner ────────────────────────────────────── */
.page-hero {
  padding: calc(var(--nav-h) + 64px) 5% 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.04em;
  line-height: 1.1;
}
.page-hero-sub {
  color: var(--text-dim);
  font-size: 1.05rem;
  margin-top: 16px;
}
.page-hero-line {
  width: 64px; height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  margin: 24px auto 0;
  border-radius: 2px;
}

/* ─── Divider ─────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
  margin: 0 5%;
}

/* ─── Footer ──────────────────────────────────────────────── */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--glass-border);
  padding: 64px 5% 32px;
  position: relative;
  z-index: 1;
}
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 40px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer-brand p {
  max-width: 300px;
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.8;
}
.footer-connect {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}
.footer-connect h4 {
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 1px;
}
.footer-social {
  display: flex;
  gap: 20px;
  flex-direction: row;
}
.footer-social img {
  width: 28px;
  height: 28px;
  filter: grayscale(1) invert(1);
  opacity: 0.6;
  transition: 0.3s;
}
.footer-social a:hover img {
  filter: none;
  opacity: 1;
  transform: scale(1.2);
}
.footer-copyright {
  text-align: center;
  margin-top: 25px;
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-top: 20px;
}
.footer-copyright strong { color: var(--cyan); }


/* ========================================================
   HOME PAGE (index.html)
   ======================================================== */

/* Hero */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 40px) 5% 80px;
  position: relative;
  overflow: hidden;
}
.hero-section .blob:nth-child(1) {
  width: 600px; height: 600px;
  top: -200px; left: -200px;
  opacity: 0.35;
}
.hero-section .blob:nth-child(2) {
  width: 500px; height: 500px;
  bottom: -150px; right: -150px;
  opacity: 0.3;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}
.hero-parallax { will-change: transform; }
.hero-greeting {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--cyan);
  background: var(--cyan-dim);
  border: 1px solid rgba(0,212,255,0.2);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero-greeting .svg-icon { margin-right: 4px; color: var(--cyan); }
.wave-icon { animation: wave 2.5s infinite; display: inline-block; transform-origin: 70% 70%; }
@keyframes wave {
  0%,60%,100% { transform: rotate(0deg); }
  10%,30% { transform: rotate(14deg); }
  20% { transform: rotate(-8deg); }
  40% { transform: rotate(10deg); }
  50% { transform: rotate(-4deg); }
}
.hero-name {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 12px;
}
.hero-role {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 20px;
  min-height: 2.5rem;
}
#typing-text {
  color: var(--cyan);
  border-right: 2px solid var(--cyan);
  padding-right: 3px;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { border-color: transparent; } }
.hero-desc {
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.85;
  max-width: 480px;
  margin-bottom: 36px;
}
.hero-location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero Image */
.hero-img-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.hero-img-ring {
  position: relative;
  width: 360px; height: 360px;
}
.hero-img-ring::before, .hero-img-ring::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  animation: rotate 10s linear infinite;
}
.hero-img-ring::before {
  inset: -12px;
  border: 2px solid transparent;
  border-top-color: var(--cyan);
  border-right-color: var(--cyan);
}
.hero-img-ring::after {
  inset: -24px;
  border: 1px solid transparent;
  border-bottom-color: var(--purple);
  border-left-color: var(--purple);
  animation-direction: reverse;
  animation-duration: 16s;
}
@keyframes rotate { to { transform: rotate(360deg); } }
.hero-img-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--glass-border);
  background: transparent;
  box-shadow: 0 0 60px var(--cyan-glow), 0 0 120px rgba(0,212,255,0.1);
}
.hero-img-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}


.hero-badge {
  position: absolute;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
  box-shadow: var(--shadow-card);
}
.hero-badge-icon { display: flex; align-items: center; justify-content: center; width: 20px; height: 20px; color: var(--cyan); }
.hero-badge-icon svg { width: 100%; height: 100%; stroke-width: 2.5; }
.hero-badge-1 { bottom: 20px; left: -20px; animation: float1 3s ease-in-out infinite; }
.hero-badge-2 { top: 30px; right: -20px; animation: float2 3.5s ease-in-out infinite 0.8s; }
@keyframes float1 { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes float2 { 0%,100% { transform: translateY(0); } 50% { transform: translateY(10px); } }

/* Services Cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  padding: 32px;
  transition: transform var(--transition-med), box-shadow var(--transition-med);
  will-change: transform;
}
.service-card:hover { box-shadow: var(--shadow-glow-cyan); }
.service-icon {
  margin-bottom: 20px;
  display: flex;
  color: var(--cyan);
}
.service-icon svg {
  width: 42px;
  height: 42px;
  stroke-width: 1.5;
}
.service-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 10px;
}
.service-desc {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.75;
}

/* ─── Journey Section (Milestones) ─── */
.milestones-section {
  padding: 80px 5%;
  position: relative;
  overflow: hidden;
}
.milestones-section .section-title {
  margin-bottom: 48px;
  text-align: center;
}
.milestone-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}
.milestone-card {
  padding: 48px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-top: 3px solid transparent;
  background-clip: padding-box;
  position: relative;
}
.milestone-card::before {
  content: "";
  position: absolute;
  top: -3px; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.milestone-card h3 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 800;
  color: var(--cyan);
  line-height: 1;
  margin-bottom: 12px;
  text-shadow: 0 0 25px rgba(0, 212, 255, 0.4);
}
.milestone-card h3::after {
  content: '+';
  font-size: clamp(2rem, 3vw, 2.5rem);
  color: var(--purple);
  vertical-align: top;
  margin-left: 2px;
}
.milestone-card p {
  color: var(--text-dim);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
}


/* Featured Projects */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 40px;
}

/* Tech Stack Marquee */
.marquee-wrap {
  position: relative;
  overflow: hidden;
  padding: 24px 0;
}
.marquee-wrap::before, .marquee-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.marquee-wrap::before { left: 0; background: linear-gradient(to right, var(--bg), transparent); }
.marquee-wrap::after  { right: 0; background: linear-gradient(to left, var(--bg), transparent); }
.marquee-track {
  display: flex;
  gap: 32px;
  animation: marqueeScroll 30s linear infinite;
  width: max-content;
}
.marquee-track-rev { animation-direction: reverse; }
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.tech-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  min-width: 88px;
}
.tech-icon:hover {
  background: var(--cyan-dim);
  border-color: var(--cyan);
  transform: translateY(-4px);
}
.tech-icon img { width: 32px; height: 32px; object-fit: contain; }
.tech-icon span { font-size: 0.72rem; color: var(--text-dim); white-space: nowrap; }

/* CTA Section */
.cta-section {
  text-align: center;
  background: var(--bg2);
  position: relative;
  overflow: hidden;
}
.cta-section .blob {
  width: 400px; height: 400px;
  top: -150px; left: 50%;
  transform: translateX(-50%);
  opacity: 0.25;
}
.cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.cta-sub {
  color: var(--text-dim);
  font-size: 1rem;
  max-width: 500px;
  margin: 0 auto 36px;
  line-height: 1.8;
}
.cta-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ========================================================
   ABOUT PAGE
   ======================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  align-items: center;
  gap: 72px;
  max-width: 1100px;
  margin: 0 auto;
}
.about-img-wrap {
  position: relative;
}
.about-img-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--bg3);
}
.about-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.6s ease;
}
.about-img-frame:hover img { transform: scale(1.04); }
.about-img-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6,13,30,0.7) 0%, transparent 60%);
  z-index: 1;
}
.about-img-deco-1 {
  position: absolute;
  top: -16px; left: -16px;
  width: 80px; height: 80px;
  border: 2px solid var(--cyan);
  border-radius: var(--radius-md);
  opacity: 0.4;
}
.about-img-deco-2 {
  position: absolute;
  bottom: -16px; right: -16px;
  width: 60px; height: 60px;
  border: 2px solid var(--purple);
  border-radius: 50%;
  opacity: 0.4;
}

.about-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cyan);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}
.about-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 20px;
}
.about-sub {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 20px;
}
.about-text {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.9;
  margin-bottom: 16px;
}
.about-goal {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-left: 3px solid var(--cyan);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.75;
  margin-bottom: 32px;
}
.about-goal strong { color: var(--cyan); }
.about-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}
.about-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.about-meta-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--font-mono);
}
.about-meta-value {
  font-size: 0.92rem;
  color: var(--white);
  font-weight: 500;
}

/* ========================================================
   SKILLS PAGE
   ======================================================== */
.skills-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 1100px;
  margin: 0 auto 80px;
}
.skills-col-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.skills-col-title svg {
  width: 24px;
  height: 24px;
  stroke-width: 2;
}
.soft-skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.soft-skill-pill {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-size: 0.88rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all var(--transition-fast);
}
.soft-skill-pill:hover {
  background: var(--cyan-dim);
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateX(4px);
}
.soft-skill-dot {
  width: 6px; height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  flex-shrink: 0;
}

.tech-skills-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.skill-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}
.skill-pct {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--cyan);
}
.skill-bar-track {
  height: 6px;
  background: var(--bg3);
  border-radius: 999px;
  overflow: hidden;
}
.skill-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  transition: width 1.2s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
}
.skill-bar-fill::after {
  content: '';
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  width: 10px; height: 10px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--cyan);
}

/* Web Dev Education */
.edu-card {
  padding: 32px;
  max-width: 1100px;
  margin: 0 auto 80px;
}
.edu-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 24px;
}
.edu-icon {
  width: 52px; height: 52px;
  background: var(--cyan-dim);
  border: 1px solid rgba(0,212,255,0.3);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  flex-shrink: 0;
}
.edu-icon svg {
  width: 28px;
  height: 28px;
  stroke-width: 1.5;
}
.edu-info h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}
.edu-info p { color: var(--text-dim); font-size: 0.9rem; }
.edu-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.edu-tag {
  background: var(--bg3);
  border: 1px solid var(--glass-border);
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.83rem;
  color: var(--text-dim);
}

/* Certifications */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.cert-card {
  padding: 0;
  overflow: hidden;
  transition: transform var(--transition-med), box-shadow var(--transition-med);
}
.cert-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow-cyan);
}
.cert-img-wrap {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--bg3);
}
.cert-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--bg3);
  padding: 10px;
  transition: transform 0.5s ease;
}
.cert-card:hover .cert-img-wrap img { transform: scale(1.05); }
.cert-body { padding: 20px; }
.cert-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 8px;
}
.cert-desc {
  color: var(--text-dim);
  font-size: 0.83rem;
  line-height: 1.7;
}
.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 0.75rem;
  color: var(--green);
  font-family: var(--font-mono);
}

/* ========================================================
   PROJECTS PAGE
   ======================================================== */
.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.filter-btn {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.88rem;
  padding: 9px 22px;
  border-radius: 999px;
  border: 1.5px solid var(--glass-border);
  background: transparent;
  color: var(--text-dim);
  cursor: none;
  transition: all var(--transition-fast);
}
.filter-btn:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}
.filter-btn.active {
  background: var(--cyan-dim);
  border-color: var(--cyan);
  color: var(--cyan);
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}
.project-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition-med), box-shadow var(--transition-med);
  will-change: transform;
  opacity: 0;
  transform: translateY(30px) scale(0.97);
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s ease;
}
.project-card.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.project-card:hover {
  box-shadow: 0 16px 48px rgba(0,0,0,0.4), 0 0 40px rgba(0,212,255,0.12);
  border-color: rgba(0,212,255,0.2);
}
.project-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
  background: var(--bg3);
}
.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.project-card:hover .project-img img { transform: scale(1.06); }
.project-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(6,13,30,0.9) 100%);
}
.project-body { padding: 24px; }
.project-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.project-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 3px 10px;
  background: var(--bg3);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  color: var(--text-muted);
}
.project-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 10px;
}
.project-desc {
  color: var(--text-dim);
  font-size: 0.88rem;
  line-height: 1.75;
  margin-bottom: 20px;
}
.project-links {
  display: flex;
  gap: 10px;
}
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  color: var(--text-dim);
  background: var(--bg3);
  transition: all var(--transition-fast);
}
.project-link:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: var(--cyan-dim);
}
.project-link.primary {
  background: var(--cyan-dim);
  border-color: var(--cyan);
  color: var(--cyan);
}
.project-link.primary:hover {
  background: var(--cyan);
  color: var(--bg);
}

/* ========================================================
   CONTACT PAGE
   ======================================================== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  max-width: 1100px;
  margin: 0 auto;
}

.contact-info-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.contact-info-sub {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 36px;
}
.contact-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 36px;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}
.contact-item > div {
  flex: 1;
  min-width: 0;
}
.contact-item:hover {
  border-color: var(--cyan);
  background: var(--cyan-dim);
}
.contact-item-icon {
  width: 50px;
  height: 50px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--cyan);
  transition: all 0.3s ease;
  flex-shrink: 0;
}
.contact-item-icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 2;
}
.contact-item-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--font-mono);
  margin-bottom: 4px;
}
.contact-item-value {
  font-size: 0.92rem;
  color: var(--text);
  font-weight: 500;
  word-break: break-word;
  overflow-wrap: break-word;
}
.contact-services {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--white);
}
.contact-services-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contact-services-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-dim);
}
.contact-services-list li::before {
  content: '';
  width: 5px; height: 5px;
  background: var(--cyan);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Contact Form */
.contact-form-wrap {
  padding: 40px 40px 24px 40px;
}
.form-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 28px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}
.form-label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--font-mono);
}
.form-input, .form-textarea {
  background: var(--bg3);
  border: 1.5px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 13px 16px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
  width: 100%;
}
.form-input:focus, .form-textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--cyan-dim);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-muted); }
.form-input.input-error, .form-textarea.input-error {
  border-color: #ff4d6d;
  box-shadow: 0 0 0 3px rgba(255, 77, 109, 0.15);
}
.form-textarea { min-height: 130px; resize: vertical; }
.form-error {
  font-size: 0.78rem;
  color: #ff4d6d;
  font-family: var(--font-mono);
  min-height: 18px;
}
.form-group:last-of-type { margin-bottom: 0; }
.form-submit {
  width: 100%;
  justify-content: center;
  font-size: 1rem;
  padding: 15px 32px;
  border-radius: var(--radius-md);
}

/* Social Links Bar */
.contact-socials {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.contact-social-btn {
  width: 48px;
  height: 48px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--white);
  transition: all 0.3s ease;
}
.contact-social-btn svg {
  width: 22px;
  height: 22px;
  stroke-width: 2;
}
.contact-social-btn:hover {
  background: var(--cyan-dim);
  border-color: var(--cyan);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px var(--cyan-glow);
}

/* ─── Tech Stack Section ───────────────────────────────────── */
.tech-stack-section {
  max-width: 1200px;
  margin: 80px auto 0;
  padding: 60px 5% 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.tech-stack-label {
  font-size: 0.75rem;
  letter-spacing: 4px;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 20px;
  font-weight: 600;
  opacity: 0.85;
  font-family: var(--font-mono);
}
.tech-stack-heading {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--white);
  font-family: var(--font-display);
  line-height: 1.2;
  margin-bottom: 50px;
  letter-spacing: -0.03em;
}
.tech-stack-heading span {
  color: var(--cyan);
  text-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}
/* Glowing orb */
.tech-orb-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 55px;
}
.tech-orb {
  width: 130px;
  height: 130px;
  background: radial-gradient(circle at 40% 35%, #2a2a3a, #0d0f1d);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(0, 212, 255, 0.15);
  box-shadow: 0 0 40px rgba(0, 212, 255, 0.12), inset 0 0 30px rgba(0, 0, 0, 0.6);
  color: var(--cyan);
  animation: orbPulse 3s ease-in-out infinite;
}
@keyframes orbPulse {
  0%, 100% { box-shadow: 0 0 30px rgba(0, 212, 255, 0.1), inset 0 0 30px rgba(0, 0, 0, 0.6); }
  50% { box-shadow: 0 0 60px rgba(0, 212, 255, 0.3), 0 0 100px rgba(0, 212, 255, 0.08), inset 0 0 30px rgba(0, 0, 0, 0.6); }
}
/* Marquee track with fade edges */
.tech-marquee-track {
  overflow: hidden;
  position: relative;
  margin-bottom: 24px;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
}
.tech-marquee {
  display: flex;
  width: max-content;
}
.tech-marquee-inner {
  display: flex;
  gap: 36px;
  align-items: center;
  animation: marqueeScroll 28s linear infinite;
  padding-right: 36px;
}
.tech-marquee-reverse .tech-marquee-inner {
  animation: marqueeScrollReverse 28s linear infinite;
}
.tech-marquee-inner img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  filter: grayscale(0.3) brightness(0.9);
  transition: all 0.3s ease;
  border-radius: 8px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.tech-marquee-inner img:hover {
  filter: grayscale(0) brightness(1.2) drop-shadow(0 0 8px rgba(0, 212, 255, 0.5));
  transform: scale(1.15);
  background: rgba(0, 212, 255, 0.05);
  border-color: rgba(0, 212, 255, 0.2);
}
.tech-marquee-track:hover .tech-marquee-inner {
  animation-play-state: paused;
}
@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes marqueeScrollReverse {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-inner { gap: 40px; }
  .hero-img-ring { width: 300px; height: 300px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .certs-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  .nav-links { display: none; }
  #nav-toggle { display: flex; }

  #nav-menu {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    height: calc(100vh - var(--nav-h));
    overflow-y: auto;
    z-index: 999;
    padding: 32px 5%;
    /* Slightly transparent so blur + background can show (prevents "solid black" at top) */
    background: linear-gradient(
      180deg,
      rgba(6, 13, 30, 0.82) 0%,
      rgba(6, 13, 30, 0.66) 100%
    );
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    list-style: none;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  }
  #nav-menu.menu-open { transform: translateX(0); }
  #nav-menu li {
    width: 100%;
    display: flex;
    justify-content: center;
  }
  #nav-menu .nav-link {
    font-size: 1.2rem;
    padding: 14px 20px;
    border-radius: 12px;
    display: block;
    text-align: center;
    width: 100%;
    max-width: 320px;
    color: var(--text-dim);
    transition: var(--transition-fast);
  }
  #nav-menu .nav-link:hover, #nav-menu .nav-link.active {
    background: rgba(0, 212, 255, 0.14);
    border: 1px solid rgba(0, 212, 255, 0.22);
    color: var(--cyan);
  }

  .nav-cta {
    width: 100%;
    max-width: 320px;
    text-align: center;
    margin-left: 0;
    margin-top: 12px;
    margin-left: auto;
    margin-right: auto;
    padding: 16px;
    justify-content: center;
    display: flex;
  }

  #nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 998;
    background: rgba(6, 13, 30, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  #nav-overlay.overlay-visible { display: block; }
  #nav-toggle { display: flex; }

  body { cursor: auto; }
  #cursor, #cursor-dot { display: none; }

  .hero-section { padding-top: calc(var(--nav-h) + 24px); min-height: auto; padding-bottom: 60px; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .hero-inner > *:first-child { order: 2; }
  .hero-inner > *:last-child  { order: 1; }
  .hero-desc { margin: 0 auto 28px; }
  .hero-actions { justify-content: center; }
  .hero-img-ring { width: 240px; height: 240px; }

  .services-grid { grid-template-columns: 1fr; gap: 16px; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-item::after { display: none; }
  .featured-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-img-frame { aspect-ratio: 4/3; }
  .about-meta { grid-template-columns: 1fr; }

  .skills-layout { grid-template-columns: 1fr; gap: 40px; }
  .certs-grid { grid-template-columns: 1fr; }

  .contact-layout { grid-template-columns: 1fr; gap: 32px; }
  .contact-form-wrap { padding: 24px; }
  .form-row { grid-template-columns: 1fr; }

  .section { padding: 64px 5%; }
  .tech-stack-section { padding: 48px 5% 40px; }
  .tech-stack-heading { font-size: 1.8rem; }

  /* Footer Mobile */
  .footer-content { flex-direction: column; align-items: center; text-align: center; gap: 30px; }
  .footer-brand { align-items: center; }
  .footer-brand p { text-align: center; }
  .footer-connect { align-items: center; }
  .footer-social { justify-content: center; }
  .footer-copyright { text-align: center; }
}

@media (max-width: 480px) {
  .hero-img-ring { width: 200px; height: 200px; }
  .hero-badge { display: none; }
  .section-title { font-size: 1.6rem; }
  .footer-social { flex-wrap: wrap; justify-content: center; }
  .tech-stack-heading { font-size: 1.5rem; }
  .tech-orb { width: 90px; height: 90px; }
  .tech-orb svg { width: 36px; height: 36px; }
}

/* Responsive Utilities */
@media (max-width: 768px) {
  .hide-on-mobile { display: none !important; }
}
