/* ============================================
   S.WAEL SABRI — PORTFOLIO DESIGN SYSTEM
   Premium Dark Violet Theme
   ============================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Backgrounds */
  --bg-primary: #08080f;
  --bg-secondary: #0d0d18;
  --bg-tertiary: #111122;
  --bg-card: rgba(18, 18, 35, 0.65);
  --bg-card-hover: rgba(25, 25, 50, 0.8);
  --bg-glass: rgba(15, 15, 30, 0.5);

  /* Accent Colors */
  --accent-primary: #8b5cf6;
  --accent-secondary: #a78bfa;
  --accent-tertiary: #c4b5fd;
  --accent-glow: #7c3aed;
  --accent-deep: #6d28d9;
  --accent-blue: #3b82f6;
  --accent-cyan: #06b6d4;

  /* Text */
  --text-primary: #f0eef6;
  --text-secondary: #9d9db8;
  --text-muted: #6b6b85;
  --text-accent: #a78bfa;

  /* Borders */
  --border-glass: rgba(139, 92, 246, 0.12);
  --border-hover: rgba(139, 92, 246, 0.35);
  --border-subtle: rgba(255, 255, 255, 0.06);

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, #7c3aed 0%, #4f46e5 50%, #2563eb 100%);
  --gradient-accent: linear-gradient(135deg, #8b5cf6, #6d28d9);
  --gradient-text: linear-gradient(135deg, #c4b5fd, #8b5cf6, #6366f1);
  --gradient-card: linear-gradient(145deg, rgba(139, 92, 246, 0.08), rgba(99, 102, 241, 0.04));
  --gradient-glow: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.15), transparent 70%);

  /* Shadows */
  --shadow-card: 0 4px 30px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 40px rgba(139, 92, 246, 0.15);
  --shadow-button: 0 4px 20px rgba(139, 92, 246, 0.3);

  /* Spacing */
  --section-padding: 100px 0;
  --container-width: 1200px;
  --container-padding: 0 24px;

  /* Transitions */
  --transition-fast: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 350ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 600ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--accent-primary);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-secondary);
}

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

/* ---------- Utility Classes ---------- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: var(--container-padding);
}

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

.section-alt {
  background-color: var(--bg-secondary);
}

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

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

.font-mono {
  font-family: 'JetBrains Mono', monospace;
}

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

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: 16px;
  padding: 6px 16px;
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: var(--radius-full);
}

.section-label .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-primary);
  animation: pulse-dot 2s infinite;
}

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

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ---------- Scroll Animation Classes ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale.active {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delays for children */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }
.stagger-7 { transition-delay: 0.7s; }
.stagger-8 { transition-delay: 0.8s; }

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition-base);
}

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

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: rgba(15, 15, 30, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
}

.nav-link {
  padding: 8px 18px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
  white-space: nowrap;
}

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

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

/* Mobile Hamburger */
.nav-hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.nav-hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition-base);
}

.nav-hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: rgba(10, 10, 20, 0.97);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-left: 1px solid var(--border-glass);
  padding: 100px 32px 32px;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-menu.open {
  right: 0;
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-base);
  z-index: 998;
}

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

.mobile-nav-link {
  display: block;
  padding: 14px 20px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
}

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

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

#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: var(--bg-primary);
}

.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.12;
  pointer-events: none;
}

.hero-glow-1 {
  top: -100px;
  right: -100px;
  background: var(--accent-primary);
}

.hero-glow-2 {
  bottom: -200px;
  left: -200px;
  background: var(--accent-blue);
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

.hero-text {
  order: 2;
}

.hero-greeting {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  font-weight: 500;
  color: var(--accent-secondary);
  margin-bottom: 12px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s 0.3s forwards;
}

.hero-name {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 8px;
  letter-spacing: -0.03em;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s 0.5s forwards;
}

.hero-typewriter-wrapper {
  min-height: 48px;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s 0.7s forwards;
}

.hero-typewriter {
  font-size: clamp(1.1rem, 2.5vw, 1.75rem);
  font-weight: 600;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.typewriter-cursor {
  display: inline-block;
  width: 3px;
  height: 1.2em;
  background: var(--accent-primary);
  margin-left: 4px;
  vertical-align: text-bottom;
  animation: blink 1s infinite;
}

.hero-description {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.8;
  margin-bottom: 32px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s 0.9s forwards;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s 1.1s forwards;
}

.hero-socials {
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s 1.3s forwards;
}

.hero-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-base);
}

