:root {
  --primary-color: #0d6efd;
  --secondary-color: #6c757d;
  --success-color: #198754;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #0dcaf0;
  --light-color: #f8f9fa;
  --dark-color: #212529;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--dark-color);
  overflow-x: hidden;
}

/* Navbar Styles */
.navbar {
  padding: 0.5rem 0;
  transition: all 0.3s ease;
}

.navbar-brand {
  font-size: 0.9rem;
  gap: 0.3rem;
}

.nav-link {
  font-weight: 500;
  color: var(--dark-color) !important;
  transition: color 0.3s ease;
  white-space: nowrap;
  font-size: 0.95rem;
}

.nav-link:hover {
  color: var(--primary-color) !important;
}

.navbar-nav {
  flex-wrap: nowrap;
  overflow-x: auto;
}

/* Scrollbar للـ navbar على الشاشات الصغيرة */
.navbar-nav::-webkit-scrollbar {
  height: 4px;
}

.navbar-nav::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.navbar-nav::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 2px;
}

/* Hero Section */
.hero-section {
  min-height: 75vh;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.75) 0%, rgba(108, 117, 125, 0.65) 100%);
  z-index: 1;
}

.min-vh-75 {
  min-height: 75vh;
}

/* Animations */
.animate-fade-in {
  animation: fadeIn 1s ease-in;
}

.animate-fade-in-delay {
  animation: fadeIn 1.2s ease-in;
}

.animate-fade-in-delay-2 {
  animation: fadeIn 1.5s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Navigation */
.navbar-brand {
  font-size: 1.5rem;
  transition: transform 0.3s;
}

.navbar-brand:hover {
  transform: scale(1.05);
}

.nav-link {
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: all 0.3s;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: all 0.3s;
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 80%;
}

/* Cards */
.formation-card,
.service-card {
  transition: all 0.3s;
  border-radius: 0.75rem;
  overflow: hidden;
}

.formation-card:hover,
.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

.card-img-wrapper {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.formation-card:hover .card-img-wrapper img,
.service-card:hover .card-img-wrapper img {
  transform: scale(1.1);
}

/* Feature Cards */
.feature-card {
  transition: all 0.3s;
  border-radius: 0.5rem;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.icon-box {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Divider */
.divider {
  width: 60px;
  height: 4px;
  background: var(--primary-color);
  margin: 1rem auto;
  border-radius: 2px;
}

/* Buttons */
.btn {
  font-weight: 500;
  padding: 0.5rem 1.5rem;
  border-radius: 0.5rem;
  transition: all 0.3s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.btn-lg {
  padding: 0.75rem 2rem;
  font-size: 1.1rem;
}

/* Hover Lift Effect */
.hover-lift {
  transition: all 0.3s;
}

.hover-lift:hover {
  transform: translateY(-8px);
}

/* Contact Info Cards */
.contact-info-card {
  transition: all 0.3s;
}

.contact-info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Search Form */
.search-form .input-group-text {
  border-right: 0;
}

.search-form .form-control {
  border-left: 0;
}

.search-form .form-control:focus {
  border-left: 0;
  box-shadow: none;
}

/* Footer */
footer {
  margin-top: auto;
}

footer a:hover {
  color: var(--primary-color) !important;
  text-decoration: underline !important;
}

.social-links a {
  transition: all 0.3s;
  display: inline-block;
}

.social-links a:hover {
  transform: translateY(-3px);
}

/* Breadcrumb */
.breadcrumb {
  background: transparent;
  padding: 0;
}

.breadcrumb-item a {
  text-decoration: none;
  color: var(--primary-color);
}

.breadcrumb-item a:hover {
  text-decoration: underline;
}

/* List Group */
.list-group-item {
  transition: all 0.3s;
}

.list-group-item:hover {
  background-color: #f8f9fa;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-section {
    min-height: 60vh;
  }
  
  .display-3 {
    font-size: 2.5rem;
  }
  
  .display-4 {
    font-size: 2rem;
  }
  
  .display-5 {
    font-size: 1.75rem;
  }
}

/* Utilities */
.bg-gradient-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, #0a58ca 100%);
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary-color) 0%, #0a58ca 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Loading States */
.spinner-border-sm {
  width: 1rem;
  height: 1rem;
  border-width: 0.15rem;
}

/* Footer Styles */
footer {
  background-color: #212529 !important;
}

footer .hover-link {
  transition: all 0.3s ease;
  display: inline-block;
}

footer .hover-link:hover {
  color: var(--primary-color) !important;
  transform: translateX(5px);
}

footer .social-links a {
  transition: all 0.3s ease;
  display: inline-block;
}

footer .social-links a:hover {
  color: var(--primary-color) !important;
  transform: translateY(-3px);
}

footer h5 {
  position: relative;
  padding-bottom: 10px;
}

footer h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--primary-color);
  border-radius: 2px;
}

footer ul li {
  padding: 5px 0;
}

footer .text-muted {
  color: #adb5bd !important;
}

footer .text-muted:hover {
  color: #fff !important;
}
