/* ============================================
   AIZNEX — GLOBAL STYLES
   ============================================ */

/* --- CSS Variables (Theme System) --- */
:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #0f0f1a;
  --bg-card: rgba(255, 255, 255, 0.04);
  --border-color: rgba(139, 92, 246, 0.2);
  --text-primary: #f0f0ff;
  --text-secondary: #a0a0c0;
  --accent-purple: #8b5cf6;
  --accent-cyan: #06b6d4;
  --accent-glow: rgba(139, 92, 246, 0.4);
  --nav-bg: rgba(10, 10, 15, 0.85);
  --shadow: 0 8px 32px rgba(139, 92, 246, 0.15);
}

[data-theme="light"] {
  --bg-primary: #f8f7ff;
  --bg-secondary: #ede9fe;
  --bg-card: rgba(139, 92, 246, 0.05);
  --border-color: rgba(139, 92, 246, 0.3);
  --text-primary: #1a1a2e;
  --text-secondary: #4a4a6a;
  --accent-purple: #7c3aed;
  --accent-cyan: #0891b2;
  --accent-glow: rgba(124, 58, 237, 0.3);
  --nav-bg: rgba(248, 247, 255, 0.92);
  --shadow: 0 8px 32px rgba(124, 58, 237, 0.12);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Space Grotesk', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: clip;
  overflow-y: visible;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.4s ease;
}

.navbar.scrolled {
  box-shadow: var(--shadow);
  border-bottom-color: rgba(139, 92, 246, 0.4);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* ── Logo ── */
.nav-logo {
  font-family: 'Orbitron', monospace;
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: 3px;
  flex-shrink: 0;
}

.logo-text { color: var(--text-primary); }

.logo-accent {
  color: var(--accent-purple);
  text-shadow: 0 0 24px var(--accent-glow),
               0 0 48px rgba(139, 92, 246, 0.2);
}

/* ── Nav Links ── */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Stagger animation on load */
.nav-links li {
  opacity: 0;
  transform: translateY(-10px);
  animation: navItemDrop 0.5s ease forwards;
}

.nav-links li:nth-child(1) { animation-delay: 0.1s; }
.nav-links li:nth-child(2) { animation-delay: 0.2s; }
.nav-links li:nth-child(3) { animation-delay: 0.3s; }
.nav-links li:nth-child(4) { animation-delay: 0.4s; }
.nav-links li:nth-child(5) { animation-delay: 0.5s; }

@keyframes navItemDrop {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.3s ease, background 0.3s ease;
  overflow: hidden;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  background: rgba(139, 92, 246, 0.1);
}

/* Animated underline */
.link-underline {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 70%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
  border-radius: 2px;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 8px var(--accent-glow);
}

.nav-link:hover .link-underline,
.nav-link.active .link-underline {
  transform: translateX(-50%) scaleX(1);
}

/* Letter hover lift effect */
.link-text {
  display: inline-block;
  transition: transform 0.25s ease;
}

.nav-link:hover .link-text {
  transform: translateY(-2px);
}

/* ── Nav Actions ── */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Theme Toggle */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--accent-purple);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.theme-toggle:hover {
  background: rgba(139, 92, 246, 0.15);
  box-shadow: 0 0 18px var(--accent-glow);
  transform: rotate(20deg) scale(1.1);
}

/* ── HIRE ME Button ── */
.hire-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 50px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #fff;
  background: linear-gradient(135deg, #8b5cf6, #7c3aed, #06b6d4);
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.5),
              0 4px 15px rgba(139, 92, 246, 0.3);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Pulsing glow ring */
.hire-btn-glow {
  position: absolute;
  inset: -2px;
  border-radius: 50px;
  background: linear-gradient(135deg, #8b5cf6, #06b6d4);
  z-index: -1;
  filter: blur(8px);
  opacity: 0.6;
  animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50%       { opacity: 0.9; transform: scale(1.05); }
}

.hire-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 0 35px rgba(139, 92, 246, 0.7),
              0 8px 25px rgba(139, 92, 246, 0.4);
}

.hire-btn:active {
  transform: translateY(0) scale(0.98);
}

