/* CSS Variables - Theme Support */
:root {
  /* Dark theme (default) */
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-tertiary: #1a1a25;
  --bg-glass: rgba(255, 255, 255, 0.03);
  --bg-glass-hover: rgba(255, 255, 255, 0.06);
  --nav-scrolled-bg: rgba(10, 10, 15, 0.8);
  --hero-bg: radial-gradient(circle at top, #1e1b4b 0%, #0b0f19 60%);
  --grid-line: rgba(255, 255, 255, 0.03);
  --surface-highlight: rgba(255, 255, 255, 0.05);
  --surface-highlight-strong: rgba(255, 255, 255, 0.08);
  --image-border: rgba(255, 255, 255, 0.1);
  --image-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  --orb-2-bg: #8b5cf6;
  --orb-3-bg: #06b6d4;

  --text-primary: #ffffff;
  --text-secondary: #a0a0b0;
  --text-muted: #6b6b7b;
  --hero-name-fallback: #e5e7eb;

  --accent: #6366f1;
  --accent-hover: #818cf8;
  --accent-glow: rgba(99, 102, 241, 0.4);
  --accent-shadow-soft: rgba(99, 102, 241, 0.15);
  --accent-shadow-medium: rgba(99, 102, 241, 0.25);
  --accent-shadow-strong: rgba(99, 102, 241, 0.4);
  --accent-shadow-intense: rgba(99, 102, 241, 0.5);
  --accent-outline-soft: rgba(99, 102, 241, 0.08);
  --accent-outline: rgba(99, 102, 241, 0.1);
  --accent-border: rgba(99, 102, 241, 0.4);
  --accent-chip-bg: rgba(99, 102, 241, 0.15);
  --accent-chip-bg-hover: rgba(99, 102, 241, 0.25);

  --gradient-1: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
  --gradient-2: linear-gradient(135deg, #06b6d4 0%, #6366f1 100%);
  --gradient-button: linear-gradient(90deg, #6366f1, #8b5cf6);
  --gradient-hero-name: linear-gradient(90deg, #a78bfa, #6366f1);
  --gradient-social: linear-gradient(135deg, #6366f1, #a855f7);
  --gradient-email: linear-gradient(135deg, #6366f1, #22c55e);

  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-strong: rgba(255, 255, 255, 0.15);
  --border-color-hover: rgba(255, 255, 255, 0.2);
  --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  --contact-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  --project-overlay-bg: linear-gradient(
    to top,
    rgba(10, 10, 15, 0.95),
    transparent 50%
  );
  --input-bg: rgba(255, 255, 255, 0.02);
  --button-shine: rgba(255, 255, 255, 0.3);
  --scroll-shine-edge: rgba(255, 255, 255, 0.4);
  --button-text-on-accent: #ffffff;
  --error: #ef4444;

  --font-primary: "Outfit", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: "Syne", "Outfit", sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --transition-fast: 0.2s ease;
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Light theme */
[data-theme="light"] {
  --bg-primary: #f8f9fc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #eef0f5;
  --bg-glass: rgba(255, 255, 255, 0.7);
  --bg-glass-hover: rgba(255, 255, 255, 0.9);
  --nav-scrolled-bg: rgba(248, 249, 252, 0.9);
  --hero-bg: radial-gradient(circle at top, #eef2ff 0%, #f8f9fc 62%);
  --grid-line: rgba(15, 23, 42, 0.045);
  --surface-highlight: rgba(255, 255, 255, 0.75);
  --surface-highlight-strong: rgba(255, 255, 255, 0.9);
  --image-border: rgba(99, 102, 241, 0.2);
  --image-shadow: 0 10px 30px rgba(15, 23, 42, 0.16);
  --orb-2-bg: rgba(139, 92, 246, 0.55);
  --orb-3-bg: rgba(6, 182, 212, 0.42);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --hero-name-fallback: var(--text-primary);

  --accent-glow: rgba(99, 102, 241, 0.22);
  --accent-shadow-soft: rgba(79, 70, 229, 0.12);
  --accent-shadow-medium: rgba(79, 70, 229, 0.18);
  --accent-shadow-strong: rgba(79, 70, 229, 0.24);
  --accent-shadow-intense: rgba(79, 70, 229, 0.28);
  --accent-outline-soft: rgba(79, 70, 229, 0.1);
  --accent-outline: rgba(79, 70, 229, 0.14);
  --accent-border: rgba(79, 70, 229, 0.35);
  --accent-chip-bg: rgba(79, 70, 229, 0.1);
  --accent-chip-bg-hover: rgba(79, 70, 229, 0.16);

  --border-color: rgba(15, 23, 42, 0.12);
  --border-color-strong: rgba(79, 70, 229, 0.22);
  --border-color-hover: rgba(79, 70, 229, 0.34);
  --shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.14);
  --contact-shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
  --project-overlay-bg: linear-gradient(
    to top,
    rgba(15, 23, 42, 0.78),
    rgba(15, 23, 42, 0.08) 58%,
    transparent 100%
  );
  --input-bg: rgba(255, 255, 255, 0.86);
  --button-shine: rgba(255, 255, 255, 0.42);
  --scroll-shine-edge: rgba(71, 85, 105, 0.46);
}

/* Particle Canvas - Fixed Background Layer */
.particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

[data-theme="light"] .particle-canvas {
  opacity: 0.35;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  overflow-x: hidden;
  transition:
    background var(--transition-smooth),
    color var(--transition-smooth);
  position: relative;
}

/* Subtle noise grain overlay for premium texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Theme Toggle */
.theme-toggle {
  position: static; /* not fixed */

  width: 40px;
  height: 40px;

  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--bg-glass);
  backdrop-filter: blur(20px);

  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.3s ease;
}

.theme-toggle:hover {
  background: var(--bg-glass-hover);
  transform: scale(1.05);
}

.theme-icon {
  position: absolute;
  font-size: 20px;
  transition:
    opacity var(--transition-smooth),
    transform var(--transition-smooth);
}
@media (hover: none) {
  .theme-toggle:hover {
    background: none;
    transform: none;
  }
}
.theme-icon.moon {
  opacity: 1;
}
.theme-icon.sun {
  opacity: 0;
}

[data-theme="light"] .theme-icon.moon {
  opacity: 0;
}
[data-theme="light"] .theme-icon.sun {
  opacity: 1;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: all var(--transition-smooth);
}

.navbar.scrolled {
  background: var(--nav-scrolled-bg);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
}

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

.nav-logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.nav-logo:hover {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-1);
  transition: width var(--transition-smooth);
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition-smooth);
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 120px 24px 80px;

  background: var(--hero-bg);
}
.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px;

  background: linear-gradient(to bottom, transparent, var(--bg-secondary));

  pointer-events: none;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.2;
  animation: float 20s ease-in-out infinite;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: var(--accent);
  top: -200px;
  right: -200px;
  animation-delay: 0s;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: var(--orb-2-bg);
  bottom: -100px;
  left: -100px;
  animation-delay: -7s;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: var(--orb-3-bg);
  top: 50%;
  left: 50%;
  animation-delay: -14s;
}

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

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(
    ellipse 80% 80% at 50% 50%,
    black 20%,
    transparent 70%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
}

.hero-image-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 12px;
}

.hero-image-glow {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--gradient-1);
  display: none;
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.02);
  }
}

