/* ==========================================================================
   MAEN ZAZA PORTFOLIO - CUSTOM STYLES + DARK/LIGHT THEME
   ========================================================================== */

/* ==========================================================================
   1. THEME VARIABLES
   ========================================================================== */
:root {
  /* Dark mode â€” donkerblauw met heldere blauwe accenten */
  --bg-primary: #0b1120;
  --bg-secondary: #0f1629;
  --bg-card: #131b33;
  --bg-card-hover: #1a2444;
  --bg-input: #111a30;
  --bg-navbar: rgba(11, 17, 32, 0.7);
  --bg-navbar-scrolled: rgba(11, 17, 32, 0.94);
  --bg-loader: #0b1120;

  --text-primary: #c8d6e5;
  --text-secondary: #8899aa;
  --text-heading: #e8f0fa;
  --text-muted: #5a6a7a;

  --border-color: #1c2a4a;
  --border-hover: #2a3d66;

  --accent: #4a9eff;
  --accent-light: #70b5ff;
  --accent-glow: rgba(74, 158, 255, 0.15);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.55);
  --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-card-hover: 0 12px 40px rgba(74, 158, 255, 0.1);

  --dot-grid: rgba(255, 255, 255, 0.02);
  --grid-line: rgba(74, 158, 255, 0.04);

  --gradient-card: linear-gradient(135deg, rgba(74, 158, 255, 0.04), rgba(100, 120, 255, 0.03));
  --gradient-card-hover: linear-gradient(135deg, rgba(74, 158, 255, 0.08), rgba(100, 120, 255, 0.05));

  --tag-bg: rgba(74, 158, 255, 0.12);
  --tag-border: rgba(74, 158, 255, 0.22);
  --tag-text: #70b5ff;

  --badge-bg: rgba(74, 158, 255, 0.08);
  --badge-border: rgba(74, 158, 255, 0.2);
  --badge-text: #70b5ff;
}

body.light {
  /* Light mode â€” crÃ¨me/beige met warme gouden accenten */
  --bg-primary: #faf7f2;
  --bg-secondary: #f2ebe0;
  --bg-card: #fffdf8;
  --bg-card-hover: #f5eed8;
  --bg-input: #f2ebe0;
  --bg-navbar: rgba(250, 247, 242, 0.75);
  --bg-navbar-scrolled: rgba(250, 247, 242, 0.95);
  --bg-loader: #faf7f2;

  --text-primary: #4a4035;
  --text-secondary: #7a6f60;
  --text-heading: #2c1e10;
  --text-muted: #a09484;

  --border-color: #e6dcc8;
  --border-hover: #d4c5a8;

  --accent: #b8860b;
  --accent-light: #d4a853;
  --accent-glow: rgba(184, 134, 11, 0.12);

  --shadow-sm: 0 1px 3px rgba(80, 60, 20, 0.06);
  --shadow-md: 0 4px 16px rgba(80, 60, 20, 0.07);
  --shadow-lg: 0 12px 40px rgba(80, 60, 20, 0.1);
  --shadow-card: 0 1px 3px rgba(80, 60, 20, 0.04), 0 4px 16px rgba(80, 60, 20, 0.04);
  --shadow-card-hover: 0 8px 30px rgba(184, 134, 11, 0.1), 0 4px 12px rgba(80, 60, 20, 0.05);

  --dot-grid: rgba(80, 60, 20, 0.03);
  --grid-line: rgba(184, 134, 11, 0.06);

  --gradient-card: linear-gradient(135deg, rgba(184, 134, 11, 0.03), rgba(160, 110, 40, 0.02));
  --gradient-card-hover: linear-gradient(135deg, rgba(184, 134, 11, 0.06), rgba(160, 110, 40, 0.04));

  --tag-bg: rgba(184, 134, 11, 0.1);
  --tag-border: rgba(184, 134, 11, 0.2);
  --tag-text: #8b6914;

  --badge-bg: rgba(184, 134, 11, 0.08);
  --badge-border: rgba(184, 134, 11, 0.18);
  --badge-text: #8b6914;
}

/* ==========================================================================
   2. PAGE LOADER
   ========================================================================== */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-loader);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

/* ==========================================================================
   3. LANGUAGE TRANSLATION SYSTEM
   ========================================================================== */
[data-lang] { display: none; }

body.nl [data-lang="nl"],
body.en [data-lang="en"],
body.ar [data-lang="ar"] { display: block; }

span[data-lang],
a[data-lang] { display: none; }

body.nl span[data-lang="nl"],
body.en span[data-lang="en"],
body.ar span[data-lang="ar"],
body.nl a[data-lang="nl"],
body.en a[data-lang="en"],
body.ar a[data-lang="ar"] { display: inline-block; }

