/* Typing effect for code block */
.typing-code-css {
  display: block;
  overflow: hidden;
  white-space: pre;
  border-right: 3px solid var(--primary-light);
  position: relative;
  min-width: 0;
  max-width: 100vw;
  /* احسب عدد الحروف الفعلي (تقريباً 340) */
  animation:
    typing-code 3.5s steps(80, end) 0.5s forwards,
    cursor-blink 0.8s step-end infinite,
    cursor-fade 0.5s ease 4.2s forwards;
  width: 0;
}

@keyframes typing-code {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

.typing-code-css::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 100%;
  height: 8px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.10), rgba(139, 92, 246, 0.10));
  border-radius: 4px;
  z-index: -1;
  opacity: 0;
  animation: underline-reveal 0.4s ease 3.8s forwards;
}

@media (prefers-reduced-motion: reduce) {
  .typing-code-css {
    animation: none;
    width: auto;
    border-right: none;
  }

  .typing-code-css::after {
    animation: none;
    opacity: 1;
  }
}

/* Typing Static - CSS Animation */
.typing-static-css {
  color: var(--white);
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 3px solid transparent;
  position: relative;
  min-width: 0;
  max-width: 100vw;
  /* 7 chars in "Hi, I'm " (مع المسافة) */
  animation:
    typing-static 0.7s steps(7, end) 0.1s forwards,
    cursor-blink 0.8s step-end infinite,
    cursor-fade 0.5s ease 1.6s forwards;
  width: 0;
}

@keyframes typing-static {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

.typing-static-css {
  border-right-color: var(--primary-light);
  box-shadow: 3px 0 8px rgba(99, 102, 241, 0.2);
}

.typing-static-css::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 100%;
  height: 8px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(139, 92, 246, 0.12));
  border-radius: 4px;
  z-index: -1;
  opacity: 0;
  animation: underline-reveal 0.4s ease 1.2s forwards;
}

@media (prefers-reduced-motion: reduce) {
  .typing-static-css {
    animation: none;
    width: auto;
    border-right: none;
    box-shadow: none;
  }

  .typing-static-css::after {
    animation: none;
    opacity: 1;
  }
}

/* (Mobile responsive rules consolidated in the Responsive Design section below) */
/* ========================================
   Mohamed Tayal Portfolio - Main Styles
   Enhanced UI/UX Version 2.0
   ======================================== */

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --secondary: #8b5cf6;
  --accent: #06b6d4;
  --accent-pink: #ec4899;
  --dark: #0a0a0f;
  --dark-light: #12121a;
  --dark-lighter: #1f1f2e;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --white: #ffffff;
  --success: #10b981;
  --warning: #f59e0b;
  --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
  --gradient-accent: linear-gradient(135deg, var(--accent), var(--accent-pink));
  --gradient-glow: linear-gradient(135deg, rgba(99, 102, 241, 0.4), rgba(139, 92, 246, 0.4));
  --glass-bg: rgba(18, 18, 26, 0.7);
  --glass-border: rgba(255, 255, 255, 0.08);
  --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.15);
  --shadow-card: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Mode */
body.light-mode {
  --dark: #f8fafc;
  --dark-light: #ffffff;
  --dark-lighter: #e2e8f0;
  --slate-400: #64748b;
  --slate-300: #475569;
  --white: #0f172a;
  --glass-bg: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(0, 0, 0, 0.08);
}

body.light-mode {
  background-color: #f1f5f9;
  color: #0f172a;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.1), transparent),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(139, 92, 246, 0.08), transparent);
}

body.light-mode .navbar {
  background: rgba(255, 255, 255, 0.85);
}

body.light-mode .navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

body.light-mode .hero-particles {
  display: none;
}

body.light-mode .hero-gradient-bg {
  background:
    radial-gradient(ellipse 60% 40% at 20% 30%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 80% 70%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
}

body.light-mode .hero-section::before {
  background-image:
    linear-gradient(rgba(99, 102, 241, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.05) 1px, transparent 1px);
}

body.light-mode .bg-dark-light {
  background-color: #ffffff;
}

body.light-mode .skill-category,
body.light-mode .service-card,
body.light-mode .portfolio-card,
body.light-mode .contact-card,
body.light-mode .contact-form-wrapper {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

body.light-mode .form-control,
body.light-mode .form-select {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #0f172a;
}

body.light-mode .form-control:focus,
body.light-mode .form-select:focus {
  background: #ffffff;
  border-color: var(--primary);
}

body.light-mode .stat-card {
  background: rgba(255, 255, 255, 0.9);
}

body.light-mode .footer {
  background: #1e293b;
  color: #ffffff;
}

body.light-mode .footer p,
body.light-mode .footer a {
  color: #94a3b8;
}

body.light-mode .footer h4 {
  color: #ffffff;
}

body.light-mode .cta-section {
  background: var(--gradient);
}

body.light-mode .hero-badge,
body.light-mode .float-icon,
body.light-mode .floating-element,
body.light-mode .tech-icon {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

body.light-mode .code-editor-glass {
  background: rgba(250, 250, 250, 0.95);
  border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .editor-topbar {
  background: linear-gradient(180deg, #f0f0f0 0%, #e8e8e8 100%);
}

body.light-mode .editor-code {
  background: #fafafa;
  color: #333;
}

body.light-mode .code-keyword {
  color: #7c3aed;
}

body.light-mode .code-class {
  color: #b45309;
}

body.light-mode .code-function {
  color: #2563eb;
}

body.light-mode .code-param {
  color: #dc2626;
}

body.light-mode .code-string {
  color: #059669;
}

body.light-mode .hero-eyebrow {
  color: var(--primary-dark);
}

body.light-mode .hero-description {
  color: #475569;
}

body.light-mode .btn-hero-secondary {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.15);
  color: #1e293b;
}

body.light-mode .portfolio-image {
  background: linear-gradient(135deg, #e2e8f0, #f1f5f9);
}

body.light-mode .about-image .image-placeholder {
  background: linear-gradient(135deg, #e2e8f0, #f1f5f9);
}

body.light-mode .tech-icon,
body.light-mode .filter-btn {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .info-item {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .hero-social a,
body.light-mode .social-links-contact a {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .portfolio-tags span {
  background: #f1f5f9;
  color: #475569;
}

body.light-mode .navbar-collapse {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

body.light-mode .skill-bar {
  background: #e2e8f0;
}

body.light-mode ::-webkit-scrollbar-track {
  background: #f1f5f9;
}

body.light-mode ::-webkit-scrollbar-thumb {
  background: var(--primary);
}

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

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

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background-color: var(--dark);
  color: var(--white);
  line-height: 1.8;
  overflow-x: hidden;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.15), transparent),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(139, 92, 246, 0.1), transparent);
  background-attachment: fixed;
}

/* Typography Scale */
h1,
h2,
h3,
.section-title,
.hero-title {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-weight: 700;
}

/* Custom Selection */
::selection {
  background: var(--primary);
  color: var(--white);
}

/* Smooth Focus Styles */
*:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

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

.section {
  padding: 120px 0;
  position: relative;
}

.bg-dark-light {
  background-color: var(--dark-light);
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99, 102, 241, 0.12);
  color: var(--primary-light);
  padding: 10px 22px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 20px;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.section-title {
  font-family: 'Poppins', sans-serif;
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: -1px;
  line-height: 1.2;
}

.section-subtitle {
  color: var(--slate-400);
  font-size: 1.15rem;
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ========== Buttons ========== */
.btn-primary {
  background: var(--gradient);
  border: none;
  padding: 14px 32px;
  font-weight: 600;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.4);
  background: var(--gradient);
}

.btn-primary:active {
  transform: translateY(-2px) scale(0.98);
}

.btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  border-radius: 14px;
  padding: 14px 32px;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.4s var(--transition-smooth);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary);
  color: var(--white);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

.btn-light {
  background: rgba(255, 255, 255, 0.95);
  color: var(--dark);
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.3s var(--transition-smooth);
}

.btn-light:hover {
  background: var(--white);
  transform: scale(1.05);
}


/* ========== Navbar ========== */
.navbar {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  padding: 18px 0;
  transition: all 0.4s var(--transition-smooth);
  border-bottom: 1px solid var(--glass-border);
}

.navbar.scrolled {
  background: rgba(10, 10, 15, 0.95);
  border-bottom: 1px solid rgba(99, 102, 241, 0.2);
  padding: 12px 0;
  box-shadow: var(--shadow-glow);
}

.navbar-brand {
  font-size: 1.6rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
  transition: transform 0.3s ease;
}

.navbar-brand:hover {
  transform: scale(1.05);
}

.navbar-nav .nav-link {
  color: var(--slate-300);
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 10px;
  position: relative;
  transition: all 0.3s var(--transition-smooth);
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--gradient);
  border-radius: 2px;
  transition: width 0.3s var(--transition-smooth);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 60%;
}

.navbar-nav .nav-link:hover {
  color: var(--white);
  background: rgba(99, 102, 241, 0.1);
}

.navbar-nav .nav-link.active {
  color: var(--primary-light);
}

.navbar-toggler {
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.1);
  transition: all 0.3s ease;
}

.navbar-toggler:hover {
  background: rgba(99, 102, 241, 0.2);
}

.navbar-toggler:focus {
  box-shadow: none;
}

@media (max-width: 991px) {
  .navbar-collapse {
    background: var(--dark-light);
    padding: 24px;
    border-radius: 20px;
    margin-top: 15px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-card);
  }

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

/* ========== Hero Section ========== */
.hero-section {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Animated Gradient Background */
.hero-gradient-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 20% 30%, rgba(99, 102, 241, 0.25) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 80% 70%, rgba(139, 92, 246, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse 40% 30% at 60% 20%, rgba(6, 182, 212, 0.1) 0%, transparent 40%);
  animation: gradientPulse 15s ease-in-out infinite;
  z-index: 0;
}

@keyframes gradientPulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

/* Subtle Grid Overlay */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 20%, transparent 70%);
  z-index: 1;
}

/* Hero Eyebrow Text */
.hero-eyebrow {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--primary-light);
  margin-bottom: 16px;
  letter-spacing: 0.5px;
  display: block;
  position: relative;
  z-index: 10;
}

