:root {
  --bg: #0b1220;
  --card: #121a2b;
  --text: #e9eefc;
  --muted: #b7c3e6;
  --brand: #ffd166;
  --brand2: #4cc9f0;
  --ok: #6ee7b7;
  --danger: #fb7185;
  --purple: #a78bfa;
  --orange: #fb923c;
  --border: rgba(255, 255, 255, .14);
  --shadow: 0 12px 36px rgba(0, 0, 0, .42);
  --radius: 20px;
  --max: 1280px;
}

#testimonials,
#testimonials h2,
#testimonials p,
#testimonials .quote,
#testimonials .name,
#testimonials .title {
  color: #000;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;

  font-family: 'Inter', system-ui, sans-serif;
  background: white;
  color: var(--text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;

}



.main-wrapper {
  min-height: 100%;
  width: 100%;
  overflow: auto;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Buttons */
.btn {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .07);
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  text-decoration: none;
}

.topbar.scrolled .btn {
  padding: 10px 24px;
  font-size: 14px;
  gap: 6px;
}

.btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .35);
}

.btn.primary {
  background: linear-gradient(135deg, var(--brand), #ffaa00);
  border: 0;
  color: #111827;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(255, 209, 102, .35);
}

.btn.primary:hover {
  box-shadow: 0 16px 44px rgba(255, 209, 102, .5);
  transform: translateY(-4px) scale(1.03);
}

.btn.ghost {
  background: transparent;
  border: 1px solid var(--border);
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, .09);
}

/* Utility Classes */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .06);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.grid {
  display: grid;
  gap: 24px;
}

.section-divider {
  height: 1px;
  background: linear-gradient(to right,
      transparent,
      rgba(255, 255, 255, 0.2),
      transparent);
  margin: 0px 0;
}


.card {
  /* border: 1px solid var(--border); */
  /* border-radius: var(--radius);
  box-shadow: var(--shadow); */
  transition: all 0.4s ease-in-out;
  overflow: hidden;
}

/* Clickable Card Links */
.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.card-link:hover .card {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
  border-color: #66bb6a;
}

.card-link:active .card {
  transform: translateY(-4px) scale(1.01);
}


/* Loan Programs Section Cards */
#programs .card {
  background: #ffffff;
  border: 2px solid #a5d6a7;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
}

/* Slide animations - odd cards from left, even from right */
#programs .card:nth-child(odd) {
  transform: translateX(-60px);
}

#programs .card:nth-child(even) {
  transform: translateX(60px);
}

#programs .card.animate-in {
  opacity: 1;
  transform: translateX(0);
}

/* Darker Professional Green Backgrounds for Loan Cards */
#programs .card:nth-child(1) {
  background: linear-gradient(135deg, #c8e6c9 0%, #dcedc8 100%);
  border-color: #81c784;
}

#programs .card:nth-child(2) {
  background: linear-gradient(135deg, #b2dfdb 0%, #c8e6c9 100%);
  border-color: #4db6ac;
}

#programs .card:nth-child(3) {
  background: linear-gradient(135deg, #b2ebf2 0%, #b2dfdb 100%);
  border-color: #26a69a;
}

#programs .card:nth-child(4) {
  background: linear-gradient(135deg, #c5e1a5 0%, #dcedc8 100%);
  border-color: #9ccc65;
}

#programs .card:nth-child(5) {
  background: linear-gradient(135deg, #a5d6a7 0%, #c8e6c9 100%);
  border-color: #66bb6a;
}

#programs .card:nth-child(6) {
  background: linear-gradient(135deg, #80cbc4 0%, #a5d6a7 100%);
  border-color: #26a69a;
}

#programs .card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

#programs .card .h3 {
  color: #1b5e20;
}

#programs .card .muted {
  color: #2e7d32;
}

/* Stagger animation delay for loan cards */
#programs .card:nth-child(1) {
  transition-delay: 0.1s;
}

#programs .card:nth-child(2) {
  transition-delay: 0.2s;
}

#programs .card:nth-child(3) {
  transition-delay: 0.3s;
}

#programs .card:nth-child(4) {
  transition-delay: 0.4s;
}

#programs .card:nth-child(5) {
  transition-delay: 0.5s;
}

#programs .card:nth-child(6) {
  transition-delay: 0.6s;
}



.card .pad {
  padding: 36px;
}

.muted {
  color: var(--muted);
}

