/* Custom Properties */
:root {
  --primary: #19a499;
  --primary-dark: #128077;
  --primary-light: #e0f4f2;
  --text-main: #2b3a4a;
  --text-muted: #6b7c93;
  --bg-main: #ffffff;
  --bg-light: #f8fbfb;
  --card-bg: rgba(255, 255, 255, 0.8);
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 20px rgba(25, 164, 153, 0.1);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.08);
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    "IBM Plex Sans Arabic",
    system-ui,
    -apple-system,
    sans-serif;
  color: var(--text-main);
  background-color: var(--bg-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

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

.section-padding {
  padding: 100px 0;
}

.bg-light {
  background-color: var(--bg-light);
}

/* Typography */
h1,
h2,
h3 {
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
}
h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
}
h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
}

.highlight {
  color: var(--primary);
  position: relative;
  display: inline-block;
  z-index: 1;
}

.highlight::after {
  content: "";
  position: absolute;
  bottom: 8px;
  right: 0;
  width: 100%;
  height: 30%;
  background-color: var(--primary-light);
  z-index: -1;
  border-radius: 4px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
  box-shadow: 0 4px 14px rgba(25, 164, 153, 0.4);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(25, 164, 153, 0.5);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
}

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

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 16px 0;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

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

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-weight: 500;
  position: relative;
  padding: 8px 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--primary);
}

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

/* Hero Section */
.hero {
  padding-top: 140px;
  padding-bottom: 80px;
  overflow: hidden;
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: -10%;
  left: -5%;
  width: 50vw;
  height: 50vw;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    var(--primary-light) 0%,
    rgba(255, 255, 255, 0) 70%
  );
  z-index: -1;
}

.hero-container {
  display: flex;
  align-items: center;
  gap: 64px;
}

.hero-content {
  flex: 1;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
}

.hero-image {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
}

.mockup-img {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 340px;
}

.glow-effect {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  background: var(--primary);
  filter: blur(80px);
  opacity: 0.15;
  z-index: 1;
  border-radius: 50%;
}

/* About Section */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 64px;
}

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

.about-card {
  background-color: var(--bg-main);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.03);
  text-align: center;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.about-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    var(--primary-light) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  opacity: 0;
  transition: var(--transition);
  z-index: -1;
}

.about-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.about-card:hover::before {
  opacity: 0.5;
}

.about-card .icon {
  font-size: 3rem;
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background-color: var(--primary-light);
  border-radius: 50%;
}

/* Features Section */
.features-container {
  display: flex;
  align-items: center;
  gap: 80px;
}

.features-image {
  flex: 1;
  display: flex;
  justify-content: center;
  position: relative;
}

.features-content {
  flex: 1;
}

.features-list {
  list-style: none;
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.feature-item {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.feature-icon {
  font-size: 2rem;
  background-color: white;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.feature-text p {
  margin-bottom: 0;
  font-size: 1rem;
}

/* Download Section */
.download-card {
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
  border-radius: var(--radius-lg);
  padding: 80px 40px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.download-card::before,
.download-card::after {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.download-card::before {
  top: -150px;
  left: -100px;
}
.download-card::after {
  bottom: -150px;
  right: -100px;
}

.download-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto;
}

.download-content h2,
.download-content p {
  color: white;
}

.store-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
}

.store-btn img {
  height: 54px;
  width: auto;
  transition: var(--transition);
}

.store-btn:hover img {
  transform: scale(1.05);
}

/* Footer */
.footer {
  background-color: #1a202c;
  color: white;
  padding: 80px 0 24px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 64px;
}

.footer-logo {
  filter: brightness(0) invert(1);
}

.footer-brand p {
  color: #a0aec0;
  margin-top: 16px;
  margin-bottom: 0;
  max-width: 300px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-links a {
  color: #a0aec0;
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  width: 48px;
  height: 48px;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
  color: white;
}

.footer-social a:hover {
  background-color: var(--primary);
  transform: translateY(-3px);
}

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

/* Navigation Menu & Toggle */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  z-index: 1001;
  padding: 8px;
}

.menu-toggle .bar {
  width: 28px;
  height: 3px;
  background-color: var(--primary);
  border-radius: 4px;
  transition: var(--transition);
}

.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* Responsive Design */
@media (max-width: 992px) {
  h1 {
    font-size: 2.5rem;
  }
  .hero-container,
  .features-container {
    flex-direction: column;
    text-align: center;
  }
  .hero-actions {
    justify-content: center;
  }
  .feature-item {
    text-align: right;
  }
  .hero::before {
    left: 50%;
    transform: translateX(-50%);
    width: 80vw;
    height: 80vw;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
  
  .nav-overlay {
    display: block;
    pointer-events: none;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--bg-main);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 80px 24px 40px;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1000;
    gap: 40px;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
    gap: 24px;
  }
  
  .nav-link {
    font-size: 1.25rem;
    display: inline-block;
  }

  .nav-cta {
    width: 100%;
  }

  .nav-cta .btn {
    width: 100%;
  }

  .menu-toggle.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  .menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .hero {
    padding-top: 120px;
    min-height: auto;
  }
  .hero-actions {
    flex-direction: column;
  }
  .btn-large {
    width: 100%;
  }
  .store-buttons {
    flex-direction: column;
    align-items: center;
  }
  .footer-container {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  .footer-brand p {
    margin: 16px auto 0;
  }
  .footer-links {
    align-items: center;
  }
}