.hero-image {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 1px solid var(--image-border);
  box-shadow: var(--image-shadow);
}

.hero-image:hover {
  transform: scale(1.05);
  border-color: var(--accent);
}

.hero-name {
  font-size: 2.5rem;
  font-weight: 800;
  font-family: var(--font-primary);
  background: var(--gradient-hero-name);
  background-clip: text;
  color: var(--hero-name-fallback);
  letter-spacing: 1px;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-name span {
  color: var(--accent);
}

.hero-title {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.hero-typing {
  font-size: 1.1rem;
  color: var(--text-muted);
  min-height: 2rem;
  margin-bottom: 10px;
}

.typing-cursor {
  animation: blink 1s step-end infinite;
  margin-left: 2px;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition-smooth);
  cursor: pointer;
  border: none;
}

.btn-primary {
  color: var(--button-text-on-accent);

  background: var(--gradient-button);
  box-shadow: none;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px var(--accent-shadow-medium);
}

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

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

.btn-full {
  width: 100%;
}

/* CTA */
.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  font-family: var(--font-primary);
}

/* CONTAINER */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0.8;
}

/* DOT ANIMATION */

/* TEXT */

.scroll-text {
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;

  background: linear-gradient(
    90deg,
    var(--scroll-shine-edge),
    var(--accent),
    var(--scroll-shine-edge)
  );
  background-size: 200% auto;

  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;

  animation: shineMove 3s linear infinite;
}

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