/* ==========================================================================
   4. RTL SUPPORT (Arabic)
   ========================================================================== */
body.ar { direction: rtl; text-align: right; }
body.ar .navbar .logo { margin-right: 0; margin-left: auto; }
body.ar .nav-links { margin-left: 0; margin-right: auto; }
body.ar .hero-buttons { flex-direction: row-reverse; }
body.ar .section-header { text-align: right; }
body.ar .section-header .section-line { margin-left: auto; margin-right: 0; }
body.ar .lang-dropdown-menu { right: auto; left: 0; }
body.ar .lang-btn { text-align: right; }
body.ar .service-link-indicator { transform: translateX(10px); }
body.ar .service-card:hover .service-link-indicator { transform: translateX(0); }
body.ar .back-to-top { right: auto; left: 2rem; }
body.ar .feature-card:hover { transform: translateX(-6px); }

/* ==========================================================================
   5. BASE THEME STYLES
   ========================================================================== */
html {
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transition: background-color 0.5s ease, color 0.5s ease;
}

/* ---- Dot grid ---- */
.dot-grid-bg {
  background-image: radial-gradient(var(--dot-grid) 1px, transparent 1px);
  background-size: 30px 30px;
}

/* ---- Themed utility classes ---- */
.t-heading { color: var(--text-heading); transition: color 0.5s ease; }
.t-text { color: var(--text-primary); transition: color 0.5s ease; }
.t-muted { color: var(--text-secondary); transition: color 0.5s ease; }
.t-dim { color: var(--text-muted); transition: color 0.5s ease; }

.t-bg { background-color: var(--bg-primary); transition: background-color 0.5s ease; }
.t-bg-alt { background-color: var(--bg-secondary); transition: background-color 0.5s ease; }

.t-bg-card {
  background-color: var(--bg-card);
  border-color: var(--border-color);
  transition: background-color 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}

.t-bg-input {
  background-color: var(--bg-input);
  border-color: var(--border-color);
  color: var(--text-heading);
  transition: background-color 0.5s ease, border-color 0.5s ease, color 0.5s ease;
}

.t-border { border-color: var(--border-color); transition: border-color 0.5s ease; }

/* ==========================================================================
   6. HERO EFFECTS
   ========================================================================== */
