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

:root {
  --primary: #2a9d8f;
  --primary-dark: #1e7a6e;
  --secondary: #264653;
  --accent: #e9c46a;
  --light: #f8fffe;
  --glass: rgba(255, 255, 255, 0.15);
  --glass-border: rgba(255, 255, 255, 0.2);
  --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-soft: 0 10px 40px rgba(42, 157, 143, 0.15);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  color: #333;
  background: linear-gradient(135deg, #f8fffe 0%, #e8f6f3 100%);
  overflow-x: hidden;
}

body[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

/* Premium Header */
header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  padding: 0.8rem 2rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  transition: all 0.3s ease;
}

header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-soft);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.02);
}

.logo img {
  height: 50px;
  width: auto;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(42, 157, 143, 0.2);
}

.logo-text {
  font-size: 1.4rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  gap: 8px;
  background: rgba(42, 157, 143, 0.1);
  padding: 6px;
  border-radius: 30px;
}

.lang-btn {
  padding: 8px 14px;
  border: none;
  background: transparent;
  color: var(--secondary);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.lang-btn:hover {
  background: rgba(42, 157, 143, 0.2);
}

.lang-btn.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 15px rgba(42, 157, 143, 0.3);
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1002;
  padding: 10px;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: var(--primary);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Navigation Modal */
.nav-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--secondary) 0%, #1a3a4a 100%);
  z-index: 1001;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-modal.active {
  opacity: 1;
  visibility: visible;
}

.nav-modal-content {
  text-align: center;
}

.nav-modal-links {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.nav-modal-links a {
  color: white;
  text-decoration: none;
  font-size: 2.5rem;
  font-weight: 700;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.3s ease;
}

.nav-modal.active .nav-modal-links a {
  opacity: 1;
  transform: translateY(0);
}

.nav-modal.active .nav-modal-links a:nth-child(1) { transition-delay: 0.1s; }
.nav-modal.active .nav-modal-links a:nth-child(2) { transition-delay: 0.2s; }
.nav-modal.active .nav-modal-links a:nth-child(3) { transition-delay: 0.3s; }
.nav-modal.active .nav-modal-links a:nth-child(4) { transition-delay: 0.4s; }

.nav-modal-links a:hover {
  color: var(--accent);
  transform: scale(1.05);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 2rem 80px;
  background: 
    linear-gradient(135deg, rgba(42, 157, 143, 0.9) 0%, rgba(38, 70, 83, 0.85) 100%),
    url("https://images.unsplash.com/photo-1576091160550-2173dba999ef?auto=format&fit=crop&w=2000&q=80") center/cover fixed;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: pulse-bg 8s ease-in-out infinite;
}

@keyframes pulse-bg {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  color: white;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  text-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.hero p {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: rgba(255,255,255,0.9);
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn::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 ease;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: white;
  color: var(--primary);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.btn-primary:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.5);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: white;
  transform: translateY(-5px);
}

.btn-accent {
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary);
  border: 2px solid var(--primary);
  font-weight: 700;
}

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

.btn-full {
  width: 100%;
}

/* Booking Modal */
.booking-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.booking-modal.active {
  opacity: 1;
  visibility: visible;
}

.booking-content {
  background: white;
  border-radius: 24px;
  padding: 2.5rem;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow);
  transform: translateY(30px);
  transition: transform 0.3s ease;
}

.booking-modal.active .booking-content {
  transform: translateY(0);
}

.booking-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(42, 157, 143, 0.1);
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--secondary);
  transition: all 0.3s ease;
}

.booking-close:hover {
  background: var(--primary);
  color: white;
}

.booking-content h2 {
  color: var(--secondary);
  margin-bottom: 0.5rem;
  font-size: 1.8rem;
}

.booking-content > p {
  color: #666;
  margin-bottom: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--secondary);
  font-weight: 600;
  font-size: 0.9rem;
}

.form-group input {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: inherit;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(42, 157, 143, 0.1);
}

@media (max-width: 500px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .booking-content {
    padding: 1.5rem;
  }
}

/* Services Section */
.section {
  padding: 100px 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  margin: 1rem auto 0;
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  color: #666;
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 4rem;
}

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

