/* =========================================
   DESIGN TOKENS & RESET
   ========================================= */
:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.07);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --border-glass: rgba(255, 255, 255, 0.1);
  --text-primary: #f5f5f5;
  --text-secondary: #a0a0a0;
  --text-muted: #5a5a5a;
  --accent-primary: #ffffff;
  --accent-secondary: #cccccc;
  --accent-gradient: linear-gradient(135deg, #ffffff 0%, #999999 100%);
  --accent-glow: 0 0 30px rgba(255, 255, 255, 0.1);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  cursor: none;
}

a { text-decoration: none; color: inherit; cursor: none; }
button { cursor: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================================
   CUSTOM CURSOR
   ========================================= */
.cursor-dot {
  position: fixed;
  top: -4px;
  left: -4px;
  width: 8px;
  height: 8px;
  background: #ffffff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  will-change: transform;
  transition: width 0.3s, height 0.3s, background 0.3s, opacity 0.3s;
  mix-blend-mode: difference;
}

.cursor-dot.cursor-hover {
  width: 4px;
  height: 4px;
  background: #fff;
}

.cursor-ring {
  position: fixed;
  top: -14px;
  left: -14px;
  width: 28px;
  height: 28px;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  will-change: transform;
  transition: width 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              height 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              border-color 0.3s,
              background 0.3s;
}

.cursor-ring.cursor-hover {
  width: 44px;
  height: 44px;
  top: -22px;
  left: -22px;
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.03);
}

.cursor-ring.cursor-click {
  transform: scale(0.8);
  border-color: rgba(255, 255, 255, 0.7);
}

.cursor-glow {
  position: fixed;
  top: -75px;
  left: -75px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99997;
  will-change: transform;
}

/* Hide cursor on touch / small screens */
@media (max-width: 768px) {
  .cursor-dot, .cursor-ring, .cursor-glow { display: none; }
  body, a, button { cursor: auto; }
}

/* =========================================
   SCROLL PROGRESS BAR
   ========================================= */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #ffffff 0%, #666666 100%);
  z-index: 10001;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

/* =========================================
   AMBIENT BACKGROUND
   ========================================= */
.ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  transition: background 0.3s ease;
}

/* =========================================
   FLOATING SHAPES (decorative)
   ========================================= */
.floating-shapes {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.floating-shape {
  position: absolute;
  width: var(--size);
  height: var(--size);
  left: var(--x);
  top: var(--y);
  border-radius: 50%;
  background: radial-gradient(circle, hsla(0, 0%, 100%, 0.03), transparent);
  filter: blur(60px);
  animation: floatShape var(--duration) ease-in-out var(--delay) infinite alternate;
}

@keyframes floatShape {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -50px) scale(1.1); }
  66% { transform: translate(-20px, 30px) scale(0.9); }
  100% { transform: translate(40px, 20px) scale(1.05); }
}

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

.loader.fade-out {
  opacity: 0;
  visibility: hidden;
}

#loaderCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.loader-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.loader-logo {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 16px;
  animation: logoFloat 3s ease-in-out infinite;
}

.logo-bracket {
  color: var(--accent-primary);
  font-family: var(--font-mono);
  font-weight: 600;
}

.logo-name {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.loader-tagline {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-secondary);
  height: 24px;
  margin-bottom: 32px;
}

.loader-bar-track {
  width: 280px;
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  margin: 0 auto 12px;
  overflow: hidden;
}

.loader-bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #ffffff 0%, #666666 100%);
  border-radius: 10px;
  transition: width 0.15s linear;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
}

.loader-percent {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 2px;
}

/* =========================================
   MAIN CONTENT
   ========================================= */
.main-content.hidden {
  opacity: 0;
  visibility: hidden;
}

.main-content {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.8s ease 0.3s;
  position: relative;
  z-index: 1;
}

/* =========================================
   NAVBAR
   ========================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  transition: all var(--transition-smooth);
}

.navbar.scrolled {
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  padding: 12px 40px;
}

.nav-logo {
  font-size: 1.4rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 2px;
  transition: transform var(--transition-fast);
}

.nav-logo:hover {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  gap: 8px;
}

.nav-link {
  padding: 8px 18px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 20px;
  height: 2px;
  background: var(--accent-gradient);
  border-radius: 2px;
  transition: transform var(--transition-fast);
}

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

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: none;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(20px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-smooth);
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
}

.mobile-link {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.mobile-link:hover {
  color: var(--text-primary);
}

/* =========================================
   HERO SECTION (Split Layout)
   ========================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 100px 24px 60px;
  overflow: hidden;
}

#particleCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Decorative gradient orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.hero-orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(108, 99, 255, 0.12), transparent 70%);
  top: -10%;
  left: -5%;
  animation: orbFloat1 12s ease-in-out infinite alternate;
}

.hero-orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1), transparent 70%);
  bottom: 5%;
  right: -5%;
  animation: orbFloat2 15s ease-in-out infinite alternate;
}

.hero-orb-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.08), transparent 70%);
  top: 40%;
  left: 50%;
  animation: orbFloat3 18s ease-in-out infinite alternate;
}

@keyframes orbFloat1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(60px, 40px) scale(1.15); }
}

@keyframes orbFloat2 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-50px, -30px) scale(1.1); }
}

@keyframes orbFloat3 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -50px) scale(0.9); }
}

/* Split layout */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1200px;
  width: 100%;
  padding: 0 24px;
}