.hero-title {
  background: linear-gradient(135deg, var(--text-heading) 0%, #70b5ff 35%, #4a9eff 55%, var(--text-heading) 100%);
  background-size: 300% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 1 !important;
  animation: heroEntrance 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards, gradientShift 8s ease-in-out infinite;
}

body.light .hero-title {
  background: linear-gradient(135deg, #1a0f05 0%, #3d2e08 35%, #4a3a0c 55%, #1a0f05 100%);
  background-size: 300% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

.hero-grid-bg {
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 100%);
}

body.light .hero-glow-1 {
  background: radial-gradient(circle, rgba(184,134,11,0.07) 0%, rgba(160,110,40,0.03) 30%, transparent 65%) !important;
}

body.light .hero-glow-2 {
  background: radial-gradient(circle, rgba(160,110,40,0.04) 0%, transparent 60%) !important;
}

/* ---- Hero availability badge ---- */
.hero-badge {
  background: var(--badge-bg);
  border-color: var(--badge-border);
  color: var(--badge-text);
}

/* ==========================================================================
   7. NAVBAR
   ========================================================================== */
.navbar {
  background: var(--bg-navbar);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  transition: all 0.4s ease;
}

.navbar.scrolled {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-navbar-scrolled) !important;
}

.nav-link.active {
  color: var(--text-heading) !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  transition: width 0.3s ease;
  border-radius: 2px;
}

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

/* ---- Language dropdown ---- */
.lang-dropdown.open .chevron-icon { transform: rotate(180deg); }

.lang-dropdown.open .lang-dropdown-menu {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}

.lang-dropdown-menu .lang-btn.active {
  color: #fff;
  background: var(--accent);
}

/* ---- Navbar shadows ---- */
body.light .navbar { box-shadow: 0 1px 3px rgba(80, 60, 20, 0.04); }
body.light .navbar.scrolled { box-shadow: 0 4px 20px rgba(80, 60, 20, 0.06); }

/* ==========================================================================
   8. THEME TOGGLE
   ========================================================================== */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

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

body.light .theme-toggle {
  background: #f3ece1;
  box-shadow: 0 1px 4px rgba(80, 60, 20, 0.06);
}

body.light .theme-toggle:hover {
  background: rgba(184, 134, 11, 0.08);
  box-shadow: 0 2px 8px rgba(184, 134, 11, 0.12);
}

.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
body.light .theme-toggle .icon-sun { display: block; color: #f59e0b; }
body.light .theme-toggle .icon-moon { display: none; }

/* ==========================================================================
   9. CARDS - Skill, Service, Project (Global Styling)
   ========================================================================== */

/* -- Skill Cards -- */
.skill-card {
  box-shadow: var(--shadow-card);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.skill-card:hover {
  box-shadow: var(--shadow-card-hover);
}

body.light .skill-card {
  background: #fffcf7;
  border-color: #e6dcc8;
  box-shadow: 0 1px 4px rgba(80, 60, 20, 0.04);
}

body.light .skill-card:hover {
  border-color: #d4a853;
  box-shadow: 0 8px 24px rgba(184, 134, 11, 0.1);
  background: linear-gradient(135deg, rgba(184,134,11,0.03), rgba(160,110,40,0.02));
}

/* -- Service Cards -- */
.service-card {
  box-shadow: var(--shadow-card);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover {
  box-shadow: var(--shadow-card-hover);
}

body.light .service-card {
  background: #fffcf7;
  border-color: #e6dcc8;
  box-shadow: 0 1px 4px rgba(80, 60, 20, 0.04);
}

body.light .service-card:hover {
  border-color: #d4a853;
  box-shadow: 0 8px 28px rgba(184, 134, 11, 0.1);
  background: linear-gradient(135deg, rgba(184,134,11,0.03), rgba(160,110,40,0.02));
}

/* -- Project Cards -- */
.project-card {
  box-shadow: var(--shadow-card);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body.light .project-card {
  background: #fffcf7;
  border-color: #e6dcc8;
  box-shadow: 0 1px 6px rgba(80, 60, 20, 0.05);
}

body.light .project-card:hover {
  border-color: #d4a853;
  box-shadow: 0 12px 32px rgba(184, 134, 11, 0.1);
}

/* -- Project image gradient -- */
body.light .project-img-gradient {
  background: linear-gradient(to top, #fffcf7, transparent) !important;
}

/* -- Project tags -- */
.project-tag {
  background: var(--tag-bg);
  border: 1px solid var(--tag-border);
  color: var(--tag-text);
}

/* -- Stat card -- */
.stat-card {
  box-shadow: var(--shadow-card);
}

body.light .stat-card {
  background: #fffcf7 !important;
  box-shadow: 0 2px 10px rgba(80, 60, 20, 0.06);
}

/* ==========================================================================
   10. CONTACT SECTION - Themed
   ========================================================================== */

/* -- Social link buttons -- */
.social-link-card {
  box-shadow: var(--shadow-sm);
  transition: all 0.35s ease;
}

body.light .social-link-card {
  background: #fffcf7;
  box-shadow: 0 1px 4px rgba(80, 60, 20, 0.05);
}

body.light .social-link-card:hover {
  box-shadow: 0 6px 20px rgba(80, 60, 20, 0.08);
}

/* -- Contact form card -- */
body.light .contact-form-card {
  background: #fffcf7;
  box-shadow: 0 2px 12px rgba(80, 60, 20, 0.05);
}

/* -- Form inputs -- */
body.light input,
body.light textarea {
  background-color: #f3ece1 !important;
  border-color: #e6dcc8 !important;
  color: #2c1e10 !important;
}

body.light input:focus,
body.light textarea:focus {
  border-color: #b8860b !important;
  box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.12) !important;
  background-color: #fffcf7 !important;
}

body.light input::placeholder,
body.light textarea::placeholder {
  color: #a09484;
}

/* Dark mode form placeholder */
input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}

/* ==========================================================================
   11. ABOUT SECTION - Image
   ========================================================================== */
body.light .about-image-border {
  border-color: #e6dcc8 !important;
  background: linear-gradient(135deg, rgba(184,134,11,0.04), rgba(160,110,40,0.03)) !important;
}

body.light .about-img {
  box-shadow: 0 12px 40px rgba(80, 60, 20, 0.12) !important;
}

/* ==========================================================================
   12. BUTTONS - Enhanced for both modes
   ========================================================================== */
.btn-primary-gradient {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary-gradient:hover {
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.4);
  filter: brightness(1.08);
}

body.light .btn-primary-gradient {
  box-shadow: 0 4px 15px rgba(184, 134, 11, 0.25);
}

body.light .btn-primary-gradient:hover {
  box-shadow: 0 8px 25px rgba(184, 134, 11, 0.35);
}

/* -- Outline buttons in light mode -- */
body.light .btn-outline {
  border-color: #d4c5a8 !important;
  color: #4a4035 !important;
}

body.light .btn-outline:hover {
  border-color: #b8860b !important;
  color: #8b6914 !important;
  background: rgba(184, 134, 11, 0.06) !important;
  box-shadow: 0 4px 12px rgba(184, 134, 11, 0.1);
}

/* -- WhatsApp button light mode -- */
body.light .btn-whatsapp {
  border-color: #d4c5a8 !important;
  color: #4a4035 !important;
}

body.light .btn-whatsapp:hover {
  border-color: #22c55e !important;
  color: #16a34a !important;
  background: rgba(34, 197, 94, 0.06) !important;
}

/* ==========================================================================
   13. SECTION ALTERNATING BG - Light mode
   ========================================================================== */
body.light .t-bg-alt {
  background-color: #f3ece1;
}

body.light .t-bg {
  background-color: #faf6f0;
}

/* ==========================================================================
   14. FOOTER
   ========================================================================== */
body.light footer {
  background-color: #faf6f0;
  border-color: #e6dcc8;
}

/* ==========================================================================
   15. BACK TO TOP
   ========================================================================== */
.back-to-top {
  box-shadow: var(--shadow-md);
}

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

body.light .back-to-top {
  background: #fffcf7;
  box-shadow: 0 2px 10px rgba(80, 60, 20, 0.08);
}

body.light .back-to-top:hover {
  background: #b8860b;
  color: #fff;
  box-shadow: 0 6px 20px rgba(184, 134, 11, 0.25);
}

/* ==========================================================================
   16. SERVICE DETAIL PAGES
   ========================================================================== */
.service-page-hero {
  min-height: auto;
  padding-top: 8rem;
  padding-bottom: 4rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card:hover {
  border-color: rgba(59, 130, 246, 0.3);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

body.light .feature-card {
  background: #fffcf7;
  box-shadow: 0 1px 4px rgba(80, 60, 20, 0.04);
}

body.light .feature-card:hover {
  border-color: #d4a853;
  background: linear-gradient(135deg, rgba(184,134,11,0.03), rgba(160,110,40,0.02));
  box-shadow: 0 8px 24px rgba(184, 134, 11, 0.08);
}

.cta-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
  transition: background-color 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}

body.light .cta-section {
  background: linear-gradient(135deg, rgba(184,134,11,0.04), rgba(160,110,40,0.03));
  border-color: #e6dcc8;
  box-shadow: 0 2px 12px rgba(80, 60, 20, 0.04);
}

/* ==========================================================================
   17. SCROLL REVEAL ANIMATIONS
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal.active .skill-card,
.reveal.active .service-card,
.reveal.active .project-card,
.reveal.active .feature-card {
  animation: fadeInUp 0.7s ease forwards;
  opacity: 0;
}

.reveal.active .skill-card:nth-child(1),
.reveal.active .service-card:nth-child(1),
.reveal.active .project-card:nth-child(1),
.reveal.active .feature-card:nth-child(1) { animation-delay: 0.05s; }

.reveal.active .skill-card:nth-child(2),
.reveal.active .service-card:nth-child(2),
.reveal.active .project-card:nth-child(2),
.reveal.active .feature-card:nth-child(2) { animation-delay: 0.12s; }

.reveal.active .skill-card:nth-child(3),
.reveal.active .service-card:nth-child(3),
.reveal.active .project-card:nth-child(3),
.reveal.active .feature-card:nth-child(3) { animation-delay: 0.19s; }

.reveal.active .skill-card:nth-child(4),
.reveal.active .service-card:nth-child(4) { animation-delay: 0.26s; }

.reveal.active .skill-card:nth-child(5) { animation-delay: 0.33s; }
.reveal.active .skill-card:nth-child(6) { animation-delay: 0.4s; }
.reveal.active .skill-card:nth-child(7) { animation-delay: 0.47s; }

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

/* ==========================================================================
   18. HAMBURGER MENU
   ========================================================================== */
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* ==========================================================================
   19. FOCUS STYLES
   ========================================================================== */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ==========================================================================
   20. SELECTION COLOR
   ========================================================================== */
::selection {
  background: rgba(74, 158, 255, 0.25);
  color: var(--text-heading);
}

body.light ::selection {
  background: rgba(184, 134, 11, 0.18);
  color: #2c1e10;
}

/* ==========================================================================
   21. SCROLLBAR STYLING
   ========================================================================== */
::-webkit-scrollbar {
  width: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--border-hover);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

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

body.light ::-webkit-scrollbar-thumb {
  background: #d4c5a8;
}

body.light ::-webkit-scrollbar-thumb:hover {
  background: #b8860b;
}

/* ==========================================================================
   22. RESPONSIVE
   ========================================================================== */

/* ---- Tablet ---- */
@media screen and (max-width: 1024px) {
  .hero-title { font-size: 4rem !important; }

  .section-header h2,
  h2.text-5xl {
    font-size: 2.8rem !important;
  }
}

/* ---- Mobile ---- */
@media screen and (max-width: 768px) {
  .menu-toggle {
    display: flex !important;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-card);
    flex-direction: column;
    padding: 2rem 0 6rem 0;
    gap: 1.8rem;
    border-bottom: 1px solid var(--border-color);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: clip-path 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }

  .nav-links.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }

  body.ar .nav-links { right: 0; left: auto; }
  .desktop-lang { display: none !important; }
  .mobile-lang { display: flex !important; }
  .hero-title { font-size: 3rem !important; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; }
  .nav-link::after { display: none; }
  section { padding-top: 5rem; padding-bottom: 5rem; }
  .service-page-hero { padding-top: 7rem; }

  /* Stat card responsive */
  .stat-card {
    flex-direction: row !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem !important;
    padding: 1.5rem !important;
    width: 100% !important;
  }

  .stat-card .w-px {
    display: none;
  }

  /* Section headings */
  .section-header h2,
  h2.text-5xl {
    font-size: 2.2rem !important;
  }

  .section-header {
    margin-bottom: 2.5rem !important;
  }

  /* About section grid */
  .about-image-wrapper {
    max-width: 250px !important;
  }

  /* Contact section */
  h3.text-3xl {
    font-size: 1.6rem !important;
  }

  /* Toast notification */
  .toast-notification {
    left: 1rem;
    right: 1rem;
    min-width: auto;
    bottom: 1rem;
  }

  /* Scroll indicator */
  .scroll-indicator {
    bottom: 1.5rem;
  }

  /* Hero section */
  #home {
    min-height: auto !important;
    padding-top: 7rem !important;
    padding-bottom: 4rem !important;
  }

  /* Hero description */
  .hero-stagger p.text-lg {
    font-size: 1rem !important;
  }

  /* Timeline */
  .timeline-item {
    padding-left: 1.8rem;
  }

  .timeline-container {
    padding-left: 1.5rem;
  }

  /* Service cards */
  .service-card {
    padding: 1.5rem !important;
  }

  /* Project card buttons */
  .project-card .flex.gap-3 {
    flex-direction: column;
  }

  .project-card .flex.gap-3 a {
    width: 100%;
    text-align: center;
  }

  /* Contact form card */
  .contact-form-card {
    padding: 1.5rem !important;
  }

  /* Logo smaller on mobile */
  .navbar .logo img {
    height: 55px !important;
  }

  /* Hero typed subtitle */
  h2.text-xl {
    font-size: 1.1rem !important;
  }
}

@media screen and (max-width: 480px) {
  .hero-title { font-size: 2.2rem !important; }

  .stat-card {
    gap: 1rem !important;
    padding: 1.2rem !important;
  }

  .stat-card span.text-3xl {
    font-size: 1.5rem !important;
  }

  .section-header h2,
  h2.text-5xl {
    font-size: 1.8rem !important;
  }

  h3.text-3xl {
    font-size: 1.4rem !important;
  }

  /* Skill cards smaller padding */
  .skill-card {
    padding: 1.2rem !important;
  }

  .skill-card .w-10 {
    width: 2rem !important;
    height: 2rem !important;
  }

  .skill-card .w-9 {
    width: 1.75rem !important;
    height: 1.75rem !important;
  }

  /* Hero badge */
  .hero-badge {
    font-size: 0.75rem !important;
    padding: 0.4rem 0.8rem !important;
  }

  /* Contact items */
  .about-image-wrapper {
    max-width: 200px !important;
  }
}

/* ==========================================================================
   23. TYPING ANIMATION CURSOR
   ========================================================================== */
.typed-cursor {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: cursorBlink 0.7s step-end infinite;
  font-weight: 300;
  margin-left: 2px;
}

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

/* ==========================================================================
   24. SKILL PROFICIENCY BARS
   ========================================================================== */
.skill-bar-fill {
  width: 0;
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}


/* ==========================================================================
   25. CUSTOM CURSOR (Desktop Only)
   ========================================================================== */
.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease, background 0.2s ease;
  display: none;
}

.cursor-ring {
  width: 36px;
  height: 36px;
  border: 2px solid rgba(74, 158, 255, 0.35);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9997;
  transform: translate(-50%, -50%);
  transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease, transform 0.15s ease-out;
  display: none;
}

.cursor-hover .cursor-dot {
  width: 12px;
  height: 12px;
  background: var(--accent-light);
}

.cursor-hover .cursor-ring {
  width: 48px;
  height: 48px;
  border-color: rgba(74, 158, 255, 0.3);
}

body.light .cursor-dot {
  background: #b8860b;
}

body.light .cursor-ring {
  border-color: rgba(184, 134, 11, 0.3);
}

/* Hide on touch devices */
@media (pointer: coarse) {
  .cursor-dot,
  .cursor-ring {
    display: none !important;
  }
}

/* ==========================================================================
   26. TOAST NOTIFICATION
   ========================================================================== */
.toast-notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1rem 1.5rem;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-width: 300px;
  animation: toastSlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  transition: background-color 0.5s ease, border-color 0.5s ease;
}

