/* Layout Styles */

/* Navigation */
.navbar {
  background-color: var(--primary-color);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
  transition: background-color 0.3s ease;
  will-change: background-color;
}

.navbar.scrolled {
  background-color: rgba(10, 37, 64, 0.98);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-img {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo h1 {
  color: var(--white);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 1px;
  margin: 0;
}

.logo-subtitle {
  color: var(--accent-color);
  font-size: 12px;
  margin-top: -5px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
  align-items: center;
}

.nav-menu a {
  color: var(--white);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.3s ease;
  padding: 8px 0;
}

.nav-menu a:hover {
  color: var(--accent-color);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 24px;
  cursor: pointer;
}

/* Language Switcher */
.lang-switcher {
  margin-left: 10px;
}

.lang-btn {
  background-color: rgba(255, 255, 255, 0.1);
  border: 2px solid var(--accent-color);
  color: var(--white);
  padding: 8px 18px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-btn:hover {
  background-color: var(--accent-color);
  transform: translateY(-2px);
}

.lang-btn i {
  font-size: 18px;
}

/* Hero Section */
.hero {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  min-height: 60vh;
  display: flex;
  align-items: center;
  position: relative;
  margin-top: 70px;
  overflow: hidden;
  perspective: 1000px;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 37, 64, 0.85) 0%,
    rgba(30, 73, 118, 0.85) 100%
  );
  z-index: 1;
}

.hero-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 60px 0;
}

.hero-title {
  font-size: 56px;
  font-weight: 700;
  margin-bottom: 20px;
  animation: fadeInUp 1s ease;
  color: #ff6b35;
}

.hero-subtitle {
  font-size: 22px;
  margin-bottom: 50px;
  opacity: 0.9;
  animation: fadeInUp 1s ease 0.2s both;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 40px;
  animation: fadeInUp 1s ease 0.4s both;
}

/* Section Styles */
section {
  padding: 80px 0;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-section {
  opacity: 0;
  transform: translateY(50px);
}

.animate-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 40px;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.section-header p {
  font-size: 18px;
  color: var(--medium-gray);
}

.divider {
  width: 80px;
  height: 4px;
  background-color: var(--accent-color);
  margin: 0 auto 20px;
}

/* About Section */
.about {
  background-color: var(--light-gray);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-left {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.about-text {
  font-size: 16px;
  line-height: 1.8;
}

.about-text .lead {
  font-size: 18px;
  font-weight: 500;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.about-text p {
  margin-bottom: 15px;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

/* Gallery Section */
.gallery {
  background-color: var(--white);
}

.gallery-slider {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
}

.gallery-container {
  position: relative;
  width: 100%;
  height: 600px;
}

.gallery-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-slide.active {
  opacity: 1;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-nav:hover {
  background: var(--accent-color);
  color: var(--white);
  transform: translateY(-50%) scale(1.1);
}

.gallery-nav.prev {
  left: 20px;
}

.gallery-nav.next {
  right: 20px;
}

.gallery-nav i {
  font-size: 20px;
  color: var(--primary-color);
}

.gallery-nav:hover i {
  color: var(--white);
}

.gallery-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.gallery-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid var(--white);
}

.gallery-indicator.active {
  background: var(--accent-color);
  transform: scale(1.2);
}

/* Clients Section */
.clients {
  background-color: var(--light-gray);
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  align-items: center;
}

.client-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 180px;
}

.client-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.client-card img {
  max-width: 100%;
  max-height: 100px;
  object-fit: contain;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.client-card:hover img {
  filter: grayscale(0%);
}

/* Contact Section */
.contact {
  background-color: var(--light-gray);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
}

.contact-info h3,
.contact-form-wrapper h3 {
  font-size: 28px;
  color: var(--primary-color);
  margin-bottom: 25px;
}

.contact-info p {
  color: var(--medium-gray);
  margin-bottom: 30px;
}

.info-item {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.info-item i {
  font-size: 24px;
  color: var(--accent-color);
  margin-top: 5px;
}

.info-item h4 {
  color: var(--primary-color);
  font-size: 18px;
  margin-bottom: 5px;
}

.info-item p {
  color: var(--medium-gray);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

.info-item a {
  color: var(--medium-gray);
  text-decoration: none;
  transition: color 0.3s ease;
}

.info-item a:hover {
  color: var(--accent-color);
}

/* Quote Section */
.quote-section {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
}

.quote-section .section-header h2,
.quote-section .section-header p {
  color: var(--white);
}

.quote-section .divider {
  background-color: var(--accent-color);
}

/* Footer */
.footer {
  background-color: var(--primary-color);
  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 h3 {
  font-size: 22px;
  margin-bottom: 20px;
}

.footer-col h4 {
  font-size: 18px;
  margin-bottom: 15px;
  color: var(--accent-color);
}

.footer-col p {
  font-size: 14px;
  line-height: 1.8;
  opacity: 0.9;
  margin-bottom: 10px;
}

.arabic-text {
  font-size: 16px;
  direction: rtl;
  margin: 10px 0;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: var(--white);
  text-decoration: none;
  font-size: 14px;
  opacity: 0.9;
  transition: all 0.3s ease;
}

.footer-col ul li a:hover {
  color: var(--accent-color);
  padding-left: 5px;
}

.footer-col i {
  margin-right: 10px;
  color: var(--accent-color);
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background-color: var(--secondary-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background-color: var(--accent-color);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  font-size: 14px;
  opacity: 0.8;
}
