/* --- RESET & VARIABLES --- */
:root {
  --primary: #1c355e;
  --secondary: #2d4a7c;
  --accent: #00ae42;
  --growth: #00ae42;
  --income: #ff9f00;
  --protect: #1c355e;
  --text-light: #f8fafc;
  --text-dark: #334155;
  --transition: all 0.3s ease;
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --hover-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  --radius: 20px;
  --brand-blue: #1c355e;
  --color-growth: #00ae42;
  --color-income: #ff9f00;
  --color-protect: #1c355e;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Jost", sans-serif !important;
  background-color: #f8fafc;
  color: var(--text-dark);
  overflow-x: hidden;
  line-height: 1.6;
}

/* --- UTILITIES --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--primary);
  position: relative;
}

h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-dark);
  margin-bottom: 1rem;
  font-weight: 400;
  font-size: 1.1rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  display: inline-block;
  padding: 15px 35px;
  background: linear-gradient(45deg, var(--accent), #00a03a);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  box-shadow: 0 10px 20px rgba(0, 174, 66, 0.3);
  transition: var(--transition);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: 0.5s;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 25px rgba(0, 174, 66, 0.4);
}

.btn:hover::before {
  left: 100%;
}

/* --- SCROLL ANIMATIONS --- */
.fade-in-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, visibility;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: none;
}

/* --- 1. HERO SECTION (UPDATED) --- */
/* --- 1. HERO SECTION (UPDATED) --- */
#hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  /* Background properties removed from here */
  color: white;
  overflow: hidden;
}

/* NEW: Style for the HTML Image */
.hero-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures image covers the area like background-size: cover */
  z-index: 0; /* Sits at the very back */
}

/* NEW: Style for the Gradient Overlay */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(28, 53, 94, 0.411), rgba(28, 53, 94, 0.185));
  z-index: 1; /* Sits on top of image, but behind text */
  pointer-events: none;
}

/* Hero Container - content needs to be on top */
.hero-container {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative; 
  z-index: 2; /* Higher Z-index ensures text is clickable and visible */
}
/* Left Side Content */
.hero-content-left {
  flex: 1;
  max-width: 800px;
  /* Increased width since right side is gone */
  text-align: left;
}

.hero-logo {
  max-width: 240px;
  margin-bottom: 30px;
  animation: fadeInDown 1s ease-out;
  display: block;
}

.hero-title {
  font-size: 3.8rem;
  font-weight: 700;
  margin-bottom: 25px;
  line-height: 1.1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 40px;
  opacity: 0.95;
  font-weight: 400;
  max-width: 600px;
  margin-top: 40px;
  animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-btn {
  animation: fadeInUp 1s ease-out 0.6s both;
  font-family: "Jost", sans-serif !important;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- 2. PILLAR STYLE CARDS --- */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 60px;
}

.pillar-card {
  background: #fff;
  padding: 40px 30px;
  border-radius: 20px;
  box-shadow: var(--card-shadow);
  text-align: center;
  transition: var(--transition);
  border-top: 5px solid transparent;
  position: relative;
  overflow: hidden;
  z-index: 1;
  height: 100%;
}

.pillar-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.1), transparent);
  transition: var(--transition);
  z-index: -1;
}

.pillar-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--hover-shadow);
}

.pillar-card:hover::before {
  height: 100%;
}

.pillar-card.growth {
  border-color: var(--growth);
}

.pillar-card.income {
  border-color: var(--income);
}

.pillar-card.protect {
  border-color: var(--protect);
}

.pillar-icon {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  font-size: 2.5rem;
  position: relative;
  transition: var(--transition);
}

.pillar-card:hover .pillar-icon {
  transform: scale(1.1);
}

.growth .pillar-icon {
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  color: var(--growth);
  box-shadow: 0 10px 20px rgba(0, 174, 66, 0.2);
}

.income .pillar-icon {
  background: linear-gradient(135deg, #fff3e0, #ffe0b2);
  color: var(--income);
  box-shadow: 0 10px 20px rgba(255, 159, 0, 0.2);
}

.protect .pillar-icon {
  background: linear-gradient(135deg, #1c355e63, #1c355e23);
  color: var(--protect);
  box-shadow: 0 10px 20px #152a4e52;
}

.pillar-card h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: var(--primary);
}

.pillar-card p {
  color: var(--text-dark);
  font-size: 1.05rem;
}

.pillar-number {
  font-size: 6rem;
  font-weight: 700;
  opacity: 0.03;
  position: absolute;
  top: 10px;
  right: 20px;
  line-height: 1;
  transition: var(--transition);
}

.pillar-card:hover .pillar-number {
  opacity: 0.05;
  transform: scale(1.1);
}

.pillar-card:hover .pillar-icon i {
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.2);
  }

  100% {
    transform: scale(1);
  }
}