.hero-social-link:hover {
  color: var(--text-primary);
  border-color: var(--accent-primary);
  background: rgba(139, 92, 246, 0.1);
  transform: translateY(-2px);
}

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

/* Hero Image */
.hero-image-wrapper {
  order: 1;
  display: flex;
  justify-content: center;
  opacity: 0;
  transform: scale(0.9);
  animation: scaleIn 0.8s 0.4s forwards;
}

.hero-image-container {
  position: relative;
  width: 260px;
  height: 260px;
}

.hero-image-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.25), transparent 70%);
  border-radius: var(--radius-xl);
  filter: blur(30px);
}

.hero-image-frame {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 12px;
  overflow: hidden;
}

.hero-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

/* Floating Badges */
.hero-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  animation: float 6s ease-in-out infinite;
}

.hero-badge-1 {
  top: 10%;
  right: -15%;
  animation-delay: 0s;
}

.hero-badge-2 {
  bottom: 10%;
  left: -15%;
  animation-delay: 2s;
}

.hero-badge .badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse-dot 2s infinite;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeInUp 0.8s 1.6s forwards;
}

.scroll-indicator span {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.scroll-indicator .scroll-arrow {
  width: 30px;
  height: 50px;
  border: 2px solid var(--border-glass);
  border-radius: var(--radius-full);
  position: relative;
}

.scroll-indicator .scroll-arrow::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 10px;
  background: var(--accent-primary);
  border-radius: var(--radius-full);
  animation: scrollBounce 2s infinite;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: var(--transition-base);
  white-space: nowrap;
}

.btn svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

.btn-primary {
  background: var(--gradient-accent);
  color: #fff;
  box-shadow: var(--shadow-button);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(139, 92, 246, 0.4);
}

.btn-primary:hover svg {
  transform: translateX(3px);
}

.btn-outline {
  background: transparent;
  color: var(--accent-secondary);
  border: 1.5px solid var(--accent-primary);
}

.btn-outline:hover {
  background: rgba(139, 92, 246, 0.1);
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(139, 92, 246, 0.08);
  color: var(--accent-secondary);
  border: 1px solid var(--border-glass);
}

.btn-ghost:hover {
  border-color: var(--accent-primary);
  background: rgba(139, 92, 246, 0.15);
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}

.about-story {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 32px;
}

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

.about-info-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.about-info-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: var(--transition-base);
}

.about-info-card:hover {
  border-color: var(--border-hover);
}

.about-info-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: var(--radius-sm);
  background: rgba(139, 92, 246, 0.1);
  color: var(--accent-secondary);
}

.about-info-icon svg {
  width: 18px;
  height: 18px;
}

.about-info-content h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.about-info-content p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Core Areas */
.core-areas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.core-area-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-secondary);
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: var(--radius-full);
  transition: var(--transition-base);
}

.core-area-tag:hover {
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.4);
  transform: translateY(-1px);
}

/* About - Languages */
.about-languages {
  margin-top: 24px;
}

.about-languages h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.language-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.language-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.language-tag .lang-level {
  font-size: 0.7rem;
  color: var(--accent-secondary);
  font-weight: 600;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.service-card {
  position: relative;
  padding: 32px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: var(--transition-base);
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-accent);
  opacity: 0;
  transition: var(--transition-base);
}

.service-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

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

.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(139, 92, 246, 0.1);
  color: var(--accent-secondary);
  margin-bottom: 20px;
  transition: var(--transition-base);
}

.service-card:hover .service-icon {
  background: rgba(139, 92, 246, 0.2);
  transform: scale(1.05);
}

