/*-----------------------------------*\
  #STYLE.CSS
\*-----------------------------------*/

/* IMPORTS */
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css");
@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700&display=swap");

/*-----------------------------------*\
  #CUSTOM PROPERTIES
\*-----------------------------------*/

:root {
  /* colors */
  --page-bg: #082E60;
  --page-text: #ffffff;
  --primary-color: #A62D06;
  --secondary-color: #238CF0;
  --dark-bg: #020C19;
  --light-bg: #F9F7F2;
  
  /* typography */
  --ff-cairo: "Cairo", sans-serif;
  
  --fs-1: 4rem;
  --fs-2: 3.6rem;
  --fs-3: 3.2rem;
  --fs-4: 2.4rem;
  --fs-5: 2.2rem;
  --fs-6: 2.8rem;
  --fs-7: 1.6rem;
  
  --fw-800: 800;
  --fw-700: 700;
  --fw-600: 600;
  --fw-500: 500;
  --fw-400: 400;
  
  /* spacing */
  --section-padding: 120px;
  
  /* transitions */
  --transition: 0.25s ease;
}

/*-----------------------------------*\
  #RESET
\*-----------------------------------*/

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

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--ff-cairo);
  background: var(--page-bg) !important;
  color: var(--page-text) !important;
  /* Increased base font-size for better readability */
  font-size: 1.8rem;
  min-height: 100vh;
}

/* Remove scrollbar for Chrome, Safari and Opera */
html::-webkit-scrollbar {
  width: 0.8rem;
}

html::-webkit-scrollbar-track {
  background: #fff;
}

html::-webkit-scrollbar-thumb {
  background: var(--secondary-color);
}

/* Remove default styles */
li { list-style: none; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; }
input, textarea { font: inherit; }
img { max-width: 100%; height: auto; }

