/* 
 * InnovateLink - Main CSS File
 * Version: 1.0
 */

/* ===== GENERAL STYLES ===== */
:root {
  --primary-color: #0056b3;
  --secondary-color: #6c757d;
  --success-color: #28a745;
  --info-color: #17a2b8;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
  --white-color: #ffffff;
  --black-color: #000000;
  --gray-color: #6c757d;
  --gray-light-color: #f8f9fa;
  --gray-dark-color: #343a40;
}

body {
  font-family: 'Cairo', sans-serif;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
  background-color: #fff;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  margin-bottom: 1rem;
  color: #333;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: #003d7a;
  text-decoration: none;
}

.btn {
  border-radius: 5px;
  padding: 0.5rem 1.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: #003d7a;
  border-color: #003d7a;
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: white;
}

.section-title {
  margin-bottom: 3rem;
  position: relative;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-title h2:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* .fade-in { */
  /* animation: fadeIn 0.5s ease-in-out; */
/* } */

/* Fade in section animation */
/* .fade-in-section {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-in-out;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
} */

/* ===== TOP BAR ===== */
.top-bar {
  font-size: 0.9rem;
}

.top-bar a:hover {
  opacity: 0.8;
}

/* ===== HEADER ===== */
.header {
  padding: 15px 0;
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-brand img {
  max-height: 60px;
}

.navbar-nav .nav-link {
  padding: 0.5rem 1rem;
  font-weight: 600;
  color: #333;
  position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary-color);
}

.navbar-nav .nav-link.active:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background-color: var(--primary-color);
}

/* ===== HERO SECTION ===== */
.hero-section {
  position: relative;
  margin-top: -1px;
}

.hero-section .carousel-item {
  height: 600px;
  background-size: cover;
  background-position: center;
}

.hero-section .carousel-item img {
  object-fit: cover;
  height: 100%;
  width: 100%;
  filter: brightness(0.7);
}

.hero-section .carousel-caption {
  bottom: auto;
  top: 50%;
  transform: translateY(-50%);
  max-width: 800px;
  margin: 0 auto;
  left: 10%;
  right: 10%;
  text-align: center;
}

.hero-section .carousel-caption h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-section .carousel-caption p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.subtitle {
  display: block;
}

.faq-icon {
  margin: 0 10px;
}

.process-number {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-color);
  background-color: var(--primary-color);
  color: #fff;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  display: none;
}

.cta-section * {
  color: #fff;
}

.cta-icon {
  font-size: 3rem;
}

.process-icon {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* ===== ABOUT SECTION ===== */
.about-section {
  padding: 80px 0;
}

.about-section img {
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* ===== SERVICES SECTION ===== */
.services-section {
  padding: 80px 0;
  background-color: #f9f9f9;
}

.service-card {
  border: none;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

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

.service-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

/* ===== FEATURES SECTION ===== */
.features-section {
  padding: 80px 0;
}

.feature-item {
  padding: 30px;
  border-radius: 10px;
  background-color: #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 100%;
}

.feature-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

/* ===== CLIENTS SECTION ===== */
.clients-section {
  padding: 80px 0;
  background-color: #f9f9f9;
}

.client-item {
  padding: 20px;
  border-radius: 10px;
  background-color: #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 100%;
}

.client-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.client-logo {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.client-logo img {
  max-height: 80px;
  max-width: 100%;
  filter: grayscale(100%);
  transition: all 0.3s ease;
}

.client-item:hover .client-logo img {
  filter: grayscale(0%);
}

/* ===== CTA SECTION ===== */
.cta-section {
  padding: 60px 0;
  background-color: var(--primary-color);
}

/* ===== FOOTER ===== */
.footer {
  background-color: var(--dark-color);
  color: #fff;
  padding: 80px 0 30px;
}

.footer h5 {
  color: #fff;
  margin-bottom: 1.5rem;
  font-weight: 600;
  position: relative;
  padding-bottom: 10px;
}

.footer h5:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--primary-color);
}

.footer a {
  color: #adb5bd;
  transition: all 0.3s ease;
}

.footer a:hover {
  color: #fff;
  text-decoration: none;
}

.footer .list-inline-item:not(:last-child) {
  margin-right: 1rem;
}

.footer .list-inline-item a {
  display: inline-block;
  width: 36px;
  height: 36px;
  line-height: 36px;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.footer .list-inline-item a:hover {
  background-color: var(--primary-color);
  color: #fff;
}

.footer hr {
  border-color: rgba(255, 255, 255, 0.1);
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
  width: 45px;
  height: 45px;
  line-height: 45px;
  text-align: center;
  padding: 0;
  border-radius: 50%;
  z-index: 99;
  right: 15px;
  bottom: 15px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

/* ===== CONTACT FORM ===== */
.contact-form .form-control {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 12px 15px;
}

.contact-form .form-control::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.contact-form .form-control:focus {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: none;
}

.dropdown-menu.show {
  z-index: 9999;
}

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.mb-4.position-relative.widget-title {
  color: #ddd;
}

.contact-form .form-control {
  border: 1px solid #dee2e6;
}

.page-header h1 {
  color: #fff;
}

.spinner-border {
  width: 3rem;
  height: 3rem;
  animation: spinner-border 0.75s linear infinite;
}

@keyframes spinner-border {
  to {
      transform: rotate(360deg);
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 1199.98px) {
  .hero-section .carousel-caption h1 {
    font-size: 3rem;
  }
}

@media (max-width: 991.98px) {
  .hero-section .carousel-item {
    height: 500px;
  }
  
  .hero-section .carousel-caption h1 {
    font-size: 2.5rem;
  }
  
  .hero-section .carousel-caption p {
    font-size: 1rem;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
}

@media (max-width: 767.98px) {
  .hero-section .carousel-item {
    height: 400px;
  }
  
  .hero-section .carousel-caption h1 {
    font-size: 2rem;
  }
  
  .hero-section .carousel-caption p {
    font-size: 0.9rem;
  }
  
  .section-title h2 {
    font-size: 1.8rem;
  }
  
  .about-section, 
  .services-section, 
  .features-section, 
  .clients-section {
    padding: 60px 0;
  }
}

@media (max-width: 575.98px) {
  .hero-section .carousel-item {
    height: 350px;
  }
  
  .hero-section .carousel-caption h1 {
    font-size: 1.8rem;
  }
  
  .section-title h2 {
    font-size: 1.5rem;
  }
}
