:root {
  --primary-color: #007bff;
  --secondary-color: #28a745;
  --accent-color: #6f42c1;
  --dark-color: #1a1a2e;
  --light-color: #f8f9fa;
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-success: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --font-family: "Poppins", sans-serif;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 5px 20px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.16);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  color: var(--dark-color);
  overflow-x: hidden;
  background: #fff;
}

/* Enhanced Navbar */
.navbar {
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  padding: 0.5rem 0;
  box-shadow: var(--shadow-md);
}

.navbar-brand {
  font-weight: 900;
  font-size: 1.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar-brand small {
  display: block;
  font-size: 0.7rem;
  color: var(--secondary-color);
  font-weight: 500;
  -webkit-text-fill-color: var(--secondary-color);
}

.nav-link {
  color: var(--dark-color) !important;
  font-weight: 600;
  padding: 0.5rem 1rem !important;
  margin: 0 0.2rem;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--gradient-primary);
  transition: width 0.3s ease;
  border-radius: 10px;
}

.nav-link:hover::after {
  width: 80%;
}

.dropdown-menu {
  border: none;
  box-shadow: var(--shadow-lg);
  border-radius: 15px;
  padding: 0.5rem;
  margin-top: 0.5rem;
  animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-item {
  border-radius: 10px;
  padding: 0.7rem 1rem;
  margin: 0.2rem 0;
  transition: all 0.3s ease;
  font-weight: 500;
}

.dropdown-item:hover {
  background: var(--gradient-primary);
  color: white !important;
  transform: translateX(5px);
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 600px;
  overflow: hidden;
}

.carousel-item {
  height: 600px;
  position: relative;
}

.carousel-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(95, 120, 227, 0.3),
    rgba(124, 76, 171, 0.3)
  );
  z-index: 1;
}

.carousel-item img {
  object-fit: cover;
  height: 100%;
  width: 100%;
}

.carousel-caption {
  z-index: 2;
  bottom: 50%;
  transform: translateY(50%);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.3);
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 2rem;
}

.btn-hero {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  background: white;
  color: var(--primary-color);
  border: none;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.btn-hero:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  background: var(--gradient-success);
  color: white;
}

/* Floating Particles */
.floating-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 2;
  pointer-events: none;
}

.particle {
  position: absolute;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  animation: float 6s infinite ease-in-out;
}

.particle:nth-child(1) {
  width: 80px;
  height: 80px;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.particle:nth-child(2) {
  width: 60px;
  height: 60px;
  top: 60%;
  right: 15%;
  animation-delay: 2s;
}

.particle:nth-child(3) {
  width: 100px;
  height: 100px;
  bottom: 20%;
  left: 20%;
  animation-delay: 4s;
}

.particle:nth-child(4) {
  width: 70px;
  height: 70px;
  top: 40%;
  right: 10%;
  animation-delay: 1s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

/* Section Titles */
.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 10px;
}

/* Cards */
.feature-card {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s ease;
  border: none;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  transform: translateY(100%);
  transition: transform 0.4s ease;
  z-index: 0;
}

.feature-card:hover::before {
  transform: translateY(0);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.feature-card * {
  position: relative;
  z-index: 1;
  transition: color 0.4s ease;
}

.feature-card:hover * {
  color: white !important;
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
  background: var(--gradient-success);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.feature-card:hover .feature-icon {
  -webkit-text-fill-color: white;
}

.service-card-redesign {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid #f0f0f0;
}

.service-card-redesign:hover {
  transform: translateY(-12px);
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.2);
  border-color: #667eea;
}

.service-img-wrapper {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.service-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card-redesign:hover .service-img {
  transform: scale(1.15);
}

.service-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.9),
    rgba(118, 75, 162, 0.9)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.4s ease;
}

.service-card-redesign:hover .service-overlay {
  opacity: 1;
}

.overlay-icon {
  font-size: 3rem;
  color: white;
  transform: scale(0.5) rotate(-180deg);
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.service-card-redesign:hover .overlay-icon {
  transform: scale(1) rotate(0deg);
}

.service-content {
  padding: 1.5rem;
  text-align: center;
}

.service-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 0.8rem;
  transition: all 0.3s ease;
}

.service-card-redesign:hover .service-name {
  color: #667eea;
}

.service-desc {
  font-size: 0.9rem;
  color: #6c757d;
  line-height: 1.6;
  margin: 0;
}
.badge-custom {
  background: var(--gradient-primary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Gallery */
.gallery-item {
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  height: 250px;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s ease;
  background: #e9ecef;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-img {
  transform: scale(1.1);
}

.gallery-item:hover {
  box-shadow: var(--shadow-lg);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(102, 126, 234, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-text {
  color: white;
  font-size: 1.2rem;
  font-weight: 600;
}

/* Contact Section */
.contact-info-box {
  background: var(--gradient-primary);
  color: white;
  padding: 2.5rem;
  border-radius: 20px;
  height: 100%;
  box-shadow: var(--shadow-md);
}

.contact-info-item {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: start;
}

.contact-info-item i {
  font-size: 1.5rem;
  margin-right: 1rem;
  margin-top: 0.2rem;
}

.contact-form-box {
  background: white;
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
}

.form-control,
.form-select {
  border-radius: 10px;
  padding: 0.8rem 1rem;
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.15);
}

.btn-submit {
  background: var(--gradient-primary);
  color: white;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  border: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-submit:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* Footer */
footer {
  background: var(--dark-color);
  color: white;
  padding: 4rem 0 2rem;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  background: var(--gradient-primary);
  border-radius: 50%;
  top: -150px;
  right: -150px;
  opacity: 0.1;
}

.footer-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.8rem;
}

.footer-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 10px;
}

.footer-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-link:hover {
  color: white;
  transform: translateX(5px);
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  margin-right: 0.5rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-link:hover {
  background: var(--gradient-primary);
  transform: translateY(-5px);
  color: white;
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-5px);
  color: white;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.8rem;
  }
}