body.light .toast-notification {
  background: #fffcf7;
  box-shadow: 0 8px 30px rgba(80, 60, 20, 0.1);
}

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

/* ==========================================================================
   27. SCROLL PROGRESS BAR
   ========================================================================== */
#scrollProgress {
  pointer-events: none;
  background: linear-gradient(to right, var(--accent), var(--accent-light)) !important;
}

/* ==========================================================================
   28. GRADIENT OVERRIDES â€” Gold/Amber theme
   ========================================================================== */

/* Override Tailwind blue/purple gradients with gold */
.bg-gradient-to-r.from-blue-500.to-purple-500,
.section-line {
  background: linear-gradient(to right, var(--accent), var(--accent-light)) !important;
}

/* Section number color */
.section-number,
.bg-gradient-to-r.from-blue-500.to-purple-500.bg-clip-text {
  background: linear-gradient(to right, var(--accent), var(--accent-light)) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
}

/* Primary buttons â€” dark mode: blue, light mode: gold */
.btn-primary,
.bg-gradient-to-r.from-blue-500.to-blue-600,
button[type="submit"].bg-gradient-to-r {
  background: linear-gradient(135deg, var(--accent), var(--accent-light)) !important;
  box-shadow: 0 4px 15px var(--accent-glow) !important;
}

