/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #0a2540;
  --secondary-color: #1e4976;
  --accent-color: #ff6b35;
  --light-gray: #f8f9fa;
  --medium-gray: #6c757d;
  --dark-gray: #343a40;
  --white: #ffffff;
  --shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.25);
}

body,
body * {
  -webkit-user-modify: read-only !important;
}

[contenteditable="true"] {
  -webkit-user-modify: read-only !important;
  cursor: default !important;
}

/* Ensure only form inputs are editable */
input,
textarea,
select,
button {
  -webkit-user-modify: read-write !important;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--dark-gray);
  background-color: var(--white);
}

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

/* Navigation */
.navbar {
  background-color: var(--primary-color);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.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);
}

.btn-nav {
  background-color: var(--accent-color);
  padding: 10px 25px !important;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.btn-nav:hover {
  background-color: #e55a2b;
  color: var(--white) !important;
  transform: translateY(-2px);
}

.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;
}

/* RTL Support */
html[dir="rtl"] {
  direction: rtl;
}

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

html[dir="rtl"] .nav-menu {
  direction: rtl;
}

html[dir="rtl"] .service-features li {
  padding-left: 0;
  padding-right: 25px;
}

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

html[dir="rtl"] .info-item i {
  margin-left: 20px;
  margin-right: 0;
}

html[dir="rtl"] .footer-col i {
  margin-left: 10px;
  margin-right: 0;
}

html[dir="rtl"] .footer-col ul li a:hover {
  padding-left: 0;
  padding-right: 5px;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  margin-top: 70px;
  overflow: hidden;
  perspective: 1000px;
}

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

.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;
}

.stat {
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 30px 25px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  max-width: 300px;
  transition: all 0.3s ease;
}

.stat:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.stat-icon {
  width: 70px;
  height: 70px;
  background: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.stat-icon i {
  font-size: 32px;
  color: var(--white);
}

.stat h3 {
  font-size: 22px;
  color: var(--white);
  margin-bottom: 12px;
  font-weight: 600;
}

.stat p {
  font-size: 15px;
  opacity: 0.9;
  line-height: 1.6;
  color: var(--white);
}

.btn-primary {
  display: inline-block;
  background-color: var(--accent-color);
  color: var(--white);
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  animation: fadeInUp 1s ease 0.6s both;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transition: width 0.6s, height 0.6s;
  transform: translate(-50%, -50%);
}

.btn-primary:active::before {
  width: 300px;
  height: 300px;
}

.btn-primary:hover {
  background-color: #e55a2b;
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

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

@keyframes ripple {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(4);
    opacity: 0;
  }
}

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

@keyframes glow {
  0% {
    box-shadow: 0 0 5px rgba(255, 107, 53, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.8),
      0 0 30px rgba(255, 107, 53, 0.6);
  }
  100% {
    box-shadow: 0 0 5px rgba(255, 107, 53, 0.5);
  }
}

/* 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;
}

.feature-box {
  background: var(--white);
  padding: 25px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.feature-box:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.feature-box i {
  font-size: 36px;
  color: var(--accent-color);
  margin-bottom: 15px;
}

.feature-box h3 {
  font-size: 20px;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.about-video video {
  width: 100%;
  height: 30%;
  object-fit: cover;
  object-position: center top;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.feature-box p {
  font-size: 14px;
  color: var(--medium-gray);
}

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

.service-card {
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border-top: 4px solid var(--accent-color);
  overflow: hidden;
  transform-style: preserve-3d;
}

.service-card:hover {
  transform: translateY(-10px) rotateX(5deg) rotateY(5deg);
  box-shadow: var(--shadow-lg);
  animation: glow 2s ease-in-out infinite alternate;
}

.service-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.service-card:hover .service-image img {
  transform: scale(1.1);
}

.service-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 5px auto 20px;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.service-icon i {
  font-size: 32px;
  color: var(--white);
}

.service-card h3 {
  font-size: 22px;
  color: var(--primary-color);
  margin-bottom: 15px;
  padding: 0 25px;
}

.service-card p {
  font-size: 15px;
  color: var(--medium-gray);
  margin-bottom: 20px;
  line-height: 1.7;
  padding: 0 25px;
}

.service-features {
  list-style: none;
  padding: 0 25px 25px;
}

.service-features li {
  padding: 8px 0;
  padding-left: 25px;
  position: relative;
  font-size: 14px;
  color: var(--dark-gray);
}

.service-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: bold;
}

/* 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);
}

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

.social-links a {
  width: 45px;
  height: 45px;
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: var(--accent-color);
  transform: translateY(-3px);
}

/* Form Styles */
.contact-form,
.quote-form {
  background: var(--white);
  padding: 35px;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

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

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--primary-color);
  font-weight: 500;
  font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 5px;
  font-size: 15px;
  transition: border-color 0.3s ease;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent-color);
}