/* Hero Title */
.hero-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 24px;
  letter-spacing: -1.5px;
  color: var(--white);
  position: relative;
  z-index: 10;
  min-height: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.hero-title-subline {
  display: block;
  max-width: 11ch;
  font-size: clamp(1.45rem, 3vw, 2.35rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
  color: var(--white);
}

/* Static "Hi, I'm" text */
.typing-static {
  color: var(--white);
}

/* ========================================
   CSS-Only Typing Animation
   ======================================== */

/* Typing Name - CSS Animation */
/* Typing Name - CSS Animation */
.typing-name-css {
  /* Gradient text styling */
  background: linear-gradient(135deg, #818cf8 0%, #6366f1 35%, #8b5cf6 70%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  /* Typing animation setup */
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 3px solid transparent;
  position: relative;
  min-width: 0;
  max-width: 100vw;
  /* Animation properties */
  /* 13 characters in "Mohamed Tayal" = 13 steps */
  animation:
    typing 1.3s steps(13, end) 0.8s forwards,
    cursor-blink 0.8s step-end infinite,
    cursor-fade 0.5s ease 3.5s forwards;
  /* Initial state - hidden */
  width: 0;
  /* Glow effect */
  filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.3));
}

/* Cursor styling via border */
.typing-name-css {
  border-right-color: var(--primary-light);
  box-shadow: 3px 0 8px rgba(99, 102, 241, 0.4);
}

/* Typing animation keyframes */
@keyframes typing {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

/* Cursor blink animation */
@keyframes cursor-blink {

  0%,
  100% {
    border-right-color: var(--primary-light);
  }

  50% {
    border-right-color: transparent;
  }
}

/* Cursor fade out after typing completes */
@keyframes cursor-fade {
  to {
    border-right-color: transparent;
    box-shadow: none;
  }
}

/* Underline glow - appears after typing */
.typing-name-css::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 100%;
  height: 8px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(139, 92, 246, 0.25));
  border-radius: 4px;
  z-index: -1;
  opacity: 0;
  animation: underline-reveal 0.4s ease 2.2s forwards;
}

@keyframes underline-reveal {
  to {
    opacity: 1;
  }
}

/* Reduced Motion - Show text instantly */
@media (prefers-reduced-motion: reduce) {
  .typing-name-css {
    animation: none;
    width: auto;
    border-right: none;
    box-shadow: none;
    filter: none;
  }

  .typing-name-css::after {
    animation: none;
    opacity: 1;
  }
}

/* ========================================
   Legacy Typing Classes (JS version)
   ======================================== */

/* Gradient Name with Typing Effect */
.typing-name {
  background: linear-gradient(135deg, #818cf8 0%, #6366f1 35%, #8b5cf6 70%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  display: inline;
  filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.3));
}

/* Underline glow effect */
.typing-name::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 100%;
  height: 8px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(139, 92, 246, 0.25));
  border-radius: 4px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.typing-name.typing-complete::after {
  opacity: 1;
}

/* Blinking Cursor */
.typing-cursor {
  display: inline-block;
  width: 3px;
  height: 0.9em;
  background: linear-gradient(180deg, var(--primary-light), var(--accent));
  margin-left: 4px;
  vertical-align: baseline;
  border-radius: 2px;
  animation: cursorBlink 1s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.6);
}

@keyframes cursorBlink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.typing-cursor.cursor-hidden {
  opacity: 0;
  animation: none;
  transition: opacity 0.5s ease;
}

/* Legacy classes (kept for compatibility) */
.hero-typewriter {
  display: block;
  min-height: 1.2em;
}

.typewriter-line {
  display: inline;
  color: var(--white);
}

.typewriter-line.typewriter-name {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.typewriter-caret {
  display: inline-block;
  width: 3px;
  height: 1em;
  background: var(--primary-light);
  margin-left: 4px;
  vertical-align: text-bottom;
  animation: cursorBlink 1s step-end infinite;
}

.hero-name {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  display: inline-block;
}

.hero-name::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  height: 10px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(139, 92, 246, 0.3));
  border-radius: 4px;
  z-index: -1;
}

/* Hero Description */
.hero-description {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--slate-300);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 560px;
  position: relative;
  z-index: 10;
}

/* Hero CTA Buttons */
.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  position: relative;
  z-index: 10;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gradient);
  color: var(--white);
  padding: 16px 32px;
  border-radius: 14px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--transition-smooth);
  box-shadow:
    0 4px 20px rgba(99, 102, 241, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-hero-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transition: left 0.6s ease;
}

.btn-hero-primary:hover::before {
  left: 100%;
}

.btn-hero-primary:hover {
  transform: translateY(-4px);
  box-shadow:
    0 20px 40px rgba(99, 102, 241, 0.5),
    0 0 30px rgba(99, 102, 241, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.btn-hero-primary svg {
  transition: transform 0.3s ease;
}

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

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  color: var(--white);
  padding: 16px 32px;
  border-radius: 14px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  backdrop-filter: blur(10px);
  transition: all 0.4s var(--transition-smooth);
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary);
  color: var(--white);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.08);
}

/* Tech Stack Display */
.hero-tech-stack {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 10;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tech-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--slate-400);
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

.tech-icon {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-300);
  font-size: 1.1rem;
  transition: all 0.3s var(--transition-smooth);
}

.tech-icon:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: var(--primary);
  color: var(--primary-light);
  transform: translateY(-3px);
}

/* Hero Visual Container */
.hero-visual {
  position: relative;
  z-index: 10;
}

