/* assets/style.css - Main Stylesheet */
:root {
  --primary-color: #8B5E2A;
  /* Brown */
  --secondary-color: #5A8DA8;
  /* Soft Blue */
  --bg-color: #F9F7F3;
  /* Beige */
  --text-color: #333333;
  --light-text: #666666;
  --white: #FFFFFF;
  --card-radius: 20px;
  --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
}

/* Typography */
h1,
h2,
h3,
h4,
h5 {
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
  color: var(--light-text);
}

a {
  text-decoration: none;
  color: var(--secondary-color);
  transition: var(--transition);
}

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

/* Utilities */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.section {
  padding: 80px 0;
}

.text-center {
  text-align: center;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
}

.btn-primary:hover {
  background-color: #714C22;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(139, 94, 42, 0.3);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: #4A7A94;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(90, 141, 168, 0.3);
}

/* Cards */
.card {
  background: var(--white);
  border-radius: var(--card-radius);
  padding: 30px;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

/* Navbar */
.navbar {
  background: var(--white);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 15px;
}

.nav-brand img {
  height: 50px;
  width: auto;
  object-fit: contain;
  border-radius: 5px;
}

.nav-brand span {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-color);
}

.nav-links {
  display: flex;
  gap: 25px;
  list-style: none;
}

.nav-links a {
  font-weight: 600;
  color: var(--text-color);
  position: relative;
  padding-bottom: 5px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background: var(--secondary-color);
  bottom: 0;
  left: 0;
  transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--secondary-color);
}

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--primary-color);
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 40px 0 20px;
  margin-top: 50px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-col h3 {
  color: var(--white);
  margin-bottom: 20px;
}

.footer-col p {
  color: #CCCCCC;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #999999;
}

/* Page Banner */
.page-banner {
  position: relative;
  height: 250px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-banner .overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
}

.page-banner .banner-content {
  position: relative;
  text-align: center;
  color: #ffffff;
  z-index: 2;
  padding: 0 15px;
}

.page-banner .banner-content h1 {
  font-size: 36px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 10px;
}

.page-banner .banner-content p {
  font-size: 16px;
  opacity: 0.9;
  color: #ffffff;
  margin: 0;
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white, white);
  min-width: 180px;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
  opacity: 0;
  transform: translateY(10px);
  transition: 0.3s;
  z-index: 100;
}

.dropdown-menu li {
  list-style: none;
}

.dropdown-menu li a {
  display: block;
  padding: 10px 20px;
  color: #333;
  text-decoration: none;
  font-weight: 500;
}

.dropdown-menu li a::after {
  display: none;
  /* Hide hover line inside dropdown */
}

.dropdown-menu li a:hover {
  background: #f5f5f5;
  color: var(--primary-color);
}

.dropdown:hover .dropdown-menu {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .dropdown-menu {
    position: static;
    box-shadow: none;
    opacity: 1;
    transform: none;
    display: none;
    padding-left: 15px;
  }

  .dropdown.active .dropdown-menu {
    display: block;
  }

  .page-banner {
    height: 180px;
  }

  .page-banner .banner-content h1 {
    font-size: 28px;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    padding: 20px;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
  }

  .nav-links.show {
    display: flex;
  }

  .mobile-menu-btn {
    display: block;
  }
}

/* Fintech Grid & Timeline */
.top-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  padding: 60px 0;
}