.btn-primary:hover,
.bg-gradient-to-r.from-blue-500.to-blue-600:hover,
button[type="submit"].bg-gradient-to-r:hover {
  box-shadow: 0 8px 30px var(--accent-glow) !important;
  filter: brightness(1.1);
}

/* Stat numbers gradient */
.stat-card span.bg-gradient-to-r {
  background: linear-gradient(to right, var(--accent), var(--accent-light)) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
}

/* Skill bar fill */
.skill-bar-fill {
  background: linear-gradient(to right, var(--accent), var(--accent-light)) !important;
}

/* Service card top accent line */
.skill-card .bg-gradient-to-r,
.service-card .bg-gradient-to-r,
.project-card .bg-gradient-to-r {
  background: linear-gradient(to right, var(--accent), var(--accent-light)) !important;
}

/* Service link indicator text */
.service-link-indicator {
  background: linear-gradient(to right, var(--accent), var(--accent-light)) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
}

/* Typed text subtitle gradient */
h2.bg-gradient-to-r.from-blue-500.to-purple-500 {
  background: linear-gradient(to right, var(--accent), var(--accent-light)) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
}

/* Icon hover colors - use gold instead of blue */
.service-card .text-blue-500,
.contact-form-card .text-blue-500 { color: var(--accent); }

/* ==========================================================================
   29. ENHANCED ANIMATIONS
   ========================================================================== */