.hero-content.hero-split {
  text-align: left;
}

.hero-text-col {
  will-change: transform, opacity;
}

/* Availability status */
.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 18px 6px 12px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 30px;
  margin-bottom: 24px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #10B981;
  border-radius: 50%;
  animation: statusPulse 2s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.status-text {
  font-size: 0.78rem;
  font-weight: 500;
  color: #10B981;
  letter-spacing: 0.5px;
}

.hero-greeting {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--accent-primary);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero-name {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #fff 0%, #c8c8d8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: letter-spacing 0.5s ease;
}

.hero-name:hover {
  letter-spacing: 4px;
}

.hero-title-wrapper {
  display: flex;
  align-items: center;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 500;
  margin-bottom: 24px;
  min-height: 40px;
}

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

.hero-title-typed {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

.typed-cursor {
  color: var(--accent-primary);
  animation: blink 1s step-end infinite;
  font-weight: 300;
  margin-left: 2px;
}

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

.hero-description {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 0 36px;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

/* ─── Hero Visual Column ─── */
.hero-visual-col {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
}

/* Floating Code Card */
.hero-code-card {
  position: relative;
  z-index: 3;
  width: max-content;
  max-width: 95vw;
  background: rgba(18, 18, 26, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(20px);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(108, 99, 255, 0.08);
  transform-style: preserve-3d;
  transition: transform 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s ease;
  --mouse-x: 50%;
  --mouse-y: 50%;
}

/* Gradient Border that follows cursor */
.hero-code-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: radial-gradient(
    400px circle at var(--mouse-x) var(--mouse-y), 
    rgba(108, 99, 255, 0.9),
    rgba(236, 72, 153, 0.6),
    transparent 40%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Internal soft glow that follows cursor */
.hero-code-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    600px circle at var(--mouse-x) var(--mouse-y), 
    rgba(108, 99, 255, 0.15),
    transparent 40%
  );
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hero-code-card:hover::before,
.hero-code-card:hover::after {
  opacity: 1;
}

/* Animated Code Highlight on Hover */
.hero-code-card:hover .code-keyword,
.hero-code-card:hover .code-var,
.hero-code-card:hover .code-string,
.hero-code-card:hover .code-bracket {
  animation: codePulse 2s infinite alternate;
}

@keyframes codePulse {
  0% { filter: brightness(1) drop-shadow(0 0 0 rgba(255,255,255,0)); }
  100% { filter: brightness(1.3) drop-shadow(0 0 8px rgba(255,255,255,0.4)); }
}

.hero-code-card:hover {
  transform: translateY(-8px) rotate(-1deg);
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(108, 99, 255, 0.15);
}

@keyframes codeCardFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-12px) rotate(0.5deg); }
  66% { transform: translateY(-6px) rotate(-0.5deg); }
}