/* Section Styles */
.section {
  padding: 120px 0;
  position: relative;
  z-index: 1;
}

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

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 60px;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: var(--gradient-1);
  margin: 16px auto 0;
  border-radius: 2px;
}

/* Scroll Animation Base - GSAP will handle these */
[data-animate] {
  will-change: transform, opacity;
}

/* Hero elements - initially hidden for GSAP entrance */
[data-hero] {
  opacity: 0;
  transform: translateY(30px);
}

/* Magnetic button interaction area */
.btn-magnetic {
  position: relative;
  will-change: transform;
}
.section {
  margin-top: -60px;
  padding-top: 140px;
}

/* About Section */
.about {
  background: linear-gradient(
    to bottom,
    transparent 0%,
    var(--bg-primary) 12%,
    var(--bg-secondary) 80%
  );
}
.about-content {
  display: grid;
  gap: 56px;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.about-text {
  max-width: 680px;
  margin: 0 auto;
}

.about-text p {
  margin: 0;
}

.about-text p + p {
  margin-top: 18px;
}

.about-lead {
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.5;

  font-weight: 600;
}

.about-support {
  color: var(--text-secondary);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.5;
  font-family: var(--font-display);
}

.highlight {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}

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

.stat-item {
  text-align: center;
  padding: 28px 24px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 var(--surface-highlight);
  transition:
    transform var(--transition-smooth),
    background var(--transition-smooth),
    border-color var(--transition-smooth),
    box-shadow var(--transition-smooth);
}

.stat-item:hover {
  background: var(--bg-glass-hover);
  transform: translateY(-8px) scale(1.02);
  border-color: var(--accent-border);
  box-shadow:
    0 22px 46px -14px var(--accent-shadow, var(--accent-shadow-medium)),
    0 0 0 1px var(--accent-outline),
    0 0 34px var(--accent-glow),
    inset 0 1px 0 var(--surface-highlight-strong);
}
@media (hover: none) {
  .stat-item:hover {
    background: var(--bg-glass-hover);
    transform: translateY(-4px) scale(1);
    border-color: transparent; /* or none */
    box-shadow: none;
  }
}
.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Skills Section */
.skills {
  background: var(--bg-secondary);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.skill-icon {
  width: 42px;
  height: 42px;
  object-fit: contain;
  margin-bottom: 14px;

  /* subtle glow */
  filter: drop-shadow(0 4px 12px rgba(99, 102, 241, 0.25));

  transition:
    transform 0.3s ease,
    filter 0.3s ease;
}

.skill-icon-box {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 14px;

  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.skill-card {
  position: relative;
  overflow: hidden;

  padding: 24px;
  border-radius: 16px;

  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);

  backdrop-filter: blur(20px);
  text-align: center;

  transition: 0.3s ease;
}

.skill-card:hover {
  transform: translateY(-6px);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}
.skill-card:hover .skill-icon {
  transform: scale(1.15);
  filter: drop-shadow(0 6px 16px rgba(99, 102, 241, 0.4));
}

.skill-level {
  font-size: 0.85rem;
  color: #6366f1;
  font-weight: 450;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0;
}
.skill-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
}
@media (hover: none) {
  .skill-card:hover {
    transform: translateY(-3px);
    border-color: rgba(99, 102, 241, 0.2);
    box-shadow: none;
  }
  .skill-card:hover .skill-icon {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 12px rgba(99, 102, 241, 0.25));
  }
}
/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.project-card {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-smooth);
}