.service-card {
  background: white;
  border-radius: 24px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  border: 1px solid rgba(42, 157, 143, 0.1);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

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

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, rgba(42, 157, 143, 0.1), rgba(42, 157, 143, 0.2));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

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

.service-card p {
  color: #666;
  line-height: 1.7;
}

/* AI Assistant Badge */
.ai-badge {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  padding: 15px 25px;
  border-radius: 60px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  z-index: 2000;
  box-shadow: 0 10px 40px rgba(42, 157, 143, 0.4);
  transition: all 0.3s ease;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.ai-badge:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 50px rgba(42, 157, 143, 0.5);
}

.ai-badge img {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3);
}

.ai-badge span {
  color: white;
  font-weight: 700;
  font-size: 0.95rem;
}

/* Chat Window */
.chat-window {
  position: fixed;
  bottom: 110px;
  right: 30px;
  width: 380px;
  height: 520px;
  background: white;
  border-radius: 24px;
  box-shadow: 0 25px 80px rgba(0,0,0,0.2);
  z-index: 2001;
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: slideUp 0.4s ease;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.chat-window.active {
  display: flex;
}

.chat-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 1.2rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-header-info img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3);
}

.chat-header-text h4 {
  font-size: 1rem;
  margin-bottom: 2px;
}

.chat-header-text span {
  font-size: 0.8rem;
  opacity: 0.8;
}

.chat-close {
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.chat-close:hover {
  background: rgba(255,255,255,0.3);
  transform: rotate(90deg);
}

.chat-messages {
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
  background: linear-gradient(to bottom, #f8fffe, #fff);
}

.message {
  max-width: 85%;
  padding: 12px 18px;
  border-radius: 20px;
  font-size: 0.95rem;
  line-height: 1.5;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.message.bot {
  background: linear-gradient(135deg, #e8f6f3, #d4ede8);
  color: var(--secondary);
  border-bottom-left-radius: 5px;
  align-self: flex-start;
}

.message.user {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-bottom-right-radius: 5px;
  align-self: flex-end;
}

.chat-disclaimer {
  background: #fff8e1;
  padding: 10px 15px;
  font-size: 0.8rem;
  color: #8b6914;
  text-align: center;
  border-top: 1px solid #ffe082;
}

.chat-input-area {
  padding: 1rem;
  border-top: 1px solid #eee;
  display: flex;
  gap: 10px;
  background: white;
}

.chat-input-area input {
  flex: 1;
  padding: 12px 18px;
  border: 2px solid #e8f6f3;
  border-radius: 25px;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.3s ease;
}

.chat-input-area input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(42, 157, 143, 0.1);
}

.chat-input-area button {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.chat-input-area button:hover {
  transform: scale(1.1);
  box-shadow: 0 5px 20px rgba(42, 157, 143, 0.4);
}

/* Detail Service Cards */
.detail-section {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.detail-card {
  text-align: left;
}

.detail-subtitle {
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0 0;
}

.service-list li {
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: 0.8rem;
  line-height: 1.6;
  color: #555;
}

.service-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

body[dir="rtl"] .detail-card {
  text-align: right;
}

body[dir="rtl"] .service-list li {
  padding-left: 0;
  padding-right: 1.8rem;
}

body[dir="rtl"] .service-list li::before {
  left: auto;
  right: 0;
}

/* Footer */
footer {
  background: var(--secondary);
  color: white;
  text-align: center;
  padding: 3rem 2rem;
}

footer p {
  opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
  header {
    padding: 0.6rem 1rem;
  }
  
  header .lang-switcher {
    display: none;
  }
  
  .nav-modal .lang-switcher {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .nav-modal .lang-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
  }
  
  .nav-modal .lang-btn.active {
    background: var(--accent);
    color: var(--secondary);
  }
  
  .nav-modal .lang-btn:hover {
    background: rgba(255, 255, 255, 0.35);
  }
  
  .hero {
    padding: 100px 1.5rem 60px;
  }
  
  .section {
    padding: 60px 1.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .chat-window {
    width: 90%;
    right: 5%;
    bottom: 100px;
    height: 60vh;
  }
  
  .ai-badge {
    right: 15px;
    bottom: 15px;
    padding: 12px 20px;
  }
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}