/* Code Editor Glass Morphism */
.code-editor-glass {
  background: rgba(30, 30, 46, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(99, 102, 241, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
  max-width: 460px;
  margin: 0 auto;
  animation: editorFloat 8s ease-in-out infinite;
  transform-style: preserve-3d;
}

@keyframes editorFloat {

  0%,
  100% {
    transform: translateY(0) rotate3d(1, 1, 0, 2deg);
  }

  50% {
    transform: translateY(-15px) rotate3d(1, 1, 0, -2deg);
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {

  .code-editor-glass,
  .floating-element,
  .hero-gradient-bg {
    animation: none;
  }

  .btn-hero-primary:hover,
  .btn-hero-secondary:hover,
  .tech-icon:hover {
    transform: none;
  }
}

.code-editor-glass:hover {
  animation-play-state: paused;
  box-shadow:
    0 50px 100px rgba(0, 0, 0, 0.6),
    0 0 80px rgba(99, 102, 241, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.editor-topbar {
  background: linear-gradient(180deg, rgba(45, 45, 63, 0.9) 0%, rgba(37, 37, 53, 0.9) 100%);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

.editor-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.dot-red {
  background: #ff5f56;
  box-shadow: 0 0 10px rgba(255, 95, 86, 0.4);
}

.dot-yellow {
  background: #ffbd2e;
  box-shadow: 0 0 10px rgba(255, 189, 46, 0.4);
}

.dot-green {
  background: #27ca40;
  box-shadow: 0 0 10px rgba(39, 202, 64, 0.4);
}

.editor-filename {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--slate-400);
  margin-left: auto;
}

.editor-code {
  padding: 24px;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.85rem;
  line-height: 1.9;
  direction: ltr;
  text-align: left;
}

.editor-code pre {
  margin: 0;
  white-space: pre;
}

.editor-code code {
  font-family: inherit;
}

/* Syntax Highlighting */
.code-keyword {
  color: #c678dd;
  font-weight: 600;
}

.code-class {
  color: #e5c07b;
  font-weight: 600;
}

.code-function {
  color: #61afef;
}

.code-param {
  color: #e06c75;
}

.code-string {
  color: #98c379;
}

.code-cursor {
  display: inline-block;
  animation: cursorBlink 1s step-end infinite;
  color: #fff;
  font-weight: 300;
}

@keyframes cursorBlink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* Floating Elements */
.floating-element {
  position: absolute;
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--primary-light);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.floating-1 {
  top: 5%;
  right: 0;
  animation: float1 6s ease-in-out infinite;
}

.floating-2 {
  bottom: 20%;
  left: -30px;
  animation: float2 7s ease-in-out infinite;
  color: var(--accent);
}

.floating-3 {
  top: 40%;
  right: -40px;
  animation: float3 5s ease-in-out infinite;
  color: var(--secondary);
}

@keyframes float1 {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-20px) rotate(10deg);
  }
}

@keyframes float2 {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-15px) rotate(-8deg);
  }
}

@keyframes float3 {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-25px) rotate(15deg);
  }
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.scroll-indicator a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: var(--slate-400);
  font-size: 1rem;
  animation: scrollBounce 2s ease-in-out infinite;
  transition: all 0.3s ease;
}

.scroll-indicator a:hover {
  border-color: var(--primary);
  color: var(--primary-light);
}

@keyframes scrollBounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(8px);
  }
}

/* Hero Responsive Styles */
@media (max-width: 991px) {
  .hero-section .row {
    flex-direction: column;
    row-gap: 40px;
  }

  .hero-visual {
    margin-bottom: 40px;
  }

  .code-editor-glass {
    max-width: 380px;
  }

  .floating-element {
    display: none;
  }

  .hero-title {
    font-size: clamp(2.2rem, 8vw, 3rem);
    text-align: center;
    align-items: center;
  }

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

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

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

  .hero-tech-stack {
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 576px) {
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    justify-content: center;
    padding: 14px 24px;
  }

  .code-editor-glass {
    max-width: 100%;
  }

  .editor-code {
    font-size: 0.75rem;
    padding: 16px;
  }
}

/* Legacy Hero Classes (kept for compatibility) */
.hero-particles {
  display: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--glass-bg);
  padding: 12px 24px;
  border-radius: 50px;
  margin-bottom: 28px;
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  animation: fadeInUp 0.8s ease forwards;
}

.hero-badge i {
  color: var(--primary);
  font-size: 1.1rem;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

.hero-badge span {
  color: var(--slate-300);
  font-size: 0.95rem;
  font-weight: 500;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--slate-300);
  margin-bottom: 36px;
  max-width: 520px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-social {
  display: flex;
  gap: 14px;
}

.hero-social a {
  width: 50px;
  height: 50px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-300);
  font-size: 1.3rem;
  transition: all 0.4s var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.hero-social a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hero-social a i {
  position: relative;
  z-index: 1;
}

.hero-social a:hover {
  border-color: var(--primary);
  color: var(--white);
  transform: translateY(-5px) rotate(5deg);
  box-shadow: 0 15px 30px rgba(99, 102, 241, 0.3);
}

.hero-social a:hover::before {
  opacity: 1;
}

/* GitHub hover */
.hero-social a:nth-child(1):hover {
  box-shadow: 0 15px 30px rgba(255, 255, 255, 0.2);
}

/* LinkedIn hover */
.hero-social a:nth-child(2):hover {
  box-shadow: 0 15px 30px rgba(10, 102, 194, 0.4);
}

/* WhatsApp hover */
.hero-social a:nth-child(3):hover {
  box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4);
}

.hero-image {
  position: relative;
}

/* ========== Code Editor Styles ========== */
.code-editor {
  background: #1e1e2e;
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(99, 102, 241, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 480px;
  margin: 0 auto;
  animation: editorFloat 6s ease-in-out infinite;
  transform-style: preserve-3d;
  perspective: 1000px;
}

@keyframes editorFloat {

  0%,
  100% {
    transform: translateY(0) rotateX(2deg) rotateY(-2deg);
  }

  50% {
    transform: translateY(-15px) rotateX(-2deg) rotateY(2deg);
  }
}

.code-editor:hover {
  animation-play-state: paused;
  transform: translateY(-10px) rotateX(0) rotateY(0) scale(1.02);
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.6),
    0 0 60px rgba(99, 102, 241, 0.3);
}

.editor-header {
  background: linear-gradient(180deg, #2d2d3f 0%, #252535 100%);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.editor-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.editor-dots .dot.red {
  background: #ff5f56;
  box-shadow: 0 0 8px rgba(255, 95, 86, 0.5);
}

.editor-dots .dot.yellow {
  background: #ffbd2e;
  box-shadow: 0 0 8px rgba(255, 189, 46, 0.5);
}

.editor-dots .dot.green {
  background: #27ca40;
  box-shadow: 0 0 8px rgba(39, 202, 64, 0.5);
}

.code-editor:hover .editor-dots .dot {
  transform: scale(1.1);
}

.editor-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6366f1;
  font-size: 0.85rem;
}

.editor-title i {
  font-size: 1rem;
}

.editor-tabs {
  display: flex;
  gap: 4px;
  margin-right: auto;
}

