/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
  --primary: #0ea5e9;
  --primary-dark: #0284c7;
  --accent: #14b8a6;
  --gold: #f59e0b;
  --bg-dark: #060d1a;
  --bg-dark-2: #0b1629;
  --bg-dark-3: #101e36;
  --text-primary: #f0f6ff;
  --text-secondary: #94a3b8;
  --glass-bg: rgba(11, 22, 41, 0.6);
  --glass-border: rgba(14, 165, 233, 0.15);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --neu-bg: #0e1c32;
  --neu-shadow-light: rgba(20, 184, 166, 0.08);
  --neu-shadow-dark: rgba(0, 0, 0, 0.5);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light mode overrides */
.light {
  --bg-dark: #f0f4f8;
  --bg-dark-2: #e2eaf3;
  --bg-dark-3: #d6e2ef;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --glass-bg: rgba(240, 244, 248, 0.7);
  --glass-border: rgba(14, 165, 233, 0.2);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  --neu-bg: #e8f0f8;
  --neu-shadow-light: rgba(255, 255, 255, 0.9);
  --neu-shadow-dark: rgba(166, 190, 220, 0.8);
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark-2);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 3px;
}

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3,
h4 {
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ===== GLASSMORPHISM ===== */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 16px;
}

.glass-hover {
  transition: var(--transition);
}

.glass-hover:hover {
  border-color: rgba(14, 165, 233, 0.4);
  box-shadow: 0 12px 48px rgba(14, 165, 233, 0.15), var(--glass-shadow);
  transform: translateY(-4px);
}

/* ===== NEUMORPHISM ICONS ===== */
.neu-icon {
  background: var(--neu-bg);
  border-radius: 16px;
  box-shadow:
    6px 6px 14px var(--neu-shadow-dark),
    -4px -4px 10px var(--neu-shadow-light);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  transition: var(--transition);
}

.neu-icon:hover {
  box-shadow:
    3px 3px 8px var(--neu-shadow-dark),
    -2px -2px 6px var(--neu-shadow-light),
    0 0 20px rgba(14, 165, 233, 0.3);
}

.neu-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--primary);
  stroke-width: 1.8;
}

.neu-icon-lg {
  width: 72px;
  height: 72px;
  border-radius: 20px;
}

.neu-icon-lg svg {
  width: 34px;
  height: 34px;
}

/* ===== GRADIENT TEXT ===== */
.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-gold {
  background: linear-gradient(135deg, var(--gold), #ef4444);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== BUTTONS ===== */
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  padding: 14px 32px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(14, 165, 233, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  padding: 13px 30px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  border: 1.5px solid var(--primary);
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.btn-outline:hover {
  background: rgba(14, 165, 233, 0.1);
  transform: translateY(-2px);
}

/* ===== NAVBAR ===== */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: var(--transition);
}

#navbar.scrolled {
  background: rgba(6, 13, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.light #navbar.scrolled {
  background: rgba(240, 244, 248, 0.85);
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 8px;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: rgba(14, 165, 233, 0.08);
}

/* ===== HERO ===== */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero.png');
  background-size: cover;
  background-position: center;
  filter: brightness(0.35);
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(6, 13, 26, 0.7) 0%,
      rgba(6, 13, 26, 0.2) 50%,
      rgba(11, 22, 41, 0.8) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

/* ===== SECTION HEADERS ===== */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(14, 165, 233, 0.25);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.section-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.75;
}

/* ===== FEATURE BULLETS ===== */
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--glass-border);
}

.feature-item:last-child {
  border-bottom: none;
}

.feature-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  margin-top: 8px;
  flex-shrink: 0;
}

/* ===== SERVICE CARDS ===== */
.service-card {
  padding: 32px 28px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.service-card h3 {
  font-size: 20px;
  color: var(--text-primary);
}

.service-card p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.75;
  flex: 1;
}

/* ===== SECTION IMAGE ===== */
.section-img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

/* ===== TRUST BADGES ===== */
.trust-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 12px;
  background: rgba(14, 165, 233, 0.06);
  border: 1px solid rgba(14, 165, 233, 0.15);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.trust-badge svg {
  stroke: var(--accent);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ===== STAT CARDS ===== */
.stat-card {
  text-align: center;
  padding: 24px 20px;
}

.stat-number {
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ===== TIMELINE  ===== */
.timeline-item {
  display: flex;
  gap: 20px;
  padding-bottom: 32px;
  position: relative;
}

.timeline-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 27px;
  top: 56px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), transparent);
}

.timeline-dot {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 800;
  font-size: 18px;
  color: white;
  box-shadow: 0 0 24px rgba(14, 165, 233, 0.4);
}