.h1 {
  font-size: 4.2rem;
  line-height: 1.1;
  margin: 0 0 1.2rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.h2 {
  font-size: 2.8rem;
  margin: 0 0 1rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.h3 {
  font-size: 1.6rem;
  margin: 0 0 0.8rem;
  font-weight: 700;
}

/* KPI Section */
.kpi {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.kpi .item {
  padding: 24px 32px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(255, 255, 255, .07);
  transition: all 0.4s ease;
}

.kpi .item:hover {
  background: rgba(255, 255, 255, .13);
  border-color: rgba(255, 255, 255, .25);
}

.kpi .big {
  font-weight: 800;
  font-size: 2.2rem;
  color: var(--brand);
}

.kpi .label {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}

/* Topbar */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #001800;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  backdrop-filter: blur(12px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Scrolled state - lighter shade with transparency and reduced height */
.topbar.scrolled {
  background: rgba(48, 67, 46, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, .15);
  box-shadow: 0 4px 20px rgba(0, 0, 0, .3);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  gap: 8px;
  transition: padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.topbar.scrolled nav {
  padding: 12px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  transition: gap 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand span {
  transition: font-size 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.topbar.scrolled .brand {
  gap: 12px;
}

.topbar.scrolled .brand span {
  font-size: 1.1rem !important;
}

.logo {
  width: 150px;
  height: 60px;
  border-radius: 16px;
  background: white;
  box-shadow: 0 14px 40px rgba(255, 209, 102, .35);
  border: 1px solid rgba(255, 255, 255, .18);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

  /* ensure the image is contained */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* fill the div while keeping aspect ratio */
  border-radius: 16px;
  /* match parent rounded corners */
}


.topbar.scrolled .logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(255, 209, 102, .3);
}

.logo:hover {
  transform: scale(1.08);
  box-shadow: 0 20px 52px rgba(255, 209, 102, .5);
}

.navlinks {
  display: flex;
  gap: 4px;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
}

.navlinks a {
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--muted);
  font-weight: 500;
  font-size: 14px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  white-space: nowrap;
}

.topbar.scrolled .navlinks a {
  padding: 8px 16px;
  font-size: 14px;
}

.navlinks a:hover {
  background: rgba(255, 255, 255, .09);
  color: var(--text);
}

/* Dropdown Menu Styles */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-trigger {
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--muted);
  font-weight: 500;
  font-size: 14px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  white-space: nowrap;
}

.topbar.scrolled .dropdown-trigger {
  padding: 8px 16px;
  font-size: 14px;
}

.dropdown-icon {
  font-size: 10px;
  transition: transform 0.3s ease;
}

.nav-dropdown:hover .dropdown-icon {
  transform: rotate(180deg);
}

.dropdown-trigger:hover {
  background: rgba(255, 255, 255, .09);
  color: var(--text);
}

/* Updated dropdown styles with !important for critical properties */
.dropdown-menu {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  margin-top: 6px !important;
  display: block !important;
  background: #001800 !important;
  border: 1px solid rgba(255, 255, 255, .15) !important;
  border-radius: 12px !important;
  backdrop-filter: blur(12px) !important;
  min-width: 200px !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(-10px) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .4) !important;
  z-index: 1000 !important;
  overflow: hidden !important;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}

/* Add this to your style.css file OR at the end of your <style> section */
.topbar .container {
  position: static !important;
}

.topbar .wrap {
  position: static !important;
}



/* Alternative: Make sure dropdown menu breaks out of container */
.nav-dropdown {
  position: relative;
}

.nav-dropdown .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 6px;
  display: block !important;
  background: #001800 !important;
  border: 1px solid rgba(255, 255, 255, .15) !important;
  border-radius: 12px !important;
  backdrop-filter: blur(12px) !important;
  min-width: 200px !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(-10px) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .4) !important;
  z-index: 1000 !important;
  overflow: hidden !important;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 500;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-item i {
  color: #6ee7b7;
  font-size: 10px;
  transition: transform 0.3s ease;
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, .08);
  color: var(--text);
  padding-left: 18px;
}

.dropdown-item:hover i {
  transform: translateX(4px);
  color: #81c784;
}

/* Scrolled state for dropdown */
.topbar.scrolled .dropdown-menu {
  background: rgba(48, 67, 46, 0.95);
}


/* Header */
header {
  padding: 100px 0 60px;
}

