/* ============================================================
   KASO KAREZ — PORTFOLIO STYLESHEET
   Modern Dark Theme | Glassmorphism | Neon Accents
   ============================================================ */

/* ============================================================
   1. CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================================ */
:root {
  /* Colors */
  --bg-primary:       #050508;
  --bg-secondary:     #0a0a12;
  --bg-card:          rgba(255, 255, 255, 0.04);
  --bg-card-hover:    rgba(255, 255, 255, 0.07);
  --glass:            rgba(255, 255, 255, 0.05);
  --glass-border:     rgba(255, 255, 255, 0.08);

  --accent-primary:   #7c3aed;   /* Purple */
  --accent-secondary: #06b6d4;   /* Cyan */
  --accent-pink:      #ec4899;   /* Pink */
  --accent-green:     #00d4aa;   /* Teal */

  --text-primary:     #f0f0f8;
  --text-secondary:   #9999bb;
  --text-muted:       #555577;

  --gradient-main:    linear-gradient(135deg, #7c3aed, #06b6d4);
  --gradient-warm:    linear-gradient(135deg, #ec4899, #f59e0b);
  --gradient-cool:    linear-gradient(135deg, #06b6d4, #00d4aa);

  /* Spacing */
  --section-padding:  120px 0;
  --container-max:    1200px;
  --container-pad:    24px;

  /* Typography */
  --font-main:        'Inter', system-ui, sans-serif;
  --font-mono:        'JetBrains Mono', monospace;

  /* Borders & Radius */
  --radius-sm:        8px;
  --radius-md:        16px;
  --radius-lg:        24px;
  --radius-xl:        32px;

  /* Shadows */
  --shadow-card:      0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-glow:      0 0 40px rgba(124, 58, 237, 0.2);
  --shadow-hover:     0 20px 60px rgba(0, 0, 0, 0.6);

  /* Transitions */
  --transition-fast:  0.2s ease;
  --transition-med:   0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow:  0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none; /* Custom cursor active */
}

body.loading {
  overflow: hidden;
}

::selection {
  background: var(--accent-primary);
  color: #fff;
}

::-webkit-scrollbar {
  width: 6px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--accent-primary);
  border-radius: 3px;
}

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

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ============================================================
   3. CUSTOM CURSOR
   ============================================================ */
.cursor-dot,
.cursor-ring {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-primary);
  top: 0;
  left: 0;
  mix-blend-mode: difference;
}

.cursor-ring {
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(124, 58, 237, 0.6);
  top: 0;
  left: 0;
  transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease,
              top 0.08s linear, left 0.08s linear;
}

.cursor-ring.hovered {
  width: 60px;
  height: 60px;
  border-color: var(--accent-secondary);
  background: rgba(6, 182, 212, 0.05);
}

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

.loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-inner {
  text-align: center;
}

.loader-logo {
  font-size: 3rem;
  font-weight: 900;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 24px;
  letter-spacing: -2px;
  animation: logoPulse 1.5s ease-in-out infinite;
}

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

.loader-bar {
  width: 200px;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  margin: 0 auto 16px;
  overflow: hidden;
}

.loader-fill {
  height: 100%;
  width: 0%;
  background: var(--gradient-main);
  border-radius: 2px;
  animation: loaderFill 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes loaderFill {
  0% { width: 0%; }
  60% { width: 70%; }
  100% { width: 100%; }
}

.loader-text {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: fadeInOut 2s ease infinite;
}

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

/* ============================================================
   5. UTILITIES
   ============================================================ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

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

.section {
  padding: var(--section-padding);
  position: relative;
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 70px;
}

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

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
}

/* Scroll animation base */
[data-aos] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-aos].aos-animate {
  opacity: 1;
  transform: translateY(0);
}

[data-aos][data-delay="50"]  { transition-delay: 0.05s; }
[data-aos][data-delay="100"] { transition-delay: 0.1s; }
[data-aos][data-delay="150"] { transition-delay: 0.15s; }
[data-aos][data-delay="200"] { transition-delay: 0.2s; }
[data-aos][data-delay="250"] { transition-delay: 0.25s; }
[data-aos][data-delay="300"] { transition-delay: 0.3s; }
[data-aos][data-delay="350"] { transition-delay: 0.35s; }

[data-aos="fade-right"] { transform: translateX(-30px); }
[data-aos="fade-right"].aos-animate { transform: translateX(0); }
[data-aos="fade-left"]  { transform: translateX(30px); }
[data-aos="fade-left"].aos-animate  { transform: translateX(0); }

/* ============================================================
   6. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition-med);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.3px;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-med);
}

.btn:hover::before {
  transform: scaleX(1);
}

.btn-primary {
  background: var(--gradient-main);
  color: #fff;
  box-shadow: 0 4px 24px rgba(124, 58, 237, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(124, 58, 237, 0.55);
}

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

.btn-secondary:hover {
  transform: translateY(-3px);
  border-color: var(--accent-secondary);
  box-shadow: 0 8px 32px rgba(6, 182, 212, 0.2);
  color: var(--accent-secondary);
}

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

/* ============================================================
   7. NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all var(--transition-med);
}

.navbar.scrolled {
  background: rgba(5, 5, 8, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 14px 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 900;
  font-family: var(--font-mono);
  letter-spacing: -1px;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: var(--transition-fast);
}

.logo-bracket {
  color: var(--accent-secondary);
  -webkit-text-fill-color: var(--accent-secondary);
}

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

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

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

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

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

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

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: var(--glass);
  border: 1px solid var(--glass-border);
}

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

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================================
   8. HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px var(--container-pad) 80px;
}

/* Particle canvas */
#particleCanvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.6;
}

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

.orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.25) 0%, transparent 70%);
  top: -200px;
  right: -100px;
  animation: orbFloat1 12s ease-in-out infinite;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.18) 0%, transparent 70%);
  bottom: -150px;
  left: -100px;
  animation: orbFloat2 15s ease-in-out infinite;
}

.orb-3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.12) 0%, transparent 70%);
  top: 40%;
  left: 30%;
  animation: orbFloat3 18s ease-in-out infinite;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-50px, 60px) scale(1.1); }
  66% { transform: translate(30px, -40px) scale(0.95); }
}

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

@keyframes orbFloat3 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.6; }
  50% { transform: translate(-40px, 40px) scale(1.15); opacity: 1; }
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 212, 170, 0.08);
  border: 1px solid rgba(0, 212, 170, 0.25);
  color: var(--accent-green);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 50px;
  margin-bottom: 28px;
  letter-spacing: 0.5px;
  animation: fadeSlideDown 0.8s ease 0.2s both;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-green);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 212, 170, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(0, 212, 170, 0); }
}

/* Hero Name */
.hero-name {
  font-size: clamp(4rem, 12vw, 9rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -4px;
  margin-bottom: 24px;
  animation: fadeSlideUp 0.9s ease 0.3s both;
}

.name-line {
  display: block;
}

/* Hero Title with typing effect */
.hero-title {
  font-size: clamp(1rem, 3vw, 1.4rem);
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-family: var(--font-mono);
  animation: fadeSlideUp 0.9s ease 0.5s both;
}

.typing-text {
  color: var(--accent-secondary);
  font-weight: 600;
}

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

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

/* Tagline */
.hero-tagline {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 40px;
  animation: fadeSlideUp 0.9s ease 0.6s both;
}

/* CTA Buttons */
.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
  animation: fadeSlideUp 0.9s ease 0.7s both;
}

/* Stats */
.hero-stats {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  padding: 20px 40px;
  border-radius: var(--radius-xl);
  animation: fadeSlideUp 0.9s ease 0.9s both;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 4px;
  display: block;
}

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

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: fadeSlideUp 1s ease 1.2s both;
  z-index: 1;
}

.scroll-arrow {
  animation: scrollBounce 2s ease infinite;
}

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

