/* ============================================
   عطور والبسة العكيدي — Premium Dark Luxury
   Midnight Blue + Mint + Gold Palette
   ============================================ */

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

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

body {
  background-color: #040B16;
  color: #ffffff;
  font-family: 'Inter', system-ui, sans-serif;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0A1628;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #C9A84C, #00C47F);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #D4AF61, #5CE3B0);
}

/* Selection */
::selection {
  background: rgba(201, 168, 76, 0.3);
  color: #E8D5A3;
}

/* ============================================
   Navbar
   ============================================ */
#navbar {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
  background: rgba(4, 11, 22, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05), 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: linear-gradient(90deg, #C9A84C, #00C47F);
  transition: width 0.3s ease;
}

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

.nav-link:hover {
  color: #D4AF61 !important;
}

/* Mobile Menu */
#mobileMenu.open {
  opacity: 1;
  pointer-events: all;
}

#mobileMenu.closed {
  opacity: 0;
  pointer-events: none;
}

.mobile-link {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

.mobile-link:hover {
  color: #D4AF61 !important;
}

.menu-line {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

#menuBtn.active .menu-line:nth-child(1) {
  transform: translateY(2.5px) rotate(45deg);
}
#menuBtn.active .menu-line:nth-child(2) {
  opacity: 0;
}
#menuBtn.active .menu-line:nth-child(3) {
  transform: translateY(-2.5px) rotate(-45deg);
  width: 1.25rem;
}

/* ============================================
   Animations
   ============================================ */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

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

@keyframes scrollDown {
  0% { top: -16px; opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}

.animate-float-delayed {
  animation: float-delayed 5s ease-in-out infinite;
  animation-delay: 1s;
}

.animate-scrollDown {
  animation: scrollDown 2s ease-in-out infinite;
}

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ============================================
   Gold Shimmer Text Effect
   ============================================ */
.shimmer-text {
  background: linear-gradient(
    90deg,
    #E8D5A3 0%,
    #C9A84C 25%,
    #E8D5A3 50%,
    #C9A84C 75%,
    #E8D5A3 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s linear infinite;
}

/* ============================================
   Card Hover Glow Effects
   ============================================ */
.glow-gold:hover {
  box-shadow: 0 0 40px rgba(201, 168, 76, 0.15), 0 20px 60px rgba(0, 0, 0, 0.3);
}

.glow-mint:hover {
  box-shadow: 0 0 40px rgba(0, 196, 127, 0.15), 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* ============================================
   Image Loading Placeholder
   ============================================ */
img {
  background: linear-gradient(135deg, #0F1F36 0%, #162A45 100%);
  min-height: 4rem;
}

/* ============================================
   Form Focus States
   ============================================ */
input:focus,
textarea:focus {
  background: rgba(10, 22, 40, 0.8) !important;
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 768px) {
  #hero h1 {
    font-size: 2.5rem;
  }

  #hero h1 span {
    font-size: 1.75rem !important;
  }

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

@media (max-width: 640px) {
  #hero {
    padding-top: 6rem;
  }

  section {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