/* --- 3. GIP IMAGE CARDS --- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 60px;
}

.gip-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: all 0.4s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.gip-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--hover-shadow);
}

.card-img-box {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.card-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gip-card:hover .card-img-box img {
  transform: scale(1.1);
}

.img-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
  z-index: 1;
}

.card-body {
  padding: 30px;
  position: relative;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-icon {
  width: 60px;
  height: 60px;
  background: white;
  border-radius: 50%;
  position: absolute;
  top: -30px;
  right: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  z-index: 2;
}

.gip-card.growth .card-icon {
  color: var(--color-growth);
  border: 2px solid var(--color-growth);
}

.gip-card.income .card-icon {
  color: var(--color-income);
  border: 2px solid var(--color-income);
}

.gip-card.protect .card-icon {
  color: var(--color-protect);
  border: 2px solid var(--color-protect);
}

.card-body h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--brand-blue);
}

.card-body p {
  font-size: 1rem;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.card-number {
  font-size: 3.5rem;
  font-weight: 700;
  color: #f1f5f9;
  position: absolute;
  bottom: 0px;
  right: 20px;
  z-index: 0;
  pointer-events: none;
}

/* --- SECTIONS --- */
#what-is-gip {
  padding: 100px 0;
  background: white;
  position: relative;
}

#what-is-gip::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(
    to bottom,
    rgba(248, 250, 252, 1),
    rgba(248, 250, 252, 0)
  );
  z-index: 1;
}

#calculation {
  padding: 100px 0;
  background: #f8fafc;
  position: relative;
}

.balance-text {
  text-align: center;
  margin-top: 60px;
  padding: 30px;
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
  border-radius: 15px;
  box-shadow: var(--card-shadow);
}

.balance-text h3 {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.balance-text span {
  color: var(--accent);
  font-weight: 600;
}

/* --- 4. WHY IT MATTERS --- */
#why-matters {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--primary), #152a4e);
  color: white;
  position: relative;
  overflow: hidden;
}

#why-matters::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
}

#why-matters::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
}

#why-matters h2,
#why-matters .section-subtitle {
  color: white;
  position: relative;
  z-index: 2;
}

#why-matters h2::after {
  background: var(--accent);
}

.imbalance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  position: relative;
  z-index: 2;
  margin-top: 40px;
}

.risk-box {
  background: rgba(255, 255, 255, 0.08);
  padding: 35px 25px;
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.risk-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: var(--accent);
  transform: scaleY(0);
  transition: var(--transition);
}

.risk-box:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.12);
}

.risk-box:hover::before {
  transform: scaleY(1);
}

.risk-icon-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
}

.risk-box:hover .risk-icon-img {
  border-color: var(--accent);
  transform: scale(1.1);
}

.risk-box h4 {
  margin-bottom: 15px;
  color: var(--accent);
  font-size: 1.3rem;
}

.risk-box p {
  color: #e2e8f0;
}

/* --- 5. BENEFITS --- */
#benefits {
  padding: 100px 0;
  background: white;
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.benefits-img {
  width: 100%;
  border-radius: 20px;
  box-shadow: -20px 20px 0px var(--accent);
  transition: var(--transition);
}

.benefits-img:hover {
  transform: translateY(-10px);
  box-shadow: -25px 25px 0px var(--accent);
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
  padding: 20px;
  border-radius: 15px;
  transition: var(--transition);
}

.benefit-item:hover {
  background: rgba(0, 174, 66, 0.05);
  transform: translateX(10px);
}

.check-icon {
  color: var(--growth);
  font-size: 1.8rem;
  margin-right: 20px;
  margin-top: 5px;
  flex-shrink: 0;
}

.benefit-item h4 {
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 8px;
}

.benefit-item p {
  color: var(--text-dark);
}