/* Hero Animations */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   9. ABOUT SECTION
   ============================================================ */
.about-section {
  background: var(--bg-secondary);
}

.about-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: start;
}

/* Avatar Card */
.about-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.avatar-card {
  position: relative;
  width: 240px;
  height: 240px;
}

.avatar-ring {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: var(--gradient-main);
  opacity: 0.6;
  animation: spin 8s linear infinite;
  mask-image: conic-gradient(from 0deg, transparent 0deg, black 60deg, transparent 180deg, black 240deg, transparent 360deg);
  -webkit-mask-image: conic-gradient(from 0deg, transparent 0deg, black 60deg, transparent 180deg, black 240deg, transparent 360deg);
}

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

.avatar-inner {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--gradient-main);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 60px rgba(124, 58, 237, 0.4);
}

.avatar-initials {
  font-size: 4rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -2px;
}

.avatar-glow {
  position: absolute;
  inset: -30px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.15), transparent 70%);
  pointer-events: none;
}

/* Floating Badges on Avatar */
.floating-badge {
  position: absolute;
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}

.floating-badge i {
  color: var(--accent-primary);
}

.badge-top {
  top: 0;
  right: -30px;
  animation: floatBadge1 4s ease-in-out infinite;
}

.badge-bottom {
  bottom: 0;
  left: -30px;
  animation: floatBadge2 5s ease-in-out infinite;
}

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

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

/* Quick Info Chips */
.quick-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-self: stretch;
}

.info-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.info-chip:hover {
  border-color: var(--accent-primary);
  color: var(--text-primary);
  background: var(--bg-card-hover);
  transform: translateX(4px);
}

.info-chip i {
  color: var(--accent-primary);
  width: 16px;
  text-align: center;
}

/* About Text */
.about-intro {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 20px;
  line-height: 1.6;
}

.about-body {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.8;
}

.about-body strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Values */
.about-values {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
}

.value-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.value-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.25);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  transition: all var(--transition-fast);
}

.value-item:hover .value-icon {
  background: rgba(124, 58, 237, 0.25);
  transform: rotate(5deg) scale(1.1);
}

.value-item h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.value-item p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ============================================================
   10. SKILLS SECTION
   ============================================================ */
.skills-section {
  background: var(--bg-primary);
}

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

.skill-card {
  display: flex;
  gap: 20px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--transition-med);
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-main);
  opacity: 0;
  transition: opacity var(--transition-med);
}

.skill-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-hover);
}

.skill-card:hover::before {
  opacity: 0.03;
}

.skill-icon-wrap {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  background: rgba(var(--clr, 124, 58, 237), 0.1);
  border: 1px solid color-mix(in srgb, var(--clr) 30%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--clr);
  transition: all var(--transition-med);
  position: relative;
  z-index: 1;
}

.skill-card:hover .skill-icon-wrap {
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--clr) 30%, transparent);
}

.skill-info {
  flex: 1;
  position: relative;
  z-index: 1;
}

.skill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.skill-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.skill-percent {
  font-size: 0.8rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--accent-primary);
}

.skill-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.skill-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 4px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  width: 0%;
  border-radius: 4px;
  background: var(--clr);
  box-shadow: 0 0 12px color-mix(in srgb, var(--clr) 50%, transparent);
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   11. CERTIFICATIONS SECTION
   ============================================================ */
.certs-section {
  background: var(--bg-secondary);
}

.certs-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-secondary), transparent);
}

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

.cert-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-med);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cert-glow {
  position: absolute;
  inset: 0;
  background: var(--gradient-main);
  opacity: 0;
  transition: opacity var(--transition-med);
  pointer-events: none;
}

.cert-card:hover {
  transform: translateY(-8px);
  border-color: rgba(124, 58, 237, 0.4);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5), 0 0 40px rgba(124, 58, 237, 0.15);
}

.cert-card:hover .cert-glow {
  opacity: 0.04;
}

