/* Base Font Imports */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;600;700&family=Lato:wght@300;400;700;900&display=swap');

/* Singapore Color Variables */
:root {
  --sg-red: #ED2939;
  --sg-white: #ffffff;
  --sg-black: #1a1a1a;
  --sg-gray: #f5f5f5;
  --sg-dark-gray: #333333;
  --sg-light-gray: #e0e0e0;
  
  /* Other Variables */
  --gradient-primary: linear-gradient(135deg, var(--sg-red) 0%, #ff6b6b 100%);
  --gradient-secondary: linear-gradient(135deg, var(--sg-black) 0%, #444 100%);
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 6px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.12);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition-fast: all 0.2s ease;
  --transition-medium: all 0.3s ease;
  --transition-slow: all 0.5s ease;
  
  /* Typography */
  --font-primary: 'Nunito', sans-serif;
  --font-secondary: 'Lato', sans-serif;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 62.5%; /* 10px = 1rem */
}

body {
  font-family: var(--font-primary);
  font-size: 1.6rem;
  line-height: 1.6;
  color: var(--sg-black);
  background-color: var(--sg-white);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: var(--sg-red);
  transition: var(--transition-medium);
}

a:hover {
  color: #ff5252;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* Container */
.container {
  width: 90%;
  max-width: 120rem;
  margin: 0 auto;
  padding: 0 2rem;
}

.container-narrow {
  max-width: 85rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem 2.4rem;
  border-radius: var(--radius-md);
  font-family: var(--font-primary);
  font-size: 1.6rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-medium);
  border: none;
  outline: none;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateX(-100%);
  transition: var(--transition-medium);
}

.btn:hover::before {
  transform: translateX(0);
}

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

.btn-primary:hover {
  background: #d32121;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
  background: #333;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--sg-red);
  border: 2px solid var(--sg-red);
}

.btn-outline:hover {
  background: var(--sg-red);
  color: var(--sg-white);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1.4rem 3.2rem;
  font-size: 1.8rem;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 2rem 0;
  background-color: var(--sg-white);
  box-shadow: var(--shadow-sm);
  z-index: 100;
  transition: var(--transition-medium);
}

.header.scrolled {
  padding: 1rem 0;
  box-shadow: var(--shadow-md);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-img {
  height: 4rem;
}

.logo-text {
  font-family: var(--font-secondary);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--sg-red);
  letter-spacing: -0.5px;
}

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

.nav-menu {
  display: flex;
  gap: 2.5rem;
}

.nav-link {
  color: var(--sg-black);
  font-weight: 600;
  position: relative;
  padding-bottom: 0.5rem;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.nav-link:hover {
  color: var(--sg-red);
}

.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 3rem;
  height: 2.2rem;
  cursor: pointer;
  z-index: 200;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--sg-black);
  transition: var(--transition-medium);
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

/* Hero Section */
.hero {
  padding: 16rem 0 8rem;
  background: linear-gradient(135deg, rgba(237, 41, 57, 0.9) 0%, rgba(153, 0, 0, 0.9) 100%);
  color: var(--sg-white);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cpath d='M30,20 L70,20 L70,80 L30,80 Z' stroke='%23FFFFFF' stroke-width='1' fill='none' stroke-opacity='0.1'/%3E%3C/svg%3E");
  opacity: 0.1;
}

.hero-container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-content {
  max-width: 75rem;
}

.hero-title {
  font-family: var(--font-secondary);
  font-size: 4.8rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 2rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.hero-subtitle {
  font-size: 2rem;
  margin-bottom: 4rem;
  max-width: 60rem;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-top: 2rem;
}

.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

/* Features Section */
.features {
  padding: 10rem 0;
  background-color: var(--sg-white);
}

.section-header {
  text-align: center;
  margin-bottom: 6rem;
}

.section-title {
  font-family: var(--font-secondary);
  font-size: 3.6rem;
  font-weight: 800;
  color: var(--sg-black);
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -1rem;
  transform: translateX(-50%);
  width: 8rem;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 4px;
}

.section-subtitle {
  font-size: 1.8rem;
  color: var(--sg-dark-gray);
  max-width: 70rem;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
  gap: 3rem;
  margin-top: 5rem;
}

.feature-card {
  background-color: var(--sg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-medium);
  position: relative;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 100%;
  height: 15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  color: var(--sg-white);
  font-size: 4rem;
}

.feature-content {
  padding: 2.5rem;
  text-align: center;
}

.feature-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--sg-black);
}

.feature-description {
  color: var(--sg-dark-gray);
}

/* How It Works */
.how-it-works {
  padding: 10rem 0;
  background-color: var(--sg-gray);
  position: relative;
}

.steps-container {
  margin-top: 5rem;
}

.step {
  position: relative;
  background: var(--sg-white);
  border-radius: var(--radius-lg);
  padding: 3rem;
  margin-bottom: 5rem;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: flex-start;
  gap: 2.5rem;
  transition: var(--transition-medium);
}

.step:last-child {
  margin-bottom: 0;
}