.editor-tabs .tab {
  padding: 6px 14px;
  background: transparent;
  color: #666;
  font-size: 0.75rem;
  border-radius: 6px 6px 0 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.editor-tabs .tab.active {
  background: #1e1e2e;
  color: #fff;
}

.editor-body {
  display: flex;
  padding: 20px 0;
  min-height: 280px;
  font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 0.82rem;
  line-height: 1.8;
  direction: ltr;
  text-align: left;
}

.line-numbers {
  display: flex;
  flex-direction: column;
  padding: 0 16px;
  color: #4a4a5a;
  border-left: 1px solid rgba(255, 255, 255, 0.05);
  user-select: none;
  text-align: right;
  min-width: 45px;
}

.code-content {
  flex: 1;
  padding: 0 20px;
  overflow: hidden;
}

.code-line {
  white-space: nowrap;
  animation: typeIn 0.5s ease forwards;
  opacity: 0;
  transform: translateX(-10px);
}

.code-line:nth-child(1) {
  animation-delay: 0.1s;
}

.code-line:nth-child(2) {
  animation-delay: 0.2s;
}

.code-line:nth-child(3) {
  animation-delay: 0.3s;
}

.code-line:nth-child(4) {
  animation-delay: 0.4s;
}

.code-line:nth-child(5) {
  animation-delay: 0.5s;
}

.code-line:nth-child(6) {
  animation-delay: 0.6s;
}

.code-line:nth-child(7) {
  animation-delay: 0.7s;
}

.code-line:nth-child(8) {
  animation-delay: 0.8s;
}

.code-line:nth-child(9) {
  animation-delay: 0.9s;
}

.code-line:nth-child(10) {
  animation-delay: 1.0s;
}

.code-line:nth-child(11) {
  animation-delay: 1.1s;
}

.code-line:nth-child(12) {
  animation-delay: 1.2s;
}

@keyframes typeIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.indent-1 {
  padding-right: 20px;
}

.indent-2 {
  padding-right: 40px;
}

.indent-3 {
  padding-right: 60px;
}

/* Syntax Highlighting */
.keyword {
  color: #c678dd;
  font-weight: 600;
}

.class-name {
  color: #e5c07b;
  font-weight: 600;
}

.function {
  color: #61afef;
}

.param {
  color: #e06c75;
}

.property {
  color: #98c379;
}

.string {
  color: #98c379;
}

.number {
  color: #d19a66;
}

.comment {
  color: #5c6370;
  font-style: italic;
}

.cursor {
  display: inline-block;
  animation: blink 1s step-end infinite;
  color: #fff;
  font-weight: 100;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.editor-footer {
  background: #252535;
  padding: 8px 16px;
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: #666;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-left,
.footer-right {
  display: flex;
  gap: 16px;
  align-items: center;
}

.footer-left span,
.footer-right span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-left i {
  color: #e5c07b;
}

.footer-left .fa-check-circle {
  color: #27ca40;
}

/* Light mode for code editor */
body.light-mode .code-editor {
  background: #fafafa;
  border-color: #e0e0e0;
}

body.light-mode .editor-header {
  background: linear-gradient(180deg, #f0f0f0 0%, #e8e8e8 100%);
}

body.light-mode .editor-body {
  background: #fafafa;
}

body.light-mode .line-numbers {
  color: #999;
  border-left-color: #e0e0e0;
}

body.light-mode .code-content {
  color: #333;
}

body.light-mode .keyword {
  color: #7c3aed;
}

body.light-mode .class-name {
  color: #b45309;
}

body.light-mode .function {
  color: #2563eb;
}

body.light-mode .param {
  color: #dc2626;
}

body.light-mode .property {
  color: #059669;
}

body.light-mode .string {
  color: #059669;
}

body.light-mode .editor-footer {
  background: #f0f0f0;
  border-top-color: #e0e0e0;
}

body.light-mode .editor-tabs .tab.active {
  background: #fafafa;
  color: #333;
}

.floating-icons {
  position: absolute;
  inset: -20px;
  pointer-events: none;
}

.float-icon {
  position: absolute;
  width: 55px;
  height: 55px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  animation: floatIcon 4s ease-in-out infinite;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  pointer-events: auto;
}

.float-icon:hover {
  transform: scale(1.2) !important;
  border-color: var(--primary);
  box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4);
}

.float-icon:nth-child(1) {
  top: 5%;
  right: 0%;
  color: #3776ab;
  animation-delay: 0s;
}

.float-icon:nth-child(2) {
  top: 30%;
  left: -5%;
  color: #61dafb;
  animation-delay: 0.8s;
}

.float-icon:nth-child(3) {
  bottom: 30%;
  right: -5%;
  color: #ec4899;
  animation-delay: 1.6s;
}

.float-icon:nth-child(4) {
  bottom: 5%;
  left: 0%;
  color: #68a063;
  animation-delay: 2.4s;
}

.float-icon:nth-child(5) {
  top: 50%;
  right: -8%;
  color: #06b6d4;
  animation-delay: 3.2s;
}

@keyframes floatIcon {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-12px) rotate(5deg);
  }
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

.scroll-indicator a {
  color: var(--slate-400);
  font-size: 1.6rem;
  transition: color 0.3s ease;
}

.scroll-indicator a:hover {
  color: var(--primary);
}

@keyframes bounce {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(12px);
  }
}


/* ========== About Section ========== */
.about-image {
  position: relative;
}

.image-frame {
  position: relative;
  z-index: 1;
}

.image-frame::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100%;
  height: 100%;
  background: var(--gradient);
  border-radius: 28px;
  opacity: 0.2;
  z-index: -1;
  transition: all 0.4s ease;
}

.about-image:hover .image-frame::before {
  top: -25px;
  right: -25px;
  opacity: 0.3;
}

.image-placeholder {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--dark-lighter), var(--dark-light));
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10rem;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-card);
  transition: all 0.4s ease;
}

/* ========== Interactive 3D Programmer Logo ========== */
.logo-3d-container {
  perspective: 1000px;
  cursor: pointer;
}

.logo-3d-scene {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
}

/* Ambient glow */
.logo-3d-glow {
  position: absolute;
  width: 50%;
  height: 50%;
  top: 30%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(40px);
  animation: glowPulse 4s ease-in-out infinite;
  z-index: 0;
}

@keyframes glowPulse {

  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }

  50% {
    opacity: 0.8;
    transform: scale(1.15);
  }
}

/* 3D Figure Container */
.logo-3d-figure {
  position: relative;
  width: 240px;
  height: 280px;
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out;
  z-index: 1;
}

/* Head - positioned behind and above laptop */
.figure-head {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%) translateZ(10px);
  width: 70px;
  height: 70px;
  transform-style: preserve-3d;
}

.head-shape {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #818cf8 0%, #6366f1 50%, #4f46e5 100%);
  border-radius: 50%;
  box-shadow:
    inset -10px -10px 25px rgba(0, 0, 0, 0.35),
    inset 6px 6px 18px rgba(255, 255, 255, 0.1),
    0 15px 40px rgba(99, 102, 241, 0.4);
}

.head-highlight {
  position: absolute;
  top: 10px;
  left: 15px;
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  filter: blur(5px);
}

/* Body/Torso - behind the laptop */
.figure-body {
  position: absolute;
  top: 75px;
  left: 50%;
  transform: translateX(-50%) translateZ(5px);
  width: 110px;
  height: 90px;
  transform-style: preserve-3d;
}

.body-shape {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #4f46e5 0%, #3730a3 100%);
  border-radius: 55px 55px 30px 30px;
  box-shadow:
    inset -6px -6px 18px rgba(0, 0, 0, 0.35),
    inset 4px 4px 12px rgba(255, 255, 255, 0.05),
    0 10px 30px rgba(79, 70, 229, 0.3);
}

.shoulder-left,
.shoulder-right {
  position: absolute;
  top: 8px;
  width: 35px;
  height: 50px;
  background: linear-gradient(180deg, #4f46e5 0%, #3730a3 100%);
  border-radius: 50%;
  box-shadow: inset -4px -4px 10px rgba(0, 0, 0, 0.25);
}

.shoulder-left {
  left: -18px;
  transform: rotate(-20deg);
}

.shoulder-right {
  right: -18px;
  transform: rotate(20deg);
}

/* Arms - reaching toward the laptop keyboard */
.figure-arms {
  position: absolute;
  top: 130px;
  left: 50%;
  transform: translateX(-50%) translateZ(25px);
  width: 180px;
  height: 40px;
}

.arm-left,
.arm-right {
  position: absolute;
  top: 0;
  width: 65px;
  height: 22px;
  background: linear-gradient(180deg, #4f46e5 0%, #3730a3 100%);
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(79, 70, 229, 0.35);
}

.arm-left {
  left: 5px;
  transform: rotate(-15deg) translateY(5px);
}

.arm-right {
  right: 5px;
  transform: rotate(15deg) translateY(5px);
}

/* Laptop - in front, at desk level */
.figure-laptop {
  position: absolute;
  top: 125px;
  left: 50%;
  transform: translateX(-50%) translateZ(40px);
  width: 150px;
  transform-style: preserve-3d;
  transition: transform 0.2s ease-out;
}

.laptop-screen {
  width: 100%;
  height: 90px;
  background: linear-gradient(160deg, #1a1a2e 0%, #0f0f1a 100%);
  border-radius: 8px 8px 0 0;
  border: 3px solid #2a2a40;
  position: relative;
  overflow: hidden;
  box-shadow:
    inset 0 0 40px rgba(99, 102, 241, 0.08),
    0 -8px 30px rgba(99, 102, 241, 0.25),
    0 0 60px rgba(6, 182, 212, 0.1);
  transform: rotateX(-8deg);
  transform-origin: bottom center;
}

.screen-content {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.03) 0%, transparent 100%);
}

.code-symbol {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 2.2rem;
  font-weight: 700;
  background: linear-gradient(135deg, #818cf8 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px rgba(6, 182, 212, 0.6));
  animation: codeGlow 2s ease-in-out infinite;
}

@keyframes codeGlow {

  0%,
  100% {
    filter: drop-shadow(0 0 20px rgba(6, 182, 212, 0.5)) brightness(1);
  }

  50% {
    filter: drop-shadow(0 0 35px rgba(6, 182, 212, 0.8)) brightness(1.2);
  }
}

.screen-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center bottom, rgba(6, 182, 212, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.laptop-base {
  width: 115%;
  height: 14px;
  background: linear-gradient(180deg, #2d2d45 0%, #1e1e30 100%);
  border-radius: 0 0 6px 6px;
  margin-left: -7.5%;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  position: relative;
}

.laptop-keyboard {
  position: absolute;
  top: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 55%;
  height: 4px;
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.2), rgba(6, 182, 212, 0.3), rgba(99, 102, 241, 0.2));
  border-radius: 2px;
}

/* Desk Surface */
.figure-desk {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%) translateZ(20px) rotateX(70deg);
  width: 220px;
  height: 80px;
  background: linear-gradient(180deg, rgba(25, 25, 40, 0.9) 0%, rgba(15, 15, 25, 0.7) 100%);
  border-radius: 12px;
  box-shadow:
    0 15px 50px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Floating Particles */
.logo-3d-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--primary-light);
  border-radius: 50%;
  opacity: 0.6;
  box-shadow: 0 0 10px var(--primary);
}

