/* CSS Variables - Design System */
:root {
  --accent-color: #28A745;
  --accent2-color: #20C997;
  --accent3-color: #17A2B8;
  --accent4-color: #6610F2;
  --primary-color: #007BFF;
  --dark-text-color: #212529;
  --gray-text-color: #868E96;
  --button-padding-x: 12px;
  --button-padding-y: 8px;
  --font-family-body: 'Roboto', sans-serif;
  --light-text-color: #F8F9FA;
  --dark-border-color: #495057;
  --light-border-color: #DEE2E6;
  --font-family-heading: 'Poppins', sans-serif;
  --button-rounded-radius: 6px;
  --dark-background-color: #343A40;
  --light-background-color: #E7F1FF;
  --medium-background-color: #CFE2FF;
  --primary-button-text-color: #FFFFFF;
  --secondary-button-bg-color: #6C757D;
  --secondary-button-text-color: #FFFFFF;
  --primary-button-hover-bg-color: #0056B3;
  --primary-button-hover-text-color: #FFFFFF;
  --secondary-button-hover-bg-color: #495057;
  --secondary-button-hover-text-color: #FFFFFF;
}

/* Base Styles */
html, body {
  height: 100%;
  font-family: var(--font-family-body);
}

body {
  background-color: #FFFFFF;
  color: var(--dark-text-color);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-heading);
  color: var(--dark-text-color);
}

/* Utility Classes */
.hovered-element {
  outline: #3871E0 dashed 2px;
}

.clicked-element {
  outline: #3871E0 solid 2px;
}

.clicked-code-section {
  border: #3B82F6 solid 2px;
}

/* Container Styles */
.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container {
    max-width: 640px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 768px;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 1024px;
  }
}

@media (min-width: 1280px) {
  .container {
    max-width: 1280px;
  }
}

/* Header Styles */
header {
  background-color: white;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
}

header .container {
  max-width: 100%;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 7rem; /* 28 in Tailwind units */
}

/* Logo */
header img {
  height: 7rem;
  width: auto;
  padding: 0.5rem 0;
}

/* Navigation */
nav a {
  color: var(--dark-text-color);
  transition: color 0.3s ease;
  font-weight: 500;
}

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

/* Hero Section */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  direction: rtl;
}

#hero .absolute.inset-0 {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
}

#hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#hero h1 {
  font-size: 2.25rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: white;
  font-weight: 700;
}

@media (min-width: 640px) {
  #hero h1 {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  #hero h1 {
    font-size: 4.5rem;
  }
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: var(--button-rounded-radius);
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--primary-button-text-color);
  box-shadow: 0 20px 25px -5px rgba(0, 123, 255, 0.3);
}

.btn-primary:hover {
  background-color: var(--primary-button-hover-bg-color);
  box-shadow: 0 25px 30px -5px rgba(0, 123, 255, 0.4);
  transform: scale(1.05);
}

.btn-secondary {
  background-color: var(--secondary-button-bg-color);
  color: var(--secondary-button-text-color);
}

.btn-secondary:hover {
  background-color: var(--secondary-button-hover-bg-color);
}

/* Section Styles */
section {
  padding: 5rem 0;
}

@media (min-width: 1024px) {
  section {
    padding: 8rem 0;
  }
}

#about {
  background-color: white;
}

#process {
  background: linear-gradient(to bottom, var(--light-background-color), white);
}

#for-who {
  background-color: white;
  direction: rtl;
}

#contact {
  background: linear-gradient(to bottom, var(--dark-background-color), var(--dark-text-color));
  color: white;
  position: relative;
  overflow: hidden;
  direction: rtl;
}

/* Form Styles */
form input,
form select,
form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--light-border-color);
  border-radius: var(--button-rounded-radius);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  text-align: right;
  direction: rtl;
}

form input:focus,
form select:focus,
form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

form label {
  display: block;
  text-align: right;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--dark-text-color);
}

/* Card Styles */
.card {
  background-color: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
  transform: translateY(-0.5rem);
}

/* Process Step Cards */
.step-card {
  position: relative;
  background-color: white;
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border-top: 4px solid var(--primary-color);
  transition: all 0.3s ease;
}

.step-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
  transform: translateY(-0.5rem);
}

.step-number {
  position: absolute;
  top: -1.5rem;
  right: 1.5rem;
  width: 3rem;
  height: 3rem;
  background-color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.25rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

/* Icon Containers */
.icon-circle {
  width: 4rem;
  height: 4rem;
  background-color: var(--light-background-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

/* Grid Layouts */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

@media (min-width: 1024px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.grid-4 {
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 640px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Trust Indicators */
.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  color: white;
  font-weight: 600;
}

/* Checklist Items */
.check-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background-color: #f0f9f0;
  border-radius: 0.75rem;
  border-right: 4px solid var(--accent-color);
  transition: box-shadow 0.3s ease;
}

.check-item:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.check-icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  background-color: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-top: 0.25rem;
}

/* Footer */
footer {
  background-color: var(--dark-background-color);
  color: white;
  padding: 3rem 0;
  direction: rtl;
}

footer a {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

footer img {
  height: 7rem;
  width: auto;
  margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  section {
    padding: 3rem 0;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .hidden-mobile {
    display: none;
  }

  #mobile-menu {
    display: none;
  }

  #mobile-menu.active {
    display: block;
  }

  /* Responsive Header */
  header .container {
    height: auto;
    min-height: 4rem;
    padding: 0.5rem 1rem;
  }

  header img {
    height: auto;
    max-height: 60px;
    padding: 0.25rem 0;
  }
}

@media (max-width: 480px) {
  /* Extra small devices - even smaller logo */
  header .container {
    min-height: 3.5rem;
  }

  header img {
    max-height: 48px;
  }
}

/* Animations */
@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-0.5rem);
  }
}

.animate-bounce {
  animation: bounce 1s infinite;
}

/* Utility Classes */
.text-right {
  text-align: right;
}

.shadow-md {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.shadow-lg {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.shadow-xl {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.shadow-2xl {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.rounded-full {
  border-radius: 9999px;
}

.rounded-2xl {
  border-radius: 1rem;
}

.transition-all {
  transition: all 0.3s ease;
}

.transition-colors {
  transition: color 0.3s ease;
}

.transition-shadow {
  transition: box-shadow 0.3s ease;
}

.transition-transform {
  transition: transform 0.3s ease;
}

.opacity-10 {
  opacity: 0.1;
}

.opacity-20 {
  opacity: 0.2;
}

.opacity-80 {
  opacity: 0.8;
}

.opacity-90 {
  opacity: 0.9;
}

.blur-3xl {
  filter: blur(64px);
}

/* Icon Rotations */
.rotate-90-right {
  transform: rotate(90deg);
}

/* Instagram Card */
.instagram-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.instagram-card:hover {
  transform: scale(1.05);
}

/* RTL Direction Specific */
[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] *:not(i) {
  direction: rtl;
}