.code-card-header {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.code-card-dots {
  display: flex;
  gap: 6px;
}

.code-card-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.code-card-title {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.code-card-body {
  padding: 24px 24px 30px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 2.2;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.code-card-body::-webkit-scrollbar {
  display: none;
}

.code-line {
  white-space: nowrap;
}

.code-line.indent {
  padding-left: 24px;
}

.code-keyword { color: #c678dd; }
.code-var { color: #e5c07b; }
.code-op { color: var(--text-muted); }
.code-bracket { color: #e5c07b; }
.code-key { color: #e06c75; }
.code-string { color: #98c379; }
.code-number { color: #d19a66; }

/* Hero Social Group */
.hero-social-group {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.hero-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(18, 18, 26, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hero-social-btn:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(30, 30, 45, 0.9);
}

.hero-social-btn svg, .hero-social-btn img {
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hero-social-btn:hover svg, .hero-social-btn:hover img {
  transform: scale(1.2) rotate(5deg);
}

.code-bool { color: #56b6c2; }

/* Orbiting tech icons */
.hero-orbit {
  position: absolute;
  width: 700px;
  height: 700px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  animation: rotateOrbit 50s linear infinite;
}



@keyframes rotateOrbit {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.orbit-ring {
  position: absolute;
  inset: 0;
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.orbit-ring-1 {
  animation: orbitSpin 40s linear infinite;
}

.orbit-ring-2 {
  inset: 40px;
  border-color: rgba(255, 255, 255, 0.05);
  animation: orbitSpin 30s linear infinite reverse;
}

@keyframes orbitSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.orbit-icon {
  position: absolute;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(18, 18, 26, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  z-index: 2;
  transition: box-shadow 0.3s ease;
  margin-top: -20px;
  margin-left: -20px;
  animation: counterRotate 50s linear infinite;
}

@keyframes counterRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(-360deg); }
}

.orbit-icon:hover {
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.15);
  z-index: 10;
}

.orbit-icon svg, .orbit-icon img {
  width: 22px;
  height: 22px;
  transition: transform 0.3s ease;
}

.orbit-icon:hover svg, .orbit-icon:hover img {
  transform: scale(1.3);
}

/* Position each icon around the orbit */
.orbit-icon-1 { top: 0%; left: 50%; }
.orbit-icon-2 { top: 14.65%; left: 85.36%; }
.orbit-icon-3 { top: 50%; left: 100%; }
.orbit-icon-4 { top: 85.36%; left: 85.36%; }
.orbit-icon-5 { top: 100%; left: 50%; }
.orbit-icon-6 { top: 85.36%; left: 14.64%; }
.orbit-icon-7 { top: 50%; left: 0%; }
.orbit-icon-8 { top: 14.65%; left: 14.64%; }

/* Hero Stats (left-aligned) */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
}

.hero-split .hero-stats {
  justify-content: flex-start;
}

/* =========================================
   BUTTONS (with ripple)
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-xl);
  font-size: 0.92rem;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: none;
  transition: all var(--transition-smooth);
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: #ffffff;
  color: #0a0a0a;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.25);
  background: #e0e0e0;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-glass);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background: var(--bg-glass);
  border-color: var(--accent-primary);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* Ripple */
.btn-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  animation: rippleOut 0.7s ease-out forwards;
  pointer-events: none;
}

@keyframes rippleOut {
  from { transform: scale(0); opacity: 1; }
  to { transform: scale(1); opacity: 0; }
}

/* Success pulse */
.btn-success-pulse {
  animation: successPulse 0.6s ease;
}

@keyframes successPulse {
  0% { transform: scale(1); }
  30% { transform: scale(1.05); }
  60% { transform: scale(0.97); }
  100% { transform: scale(1); }
}

/* =========================================
   HERO STATS
   ========================================= */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
}

.stat-plus {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
}

.stat-label {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 2px;
}

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

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid var(--text-muted);
  border-radius: 14px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 6px;
}

.scroll-dot {
  width: 3px;
  height: 8px;
  background: var(--accent-primary);
  border-radius: 4px;
  animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

@keyframes scrollDot {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(12px); opacity: 0; }
}

/* =========================================
   HERO-SPECIFIC COLOR OVERRIDES
   (Keep the hero section vibrant while
    the rest of the site is monochrome)
   ========================================= */
.hero .hero-greeting {
  color: #6C63FF;
}

.hero .hero-title-typed {
  background: linear-gradient(135deg, #6C63FF 0%, #3B82F6 50%, #06B6D4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero .typed-cursor {
  color: #6C63FF;
}

.hero .btn-primary {
  background: linear-gradient(135deg, #6C63FF 0%, #3B82F6 50%, #06B6D4 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(108, 99, 255, 0.3);
  transition: none; /* Disable transitions */
}

.hero .btn-primary:hover {
  box-shadow: 0 4px 20px rgba(108, 99, 255, 0.3); /* Keep original shadow */
  background: linear-gradient(135deg, #6C63FF 0%, #3B82F6 50%, #06B6D4 100%);
}

.hero .btn-primary:hover::before {
  opacity: 0; /* Disable the glassy overlay effect */
}

.hero .btn-outline:hover {
  border-color: #6C63FF;
}

.hero .stat-number {
  background: linear-gradient(135deg, #6C63FF 0%, #3B82F6 50%, #06B6D4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero .stat-plus {
  color: #6C63FF;
}

.hero .scroll-dot {
  background: #6C63FF;
}

.hero .hero-code-card {
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(108, 99, 255, 0.08);
}

.hero .hero-code-card:hover {
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(108, 99, 255, 0.15);
}

.hero .orbit-ring {
  border-color: rgba(108, 99, 255, 0.1);
}

.hero .orbit-ring-2 {
  border-color: rgba(59, 130, 246, 0.08);
}

.hero .orbit-icon:hover {
  box-shadow: 0 8px 25px rgba(108, 99, 255, 0.3);
}

/* =========================================
   SECTION COMMON
   ========================================= */
.section {
  padding: 120px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
  will-change: transform;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-primary);
  display: block;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.section-line {
  width: 0px;
  height: 3px;
  background: linear-gradient(90deg, #ffffff 0%, #555555 100%);
  border-radius: 3px;
  margin: 0 auto;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-line.line-animate {
  width: 60px;
}

/* =========================================
   ABOUT SECTION — Futuristic Redesign
   ========================================= */
.about {
  position: relative;
  overflow: hidden;
  background: #hsla(240, 30%, 8%);
}

/* --- Background Layers --- */
.about-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(108, 99, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108, 99, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
  animation: aboutGridDrift 20s linear infinite;
}

@keyframes aboutGridDrift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(60px, 60px); }
}

.about-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  z-index: 0;
  pointer-events: none;
}

.about-bg-orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(108, 99, 255, 0.15) 0%, transparent 70%);
  top: -10%;
  left: -10%;
  animation: aboutOrbFloat 12s ease-in-out infinite;
}

.about-bg-orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.12) 0%, transparent 70%);
  bottom: -10%;
  right: -5%;
  animation: aboutOrbFloat 15s ease-in-out infinite 5s;
}

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

.about-particles-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.about .container {
  position: relative;
  z-index: 1;
}

/* --- Grid Layout --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  align-items: center;
}

/* --- LEFT: Profile Card --- */
.about-profile-col {
  display: flex;
  justify-content: center;
}

.about-profile-card {
  position: relative;
  width: 400px;
  height: 500px;
  background: rgba(40, 20, 80, 0.4); /* Dark neon purple */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(108, 99, 255, 0.2);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  box-shadow:
    0 0 60px rgba(108, 99, 255, 0.1),
    0 30px 60px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(108, 99, 255, 0.15);
  transition: border-color 0.5s ease, box-shadow 0.5s ease, background 0.5s ease;
}

.about-profile-card:hover {
  border-color: rgba(108, 99, 255, 0.3);
  box-shadow:
    0 0 80px rgba(108, 99, 255, 0.15),
    0 40px 80px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* --- Pulse Rings --- */
.about-pulse-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 1px solid rgba(108, 99, 255, 0.1);
  pointer-events: none;
}

.about-pulse-ring-1 {
  width: 260px;
  height: 260px;
  transform: translate(-50%, -55%);
  animation: aboutPulse 4s ease-out infinite;
}

.about-pulse-ring-2 {
  width: 320px;
  height: 320px;
  transform: translate(-50%, -55%);
  animation: aboutPulse 4s ease-out infinite 1.3s;
}

.about-pulse-ring-3 {
  width: 400px;
  height: 400px;
  transform: translate(-50%, -55%);
  animation: aboutPulse 4s ease-out infinite 2.6s;
}

@keyframes aboutPulse {
  0% { opacity: 0.4; transform: translate(-50%, -55%) scale(0.8); }
  100% { opacity: 0; transform: translate(-50%, -55%) scale(1.3); }
}



/* --- Avatar --- */
.about-avatar-wrapper {
  position: absolute;
  inset: 10px; /* Added margin */
  width: auto;
  height: auto;
  z-index: 2;
}

.about-avatar-glow {
  display: none;
}

.about-avatar-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
}

.about-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 10px;
  display: block;
  transition: transform 0.5s ease, filter 0.4s ease;
}

.about-profile-card:hover .about-avatar-img {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.about-avatar-rim {
  display: none;
}

/* --- Floating Tags --- */
.about-float-tag {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(108, 99, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(108, 99, 255, 0.2);
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  white-space: nowrap;
  z-index: 3;
  pointer-events: none;
  box-shadow: 0 4px 15px rgba(108, 99, 255, 0.1);
}

.about-float-tag svg {
  color: #6C63FF;
  flex-shrink: 0;
}

.about-float-tag-1 {
  top: 60px;
  left: -40px;
  animation: aboutTagFloat 5s ease-in-out infinite;
}

.about-float-tag-2 {
  top: 30px;
  right: -50px;
  animation: aboutTagFloat 6s ease-in-out infinite 1s;
}

.about-float-tag-3 {
  bottom: 80px;
  left: -30px;
  animation: aboutTagFloat 5.5s ease-in-out infinite 2s;
}

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

/* --- Experience Badge --- */
.about-exp-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: linear-gradient(135deg, #6C63FF 0%, #3B82F6 100%);
  padding: 16px 20px;
  border-radius: 16px;
  text-align: center;
  z-index: 4;
  box-shadow: 0 8px 30px rgba(108, 99, 255, 0.3);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.about-exp-badge:hover {
  transform: scale(1.1) rotate(-3deg);
}

.about-exp-number {
  display: block;
  font-size: 1.8rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
}

.about-exp-label {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  line-height: 1.3;
}

/* --- Card Light Sweep --- */
.about-card-sweep {
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(108, 99, 255, 0.05) 40%,
    rgba(108, 99, 255, 0.1) 50%,
    rgba(108, 99, 255, 0.05) 60%,
    transparent 100%
  );
  transform: skewX(-20deg);
  animation: aboutCardSweep 6s ease-in-out infinite;
  pointer-events: none;
  border-radius: 24px;
}

@keyframes aboutCardSweep {
  0%, 100% { left: -100%; }
  50% { left: 200%; }
}

/* --- RIGHT: Content Column --- */
.about-content-col {
  position: relative;
}

.about-subtitle {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 4px;
  color: #6C63FF;
  margin-bottom: 16px;
  position: relative;
  padding-left: 40px;
}

.about-subtitle::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, #6C63FF, #3B82F6);
  border-radius: 2px;
}

.about-heading {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 24px;
  line-height: 1.3;
  color: #ffffff;
}

.about-heading-gradient {
  background: linear-gradient(135deg, #6C63FF 0%, #3B82F6 50%, #06B6D4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about-bio {
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 16px;
  font-size: 0.95rem;
  line-height: 1.75;
}

/* --- Info Cards --- */
.about-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 32px 0 36px;
}

.about-info-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(108, 99, 255, 0.1);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.4s ease;
}

.about-info-card:hover {
  border-color: rgba(108, 99, 255, 0.3);
  background: rgba(108, 99, 255, 0.06);
  box-shadow: 0 0 25px rgba(108, 99, 255, 0.1);
  transform: translateY(-2px);
}

.about-info-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(108, 99, 255, 0.1);
  border-radius: 10px;
  flex-shrink: 0;
  color: #6C63FF;
  transition: all 0.4s ease;
}

.about-info-card:hover .about-info-icon {
  background: rgba(108, 99, 255, 0.2);
  box-shadow: 0 0 15px rgba(108, 99, 255, 0.2);
  color: #818CF8;
}

.about-info-label {
  display: block;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 2px;
}

.about-info-value {
  font-weight: 600;
  font-size: 0.92rem;
  color: #ffffff;
}

.about-info-sweep {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(108, 99, 255, 0.06) 50%,
    transparent 100%
  );
  transform: skewX(-20deg);
  animation: aboutInfoSweep 5s ease-in-out infinite;
  animation-delay: var(--card-delay, 0s);
  pointer-events: none;
}

@keyframes aboutInfoSweep {
  0%, 100% { left: -100%; }
  50% { left: 200%; }
}

/* --- CTA Button --- */
.about-cta-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(135deg, #6C63FF 0%, #3B82F6 50%, #06B6D4 100%);
  border-radius: 50px;
  text-decoration: none;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 25px rgba(108, 99, 255, 0.3);
}

.about-cta-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 40px rgba(108, 99, 255, 0.45);
}

.about-cta-glow {
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, #6C63FF 0%, #3B82F6 50%, #06B6D4 100%);
  border-radius: 50px;
  filter: blur(15px);
  opacity: 0.4;
  z-index: -1;
  transition: opacity 0.4s ease;
}

.about-cta-btn:hover .about-cta-glow {
  opacity: 0.7;
}

.about-cta-btn svg {
  transition: transform 0.3s ease;
}

.about-cta-btn:hover svg {
  transform: translateX(4px);
}

/* --- About Responsive --- */
@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .about-profile-col {
    order: -1;
  }

  .about-profile-card {
    width: 280px;
    height: 350px;
  }

  .about-float-tag-1 { left: -10px; }
  .about-float-tag-2 { right: -20px; }
  .about-float-tag-3 { left: -5px; }

  .about-exp-badge { right: -10px; bottom: -15px; }

  .about-content-col {
    text-align: center;
  }

  .about-subtitle {
    padding-left: 0;
  }

  .about-subtitle::before {
    display: none;
  }

  .about-info-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-cta-btn {
    margin: 0 auto;
  }

  .about-bg-orb-1 { width: 300px; height: 300px; }
  .about-bg-orb-2 { width: 250px; height: 250px; }
}