.project-card:hover {
  transform: translateY(-12px) scale(1.01);
  border-color: var(--accent);
  box-shadow:
    0 30px 60px -15px var(--accent-shadow-strong),
    0 0 0 1px var(--accent-outline);
}

.project-image-wrap {
  position: relative;
  aspect-ratio: 3/2;
  overflow: hidden;
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.project-overlay {
  position: absolute;
  inset: 0;
  background: var(--project-overlay-bg);
  display: flex;
  gap: 12px;
  align-items: flex-end;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.project-card:hover .project-overlay {
  opacity: 1;
  transform: translateY(0);
}

.project-link {
  padding: 10px 20px;
  background: var(--gradient-1);
  color: var(--button-text-on-accent);
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

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

.project-link.github {
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
}

.project-link.github:hover {
  background: var(--bg-glass-hover);
}

.project-info {
  padding: 24px;
}

.project-info h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.project-info p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 12px;
}

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

.tech-badge {
  display: inline-block;
  padding: 4px 10px;
  background: var(--accent-chip-bg);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 16px;
  transition: all var(--transition-smooth);
}

.project-card:hover .tech-badge {
  background: var(--accent-chip-bg-hover);
  color: var(--accent-hover);
}
/* MOBILE: always show */
@media (max-width: 768px) {
  .project-overlay {
    opacity: 1;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 10px;
  }
  .project-link {
    padding: 8px 16px;
    font-size: 0.75rem;
    border-radius: var(--radius-sm);
  }
}
@media (hover: none) {
  .project-card:hover {
    transform: translateY(-6px) scale(1.01);
    border-color: var(--accent);
    box-shadow: none;
  }
  .project-card:hover .project-image {
    transform: scale(1.04);
  }
  .project-card:hover .project-overlay {
    opacity: 1;
  }
}
.project-link {
  padding: 10px 22px;
  border-radius: 999px;

  background: var(--gradient-button);
  color: white;

  font-weight: 600;
  font-size: 0.85rem;

  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.25);
  transition: all 0.3s ease;
}

.project-link:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 15px 40px rgba(99, 102, 241, 0.35);
}
/* Contact Section */
.contact {
  background: var(--bg-secondary);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  max-width: 900px;
  margin: 0 auto;
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.form-group {
  position: relative;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 20px 20px 10px;
  font-family: var(--font-primary);
  font-size: 0.9rem;
  color: var(--text-primary);
  background: var(--bg-glass);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: transparent;
}

.form-group label {
  position: absolute;
  left: 20px;
  top: 18px;
  color: var(--text-muted);
  font-size: 1rem;
  pointer-events: none;
  transition: all var(--transition-smooth);
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
  top: 6px;
  font-size: 0.75rem;
  color: var(--accent);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-error {
  display: block;
  color: var(--error);
  font-size: 0.8rem;
  margin-top: 4px;
}

.form-group.invalid input,
.form-group.invalid textarea {
  border-color: var(--error);
}

.btn-loading {
  display: none;
}

.btn.sending .btn-text {
  display: none;
}

.btn.sending .btn-loading {
  display: inline;
}

/* Contact Info */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

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

.social-link:hover {
  background: var(--accent);
  color: var(--button-text-on-accent);
  transform: translateY(-4px);
}

.social-link svg {
  width: 22px;
  height: 22px;
}

.contact-email a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.contact-location {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* Footer */
.footer {
  padding: 32px;
  text-align: center;
  border-top: 1px solid var(--border-color);
}

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

/* Mobile Navigation */
.nav-toggle {
  display: none;
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-secondary);
    flex-direction: column;
    padding: 100px 32px 32px;
    gap: 24px;
    transition: right var(--transition-smooth);
    border-left: 1px solid var(--border-color);
  }

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

  .nav-toggle {
    display: flex;
    z-index: 101;
  }

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

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

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

  .about-stats {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .about-content {
    gap: 42px;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .theme-toggle {
    top: 90px;
  }
}

@media (max-width: 480px) {
  .hero-cta {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}
.contact-wrapper {
  background: var(--bg-glass);
  backdrop-filter: blur(30px);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 40px;
  box-shadow:
    var(--contact-shadow),
    inset 0 1px 0 var(--surface-highlight);
  transition: 0.4s ease;
}

.contact-wrapper:hover {
  border-color: var(--accent-border);
  box-shadow:
    0 30px 80px var(--accent-shadow-medium),
    inset 0 1px 0 var(--surface-highlight-strong);
}
.form-group input,
.form-group textarea {
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.form-group input:hover,
.form-group textarea:hover {
  border-color: var(--border-color-hover);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow:
    0 0 0 3px var(--accent-glow),
    0 10px 30px var(--accent-shadow-medium);
  transform: scale(1.02);
}
.social-link {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.social-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-social);
  opacity: 0;
  transition: 0.3s;
}

.social-link:hover::before {
  opacity: 1;
}

.social-link:hover {
  color: var(--button-text-on-accent);
  transform: translateY(-6px) scale(1.1);
  box-shadow: 0 10px 30px var(--accent-shadow-strong);
}

.social-link svg,
.social-link {
  position: relative;
  z-index: 1;
}
.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent,
    var(--button-shine),
    transparent
  );
  transform: translateX(-100%);
}

.btn-primary:hover::before {
  transform: translateX(100%);
  transition: 0.6s;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 15px 40px var(--accent-shadow-intense);
}
.contact-email {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-primary);
}

.contact-location {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  margin-top: 8px;
}
.contact-wrapper {
  animation: floatContact 6s ease-in-out infinite;
}

@keyframes floatContact {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}
.social-link[aria-label="Email"]:hover {
  background: var(--gradient-email);
}
@media (min-width: 1024px) {
  /* HERO CONTAINER */
  .hero-content {
    max-width: 900px;
  }

  /* PROFILE IMAGE */
  .hero-image {
    width: 160px;
    height: 160px;
    margin-bottom: 24px;
  }

  /* NAME */
  .hero-name {
    font-size: 3.5rem;
    margin-bottom: 10px;
    letter-spacing: 5px;
  }

  /* TITLE */
  .hero-title {
    font-size: 1.4rem;
    margin-bottom: 12px;
  }

  /* TYPING TEXT */
  .hero-typing {
    font-size: 1.2rem;
    margin-bottom: 20px;
  }

  /* BUTTONS */
  .hero-cta {
    flex-direction: row;
    gap: 20px;
    margin-bottom: 60px;
  }

  .btn {
    padding: 16px 34px;
    font-size: 1.05rem;
  }

  /* SCROLL TEXT */
  .scroll-text {
    font-size: 0.8rem;
    letter-spacing: 2px;
  }
}
@media (min-width: 1280px) {
  .hero {
    padding-top: 140px;
  }

  .hero-content {
    max-width: 1000px;
  }
  .about-support {
    font-size: 1.12rem;
  }
}
.section-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -1px;
}
.about-text {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 768px) {
  .theme-toggle {
    top: 80px;
    right: 16px;
    width: 40px;
    height: 40px;
  }
}
.theme-toggle {
  opacity: 0.9;
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  transform: scale(1.08);
  border-color: var(--accent);
}
.services {
  background: linear-gradient(
    to bottom,
    var(--bg-secondary),
    var(--bg-primary) 55%,
    var(--bg-secondary)
  );
}