/* Floating animation for hero glow blobs */
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-20px) rotate(1deg); }
  50% { transform: translateY(-10px) rotate(-1deg); }
  75% { transform: translateY(-25px) rotate(0.5deg); }
}

.hero-glow-1 { animation: float 12s ease-in-out infinite, glowPulse 8s ease-in-out infinite !important; }
.hero-glow-2 { animation: float 15s ease-in-out infinite reverse, glowPulse 10s ease-in-out infinite reverse !important; }

/* Parallax-like effect on scroll for section headers */
.section-header {
  animation: slideInLeft 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Staggered reveal for cards â€” more dramatic */
.reveal.active .skill-card,
.reveal.active .service-card,
.reveal.active .project-card,
.reveal.active .feature-card,
.reveal.active .timeline-item {
  animation: fadeInScale 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
  opacity: 0;
}

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

/* Hover glow effect on cards */
.skill-card::before,
.service-card::before,
.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.5s ease;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(74, 158, 255, 0.06), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

body.light .skill-card::before,
body.light .service-card::before,
body.light .project-card::before {
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(184, 134, 11, 0.06), transparent 60%);
}

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

/* Smooth pulse on hero badge */
.hero-badge {
  animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74, 158, 255, 0.1); }
  50% { box-shadow: 0 0 0 8px rgba(74, 158, 255, 0); }
}

body.light .hero-badge {
  animation: badgePulseLight 3s ease-in-out infinite;
}