.form-group textarea {
  resize: vertical;
}

/* 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;
}

/* Responsive Design */
@media (max-width: 968px) {
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: var(--primary-color);
    width: 100%;
    text-align: center;
    transition: left 0.3s ease;
    box-shadow: var(--shadow-lg);
    padding: 30px 0;
    gap: 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu li {
    margin: 15px 0;
  }

  .mobile-toggle {
    display: block;
  }

  .logo-img {
    height: 50px;
  }

  .logo h1 {
    font-size: 18px;
  }

  .logo-subtitle {
    font-size: 11px;
  }

  .hero-title {
    font-size: 40px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .hero-stats {
    gap: 30px;
  }

  .stat {
    max-width: 100%;
    width: 100%;
  }

  .stat-icon {
    width: 60px;
    height: 60px;
  }

  .stat-icon i {
    font-size: 28px;
  }

  .stat h3 {
    font-size: 20px;
  }

  .stat p {
    font-size: 14px;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .section-header h2 {
    font-size: 32px;
  }

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

@media (max-width: 768px) {
  .hero {
    min-height: 80vh;
    margin-top: 60px;
  }

  .logo-img {
    height: 45px;
  }

  .logo h1 {
    font-size: 16px;
  }

  .logo-subtitle {
    font-size: 10px;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .hero-stats {
    gap: 20px;
    flex-direction: column;
  }

  .stat {
    padding: 25px 20px;
  }

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

  .service-image {
    height: 200px;
  }

  section {
    padding: 60px 0;
  }
}

@media (max-width: 480px) {
  .logo-img {
    height: 40px;
  }

  .logo h1 {
    font-size: 14px;
  }

  .logo-subtitle {
    font-size: 9px;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-subtitle {
    font-size: 14px;
    margin-bottom: 30px;
  }

  .stat {
    padding: 20px 15px;
  }

  .stat-icon {
    width: 55px;
    height: 55px;
  }

  .stat-icon i {
    font-size: 24px;
  }

  .stat h3 {
    font-size: 18px;
  }

  .stat p {
    font-size: 13px;
  }

  .btn-primary {
    padding: 12px 30px;
    font-size: 14px;
  }

  .section-header h2 {
    font-size: 28px;
  }

  .contact-form,
  .quote-form {
    padding: 25px;
  }

  .service-image {
    height: 180px;
  }

  .service-card h3 {
    font-size: 20px;
  }

  .service-card p {
    font-size: 14px;
  }
}

/* Floating Contact Icons */
.floating-contact {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.floating-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-decoration: none;
  font-size: 24px;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}

.floating-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.floating-btn.whatsapp {
  background: linear-gradient(135deg, #25d366, #128c7e);
}

.floating-btn.email {
  background: linear-gradient(135deg, var(--accent-color), #e55a2b);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.floating-btn.whatsapp:hover {
  animation: none;
}

.floating-btn.email:hover {
  animation: none;
}
