:root {
  --primary: #FFFFFF;
  --primary-dark: #0F172A;
  --primary-accent: #E63946;
  /* Wonderful Indonesia Red/Orange accent */
  --secondary-accent: #457B9D;
  --accent-glow: rgba(230, 57, 70, 0.1);
  --glass-bg: rgba(255, 255, 255, 0.95);
  --glass-border: rgba(0, 0, 0, 0.05);
  --text-main: #1E293B;
  --text-dim: #64748B;
  --gradient-main: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
  --gradient-accent: linear-gradient(135deg, #E63946 0%, #F1FAEE 100%);
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-only {
  display: none !important;
}

@media (max-width: 991px) {
  .mobile-only {
    display: block !important;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--primary);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.font-heading {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Layout Utilities */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-padding {
  padding: 8rem 0;
}

/* Base Components */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.875rem 2rem;
  border-radius: 4px;
  /* More blocky/professional like Wonderful Indonesia */
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-primary {
  background: var(--primary-accent);
  color: white;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: #C81D25;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

.btn-outline {
  background: white;
  color: var(--text-main);
  border: 1px solid #E2E8F0;
}

.btn-outline:hover {
  background: #F8FAFC;
  border-color: var(--primary-accent);
  color: var(--primary-accent);
}

.glass-card {
  background: white;
  border: 1px solid #EDF2F7;
  border-radius: 0;
  /* Clean square cards */
  padding: 3rem;
  transition: var(--transition);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.glass-card:hover {
  border-color: var(--primary-accent);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
  transform: translateY(-8px);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }

  50% {
    transform: scale(1.1);
    opacity: 1;
  }

  100% {
    transform: scale(1);
    opacity: 0.8;
  }
}

.fade-in {
  opacity: 0;
  animation: fadeIn 0.8s forwards;
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: var(--transition);
}

header.scrolled {
  background: white;
  padding: 0.5rem 0;
  border-bottom: 1px solid #EDF2F7;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

nav {
  display: flex;
  align-items: center;
  width: 100%;
}

nav a {
  color: white;
  text-transform: uppercase;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: var(--transition);
}

header.scrolled nav a {
  color: var(--text-main);
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
  /* Default for overlay */
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

header.scrolled .logo {
  color: var(--text-main);
  /* Switch to dark on scroll */
}

.logo img {
  height: 42px;
  width: auto;
  border-radius: 8px;
}

.logo span {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.3));
  /* Slight edge for readability */
}

header.scrolled .logo span {
  filter: none;
}

.nav-links {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin-left: 3rem;
  /* Distance from Logo */
  margin-right: auto;
  /* Push CTA to the right */
}

.nav-links a {
  text-decoration: none;
  color: inherit;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.75rem;
  transition: var(--transition);
}

header.scrolled .nav-links a {
  border-color: #E2E8F0;
  background: white;
  color: var(--text-main);
}

.nav-links a:hover {
  background: var(--primary-accent);
  border-color: var(--primary-accent);
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--accent-glow);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0.5rem;
  transition: var(--transition);
}

header.scrolled .mobile-menu-toggle {
  color: var(--text-main);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: radial-gradient(circle at 70% 30%, rgba(56, 189, 248, 0.1) 0%, transparent 50%);
}

.hero-bg-image {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-bg-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(75deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 60%, transparent 100%);
}

.hero-bg-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-content {
  max-width: 650px;
}

.hero h1 {
  font-size: 5rem;
  line-height: 1;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  font-weight: 800;
  color: white;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hero h1 span {
  display: block;
  font-size: 2.5rem;
  color: white;
  font-weight: 400;
  text-transform: none;
}

.hero p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 3rem;
  max-width: 600px;
}

.brand-powered-by {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.5rem;
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

/* Problem/Solution Section */
.split-section {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.split-content {
  flex: 1;
}

.split-visual {
  flex: 1;
  position: relative;
}

.split-visual img {
  width: 100%;
  border-radius: 2rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--glass-border);
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: rgba(56, 189, 248, 0.1);
  color: var(--primary-accent);
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 3rem;
  }

  .split-section {
    flex-direction: column;
  }

  .hero-bg-image {
    width: 100%;
    opacity: 0.3;
  }
}

@media (max-width: 768px) {
  nav .nav-links {
    display: none;
  }

  .section-padding {
    padding: 4rem 0;
  }

  .hero h1 {
    font-size: 2.5rem;
  }
}

/* Partners Section - Infinite Scroller */
.partner-slider-container {
  overflow: hidden;
  padding: 3rem 0;
  position: relative;
  white-space: nowrap;
}

.partner-logos-track {
  display: flex;
  width: max-content;
  animation: scroll-logos 40s linear infinite;
  gap: 6rem;
  align-items: center;
}

.partner-item {
  width: 260px;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  padding: 1rem;
  cursor: pointer;
  transition: var(--transition);
  filter: grayscale(100%);
  opacity: 0.7;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  border: 1px solid #EDF2F7;
}

.partner-item:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.partner-item img {
  width: 90%;
  height: 90%;
  object-fit: contain;
}

@keyframes scroll-logos {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - 2rem));
  }
}

/* Pause animation on hover */
.partner-slider-container:hover .partner-logos-track {
  animation-play-state: paused;
}

/* Partner Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  animation: fadeIn 0.3s ease-out;
}

.modal-content {
  width: 100%;
  max-width: 1000px;
  background: white;
  padding: 3rem;
  border-radius: 2rem;
  box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 10000;
  opacity: 1 !important;
  /* Force visibility */
  animation: modalScaleUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalScaleUp {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.details-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #E2E8F0;
}

.close-btn {
  background: white;
  border: 2px solid var(--primary-accent);
  color: var(--primary-accent);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.close-btn:hover {
  background: var(--primary-accent);
  color: white;
  transform: rotate(90deg) scale(1.1);
}

.partner-subs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.sub-item {
  background: rgba(255, 255, 255, 0.02);
  padding: 2.5rem;
  border-radius: 2rem;
  border: 1px solid var(--glass-border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.sub-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-accent);
  opacity: 0;
  transition: var(--transition);
}

.sub-item:hover {
  background: rgba(56, 189, 248, 0.05);
  border-color: var(--primary-accent);
  transform: translateY(-8px);
}

.sub-item:hover::before {
  opacity: 1;
}

.maps-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: #F1F5F9;
  color: #475569;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 8px;
  transition: var(--transition);
  border: 1px solid #E2E8F0;
}

.maps-link:hover {
  background: var(--primary-accent);
  color: white;
  border-color: var(--primary-accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(230, 57, 70, 0.2);
}

.maps-link i {
  transition: transform 0.3s ease;
}

.maps-link:hover i {
  transform: translate(2px, -2px);
}

@media (max-width: 1024px) {
  .hero h1 {
    font-size: 3.5rem;
  }

  .nav-links {
    margin-left: 1.5rem;
    gap: 0.5rem;
  }

  .nav-links a {
    padding: 0.4rem 0.8rem;
    font-size: 0.7rem;
  }
}

@media (max-width: 991px) {
  .mobile-menu-toggle {
    display: block;
    z-index: 1001;
    position: relative;
    padding: 0.75rem;
    margin-right: -0.5rem;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background: white;
    flex-direction: column;
    padding: 6rem 1.5rem;
    margin: 0;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 20px 0 50px rgba(15, 23, 42, 0.15);
    z-index: 1000;
    display: flex !important;
  }

  .nav-links.active {
    left: 0;
  }

  .nav-links li {
    width: 100%;
    margin: 0;
  }

  .nav-links a {
    display: block !important;
    width: 100% !important;
    padding: 1rem 1.5rem !important;
    font-size: 1rem !important;
    color: var(--text-main) !important;
    border: none !important;
    background: #F8FAFC !important;
    border-radius: 8px !important;
    margin-bottom: 0.5rem !important;
    text-align: left !important;
  }

  .nav-links a:hover {
    background: var(--primary-accent) !important;
    color: white !important;
  }

  .nav-cta {
    display: none;
  }

  .hero {
    padding-top: 80px;
    min-height: auto;
    padding-bottom: 4rem;
  }

  .hero h1 {
    font-size: 2.75rem;
  }

  .hero h1 span {
    font-size: 1.25rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .section-padding {
    padding: 4rem 0;
  }

  .impact-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.25rem;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .modal-content {
    padding: 2rem 1.5rem;
    border-radius: 1.5rem;
    width: 92%;
  }

  .modal-overlay {
    padding: 1rem;
  }

  .partner-item {
    width: 180px;
    height: 100px;
  }

  .partner-subs-grid {
    grid-template-columns: 1fr;
  }

  .details-header h3 {
    font-size: 1.5rem !important;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.85rem;
  }

  .hero-btns {
    flex-direction: column;
    gap: 1rem;
  }

  .hero-btns .btn {
    width: 100%;
    margin: 0 !important;
    justify-content: center;
  }

  .logo {
    font-size: 1.15rem;
  }

  .logo img {
    height: 32px;
  }

  .brand-powered-by {
    font-size: 0.7rem;
  }
}