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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scroll-padding-top: var(--nav-height);
  background: var(--bg-dark);
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--bg-light);
  line-height: 1.6;
  overflow-x: hidden;
  transition: opacity 0.4s ease;
}

img {
  max-width: 100%;
  display: block;
}

/* Loading Overlay */
#loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--bg-dark);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loading-overlay.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--font-heading);
  color: var(--text-light);
  font-size: 2.5rem;
  letter-spacing: 2px;
}

.loader-elecoz {
  animation: slideUpFade 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.loader-line {
  background: var(--accent);
  height: 4px;
  width: 60px;
  border-radius: 2px;
  opacity: 0;
  margin: 16px 0;
  transform: scaleX(0);
  animation: fadeInLine 0.5s 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.loader-arabic {
  animation: slideDownFade 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideUpFade {
  0% { transform: translateY(20px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

@keyframes slideDownFade {
  0% { transform: translateY(-20px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

@keyframes fadeInLine {
  to { opacity: 1; transform: scaleX(1); }
}

a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

::selection {
  background: var(--accent);
  color: var(--text-light);
}

section {
  position: relative;
}