@media (max-width: 480px) {
  .about-profile-card {
    width: 240px;
    height: 300px;
  }

  .about-avatar-wrapper {
    width: 120px;
    height: 140px;
  }

  .about-float-tag { font-size: 0.65rem; padding: 5px 10px; }

  .about-info-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   SKILLS SECTION
   ========================================= */
.skills {
  position: relative;
  overflow: hidden;
  background: linear-gradient(to bottom, var(--bg-primary), #050505);
}

.skill-stars-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.skills .container {
  position: relative;
  z-index: 1;
}

.skills-categories {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
}

.skill-category {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

@media (max-width: 768px) {
  .skill-category-title {
    font-size: 1.1rem;
    margin-bottom: 20px;
  }

  .skill-pills {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 16px;
    width: 100vw;
    padding-left: 20px;
    padding-right: 20px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  
  .skill-pills::-webkit-scrollbar {
    display: none;
  }

  .skill-pill {
    flex-shrink: 0;
  }
}

.skill-category-title {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 24px;
}

.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  max-width: 900px;
}

.skill-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 50px;
  transition: all var(--transition-smooth);
  cursor: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.skill-pill:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.08);
  transform: translateY(-4px);
}

.skill-pill-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.skill-pill-icon svg,
.skill-pill-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  transition: transform var(--transition-fast);
}