/* Hero Section with Video Background */
.hero-section {
  position: relative;
  min-height: 100vh;

  display: flex;
  align-items: center;
  overflow: hidden;
  background-image: url("Uploads/Images/home.jpg");
  background-size: cover;
  background-position: center;
}

/* Background Video */
.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Dark Overlay */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  z-index: 1;
}

/* Hero Section Content Wrapper */
.hero-section .wrap {
  position: relative;
  z-index: 2;
  width: 100%;
}

/* Scroll Down Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  opacity: 0.8;
  transition: all 0.3s ease;
  animation: bounce 2s infinite;
}

.scroll-indicator:hover {
  opacity: 1;
  transform: translateX(-50%) translateY(-5px);
}

.scroll-indicator i {
  font-size: 20px;
}

/* Bounce Animation for Scroll Indicator */
@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  40% {
    transform: translateX(-50%) translateY(-10px);
  }

  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

.hero {
  position: relative;
  /* background-image removed as it's now handled by hero-section */
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 40px;
  align-items: center;
  overflow: visible;
}

/* Removed dark overlay from content wrapper */
/* .hero::before { ... } */

.hero>* {
  position: relative;
  z-index: 1;
}

.hero>* {
  position: relative;
  z-index: 1;
}

.hero .left {
  padding: 48px;
}

.hero .right {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.5);
}

.hero ul {
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 16px;
}

.hero li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  margin-top: 7px;
  background: var(--ok);
  box-shadow: 0 0 0 5px rgba(110, 231, 183, .22);
  flex-shrink: 0;
}

.cta-group {
  display: flex;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* Sections */
section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header .h2 {
  margin-bottom: 16px;
}

.section-header p {
  color: var(--muted);
  font-size: 18px;
  max-width: 720px;
  margin: 0 auto;
}

/* Grid Layouts */
.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

/* Icons */
.icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(76, 201, 240, .18);
  border: 1px solid rgba(76, 201, 240, .35);
  font-size: 28px;
  margin-bottom: 20px;
  color: #4cc9f0;
  transition: all 0.3s ease;
}

.service-card:hover .icon {
  transform: scale(1.1) rotate(5deg);
}

.icon.purple {
  background: rgba(167, 139, 250, .18);
  border-color: rgba(167, 139, 250, .35);
  color: #a78bfa;
}

.icon.orange {
  background: rgba(251, 146, 60, .18);
  border-color: rgba(251, 146, 60, .35);
  color: #fb923c;
}

.icon.green {
  background: rgba(110, 231, 183, .18);
  border-color: rgba(110, 231, 183, .35);
  color: #6ee7b7;
}

.icon.gold {
  background: rgba(255, 209, 102, .18);
  border-color: rgba(255, 209, 102, .35);
  color: #ffd166;
}

/* Services Section - White Background */
#services {
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
  position: relative;
}

#services .section-header h2,
#services .section-header p {
  color: #1a202c;
}

/* Service Cards */
.service-card {
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(30px);
}