.cert-ribbon {
  position: absolute;
  top: 16px;
  right: 16px;
  color: var(--accent-primary);
  font-size: 1rem;
  animation: floatBadge1 3s ease-in-out infinite;
}

.cert-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--clr) 15%, transparent);
  border: 2px solid color-mix(in srgb, var(--clr) 35%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--clr);
  margin: 0 auto;
  transition: all var(--transition-med);
  box-shadow: 0 0 30px color-mix(in srgb, var(--clr) 20%, transparent);
}

.cert-card:hover .cert-icon {
  transform: scale(1.12) rotate(-5deg);
  box-shadow: 0 0 50px color-mix(in srgb, var(--clr) 40%, transparent);
}

.cert-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.cert-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.cert-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 4px;
}

.tag {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 50px;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.25);
  color: var(--accent-primary);
  letter-spacing: 0.3px;
}

.cert-footer {
  margin-top: auto;
}

.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-green);
  background: rgba(0, 212, 170, 0.08);
  border: 1px solid rgba(0, 212, 170, 0.2);
  padding: 6px 14px;
  border-radius: 50px;
}

/* ============================================================
   12. PROJECTS SECTION
   ============================================================ */
.projects-section {
  background: var(--bg-primary);
}

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

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-med);
  position: relative;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-hover);
}

/* Project Visual */
.project-visual {
  height: 180px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--clr) 30%, #050508), color-mix(in srgb, var(--clr2) 30%, #050508));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.project-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--clr) 20%, transparent) 0%, transparent 70%);
}

.project-art {
  position: relative;
  z-index: 1;
}

.project-art > i {
  font-size: 3.5rem;
  color: var(--clr);
  opacity: 0.9;
  filter: drop-shadow(0 0 20px var(--clr));
  transition: all var(--transition-med);
}

.project-card:hover .project-art > i {
  transform: scale(1.2) rotate(-5deg);
  filter: drop-shadow(0 0 40px var(--clr));
}

/* Floating particles in project visual */
.project-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.project-particles span {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--clr);
  animation: floatParticle 4s ease-in-out infinite;
}

.project-particles span:nth-child(1) { top: 20%; left: 20%; animation-delay: 0s; }
.project-particles span:nth-child(2) { top: 70%; left: 75%; animation-delay: 1s; }
.project-particles span:nth-child(3) { top: 30%; left: 80%; animation-delay: 2s; }
.project-particles span:nth-child(4) { top: 80%; left: 20%; animation-delay: 0.5s; }

@keyframes floatParticle {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.6; }
  50% { transform: translateY(-15px) scale(1.5); opacity: 1; }
}

/* Project Content */
.project-content {
  padding: 28px;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.project-category {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-primary);
  background: rgba(124, 58, 237, 0.1);
  padding: 4px 12px;
  border-radius: 50px;
  border: 1px solid rgba(124, 58, 237, 0.2);
}

.project-year {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.project-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.3;
}

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

.project-tech {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.project-tech span {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.project-card:hover .project-tech span {
  border-color: rgba(124, 58, 237, 0.3);
  color: var(--accent-primary);
}

/* ============================================================
   13. CONTACT SECTION
   ============================================================ */
.contact-section {
  background: var(--bg-secondary);
}

.contact-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-pink), transparent);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
}

