/* ===== Global Styles ===== */
:root {
  --primary-color: #0d6efd;
  --dark-color: #1a1a1a;
  --light-color: #f8f9fa;
  --text-color: #333;
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-color);
  line-height: 1.6;
}

html {
  scroll-behavior: smooth;
}

/* ===== Navbar Styles ===== */
.navbar {
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  background-color: #1a1a1a !important;
}

.navbar-brand {
  font-size: 1.3rem;
  color: white !important;
}

.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.8) !important;
  transition: var(--transition);
}

.navbar-dark .navbar-nav .nav-link:hover {
  color: var(--primary-color) !important;
}

/* ===== Carousel Section ===== */
.carousel-section {
  position: relative;
  padding: 0;
}

.carousel-item {
  height: 58vh;
  min-height: 225px;
}

.carousel-image {
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
}

.carousel-caption {
  bottom: 30%;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-caption h1,
.carousel-caption h2 {
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  padding: 20px;
}

.carousel-indicators button {
  background-color: white;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 5px;
}

.carousel-indicators .active {
  background-color: var(--primary-color);
}

/* ===== Banner Section ===== */
.banner-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 600px;
  display: flex;
  align-items: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.banner-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.banner-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.banner-content .display-3 {
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.banner-content .lead {
  font-size: 1.2rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.btn-group .btn {
  padding: 12px 30px;
  font-weight: 600;
  border-radius: 5px;
  transition: var(--transition);
}

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

.btn-primary:hover {
  background-color: #0b5ed7;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(13, 110, 253, 0.4);
}

.btn-outline-light:hover {
  background-color: white;
  color: var(--primary-color);
  transform: translateY(-2px);
}

/* ===== Section Styles ===== */
.section-light {
  background-color: var(--light-color);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  color: var(--text-color);
  position: relative;
  padding-bottom: 20px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), #764ba2);
  border-radius: 2px;
}

/* ===== About Section ===== */
.about-image {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

#about h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 1.5rem;
}

#about .list-unstyled li {
  font-weight: 500;
  color: var(--text-color);
}

/* ===== Service Cards ===== */
.service-card {
  background: white;
  padding: 30px;
  border-radius: var(--border-radius);
  text-align: center;
  transition: var(--transition);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.service-icon {
  margin-bottom: 20px;
}

.service-icon i {
  color: var(--primary-color);
  transition: var(--transition);
}

.service-card:hover .service-icon i {
  transform: scale(1.1);
  color: #764ba2;
}

.service-card h4 {
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text-color);
}

.service-card p {
  color: #666;
  flex-grow: 1;
}

/* ===== Project Cards ===== */
.project-card {
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.project-image {
  position: relative;
  overflow: hidden;
  height: 250px;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.project-card:hover .project-image img {
  transform: scale(1.1);
}

.project-info {
  background: white;
}

.project-info h5 {
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.project-info p {
  margin: 0;
  font-size: 0.9rem;
}

/* ===== Contact Section ===== */
.contact-item {
  display: flex;
  gap: 15px;
}

.contact-item i {
  font-size: 1.5rem;
  min-width: 30px;
  margin-top: 5px;
}

.contact-item strong {
  color: var(--text-color);
}

.form-control {
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  padding: 10px 15px;
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* ===== Footer ===== */
footer {
  background-color: #1a1a1a !important;
}

footer h5 {
  font-weight: 700;
  margin-bottom: 1rem;
  color: white;
}

footer .text-muted {
  color: #999 !important;
}

footer a.text-muted:hover {
  color: var(--primary-color) !important;
}

.social-links a {
  font-size: 1.2rem;
  transition: var(--transition);
}

.social-links a:hover {
  transform: translateY(-4px);
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
  .banner-section {
    min-height: 400px;
  }

  .banner-content .display-3 {
    font-size: 2rem;
  }

  .banner-content .lead {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  #about h3 {
    font-size: 1.5rem;
  }

  .btn-group {
    display: flex;
    flex-direction: column;
  }

  .btn-group .btn {
    margin-bottom: 10px;
    width: 100%;
  }

  .about-image {
    margin-bottom: 30px;
  }
}

@media (max-width: 576px) {
  .banner-content .display-3 {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .service-card,
  .project-card {
    margin-bottom: 20px;
  }
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.service-card,
.project-card {
  animation: fadeInUp 0.5s ease-out;
}

/* ===== Scroll Animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
}

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