/* ===== CSS Variables ===== */
:root {
  --primary: #bafa15;
  --secondary: #183728;
  --background: #ffffff;
  --foreground: #224333;
  --muted: #6b7c71;
  --border: #e5e7eb;
  --radius: 0.625rem;
  --transition: all 0.3s ease;
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", "Arial", sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: all 0.4s ease-in-out;
}

.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  padding: 0.75rem 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  text-align: center;
}
.logo:hover {
  cursor: pointer;
}

.logo-text {
  font-size: 1.6rem;
  font-weight: 800;
  /*color: var(--secondary) ;*/
  color: var(--primary);
  transition: color 0.3s ease;
  text-transform: capitalize;
  letter-spacing: -1px;
}

.navbar.scrolled .logo-text {
  color: var(--secondary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-link {
  position: relative;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.3s ease;
  padding: 0.5rem 0;
}

.navbar.scrolled .nav-link {
  color: var(--secondary);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger-line {
  width: 25px;
  height: 3px;
  background-color: var(--background);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.navbar.scrolled .hamburger-line {
  background-color: var(--secondary);
}

.mobile-menu-btn.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--background);
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav-link {
  font-weight: 500;
  color: var(--secondary);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.3s ease;
}

.mobile-nav-link:hover {
  color: var(--primary);
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.3);
  transition: transform 0.2s ease-out;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(34, 67, 51, 0.5),
    rgba(34, 67, 51, 0.7)
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 1.5rem;
}

.hero-title {
  font-size: clamp(2.5rem, 7vw, 4rem);
  font-weight: 800;
  color: var(--background);
  margin-bottom: 25px;
  line-height: 1.2;
}

.hero-title span {
  color: var(--primary);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-wrap: pretty;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--primary);
  color: var(--secondary);
  padding: 18px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: var(--transition);
  box-shadow: 0 10px 30px rgba(186, 250, 21, 0.3);
}

.cta-button:hover {
  transform: translateY(-5px), scale(1.02);
  box-shadow: 0 15px 40px rgba(186, 250, 21, 0.4);
  background: #d4ff4d;
}

.whatsapp-icon {
  width: 24px;
  height: 24px;
  transition: var(--transition);
}
.cta-button:hover svg {
  transform: scale(1.2);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: scroll-bounce 2s ease-in-out infinite;
}

.scroll-mouse {
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.scroll-wheel {
  width: 4px;
  height: 8px;
  background-color: var(--primary);
  border-radius: 2px;
  animation: scroll-wheel 2s ease-in-out infinite;
}

.scroll-text {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}

@keyframes scroll-bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

@keyframes scroll-wheel {
  0%,
  100% {
    opacity: 1;
    transform: translateY(0);
  }
  50% {
    opacity: 0.5;
    transform: translateY(6px);
  }
}

/* ===== About Section ===== */
.about {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-badge {
  display: inline-block;
  background-color: rgba(186, 250, 21, 0.15);
  color: var(--secondary);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 1rem;
  text-wrap: balance;
}

.section-line {
  width: 60px;
  height: 4px;
  background-color: var(--primary);
  margin: 0 auto;
  border-radius: 2px;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-text {
  font-size: 1.125rem;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  line-height: 1.9;
  color: #ffffff;
  background-color: var(--secondary);
  border: 1.5px solid #d6dbd0;
  border-radius: 10px;
  padding: 0.85rem 1rem;
}

.about-paragraph {
  font-size: 1.125rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 1.3rem;
}

.about-text:last-child {
  margin-bottom: 0;
}
.about-decoration {
  position: absolute;
  top: 20%;
  left: -100px;
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, rgba(186, 250, 21, 0.1), transparent);
  border-radius: 50%;
  z-index: -1;
}

/* ===== Services Section ===== */
.services {
  padding: 6rem 0;
  background-color: #f9fafb;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: var(--background);
  border-radius: calc(var(--radius) * 2);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.4s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(34, 67, 51, 0.15);
}

.service-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.service-card:hover .service-image {
  transform: scale(1.1);
}

.service-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(34, 67, 51, 0.6), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.service-card:hover .service-overlay {
  opacity: 1;
}

.service-content {
  position: relative;
  padding: 1.75rem;
}

.service-icon {
  width: 50px;
  height: 50px;
  background-color: rgba(186, 250, 21, 0.15);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.service-icon svg {
  width: 24px;
  height: 24px;
  color: var(--secondary);
}

.service-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--background);
  margin-bottom: 15px;
  position: relative;
  padding-bottom: 15px;
  background-color: var(--secondary);
  padding: 0.5rem 1.3rem;
  border-radius: 20px;
  text-align: center;
}

.service-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

.service-description {
  font-size: 0.93rem;
  color: var(--foreground);
  line-height: 1.73;
  background-color: #f0f2ec;
  border: 1.5px solid #d6dbd0;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin: 0;
}

.service-accent {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 4px;
  background-color: var(--primary);
  transition: width 0.4s ease;
}

.service-card:hover .service-accent {
  width: 100%;
}

/* ===== Contact Section ===== */
.contact {
  position: relative;
  padding: 6rem 0;
  background: linear-gradient(135deg, var(--secondary) 0%, #1a3528 100%);
  overflow: hidden;
}

.contact-decoration {
  position: absolute;
  top: -50%;
  left: -25%;
  width: 100%;
  height: 200%;
  z-index: 0;
}

.contact-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact .section-badge {
  background-color: rgba(186, 250, 21, 0.2);
  color: var(--primary);
}

.contact-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--background);
  margin-bottom: 1rem;
  margin-top: 1rem;
  text-wrap: balance;
}

.contact-subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2.5rem;
  text-wrap: pretty;
}

