:root {
  /* Light theme colors */
  --light-bg: #ffffff;
  --lighter-bg: #f8f9fa;
  --light-card: #ffffff;
  --primary: #4F46E5;
  --primary-hover: #4338CA;
  --text-primary: #1F2937;
  --text-secondary: #4B5563;
  --accent-color: #4F46E5;
  --card-hover-bg: #F3F4F6;
  --gradient-start: #ffffff;
  --gradient-end: #f8f9fa;
  --gradient-primary: linear-gradient(45deg, #4F46E5, #6366F1);
  --gradient-light: linear-gradient(180deg, #ffffff, #f8f9fa);
  --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(248, 249, 250, 0.95));
  --box-shadow: 0 8px 32px 0 rgba(79, 70, 229, 0.15);
  --text-shadow: none;
}

body {
  background-color: var(--light-bg);
  color: var(--text-primary);
  font-family: 'Poppins', sans-serif;
}

.navbar {
  background-color: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.navbar-light .navbar-nav .nav-link {
  color: var(--text-primary);
  font-weight: 500;
}

.navbar-light .navbar-brand {
  color: var(--text-primary);
  font-weight: 600;
}

.box {
  background: #ffffff;
  border-radius: 15px;
  padding: 2rem;
  max-height: 400px;
  transition: all 3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* First card */
.box:nth-child(1) {
  background: #ffffff;
}

.box:nth-child(1) h4 {
  color: var(--text-primary);
}

.box:nth-child(1) p {
  color: var(--text-secondary);
}

/* Second card */
.box:nth-child(2) {
  background: #ffffff;
}

.box:nth-child(2) h4 {
  color: var(--text-primary);
}

.box:nth-child(2) p {
  color: var(--text-secondary);
}

/* Third card */
.box:nth-child(3) {
  background: #ffffff;
}

.box:nth-child(3) h4 {
  color: var(--text-primary);
}

.box:nth-child(3) p {
  color: var(--text-secondary);
}

/* Hover effects for all cards */
.box:hover {
  transform: translateY(-10px);
  background: #f0f0f0;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  min-height: 400px;
  max-height: none;
}

/* Text colors remain the same on hover */
.box:hover h4,
.box:hover p {
  color: inherit;
}

.box h4, .box h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
  position: relative;
  padding-bottom: 15px;
  color: var(--text-primary);
}

.box h4::after, .box h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 2px;
  background: var(--primary);
  opacity: 0.3;
}

.box p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 0;
  transition: all 0.3s ease;
  color: var(--text-secondary);
}

/* Card content layout */
.box-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 1rem;
}

/* Hero section styles */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-image: url('{% static 'img/cover.jpeg' %}');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* Overlay for hero section */
#hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.95),
    rgba(255, 255, 255, 0.85)
  );
  z-index: 1;
}

#hero .container {
  position: relative;
  z-index: 2;
}

#hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
}

#hero h2 {
  color: var(--text-primary);
  font-weight: 600;
}

.location-info {
  background: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(79, 70, 229, 0.1);
  box-shadow: var(--box-shadow);
}

.btn-primary {
  background: var(--gradient-primary);
  border: none;
  font-weight: 500;
}

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

/* About section */
.about {
  background: var(--gradient-light);
}

/* Contact section */
.contact {
  background: linear-gradient(var(--gradient-start), var(--gradient-end));
}

.contact-card {
  background: var(--gradient-card);
  border: 1px solid rgba(79, 70, 229, 0.1);
  box-shadow: var(--box-shadow);
}

.icon-box {
  background: linear-gradient(45deg, rgba(79, 70, 229, 0.1), rgba(99, 102, 241, 0.1));
  color: var(--primary);
}

/* Footer */
footer {
  background: var(--lighter-bg);
  border-top: 1px solid rgba(0,0,0,0.1);
}

.footer-card {
  background: transparent;
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Navigation hover effect */
.nav-link::after {
  background: var(--gradient-primary);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-primary);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-hover);
}

/* Back to top button */
.back-to-top {
  background: var(--gradient-primary);
}

.back-to-top:hover {
  background: var(--primary-hover);
}

/* Custom animations */
.fade-up {
  animation: fadeUp 0.5s ease-out;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* About section improvements */
.about {
  background: var(--gradient-light);
  position: relative;
}

.about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.about-img {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
}

.about-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, rgba(79, 70, 229, 0.2), transparent);
  z-index: 1;
}

.about h3 {
  color: var(--accent-color);
  font-weight: 600;
  margin-bottom: 25px;
}

/* Why Us section improvements */
.why-us {
  background-color: var(--light-bg);
  padding: 100px 0;
  position: relative;
}

.why-us::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--primary), transparent);
  opacity: 0.2;
}