.step:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.step-number {
  flex-shrink: 0;
  width: 6rem;
  height: 6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  color: var(--sg-white);
  font-family: var(--font-secondary);
  font-size: 2.8rem;
  font-weight: 700;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
}

.step-content {
  flex-grow: 1;
}

.step-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--sg-black);
}

.step-description {
  color: var(--sg-dark-gray);
}

/* CTA Section */
.cta {
  padding: 10rem 0;
  background: var(--gradient-primary);
  color: var(--sg-white);
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150' viewBox='0 0 150 150'%3E%3Ccircle cx='75' cy='75' r='60' stroke='%23FFFFFF' stroke-width='2' fill='none' stroke-opacity='0.1'/%3E%3Ccircle cx='75' cy='75' r='30' stroke='%23FFFFFF' stroke-width='2' fill='none' stroke-opacity='0.1'/%3E%3C/svg%3E");
  opacity: 0.1;
}

.cta-container {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 70rem;
  margin: 0 auto;
}

.cta-title {
  font-family: var(--font-secondary);
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 2.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.cta-description {
  font-size: 1.8rem;
  margin-bottom: 4rem;
  opacity: 0.9;
}

.cta-button {
  background-color: var(--sg-white);
  color: var(--sg-red);
  font-weight: 700;
  border-radius: var(--radius-lg);
  padding: 1.5rem 3.5rem;
  font-size: 1.8rem;
  box-shadow: var(--shadow-lg);
}

.cta-button:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  background-color: var(--sg-white);
  color: var(--sg-red);
}

/* FAQ Section */
.faq {
  padding: 10rem 0;
  background-color: var(--sg-white);
}

.faq-container {
  max-width: 80rem;
  margin: 5rem auto 0;
}

.accordion {
  list-style: none;
}

.accordion-item {
  background-color: var(--sg-white);
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border-left: 4px solid var(--sg-red);
}

.accordion-header {
  padding: 2rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(237, 41, 57, 0.03);
  transition: var(--transition-medium);
}

.accordion-header:hover {
  background-color: rgba(237, 41, 57, 0.06);
}

.accordion-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--sg-black);
}

.accordion-icon {
  position: relative;
  width: 2rem;
  height: 2rem;
  transition: var(--transition-medium);
}

.accordion-icon:before,
.accordion-icon:after {
  content: '';
  position: absolute;
  background-color: var(--sg-red);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: var(--transition-medium);
}

.accordion-icon:before {
  width: 2rem;
  height: 2px;
}

.accordion-icon:after {
  width: 2px;
  height: 2rem;
}

.accordion-item.active .accordion-icon:after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.accordion-item.active .accordion-content {
  max-height: 40rem;
}

.accordion-body {
  padding: 0 2rem 2rem;
  color: var(--sg-dark-gray);
}

/* Footer */
.footer {
  background-color: var(--sg-black);
  color: var(--sg-white);
  padding: 8rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
  gap: 5rem;
  margin-bottom: 5rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.footer-logo svg {
  width: 5rem;
  height: 5rem;
}

.footer-logo-text {
  font-family: var(--font-secondary);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--sg-white);
}

.footer-description {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 3rem;
}

.footer-social {
  display: flex;
  gap: 1.5rem;
}

.social-icon {
  width: 3.6rem;
  height: 3.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--sg-white);
  font-size: 1.8rem;
  transition: var(--transition-medium);
}

.social-icon:hover {
  background-color: var(--sg-red);
  transform: translateY(-3px);
}

.footer-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
  position: relative;
  padding-bottom: 1rem;
}

.footer-title:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 4rem;
  height: 3px;
  background: var(--sg-red);
}

.footer-links {
  list-style: none;
}

.footer-link-item {
  margin-bottom: 1.5rem;
}

.footer-link {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition-medium);
  display: inline-block;
}

.footer-link:hover {
  color: var(--sg-red);
  transform: translateX(5px);
}

.copyright {
  text-align: center;
  padding-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.4rem;
}

/* Media Queries */
@media (max-width: 992px) {
  html {
    font-size: 58%;
  }
  
  .section-title {
    font-size: 3.2rem;
  }
  
  .hero-title {
    font-size: 4.2rem;
  }
  
  .cta-title {
    font-size: 3.6rem;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 56%;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 30rem;
    height: 100vh;
    background-color: var(--sg-white);
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 99;
    transition: var(--transition-medium);
    padding: 5rem 0;
  }
  
  .nav.active {
    right: 0;
  }
  
  .nav-menu {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  
  .nav-item {
    width: 100%;
    text-align: center;
    margin-bottom: 2rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .step {
    flex-direction: column;
    text-align: center;
  }
  
  .step-number {
    margin: 0 auto 2rem;
  }
}

@media (max-width: 576px) {
  html {
    font-size: 52%;
  }
  
  .section-header {
    margin-bottom: 4rem;
  }
  
  .section-title {
    font-size: 2.8rem;
  }
  
  .hero-title {
    font-size: 3.2rem;
  }
  
  .cta-title {
    font-size: 3rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.active {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.2s;
}

.delay-2 {
  transition-delay: 0.4s;
}

.delay-3 {
  transition-delay: 0.6s;
}