.fin-card {
  background: var(--white, #fff);
  padding: 25px 30px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
}

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

.fin-card h3 {
  color: var(--primary-color);
  margin-bottom: 20px;
  border-bottom: 2px solid var(--secondary-color);
  padding-bottom: 10px;
  display: inline-block;
}

.fin-card p {
  color: var(--light-text);
  line-height: 1.6;
}

.timeline {
  position: relative;
  padding: 60px 0;
  max-width: 900px;
  margin: 0 auto;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  width: 2px;
  height: 100%;
  background: var(--info, #2E5BFF);
  top: 0;
}

.timeline-item {
  width: 50%;
  position: relative;
  padding: 0 40px 40px;
}

.timeline-item.left {
  text-align: right;
  left: 0;
}

.timeline-item.right {
  left: 50%;
  text-align: left;
}

.timeline-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  position: absolute;
  top: 15px;
  z-index: 2;
}

.timeline-item.left .timeline-dot {
  right: -8px;
}

.timeline-item.right .timeline-dot {
  left: -9px;
}

.timeline-dot.blue {
  background: #2E5BFF;
  box-shadow: 0 0 0 4px rgba(46, 91, 255, 0.2);
}

.timeline-dot.dark {
  background: #1E3A8A;
  box-shadow: 0 0 0 4px rgba(30, 58, 138, 0.2);
}

.timeline-dot.green {
  background: #22C55E;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2);
}

.timeline-dot.gold {
  background: #FACC15;
  box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.2);
}

.timeline-content {
  background: var(--white, #f9fafc);
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
  display: inline-block;
  width: 100%;
}

.timeline-content h4 {
  color: var(--info, #2E5BFF);
  font-size: 1.1rem;
  margin-bottom: 5px;
  font-weight: 700;
}

.timeline-content h3 {
  color: var(--text-color);
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.timeline-content p {
  margin: 0;
  color: var(--light-text);
}

@media (max-width: 768px) {
  .top-cards {
    grid-template-columns: 1fr;
    padding: 30px 0;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 50px;
    padding-right: 0;
  }

  .timeline-item.left,
  .timeline-item.right {
    left: 0;
    text-align: left;
  }

  .timeline-item.left .timeline-dot,
  .timeline-item.right .timeline-dot {
    left: 12px;
  }
}

/* Stats Section */
.stats {
  margin-top: -80px;
  padding: 0;
  position: relative;
  z-index: 10;
}

.stats-container {
  background: var(--white, #ffffff);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
  padding: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.stat-box {
  border-right: 1px solid var(--border-color, #eee);
  padding: 10px 20px;
}

.stat-box:last-child {
  border-right: none;
}

.stat-box .icon {
  font-size: 32px;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.stat-box h2 {
  font-size: 32px;
  margin: 10px 0 5px;
  color: var(--primary-color);
}

.stat-box p {
  color: #666;
  margin-bottom: 5px;
  font-weight: 600;
}

.stat-box small {
  color: #999;
  font-size: 0.85rem;
}

@media (max-width: 992px) {
  .stats-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-box {
    border-right: none;
    border-bottom: 1px solid #eee;
    padding: 20px 10px;
  }

  .stat-box:nth-last-child(-n+2) {
    border-bottom: none;
  }
}

@media (max-width: 576px) {
  .stats-container {
    grid-template-columns: 1fr;
  }

  .stat-box {
    border-bottom: 1px solid #eee !important;
  }

  .stat-box:last-child {
    border-bottom: none !important;
  }
}

/* Hero Center UI updates in global CSS */
.hero-logo {
  width: 130px;
  height: auto;
  margin-bottom: 5px;
  border-radius: 20px;
  padding: 5px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  display: inline-block;
}

@media (max-width: 768px) {
  .hero-logo {
    width: 80px;
  }
}

/* Dual Theme Switcher */
.theme-desktop {
  position: absolute;
  right: 20px;
  top: 15px;
  display: block;
}

.theme-mobile {
  display: none;
}

@media (max-width: 768px) {
  .theme-desktop {
    display: none;
  }
  
  .theme-mobile {
    display: block;
    margin-top: 15px;
    border-top: 1px solid var(--border-color, #eee);
    padding-top: 15px;
  }

  .theme-mobile label {
    display: block;
    font-size: 14px;
    color: var(--light-text, #666);
    margin-bottom: 5px;
  }

  .theme-mobile select {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid var(--border-color, #ddd);
    background: var(--bg-color, #fff);
    color: var(--text-color, #333);
    font-family: inherit;
    font-size: 16px;
    outline: none;
  }
}