.skill-pill:hover .skill-pill-icon svg,
.skill-pill:hover .skill-pill-icon img {
  transform: scale(1.1);
}

.skill-pill-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: color var(--transition-fast);
}

.skill-pill:hover .skill-pill-text {
  color: #ffffff;
}

/* =========================================
   CERTIFICATES SECTION
   ========================================= */
.certificates {
  background: #050505; /* Sleek dark monochrome */
  position: relative;
  overflow: hidden;
}

.cert-particles-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.8;
}

/* Certificates Background Layers */
.cert-bg-dots {
  position: absolute;
  top: -50px;
  left: -50px;
  right: -50px;
  bottom: -50px;
  background-image: radial-gradient(rgba(139, 92, 246, 0.15) 2px, transparent 2px);
  background-size: 30px 30px;
  z-index: 0;
  animation: certDotsMove 30s linear infinite;
  pointer-events: none;
}

@keyframes certDotsMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(30px, 30px); }
}

.cert-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  z-index: 0;
  pointer-events: none;
}

.cert-bg-orb-1 {
  top: 10%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: rgba(255, 255, 255, 0.2);
  animation: orbFloat1 18s ease-in-out infinite alternate;
}

.cert-bg-orb-2 {
  bottom: 10%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: rgba(255, 255, 255, 0.15);
  animation: orbFloat2 15s ease-in-out infinite alternate-reverse;
}

/* =========================================
   FLOATING MEDALS
   ========================================= */
.floating-medal {
  position: absolute;
  width: 120px;
  height: 160px;
  z-index: 2;
  pointer-events: auto;
  will-change: transform;
  transition: transform 0.15s ease-out;
}

.floating-medal--left {
  top: 40px;
  left: -10px;
  animation: medalFloat 6s ease-in-out infinite;
}

.floating-medal--right {
  bottom: 40px;
  right: -10px;
  animation: medalFloat 6s ease-in-out infinite 3s;
}

@keyframes medalFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25%      { transform: translateY(-12px) rotate(1.5deg); }
  50%      { transform: translateY(-6px) rotate(-1deg); }
  75%      { transform: translateY(-14px) rotate(0.5deg); }
}

