/* public/css/landing-v2.css - Premium Boxed Redesign */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --primary-red: #d31d1d;
  --primary-red-hover: #b01818;
  --bg-page: #050505; /* The very dark outer body background */
  --bg-box: #0a0c10;  /* The dark grey inside the box */
  --bg-card: rgba(255, 255, 255, 0.03); /* Glassmorphic card backgrounds */
  --text-white: #ffffff;
  --text-gray: #a0a0a0;
  --text-dark: #111111;
  --border-light: rgba(255, 255, 255, 0.08);
}

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

body {
  background-color: #050505;
  color: var(--text-white);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/* Master Box Container */
.app-wrapper {
  width: 100%;
  background: linear-gradient(135deg, #050505 0%, #150505 40%, #200505 100%);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Header */
header {
  position: relative;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem max(4rem, calc((100% - 1280px) / 2));
  border-bottom: 1px solid var(--border-light);
}

.logo img {
  height: 40px;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-gray);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--text-white);
}

/* Dropdown */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--bg-box);
  min-width: 180px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.8);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  z-index: 100;
  padding: 0.5rem 0;
  margin-top: 1.5rem;
}

.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -30px;
  left: 0;
  width: 100%;
  height: 30px;
}

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

.dropdown-menu a {
  display: block;
  padding: 0.8rem 1.5rem;
  color: var(--text-gray);
  text-decoration: none;
  transition: background-color 0.3s;
}

.dropdown-menu a:hover {
  background-color: rgba(255,255,255,0.05);
  color: var(--text-white);
}

.download-btn {
  background-color: var(--primary-red);
  color: var(--text-white);
  padding: 0.7rem 1.8rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background-color 0.3s;
}

.download-btn:hover {
  background-color: var(--primary-red-hover);
}

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  padding: 6rem max(4rem, calc((100% - 1280px) / 2)) 4rem;
  position: relative;
  min-height: 600px;
}

.hero-content {
  flex: 1;
  max-width: 550px;
  z-index: 3;
}

.hero-content h1 {
  font-size: 4.5rem;
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.hero-content h1 span {
  color: var(--primary-red);
}

.hero-content p {
  font-size: 1.25rem;
  color: var(--text-gray);
  margin-bottom: 3rem;
  line-height: 1.6;
}

.store-buttons {
  display: flex;
  gap: 1rem;
}

.store-btn {
  display: block;
  transition: transform 0.3s;
}

.store-btn img {
  height: 55px;
}

.store-btn:hover {
  transform: translateY(-3px);
}

.hero-visuals {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.africa-map {
  position: absolute;
  right: -50px;
  top: 50%;
  transform: translateY(-50%);
  width: 120%;
  opacity: 0.05; /* Darkened Watermark effect */
  z-index: 1;
  pointer-events: none;
}

.phone-mockup {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 380px;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,0.8));
}

/* Hero Banner Section */
.hero-banner-section {
  text-align: center;
  padding: 2rem max(4rem, calc((100% - 1280px) / 2)) 4rem;
}

.hero-banner-img {
  width: 100%;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.6);
}

/* App Features */
.app-features {
  padding: 3rem max(4rem, calc((100% - 1280px) / 2));
  border-top: 1px solid var(--border-light);
  background: radial-gradient(circle at center, rgba(211,29,29,0.02), transparent 80%);
}

.features-scroll {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  min-width: max-content;
}

.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(211,29,29,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--primary-red);
  background-color: rgba(211,29,29,0.05);
}

.feature-icon svg {
  width: 20px;
  height: 20px;
}

.feature-item span {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-white);
}

.feature-divider {
  width: 1px;
  height: 40px;
  background-color: var(--border-light);
}

/* Content Sections Base */
.content-section {
  padding: 5rem max(4rem, calc((100% - 1280px) / 2));
  border-top: 1px solid var(--border-light);
  position: relative;
}

/* Read Full Stories Section */
.read-stories {
  text-align: center;
  background: radial-gradient(circle at top center, rgba(211,29,29,0.03), transparent 70%);
}

.read-stories img.icon {
  height: 40px;
  margin-bottom: 1.5rem;
}

.read-stories h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.read-stories p {
  font-size: 1.1rem;
  color: var(--text-gray);
  margin-bottom: 2.5rem;
}

.visit-website-btn {
  background-color: var(--text-white);
  color: var(--text-dark);
  padding: 1rem 2.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

.visit-website-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(255,255,255,0.1);
}

/* Explore More Section */
.explore-more {
  text-align: center;
}

.explore-header {
  margin-bottom: 3rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-white);
}