.particle.p1 {
  top: 20%;
  left: 15%;
  animation: particleFloat1 5s ease-in-out infinite;
}

.particle.p2 {
  top: 60%;
  right: 10%;
  animation: particleFloat2 6s ease-in-out infinite;
  animation-delay: -2s;
}

.particle.p3 {
  bottom: 25%;
  left: 20%;
  animation: particleFloat3 4s ease-in-out infinite;
  animation-delay: -1s;
}

@keyframes particleFloat1 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.6;
  }

  50% {
    transform: translate(10px, -15px) scale(1.2);
    opacity: 1;
  }
}

@keyframes particleFloat2 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.5;
  }

  50% {
    transform: translate(-12px, -10px) scale(0.8);
    opacity: 0.8;
  }
}

@keyframes particleFloat3 {

  0%,
  100% {
    transform: translate(0, 0) scale(0.8);
    opacity: 0.4;
  }

  50% {
    transform: translate(8px, 12px) scale(1.1);
    opacity: 0.7;
  }
}

/* Hover state */
.logo-3d-container:hover .logo-3d-glow {
  opacity: 1;
  transform: scale(1.3);
}

.logo-3d-container:hover .code-symbol {
  animation: none;
  filter: drop-shadow(0 0 40px rgba(6, 182, 212, 1)) brightness(1.3);
}

.logo-3d-container:hover .laptop-screen {
  box-shadow:
    inset 0 0 50px rgba(99, 102, 241, 0.12),
    0 -10px 40px rgba(99, 102, 241, 0.35),
    0 0 80px rgba(6, 182, 212, 0.2);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

  .logo-3d-figure,
  .figure-laptop {
    transition: none;
  }

  .logo-3d-glow,
  .particle,
  .code-symbol {
    animation: none;
  }
}

/* Light Mode */
body.light-mode .head-shape {
  background: linear-gradient(145deg, #a5b4fc 0%, #818cf8 50%, #6366f1 100%);
}

body.light-mode .body-shape,
body.light-mode .shoulder-left,
body.light-mode .shoulder-right,
body.light-mode .arm-left,
body.light-mode .arm-right {
  background: linear-gradient(180deg, #6366f1 0%, #4f46e5 100%);
}

body.light-mode .laptop-screen {
  background: linear-gradient(145deg, #e2e8f0 0%, #f1f5f9 100%);
  border-color: #cbd5e1;
}

body.light-mode .code-symbol {
  background: linear-gradient(135deg, var(--primary-dark), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
}

body.light-mode .logo-3d-glow {
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
}

/* Legacy SVG Logo (kept for fallback) */
.programmer-logo {
  width: 65%;
  height: auto;
  color: var(--primary-light);
  transition: all 0.4s var(--transition-smooth);
  filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.2));
}

.about-image:hover .programmer-logo {
  color: var(--primary);
  filter: drop-shadow(0 0 30px rgba(99, 102, 241, 0.4));
  transform: scale(1.05);
}

body.light-mode .programmer-logo {
  color: var(--primary-dark);
  filter: drop-shadow(0 0 15px rgba(99, 102, 241, 0.15));
}

.about-image:hover .image-placeholder {
  transform: scale(1.02);
}

.experience-badge {
  position: absolute;
  bottom: 25px;
  left: -25px;
  background: var(--gradient);
  padding: 24px 35px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 15px 45px rgba(99, 102, 241, 0.4);
  animation: badgeFloat 3s ease-in-out infinite;
}

@keyframes badgeFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.experience-badge .number {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -1px;
}

.experience-badge .text {
  font-size: 0.95rem;
  opacity: 0.9;
  font-weight: 500;
}

/* About Content Blocks */
.about-headline .lead {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-headline .lead strong {
  color: var(--primary-light);
}

.about-summary {
  margin-bottom: 25px;
}

.about-summary p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.9;
}

.about-focus {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 30px;
}

.about-focus h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-light);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.about-focus h4 i {
  font-size: 0.9rem;
}

.focus-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.focus-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--slate-300);
}

.focus-list li i {
  width: 32px;
  height: 32px;
  background: rgba(99, 102, 241, 0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
  font-size: 0.85rem;
}

.about-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 36px 0;
}

.about-cta {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.about-cta .btn {
  padding: 14px 28px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  transition: all 0.3s var(--transition-smooth);
}

.info-item:hover {
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateX(5px);
}

.info-item i {
  width: 50px;
  height: 50px;
  background: var(--gradient);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
}

.info-item strong {
  display: block;
  font-size: 0.85rem;
  color: var(--slate-400);
  font-weight: 500;
}

.info-item span {
  font-weight: 700;
  font-size: 1rem;
}

/* ========== Stats Section ========== */
.stats-section {
  padding: 80px 0;
  background: var(--gradient);
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
}

.stat-card {
  text-align: center;
  padding: 35px;
  position: relative;
}

.stat-card::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 1px;
  height: 60%;
  background: rgba(255, 255, 255, 0.2);
}

.stat-card:first-child::after {
  display: none;
}

.stat-card i {
  font-size: 2.8rem;
  margin-bottom: 18px;
  opacity: 0.9;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.2));
}

.stat-card h3 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -2px;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.stat-card p {
  opacity: 0.9;
  margin: 0;
  font-size: 1.05rem;
  font-weight: 500;
}

/* ========== Skills Section ========== */
.skill-category {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 32px;
  height: 100%;
  transition: all 0.4s var(--transition-smooth);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.skill-category::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--transition-smooth);
}

.skill-category:hover::before {
  transform: scaleX(1);
}

.skill-category:hover {
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-8px);
  box-shadow: var(--shadow-glow);
}