/* Professional Green Shades for Each Card */
.service-card:nth-child(1) {
  background: linear-gradient(135deg, #e8f5e9 0%, #f1f8f4 100%);
  border-color: #c8e6c9;
}

.service-card:nth-child(2) {
  background: linear-gradient(135deg, #f1f8f5 0%, #e0f2f1 100%);
  border-color: #b2dfdb;
}

.service-card:nth-child(3) {
  background: linear-gradient(135deg, #e8f4f8 0%, #f0f7f4 100%);
  border-color: #b2ebf2;
}

.service-card:nth-child(4) {
  background: linear-gradient(135deg, #f0f8f0 0%, #e7f5e8 100%);
  border-color: #c5e1a5;
}

.service-card:nth-child(5) {
  background: linear-gradient(135deg, #edf7ed 0%, #f4fbf4 100%);
  border-color: #a5d6a7;
}

.service-card:nth-child(6) {
  background: linear-gradient(135deg, #e6f7f1 0%, #f2faf6 100%);
  border-color: #80cbc4;
}

.service-card.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
  border-color: var(--brand);
}

.service-card .h3 {
  margin-bottom: 12px;
  color: #1a202c;
}

.service-card p {
  color: #4a5568;
  font-size: 15px;
  line-height: 1.75;
}

/* Stagger animation delay for cards */
.service-card:nth-child(1) {
  transition-delay: 0.1s;
}

.service-card:nth-child(2) {
  transition-delay: 0.2s;
}

.service-card:nth-child(3) {
  transition-delay: 0.3s;
}

.service-card:nth-child(4) {
  transition-delay: 0.4s;
}

.service-card:nth-child(5) {
  transition-delay: 0.5s;
}

.service-card:nth-child(6) {
  transition-delay: 0.6s;
}

/* Testimonials */
.testimonial {
  position: relative;
}

.testimonial .pad {
  padding: 36px;
}

.quote {
  font-size: 19px;
  line-height: 1.85;
  margin-bottom: 24px;
  color: var(--text);
  font-style: italic;
}

.author {
  display: flex;
  gap: 16px;
  align-items: center;
}

.avatar {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand2), var(--brand));
  border: 2px solid rgba(255, 255, 255, .18);
}

/* Main Carousel */
.carousel-container {
  position: relative;
  overflow: visible;
  padding: 100px 0;
  perspective: 1200px;
}

.carousel-track {
  display: flex;
  gap: 40px;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-item {
  min-width: calc(33.333% - 27px);
  transition: all 0.6s ease;
  opacity: 0.4;
  transform: scale(0.88) rotateY(-12deg);
  filter: blur(2px);
  pointer-events: none;
}

.carousel-item.active {
  opacity: 1;
  transform: scale(1.08) rotateY(0deg) translateY(-8px);
  filter: blur(0);
  pointer-events: auto;
  z-index: 5;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .6);
}

.carousel-item.active .card {
  border-color: rgba(255, 209, 102, .45);
  box-shadow: 0 30px 70px rgba(255, 209, 102, .2), 0 0 0 2px rgba(255, 209, 102, .25);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.4s ease;
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
}

.carousel-btn:hover {
  background: rgba(255, 209, 102, .25);
  border-color: var(--brand);
  transform: translateY(-50%) scale(1.15);
}

/* Reviews Carousel */
.reviews-carousel-container {
  position: relative;
  overflow: hidden;
  padding: 40px 0;
}

.reviews-track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s ease;
}

.review-item {
  min-width: calc(50% - 12px);
}

.review-item .card {
  height: 100%;
}

/* Contact Section */
.contact-section {
  background: linear-gradient(180deg, rgba(255, 209, 102, .08), rgba(76, 201, 240, .08));
  border-radius: var(--radius);
  padding: 60px 40px;
  margin: 60px 0;
  border: 1px solid var(--border);
}

/* Form */
form {
  display: grid;
  gap: 24px;
  margin-top: 24px;
}

.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

input,
select,
textarea {
  width: 100%;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .05);
  color: var(--text);
  font-size: 15px;
  transition: all 0.3s;
  font-family: 'Inter', sans-serif;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--brand);
  background: rgba(255, 255, 255, .12);
  box-shadow: 0 0 12px rgba(255, 209, 102, .2);
}

/* FAQ */
details {
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

details.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger animation delay for FAQ items */
details:nth-child(1) {
  transition-delay: 0.1s;
}

details:nth-child(2) {
  transition-delay: 0.2s;
}

details:nth-child(3) {
  transition-delay: 0.3s;
}

details:nth-child(4) {
  transition-delay: 0.4s;
}

details:nth-child(5) {
  transition-delay: 0.5s;
}

details:nth-child(6) {
  transition-delay: 0.6s;
}

details summary {
  font-weight: 600;
  font-size: 18px;
  cursor: pointer;
  color: var(--brand2);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

details summary::after {
  content: "+";
  font-size: 24px;
  transition: transform 0.3s;
  color: var(--brand);
}

details[open] summary::after {
  content: "−";
}

details p {
  margin-top: 16px;
  color: var(--muted);
  line-height: 1.7;
}

/* Quote Section - Simple Fade In */
#quote .card {
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

#quote .card.animate-in {
  opacity: 1;
}

/* Contact Section - White Background */
#contact {
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
  position: relative;
}

#contact .section-header h2,
#contact .section-header p {
  color: #1a202c;
}

#contact .card {
  border: 2px solid #a5d6a7;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Left card - Light green, slides from left */
#contact .card:nth-child(1) {
  background: linear-gradient(135deg, #e8f5e9 0%, #f1f8f4 100%);
  border-color: #c8e6c9;
  transform: translateX(-60px);
}

/* Right card - Darker green, slides from right */
#contact .card:nth-child(2) {
  background: linear-gradient(135deg, #c8e6c9 0%, #dcedc8 100%);
  border-color: #81c784;
  transform: translateX(60px);
}