.hire-btn-icon {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.hire-btn:hover .hire-btn-icon {
  transform: translateX(4px);
}

/* ── Hamburger (Mobile) ── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--accent-purple);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Mobile Responsive ── */
@media (max-width: 768px) {
  .hamburger { display: flex; }

  .hire-btn-text { display: none; }
  .hire-btn {
    padding: 10px 14px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    justify-content: center;
  }

  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    background: var(--nav-bg);
    backdrop-filter: blur(24px);
    flex-direction: column;
    padding: 16px 20px 24px;
    gap: 4px;
    border-bottom: 1px solid var(--border-color);
    transform: translateY(-110%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease;
    pointer-events: none;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-link {
    width: 100%;
    text-align: center;
    padding: 13px 16px;
    font-size: 1rem;
  }
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
  padding-top: 72px;
  min-height: 100vh;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 72px;
}

/* ── Animated Background ── */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: orbFloat 8s ease-in-out infinite;
}

.orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(139,92,246,0.25), transparent 70%);
  top: -100px; left: -100px;
  animation-delay: 0s;
}

.orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(6,182,212,0.2), transparent 70%);
  top: 50%; right: -80px;
  animation-delay: -3s;
}

.orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(139,92,246,0.15), transparent 70%);
  bottom: -50px; left: 40%;
  animation-delay: -6s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(30px, -30px) scale(1.05); }
  66%       { transform: translate(-20px, 20px) scale(0.95); }
}

/* Grid overlay */
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(139,92,246,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139,92,246,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ── Particles ── */
.particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 3px; height: 3px;
  background: var(--accent-purple);
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat linear infinite;
  box-shadow: 0 0 6px var(--accent-purple);
}

@keyframes particleFloat {
  0%   { transform: translateY(100vh) scale(0); opacity: 0; }
  10%  { opacity: 0.8; }
  90%  { opacity: 0.4; }
  100% { transform: translateY(-20px) scale(1); opacity: 0; }
}

/* ── Hero Container ── */
.hero-container {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 150px;
  align-items: center;
}

/* ── Left: Text Content ── */
.hero-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 50px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  width: fit-content;
  animation: fadeInUp 0.6s ease 0.2s both;
}

.badge-dot {
  width: 8px; height: 8px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 10px #22c55e;
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

/* Title */
.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1px;
}

.title-line {
  display: block;
  animation: fadeInUp 0.6s ease both;
}

.title-line:nth-child(1) { animation-delay: 0.3s; }
.title-line:nth-child(2) { animation-delay: 0.45s; }
.title-line:nth-child(3) { animation-delay: 0.6s; }