.category-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.category-header i {
  width: 56px;
  height: 56px;
  background: var(--gradient);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.4rem;
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

.category-header h3 {
  font-size: 1.25rem;
  margin: 0;
  font-weight: 700;
}

.skills-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.skill-item {
  width: 100%;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.skill-info span:first-child {
  font-weight: 500;
}

.skill-info span:last-child {
  color: var(--primary-light);
  font-weight: 700;
  font-size: 0.9rem;
}

.skill-bar {
  height: 10px;
  background: var(--dark-lighter);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.skill-progress {
  height: 100%;
  background: var(--gradient);
  border-radius: 12px;
  transition: width 1.5s var(--transition-smooth);
  position: relative;
}

.skill-progress::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

.tech-icons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 70px;
  padding-top: 50px;
  border-top: 1px solid var(--glass-border);
}

.tech-icon {
  width: 75px;
  height: 75px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: var(--slate-300);
  transition: all 0.4s var(--transition-smooth);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.tech-icon:hover {
  border-color: var(--primary);
  color: var(--primary-light);
  transform: translateY(-8px) scale(1.1);
  background: rgba(99, 102, 241, 0.1);
  box-shadow: 0 15px 35px rgba(99, 102, 241, 0.2);
}


/* ========== Services Section ========== */
.service-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 36px;
  height: 100%;
  transition: all 0.4s var(--transition-smooth);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, var(--primary), transparent 30%);
  opacity: 0;
  transition: opacity 0.5s ease;
  animation: rotate 4s linear infinite paused;
}

.service-card:hover::before {
  opacity: 0.1;
  animation-play-state: running;
}

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

.service-card:hover {
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateY(-12px) scale(1.02);
  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(99, 102, 241, 0.1);
}

.service-icon {
  width: 75px;
  height: 75px;
  background: var(--gradient);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
  transition: transform 0.4s var(--transition-smooth);
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
  font-size: 1.35rem;
  margin-bottom: 14px;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.service-card>p {
  color: var(--slate-400);
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
  line-height: 1.7;
}

.service-features {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
  z-index: 1;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  color: var(--slate-300);
  font-size: 0.95rem;
  transition: transform 0.3s ease;
}

.service-card:hover .service-features li {
  transform: translateX(5px);
}

.service-features i {
  color: var(--success);
  font-size: 0.85rem;
  width: 20px;
  height: 20px;
  background: rgba(16, 185, 129, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ========== Portfolio Section ========== */
.portfolio-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 48px;
}

.filter-btn {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--slate-300);
  padding: 12px 28px;
  border-radius: 50px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.4s var(--transition-smooth);
  backdrop-filter: blur(10px);
}

.filter-btn:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
}

.filter-btn.active {
  background: var(--gradient);
  border-color: transparent;
  color: var(--white);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.portfolio-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.4s var(--transition-smooth);
  backdrop-filter: blur(10px);
}

.portfolio-card:hover {
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateY(-12px);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.portfolio-image {
  height: 220px;
  background: linear-gradient(135deg, var(--dark-lighter), var(--dark-light));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.portfolio-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient);
  opacity: 0.05;
}

.portfolio-image .emoji {
  font-size: 5.5rem;
  transition: all 0.5s var(--transition-smooth);
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

.portfolio-card:hover .emoji {
  transform: scale(1.15) rotate(5deg);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.95), rgba(139, 92, 246, 0.95));
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  opacity: 0;
  transition: all 0.4s var(--transition-smooth);
  backdrop-filter: blur(5px);
}

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

.portfolio-overlay .btn {
  width: 50px;
  height: 50px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s var(--transition-smooth);
}

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

.portfolio-card:hover .portfolio-overlay .btn:nth-child(2) {
  transition-delay: 0.1s;
}

.portfolio-content {
  padding: 28px;
}

.portfolio-category {
  display: inline-block;
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary-light);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.portfolio-content h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.portfolio-content p {
  color: var(--slate-400);
  font-size: 0.95rem;
  margin-bottom: 18px;
  line-height: 1.6;
}

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

.portfolio-tags span {
  background: var(--dark-lighter);
  color: var(--slate-300);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.portfolio-card:hover .portfolio-tags span {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-light);
}

/* ========== Contact Section ========== */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 28px;
  transition: all 0.4s var(--transition-smooth);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
  transition: left 0.5s ease;
}

.contact-card:hover::before {
  left: 100%;
}

.contact-card:hover {
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateX(8px);
  box-shadow: -10px 0 30px rgba(99, 102, 241, 0.1);
}

.contact-icon {
  width: 55px;
  height: 55px;
  background: var(--gradient);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.4rem;
  margin-bottom: 18px;
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
  transition: transform 0.3s ease;
}

.contact-card:hover .contact-icon {
  transform: scale(1.1);
}

.contact-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  font-weight: 700;
}

.contact-card p {
  color: var(--slate-400);
  margin: 0;
  font-size: 0.95rem;
}

.contact-link {
  display: inline-block;
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  margin-bottom: 6px;
  transition: color 0.3s ease;
}

.contact-link:hover {
  color: var(--primary-light);
}

.contact-link-secondary {
  color: var(--slate-400);
  font-size: 0.88rem;
  font-weight: 400;
}

.social-links-contact {
  display: flex;
  gap: 14px;
  margin-top: 24px;
}

.social-links-contact a {
  width: 50px;
  height: 50px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-300);
  font-size: 1.3rem;
  transition: all 0.4s var(--transition-smooth);
}

.social-links-contact a:hover {
  background: var(--gradient);
  border-color: transparent;
  color: var(--white);
  transform: translateY(-5px) rotate(5deg);
  box-shadow: 0 15px 30px rgba(99, 102, 241, 0.3);
}

.contact-form-wrapper {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  padding: 44px;
  backdrop-filter: blur(15px);
  box-shadow: var(--shadow-card);
}

.form-group {
  margin-bottom: 0;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  color: var(--slate-300);
  font-size: 0.95rem;
}

.form-group label i {
  color: var(--primary);
  margin-left: 10px;
}

.form-control,
.form-select {
  background: var(--dark-lighter);
  border: 2px solid transparent;
  color: var(--white);
  padding: 16px 20px;
  border-radius: 14px;
  font-family: inherit;
  transition: all 0.3s var(--transition-smooth);
}

.form-control:focus,
.form-select:focus {
  background: var(--dark-light);
  border-color: var(--primary);
  color: var(--white);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

.form-control::placeholder {
  color: var(--slate-400);
}

.form-select option {
  background: var(--dark);
}

.form-success {
  text-align: center;
  padding: 70px 20px;
}

.form-success i {
  font-size: 6rem;
  color: var(--success);
  margin-bottom: 24px;
  animation: successBounce 0.6s ease;
}

@keyframes successBounce {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.2);
  }
}

.form-success h3 {
  font-size: 1.6rem;
  margin-bottom: 12px;
  font-weight: 700;
}

.form-success p {
  color: var(--slate-400);
  margin-bottom: 28px;
  font-size: 1.05rem;
}

.form-feedback {
  margin: 4px 0 0;
  color: #fca5a5;
  font-size: 0.95rem;
  line-height: 1.6;
}


/* ========== CTA Section ========== */
.cta-section {
  padding: 120px 0;
}

.cta-content {
  background: var(--gradient);
  border-radius: 36px;
  padding: 90px 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(99, 102, 241, 0.3);
}

.cta-content::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-content::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent 60%);
  animation: ctaPulse 4s ease-in-out infinite;
}

@keyframes ctaPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.3;
  }

  50% {
    transform: scale(1.2);
    opacity: 0.5;
  }
}

.cta-content h2 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 20px;
  position: relative;
  letter-spacing: -1px;
}

.cta-content p {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 36px;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  line-height: 1.7;
}

.cta-content .btn {
  position: relative;
  padding: 16px 40px;
  font-size: 1.1rem;
  border-radius: 16px;
}

/* ========== Footer ========== */
.footer {
  background: var(--dark-light);
  padding: 90px 0 0;
  border-top: 1px solid var(--glass-border);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 2px;
  background: var(--gradient);
  border-radius: 2px;
}

.footer-brand {
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}

.footer p {
  color: var(--slate-400);
  line-height: 1.8;
}

.footer h4 {
  font-size: 1.15rem;
  margin-bottom: 24px;
  font-weight: 700;
  position: relative;
  display: inline-block;
}

.footer h4::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--gradient);
  border-radius: 2px;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 14px;
}

.footer-links a {
  color: var(--slate-400);
  text-decoration: none;
  transition: all 0.3s var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-links a::before {
  content: '\f104';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.7rem;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary-light);
  transform: translateX(5px);
}

.footer-links a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.footer-social {
  display: flex;
  gap: 14px;
  margin-top: 24px;
}

.footer-social a {
  width: 45px;
  height: 45px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-300);
  transition: all 0.4s var(--transition-smooth);
}

.footer-social a:hover {
  background: var(--gradient);
  border-color: transparent;
  color: var(--white);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

.newsletter-form {
  display: flex;
  gap: 12px;
}

.newsletter-form .form-control {
  flex: 1;
  border-radius: 12px;
}

.newsletter-form .btn {
  padding: 14px 24px;
  border-radius: 12px;
}

.footer-bottom {
  border-top: 1px solid var(--glass-border);
  padding: 28px 0;
  margin-top: 70px;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.95rem;
}

.tagline-footer {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-top: 10px !important;
  letter-spacing: 1px;
}

/* ========== Certificates Section ========== */
.certificate-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 25px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.certificate-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.certificate-card:hover::before {
  transform: scaleX(1);
}

.certificate-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
}