.section-subtitle {
  max-width: 680px;
  margin: -36px auto 48px;
  color: var(--text-secondary);
  text-align: center;
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.7;
}

.services-intro {
  margin-bottom: 42px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 24px;
}

.service-card {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.14),
    inset 0 1px 0 var(--surface-highlight);
  display: flex;
  flex-direction: column;
  transition:
    transform var(--transition-smooth),
    background var(--transition-smooth),
    border-color var(--transition-smooth),
    box-shadow var(--transition-smooth);
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at top right,
      var(--accent-shadow-medium),
      transparent 36%
    ),
    linear-gradient(135deg, var(--accent-outline-soft), transparent 52%);
  opacity: 0;
  transition: opacity var(--transition-smooth);
  pointer-events: none;
}

.service-card::after {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  top: 0;
  height: 3px;
  background: var(--gradient-1);
  border-radius: 0 0 999px 999px;
  opacity: 0;
  transform: scaleX(0.45);
  transform-origin: left;
  transition:
    opacity var(--transition-smooth),
    transform var(--transition-smooth);
}

.service-card:hover {
  transform: translateY(-10px);
  background: var(--bg-glass-hover);
  border-color: var(--accent-border);
  box-shadow:
    0 28px 60px -18px var(--accent-shadow-strong),
    0 0 0 1px var(--accent-outline),
    inset 0 1px 0 var(--surface-highlight-strong);
}

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

