@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800;900&family=Tajawal:wght@400;500;700;900&display=swap');

:root {
  --bg-main: #060907;
  --bg-surface: #0e1511;
  --bg-card: rgba(22, 33, 27, 0.65);
  --border-card: rgba(212, 175, 55, 0.18);
  
  --primary: #0f6e45;
  --primary-light: #16935d;
  --primary-glow: rgba(15, 110, 69, 0.4);
  
  --accent-gold: #d4af37;
  --accent-gold-light: #f6e69f;
  --accent-gold-glow: rgba(212, 175, 55, 0.35);
  
  --text-white: #ffffff;
  --text-heading: #f4faf6;
  --text-body: #b0c4b8;
  --text-muted: #6e8779;
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  
  --shadow-glow: 0 10px 40px -10px rgba(212, 175, 55, 0.25);
  --shadow-card: 0 16px 40px rgba(0, 0, 0, 0.4);
  
  --transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-family: 'Cairo', 'Tajawal', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-body);
  direction: rtl;
}

body {
  overflow-x: hidden;
  line-height: 1.7;
  min-height: 100vh;
}

/* Background Ambient Lights */
.ambient-light {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  z-index: 0;
  pointer-events: none;
}
.ambient-1 {
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: var(--primary-glow);
}
.ambient-2 {
  top: 40%;
  left: -150px;
  width: 600px;
  height: 600px;
  background: var(--accent-gold-glow);
}
.ambient-3 {
  bottom: -100px;
  right: 20%;
  width: 450px;
  height: 450px;
  background: rgba(15, 110, 69, 0.25);
}

/* Container */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Typography Helpers */
.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, var(--accent-gold-light) 50%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.gold-text {
  color: var(--accent-gold);
}

/* Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: var(--transition);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(6, 9, 7, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.navbar.scrolled {
  padding: 14px 0;
  background: rgba(6, 9, 7, 0.92);
  border-bottom: 1px solid var(--border-card);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--accent-gold), var(--primary));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  box-shadow: var(--shadow-glow);
}
.logo-text {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-link {
  color: var(--text-body);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: var(--transition);
  position: relative;
}
.nav-link:hover, .nav-link.active {
  color: var(--accent-gold);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gold);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--accent-gold) 0%, #b89127 100%);
  color: #070c0a;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
  transition: var(--transition);
}
.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 35px rgba(212, 175, 55, 0.45);
  background: linear-gradient(135deg, var(--accent-gold-light) 0%, var(--accent-gold) 100%);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-white);
  font-weight: 600;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: var(--transition);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  transform: translateY(-3px);
}

/* Hero Section */
.hero {
  padding-top: 170px;
  padding-bottom: 100px;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 50px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--accent-gold);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 24px;
}
.hero-title {
  font-size: 52px;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 24px;
  color: var(--text-heading);
}
.hero-desc {
  font-size: 18px;
  color: var(--text-body);
  margin-bottom: 36px;
  max-width: 540px;
}
.hero-btns {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.hero-stats {
  display: flex;
  gap: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.stat-item h3 {
  font-size: 28px;
  font-weight: 800;
  color: var(--accent-gold);
  margin-bottom: 4px;
}
.stat-item p {
  font-size: 14px;
  color: var(--text-muted);
}
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 500px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-card);
}
.hero-image-wrapper img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-image-wrapper:hover img {
  transform: scale(1.05);
}
.hero-floating-card {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: rgba(14, 21, 17, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 16px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-card);
  animation: float 4s ease-in-out infinite;
}
.hero-floating-card .icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.15);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

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

/* Interactive Gift Finder Section */
.finder-section {
  padding: 90px 0;
  position: relative;
}
.glass-box {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 50px;
  box-shadow: var(--shadow-card);
}
.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 48px;
}
.section-title {
  font-size: 38px;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 14px;
}
.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
}

.finder-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 36px;
}
.step-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: var(--transition);
}
.step-card:hover {
  border-color: var(--accent-gold);
  background: rgba(212, 175, 55, 0.04);
}
.step-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 12px;
  display: block;
}
.custom-select {
  width: 100%;
  background: rgba(6, 9, 7, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-white);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 15px;
  outline: none;
  cursor: pointer;
  transition: var(--transition);
}
.custom-select:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}
.finder-result {
  display: none;
  margin-top: 32px;
  padding: 24px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(15, 110, 69, 0.2), rgba(212, 175, 55, 0.15));
  border: 1px solid var(--accent-gold);
  text-align: center;
  animation: fadeIn 0.5s ease;
}
.finder-result.active {
  display: block;
}

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

/* Categories Section */
.categories-section {
  padding: 90px 0;
}
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.category-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 380px;
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}
.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 9, 7, 0.95) 0%, rgba(6, 9, 7, 0.3) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  transition: var(--transition);
}
.category-card:hover img {
  transform: scale(1.1);
}
.category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(212, 175, 55, 0.2);
}
.category-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 8px;
}
.category-count {
  font-size: 14px;
  color: var(--accent-gold);
  font-weight: 600;
}

/* Features Section */
.features-section {
  padding: 90px 0;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.feature-box {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
}
.feature-box:hover {
  border-color: var(--accent-gold);
  transform: translateY(-6px);
  background: rgba(22, 33, 27, 0.9);
}
.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(15, 110, 69, 0.2));
  border: 1px solid var(--accent-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--accent-gold);
}
.feature-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 10px;
}
.feature-desc {
  font-size: 14px;
  color: var(--text-muted);
}

/* Testimonials Section */
.testimonials-section {
  padding: 90px 0;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
}
.stars {
  color: var(--accent-gold);
  margin-bottom: 16px;
  font-size: 18px;
}
.quote-text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-body);
  margin-bottom: 24px;
}
.user-info {
  display: flex;
  align-items: center;
  gap: 14px;
}
.user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--text-white);
  border: 2px solid var(--accent-gold);
}
.user-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-heading);
}
.user-role {
  font-size: 13px;
  color: var(--text-muted);
}

/* Newsletter Section */
.newsletter-section {
  padding: 80px 0;
}
.newsletter-box {
  background: linear-gradient(135deg, rgba(15, 110, 69, 0.4), rgba(14, 21, 17, 0.9));
  border: 1px solid var(--accent-gold);
  border-radius: var(--radius-xl);
  padding: 60px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}
.newsletter-form {
  display: flex;
  gap: 14px;
  max-width: 540px;
  margin: 32px auto 0;
}
.newsletter-input {
  flex: 1;
  background: rgba(6, 9, 7, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  padding: 16px 24px;
  color: var(--text-white);
  font-family: inherit;
  font-size: 15px;
  outline: none;
}
.newsletter-input:focus {
  border-color: var(--accent-gold);
}

/* Footer */
.footer {
  background: #040605;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 70px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 50px;
}
.footer-brand p {
  margin-top: 16px;
  color: var(--text-muted);
  max-width: 320px;
  font-size: 14px;
}
.footer-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 20px;
}
.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 12px;
}
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition);
}
.footer-links a:hover {
  color: var(--accent-gold);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 24px;
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero-grid, .categories-grid, .testimonials-grid {
    grid-template-columns: 1fr;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero-title {
    font-size: 40px;
  }
  .finder-steps {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
}
@media (max-width: 576px) {
  .features-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  .newsletter-form {
    flex-direction: column;
  }
  .newsletter-input {
    width: 100%;
  }
}