.certificate-icon {
  width: 70px;
  height: 70px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.8rem;
  color: var(--white);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
  transition: all 0.3s ease;
}

.certificate-card:hover .certificate-icon {
  transform: scale(1.1) rotate(5deg);
}

.certificate-content {
  flex: 1;
  margin-bottom: 15px;
}

.certificate-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--white);
}

.certificate-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.certificate-issuer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--primary-light);
  background: rgba(99, 102, 241, 0.1);
  padding: 5px 12px;
  border-radius: 20px;
}

.certificate-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.btn-cert {
  width: 45px;
  height: 45px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-preview {
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary-light);
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.btn-preview:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

.btn-download {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.btn-download:hover {
  background: #22c55e;
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(34, 197, 94, 0.4);
}

/* ========== Back to Top ========== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 55px;
  height: 55px;
  background: var(--gradient);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.3rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s var(--transition-smooth);
  z-index: 999;
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-8px) scale(1.05);
  color: var(--white);
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.5);
}

/* ========== Animations ========== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

/* Badge Dot Animation */
.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}

/* Glow Effect for Cards on Hover */
.skill-category::after,
.service-card::after,
.portfolio-card::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.1), transparent 50%);
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.skill-category:hover::after,
.service-card:hover::after,
.portfolio-card:hover::after {
  opacity: 1;
}

/* ==========================================================================
   RESPONSIVE DESIGN - Comprehensive Mobile-First Overhaul
   Breakpoints: 991px (tablet), 768px (small tablet), 480px (mobile)
   
   Key fixes:
   - All tap targets ≥ 44px
   - Typography scaling with clamp()
   - Images/media max-width:100% + height:auto
   - Nav toggle + theme toggle visible on mobile
   - Proper spacing at every breakpoint
   - No horizontal scroll from fixed widths
   ========================================================================== */

/* --- Global responsive safety --- */
img,
video,
svg,
iframe,
embed,
object {
  max-width: 100%;
  height: auto;
}

/* --- Nav elements visibility on mobile --- */
.nav-toggle-wrapper {
  display: block;
}

.nav-cta-btn {
  display: inline-block;
}

