/* Custom Styles for UP SOLAR SHAKTI */



:root {
  --solar-yellow: #FFD700;
  --solar-blue: #1A365D;
  --solar-accent: #38BDF8;
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  
  /* Fluid Typography Scale */
  --step--2: clamp(0.69rem, calc(0.66rem + 0.18vw), 0.80rem);
  --step--1: clamp(0.83rem, calc(0.78rem + 0.29vw), 1.00rem);
  --step-0: clamp(1.00rem, calc(0.91rem + 0.43vw), 1.25rem);
  --step-1: clamp(1.20rem, calc(1.07rem + 0.63vw), 1.56rem);
  --step-2: clamp(1.44rem, calc(1.26rem + 0.89vw), 1.95rem);
  --step-3: clamp(1.73rem, calc(1.48rem + 1.24vw), 2.44rem);
  --step-4: clamp(2.07rem, calc(1.73rem + 1.70vw), 3.05rem);
  --step-5: clamp(2.49rem, calc(2.03rem + 2.31vw), 3.82rem);
}

body {
  font-family: var(--font-body);
  background-color: #f8fafc; /* slate-50 */
  color: #0f172a; /* slate-900 */
  overflow-x: hidden;
  font-size: var(--step-0);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6, .font-display { 
  font-family: var(--font-display);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* Fluid Headings */
h1, .display-1 { font-size: var(--step-5); }
h2, .display-2 { font-size: var(--step-4); }
h3, .display-3 { font-size: var(--step-3); }
h4, .display-4 { font-size: var(--step-2); }
h5, .display-5 { font-size: var(--step-1); }
h6, .display-6 { font-size: var(--step-0); }

.lead {
  font-size: var(--step-1);
  line-height: 1.5;
}

/* Responsive Utilities */
@media (max-width: 768px) {
  .py-5 {
    padding-top: clamp(2rem, 8vw, 5rem) !important;
    padding-bottom: clamp(2rem, 8vw, 5rem) !important;
  }
  .mb-5 {
    margin-bottom: clamp(1.5rem, 5vw, 3rem) !important;
  }
}

.bg-solar-yellow { background-color: var(--solar-yellow); }
.bg-solar-blue { background-color: var(--solar-blue); }
.bg-solar-accent { background-color: var(--solar-accent); }
.text-solar-blue { color: var(--solar-blue); }
.text-solar-accent { color: var(--solar-accent); }
.text-solar-yellow { color: var(--solar-yellow); }

.glass-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.gradient-text {
  background: linear-gradient(to right, var(--solar-blue), var(--solar-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding-top: 2px;
  padding-bottom: 2px;
}

@media (max-width: 991px) {
  .navbar {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    background: var(--solar-blue) !important;
  }
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(6px);
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
  box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled .nav-link {
  color: #86acd8; /* slate-700 */
}

.navbar.scrolled .navbar-brand {
  color: var(--solar-blue) !important;
}

.nav-link {
  position: relative;
  transition: color 0.3s ease;
  color:#1A365D !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 0px;
  background: var(--solar-yellow);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.btn-solar-blue {
  background: var(--solar-blue);
  color: white;
  border-radius: 9999px;
  padding: 0.65rem 1.75rem;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-solar-blue:hover {
  background: var(--solar-accent);
  color: var(--solar-blue);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(56, 189, 248, 0.3);
  border-color: var(--solar-accent);
}

.btn-outline-solar-blue {
  background-color: transparent;
  color: var(--solar-blue);
  border: 2px solid var(--solar-blue);
  border-radius: 9999px;
  padding: 0.75rem 2rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline-solar-blue:hover {
  background-color: var(--solar-blue);
  color: white;
  transform: translateY(-2px);
}

.hero-section {
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  padding: 90px 0;
}

@media (min-width: 992px) {
  .hero-section {
    height: 100vh;
    padding: 0;
  }
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.45);
  z-index: -1;
  transition: transform 10s ease;
}

.carousel-item.active .hero-image {
  transform: scale(1.1);
}

.card {
  border-radius: 2rem;
  border: 1px solid rgba(226, 232, 240, 0.8);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: white;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
}

.img-responsive {
  max-width: 100%;
  height: auto;
  border-radius: inherit;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  aspect-ratio: 16/10;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.6, 0, 0.3, 1);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: var(--solar-blue);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--solar-accent);
}

/* Back to Top Button */
#backToTop {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.9;
}

#backToTop:hover {
  opacity: 1;
  transform: translateY(-5px);
  background-color: var(--solar-accent);
  border-color: var(--solar-accent);
}

/* Additional Responsive Utilities */
@media (max-width: 576px) {
  .display-3 { font-size: var(--step-2); }
  .display-4 { font-size: var(--step-1); }
  .hero-section { min-height: 400px; padding: 80px 0; }
  .container { padding-left: 1.5rem; padding-right: 1.5rem; }
  .navbar-brand span { font-size: 1.1rem; }
}

/* Image Consistency */
.card-img-top, .img-fluid {
  object-fit: cover;
}

.hero-text-container {
  max-width: 90%;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .hero-text-container h1 {
    font-size: clamp(2rem, 10vw, 3rem);
  }
  .hero-text-container p {
    font-size: clamp(1rem, 4vw, 1.25rem);
  }
}

/* Animations */
[data-aos] {
  opacity: 0;
  transition-property: opacity, transform;
  transition-duration: 0.8s;
}

[data-aos].aos-animate {
  opacity: 1;
}

.fade-up { transform: translateY(30px); }
.fade-up.aos-animate { transform: translateY(0); }

/* Footer Refinements */
.footer {
  background-color: #0f172a;
  color: rgba(255, 255, 255, 0.8);
  border-top: none;
}

.footer h4, .footer h5, .footer .text-solar-blue {
  color: white !important;
}

.footer .text-muted {
  color: rgba(255, 255, 255, 0.6) !important;
}

.footer a {
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
}

.footer a:hover {
  color: var(--solar-yellow) !important;
}

.hover\:text-solar-white:hover {
  color: white !important;
}

.hover\:text-solar-yellow:hover {
  color: var(--solar-yellow) !important;
}

/* NAVBAR FIX - ALWAYS DARK */
.navbar {
  background: #1A365D !important;
}

.navbar.scrolled {
  background: #1A365D !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
  color:#ffffff !important;
}

.navbar .nav-link {
  color: #1A365D !important;
}

.navbar .navbar-brand {
  color: #1A365D !important;
}
.navbar .btn {
  background: #fff;
  color: #1A365D;
}


/* NAVBAR FIX - ALWAYS WHITE TEXT */
.navbar {
  background: #1A365D !important;
}

.navbar.scrolled {
  background: #1A365D !important;/*  */
  color: #ffffff !important;
}

.navbar .nav-link,
.navbar.scrolled .nav-link {
  color: #ffffff !important;
}

.navbar .navbar-brand,
.navbar.scrolled .navbar-brand {
  color: #ffffff !important;
}