#contact .card.animate-in {
  opacity: 1;
  transform: translateX(0);
}

#contact .card:nth-child(1) {
  transition-delay: 0.1s;
}

#contact .card:nth-child(2) {
  transition-delay: 0.3s;
}

#contact .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

#contact .card .h3 {
  color: #1b5e20;
}

#contact .card .muted {
  color: #2e7d32;
}

#contact .card a {
  color: #1b5e20 !important;
}

#contact .card .small.muted {
  color: #66bb6a;
}

/* ===== FOOTER STYLES ===== */

/* Footer Main Layout */
footer {
  background: linear-gradient(180deg, rgba(11, 18, 32, 0.9) 0%, #0b1220 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.footer-main {
  align-items: start;
  gap: 40px;
}

/* Footer Brand Section */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}

.footer-logo .logo {
  width: 100px;
  height: 40px;
  border-radius: 16px;
  background: white;
  box-shadow: 0 14px 40px rgba(255, 209, 102, .35);
  border: 1px solid rgba(255, 255, 255, .18);

  overflow: hidden;
  /* ensures image stays inside rounded corners */
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-logo .logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* fills the div without distortion */
  border-radius: 16px;
  /* match the parent rounded corners */
}

.brand-text {
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--brand);
  line-height: 1.2;
}