/* ===== TABLET - max-width: 991px ===== */
@media (max-width: 991px) {
  .section {
    padding: 70px 0;
  }

  .section-title {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
  }

  .section-subtitle {
    font-size: 1rem;
  }

  /* --- Navbar --- */
  .navbar-collapse {
    text-align: center;
  }

  .nav-toggle-wrapper {
    margin: 16px auto 8px;
    display: flex;
    justify-content: center;
  }

  .nav-cta-btn {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 10px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* --- Hero --- */
  .hero-section .row {
    flex-direction: column;
    row-gap: 36px;
  }

  .hero-visual {
    margin-bottom: 40px;
  }

  .code-editor-glass {
    max-width: 380px;
  }

  .floating-element {
    display: none;
  }

  .hero-title {
    font-size: clamp(2rem, 6vw, 3rem);
    text-align: center;
    align-items: center;
  }

  .hero-eyebrow {
    text-align: center;
    justify-content: center;
  }

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

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

  .hero-tech-stack {
    justify-content: center;
    flex-wrap: wrap;
  }

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

  .about-image {
    margin-bottom: 40px;
  }

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

  /* --- Stats --- */
  .stat-card h3 {
    font-size: clamp(2rem, 6vw, 3rem);
  }

  .stat-card p {
    font-size: 0.9rem;
  }

  .stat-card i {
    font-size: 2.2rem;
  }

  /* --- Stats divider hide on wrap --- */
  .stat-card::after {
    display: none;
  }

  /* --- Legacy floating icons --- */
  .floating-icons {
    display: none;
  }

  /* --- Hero legacy --- */
  .hero-avatar {
    width: 200px;
    height: 200px;
  }

  .hero-subtitle {
    font-size: 1rem;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-badge {
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: center;
  }

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

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

/* ===== SMALL TABLET - max-width: 768px ===== */
@media (max-width: 768px) {
  .section {
    padding: 50px 0;
  }

  .section-title {
    font-size: clamp(1.4rem, 5vw, 1.8rem);
  }

  .section-subtitle {
    font-size: 0.95rem;
  }

  /* --- Hero --- */
  .hero-section {
    min-height: auto;
    padding: 100px 0 60px;
  }

  .hero-title {
    font-size: clamp(1.6rem, 6vw, 2rem);
  }

  /* --- Image placeholder --- */
  .image-placeholder {
    font-size: 5rem;
  }

  .experience-badge {
    left: 50%;
    transform: translateX(-50%);
    bottom: -20px;
    padding: 14px 24px;
  }

  .experience-badge .number {
    font-size: 1.6rem;
  }

  /* --- Skills --- */
  .skill-category {
    padding: 24px;
  }

  .category-header i {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
  }

  .category-header h3 {
    font-size: 1.1rem;
  }

  /* --- Services --- */
  .service-card {
    padding: 25px;
  }

  .service-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  /* --- Portfolio --- */
  .portfolio-image {
    height: 180px;
  }

  .portfolio-content {
    padding: 20px;
  }

  .portfolio-overlay {
    opacity: 1;
    justify-content: flex-end;
    align-items: flex-end;
    padding: 18px;
    background: linear-gradient(180deg, rgba(10, 10, 15, 0) 0%, rgba(10, 10, 15, 0.82) 100%);
  }

  .portfolio-overlay .btn {
    transform: none;
    opacity: 1;
  }

  .portfolio-filter {
    gap: 8px;
    margin-bottom: 32px;
  }

  .filter-btn {
    padding: 10px 20px;
    font-size: 0.85rem;
  }

  /* --- CTA --- */
  .cta-section {
    padding: 70px 0;
  }

  .cta-content {
    padding: 50px 24px;
    border-radius: 24px;
  }

  .cta-content h2 {
    font-size: clamp(1.4rem, 5vw, 2rem);
  }

  .cta-content p {
    font-size: 1rem;
  }

  /* --- Contact --- */
  .contact-form-wrapper {
    padding: 24px;
    border-radius: 20px;
  }

  .contact-card {
    padding: 20px;
  }

  .contact-icon {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
  }

  /* --- Footer --- */
  .footer {
    padding: 60px 0 0;
  }

  .footer-brand {
    font-size: 1.5rem;
  }

  .footer-bottom {
    margin-top: 40px;
    padding: 20px 0;
  }

  /* --- Form elements - ensure tap target size --- */
  .form-control,
  .form-select {
    font-size: 1rem;
    padding: 14px 18px;
    min-height: 48px;
  }

  .btn {
    min-height: 44px;
    padding: 12px 24px;
    font-size: 0.95rem;
  }

  /* --- Navbar --- */
  .navbar-brand {
    font-size: 1.3rem;
  }

  .navbar-nav .nav-link {
    padding: 12px 16px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* --- Hero legacy --- */
  .hero-avatar {
    width: 180px;
    height: 180px;
    margin: 0 auto;
  }

  .hero-image {
    margin-top: 40px;
  }

  /* --- Tech icons --- */
  .tech-icons {
    gap: 12px;
    margin-top: 40px;
    padding-top: 30px;
  }

  .tech-icon {
    width: 56px;
    height: 56px;
    font-size: 1.6rem;
    border-radius: 14px;
  }

  /* --- Certificates --- */
  .certificate-card {
    padding: 20px;
  }

  .certificate-icon {
    width: 56px;
    height: 56px;
    font-size: 1.4rem;
  }

  /* --- Ensure tap targets --- */
  .social-links-contact a,
  .footer-social a,
  .hero-social a {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }

  .btn-cert {
    width: 44px;
    height: 44px;
  }

  .back-to-top {
    width: 48px;
    height: 48px;
    bottom: 20px;
    left: 20px;
    border-radius: 14px;
  }

  /* --- Stats section --- */
  .stats-section {
    padding: 50px 0;
  }

  .stat-card {
    padding: 20px 10px;
  }

  .stat-card h3 {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  .stat-card p {
    font-size: 0.85rem;
  }

  .stat-card i {
    font-size: 2rem;
    margin-bottom: 12px;
  }
}

/* ===== MOBILE - max-width: 480px ===== */
@media (max-width: 480px) {
  html {
    font-size: 15px;
  }

  .section {
    padding: 40px 0;
  }

  .section-title {
    font-size: clamp(1.2rem, 5.5vw, 1.5rem);
  }

  .section-badge {
    font-size: 0.8rem;
    padding: 8px 16px;
  }

  /* --- Hero --- */
  .hero-section {
    padding-top: 80px;
    padding-bottom: 40px;
    min-height: auto;
  }

  .hero-title {
    font-size: clamp(1.5rem, 7vw, 2rem) !important;
    line-height: 1.15;
    text-align: center;
    margin-bottom: 18px;
    min-height: 2.2em;
    align-items: center;
    gap: 8px;
  }

  .hero-eyebrow {
    font-size: 0.8rem;
    text-align: center;
  }

  .hero-description {
    font-size: 0.95rem;
    margin-bottom: 24px;
    text-align: center;
    padding-left: 0;
    padding-right: 0;
  }

  .hero-cta {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
    margin-bottom: 24px;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100%;
    padding: 14px 0;
    font-size: 1rem;
    justify-content: center;
    min-height: 48px;
  }

  .hero-tech-stack {
    flex-direction: column;
    gap: 8px;
    align-items: center;
    margin-top: 10px;
  }

  .tech-icons {
    gap: 6px;
  }

  /* --- Code editor on mobile --- */
  .code-editor-glass {
    max-width: 100%;
    min-width: 0;
    margin: 0 auto 24px auto;
    border-radius: 12px;
    padding: 0;
  }

  .editor-code {
    font-size: 0.7rem;
    padding: 10px;
  }

  /* --- 3D Logo on mobile --- */
  .logo-3d-figure {
    width: 170px;
    height: 200px;
  }

  .figure-desk {
    width: 140px;
    height: 40px;
  }

  /* --- About section --- */
  .about-info {
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 24px 0;
  }

  .info-item {
    padding: 14px;
  }

  .info-item i {
    width: 44px;
    height: 44px;
    font-size: 1rem;
    border-radius: 12px;
  }

  .about-focus {
    padding: 16px 18px;
    margin-bottom: 20px;
  }

  .about-cta {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }

  .about-cta .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    min-height: 48px;
  }

  /* --- Stats --- */
  .stats-section {
    padding: 40px 0;
  }

  .stat-card {
    padding: 18px 8px;
  }

  .stat-card h3 {
    font-size: 1.8rem;
    letter-spacing: -1px;
  }

  .stat-card p {
    font-size: 0.8rem;
  }

  .stat-card i {
    font-size: 1.6rem;
    margin-bottom: 10px;
  }

  /* --- Services --- */
  .service-card {
    padding: 22px;
  }

  .service-icon {
    width: 55px;
    height: 55px;
    font-size: 1.4rem;
    margin-bottom: 20px;
  }

  .service-card h3 {
    font-size: 1.15rem;
  }

  .service-features li {
    font-size: 0.88rem;
    padding: 8px 0;
  }

  /* --- Portfolio --- */
  .portfolio-image {
    height: 160px;
  }

  .portfolio-content {
    padding: 16px;
  }

  .portfolio-content h3 {
    font-size: 1.1rem;
  }

  .portfolio-content p {
    font-size: 0.88rem;
  }

  .filter-btn {
    padding: 8px 16px;
    font-size: 0.8rem;
  }

  /* --- Certificates --- */
  .certificate-card {
    padding: 18px;
  }

  .certificate-icon {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    margin-bottom: 14px;
  }

  .certificate-content h3 {
    font-size: 1rem;
  }

  .btn-cert {
    width: 44px;
    height: 44px;
  }

  /* --- Contact --- */
  .contact-form-wrapper {
    padding: 18px;
    border-radius: 16px;
  }

  .contact-card {
    padding: 18px;
    border-radius: 16px;
  }

  .contact-icon {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
    margin-bottom: 14px;
    border-radius: 12px;
  }

  .form-control,
  .form-select {
    font-size: 1rem;
    padding: 12px 16px;
    min-height: 48px;
  }

  /* --- CTA --- */
  .cta-section {
    padding: 50px 0;
  }

  .cta-content {
    padding: 40px 20px;
    border-radius: 20px;
  }

  .cta-content h2 {
    font-size: clamp(1.2rem, 5vw, 1.6rem);
  }

  .cta-content p {
    font-size: 0.9rem;
  }

  .cta-content .btn {
    padding: 14px 28px;
    font-size: 1rem;
    min-height: 48px;
  }

  /* --- Footer --- */
  .footer {
    padding: 40px 0 0;
  }

  .footer-brand {
    font-size: 1.3rem;
  }

  .footer-bottom {
    margin-top: 30px;
    padding: 18px 0;
  }

  .footer h4 {
    font-size: 1rem;
    margin-bottom: 16px;
  }

  /* --- Tap targets: NEVER below 44px --- */
  .social-links-contact a,
  .footer-social a,
  .hero-social a {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }

  .back-to-top {
    width: 44px;
    height: 44px;
    bottom: 16px;
    left: 16px;
    border-radius: 12px;
    font-size: 1.1rem;
  }

  /* --- Buttons --- */
  .btn-primary,
  .btn-outline-light {
    padding: 12px 20px;
    font-size: 0.9rem;
    min-height: 44px;
  }

  /* --- Navbar --- */
  .navbar {
    padding: 12px 0;
  }

  .navbar-brand {
    font-size: 1.2rem;
  }

  .navbar-toggler {
    min-width: 44px;
    min-height: 44px;
  }

  /* --- Skills tech icons --- */
  .tech-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  /* --- Toggle switch --- */
  .toggle {
    width: 58px;
    height: 30px;
  }

  .toggle-item {
    width: 58px;
    height: 30px;
  }

  .toggle-item::after {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }

  .toggle input:checked+.toggle-item::after {
    transform: translateX(26px);
  }

  /* --- Experience badge --- */
  .experience-badge {
    padding: 16px 24px;
    border-radius: 14px;
  }

  .experience-badge .number {
    font-size: 1.5rem;
  }

  .experience-badge .text {
    font-size: 0.8rem;
  }
}

/* ========== Scrollbar ========== */
::-webkit-scrollbar {
  width: 10px;
}

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

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

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* ========== Toggle Switch (Dark/Light Mode) ========== */
.toggle {
  position: relative;
  width: 70px;
  height: 35px;
}

.toggle input {
  display: none;
}

.toggle-item {
  width: 70px;
  height: 35px;
  background: linear-gradient(135deg, #1e293b, #334155);
  border-radius: 40px;
  position: relative;
  cursor: pointer;
  box-shadow:
    inset 0 2px 6px rgba(0, 0, 0, .3),
    0 4px 10px rgba(0, 0, 0, .2);
  display: block;
  transition: background 0.35s ease;
}

/* الدائرة */
.toggle-item::after {
  content: "🌙";
  width: 28px;
  height: 28px;
  background: #0f172a;
  border-radius: 50%;
  position: absolute;
  top: 3.5px;
  left: 4px;
  transition: 0.35s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, .3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

/* ON state - Light Mode */
.toggle input:checked+.toggle-item {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.toggle input:checked+.toggle-item::after {
  transform: translateX(34px);
  content: "☀️";
  background: #fef3c7;
}

/* ========== Bag Icon ========== */
.bag {
  width: 60px;
  height: 50px;
  background: linear-gradient(135deg, #7a2cff, #ff5ccf);
  border-radius: 10px;
  position: relative;
  box-shadow:
    inset 0 4px 8px rgba(255, 255, 255, .2),
    inset 0 -4px 8px rgba(0, 0, 0, .25),
    0 10px 20px rgba(0, 0, 0, .35);
}

/* يد الشنطة */
.bag-handle {
  width: 35px;
  height: 20px;
  border: 5px solid #eee;
  border-bottom: none;
  border-radius: 20px 20px 0 0;
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow:
    inset 0 3px 4px rgba(255, 255, 255, .25),
    0 4px 6px rgba(0, 0, 0, .3);
}

/* الشنطة كعنصر عائم */
.floating-icons .bag.float-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
