



/* Reset and Base Styles */
/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
}

/* Navigation Enhancements */
.navbar {
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
}

.navbar-nav .nav-link {
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: #ffc107 !important;
  transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
  margin-top: 0;
  position: relative;
}

.carousel-item {
  height: 100vh;
  min-height: 600px;
}

.slide-bg {
  background: rgba(0, 86, 179, 0.8);

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
   min-height: 100vh;

  filter: brightness(0.8); /* 1 = normal, <1 darker */
}

.slide-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
 /* background: rgba(0, 86, 179, 0.8);*/

}

.slide-1 {
  background-image: url("https://images.unsplash.com/photo-1509391366360-2e959784a276?w=1600");
}
.slide-2 {
  background-image: url("https://images.unsplash.com/photo-1509391366360-2e959784a276?w=1600");}

.slide-3 {
  background-image: url("https://images.unsplash.com/photo-1509391366360-2e959784a276?w=1600");}

.hero-content {
  position: relative;
  z-index: 2;
  animation: fadeInUp 1s ease-out;
}

.hero-features {
  position: relative;
  z-index: 2;
  animation: fadeInRight 1s ease-out 0.3s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.subsidy-box {
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.subsidy-card {
    background: linear-gradient(135deg, #007bff 0%, #0056b3  100%);
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
     background-size: cover;
    background-position: center;
   
    position: relative;
      

}

/* ==========================
   Subsidy Box
========================== */
.subsidy-box {
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: fadeInUp 1s ease forwards;
  opacity: 0;
  transform: translateY(30px);
}
@keyframes fadeInUp {
  to {opacity: 1; transform: translateY(0);}
}

/* ==========================
   Subsidy Card
========================== */
.subsidy-card {
  border: none;
  border-radius: 20px;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0,0,0,0.25);
  animation: cardPop 1s ease forwards;
  transform: translateY(30px);
  opacity: 0;
}
.subsidy-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #007bff, #ff4081, #ff9100, #20c997);
  background-size: 300% 300%;
  animation: gradientShift 8s ease infinite;
  z-index: 0;
}
.subsidy-card > * {
  position: relative;
  z-index: 1;
}
.subsidy-card:hover {
  transform: scale(1.07);
  box-shadow: 0 25px 50px rgba(0,0,0,0.35);
  background-color:  pink;
}
@keyframes cardPop {
  to { transform: translateY(0); opacity: 1; }
}

/* ==========================
   Generic Card
========================== */
.card {
  border: none;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 15px 40px rgba(0,0,0,0.25);
  background: pink;
}

/* ==========================
   Buttons
========================== */
.btn {
  padding: 12px 30px;
  font-weight: 600;
  border-radius: 50px;
  border: 3px solid transparent;
  background: #fff;
  color: #333;
  position: relative;
  z-index: 1;
  overflow: hidden;
  transition: all 0.3s ease;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50px;
  background: linear-gradient(270deg, #ff512f, #007bff, #20c997, #ff4081);
  background-size: 600% 600%;
  animation: gradientShift 6s ease infinite;
  z-index: -1;
}
.btn:hover {
  color: #fff;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}
.btn:active {
  transform: scale(0.95);
}

/* ==========================
   Calculator
========================== */
.calculator-form {
  background:white;
  border-radius: 20px;
  padding: 2rem;
  color: black;

  position: relative;
  overflow: hidden;
  animation: neonPop 1.2s ease forwards;
  transform: scale(0.9);
  opacity: 0;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}
.calculator-form::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #ff512f, #ff9100, #28a745, #007bff);
  background-size: 300% 300%;
  animation: gradientShift 12s linear infinite;
  opacity: 0.15;
}
@keyframes neonPop {
  to { opacity: 1; transform: scale(1); }
}

/* Inputs & Select */
.calculator-form input,
.calculator-form .form-select {
  border-radius: 12px;
  background: #222;
  color: #fff;
  border: 2px solid transparent;
  padding: 12px;
  margin-bottom: 12px;
  transition: all 0.3s ease;
}
.calculator-form input:focus,
.calculator-form .form-select:focus {
  border-color: #ff4081;
  box-shadow: 0 0 15px #ff4081;
  transform: scale(1.05);
}

/* ==========================
   Result Card
========================== */
.result-card {
  border-radius: 20px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  color: #fff;
  background: linear-gradient(270deg, #28a745, #20c997, #007bff, #ff512f);
  background-size: 500% 500%;
  animation: gradientShift 7s ease infinite;
  position: relative;
  overflow: hidden;
}
.result-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -50%;
  width: 40%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0.5), rgba(255,255,255,0));
  animation: shine 3s infinite;
}
@keyframes shine {
  0% { left: -50%; }
  60% { left: 120%; }
  100% { left: 120%; }
}