.whatsapp-button {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  background: #25d366;
  color: var(--background);
  padding: 22px 50px;
  border-radius: 60px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.2rem;
  transition: var(--transition);
  box-shadow: 0 10px 40px rgba(37, 211, 102, 0.3);
  animation: pulse 2s infinite;
}

.whatsapp-button:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 20px 50px rgba(37, 211, 102, 0.4);
  animation: none;
}

.whatsapp-icon-large {
  width: 28px;
  height: 28px;
}

.pulse-ring {
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  border: 2px solid #25d366;
  animation: pulse-ring 3s ease-out infinite;
}
/* ===== Social Icons ===== */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

/* Base pill button — starts as a circle */
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  color: rgba(255, 255, 255, 0.85);
  overflow: hidden;
  white-space: nowrap;
  cursor: pointer;

}

.social-icon svg {
  width: 27px;
  height: 27px;
  flex-shrink: 0;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}


@keyframes pulse-ring {
  0% {
    transform: scale(1);
    opacity: 0.4;
  }
  50% {
    transform: scale(1.1);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}

/* ===== "تابعنا على الإنستقرام" ===== */
.social-follow-text {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
  margin-bottom: 0;
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.03em;
}
/* خط قصير على كل جانب */
.social-follow-text::before,
.social-follow-text::after {
  content: "";
  display: block;
  width: 32px;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, rgba(186, 250, 21, 0.5));
  border-radius: 2px;
}

.social-follow-text::after {
  background: linear-gradient(270deg, transparent, rgba(186, 250, 21, 0.5));
}

/* ===== Footer ===== */
.footer {
  background-color: var(--secondary);
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--background);
}

.footer-logo .logo-text {
  color: var(--background);
}

.footer-text {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

/* ===== Custom Cursor ===== */
.cursor-dot {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition:
    transform 0.1s ease,
    width 0.2s ease,
    height 0.2s ease,
    background 0.2s ease;
  mix-blend-mode: normal;
}

.cursor-ring {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 2px solid rgba(186, 250, 21, 0.6);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition:
    transform 0.08s ease,
    width 0.25s ease,
    height 0.25s ease,
    border-color 0.25s ease,
    opacity 0.25s ease;
}

.cursor-dot.hovered {
  width: 12px;
  height: 12px;
  background: var(--secondary);
}

.cursor-ring.hovered {
  width: 56px;
  height: 56px;
  border-color: var(--primary);
  background: rgba(186, 250, 21, 0.08);
}

/* ===== Animations ===== */
/* Hero entrance animations */
.hero-title {
  opacity: 0;
  transform: translateY(50px);
  animation: heroFadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}

.hero-subtitle {
  opacity: 0;
  transform: translateY(40px);
  animation: heroFadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.45s forwards;
}

.cta-button {
  opacity: 0;
  transform: translateY(30px);
  animation: heroFadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.65s forwards;
}

.scroll-indicator {
  opacity: 0;
  animation: heroFadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 1s forwards;
}

@keyframes heroFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Remove old animate-fade-in overrides since we handle hero directly */

.delay-1 {
  animation-delay: 0.2s;
}
.delay-2 {
  animation-delay: 0.4s;
}
.delay-3 {
  animation-delay: 0.6s;
}

/* Scroll Animations */
.scroll-animate {
  opacity: 0;
  transform: translateY(50px);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.scroll-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-animate.delay-1 {
  transition-delay: 0.1s;
}
.scroll-animate.delay-2 {
  transition-delay: 0.22s;
}
.scroll-animate.delay-3 {
  transition-delay: 0.34s;
}

/* Section badge, title, line staggered entrance */
.section-header.visible .section-badge {
  opacity: 1;
  transform: translateY(0);
}
.section-header.visible .section-title {
  opacity: 1;
  transform: translateY(0);
}
.section-header.visible .section-line {
  width: 60px;
}

.section-header .section-badge {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s ease 0s,
    transform 0.6s ease 0s;
}
.section-header .section-title {
  opacity: 0;
  transform: translateY(25px);
  transition:
    opacity 0.6s ease 0.15s,
    transform 0.6s ease 0.15s;
}
.section-header .section-line {
  width: 0;
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.3s;
}

/* About text slide from right (RTL) */
.about-text.scroll-animate {
  opacity: 0;
  transform: translateX(40px);
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.1s,
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.1s;
}
.about-text.scroll-animate.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Service cards staggered from below */
.service-card.scroll-animate {
  opacity: 0;
  transform: translateY(60px) scale(0.97);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.service-card.scroll-animate.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Contact section slide up */
.contact-content.scroll-animate {
  opacity: 0;
  transform: translateY(50px);
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.contact-content.scroll-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Section reveal line animation ===== */
@keyframes lineGrow {
  from {
    width: 0;
  }
  to {
    width: 60px;
  }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .mobile-menu {
    display: block;
  }

  .hero {
    min-height: 100svh;
  }

  .hero-content {
    padding: 0 1rem;
  }

  .about,
  .services,
  .contact {
    padding: 4rem 0;
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .stat-card {
    padding: 1.25rem 0.75rem;
  }

  .stat-number {
    font-size: 1.75rem;
  }

  .stat-label {
    font-size: 0.8rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .cta-button,
  .whatsapp-button {
    font-size: 1rem;
    padding: 0.875rem 1.5rem;
  }
  .service-description {
    font-size: 0.95rem;
    padding: 0.75rem 0.85rem;
  }
}
