/* ========================================
   Global Styles & Variables
   ======================================== */

:root {
  --primary-color: #1e3a8a;
  --secondary-color: #0ea5e9;
  --accent-color: #f59e0b;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --bg-light: #f9fafb;
  --bg-white: #ffffff;
  --border-color: #e5e7eb;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-white);
  direction: rtl;
  text-align: right;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   Typography
   ======================================== */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-light);
  line-height: 1.8;
}

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

a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

/* ========================================
   Layout & Container
   ======================================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ========================================
   Header & Navigation
   ======================================== */

.header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-md);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.logo {
  flex: 1;
  min-width: 200px;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  flex-shrink: 0;
}

.logo-text {
  flex: 1;
  min-width: 0;
}

.logo h1 {
  font-size: 1.8rem;
  margin-bottom: 0.25rem;
  color: white;
  word-break: break-word;
}

.tagline {
  font-size: 0.9rem;
  opacity: 0.95;
  margin-bottom: 0;
  color: #fbbf24;
  font-weight: 500;
  word-break: break-word;
}

.nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.nav-link {
  color: white;
  font-weight: 500;
  transition: var(--transition);
  padding: 0.5rem 0.75rem;
  border-bottom: 2px solid transparent;
  font-size: 0.95rem;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  border-bottom-color: var(--accent-color);
  text-decoration: none;
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.9) 0%, rgba(14, 165, 233, 0.9) 100%), 
              url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="1200" height="600" fill="url(%23grid)"/></svg>');
  background-size: cover;
  background-position: center;
  color: white;
  padding: 4rem 1.5rem;
  text-align: center;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  width: 100%;
}

.hero-content h2 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  line-height: 1.3;
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.8;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========================================
   Buttons
   ======================================== */

.btn {
  display: inline-block;
  padding: 0.875rem 1.75rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  text-align: center;
  min-height: 44px;
  min-width: 44px;
  touch-action: manipulation;
}

.btn-primary {
  background-color: var(--accent-color);
  color: white;
}

.btn-primary:hover {
  background-color: #d97706;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background-color: #10b981;
  color: white;
}

.btn-secondary:hover {
  background-color: #059669;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}

.btn-secondary:active {
  transform: translateY(0);
}

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

.btn-outline:hover {
  background-color: var(--secondary-color);
  color: white;
  text-decoration: none;
}

.btn-outline:active {
  transform: scale(0.98);
}

/* ========================================
   Sections
   ======================================== */

section {
  padding: 4rem 1.5rem;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.25rem;
  color: var(--primary-color);
  position: relative;
  padding-bottom: 1.5rem;
  line-height: 1.3;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
  border-radius: 2px;
}

/* ========================================
   Services Section
   ======================================== */

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

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card {
  background: white;
  padding: 2.5rem 1.5rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  text-align: center;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1;
}

.service-card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.service-card p {
  margin-bottom: 1.5rem;
  flex-grow: 1;
  font-size: 0.95rem;
}

/* ========================================
   Why Us Section
   ======================================== */

.why-us {
  background-color: white;
}

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

.feature {
  background: var(--bg-light);
  padding: 2rem 1.5rem;
  border-radius: 1rem;
  text-align: center;
  transition: var(--transition);
  border-left: 4px solid var(--secondary-color);
}

.feature:hover {
  background: white;
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
  border-left-color: var(--accent-color);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
  line-height: 1;
}

.feature h4 {
  color: var(--primary-color);
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.feature p {
  font-size: 0.9rem;
  margin-bottom: 0;
  line-height: 1.7;
}

/* ========================================
   Contact Section
   ======================================== */

.contact-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.contact-item {
  text-align: center;
  padding: 2rem 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  backdrop-filter: blur(10px);
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
}

.contact-item h4 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: white;
}

.contact-item a {
  color: var(--accent-color);
  font-weight: 600;
  font-size: 1.1rem;
  word-break: break-all;
}

.contact-item a:hover {
  text-decoration: underline;
}

.contact-item p {
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 0;
  font-size: 0.9rem;
}

/* ========================================
   Footer
   ======================================== */

.footer {
  background-color: var(--text-dark);
  color: white;
  padding: 2.5rem 1.5rem;
  text-align: center;
  border-top: 2px solid var(--border-color);
}

.footer p {
  margin-bottom: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

/* ========================================
   WhatsApp Floating Button
   ======================================== */

.whatsapp-btn {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  z-index: 99;
  text-decoration: none;
  border: none;
  cursor: pointer;
  min-height: 60px;
  min-width: 60px;
}

.whatsapp-btn:hover {
  background-color: #20ba5a;
  transform: scale(1.1);
  text-decoration: none;
}

.whatsapp-btn:active {
  transform: scale(0.95);
}

/* ========================================
   Responsive Design - Tablets (768px and below)
   ======================================== */

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.3rem;
  }

  .header .container {
    flex-direction: column;
    gap: 1rem;
  }

  .logo {
    width: 100%;
    justify-content: center;
  }

  .logo-img {
    width: 50px;
    height: 50px;
  }

  .logo h1 {
    font-size: 1.5rem;
  }

  .tagline {
    font-size: 0.85rem;
  }

  .nav {
    gap: 1rem;
    width: 100%;
    justify-content: center;
  }

  .nav-link {
    font-size: 0.85rem;
    padding: 0.4rem 0.6rem;
  }

  .hero {
    padding: 3rem 1rem;
    min-height: 350px;
  }

  .hero-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .hero-content p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 0.75rem;
  }

  .btn {
    width: 100%;
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
  }

  section {
    padding: 3rem 1rem;
  }

  .section-title {
    font-size: 1.8rem;
    margin-bottom: 2.5rem;
  }

  .services-grid,
  .features-grid,
  .contact-info {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .service-card {
    padding: 2rem 1.5rem;
  }

  .feature {
    padding: 1.75rem 1.5rem;
  }

  .contact-item {
    padding: 1.75rem 1.5rem;
  }

  .whatsapp-btn {
    bottom: 1.5rem;
    left: 1.5rem;
    width: 55px;
    height: 55px;
    font-size: 1.3rem;
  }
}