/* ==========================
   Form Fields
========================== */
.form-control, .form-select {
  border-radius: 10px;
  border: 2px solid #e9ecef;
  padding: 12px 15px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}
.form-control:focus, .form-select:focus {
  border-color: #007bff;
  box-shadow: 0 0 15px rgba(0,123,255,0.4);
  transform: scale(1.03);
}

/* ==========================
   Global Gradient Animation
========================== */
.animated-gradient {
  background: linear-gradient(135deg, #007bff, #ff512f, #28a745, #ff4081);
  background-size: 400% 400%;
  animation: gradientShift 10s ease infinite;
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}


/* Map Container */
.map-container {
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        text-align: center;
        padding-top: 80px;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .subsidy-box {
        margin-top: 2rem;
    }
    
    .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
    
    .admin-sidebar {
        min-height: auto;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading Spinner */
.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}



/* Animation Classes */
.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Services Page Specific */
.service-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #007bff;
}

.feature-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.feature-list li:last-child {
    border-bottom: none;
}

/* Calculator Results */
.calc-result {
    background: #f8f9fa;
    border-left: 4px solid #007bff;
    padding: 1rem;
    margin: 0.5rem 0;
}

.calc-highlight {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 1rem;
    margin: 0.5rem 0;
}


.vendor-logos p {
  display: block;
  width: 100%;         /* take full row */
  text-align: center;  /* center align */
  margin-top: 15px;    /* spacing below logos */
  font-weight: 600;    /* bold look */
  color: #fff;         /* ensure white text */
}
#vendors {
    background-color: #ffffff !important; /* pure white */
}


/* Footer */
footer a {
  text-decoration: none;
  transition: all 0.3s ease;
}

footer a:hover {
  color: #ffc107 !important;
}

.social-links a {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: #ffc107;
  color: #000 !important;
  transform: translateY(-3px);
}