/* Pulsing ring behind medal */
.medal-pulse-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 130%;
  height: 100%;
  transform: translate(-50%, -45%);
  border-radius: 50%;
  border: 1.5px solid rgba(245, 158, 11, 0.15);
  animation: medalPulseRing 3s ease-in-out infinite;
  pointer-events: none;
}

.floating-medal--right .medal-pulse-ring {
  border-color: rgba(108, 99, 255, 0.15);
}

@keyframes medalPulseRing {
  0%, 100% { transform: translate(-50%, -45%) scale(1); opacity: 0.5; }
  50%      { transform: translate(-50%, -45%) scale(1.15); opacity: 0; }
}

/* Ambient glow blob */
.medal-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 140%;
  height: 110%;
  transform: translate(-50%, -45%);
  background: radial-gradient(circle, rgba(245, 158, 11, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(20px);
  pointer-events: none;
  transition: opacity 0.4s ease, filter 0.4s ease;
}

.floating-medal--right .medal-glow {
  background: radial-gradient(circle, rgba(108, 99, 255, 0.12) 0%, transparent 70%);
}

.floating-medal:hover .medal-glow {
  opacity: 1.5;
  filter: blur(25px);
}

/* Medal body — glassmorphism container */
.medal-body {
  position: relative;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              border-color 0.4s ease,
              box-shadow 0.4s ease;
  overflow: hidden;
}

.floating-medal:hover .medal-body {
  transform: rotate(-5deg) scale(1.08);
  border-color: rgba(245, 158, 11, 0.3);
  box-shadow: 0 0 40px rgba(245, 158, 11, 0.15),
              0 20px 40px rgba(0, 0, 0, 0.3);
}

.floating-medal--right:hover .medal-body {
  transform: rotate(5deg) scale(1.08);
  border-color: rgba(108, 99, 255, 0.3);
  box-shadow: 0 0 40px rgba(108, 99, 255, 0.15),
              0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Medal SVG */
.medal-svg {
  width: 80%;
  height: 80%;
  opacity: 0.65;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  transition: opacity 0.4s ease, filter 0.4s ease;
}

.floating-medal:hover .medal-svg {
  opacity: 0.9;
  filter: drop-shadow(0 8px 16px rgba(245, 158, 11, 0.3));
}

.floating-medal--right:hover .medal-svg {
  filter: drop-shadow(0 8px 16px rgba(108, 99, 255, 0.3));
}

/* Animated light sweep */
.medal-light-sweep {
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.08) 40%,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(255, 255, 255, 0.08) 60%,
    transparent 100%
  );
  transform: skewX(-20deg);
  animation: lightSweep 4s ease-in-out infinite;
  pointer-events: none;
}

.floating-medal--right .medal-light-sweep {
  animation-delay: 2s;
}

@keyframes lightSweep {
  0%, 100% { left: -100%; }
  50%      { left: 200%; }
}

/* Spark particles container */
.medal-sparks {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
}

/* Responsive — hide on small screens */
@media (max-width: 1100px) {
  .floating-medal {
    width: 90px;
    height: 120px;
  }
  .floating-medal--left { left: -5px; top: 30px; }
  .floating-medal--right { right: -5px; bottom: 30px; }
}

@media (max-width: 768px) {
  .floating-medal {
    display: none;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .floating-medal,
  .medal-pulse-ring,
  .medal-light-sweep {
    animation: none;
  }
  .floating-medal:hover .medal-body {
    transform: scale(1.05);
  }
}

/* Spark burst animation (used by JS) */
@keyframes sparkBurst {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(var(--spark-tx), var(--spark-ty)) scale(0);
    opacity: 0;
  }
}


/* --- Floating Interactive Decorations --- */
.cert-decorations {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
  overflow: hidden;
}

.cert-decor {
  position: absolute;
  pointer-events: auto;
}

.cert-decor svg {
  display: block;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.4s ease;
  cursor: pointer;
}

.cert-decor:hover svg {
  transform: scale(1.2);
  filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.8)) brightness(1.3) !important;
}

@keyframes floatDecor {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(3deg); }
}

@keyframes floatDecorReverse {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(-5deg); }
}

.cert-decor-tl { top: 10%; left: 3vw; animation: floatDecor 6s ease-in-out infinite; }
.cert-decor-tr { top: 15%; right: 3vw; animation: floatDecorReverse 7s ease-in-out infinite; }
.cert-decor-bl { bottom: 10%; left: 2vw; animation: floatDecorReverse 8s ease-in-out infinite; }
.cert-decor-br { bottom: 5%; right: 3vw; animation: floatDecor 5.5s ease-in-out infinite; }

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

.cert-card {
  perspective: 900px;
  height: 280px;
}

.cert-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.cert-card:hover .cert-card-inner {
  transform: rotateY(180deg);
}

.cert-front,
.cert-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-glass);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.cert-front {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
}

.cert-back {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  backdrop-filter: blur(20px);
  transform: rotateY(180deg);
  border-color: rgba(255, 255, 255, 0.15);
}

