:root {
  --color-primary: #78B3CE;
  --color-secondary: #C9E6F0;
  --color-accent: #F96E2A;
  --color-background: #FBF8EF;
  --color-text: #2C3E50;
  --color-text-light: #5A6C7D;

  --font-primary: 'Almarai', sans-serif;
  --font-secondary: 'Cairo', sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;

  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.15);

  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }

  100% {
    background-position: 1000px 0;
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.fade-in {
  animation: fadeIn 0.8s ease-out;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-background);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-secondary);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-md);
  color: var(--color-text);
}

h1 {
  font-size: 1.75rem;
}

h2 {
  font-size: 1.5rem;
}

h3 {
  font-size: 1.25rem;
}

h4 {
  font-size: 1.125rem;
}

p {
  margin-bottom: var(--space-md);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.header {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  padding: var(--space-md) 0;
  position: relative;
  box-shadow: var(--shadow-md);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  width: 4rem;
  position: relative;
  z-index: 20;
}

.logo img {
  display: inline-block;
  transform: rotate(-5deg);
  transition: transform var(--transition-normal);
}

.logo:hover img {
  transform: rotate(0);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .logo img {
    width: 3rem;
    position: relative;
    z-index: 20;
  }
}

@media (max-width: 768px) {
  .logo img {
    width: 3rem;
    position: relative;
    z-index: 20;
  }
}

@media (max-width: 576px) {
  .logo img {
    width: 2rem;
    position: relative;
    z-index: 20;
  }
}

@media (max-width: 400px) {
  .logo img {
    width: 2rem;
    position: relative;
    z-index: 20;
  }
}

.nav {
  display: flex;
  gap: var(--space-lg);
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.nav-link {
  color: var(--color-background);
  font-weight: 600;
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-lg);
  transition: background-color var(--transition-base);
}

.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--color-background);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-background);
  font-size: 1.5rem;
  cursor: pointer;
  padding: var(--space-xs);
}

.mobile-menu {
  display: none;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base);
  margin-top: 0;
  max-height: 0;
  overflow: hidden;
}

.mobile-menu.active {
  display: block;
  opacity: 1;
  visibility: visible;
  margin-top: var(--space-md);
  max-height: 500px;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.mobile-nav-link {
  color: var(--color-background);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  display: block;
  font-weight: 600;
}

.mobile-nav-link:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.hero {
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
  padding: var(--space-2xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.1;
  background-image:
    repeating-linear-gradient(45deg, transparent, transparent 2px, rgba(255, 255, 255, 0.1) 2px, rgba(255, 255, 255, 0.1) 4px),
    repeating-linear-gradient(-45deg, transparent, transparent 2px, rgba(255, 255, 255, 0.1) 2px, rgba(255, 255, 255, 0.1) 4px);
  pointer-events: none;
  animation: shimmer 20s linear infinite;
  background-size: 200px 200px;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 2rem;
  color: var(--color-background);
  margin-bottom: var(--space-lg);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--color-background);
  margin-bottom: var(--space-xl);
  opacity: 0.95;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-interactive {
  display: inline-block;
  padding: var(--space-md) var(--space-xl);
  background-color: var(--color-accent);
  color: var(--color-background);
  border-radius: var(--radius-xl);
  font-weight: 700;
  transition: all var(--transition-base);
  cursor: pointer;
  border: 2px solid transparent;
  animation: fadeInUp 1.2s ease-out 0.4s both;
  position: relative;
  overflow: hidden;
}

.hero-interactive::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.hero-interactive:hover::before {
  width: 300px;
  height: 300px;
}

.hero-interactive:hover {
  background-color: var(--color-background);
  color: var(--color-accent);
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}

.section {
  padding: var(--space-2xl) 0;
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-xl);
  color: var(--color-primary);
}

.tiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.tile {
  background: var(--color-background);
  border: 2px solid var(--color-secondary);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
}

.tile:nth-child(1) {
  animation-delay: 0.1s;
}

.tile:nth-child(2) {
  animation-delay: 0.2s;
}

.tile:nth-child(3) {
  animation-delay: 0.3s;
}

.tile:nth-child(4) {
  animation-delay: 0.4s;
}

.tile::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: repeating-linear-gradient(45deg,
      transparent,
      transparent 10px,
      rgba(120, 179, 206, 0.05) 10px,
      rgba(120, 179, 206, 0.05) 20px);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.tile:hover::before {
  opacity: 1;
}

.tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}