@keyframes badgePulseLight {
  0%, 100% { box-shadow: 0 0 0 0 rgba(184, 134, 11, 0.1); }
  50% { box-shadow: 0 0 0 8px rgba(184, 134, 11, 0); }
}

/* About image subtle float */
.about-image-wrapper {
  animation: subtleFloat 6s ease-in-out infinite;
}

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

/* Stat card shimmer on load */
.stat-card {
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(74, 158, 255, 0.05), transparent);
  animation: shimmer 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes shimmer {
  0% { left: -100%; }
  50% { left: 100%; }
  100% { left: 100%; }
}

/* Social link bounce on hover */
.social-link-card:hover {
  animation: socialBounce 0.4s ease;
}

@keyframes socialBounce {
  0% { transform: translateY(0); }
  30% { transform: translateY(-8px); }
  60% { transform: translateY(-2px); }
  100% { transform: translateY(-4px); }
}

/* Section line expand animation */
.reveal.active .section-line {
  animation: lineExpand 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes lineExpand {
  from { width: 0; opacity: 0; }
  to { width: 5rem; opacity: 1; }
}

/* ==========================================================================
   30. HERO STAGGERED ENTRANCE
   ========================================================================== */
.hero-stagger {
  opacity: 0;
  transform: translateY(30px);
  animation: heroEntrance 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-stagger:nth-child(1) { animation-delay: 0.15s; }
.hero-stagger:nth-child(2) { animation-delay: 0.3s; }
.hero-stagger:nth-child(3) { animation-delay: 0.45s; }
.hero-stagger:nth-child(4) { animation-delay: 0.6s; }
.hero-stagger:nth-child(5) { animation-delay: 0.75s; }
.hero-stagger:nth-child(6) { animation-delay: 0.9s; }

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

/* ==========================================================================
   31. FLOATING PARTICLES
   ========================================================================== */
.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.15;
  animation: particleFloat linear infinite;
}

.particle-1 { width: 4px; height: 4px; top: 15%; left: 10%; animation-duration: 18s; animation-delay: 0s; }
.particle-2 { width: 6px; height: 6px; top: 25%; left: 80%; animation-duration: 22s; animation-delay: -3s; }
.particle-3 { width: 3px; height: 3px; top: 60%; left: 20%; animation-duration: 20s; animation-delay: -6s; }
.particle-4 { width: 5px; height: 5px; top: 70%; left: 75%; animation-duration: 16s; animation-delay: -2s; }
.particle-5 { width: 4px; height: 4px; top: 40%; left: 50%; animation-duration: 24s; animation-delay: -8s; }
.particle-6 { width: 3px; height: 3px; top: 80%; left: 40%; animation-duration: 19s; animation-delay: -4s; }
.particle-7 { width: 5px; height: 5px; top: 10%; left: 60%; animation-duration: 21s; animation-delay: -10s; }
.particle-8 { width: 4px; height: 4px; top: 50%; left: 90%; animation-duration: 17s; animation-delay: -7s; }

@keyframes particleFloat {
  0% { transform: translateY(0) translateX(0) scale(1); opacity: 0; }
  10% { opacity: 0.2; }
  50% { transform: translateY(-120px) translateX(30px) scale(1.2); opacity: 0.15; }
  90% { opacity: 0.2; }
  100% { transform: translateY(-250px) translateX(-20px) scale(0.8); opacity: 0; }
}

/* ==========================================================================
   32. ORBIT RINGS (decorative hero element)
   ========================================================================== */
.hero-orbit {
  width: 320px;
  height: 320px;
  position: relative;
}

.orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--accent);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: orbitSpin linear infinite;
}

.orbit-ring-1 {
  width: 180px; height: 180px;
  opacity: 0.08;
  animation-duration: 25s;
}

.orbit-ring-2 {
  width: 260px; height: 260px;
  opacity: 0.05;
  animation-duration: 35s;
  animation-direction: reverse;
}

.orbit-ring-3 {
  width: 320px; height: 320px;
  opacity: 0.03;
  animation-duration: 45s;
}

@keyframes orbitSpin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.orbit-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  top: 50%;
  left: 50%;
}

.orbit-dot-1 {
  animation: orbitMove1 25s linear infinite;
  opacity: 0.4;
  box-shadow: 0 0 10px var(--accent-glow);
}

.orbit-dot-2 {
  width: 6px; height: 6px;
  animation: orbitMove2 35s linear infinite reverse;
  opacity: 0.3;
  box-shadow: 0 0 8px var(--accent-glow);
}

@keyframes orbitMove1 {
  from { transform: rotate(0deg) translateX(90px) rotate(0deg); }
  to { transform: rotate(360deg) translateX(90px) rotate(-360deg); }
}