/* ========================================
   Responsive Design - Mobile (480px and below)
   ======================================== */

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  h1 {
    font-size: 1.6rem;
  }

  h2 {
    font-size: 1.3rem;
  }

  h3 {
    font-size: 1.1rem;
  }

  h4 {
    font-size: 1rem;
  }

  .container {
    padding: 0 1rem;
  }

  .header {
    padding: 0.75rem 0;
  }

  .header .container {
    gap: 0.75rem;
  }

  .logo {
    gap: 0.75rem;
  }

  .logo-img {
    width: 45px;
    height: 45px;
  }

  .logo h1 {
    font-size: 1.2rem;
    margin-bottom: 0.15rem;
  }

  .tagline {
    font-size: 0.75rem;
  }

  .nav {
    gap: 0.75rem;
  }

  .nav-link {
    font-size: 0.75rem;
    padding: 0.3rem 0.5rem;
  }

  .hero {
    padding: 2.5rem 1rem;
    min-height: 320px;
  }

  .hero-content h2 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
  }

  .hero-content p {
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 0.5rem;
  }

  .btn {
    width: 100%;
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    border-radius: 0.4rem;
  }

  section {
    padding: 2.5rem 1rem;
  }

  .section-title {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
  }

  .section-title::after {
    width: 60px;
    height: 3px;
  }

  .services-grid,
  .features-grid,
  .contact-info {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .service-card {
    padding: 1.75rem 1.25rem;
  }

  .service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
  }

  .service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
  }

  .service-card p {
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
  }

  .feature {
    padding: 1.5rem 1.25rem;
    border-left-width: 3px;
  }

  .feature-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
  }

  .feature h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }

  .feature p {
    font-size: 0.85rem;
  }

  .contact-item {
    padding: 1.5rem 1.25rem;
  }

  .contact-item h4 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
  }

  .contact-item a {
    font-size: 1rem;
  }

  .contact-item p {
    font-size: 0.85rem;
  }

  .footer {
    padding: 2rem 1rem;
  }

  .footer p {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
  }

  .whatsapp-btn {
    bottom: 1rem;
    left: 1rem;
    width: 50px;
    height: 50px;
    font-size: 1.1rem;
  }
}

/* ========================================
   Extra Small Devices (320px and below)
   ======================================== */

@media (max-width: 320px) {
  html {
    font-size: 13px;
  }

  .logo-img {
    width: 40px;
    height: 40px;
  }

  .logo h1 {
    font-size: 1rem;
  }

  .tagline {
    font-size: 0.7rem;
  }

  .nav-link {
    font-size: 0.7rem;
    padding: 0.25rem 0.4rem;
  }

  .hero {
    padding: 2rem 0.75rem;
    min-height: 300px;
  }

  .hero-content h2 {
    font-size: 1.3rem;
  }

  .hero-content p {
    font-size: 0.85rem;
  }

  section {
    padding: 2rem 0.75rem;
  }

  .section-title {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
  }

  .btn {
    padding: 0.7rem 1rem;
    font-size: 0.85rem;
  }

  .whatsapp-btn {
    width: 45px;
    height: 45px;
    font-size: 1rem;
  }
}

/* ========================================
   Print Styles
   ======================================== */

@media print {
  .header,
  .footer,
  .whatsapp-btn,
  .cta-buttons {
    display: none;
  }
}