/* Contact Info Side */
.contact-heading {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 16px;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-body {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 40px;
}

/* Social Links */
.contact-socials {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  transition: all var(--transition-med);
}

.social-link:hover {
  border-color: var(--accent-primary);
  background: var(--bg-card-hover);
  transform: translateX(6px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.social-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--accent-primary);
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.social-link:hover .social-icon {
  background: var(--accent-primary);
  color: #fff;
  transform: rotate(5deg);
}

.social-name {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.social-handle {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* Contact Form */
.contact-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 40px;
  backdrop-filter: blur(10px);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrap > i {
  position: absolute;
  left: 16px;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
  z-index: 1;
}

.input-wrap:focus-within > i {
  color: var(--accent-primary);
}

.input-wrap input,
.input-wrap textarea {
  width: 100%;
  padding: 14px 16px 14px 44px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
  outline: none;
  resize: none;
}

.input-wrap input::placeholder,
.input-wrap textarea::placeholder {
  color: var(--text-muted);
}

.input-wrap input:focus,
.input-wrap textarea:focus {
  border-color: var(--accent-primary);
  background: rgba(124, 58, 237, 0.05);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.textarea-wrap {
  align-items: flex-start;
}

.textarea-wrap > i {
  top: 16px;
}

.form-success {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  background: rgba(0, 212, 170, 0.08);
  border: 1px solid rgba(0, 212, 170, 0.25);
  border-radius: var(--radius-md);
  color: var(--accent-green);
  font-weight: 600;
  font-size: 0.9rem;
}

.form-success.show {
  display: flex;
}

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

.footer-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.footer-top {
  text-align: center;
  margin-bottom: 32px;
}

.footer-brand {
  font-size: 2rem;
  font-weight: 900;
  font-family: var(--font-mono);
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

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

.footer-links {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 50px;
  transition: all var(--transition-fast);
}

.footer-links a:hover {
  color: var(--text-primary);
  background: var(--glass);
}

.footer-divider {
  height: 1px;
  background: var(--glass-border);
  margin-bottom: 32px;
}

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

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.footer-copy strong {
  color: var(--text-secondary);
}

.heart {
  color: var(--accent-pink);
  display: inline-block;
  animation: heartbeat 1.5s ease infinite;
}

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

.footer-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 1px;
}

/* ============================================================
   15. BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 50px;
  height: 50px;
  background: var(--gradient-main);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-med);
  z-index: 500;
}

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

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(124, 58, 237, 0.55);
}

/* ============================================================
   16. RESPONSIVE — TABLET (max 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .certs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    gap: 50px;
  }
}

/* ============================================================
   17. RESPONSIVE — MOBILE (max 768px)
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --section-padding: 80px 0;
  }

  /* Navbar */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 280px;
    background: rgba(5, 5, 8, 0.98);
    backdrop-filter: blur(30px);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 80px 40px;
    gap: 8px;
    border-left: 1px solid var(--glass-border);
    transition: right var(--transition-med);
    z-index: 999;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-link {
    font-size: 1.1rem;
    padding: 12px 0;
    width: 100%;
    border-radius: 0;
    border-bottom: 1px solid var(--glass-border);
  }

  .nav-link::after { display: none; }

  .nav-toggle {
    display: flex;
    z-index: 1000;
    position: relative;
  }

  /* Hero */
  .hero {
    padding: 140px 24px 100px;
    text-align: center;
  }

  .hero-name {
    letter-spacing: -2px;
  }

  .hero-stats {
    gap: 20px;
    padding: 16px 24px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .stat-divider { display: none; }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-visual {
    align-items: flex-start;
  }

  .avatar-card {
    width: 180px;
    height: 180px;
  }

  .avatar-initials { font-size: 3rem; }

  .badge-top { right: -10px; }
  .badge-bottom { left: -10px; }

  /* Skills */
  .skills-grid {
    grid-template-columns: 1fr;
  }

  /* Certs */
  .certs-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  /* Projects */
  .projects-grid {
    grid-template-columns: 1fr;
  }

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

  .contact-form-wrap {
    padding: 28px 20px;
  }

  /* Back to top */
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }

  /* Custom cursor disabled on touch */
  .cursor-dot,
  .cursor-ring {
    display: none;
  }

  body {
    cursor: auto;
  }
}

@media (max-width: 480px) {
  .certs-grid {
    grid-template-columns: 1fr;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .hero-stats {
    gap: 16px;
  }

  .section-title {
    font-size: 1.8rem;
  }
}

/* ============================================================
   18. NEON GRID BACKGROUND (subtle)
   ============================================================ */
.skills-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(124, 58, 237, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 58, 237, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* ============================================================
   19. MISC ANIMATIONS
   ============================================================ */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