@keyframes orbitMove2 {
  from { transform: rotate(0deg) translateX(130px) rotate(0deg); }
  to { transform: rotate(360deg) translateX(130px) rotate(-360deg); }
}

/* ==========================================================================
   33. SCROLL INDICATOR
   ========================================================================== */
.scroll-indicator {
  animation: fadeInUp 1s ease 1.2s forwards;
  opacity: 0;
}

.scroll-dot {
  animation: scrollBounce 2s ease-in-out infinite;
}

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

/* Hide scroll indicator after scrolling */
.scroll-indicator.hidden {
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

/* ==========================================================================
   34. HERO PARALLAX (3rd glow)
   ========================================================================== */
.hero-glow-3 {
  animation: float 18s ease-in-out infinite reverse;
  opacity: 0.5;
}

/* ==========================================================================
   35. TILT EFFECT ON CARDS
   ========================================================================== */
.tilt-card {
  transition: transform 0.3s ease;
}

/* ==========================================================================
   36. TEXT REVEAL ANIMATION (for sections)
   ========================================================================== */
.reveal-text {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-text:nth-child(2) { transition-delay: 0.1s; }
.reveal-text:nth-child(3) { transition-delay: 0.2s; }
.reveal-text:nth-child(4) { transition-delay: 0.3s; }

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

/* ==========================================================================
   37. GLOWING BORDER ANIMATION (contact form)
   ========================================================================== */
.glow-border {
  position: relative;
}

.glow-border::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px; right: -1px; bottom: -1px;
  border-radius: inherit;
  background: conic-gradient(from 0deg, transparent, var(--accent), transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: -1;
  animation: glowSpin 4s linear infinite;
}

.glow-border:hover::before,
.glow-border:focus-within::before {
  opacity: 0.3;
}

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

/* ==========================================================================
   38. MAGNETIC BUTTON EFFECT
   ========================================================================== */
.btn-magnetic {
  transition: transform 0.2s ease;
}

/* ==========================================================================
   39. SECTION DIVIDER WAVE
   ========================================================================== */
.section-divider {
  width: 100%;
  height: 60px;
  overflow: hidden;
  position: relative;
}

.section-divider svg {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 100%;
}

.section-divider path {
  fill: var(--bg-secondary);
  transition: fill 0.5s ease;
}

body.light .section-divider path {
  fill: #f2ebe0;
}

/* ==========================================================================
   40. TIMELINE SECTION
   ========================================================================== */
.timeline-container {
  position: relative;
  padding-left: 2rem;
}

.timeline-container::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--accent-light), transparent);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding-left: 2.5rem;
  padding-bottom: 3rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -2rem;
  top: 0.25rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg-primary);
  box-shadow: 0 0 0 3px var(--accent-glow), 0 0 12px rgba(74, 158, 255, 0.2);
  z-index: 1;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item:hover .timeline-dot {
  transform: scale(1.3);
  box-shadow: 0 0 0 5px var(--accent-glow), 0 0 20px rgba(74, 158, 255, 0.3);
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-card-hover);
  transform: translateX(6px);
}

body.light .timeline-card {
  background: #fffcf7;
  border-color: #e6dcc8;
}

body.light .timeline-card:hover {
  border-color: #b8860b;
}

body.light .timeline-dot {
  border-color: #faf6f0;
  box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.12), 0 0 12px rgba(184, 134, 11, 0.15);
}

.timeline-year {
  display: inline-block;
  background: var(--tag-bg);
  color: var(--tag-text);
  border: 1px solid var(--tag-border);
  padding: 0.2rem 0.7rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

/* Timeline stagger delays */
.reveal.active .timeline-item:nth-child(1) { animation-delay: 0.05s; }
.reveal.active .timeline-item:nth-child(2) { animation-delay: 0.15s; }
.reveal.active .timeline-item:nth-child(3) { animation-delay: 0.25s; }
.reveal.active .timeline-item:nth-child(4) { animation-delay: 0.35s; }

/* RTL support for timeline */
body.ar .timeline-container { padding-left: 0; padding-right: 2rem; }
body.ar .timeline-container::before { left: auto; right: 0; }
body.ar .timeline-item { padding-left: 0; padding-right: 2.5rem; }
body.ar .timeline-dot { left: auto; right: -2rem; }
body.ar .timeline-card:hover { transform: translateX(-6px); }

/* =========================================================================
   Contact Form — Inline Status Message
   ========================================================================= */
.form-status {
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.6rem 0.9rem;
  border-radius: 0.6rem;
  line-height: 1.5;
  display: none;
}
.form-status:not(:empty) {
  display: block;
}
.form-status--success {
  color: #22c55e;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.2);
}
.form-status--error {
  color: #f87171;
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.2);
}