.gradient-text {
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Subtitle */
.hero-subtitle {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 480px;
  animation: fadeInUp 0.6s ease 0.75s both;
}

.highlight {
  color: var(--accent-cyan);
  font-weight: 600;
}

/* Typed Roles */
.hero-roles {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  animation: fadeInUp 0.6s ease 0.9s both;
}

.roles-prefix {
  color: var(--text-secondary);
}

.typed-text {
  color: var(--accent-purple);
  font-weight: 600;
  min-width: 200px;
}

.typed-cursor {
  color: var(--accent-cyan);
  animation: cursorBlink 0.8s step-end infinite;
  font-weight: 300;
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* CTA Buttons */
.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease 1.05s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 14px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-purple), #7c3aed);
  color: #fff;
  box-shadow: 0 0 25px rgba(139,92,246,0.4),
              0 4px 15px rgba(139,92,246,0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 40px rgba(139,92,246,0.6),
              0 8px 25px rgba(139,92,246,0.4);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(139,92,246,0.1);
  border-color: var(--accent-purple);
  transform: translateY(-3px);
  box-shadow: 0 0 20px rgba(139,92,246,0.2);
}

/* Stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  animation: fadeInUp 0.6s ease 1.2s both;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-number {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent-purple);
  font-family: 'Orbitron', monospace;
  text-shadow: 0 0 20px var(--accent-glow);
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border-color);
}

/* ── Right: Terminal Window ── */
.hero-visual {
  position: relative;
  animation: fadeInRight 0.8s ease 0.5s both;
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

.terminal-window {
  background: rgba(15, 15, 26, 0.9);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(20px);
  box-shadow: 0 0 60px rgba(139,92,246,0.15),
              0 20px 60px rgba(0,0,0,0.4);
}

[data-theme="light"] .terminal-window {
  background: rgba(240, 235, 255, 0.95);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: rgba(139,92,246,0.08);
  border-bottom: 1px solid var(--border-color);
}

.terminal-dots {
  display: flex;
  gap: 7px;
}

.dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}

.dot-red    { background: #ff5f57; }
.dot-yellow { background: #ffbd2e; }
.dot-green  { background: #28c840; }

.terminal-title {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-family: 'Space Grotesk', monospace;
  margin-left: auto;
  margin-right: auto;
}

.terminal-body {
  padding: 24px;
  font-family: 'Space Grotesk', monospace;
  font-size: 0.88rem;
  line-height: 1.9;
}

.terminal-line { display: block; }
.terminal-line.indent { padding-left: 24px; }
.terminal-line.output {
  margin-top: 8px;
  padding: 8px 12px;
  background: rgba(139,92,246,0.08);
  border-radius: 8px;
  border-left: 3px solid var(--accent-purple);
}

/* Syntax Colors */
.t-comment { color: #6b7280; font-style: italic; }
.t-keyword { color: #c084fc; }
.t-var     { color: #60a5fa; }
.t-op      { color: var(--text-secondary); }
.t-bracket { color: #f0f0ff; }
.t-key     { color: #34d399; }
.t-string  { color: #fbbf24; }
.t-bool    { color: #f87171; }
.t-func    { color: #60a5fa; }
.t-method  { color: #a78bfa; }
.t-arrow   { color: var(--accent-purple); }
.t-output  { color: #34d399; }

[data-theme="light"] .t-bracket { color: #1a1a2e; }

/* Floating Tech Badges */
.float-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 50px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(16px);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  box-shadow: 0 4px 20px rgba(139,92,246,0.15);
  white-space: nowrap;
}

.float-badge i { color: var(--accent-purple); }

.badge-1 {
  top: -16px; right: 20px;
  animation: badgeFloat 4s ease-in-out infinite;
}
.badge-2 {
  bottom: 30px; right: -20px;
  animation: badgeFloat 4s ease-in-out infinite 1s;
}
.badge-3 {
  top: 40%; left: -30px;
  animation: badgeFloat 4s ease-in-out infinite 2s;
}
.badge-4 {
  bottom: -16px; left: 30px;
  animation: badgeFloat 4s ease-in-out infinite 0.5s;
}

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

/* ── Scroll Indicator ── */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
  animation: fadeInUp 0.6s ease 1.5s both;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--accent-purple), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; height: 48px; }
  50%       { opacity: 0.4; height: 48px; }
}

.scroll-indicator span {
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* ── Fade In Up (shared keyframe) ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Hero Responsive ── */
@media (max-width: 900px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }
  .hero-badge { margin: 0 auto; }
  .hero-subtitle { margin: 0 auto; }
  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-roles { justify-content: center; }
  .hero-visual { max-width: 500px; margin: 0 auto; }
  .badge-3 { left: -10px; }
  .badge-2 { right: -10px; }
}

@media (max-width: 480px) {
  .hero-container { padding: 40px 20px; }
  .hero-title { font-size: 2rem; }
  .hero-stats { gap: 16px; }
  .stat-number { font-size: 1.3rem; }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  position: relative;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  margin-top: 0px;
}

/* Glowing top border */
.footer-glow-line {
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--accent-purple) 30%,
    var(--accent-cyan) 70%,
    transparent 100%
  );
  animation: glowSweep 4s ease-in-out infinite;
}

@keyframes glowSweep {
  0%, 100% { opacity: 0.6; }
  50%       { opacity: 1; }
}

/* ── Main Grid ── */
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 28px 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 48px;
}

/* ── Brand Column ── */
.footer-logo {
  font-family: 'Orbitron', monospace;
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: 3px;
  color: var(--text-primary);
  display: inline-block;
  margin-bottom: 14px;
}

.footer-tagline {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 260px;
  margin-bottom: 24px;
}

/* Social Icons */
.footer-socials {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.social-link:hover {
  color: var(--accent-purple);
  border-color: var(--accent-purple);
  background: rgba(139, 92, 246, 0.12);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.2);
}

/* ── Link Columns ── */
.footer-col-title {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-purple);
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: all 0.25s ease;
}

.footer-link i {
  font-size: 0.65rem;
  color: var(--accent-purple);
  transition: transform 0.25s ease;
}

.footer-link:hover {
  color: var(--text-primary);
  padding-left: 4px;
}

.footer-link:hover i {
  transform: translateX(3px);
}

/* ── Contact Column ── */
.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.footer-contact-item i {
  width: 18px;
  color: var(--accent-cyan);
  font-size: 0.9rem;
}

/* Mini CTA Button */
.footer-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 10px;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid var(--border-color);
  color: var(--accent-purple);
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.footer-cta:hover {
  background: rgba(139, 92, 246, 0.22);
  border-color: var(--accent-purple);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.2);
}

/* ── Bottom Bar ── */
.footer-bottom {
  border-top: 1px solid var(--border-color);
}

.footer-bottom-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.copy-accent {
  color: var(--accent-purple);
  font-weight: 600;
}

.footer-made {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.footer-heart {
  color: #f43f5e;
  animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.3); }
}

/* ── Footer Responsive ── */
@media (max-width: 900px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .footer-brand {
    grid-column: span 2;
  }
}

@media (max-width: 560px) {
  .footer-container {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: span 1;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================================
   SHARED SCROLL ANIMATIONS
   ============================================ */

/* ── Base Animation States ── */
.anim-fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1),
              transform 0.7s cubic-bezier(0.4,0,0.2,1);
}

.anim-fade-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1),
              transform 0.7s cubic-bezier(0.4,0,0.2,1);
}

.anim-fade-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1),
              transform 0.7s cubic-bezier(0.4,0,0.2,1);
}

.anim-scale-up {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.6s cubic-bezier(0.4,0,0.2,1),
              transform 0.6s cubic-bezier(0.175,0.885,0.32,1.275);
}

.anim-fade-down {
  opacity: 0;
  transform: translateY(-30px);
  transition: opacity 0.6s ease,
              transform 0.6s ease;
}

/* ── Visible State (added by JS) ── */
.anim-fade-up.in-view,
.anim-fade-left.in-view,
.anim-fade-right.in-view,
.anim-scale-up.in-view,
.anim-fade-down.in-view {
  opacity: 1;
  transform: none;
}

/* ── Stagger Delays ── */
.stagger-1 { transition-delay: 0.1s !important; }
.stagger-2 { transition-delay: 0.2s !important; }
.stagger-3 { transition-delay: 0.3s !important; }
.stagger-4 { transition-delay: 0.4s !important; }
.stagger-5 { transition-delay: 0.5s !important; }
.stagger-6 { transition-delay: 0.6s !important; }

/* ── Section Headings shared style ── */
.section-heading {
  text-align: center;
  margin-bottom: 56px;
}

.section-heading .section-label {
  justify-content: center;
  margin-bottom: 12px;
}

.section-heading .section-title {
  text-align: center;
}

.section-heading p {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 12px auto 0;
  line-height: 1.7;
}

/* ── Counter Number style ── */
.counter-num {
  display: inline-block;
}

/* ── Page transition overlay ── */
.page-transition {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.page-transition.active {
  opacity: 1;
}

/* ============================================
   FINAL POLISH — Global Improvements
   ============================================ */

/* ── Selection Color ── */
::selection {
  background: rgba(139,92,246,0.3);
  color: var(--text-primary);
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: rgba(139,92,246,0.4);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-purple);
}

/* ── Focus Outline ── */
*:focus-visible {
  outline: 2px solid var(--accent-purple);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Image Fade ── */
img {
  transition: opacity 0.3s ease;
  opacity: 1;
}

/* ── Smooth Anchor Links ── */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

/* ── Light Mode Improvements ── */
[data-theme="light"] .terminal-window {
  background: rgba(240,235,255,0.95);
  box-shadow: 0 0 60px rgba(124,58,237,0.1),
              0 20px 60px rgba(0,0,0,0.1);
}

[data-theme="light"] .orb-1 {
  background: radial-gradient(circle,
    rgba(124,58,237,0.15), transparent 70%);
}

[data-theme="light"] .orb-2 {
  background: radial-gradient(circle,
    rgba(8,145,178,0.12), transparent 70%);
}

[data-theme="light"] .grid-overlay {
  background-image:
    linear-gradient(rgba(124,58,237,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,58,237,0.06) 1px, transparent 1px);
}

[data-theme="light"] .nav-logo .logo-text {
  color: var(--text-primary);
}

[data-theme="light"] .footer {
  background: #f0eeff;
}

[data-theme="light"] .terminal-body .t-bracket {
  color: #1a1a2e;
}

/* ── Card Hover Glow ── */
.project-card,
.do-card,
.about-stat-card,
.tech-card,
.learning-card {
  will-change: transform;
}

/* ── Button Active States ── */
.btn:active,
.hire-btn:active,
.detail-btn:active {
  transform: scale(0.97) !important;
}

/* ── Gradient Text Helper ── */
.gradient-text {
  background: linear-gradient(135deg,
    var(--accent-purple),
    var(--accent-cyan)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Highlight Helper ── */
.highlight {
  color: var(--accent-cyan);
  font-weight: 600;
}

/* ── Glowing Dot ── */
.glow-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e;
  animation: blink 2s ease-in-out infinite;
}

/* ── Section Spacing ── */
section + section {
  margin-top: 0;
}

/* ── Prevent Layout Shift ── */
.hero-visual,
.about-avatar-wrap {
  contain: layout;
}

/* ── Mobile Touch Improvements ── */
@media (hover: none) {
  .project-card:hover {
    transform: none;
  }
  .card-overlay {
    opacity: 1;
    background: rgba(10,10,15,0.5);
  }
  .overlay-btn {
    transform: none;
  }
}

/* ── Print Styles ── */
@media print {
  .navbar,
  .footer,
  .hire-btn,
  .scroll-indicator {
    display: none !important;
  }
  body {
    background: white;
    color: black;
  }
}

/* ── Mobile Improvements ── */
@media (max-width: 768px) {

  /* Prevent horizontal scroll */
  body { overflow-x: clip; }

  /* Better tap targets */
  .nav-link,
  .filter-btn,
  .btn,
  .footer-link {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  /* Hero title smaller on very small screens */
  @media (max-width: 360px) {
    .hero-title { font-size: 1.8rem; }
    .page-hero-title { font-size: 2.2rem; }
  }

  /* Stack CTA buttons on mobile */
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta .btn {
    justify-content: center;
  }

  /* Hide floating badges on small screens */
  .float-badge {
    display: none;
  }

  /* Full width cards on mobile */
  .about-stat-card,
  .do-card {
    width: 100%;
  }
}

/* Clickable stats */
.hero-stats .stat {
  transition: transform 0.3s ease;
}

.hero-stats .stat:hover {
  transform: translateY(-4px);
}

.hero-stats .stat:hover .stat-number {
  text-shadow: 0 0 30px var(--accent-glow);
}

/* ── Home Projects Section ── */
.home-projects {
  padding: 80px 28px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
}

.home-projects-container {
  max-width: 1200px;
  margin: 0 auto;
}

.home-projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Home project skeleton */
.home-project-skeleton {
  height: 300px;
  border-radius: 18px;
  border: 1px solid var(--border-color);
  background: linear-gradient(
    105deg,
    rgba(139,92,246,0.04) 40%,
    rgba(139,92,246,0.08) 50%,
    rgba(139,92,246,0.04) 60%
  );
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}

/* Home project cards */
.home-proj-card {
  border-radius: 18px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s ease;
  text-decoration: none;
  display: block;
}

.home-proj-card:hover {
  border-color: rgba(139,92,246,0.4);
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(139,92,246,0.15);
}

.home-proj-img {
  height: 180px;
  background: linear-gradient(135deg,
    rgba(139,92,246,0.15),
    rgba(6,182,212,0.1)
  );
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(139,92,246,0.3);
}

.home-proj-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.home-proj-card:hover .home-proj-img img {
  transform: scale(1.05);
}

.home-proj-body {
  padding: 20px;
}

.home-proj-cat {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 8px;
}

.home-proj-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.3;
}

.home-proj-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 900px) {
  .home-projects-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .home-projects-grid { grid-template-columns: 1fr; }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── GLOBAL 16:9 IMAGE RATIO ── */

/* Portfolio page cards */
.card-img-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 ratio */
  height: 0 !important;
  overflow: hidden;
}

.card-img-wrap img,
.card-img-wrap .card-img-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Homepage featured projects */
.home-proj-img {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0 !important;
  overflow: hidden;
}

.home-proj-img img,
.home-proj-img i {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-proj-img i {
  font-size: 3rem;
  color: rgba(139,92,246,0.3);
}

/* Project detail hero image */
.detail-hero-img img {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto !important;
  object-fit: cover;
}

/* More projects / recommended cards */
.more-card-img {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0 !important;
  overflow: hidden;
  border-radius: 10px;
}

.more-card-img img,
.more-card-img i {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Showcase cards on about page */
.showcase-proj-img img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 10px;
}

/* Home proj overlay fix for 16:9 */
.home-proj-img::after {
  content: '';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Footer Admin Link */
.footer-admin-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(139,92,246,0.4);
  text-decoration: none;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.3s ease;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid transparent;
}

.footer-admin-link:hover {
  color: var(--accent-purple);
  border-color: rgba(139,92,246,0.2);
  background: rgba(139,92,246,0.05);
}

.footer-admin-link i { font-size: 0.7rem; }