/* ==========================================================================
   Base & Variables
   ========================================================================== */
:root {
  --color-primary: #d90429; /* Deep Red */
  --color-primary-light: #ef233c;
  --color-secondary: #2b2d42; /* Dark Navy/Gray */
  --color-text: #4a4e69;
  --color-bg: #f8f9fa;
  --color-white: #ffffff;
  --color-whatsapp: #25d366;

  --font-main: "Cairo", sans-serif;

  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;

  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 40px rgba(217, 4, 41, 0.15);

  --radius-md: 12px;
  --radius-lg: 24px;
  --radius-xl: 32px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--color-secondary);
  line-height: 1.3;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  transition: all var(--transition-normal);
  cursor: pointer;
  border: none;
  outline: none;
}

.btn-large {
  padding: 16px 32px;
  font-size: 1.125rem;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-primary-light)
  );
  color: var(--color-white);
  box-shadow: 0 8px 16px rgba(217, 4, 41, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 20px rgba(217, 4, 41, 0.4);
}

.btn-whatsapp {
  background: var(--color-whatsapp);
  color: var(--color-white);
  box-shadow: 0 8px 16px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 20px rgba(37, 211, 102, 0.4);
}

.btn-white {
  background: var(--color-white);
  color: var(--color-primary);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 24px 0;
  z-index: 1000;
  transition: all var(--transition-normal);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 16px 0;
  box-shadow: var(--shadow-sm);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-secondary);
  display: flex;
  align-items: baseline;
}

.logo-dot {
  color: var(--color-primary);
  font-size: 2.5rem;
  line-height: 0;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  padding: 160px 0 100px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.shape {
  position: absolute;
  filter: blur(80px);
  opacity: 0.5;
  z-index: -1;
  border-radius: 50%;
  animation: float 10s infinite ease-in-out alternate;
}

.shape-1 {
  top: -10%;
  right: -5%;
  width: 500px;
  height: 500px;
  background: rgba(239, 35, 60, 0.15);
}

.shape-2 {
  bottom: -10%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: rgba(43, 45, 66, 0.08);
  animation-delay: -5s;
}

@keyframes float {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  100% {
    transform: translate(-30px, 50px) rotate(10deg);
  }
}

.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.badge {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(217, 4, 41, 0.1);
  color: var(--color-primary);
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 24px;
  border: 1px solid rgba(217, 4, 41, 0.2);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.hero-title .highlight {
  color: var(--color-primary);
  position: relative;
  display: inline-block;
}

.hero-title .highlight::after {
  content: "";
  position: absolute;
  bottom: 8px;
  left: 0;
  width: 100%;
  height: 12px;
  background: rgba(217, 4, 41, 0.2);
  z-index: -1;
  border-radius: 4px;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 40px;
  max-width: 90%;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Glassmorphism Card in Hero */
.hero-glass-card {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  position: relative;
  transform: perspective(1000px) rotateY(-5deg);
  transition: transform 0.5s ease;
}

.hero-glass-card:hover {
  transform: perspective(1000px) rotateY(0deg) translateY(-10px);
}

.card-icon {
  width: 60px;
  height: 60px;
  background: var(--color-primary);
  color: white;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 24px;
  box-shadow: 0 10px 20px rgba(217, 4, 41, 0.3);
}

.hero-glass-card h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.stats {
  display: flex;
  gap: 24px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(43, 45, 66, 0.1);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary);
}

.stat-text {
  font-size: 0.9rem;
  font-weight: 600;
}

/* ==========================================================================
   Features Section
   ========================================================================== */
.features {
  padding: 100px 0;
  background: var(--color-white);
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
  max-width: 600px;
  margin-inline: auto;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.section-title h2 span {
  color: var(--color-primary);
}

.section-title p {
  font-size: 1.125rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
}

.feature-card {
  background: var(--color-bg);
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  transition: all var(--transition-normal);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.feature-card:hover {
  background: var(--color-white);
  transform: translateY(-10px);
  box-shadow: var(--shadow-md);
  border-color: rgba(217, 4, 41, 0.1);
}

.feature-icon {
  width: 50px;
  height: 50px;
  background: rgba(217, 4, 41, 0.1);
  color: var(--color-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 24px;
  transition: all var(--transition-normal);
}

.feature-card:hover .feature-icon {
  background: var(--color-primary);
  color: var(--color-white);
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

/* ==========================================================================
   Call to Action Section
   ========================================================================== */
.bottom-cta {
  padding: 80px 0;
}

.glass-panel {
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-primary-light)
  );
  border-radius: var(--radius-xl);
  padding: 60px 40px;
  text-align: center;
  color: var(--color-white);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.glass-panel::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.2) 0%,
    rgba(255, 255, 255, 0) 70%
  );
  opacity: 0.5;
  pointer-events: none;
}

.glass-panel h2 {
  color: var(--color-white);
  font-size: 2.5rem;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.glass-panel p {
  font-size: 1.25rem;
  margin-bottom: 40px;
  opacity: 0.9;
  position: relative;
  z-index: 1;
}

.cta-buttons {
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--color-secondary);
  color: var(--color-white);
  padding: 60px 0 24px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h2 {
  color: var(--color-white);
  font-size: 2rem;
  margin-bottom: 8px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact p {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.8);
}

.footer-contact i {
  color: var(--color-primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-subtitle {
    margin: 0 auto 40px;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-glass-card {
    max-width: 500px;
    margin: 0 auto;
    transform: none;
  }

  .hero-glass-card:hover {
    transform: translateY(-10px);
  }

  .hero-title {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.25rem;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  .glass-panel h2 {
    font-size: 2rem;
  }

  .btn-large {
    width: 100%;
  }

  .navbar {
    padding: 16px 0;
  }

  .btn-nav {
    padding: 8px 16px;
    font-size: 0.9rem;
  }
}

/* Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}
