/* Color Variables */
:root {
  --primary: #1E3A8A;
  --primary-light: rgba(30, 58, 138, 0.1);
  --primary-dark: #142a66;
  --accent: #FFD100;
  --accent-dark: #e6b800;
  --light: #ffffff;
  --dark: #222222;
  --gray: #f5f5f7;
  --text: #444444;
  --text-light: #777777;
}

/* Base Styles */
body {
  font-family: 'Poppins', sans-serif;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  transition: all 0.3s ease;
}

.text-primary {
  color: var(--primary) !important;
}

.text-accent {
  color: var(--accent) !important;
}

.bg-primary {
  background-color: var(--primary) !important;
}

.bg-light {
  background-color: var(--gray) !important;
}

/* Buttons */
.btn {
  padding: 10px 25px;
  font-weight: 600;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--light);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(30, 58, 138, 0.3);
}

.btn-accent {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--dark);
}

.btn-accent:hover {
  background-color: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 209, 0, 0.3);
}

.btn-outline-light {
  border-color: var(--light);
  color: var(--light);
}

.btn-outline-light:hover {
  background-color: var(--light);
  color: var(--primary);
}

/* Navigation */
.navbar {
  padding: 15px 0;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background-color: var(--primary) !important;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.nav-link {
  font-weight: 500;
  padding: 8px 15px !important;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 15px;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: calc(100% - 30px);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.7));
  color: var(--light);
  padding-top: 80px;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
}

.hero p.lead {
  font-size: 20px;
  margin-bottom: 30px;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Section Padding */
section {
  padding: 80px 0;
}

/* Icon Box */
.icon-box {
  width: 70px;
  height: 70px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-bottom: 20px;
}

/* Portfolio Items */
.portfolio-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
  aspect-ratio: 4/3;
}
.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-item:hover img {
  transform: scale(1.05);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(30, 58, 138, 0.9);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--light);
  opacity: 0;
  transition: all 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}


/* Service Cards */
.service-card img {
  height: 200px;
  object-fit: cover;
}

/* Image Grid Layout */
.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
}

/* Load More Button Animation */
#loadMore {
  transition: all 0.3s ease;
}

#loadMore:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Testimonial Cards */
.card {
  border: none;
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Form Styles */
.form-control, .form-select {
  padding: 12px 15px;
  border-radius: 4px;
  border: 1px solid #ddd;
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

/* Responsive Adjustments */
@media (max-width: 991px) {
  .hero h1 {
      font-size: 36px;
  }
  
  .hero p.lead {
      font-size: 18px;
  }
  
  .navbar-collapse {
      background-color: var(--primary);
      padding: 20px;
      margin-top: 15px;
      border-radius: 8px;
  }
  
  .nav-link::after {
      display: none;
  }
}

@media (max-width: 767px) {
  section {
      padding: 60px 0;
  }
  
  .hero h1 {
      font-size: 32px;
  }
  
  .hero-buttons .btn {
      width: 100%;
  }
}