/*-----------------------------------*\
  #UTILITY CLASSES
\*-----------------------------------*/

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.text-center { text-align: center; }
.d-none { display: none; }
.d-flex { display: flex; }
.flex-column { flex-direction: column; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.w-100 { width: 100%; }

.section {
  padding: var(--section-padding) 0;
}

.section-subtitle {
  color: var(--primary-color);
  font-size: var(--fs-6);
  font-weight: var(--fw-700);
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.section-title {
  font-size: var(--fs-2);
  font-weight: var(--fw-800);
  margin-bottom: 3rem;
}

/*-----------------------------------*\
  #HEADER
\*-----------------------------------*/

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 10%;
  height: 8rem;
  background: rgba(13, 22, 35, 0.95);
  box-shadow: 0 2px 6px rgba(35, 140, 240, 0.5);
  transition: var(--transition);
}

header.active {
  background: rgba(13, 22, 35, 1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

header .logo img {
  height: 8rem;
  transition: transform 0.3s;
}

header .logo img:hover {
  transform: scale(1.05);
}

.navbar ul {
  display: flex;
  gap: 2.5rem;
}

.navbar a {
  font-size: 1.8rem;
  color: var(--page-text);
  font-weight: var(--fw-600);
  transition: var(--transition);
  padding: 0.5rem 0;
}

.navbar a.active,
.navbar a:hover {
  color: var(--secondary-color);
  border-bottom: 0.2rem solid var(--secondary-color);
}

#menu {
  font-size: 3rem;
  color: var(--page-text);
  cursor: pointer;
  display: none;
}

/*-----------------------------------*\
  #HERO SECTION
\*-----------------------------------*/

.home {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.slider-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
}

.slide.active {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
  text-align: center;
  padding: 0 2rem;
}

.hero-overlay .content h2 {
  font-size: 8rem;
  font-weight: var(--fw-800);
  color: var(--primary-color);
  text-shadow:  4px 4px 4px rgba(0, 0, 0, 0.425);
  margin-bottom: 1rem;
}

.hero-overlay .content p {
  font-size: 2.5rem;
  font-weight: var(--fw-600);
  color: var(--page-text);
}

.overlay-actions {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-color);
  color: var(--page-text);
  padding: 1.5rem 3rem;
  border-radius: 4rem;
  font-size: 1.6rem;
  font-weight: var(--fw-600);
  transition: var(--transition);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.btn:hover {
  background: rgba(92, 94, 197, 0.8);
  transform: translateY(-3px);
}

.social-icons {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.4rem;
  height: 4.4rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--page-text);
  font-size: 2rem;
  transition: var(--transition);
}

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

/*-----------------------------------*\
  #ABOUT SECTION
\*-----------------------------------*/

.about {
  background:linear-gradient(to bottom, rgba(15, 28, 51, 0.589),var(--dark-bg));
  padding: 8rem 0;
}

.about .row {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.about .image {
  flex: 1;
}

.about .image img {
  width: 100%;
  border-radius: 1rem;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.about .image img:hover {
  transform: scale(1.02);
}

.about .content {
  flex: 1;
}
.about .content h3 {
  font-size: 6rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.about .content p {
  font-size: 1.6rem;
  line-height: 1.8;
  color: var(--page-text);
  margin-bottom: 2rem;
}

.section-icon {
  display: block;
  width: 8.4rem;
  height: 8.4rem;
  margin: 0 auto 2rem;
  object-fit: contain;
}

/*-----------------------------------*\
  #SERVICES SECTION
\*-----------------------------------*/

.service {
  padding: 8rem 0;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.service-card {
  background: linear-gradient(to bottom, rgba(6, 35, 72, 0.8), rgba(1, 12, 26, 0.8));
  border-radius: 1.2rem;
  padding: 3rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
}

.service-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.service-card .card-icon {
  width: 9rem;
  height: 9rem;
  margin: 0 auto 2rem;
  object-fit: contain;
}

.service-card .card-title {
  font-size: 2.2rem;
  font-weight: var(--fw-700);
  margin-bottom: 1.5rem;
  color: var(--page-text);
}

.service-card .card-text {
  font-size: 1.6rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
}

/*-----------------------------------*\
  #CONTACT SECTION
\*-----------------------------------*/

.contact {
  padding: 8rem 0;
  background: linear-gradient(to bottom, rgba(15, 28, 51, 0.589),var(--dark-bg));
  box-shadow:  0px 4px 4px rgba(35, 141, 240, 0.3);
}

.contact-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 4rem;
  margin-top: 4rem;
}

.map-container {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: none;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0.8rem;
  transition: var(--transition);
}

.contact-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(10px);
}

.contact-item i {
  font-size: 2.4rem;
  color: var(--primary-color);
}

.contact-item .details h4 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  color: var(--page-text);
}

.contact-item .details p,
.contact-item .details a {
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

.contact-item .details a:hover {
  color: var(--primary-color);
}

/*-----------------------------------*\
  #FOOTER
\*-----------------------------------*/

.footer {
  background: linear-gradient(to bottom, rgba(22, 30, 45, 0.4), rgb(0, 0, 0));
  padding: 6rem 0 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-section {
  padding: 2rem;
}

.footer-title {
  font-size: 2rem;
  color: var(--secondary-color);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--secondary-color);
}

.footer-menu {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

.footer-link:hover {
  color: var(--primary-color);
  transform: translateX(10px);
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 2rem;
  border-radius: 0.8rem;
  color: var(--page-text);
  text-decoration: none;
  transition: var(--transition);
  min-width: 200px;
}

.social-link i {
  font-size: 1.8rem;
}



.social-link:hover {
  transform: translateX(10px);
  opacity: 0.9;
}



.copyright-section {
  text-align: center;
  padding-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.4rem;
}

/*-----------------------------------*\
  #BACK TO TOP
\*-----------------------------------*/

.back-top-btn {
  position: fixed;
  bottom: 3rem;
  right: 3rem;
  width: 5rem;
  height: 5rem;
  background: var(--primary-color);
  color: var(--page-text);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.back-top-btn.active {
  opacity: 1;
  visibility: visible;
}

.back-top-btn:hover {
  background: rgba(197, 147, 92, 0.9);
  transform: translateY(-5px);
}

/*-----------------------------------*\
  #RESPONSIVE DESIGN
\*-----------------------------------*/

@media (max-width: 992px) {
  :root {
    --fs-1: 3.6rem;
    --fs-2: 3.2rem;
    --fs-3: 2.8rem;
  }
  
  .about .row {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 768px) {
  #menu {
    display: block;
  }
  
  .navbar {
    position: fixed;
    top: 8rem;
    left: -100%;
    width: 80%;
    height: calc(100vh - 8rem);
    background: rgba(3, 8, 12, 0.98);
    transition: var(--transition);
    padding: 2rem;
  }
  
  .navbar.nav-toggle {
    left: 0;
  }
  
  .navbar ul {
    flex-direction: column;
    gap: 2rem;
  }
  
  .navbar a {
    font-size: 2rem;
    padding: 1rem;
    display: block;
    text-align: center;
  }
  
  .hero-overlay .content h2 {
    font-size: 4rem;
  }
  
  .hero-overlay .content p {
    font-size: 2rem;
  }
  
  .service-list {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  :root {
    --fs-1: 3rem;
    --fs-2: 2.6rem;
    --fs-3: 2.2rem;
  }
  
  .container {
    padding: 0 1.5rem;
  }
  
  .hero-overlay .content h2 {
    font-size: 5rem;
  }
  
  .hero-overlay .content p {
    font-size: 2.7rem;
  }
  
  .btn {
    padding: 1.2rem 2.4rem;
    font-size: 1.4rem;
  }
}