/**
 * FOREM Formation - Custom Styles
 * Modern, sleek, professional corporate identity
 */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&display=swap');

.font-arabic {
  font-family: 'Cairo', sans-serif !important;
  line-height: 1.6;
}

:root {
  --bs-primary: #1e3a8a; /* Deep modern blue */
  --bs-primary-rgb: 30, 58, 138;
  --bs-body-font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
  font-family: var(--bs-body-font-family);
  color: #1e293b; /* Darker readable text color */
  background-color: #f8fafc;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography Enhancements */
h1:not(.text-white), h2:not(.text-white), h3:not(.text-white), h4:not(.text-white), h5:not(.text-white), h6:not(.text-white) {
  color: inherit;
}
.tracking-wider {
  letter-spacing: 0.05em;
}

/* Navigation */
.custom-navbar {
  background-color: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}
.brand-logo {
  max-height: 80px; /* Increased logo size significantly */
  width: auto;
  object-fit: contain;
  transition: all 0.3s ease;
}
/* Responsive logo logic to ensure it doesn't break small screens */
@media (max-width: 768px) {
  .brand-logo { max-height: 55px; }
}
.navbar-nav .nav-link {
  color: #475569 !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  border-radius: 0.5rem;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--bs-primary) !important;
  background-color: rgba(30, 58, 138, 0.05);
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  padding-top: 80px; /* Offset for navbar */
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(15,23,42,0.95) 0%, rgba(15,23,42,0.85) 50%, rgba(15,23,42,0.4) 100%);
}
@media (max-width: 991px) {
  .hero-overlay {
    background: linear-gradient(180deg, rgba(15,23,42,0.7) 0%, rgba(15,23,42,0.9) 100%);
  }
}
.max-w-700 {
  max-width: 700px;
}

/* Course Cards */
.course-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0,0,0,0.05) !important;
  background: #ffffff;
}
.course-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08) !important;
}
.card-img-wrap {
  height: 220px;
  overflow: hidden;
}
.card-img-top {
  height: 100%;
  width: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.course-card:hover .card-img-top {
  transform: scale(1.05);
}

/* About Icons */
.icon-box {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bg-primary-subtle {
  background-color: rgba(30, 58, 138, 0.1) !important;
}

/* Contact form */
.contact-card {
  border: 1px solid rgba(255,255,255,0.4) !important;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(20px);
}
.form-control, .form-select {
  border: 1px solid #e2e8f0;
  padding: 0.8rem 1rem;
  border-radius: 0.75rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 0.25rem rgba(30, 58, 138, 0.1);
}

/* Utilities */
.hover-white:hover {
  color: #ffffff !important;
}
.hover-scale {
  transition: transform 0.3s ease;
}
.hover-scale:hover {
  transform: scale(1.15);
}

/* Font readability utilities */
.text-readability {
  line-height: 1.7;
}
.text-readability.text-dark-theme {
  color: #475569;
}
.text-reading-size {
  font-size: 1.1rem;
}
.text-sm {
  font-size: 0.9rem;
}
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-section {
    min-height: 85vh;
  }
  .experience-badge {
    left: 50% !important;
    bottom: -30px !important;
    transform: translateX(-50%) !important;
    width: 200px;
  }
  .about-img {
    margin-bottom: 40px;
  }
}

/* Gallery Section */
.horizontal-scroll-wrapper {
  display: flex;
  overflow-x: auto;
  gap: 1.5rem;
  padding-bottom: 2rem;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.horizontal-scroll-wrapper::-webkit-scrollbar {
  height: 8px;
}
.horizontal-scroll-wrapper::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.05); 
  border-radius: 10px;
}
.horizontal-scroll-wrapper::-webkit-scrollbar-thumb {
  background: var(--bs-primary); 
  border-radius: 10px;
  opacity: 0.6;
}
.gallery-item {
  flex: 0 0 auto;
  scroll-snap-align: center;
  width: 320px;
  height: 420px;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
  position: relative;
  background-color: #f1f5f9;
}
.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img {
  transform: scale(1.05);
}
@media (max-width: 768px) {
  .horizontal-scroll-wrapper {
    gap: 1rem;
  }
  .gallery-item {
    width: 260px;
    height: 350px;
  }
}

/* Floating WhatsApp */
.floating-whatsapp {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  font-size: 30px;
  z-index: 1000;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3) !important;
}

.floating-whatsapp:hover {
  background-color: #128c7e;
  color: white;
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.5) !important;
}

@media (max-width: 768px) {
  .floating-whatsapp {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 26px;
  }
}