/* --- FOOTER --- */
footer {
  background: linear-gradient(135deg, var(--primary), #152a4e);
  color: #94a3b8;
  padding: 70px 0 20px;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(
    to right,
    var(--growth),
    var(--income),
    var(--protect)
  );
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
  position: relative;
  z-index: 2;
}

.footer-col h4 {
  color: white;
  margin-bottom: 25px;
  font-size: 1.3rem;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.footer-col p {
    color: #fff;
  margin-bottom: 12px;
  font-size: 1rem;
  display: flex;
  align-items: center;
}

.footer-col p i {
  margin-right: 10px;
  color: var(--accent);
  width: 20px;
}

.social-links {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 1.2rem;
  border-radius: 50%;
  transition: var(--transition);
  text-decoration: none;
}

.social-links a:hover {
  background: var(--accent);
  transform: translateY(-5px);
  color: white;
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  position: relative;
  z-index: 2;
}

/* --- MODAL STYLES --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: white;
  width: 90%;
  max-width: 400px;
  padding: 30px 25px;
  border-radius: 15px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  text-align: center;
  position: relative;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.modal-overlay.active .modal-box {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5rem;
  color: #999;
  cursor: pointer;
  transition: 0.2s;
}

.modal-close:hover {
  color: #333;
}

.modal-logo {
  max-width: 180px;
  margin-bottom: 25px;
}

.modal-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.modal-input-group {
  margin-bottom: 20px;
  text-align: left;
  position: relative;
}

/* Mobile Number Input */
.mobile-input-wrapper {
  display: flex;
  border: 1px solid #ccc;
  border-radius: 8px;
  overflow: hidden;
  height: 45px;
}

.country-code {
  background: #f0f0f0;
  padding: 0 15px;
  display: flex;
  align-items: center;
  font-weight: 500;
  border-right: 1px solid #ccc;
}

.form-input {
  flex: 1;
  border: none;
  padding: 0 15px;
  font-size: 1rem;
  outline: none;
  font-family: "Jost", sans-serif !important;
}

/* OTP Inputs */
.otp-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.otp-box {
  width: 45px;
  height: 45px;
  border: 2px solid #2d4a7c;
  border-radius: 8px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary);
  outline: none;
}

.otp-box:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 174, 66, 0.1);
}

/* Buttons */
.modal-btn-group {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 10px;
}

.btn-cancel,
.btn-submit {
  padding: 10px 25px;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  border: 1px solid #ddd;
  background: white;
  transition: 0.3s;
}

.btn-cancel:hover {
  background: #f5f5f5;
}

.btn-submit {
  background: #28a745;
  color: white;
  border-color: #28a745;
}

.btn-submit:hover {
  background: #218838;
}

.resend-link {
  font-size: 0.9rem;
  color: #333;
  margin-bottom: 20px;
  display: block;
}

.resend-link a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.resend-link a.disabled {
  color: #999;
  pointer-events: none;
  cursor: default;
}

.error-msg {
  color: var(--protect);
  font-size: 0.9rem;
  margin-bottom: 15px;
  display: none;
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
  .hero-content-left {
    max-width: 100%;
    text-align: center;
    padding-right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-logo {
    margin: 0 auto 30px auto;
  }

  .hero-title {
    font-size: 3.2rem;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .benefits-img {
    order: -1;
    max-width: 500px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  h2 {
    font-size: 2rem;
  }

  .pillars-grid,
  .cards-grid {
    grid-template-columns: 1fr;
  }

  .sliding-words span {
    font-size: 1.3rem;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
  }

  .btn {
    padding: 12px 30px;
    font-size: 1rem;
  }
}

.gip-rotate-box {
  width: 100%;
  height: 70px;
  overflow: hidden;
  position: relative;
}

.gip-text {
  position: absolute;
  width: 100%;
  text-align: start;
  font-size: 58px; /* BIG fonts */
  font-weight: 900;
  letter-spacing: 2px;
  opacity: 0;
  transform: translateY(100%) scale(0.5);
  animation: slideBig 6s ease-in-out infinite;
}

/* Stagger animations */
.growth {
  animation-delay: 0s;
  color: #fff;
}
.income {
  animation-delay: 2s;
  color: #fff;
}
.protect {
  animation-delay: 4s;
  color: #fff;
}

@keyframes slideBig {
  0% {
    opacity: 0;
    transform: translateY(100%) scale(0.5);
  }
  10% {
    opacity: 1;
    transform: translateY(0) scale(1);
  } /* Slide up + grow */
  35% {
    opacity: 1;
    transform: translateY(0) scale(1);
  } /* Hold */
  50% {
    opacity: 0;
    transform: translateY(-100%) scale(0.7);
  } /* Slide up & fade */
  100% {
    opacity: 0;
    transform: translateY(-100%) scale(0.7);
  }
}