.service-card:hover::after {
  transform: scaleX(1);
}

.service-card > * {
  position: relative;
  z-index: 1;
}

.service-icon {
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--accent-chip-bg);
  border: 1px solid var(--accent-outline);
  color: var(--accent-hover);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0;
  box-shadow: 0 12px 28px var(--accent-shadow-soft);
  transition:
    transform var(--transition-smooth),
    background var(--transition-smooth),
    border-color var(--transition-smooth);
}

.service-card:hover .service-icon {
  transform: translateY(-2px) scale(1.06);
  background: var(--accent-chip-bg-hover);
  border-color: var(--accent-border);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.55rem);
  line-height: 1.2;
  margin-bottom: 12px;
  letter-spacing: 0;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 18px;
}

.service-features {
  display: grid;
  gap: 10px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.service-features li {
  position: relative;
  padding-left: 24px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

.service-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--gradient-2);
  box-shadow: 0 0 16px var(--accent-shadow-medium);
}

.service-tag {
  width: fit-content;
  margin-bottom: 16px;
  font-size: 0.7rem;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-chip-bg);
  color: var(--accent);
  border: 1px solid var(--accent-outline);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.service-cta {
  margin-top: auto;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  background: var(--gradient-button);
  color: var(--button-text-on-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 26px var(--accent-shadow-medium);
  transition:
    transform var(--transition-smooth),
    box-shadow var(--transition-smooth),
    filter var(--transition-smooth);
}

.service-cta::after {
  content: "->";
  font-size: 1rem;
  transition: transform var(--transition-fast);
}

.service-cta:hover,
.service-cta:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 16px 34px var(--accent-shadow-strong);
}

.service-cta:hover::after,
.service-cta:focus-visible::after {
  transform: translateX(4px);
}

.service-cta:focus-visible {
  outline: 3px solid var(--accent-glow);
  outline-offset: 3px;
}

@media (hover: none) {
  .service-card:hover {
    transform: translateY(-6px);
    background: var(--bg-glass-hover);
    border-color: var(--accent-border);
    box-shadow:
      0 20px 40px -14px var(--accent-shadow, var(--accent-shadow-medium)),
      0 0 0 1px var(--accent-outline),
      inset 0 1px 0 var(--surface-highlight-strong);
  }
  .service-card:hover::before,
  .service-card:hover::after {
    opacity: 1;
  }

  @media (max-width: 768px) {
    .section-subtitle {
      margin-top: -34px;
      margin-bottom: 34px;
    }

    .services-grid {
      grid-template-columns: 1fr;
      gap: 18px;
    }

    .service-card {
      padding: 24px;
    }
  }

  @media (max-width: 480px) {
    .section-subtitle {
      font-size: 0.98rem;
    }

    .service-card {
      border-radius: var(--radius-md);
    }

    .service-cta {
      width: 100%;
    }
  }
}
