/* Start Variables */
:root {
  --main-blue: #2563eb;
  /* Modern Royal Blue */
  --dark-blue: #1e40af;
  --accent-color: #f59e0b;
  --text-dark: #1e293b;
  --text-light: #64748b;
  --bg-light: #f8fafc;
  --white: #ffffff;
  --section-padding: 100px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --transition: all 0.3s ease;
}

/* End Variables */

/* Start Global Rules */
* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

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

body {
  font-family: "Cairo", "Open Sans", sans-serif;
  color: var(--text-dark);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

/* Container */
.container {
  padding-left: 20px;
  padding-right: 20px;
  margin-left: auto;
  margin-right: auto;
}

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

@media (min-width: 992px) {
  .container {
    width: 970px;
  }
}

@media (min-width: 1200px) {
  .container {
    width: 1170px;
  }
}

/* Section Title Generic */
.section-header {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}

.section-header h2,
.section-title {
  font-size: 2.5rem;
  color: var(--text-dark);
  margin-bottom: 15px;
  font-weight: 700;
  position: relative;
  display: inline-block;
  z-index: 1;
}

.section-header h2::after,
.section-title::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 12px;
  background-color: rgba(37, 99, 235, 0.15);
  /* Light blue highlight */
  z-index: -1;
  transform: skewX(-20deg);
  border-radius: 4px;
}

.section-header p {
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Header Styles */
/* Upper Bar */
.upper-bar {
  background-color: var(--main-blue);
  color: white;
  padding: 10px 0;
  font-size: 0.9rem;
}

.upper-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.contact-info {
  display: flex;
  gap: 20px;
  align-items: center;
}

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

.social-icons a {
  color: white;
  opacity: 0.8;
  transition: var(--transition);
}

.social-icons a:hover {
  opacity: 1;
  transform: translateY(-2px);
}

/* Main Header */
.main-header {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 15px 0;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 60px;
  /* Slightly larger */
}

.nav-menu ul {
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  color: var(--text-dark);
  font-weight: 700;
  font-size: 1rem;
  transition: var(--transition);
  position: relative;
  padding: 5px 0;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 3px;
  bottom: 0;
  right: 0;
  background-color: var(--main-blue);
  transition: var(--transition);
  border-radius: 2px;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--main-blue);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

/* Header Actions/Icons (if user brings them back) */
.header-actions {
  display: none;
}

/* Hero Section */
.hero {
  padding: 120px 0;
  background: linear-gradient(135deg, #EFF6FF 0%, #FFFFFF 100%);
  overflow: hidden;
  position: relative;
}

/* Abstract Background Shapes */
.hero::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  z-index: 0;
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.hero-content .subtitle {
  display: inline-block;
  background-color: rgba(37, 99, 235, 0.1);
  color: var(--main-blue);
  padding: 8px 16px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.hero-content h1 {
  font-size: 3.5rem;
  color: var(--text-dark);
  margin: 0 0 25px;
  line-height: 1.3;
  font-weight: 800;
}

.hero-desc {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 40px;
  line-height: 1.8;
}

.hero-btns {
  display: flex;
  gap: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 35px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--main-blue);
  color: white;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.btn-primary:hover {
  background-color: var(--dark-blue);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.5);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--text-dark);
  color: var(--text-dark);
}

.btn-outline:hover {
  border-color: var(--main-blue);
  color: var(--main-blue);
  background-color: white;
  transform: translateY(-3px);
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  position: relative;
}

.hero-image img {
  width: 100%;
  max-width: 480px;
  /* larger */
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }
}

/* About Us Section */
.about-us {
  padding: var(--section-padding) 0;
  background-color: var(--white);
}

.about-us .container {
  display: flex;
  align-items: center;
  gap: 80px;
}

.image-gallery {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  position: relative;
}

.image-gallery::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 20px;
  right: 20px;
  border: 3px solid var(--accent-color);
  border-radius: var(--radius-md);
  z-index: 0;
  opacity: 0.3;
}

.img-box {
  position: relative;
  height: 200px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  z-index: 1;
  transition: var(--transition);
}

.img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.img-box:hover img {
  transform: scale(1.1);
}

.img-2 {
  transform: translateY(30px);
}

/* Stagger effect */
.img-4 {
  transform: translateY(30px);
}

.about-content {
  flex: 1;
}

.about-content p {
  color: var(--text-light);
  line-height: 1.9;
  font-size: 1.1rem;
  margin-bottom: 30px;
}

/* Services Section */
.services {
  background-color: var(--bg-light);
  padding: var(--section-padding) 0;
}

.services-header {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 60px;
}

.filter-btn {
  background-color: white;
  border: 1px solid #e2e8f0;
  padding: 12px 25px;
  border-radius: 50px;
  color: var(--text-light);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-sm);
}

.filter-btn i {
  font-size: 1.1rem;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--main-blue);
  color: white;
  border-color: var(--main-blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: white;
  border-radius: var(--radius-md);
  padding: 25px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid #f1f5f9;
  position: relative;
  overflow: hidden;
}

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

.service-card .image {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.service-card .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.icon-overlay {
  display: none;
  /* Cleaner look without overlay icon blocking image */
}

.service-card .text {
  flex: 1;
  text-align: right;
  direction: rtl;
}

.service-card h3 {
  font-size: 1.25rem;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.service-card p,
.service-card ul {
  font-size: 0.95rem;
  color: var(--text-light);
  margin: 0;
  line-height: 1.6;
}

.service-card ul {
  list-style: disc;
  padding-right: 20px;
}

/* Videos Section */
.videos {
  padding: var(--section-padding) 0;
  background-color: white;
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.video-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background-color: black;
  transition: var(--transition);
  aspect-ratio: 9 / 16;
  /* Vertical video optimization */
}

.video-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Footer */
.footer {
  background-color: #0f172a;
  /* Dark Slate */
  padding: 80px 0 40px;
  color: #94a3b8;
}

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

.footer h3 {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 15px;
}

.footer h3 .line {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 50px;
  height: 3px;
  background-color: var(--accent-color);
}

.footer-links a {
  color: #cbd5e1;
  padding: 8px 0;
  display: block;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-links a:hover {
  color: var(--accent-color);
  padding-right: 10px;
}

.footer-social {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 20px;
}

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

.footer-social a:hover {
  background-color: var(--main-blue);
  transform: scale(1.1);
}

/* Responsive */
@media (max-width: 991px) {
  .hero .container {
    flex-direction: column;
    text-align: center;
    gap: 50px;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-image {
    justify-content: center;
  }

  .about-us .container {
    flex-direction: column-reverse;
  }

  .image-gallery::before {
    display: none;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  /* Mobile Nav */
  .toggle-menu {
    display: block;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: white;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-menu ul {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}

@media (max-width: 767px) {
  .upper-bar {
    display: none;
    /* Hide top bar on mobile */
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .btn {
    padding: 12px 25px;
    font-size: 0.9rem;
  }

  .filter-btn span {
    display: none;
    /* Hide text on very small screens if needed, or keep it. Keeping it is better UX. */
    display: inline;
  }

  .filter-btn {
    padding: 10px 15px;
  }

  .service-card {
    flex-direction: column;
    text-align: center;
  }

  .service-card .text {
    text-align: center;
  }

  .service-card .image {
    margin: 0 auto;
  }
}

/* Toggle Menu Element style (it was hidden in desktop) */
.toggle-menu {
  display: none;
}

@media (max-width: 991px) {
  .toggle-menu {
    display: block;
  }
}