.belief-item {
  position: relative;
  padding: 2rem;
  margin-bottom: 3rem;
  background: var(--light-bg);
  border-radius: 20px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.belief-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--primary);
}

.belief-item::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--primary);
  border-radius: 50%;
  left: -40px;
  top: 50%;
  transform: translateY(-50%);
  box-shadow: 0 0 0 5px rgba(79, 70, 229, 0.1);
}

.belief-item h4 {
  color: var(--primary);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.belief-item h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 2px;
  background: var(--primary);
  opacity: 0.3;
}

.belief-item p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
  margin: 0;
}

.belief-item.right {
  margin-left: auto;
}

.belief-item.right::before {
  left: auto;
  right: -40px;
}

@media (max-width: 768px) {
  .why-us::before {
    left: 20px;
  }

  .belief-item {
    margin-left: 40px;
    margin-right: 0;
  }

  .belief-item::before {
    left: -30px;
  }

  .belief-item.right {
    margin-left: 40px;
  }

  .belief-item.right::before {
    left: -30px;
    right: auto;
  }
}

/* Contact section improvements */
.info {
  background-color: var(--light-card);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.info i {
  font-size: 24px;
  color: var(--accent-color);
  margin-bottom: 15px;
}

.info h4 {
  color: var(--text-primary);
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.info p {
  color: var(--text-secondary);
}

/* Animation for boxes */
.box {
  animation: fadeInUp 3s ease-out;
  animation-fill-mode: both;
}

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

/* Responsive improvements */
@media (max-width: 992px) {
  .why-us .col-lg-4 {
    flex: 0 0 calc(50% - 15px);
    max-width: calc(50% - 15px);
  }
  
  .box {
    height: 350px;
  }
}

@media (max-width: 768px) {
  .why-us .col-lg-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  .box {
    height: auto;
    min-height: 320px;
    margin-bottom: 2rem;
  }
  
  .box h4, .box h3 {
    font-size: 1.75rem;
  }
}

/* Remove extra spacing in boxes */
.box br {
  display: none;
}

/* Update text styles */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  letter-spacing: 0.5px;
}

.text-primary {
  color: var(--primary) !important;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Contact Section Styles */
.contact-card {
  height: 100%;
  background: var(--gradient-card);
  border: 1px solid rgba(79, 70, 229, 0.1);
}

.contact-card:hover {
  border-color: var(--primary);
  transform: translateY(-10px) scale(1.02);
}

.contact-form-card {
  background: var(--light-card);
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.1);
}

.form-floating > label {
  color: var(--text-secondary);
}

.form-control {
  background-color: var(--lighter-bg);
  border: 1px solid rgba(0,0,0,0.1);
  color: var(--text-primary);
}

.form-control:focus {
  background-color: var(--lighter-bg);
  border-color: var(--primary);
  color: var(--text-primary);
  box-shadow: 0 0 0 0.25rem rgba(79, 70, 229, 0.25);
}

.form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
  color: var(--text-secondary);
}

.contact-form textarea.form-control {
  height: 120px;
}

/* Animation for contact cards */
.contact-card {
  animation: fadeInUp 0.6s ease-out;
  animation-fill-mode: both;
}

.contact-card:nth-child(2) {
  animation-delay: 0.2s;
}

.contact-card:nth-child(3) {
  animation-delay: 0.4s;
}

@media (max-width: 768px) {
  .contact-card {
    margin-bottom: 1rem;
  }
}

/* New gradient backgrounds */
.card-gradient-1 {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border: 1px solid rgba(79, 70, 229, 0.1);
  box-shadow: var(--box-shadow);
}

