/* 
   MWealth Premium Light Design System
   Version 3.0 (White Theme + Particles)
*/

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap");

:root {
  --bg-light: #ffffff;
  --surface: #f8fafc;
  --surface-light: #f1f5f9;
  --accent-gold: #c29d0b;
  --accent-blue: #0284c7;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --border-color: rgba(0, 0, 0, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(0, 0, 0, 0.1);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
  --shadow-glow: 0 10px 40px rgba(2, 132, 199, 0.2);
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-light);
  color: var(--text-primary);
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.heading-font {
  font-family: "Outfit", sans-serif;
  font-weight: 700;
}

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

ul {
  list-style: none;
}

/* Particles Container */
#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1;
  background-color: var(--bg-light);
}

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

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

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

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

/* Layout Containers */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  scroll-margin-top: 120px;
}

/* Glow Background Effects */
.glow-blob {
  position: fixed;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(2, 132, 199, 0.05) 0%,
    transparent 70%
  );
  border-radius: 50%;
  z-index: -2;
  pointer-events: none;
}

.glow-blob-1 {
  top: -10%;
  right: -10%;
}

.glow-blob-2 {
  bottom: -10%;
  left: -10%;
  background: radial-gradient(
    circle,
    rgba(234, 179, 8, 0.05) 0%,
    transparent 70%
  );
}

/* Navbar */
.navbar {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1200px;
  padding: 0.5rem 2rem;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid #0f172a;
  border-radius: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-soft);
}

.navbar.scrolled {
  top: 0;
  width: 100%;
  border-radius: 0;
  background: #fff;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

.logo img {
  height: 50px;
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-blue);
}

.nav-actions {
  display: flex;
  gap: 1rem;
}

.btn {
  padding: 0.8rem 1.8rem;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  font-size: 0.9rem;
}

.btn-primary {
  background: linear-gradient(135deg, #152e44, #0369a1);
  color: #fff;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(2, 132, 199, 0.3);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.btn-outline:hover {
  background: var(--surface-light);
}

/* Hero Section */
.hero {
  padding-top: 200px;
  padding-bottom: 120px;
  display: flex;
  align-items: center;
  gap: 4rem;
}

.hero-content {
  flex: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(2, 132, 199, 0.1);
  border: 1px solid rgba(2, 132, 199, 0.2);
  border-radius: 100px;
  color: var(--accent-blue);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 4.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.hero-title span {
  color: var(--accent-gold);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 500px;
}

/* Bento Grid Services */
.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-tag {
  color: var(--accent-blue);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  display: block;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 3rem;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 1.5rem;
  }

  .purpose-grid {
    display: block !important;
    gap: 10px;
  }
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* 2 columns for large screen */
  gap: 1.5rem;
  margin-bottom: 60px;
}

.bento-item {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.bento-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.bento-item.large {
  grid-column: span 2;
  grid-row: span 2;
}

.bento-item.tall {
  grid-row: span 2;
}

.bento-item.wide {
  grid-column: span 2;
}

.bento-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--accent-blue);
}

.bento-item h3 {
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
  color: var(--text-primary);
}

.bento-item p {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* Specific styling for bento items with images */
.bento-item.has-bg h3,
.bento-item.has-bg p {
  color: #ffffff !important;
}

/* About Section */
.about-section {
  padding: 120px 0;
}

.about-card {
  background: #fff;
  border-radius: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-soft);
  /* Removed overflow: hidden to prevent text cutting */
}

.about-info {
  padding: 4rem;
}

.about-visual {
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}

.stat-box {
  text-align: center;
  padding: 1.5rem;
  background: var(--surface);
  border-radius: 20px;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-blue);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Security Section */
.security-row {
  display: flex;
  gap: 3rem;
  margin-top: 4rem;
}

.security-card {
  flex: 1;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 3rem;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.security-card i {
  font-size: 3rem;
  color: var(--accent-gold);
}

/* Contact Section */
.contact-section form input,
.contact-section form textarea {
  background: #fff !important;
  border: 1px solid #e2e8f0 !important;
  color: var(--text-primary) !important;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Footer */
footer {
  padding: 80px 0 40px;
  background: #f8fafc;
  border-top: 1px solid var(--border-color);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 4rem;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

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

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate {
  animation: fadeInUp 0.8s forwards;
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 140px;
  }

  .hero-title {
    font-size: 3.5rem;
  }

  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .navbar {
    width: 95%;
    padding: 0.8rem 1.2rem;
  }

  .why-choose-layout {
    display: block !important;
  }

  .nav-toggle {
    display: block;
  }

  .nav-actions {
    display: flex;
    order: 2;
    margin-left: auto;
    margin-right: 1rem;
  }

  .nav-toggle {
    display: block;
    order: 3;
  }

  .logo {
    order: 1;
  }

  .nav-actions .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.8rem;
    border-radius: 8px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    padding: 2rem;
    border-radius: 0 0 20px 20px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  }

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

  .hero {
    padding-top: 140px;
    padding-bottom: 60px;
    flex-direction: column;
    text-align: center;
  }

  .hero-title {
    font-size: 2.8rem;
  }

  .hero-actions {
    justify-content: center;
    width: 100%;
  }

  .hero-image {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .image-glow-wrap {
    margin: 0 auto;
  }

  .about-section {
    padding: 40px 0;
  }

  .about-card {
    grid-template-columns: 1fr !important;
  }

  .about-info {
    padding: 1.5rem;
    text-align: center;
  }

  .about-visual {
    min-height: 250px;
    padding: 1.5rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .bento-grid {
    grid-template-columns: 1fr !important;
    grid-auto-rows: auto !important;
    margin-bottom: 40px;
  }

  .bento-item {
    min-height: 220px;
    padding: 1.5rem;
    text-align: center;
  }

  .security-row {
    flex-direction: column;
    gap: 1.5rem;
    padding: 0 1rem;
  }

  .security-card {
    padding: 2rem;
  }

  .contact-section {
    padding: 60px 0 !important;
    overflow: visible !important;
  }

  .contact-section .about-card {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
  }

  .contact-section .about-info {
    width: 100% !important;
    padding: 2.5rem 1.5rem !important;
    text-align: center;
  }

  .contact-section form {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
    width: 100% !important;
  }

  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    text-align: center;
  }

  .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .newsletter div {
    flex-direction: column;
  }
}