/* Badge icon */
.cert-badge {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  margin-bottom: 20px;
  color: var(--cert-accent, #ffffff);
  transition: all 0.4s ease;
}

.cert-badge svg {
  width: 28px;
  height: 28px;
}

.cert-card:hover .cert-badge {
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

/* Card front content */
.cert-name {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}

.cert-issuer {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 16px;
}

.cert-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cert-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.cert-status {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.cert-status-active {
  color: #10B981;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.cert-status-completed {
  color: #F59E0B;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

/* Card back content */
.cert-back-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cert-accent, var(--accent-primary));
  margin-bottom: 16px;
  opacity: 0.5;
}

.cert-back-icon svg {
  width: 32px;
  height: 32px;
}

.cert-back-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 260px;
}

.cert-verify-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #0a0a0a;
  background: #ffffff;
  border-radius: var(--radius-xl);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.15);
}

.cert-verify-btn:hover {
  box-shadow: 0 6px 25px rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  background: #e0e0e0;
}

/* =========================================
   PROJECTS SECTION
   ========================================= */
.projects {
  position: relative;
  overflow: hidden;
  background: var(--bg-primary);
}

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

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-smooth);
  transform-style: preserve-3d;
  will-change: transform;
}

.project-card:hover {
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.2);
}

.project-image {
  position: relative;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-img {
  transform: scale(1.08);
}

.project-icon-display {
  opacity: 0.4;
  transition: all var(--transition-smooth);
}

.project-card:hover .project-icon-display {
  transform: scale(1.2) rotate(5deg);
  opacity: 0.2;
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-links {
  display: flex;
  gap: 12px;
}

.project-link {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fff;
  transition: all var(--transition-fast);
  transform: translateY(10px);
}

.project-card:hover .project-link {
  transform: translateY(0);
}

.project-link:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: #0a0a0a;
}

.project-info {
  padding: 24px;
}

.project-name {
  font-size: 1.12rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.project-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.6;
}

.project-tech {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.project-tech::-webkit-scrollbar {
  display: none;
}

.project-tech span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  font-size: 0.7rem;
  font-weight: 500;
  color: #fff;
  background: color-mix(in srgb, var(--tag-color, rgba(255, 255, 255, 0.1)) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--tag-color, rgba(255, 255, 255, 0.1)) 30%, transparent);
  border-radius: 20px;
  font-family: var(--font-mono);
  transition: all 0.3s ease;
}

.project-tech span img {
  width: 12px;
  height: 12px;
  object-fit: contain;
}

.project-tech span:hover {
  background: color-mix(in srgb, var(--tag-color, rgba(255, 255, 255, 0.15)) 20%, transparent);
  border-color: var(--tag-color, rgba(255, 255, 255, 0.4));
  transform: translateY(-2px);
  box-shadow: 0 4px 15px color-mix(in srgb, var(--tag-color, rgba(255, 255, 255, 0.2)) 30%, transparent);
}

/* =========================================
   CONTACT SECTION
   ========================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-heading {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.4;
}

.contact-desc {
  color: var(--text-secondary);
  margin-bottom: 32px;
  font-size: 0.95rem;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform 0.3s ease;
}

.contact-item:hover {
  transform: translateX(8px);
}

.contact-item-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--accent-primary);
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.contact-item:hover .contact-item-icon {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.08);
}

.contact-item-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-item-value {
  font-weight: 600;
  font-size: 0.95rem;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: all var(--transition-smooth);
}

.social-link:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: #0a0a0a;
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.15);
}

/* Contact Form */
.contact-form {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 36px;
  backdrop-filter: blur(20px);
  transform-style: preserve-3d;
  will-change: transform;
  position: relative;
  overflow: hidden;
}

.form-group {
  position: relative;
  margin-bottom: 28px;
}

.form-input {
  display: block;
  width: 100%;
  padding: 14px 0 10px;
  font-size: 0.95rem;
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: transparent;
  border: none;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.1);
  outline: none;
  transition: border-color var(--transition-fast);
  cursor: none;
}

.form-input:focus {
  border-color: var(--accent-primary);
}

.form-label {
  position: absolute;
  top: 14px;
  left: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
  pointer-events: none;
  transition: all var(--transition-fast);
}

.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label {
  top: -8px;
  font-size: 0.72rem;
  color: var(--accent-primary);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.form-line {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #ffffff, #666666);
  transition: transform var(--transition-smooth);
}

.form-input:focus ~ .form-line {
  transform: translateX(-50%) scaleX(1);
}

.form-textarea {
  resize: none;
  min-height: 100px;
}

/* =========================================
   UIVERSE BUTTON (From Uiverse.io by StealthWorm)
   ========================================= */
.btn-space {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  overflow: hidden;
  height: 48px;
  background-size: 300% 300%;
  cursor: pointer;
  backdrop-filter: blur(1rem);
  border-radius: 5rem;
  transition: 0.5s;
  animation: gradient_301 5s ease infinite;
  border: double 4px transparent;
  background-image: linear-gradient(#212121, #212121),
    linear-gradient(
      137.48deg,
      #ffdb3b 10%,
      #fe53bb 45%,
      #8f51ea 67%,
      #0044ff 87%
    );
  background-origin: border-box;
  background-clip: content-box, border-box;
}

#container-stars {
  position: absolute;
  z-index: -1;
  width: 100%;
  height: 100%;
  overflow: hidden;
  transition: 0.5s;
  backdrop-filter: blur(1rem);
  border-radius: 5rem;
}

.btn-space strong {
  z-index: 2;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  letter-spacing: 2px;
  font-weight: 600;
  color: #ffffff;
  text-shadow: 0 0 4px white;
}

#glow {
  position: absolute;
  display: flex;
  width: 12rem;
}