.tile-icon {
  font-size: 2rem;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
  transition: transform var(--transition-base);
  display: inline-block;
}

.tile:hover .tile-icon {
  transform: scale(1.1) rotate(5deg);
  animation: pulse 1s ease-in-out infinite;
}

.tile-title {
  font-size: 1.125rem;
  margin-bottom: var(--space-sm);
  color: var(--color-primary);
}

.tile-description {
  font-size: 0.8125rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.product-card {
  background: var(--color-background);
  border: 2px solid var(--color-secondary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
}

.product-card:nth-child(1) {
  animation-delay: 0.1s;
}

.product-card:nth-child(2) {
  animation-delay: 0.2s;
}

.product-card:nth-child(3) {
  animation-delay: 0.3s;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}

.product-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--color-background);
  transition: transform var(--transition-base);
  position: relative;
  overflow: hidden;
}

.product-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.product-card:hover .product-image::before {
  left: 100%;
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

.product-info {
  padding: var(--space-lg);
}

.product-name {
  font-size: 1.125rem;
  margin-bottom: var(--space-sm);
  color: var(--color-primary);
}

.product-description {
  font-size: 0.8125rem;
  color: var(--color-text-light);
  margin-bottom: var(--space-md);
}

.product-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
}

.product-button {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  background-color: var(--color-primary);
  color: var(--color-background);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-secondary);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all var(--transition-base);
  text-align: center;
  text-decoration: none;
  display: inline-block;
}

.product-button:hover {
  background-color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--color-background);
}

.contact-section {
  background: var(--color-secondary);
  padding: var(--space-2xl) 0;
  border-radius: var(--radius-xl);
  margin: var(--space-2xl) 0;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}

.contact-form {
  background: var(--color-background);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 600;
  color: var(--color-text);
  font-size: 0.875rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  border: 2px solid var(--color-secondary);
  border-radius: var(--radius-md);
  font-family: var(--font-primary);
  font-size: 0.875rem;
  transition: border-color var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.checkbox-input {
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.checkbox-label {
  font-size: 0.8125rem;
  color: var(--color-text-light);
}

.btn-submit {
  width: 100%;
  padding: var(--space-md);
  background-color: var(--color-accent);
  color: var(--color-background);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-secondary);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-base);
}