.service-icon svg {
  width: 24px;
  height: 24px;
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

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

.service-benefit {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--accent-secondary);
  font-weight: 500;
}

.service-benefit svg {
  width: 14px;
  height: 14px;
  color: #22c55e;
}

/* ============================================
   SKILLS SECTION
   ============================================ */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.skills-category {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

.skills-category-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.skills-category-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(139, 92, 246, 0.12);
  color: var(--accent-secondary);
}

.skills-category-icon svg {
  width: 20px;
  height: 20px;
}

.skills-category-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

.skills-category-header .learning-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.08);
  border: 1px dashed rgba(6, 182, 212, 0.3);
  border-radius: var(--radius-full);
}

.learning-badge .pulse-circle {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
  animation: pulse-dot 1.5s infinite;
}

.skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  background: rgba(139, 92, 246, 0.06);
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: var(--radius-full);
  transition: var(--transition-base);
}

.skill-tag:hover {
  background: rgba(139, 92, 246, 0.14);
  border-color: rgba(139, 92, 246, 0.35);
  transform: translateY(-2px);
}

.skill-tag svg {
  width: 14px;
  height: 14px;
  color: var(--accent-secondary);
}

/* Learning skills variant */
.skills-category.learning .skill-tag {
  border-style: dashed;
  color: var(--text-secondary);
  background: rgba(6, 182, 212, 0.04);
  border-color: rgba(6, 182, 212, 0.2);
}

.skills-category.learning .skill-tag:hover {
  background: rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.4);
  color: var(--text-primary);
}

.skills-category.learning .skill-tag svg {
  color: var(--accent-cyan);
}

/* ============================================
   PROJECTS SECTION
   ============================================ */
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.project-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  transition: var(--transition-base);
  overflow: hidden;
}

.project-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
}

.project-preview {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, #1a1035, #0d1b3e);
  padding: 24px;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-preview-placeholder {
  text-align: center;
  color: var(--text-muted);
}

.project-preview-placeholder svg {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  color: var(--accent-primary);
  opacity: 0.5;
}

.project-preview-placeholder p {
  font-size: 0.85rem;
}

.project-info {
  display: flex;
  flex-direction: column;
}

.project-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-primary);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.project-info h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.project-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

.project-detail {
  padding: 12px 16px;
  background: rgba(139, 92, 246, 0.04);
  border-left: 3px solid var(--accent-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.project-detail h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-secondary);
  margin-bottom: 4px;
}

.project-detail p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.project-stack-tag {
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: var(--radius-full);
  color: var(--accent-secondary);
}

/* ============================================
   JOURNEY ROADMAP SECTION
   ============================================ */
.journey-timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.journey-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  width: 2px;
  height: 100%;
  background: var(--border-subtle);
}

.journey-line-fill {
  position: absolute;
  top: 0;
  left: 24px;
  width: 2px;
  height: 0%;
  background: var(--gradient-accent);
  transition: height 1.5s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 2px;
}

.journey-step {
  position: relative;
  padding-left: 68px;
  padding-bottom: 48px;
}

.journey-step:last-child {
  padding-bottom: 0;
}

.journey-dot {
  position: absolute;
  left: 14px;
  top: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 2px solid var(--text-muted);
  transition: var(--transition-base);
  z-index: 1;
}

.journey-step.current .journey-dot {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}

.journey-step.current .journey-dot::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(139, 92, 246, 0.3);
  animation: pulse-ring 2s infinite;
}

.journey-step.future .journey-dot {
  border-style: dashed;
  border-color: var(--text-muted);
}

.journey-card {
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: var(--transition-base);
}

.journey-step.current .journey-card {
  border-color: rgba(139, 92, 246, 0.3);
  background: rgba(139, 92, 246, 0.05);
}

.journey-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.journey-card .journey-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.journey-status.status-current {
  color: #22c55e;
}

.journey-status.status-future {
  color: var(--text-muted);
}

.journey-status .status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.journey-status.status-current .status-dot {
  animation: pulse-dot 1.5s infinite;
}