.circle-space {
  width: 100%;
  height: 30px;
  filter: blur(2rem);
  animation: pulse_3011 4s infinite;
  z-index: -1;
}

.circle-space:nth-of-type(1) {
  background: rgba(254, 83, 186, 0.636);
}

.circle-space:nth-of-type(2) {
  background: rgba(142, 81, 234, 0.704);
}

.btn-space:hover #container-stars {
  z-index: 1;
  background-color: #212121;
}

.btn-space:hover {
  transform: scale(1.02);
}

.btn-space:active {
  border: double 4px #fe53bb;
  background-origin: border-box;
  background-clip: content-box, border-box;
  animation: none;
}

.btn-space:active .circle-space {
  background: #fe53bb;
}

#stars {
  position: relative;
  background: transparent;
  width: 200rem;
  height: 200rem;
}

#stars::after {
  content: "";
  position: absolute;
  top: -10rem;
  left: -100rem;
  width: 100%;
  height: 100%;
  animation: animStarRotate 90s linear infinite;
}

#stars::after {
  background-image: radial-gradient(#ffffff 1px, transparent 1%);
  background-size: 50px 50px;
}

#stars::before {
  content: "";
  position: absolute;
  top: 0;
  left: -50%;
  width: 170%;
  height: 500%;
  animation: animStar 60s linear infinite;
}

#stars::before {
  background-image: radial-gradient(#ffffff 1px, transparent 1%);
  background-size: 50px 50px;
  opacity: 0.5;
}

@keyframes animStar {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-135rem);
  }
}

@keyframes animStarRotate {
  from {
    transform: rotate(360deg);
  }

  to {
    transform: rotate(0);
  }
}

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

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes pulse_3011 {
  0% {
    transform: scale(0.75);
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(0, 0, 0, 0);
  }

  100% {
    transform: scale(0.75);
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
  }
}

/* =========================================
   CONFETTI
   ========================================= */
@keyframes confettiFall {
  0% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translate(var(--tx), var(--ty)) rotate(var(--r));
    opacity: 0;
  }
}

/* =========================================
   EASTER EGG TERMINAL
   ========================================= */
.easter-egg-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.easter-egg-overlay.visible {
  opacity: 1;
}

.terminal-window {
  width: 90%;
  max-width: 600px;
  background: #1a1b26;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 40px rgba(108, 99, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: terminalIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes terminalIn {
  from { transform: scale(0.8) translateY(30px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.terminal-header {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.terminal-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal-title {
  flex: 1;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.terminal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0 4px;
  transition: color 0.2s;
}

.terminal-close:hover {
  color: #ff5f56;
}

.terminal-body {
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 2;
}

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

.term-prompt {
  color: #10B981;
  margin-right: 8px;
}

.term-output {
  color: var(--text-secondary);
  padding-left: 18px;
}

.term-rainbow {
  background: linear-gradient(90deg, #6C63FF, #3B82F6, #06B6D4, #10B981, #F59E0B, #EF4444);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
}

.term-cursor {
  animation: blink 1s step-end infinite;
  color: var(--accent-primary);
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-glass);
  padding: 40px 0;
}

.footer-content {
  text-align: center;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.footer-text {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin-bottom: 8px;
}

.footer-copyright {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* =========================================
   ANIMATIONS
   ========================================= */
.animate-in {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.6s; }
.delay-5 { animation-delay: 0.75s; }

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

/* Reveal animations */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-up {
  transform: translateY(40px);
}

.reveal-left {
  transform: translateX(-40px);
}

.reveal-right {
  transform: translateX(40px);
}

.reveal-up.revealed,
.reveal-left.revealed,
.reveal-right.revealed {
  opacity: 1;
  transform: translate(0, 0);
}

.reveal-up {
  transition-delay: var(--delay, 0s);
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .certificates-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 14px 20px;
  }

  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .mobile-menu {
    display: flex;
  }

  .hero {
    padding: 100px 20px 80px;
  }

  .hero-split {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-content.hero-split {
    text-align: center;
  }

  .hero-text-col {
    order: 1;
  }

  .hero-visual-col {
    order: 2;
    min-height: 320px;
  }

  .hero-title-wrapper {
    justify-content: center;
  }

  .hero-description {
    margin: 0 auto 36px;
  }

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

  .hero-split .hero-stats {
    justify-content: center;
  }

  .hero-status {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-code-card {
    width: 95vw;
    max-width: 95vw;
  }

  .hero-orbit {
    width: 380px;
    height: 380px;
  }

  .orbit-ring { border-style: solid; border-width: 1px; }

  .hero-stats {
    gap: 20px;
  }

  .stat-number {
    font-size: 1.6rem;
  }



  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .certificates-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-form {
    padding: 24px;
  }

  .section {
    padding: 80px 0;
  }
}

@media (max-width: 480px) {
  .hero-name {
    font-size: 2.6rem;
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }

  .stat-divider {
    width: 40px;
    height: 1px;
  }

  .skills-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .certificates-grid {
    grid-template-columns: 1fr;
  }

  .cert-card {
    height: 260px;
  }


}