/* ===== MOBILE MENU ===== */
#mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  z-index: 999;
  padding: 20px;
  flex-direction: column;
  gap: 8px;
  background: rgba(6, 13, 26, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}

.light #mobile-menu {
  background: rgba(240, 244, 248, 0.95);
}

#mobile-menu.open {
  display: flex;
}

#mobile-menu .nav-link {
  font-size: 16px;
  padding: 12px 16px;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-glow {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.3);
  }

  50% {
    box-shadow: 0 0 40px rgba(14, 165, 233, 0.6);
  }
}

.animate-fade-up {
  animation: fadeInUp 0.7s ease forwards;
}

.animate-delay-1 {
  animation-delay: 0.1s;
}

.animate-delay-2 {
  animation-delay: 0.2s;
}

.animate-delay-3 {
  animation-delay: 0.3s;
}

.animate-delay-4 {
  animation-delay: 0.4s;
}

.hidden-initial {
  opacity: 0;
  transform: translateY(30px);
}

.reveal {
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== FOOTER ===== */
footer {
  background: var(--bg-dark-2);
  border-top: 1px solid var(--glass-border);
  padding: 48px 0 24px;
}

/* ===== LAYOUT HELPERS ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.section-alt {
  background: var(--bg-dark-2);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .section {
    padding: 64px 0;
  }

  .section-title {
    font-size: 28px;
  }

  .section-img {
    height: 220px;
  }

  .stat-number {
    font-size: 36px;
  }

  .neu-icon {
    width: 48px;
    height: 48px;
  }

  .neu-icon svg {
    width: 22px;
    height: 22px;
  }

  .timeline-item:not(:last-child)::before {
    left: 23px;
    top: 48px;
  }

  .timeline-dot {
    width: 46px;
    height: 46px;
    font-size: 15px;
  }
}

/* ===== GRID HELPERS ===== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  align-items: center;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {

  .grid-3,
  .grid-2,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* ===== DARK MODE TOGGLE ===== */
#theme-toggle {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-primary);
}

#theme-toggle:hover {
  border-color: var(--primary);
  background: rgba(14, 165, 233, 0.1);
}

#theme-toggle svg {
  width: 18px;
  height: 18px;
}

/* ===== CONTACT SECTION ===== */
.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 15px;
}

.contact-item svg {
  stroke: var(--primary);
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ===== DIVIDER ===== */
.gradient-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--primary), transparent);
  margin: 0;
  border: none;
}

/* ===== TAG / BADGE ===== */
.tag {
  display: inline-block;
  background: rgba(14, 184, 166, 0.1);
  border: 1px solid rgba(14, 184, 166, 0.2);
  color: var(--accent);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
}


/* ===== LOGO TEXT ===== */
.logo-text {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

/* ===== LANGUAGE SWITCHER ===== */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(14, 165, 233, 0.06);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 3px;
}

.lang-btn {
  background: transparent;
  border: none;
  border-radius: 7px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
}

.lang-btn:hover {
  color: var(--primary);
  background: rgba(14, 165, 233, 0.1);
}

.lang-btn--active {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white !important;
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.35);
}

/* ===== PROFILE ABOUT ME ===== */
.profile-wrapper {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.profile-img {
  width: 100%;
  height: auto;
  display: block;
  /* Blend the gray background with the dark mode */
  mix-blend-mode: luminosity;
  opacity: 0.9;
  transition: var(--transition);
  /* Soft rounded corners on top */
  border-radius: 20px;
  /* Use a gradient mask to fade the bottom smoothly into the background */
  -webkit-mask-image: linear-gradient(to bottom, black 65%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 65%, transparent 100%);
}

.profile-img:hover {
  mix-blend-mode: normal;
  opacity: 1;
}

.profile-decoration {
  position: absolute;
  top: -10px;
  left: -10px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.15) 0%, transparent 70%);
  z-index: -1;
}
/* ===== CUSTOM MODALS ===== */
.custom-modal-backdrop {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 9999;
  background-color: rgba(6, 13, 26, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  transition: opacity 0.3s ease;
  opacity: 1;
}
.custom-modal-backdrop.hidden-modal {
  opacity: 0;
  pointer-events: none;
  display: none;
}
.custom-modal-backdrop.fade-out {
  opacity: 0;
  pointer-events: none;
}
.custom-modal-content {
  position: relative;
  width: 100%;
  max-width: 56rem;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(11, 22, 41, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.custom-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(11, 22, 41, 0.8);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  padding: 0.5rem;
  cursor: pointer;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}
.custom-modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
}
.custom-modal-body {
  padding: 2rem;
  position: relative;
  z-index: 10;
}
@media (min-width: 640px) {
  .custom-modal-body {
    padding: 3rem;
  }
  .custom-modal-close {
    top: 1.5rem;
    right: 1.5rem;
  }
}

