@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800&display=swap');

:root {
  --primary-color: #0056b3;
  --primary-light: #e6f0fa;
  --primary-dark: #003d82;
  --secondary-color: #00a8cc;
  --text-dark: #333333;
  --text-light: #777777;
  --white: #ffffff;
  --bg-color: #f8f9fa;
  --border-radius: 8px;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  --transition: all 0.3s ease-in-out;
}

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

body {
  font-family: 'Tajawal', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-dark);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* Header & Navbar */
header {
  background-color: var(--white);
  box-shadow: var(--box-shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  font-weight: 500;
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-color);
}

.cta-button {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 10px 24px;
  border-radius: var(--border-radius);
  font-weight: 700;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
}

.cta-button:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  color: var(--white);
}

/* Hero Section */
.hero {
  position: relative;
  height: 80vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to left, rgba(0, 86, 179, 0.8), rgba(0, 0, 0, 0.4));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 600px;
}

.hero-content h1 {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-content p {
  font-size: 20px;
  margin-bottom: 30px;
}

/* Section Shared */
.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 36px;
  color: var(--primary-dark);
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background-color: var(--secondary-color);
}

.section-title p {
  color: var(--text-light);
  font-size: 18px;
  margin-top: 20px;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--white);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  text-align: center;
  transition: var(--transition);
  border-bottom: 4px solid transparent;
}

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

.service-icon {
  font-size: 40px;
  color: var(--primary-color);
  margin-bottom: 20px;
  display: inline-flex;
  width: 80px;
  height: 80px;
  background: var(--primary-light);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
}

.service-card h3 {
  font-size: 24px;
  margin-bottom: 15px;
}

.service-card p {
  color: var(--text-light);
  margin-bottom: 20px;
}

/* Contact / Footer */
footer {
  background-color: var(--primary-dark);
  color: var(--white);
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-size: 20px;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.contact-info li {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.contact-info i {
  color: var(--secondary-color);
  font-size: 20px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  display: inline-flex;
  width: 40px;
  height: 40px;
  background-color: rgba(255,255,255,0.1);
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--secondary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 14px;
}

/* Floating Buttons */
.whatsapp-float, .call-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  left: 40px; /* Left for RTL */
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 3px #999;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.whatsapp-float {
  background-color: #25d366;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background-color: #1ebe57;
  color: #FFF;
}

.call-float {
  background-color: #007BFF;
}

.call-float:hover {
  transform: scale(1.1);
  background-color: #0056b3;
  color: #FFF;
}

/* Internal Page Headers */
.page-header {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}

.page-header h1 {
  font-size: 40px;
}

/* Contact Form */
.contact-form {
  background: var(--white);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 16px;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0,86,179,0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

/* Blog Styles */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.blog-card {
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-10px);
}

.blog-img {
  width: 100%;
  height: 200px;
  background-color: #ddd;
  object-fit: cover;
}

.blog-content {
  padding: 25px;
}

.blog-date {
  color: var(--secondary-color);
  font-size: 14px;
  margin-bottom: 10px;
  display: block;
}

.blog-content h3 {
  font-size: 22px;
  margin-bottom: 15px;
}

.blog-content h3 a {
  transition: var(--transition);
}

.blog-content h3 a:hover {
  color: var(--primary-color);
}

/* Contact Call-to-Action */
.contact {
    text-align: center;
}

.contact a {
    display: block;
    width: 250px;
    margin: 10px auto;
    padding: 14px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    transition: var(--transition);
}

.contact a:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.call-btn {
    background: #007BFF;
    color: white;
}

.whatsapp-btn {
    background: #25D366;
    color: white;
}

/* Utility */
.text-center {
  text-align: center;
}

.mt-4 {
  margin-top: 24px;
}

/* Hamburger menu */
.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--primary-color);
  cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 10px 10px rgba(0,0,0,0.1);
  }

  .nav-links.active {
    display: flex;
  }

  .hamburger {
    display: block;
  }
  
  .hero-content h1 {
    font-size: 36px;
  }
}