.footer-tagline {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 12px;
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.contact-item i {
  color: var(--brand2);
  width: 20px;
  text-align: center;
}

.contact-link {
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-link:hover {
  color: var(--brand);
}

/* Footer Links Section */
.foote.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.card-link:hover .card {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
  border-color: #66bb6a;
}

.card-link:active .card {
  transform: translateY(-4px) scale(1.01);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-heading {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  padding: 6px 0;
  transition: all 0.3s ease;
  position: relative;
}

.footer-link:hover {
  color: var(--brand);
  transform: translateX(5px);
}

.footer-link::before {
  content: "→";
  position: absolute;
  left: -20px;
  opacity: 0;
  transition: all 0.3s ease;
  color: var(--brand);
}

.footer-link:hover::before {
  opacity: 1;
  left: -15px;
}

.footer-cta {
  margin-top: 20px;
}

.btn.small {
  padding: 12px 28px;
  font-size: 14px;
}

/* Footer Social Section */
.footer-social {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.social-icons {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.social-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
}

.social-icon:hover {
  background: rgba(255, 209, 102, 0.2);
  color: var(--brand);
  transform: translateY(-3px);
  border-color: rgba(255, 209, 102, 0.3);
  box-shadow: 0 8px 20px rgba(255, 209, 102, 0.15);
}

.social-icon:nth-child(1):hover {
  background: rgba(10, 102, 194, 0.2);
}

.social-icon:nth-child(2):hover {
  background: rgba(24, 119, 242, 0.2);
}

.social-icon:nth-child(3):hover {
  background: rgba(225, 48, 108, 0.2);
}

.social-icon:nth-child(4):hover {
  background: rgba(255, 0, 0, 0.2);
}

/* Newsletter */
.newsletter {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
  margin-top: 10px;
}

.newsletter-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.newsletter-text {
  font-size: 14px;
  margin-bottom: 16px;
  line-height: 1.5;
}

.newsletter-form {
  display: flex;
  gap: 8px;
}

.newsletter-input {
  flex: 1;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 14px;
  transition: all 0.3s ease;
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--brand);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 2px rgba(255, 209, 102, 0.1);
}

.newsletter-input::placeholder {
  color: rgba(183, 195, 230, 0.6);
}

.newsletter-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), #ffaa00);
  border: none;
  color: #111827;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.newsletter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 209, 102, 0.3);
}

/* Footer Bottom */
.footer-bottom {
  padding-top: 30px;
}

.footer-bottom-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-identity {
  text-align: center;
  margin-bottom: 16px;
}

.footer-name {
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  font-size: 16px;
}

.footer-credentials {
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.nmls {
  font-weight: 600;
  color: var(--brand);
}

.separator {
  opacity: 0.6;
}

/* Footer Legal */
.footer-legal {
  max-width: 800px;
  margin: 0 auto;
}

.disclaimer {
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
  margin-bottom: 20px;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}

.legal-link {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.legal-link:hover {
  color: var(--brand);
  text-decoration: underline;
}

/* Footer Dividers */
.footer-divider {
  height: 1px;
  background: linear-gradient(to right,
      transparent,
      rgba(255, 255, 255, 0.1),
      rgba(255, 255, 255, 0.2),
      rgba(255, 255, 255, 0.1),
      transparent);
  margin: 40px 0;
}

/* Responsive Footer */
@media (max-width: 1024px) {
  .footer-main {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .footer-credentials {
    flex-direction: column;
    gap: 4px;
  }

  .legal-links {
    flex-direction: column;
    gap: 8px;
  }

  .separator {
    display: none;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .footer-nav {
    grid-template-columns: 1fr;
  }

  .footer-identity {
    text-align: left;
  }

  .footer-credentials {
    align-items: flex-start;
  }
}

/* Accessibility Improvements */
.footer-link:focus,
.contact-link:focus,
.social-icon:focus,
.legal-link:focus {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

.newsletter-input:focus {
  outline: 2px solid var(--brand);
  outline-offset: 0;
}

/* Print Styles for Footer */
@media print {
  footer {
    background: white !important;
    color: black !important;
    border-top: 1px solid #ccc;
  }

  .social-icons,
  .newsletter,
  .footer-cta {
    display: none !important;
  }
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
}

/* Scroll to Top Button */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 99;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--brand);
  color: #111827;
  border: none;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(255, 209, 102, .4);
  transition: all 0.3s;
}

.scroll-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(255, 209, 102, .5);
}

/* Responsive */
@media(max-width:1024px) {
  .hero {
    grid-template-columns: 1fr
  }

  .cols-3 {
    grid-template-columns: repeat(2, 1fr)
  }

  .review-item {
    min-width: calc(100% - 24px);
  }
}

@media(max-width:768px) {
  .h1 {
    font-size: 3.2rem
  }

  .h2 {
    font-size: 2.4rem
  }

  .cols-3,
  .cols-2 {
    grid-template-columns: 1fr
  }

  .carousel-item {
    min-width: calc(90% - 40px);
    transform: scale(0.92)
  }

  .carousel-item.active {
    transform: scale(1)
  }

  .carousel-container {
    overflow: hidden;
    perspective: none
  }

  .two {
    grid-template-columns: 1fr
  }

  .cta-group {
    flex-direction: column
  }

  .cta-group .btn {
    width: 100%
  }

  .mobile-toggle {
    display: block;
  }

  .navlinks {
    position: fixed;
    top: 85px;
    left: 0;
    width: 100%;
    background: var(--card);
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid var(--border);
    display: none;
    z-index: 99;
  }

  .navlinks.active {
    display: flex;
  }

  /* Hide video on mobile for performance */
  .hero-video {
    display: none;
  }

  .scroll-indicator {
    bottom: 20px;
    font-size: 12px;
  }
}

@media(max-width:480px) {
  .h1 {
    font-size: 2.8rem
  }

  .h2 {
    font-size: 2rem
  }

  .kpi .item {
    padding: 16px 20px;
  }

  .kpi .big {
    font-size: 1.8rem;
  }
}

/* ===== SCROLL ANIMATIONS ===== */

/* Animation Base */
.animate-on-scroll {
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.animated {
  opacity: 1;
}

/* Fade + Slide Up */
.fade-slide-up {
  transform: translateY(50px);
}

.fade-slide-up.animated {
  transform: translateY(0);
}

/* Slide Left */
.slide-left {
  transform: translateX(-60px);
}

.slide-left.animated {
  transform: translateX(0);
}

/* Slide Right */
.slide-right {
  transform: translateX(60px);
}

.slide-right.animated {
  transform: translateX(0);
}

/* Fade In Only */
.fade-in {
  opacity: 0;
}

.fade-in.animated {
  opacity: 1;
}

/* Scale Up */
.scale-up {
  transform: scale(0.9);
}

.scale-up.animated {
  transform: scale(1);
}

/* Stagger Delays */
.delay-100 {
  transition-delay: 0.1s;
}

.delay-200 {
  transition-delay: 0.2s;
}

.delay-300 {
  transition-delay: 0.3s;
}

.delay-400 {
  transition-delay: 0.4s;
}

.delay-500 {
  transition-delay: 0.5s;
}

.delay-600 {
  transition-delay: 0.6s;
}

/* Faster animations for smaller elements */
.animate-fast {
  transition-duration: 0.5s;
}

/* Slower animations for hero sections */
.animate-slow {
  transition-duration: 1.2s;
}