.card-gradient-2 {
  background: linear-gradient(135deg, #f8f9fa 0%, #f3f4f6 100%);
  border: 1px solid rgba(79, 70, 229, 0.1);
  box-shadow: var(--box-shadow);
}

.card-gradient-3 {
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  border: 1px solid rgba(79, 70, 229, 0.1);
  box-shadow: var(--box-shadow);
}

/* Enhanced contact cards */
.contact-card {
  backdrop-filter: blur(10px);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  transition: all 0.4s ease;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(45deg, rgba(79, 70, 229, 0.1), rgba(99, 102, 241, 0.1));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.contact-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.contact-card:hover::before {
  background: linear-gradient(45deg, rgba(79, 70, 229, 0.2), rgba(99, 102, 241, 0.2));
}

/* Enhanced icon box */
.icon-box {
  width: 80px;
  height: 80px;
  background: linear-gradient(45deg, rgba(79, 70, 229, 0.1), rgba(99, 102, 241, 0.1));
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.contact-card:hover .icon-box {
  transform: scale(1.1);
  background: linear-gradient(45deg, rgba(79, 70, 229, 0.2), rgba(99, 102, 241, 0.2));
}

/* Footer styles */
.footer-gradient {
  background: var(--gradient-light);
}

.footer-card {
  background: var(--light-card);
  border: 1px solid rgba(79, 70, 229, 0.1);
  padding: 1.5rem;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.footer-card:hover {
  background: var(--card-hover-bg);
  border-color: var(--primary);
  transform: translateY(-5px);
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a, .contact-list a {
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  padding-left: 0;
}

.footer-links a:hover, .contact-list a:hover {
  color: var(--primary);
  padding-left: 10px;
}

.footer-divider {
  border-color: rgba(0, 0, 0, 0.1);
  margin: 2rem 0;
}

.contact-list li {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.contact-list i {
  color: var(--primary);
  font-size: 1.2rem;
}

/* Badge styling */
.badge {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 1px;
  background: var(--gradient-primary);
  color: white;
  border: none;
}

/* Add icon support if needed */
.box .icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  opacity: 1;
  transition: all 0.3s ease;
}

.box:hover .icon {
  opacity: 1;
  transform: scale(1.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .box {
    max-height: 400px;
  }
  
  .box:hover {
    min-height: 400px;
    max-height: none;
  }
}

/* Enhanced hero section */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-image: url('{% static 'img/cover.jpeg' %}');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* Overlay for hero section */
#hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 1),
    rgba(233, 254, 255, 0.5)
  );
  z-index: 1;
}

#hero .container {
  position: relative;
  z-index: 2;
}

#hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
}

#hero h2 {
  color: var(--text-primary);
  font-weight: 600;
}

@media (max-width: 768px) {
  #hero {
    background-attachment: scroll;
  }
  
  #hero h1 {
    font-size: 2.5rem;
  }

  #hero::before {
    background: linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.97),
      rgba(255, 255, 255, 0.92)
    );
  }
}


/* Contact Section Styles */
.contact {
  background: linear-gradient(180deg, var(--light-bg), var(--lighter-bg));
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0.3;
}

.contact .badge {
  background: var(--gradient-primary);
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  margin-bottom: 1rem;
}

.contact-info-card {
  background: var(--light-bg);
  padding: 2.5rem;
  border-radius: 20px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(79, 70, 229, 0.1);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.contact-info-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(248, 249, 250, 0.95));
  z-index: 0;
}

.contact-info-card > * {
  position: relative;
  z-index: 1;
}

.contact-info-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(79, 70, 229, 0.1);
  border-color: var(--primary);
}

.icon-wrapper {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  transition: all 0.3s ease;
}

.icon-wrapper i {
  font-size: 2rem;
  color: white;
}

.contact-info-card:hover .icon-wrapper {
  transform: scale(1.1) rotate(5deg);
}

.card-title {
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.time-slot {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.time-slot .day {
  font-weight: 500;
  color: var(--text-primary);
}

.time-slot .time {
  color: var(--primary);
  font-weight: 600;
}

.contact-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-block;
}

.contact-link:hover {
  color: var(--primary-hover);
  transform: translateY(-2px);
}

.map-container {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-radius: 20px;
  overflow: hidden;
}

@media (max-width: 768px) {
  .contact-info-card {
    padding: 2rem;
    margin-bottom: 1rem;
  }

  .icon-wrapper {
    width: 60px;
    height: 60px;
  }

  .icon-wrapper i {
    font-size: 1.5rem;
  }

  .card-title {
    font-size: 1.25rem;
  }
}


/* Enhanced Footer Styles */
.footer-gradient {
  background: linear-gradient(180deg, var(--light-bg), var(--lighter-bg));
  position: relative;
  overflow: hidden;
}

.footer-gradient::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0.3;
}

.footer-card {
  background: transparent;
  padding: 1.5rem;
  border-radius: 15px;
  transition: all 0.3s ease;
  height: 100%;
}

.footer-card:hover {
  transform: translateY(-5px);
}

.footer-links li {
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--primary);
  transform: translateX(5px);
}

.footer-links a i {
  font-size: 0.8rem;
  opacity: 0.7;
}

.contact-list a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
}

.contact-list a:hover {
  color: var(--primary);
}

.icon-circle {
  width: 35px;
  height: 35px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-circle i {
  color: white;
  font-size: 1rem;
}

.social-links a {
  color: var(--text-secondary);
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.social-links a:hover {
  color: var(--primary);
  transform: translateY(-3px);
}

.footer-divider {
  border-color: rgba(0, 0, 0, 0.1);
  margin: 2rem 0;
}

@media (max-width: 768px) {
  .footer-card {
    text-align: center;
    margin-bottom: 1rem;
  }

  .contact-list li {
    justify-content: center;
  }

  .footer-links a {
    justify-content: center;
  }
}