/* Extra Large Devices (Large Desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  .display-4 {
    font-size: 3.5rem;
  }
  
  .hero-content {
    padding: 20px 0;
  }
 

}

/* Large Devices (Desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .container {
    max-width: 960px;
  }
  
  .display-4 {
    font-size: 3rem;
  }
  
  .carousel-item {
    min-height: 550px;
  }
}

/* Medium Devices (Tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .container {
    max-width: 720px;
  }
  
  .navbar-brand {
    font-size: 1.3rem;
  }
  
  .display-4 {
    font-size: 2.5rem;
  }
  
  .display-5 {
    font-size: 2rem;
  }
  
  .carousel-item {
    min-height: 500px;
  }
  
  .hero-content {
    text-align: center;
    margin-bottom: 30px;
  }
  
  .hero-features {
    text-align: center;
  }
  
  section {
    padding: 60px 0;
  }
  
  .card {
    margin-bottom: 20px;
  }
  
  .vendor-logos {
    justify-content: center !important;
  }
  
  .bank-logos {
    justify-content: center !important;
  }
  
}

/* Small Devices (Landscape Phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .container {
    max-width: 540px;
  }
  
  .navbar-brand {
    font-size: 1.2rem;
  }
  
  .display-4 {
    font-size: 2rem;
  }
  
  .display-5 {
    font-size: 1.8rem;
  }
  
  .carousel-item {
    min-height: 450px;
  }
  
  .hero-content,
  .hero-features {
    text-align: center;
  }
  
  .hero-content {
    margin-bottom: 30px;
  }
  
  section {
    padding: 50px 0;
  }
  
  .lead {
    font-size: 1.1rem;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
  
  .vendor-item,
  .bank-item {
    margin: 10px;
  }
  
  .card-body {
    padding: 1.5rem;
  }
}

/* Extra Small Devices (Portrait Phones, less than 576px) */
@media (max-width: 575.98px) {
  .container {
    max-width: 100%;
    padding: 0 15px;
  }
  
  .navbar-brand {
    font-size: 1.1rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.5rem 0.75rem !important;
  }
  
  .display-4 {
    font-size: 1.8rem;
    line-height: 1.2;
  }
  
  .display-5 {
    font-size: 1.6rem;
    line-height: 1.2;
  }
  
  .carousel-item {
    height: 100vh;
    min-height: 400px;
  }
  
  .hero-content,
  .hero-features {
    text-align: center;
    padding: 20px 0;
  }
  
  .hero-content {
    margin-bottom: 20px;
  }
  
  .hero-content h1 {
    margin-bottom: 15px;
  }
  
  .hero-content p {
    margin-bottom: 15px;
    font-size: 0.95rem;
  }
  
  .hero-features h3 {
    font-size: 1.3rem;
  }
  
  .hero-features h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }
  
  .hero-features ul li {
    font-size: 0.9rem;
    margin-bottom: 8px;
  }
  
  section {
    padding: 40px 0;
  }
  
  .lead {
    font-size: 1rem;
  }
  
  .btn-lg {
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
  }
  
  .card {
    margin-bottom: 20px;
  }
  
  .card-body {
    padding: 1.25rem;
  }
  
  .vendor-item,
  .bank-item {
    margin: 8px;
    padding: 15px !important;
  }
  
  .vendor-logos,
  .bank-logos {
    justify-content: center !important;
  }
  
  .contact-item {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
  
  .contact-item i {
    margin-bottom: 5px;
    width: auto;
  }
  
  .map-container iframe {
    height: 250px;
  }
  
  .result-card {
    margin-bottom: 15px;
  }
  
  .result-card h6 {
    font-size: 0.9rem;
  }
  
  .result-card .fs-4 {
    font-size: 1.3rem !important;
  }
  
  .social-links a {
    width: 35px;
    height: 35px;
    line-height: 35px;
    margin: 0 5px;
  }
  
  .carousel-control-prev,
  .carousel-control-next {
    width: 8%;
  }
  
  .carousel-indicators {
    bottom: 10px;
  }
  
  .carousel-indicators button {
    width: 10px;
    height: 10px;
  }
}

/* Android Specific Optimizations */
@media screen and (-webkit-min-device-pixel-ratio: 2) {
  .hero-content {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  
  .btn {
    -webkit-appearance: none;
    border-radius: 8px;
  }
  
  .form-control,
  .form-select {
    -webkit-appearance: none;
    border-radius: 8px;
  }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
  .card:hover {
    transform: none;
  }
  
  .vendor-item:hover,
  .bank-item:hover {
    transform: none;
  }
  
  .btn {
    min-height: 44px;
    padding: 12px 20px;
  }
  
  .nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

/* High DPI Display Optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 2dppx) {
  .slide-bg {
    background-size: 100% auto;
  }
  
  .navbar-brand,
  .display-4,
  .display-5 {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .carousel-control-prev,
  .carousel-control-next,
  .carousel-indicators,
  footer {
    display: none !important;
  }
  
  .hero-section {
    margin-top: 0;
    height: auto;
    min-height: auto;
  }
  
  .carousel-item {
    height: auto;
    min-height: auto;
  }
  
  section {
    padding: 20px 0;
    page-break-inside: avoid;
  }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .carousel {
    animation: none;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .bg-light {
    background-color: #2d3748 !important;
  }
  
  .text-dark {
    color: #e2e8f0 !important;
  }
  
  .card {
    background-color: #4a5568;
    color: #e2e8f0;
  }
}

/* Focus States for Accessibility */
.btn:focus,
.nav-link:focus,
.form-control:focus,
.form-select:focus {
  outline: 2px solid #ffc107;
  outline-offset: 2px;
}

/* Loading Animation */
.loading {
  position: relative;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #007bff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Smooth scrolling for all browsers */
html {
  scroll-behavior: smooth;
  -webkit-scroll-behavior: smooth;
}

/* iOS Safari specific fixes */
@supports (-webkit-touch-callout: none) {
  .carousel-item {
    height: 100vh;
    height: -webkit-fill-available;
  }
  
  .min-vh-100 {
    min-height: 100vh;
    min-height: -webkit-fill-available;
  }
}