.btn-submit:hover {
  background-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 400px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.footer {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  padding: var(--space-2xl) 0 var(--space-lg);
  margin-top: var(--space-2xl);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-column h4 {
  color: var(--color-background);
  margin-bottom: var(--space-md);
  font-size: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-link {
  color: var(--color-background);
  opacity: 0.9;
  font-size: 0.8125rem;
  margin-bottom: var(--space-xs);
  display: block;
  transition: opacity var(--transition-fast);
}

.footer-link:hover {
  opacity: 1;
  color: var(--color-background);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--color-background);
  font-size: 0.75rem;
  opacity: 0.8;
}

.privacy-popup {
  position: fixed;
  bottom: var(--space-md);
  left: var(--space-md);
  right: var(--space-md);
  background: var(--color-background);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  max-width: 600px;
  margin: 0 auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-base);
}

.privacy-popup.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.privacy-popup-content {
  margin-bottom: var(--space-md);
}

.privacy-popup-title {
  font-size: 1rem;
  margin-bottom: var(--space-sm);
  color: var(--color-primary);
}

.privacy-popup-text {
  font-size: 0.8125rem;
  color: var(--color-text-light);
  margin-bottom: var(--space-md);
}

.privacy-popup-buttons {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.btn-accept,
.btn-decline {
  padding: var(--space-sm) var(--space-lg);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-accept {
  background-color: var(--color-accent);
  color: var(--color-background);
}

.btn-accept:hover {
  background-color: var(--color-primary);
}

.btn-decline {
  background-color: transparent;
  color: var(--color-text);
  border: 2px solid var(--color-secondary);
}

.btn-decline:hover {
  border-color: var(--color-primary);
}

.error-page {
  text-align: center;
  padding: var(--space-2xl) 0;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.error-code {
  font-size: 4rem;
  font-weight: 800;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
}

.error-message {
  font-size: 1.25rem;
  color: var(--color-text);
  margin-bottom: var(--space-xl);
}

.thank-you-page {
  text-align: center;
  padding: var(--space-2xl) 0;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thank-you-title {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: var(--space-lg);
}

.thank-you-message {
  font-size: 1.125rem;
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }

  .menu-toggle {
    display: block;
  }

  .nav {
    display: none;
  }

  .mobile-menu {
    display: none;
  }

  .mobile-menu.active {
    display: block;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .hero-subtitle {
    font-size: 0.875rem;
  }

  .tiles-grid,
  .products-grid {
    grid-template-columns: 1fr;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .privacy-popup {
    left: var(--space-sm);
    right: var(--space-sm);
    bottom: var(--space-sm);
  }
}

@media (max-width: 480px) {
  html {
    font-size: 12px;
  }

  .container {
    padding: 0 var(--space-sm);
  }

  .section {
    padding: var(--space-xl) 0;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.25rem;
  }
}

.stats-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  padding: var(--space-2xl) 0;
  color: var(--color-background);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-xl);
  text-align: center;
}

.stat-item {
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
}

.stat-item:nth-child(1) {
  animation-delay: 0.1s;
}

.stat-item:nth-child(2) {
  animation-delay: 0.2s;
}

.stat-item:nth-child(3) {
  animation-delay: 0.3s;
}

.stat-item:nth-child(4) {
  animation-delay: 0.4s;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  font-family: var(--font-secondary);
  margin-bottom: var(--space-xs);
  display: block;
}

.stat-label {
  font-size: 1rem;
  opacity: 0.9;
}

.testimonial-section {
  background: var(--color-secondary);
  padding: var(--space-2xl) 0;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.testimonial-card {
  background: var(--color-background);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border-left: 4px solid var(--color-accent);
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
}

.testimonial-card:nth-child(1) {
  animation-delay: 0.1s;
}

.testimonial-card:nth-child(2) {
  animation-delay: 0.2s;
}

.testimonial-card:nth-child(3) {
  animation-delay: 0.3s;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: var(--space-md);
  color: var(--color-text-light);
}

.testimonial-author {
  font-weight: 700;
  color: var(--color-primary);
}

.feature-highlight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
  margin: var(--space-2xl) 0;
}

.feature-content {
  opacity: 0;
  animation: slideInLeft 0.8s ease-out forwards;
}

.feature-image {
  opacity: 0;
  animation: fadeIn 1s ease-out 0.3s forwards;
}

.cta-section {
  background: linear-gradient(135deg, var(--color-accent) 0%, #e85d1f 100%);
  padding: var(--space-2xl) 0;
  text-align: center;
  color: var(--color-background);
}

.cta-title {
  font-size: 2rem;
  margin-bottom: var(--space-lg);
  color: var(--color-background);
}

.cta-button {
  display: inline-block;
  padding: var(--space-md) var(--space-2xl);
  background: var(--color-background);
  color: var(--color-accent);
  border-radius: var(--radius-xl);
  font-weight: 700;
  transition: all var(--transition-base);
  border: 2px solid transparent;
}

.cta-button:hover {
  background: transparent;
  border-color: var(--color-background);
  color: var(--color-background);
  transform: scale(1.05);
}

.disclaimer-box {
  background: #fff3cd;
  border-left: 4px solid #ffc107;
  padding: var(--space-md);
  margin: var(--space-lg) 0;
  border-radius: var(--radius-md);
  font-size: 0.8125rem;
}

.disclaimer-box strong {
  color: #856404;
}

.trust-badges {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
  padding: var(--space-xl) 0;
}

.trust-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  opacity: 0;
  animation: fadeIn 0.8s ease-out forwards;
}

.trust-badge:nth-child(1) {
  animation-delay: 0.1s;
}

.trust-badge:nth-child(2) {
  animation-delay: 0.2s;
}

.trust-badge:nth-child(3) {
  animation-delay: 0.3s;
}

.trust-badge:nth-child(4) {
  animation-delay: 0.4s;
}

.trust-badge-icon {
  font-size: 2rem;
  color: var(--color-primary);
}

.trust-badge-text {
  font-size: 0.75rem;
  color: var(--color-text-light);
  text-align: center;
}

@media (max-width: 768px) {
  .feature-highlight {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 320px) {
  html {
    font-size: 11px;
  }

  .hero-interactive {
    padding: var(--space-sm) var(--space-lg);
    font-size: 0.875rem;
  }

  .tile,
  .product-card {
    padding: var(--space-md);
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }
}