.journey-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================
   TECH STACK SECTION
   ============================================ */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.tech-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: var(--transition-base);
  text-align: center;
}

.tech-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.tech-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: rgba(139, 92, 246, 0.08);
  color: var(--accent-secondary);
  font-size: 1.5rem;
  font-weight: 700;
  transition: var(--transition-base);
}

.tech-card:hover .tech-icon {
  background: rgba(139, 92, 246, 0.18);
  transform: scale(1.1) rotate(-3deg);
}

.tech-icon svg {
  width: 28px;
  height: 28px;
}

.tech-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--radius-sm);
  padding: 8px;
  transition: var(--transition-base);
}

.tech-card:hover .tech-icon img {
  transform: scale(1.05);
}

.invert-logo {
  filter: brightness(0) invert(1);
}

.tech-card h4 {
  font-size: 0.85rem;
  font-weight: 600;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.contact-headline {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

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

.contact-methods {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-primary);
  transition: var(--transition-base);
}

.contact-method:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.contact-method-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: var(--radius-md);
  background: rgba(139, 92, 246, 0.1);
  color: var(--accent-secondary);
}

.contact-method-icon svg {
  width: 20px;
  height: 20px;
}

.contact-method-info {
  text-align: left;
}

.contact-method-info h4 {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.contact-method-info p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Contact Form */
.contact-form {
  max-width: 560px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 16px;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  outline: none;
  transition: var(--transition-base);
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.form-group textarea {
  min-height: 130px;
}

.form-submit {
  width: 100%;
  margin-top: 8px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-base);
}

.footer-social-link:hover {
  color: var(--accent-secondary);
  border-color: var(--accent-primary);
  background: rgba(139, 92, 246, 0.08);
}

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

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

.footer-text .heart {
  color: var(--accent-primary);
}

/* ============================================
   KEYFRAME ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

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

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

@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(2); opacity: 0; }
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  50% { transform: translateX(-50%) translateY(16px); opacity: 0.3; }
}

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

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

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet */
@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tech-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Desktop */
@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }

  .nav-hamburger {
    display: none;
  }

  .hero-content {
    grid-template-columns: 1fr 1fr;
  }

  .hero-text {
    order: 1;
  }

  .hero-image-wrapper {
    order: 2;
  }

  .hero-image-container {
    width: 300px;
    height: 300px;
  }

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

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

  .project-card {
    grid-template-columns: 1fr 1.2fr;
    padding: 40px;
  }

  .project-card:nth-child(even) .project-preview {
    order: 2;
  }

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

  .journey-timeline::before {
    left: 50%;
    transform: translateX(-50%);
  }

  .journey-line-fill {
    left: 50%;
    transform: translateX(-50%);
  }

  .journey-step {
    padding-left: 0;
    width: 50%;
  }

  .journey-step:nth-child(odd) {
    margin-left: 0;
    padding-right: 48px;
    text-align: right;
  }

  .journey-step:nth-child(even) {
    margin-left: 50%;
    padding-left: 48px;
  }

  .journey-step:nth-child(odd) .journey-dot {
    left: auto;
    right: -11px;
  }

  .journey-step:nth-child(even) .journey-dot {
    left: -11px;
  }

  .journey-step:nth-child(odd) .journey-card {
    text-align: right;
  }

  .journey-step:nth-child(odd) .journey-status {
    justify-content: flex-end;
  }
}

/* Large Desktop */
@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .hero-image-container {
    width: 340px;
    height: 340px;
  }

  .tech-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .contact-methods {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Mobile-specific overrides */
@media (max-width: 767px) {
  .section {
    padding: 70px 0;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .hero-name {
    text-align: center;
  }

  .hero-typewriter-wrapper {
    text-align: center;
  }

  .hero-description {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

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

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

  .hero-badge {
    display: none;
  }

  .scroll-indicator {
    display: none;
  }

  .contact-method {
    flex-direction: column;
    text-align: center;
  }

  .contact-method-info {
    text-align: center;
  }
}
