/* Custom CSS for Babylon Tax Firm */
:root {
  --primary-blue: #1e3a8a;
  --secondary-blue: #3b82f6;
  --dark-blue: #1e40af;
  --light-blue: #dbeafe;
  --gold: #f59e0b;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  overflow-x: hidden;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Navigation */
.nav-shadow {
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--secondary-blue);
  transition: width 0.3s ease;
}

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

/* Hero Section */
.hero-gradient {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
}

/* Cards */
.service-card {
  transition: all 0.3s ease;
  border: 1px solid #e5e7eb;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  border-color: var(--secondary-blue);
}

/* Buttons */
.btn-primary {
  background-color: var(--primary-blue);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--dark-blue);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(30, 58, 138, 0.3);
}

/* Section headings */
.section-heading {
  position: relative;
  display: inline-block;
}

.section-heading::after {
  content: '';
  position: absolute;
  width: 60%;
  height: 3px;
  background-color: var(--gold);
  bottom: -10px;
  left: 20%;
}

/* Contact form */
.contact-form input,
.contact-form textarea {
  border: 2px solid #e5e7eb;
  transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--secondary-blue);
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Mobile menu */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.mobile-menu.active {
  max-height: 500px;
}

/* Footer */
.footer-gradient {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
}

/* WhatsApp button */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 40px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background-color: #20ba5a;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.lang-btn {
  padding: 0.5rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.5rem;
  background: white;
  color: #4b5563;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.lang-btn:hover {
  border-color: var(--secondary-blue);
  color: var(--secondary-blue);
}

.lang-btn.active-lang {
  background: var(--primary-blue);
  border-color: var(--primary-blue);
  color: white;
}

/* RTL Support for Arabic */
[dir="rtl"] {
  text-align: right;
}

[dir="rtl"] .whatsapp-float {
  right: auto;
  left: 40px;
}

[dir="rtl"] .nav-link::after {
  left: auto;
  right: 0;
}

[dir="rtl"] .service-card,
[dir="rtl"] .feature-card {
  text-align: right;
}

[dir="rtl"] ul {
  padding-right: 1.5rem;
  padding-left: 0;
}

[dir="rtl"] .flex {
  flex-direction: row-reverse;
}

/* Responsive */
@media (max-width: 768px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
    font-size: 24px;
  }
  
  [dir="rtl"] .whatsapp-float {
    right: auto;
    left: 20px;
  }
  
  .lang-switcher {
    flex-direction: column;
    gap: 0.25rem;
  }
  
  .lang-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.875rem;
  }
}