.portals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.portal-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 1.5rem;
  color: var(--text-white);
  text-decoration: none;
  background: linear-gradient(145deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid var(--border-light);
  padding: 3rem 2rem;
  border-radius: 20px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.portal-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at top right, rgba(211,29,29,0.1), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.portal-card:hover {
  transform: translateY(-8px);
  border-color: rgba(211,29,29,0.4);
  box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

.portal-card:hover::before {
  opacity: 1;
}

.portal-icon {
  background: rgba(211,29,29,0.1);
  padding: 1.2rem;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-red);
  transition: transform 0.3s ease;
}

.portal-card:hover .portal-icon {
  transform: scale(1.1);
  background: var(--primary-red);
  color: #fff;
}

.portal-info {
  z-index: 2;
}

.portal-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: var(--text-white);
}

.portal-desc {
  font-size: 0.95rem;
  color: var(--text-gray);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.portal-link-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary-red);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.3s ease;
}

.portal-card:hover .portal-link-text {
  gap: 0.8rem;
}

/* Ads Banner Section */
.ads-card {
  position: relative;
  background: linear-gradient(135deg, #0b0c10 0%, var(--primary-red) 120%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  padding: 4.5rem 4rem; /* Increased padding */
  color: var(--text-white);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(211,29,29,0.3);
}

.ads-content {
  flex: 0 0 60%;
  position: relative;
  z-index: 2;
}

.ads-content h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.ads-content p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: rgba(255,255,255,0.8);
}

.btn-advertise {
  background-color: var(--text-white);
  color: var(--primary-red);
  padding: 0.9rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  display: inline-block;
  transition: transform 0.3s, box-shadow 0.3s;
}

.btn-advertise:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.ads-image {
  position: absolute;
  right: 5%;
  bottom: -45px;
  width: 310px;
  z-index: 5;
}

.ads-image img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.8));
}

/* Features Page */
.feature-row {
  display: flex;
  align-items: center;
  gap: 4rem;
  margin-bottom: 6rem;
}

.feature-row:last-child {
  margin-bottom: 0;
}

.feature-row.reverse {
  flex-direction: row-reverse;
}

.feature-text {
  flex: 1;
}

.feature-text h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-red);
  margin-bottom: 1.5rem;
}

.feature-text p {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--text-gray);
}

.feature-image-placeholder {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.placeholder-box {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 4/5;
  background-color: rgba(255,255,255,0.03);
  border: 2px dashed rgba(255,255,255,0.1);
  border-radius: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  color: rgba(255,255,255,0.3);
  font-weight: 600;
  font-size: 1.1rem;
}

/* Footer */
footer {
  padding: 4rem max(4rem, calc((100% - 1280px) / 2));
  border-top: 1px solid var(--border-light);
  background-color: rgba(0,0,0,0.2);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  flex: 1;
  min-width: 250px;
}

.footer-brand img.logo {
  height: 40px;
  margin-bottom: 1.5rem;
}

.footer-brand p {
  color: var(--text-gray);
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-light);
  border-radius: 50%;
  color: var(--text-white);
  text-decoration: none;
  transition: all 0.3s;
  background-color: var(--bg-card);
}

.social-links a:hover {
  background-color: var(--primary-red);
  border-color: var(--primary-red);
}

.footer-links {
  display: flex;
  gap: 5rem;
  flex-wrap: wrap;
}

.footer-column h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 0.8rem;
}

.footer-column ul a {
  color: var(--text-gray);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-column ul a:hover {
  color: var(--text-white);
}

.footer-bottom {
  text-align: left;
  color: var(--text-gray);
  font-size: 0.9rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
}

/* Responsive */
@media (max-width: 992px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 4rem 2rem;
  }
  .hero-content h1 {
    font-size: 3.5rem;
  }
  .store-buttons {
    justify-content: center;
  }
  .hero-visuals {
    margin-top: 3rem;
  }
  .africa-map {
    width: 150%;
    right: auto;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  .features-scroll {
    overflow-x: auto;
    padding-bottom: 1rem;
  }
  .features-scroll::-webkit-scrollbar {
    height: 6px;
  }
  .features-scroll::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 3px;
  }
  .portals-grid {
    grid-template-columns: 1fr;
  }
  .ads-card {
    flex-direction: column;
    text-align: center;
    padding: 3rem 2rem;
  }
  .ads-image {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 2rem;
    width: 100%;
    max-width: 280px;
  }
  .footer-links {
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  body {
    padding: 0;
  }
  .app-wrapper {
    border-radius: 0;
    border: none;
  }
  .nav-links {
    display: none;
  }
  header, .hero, .hero-banner-section, .app-features, .content-section, footer {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  header {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
  .feature-row, .feature-row.reverse {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
  .hero {
    padding-top: 4rem;
    padding-bottom: 2rem;
  }
  .app-features {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
  .content-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
  footer {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}
