/* Base styles */
:root {
  --primary-color: #ED2939; /* Red color from Singapore flag */
  --secondary-color: #ffffff; /* White from Singapore flag */
  --accent-color: #f7c824; /* Gold accent */
  --dark-color: #232323;
  --text-color: #333333;
  --light-bg: #f8f8f8;
  --border-radius: 8px;
  --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--dark-color);
}

h1 {
  font-size: 2.8rem;
}

h2 {
  font-size: 2.2rem;
}

h3 {
  font-size: 1.8rem;
}

p {
  margin-bottom: 1rem;
}

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

a:hover {
  color: var(--dark-color);
}

ul {
  list-style: none;
}

.text-center {
  text-align: center;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn:hover {
  background-color: var(--dark-color);
  color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: var(--box-shadow);
}

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

.btn-outline:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

/* Header & Navigation */
header {
  background-color: var(--secondary-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem 0;
}

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

.logo {
  display: flex;
  align-items: center;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--dark-color);
}

.logo span {
  color: var(--primary-color);
  font-weight: 900;
}

nav {
  display: flex;
  align-items: center;
}

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

.nav-menu a {
  color: var(--dark-color);
  font-weight: 500;
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.nav-menu a:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section - Singapore Style */
.hero {
  position: relative;
  padding: 80px 0;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.2) 0%, rgba(237, 41, 57, 0) 50%);
  z-index: 0;
}

.hero-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.05) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.05) 50%, rgba(255, 255, 255, 0.05) 75%, transparent 75%, transparent);
  background-size: 100px 100px;
  opacity: 0.4;
}

.hero-container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
}

.hero-content {
  max-width: 600px;
}

.hero-title {
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
  font-size: 3rem;
}

.hero-text {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero .btn {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  font-size: 1.1rem;
  padding: 1rem 2rem;
}

.hero .btn:hover {
  background-color: var(--dark-color);
  color: var(--secondary-color);
}

/* Features Section */
.features {
  padding: 80px 0;
  background-color: var(--secondary-color);
}

.section-heading {
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 30px;
}

.section-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background-color: var(--primary-color);
}

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

.feature-box {
  background: var(--secondary-color);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  text-align: center;
  transition: var(--transition);
}

.feature-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.feature-icon {
  margin-bottom: 1.5rem;
  background-color: rgba(237, 41, 57, 0.1);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.feature-title {
  margin-bottom: 1rem;
  color: var(--dark-color);
}

/* How It Works Section */
.how-it-works {
  padding: 80px 0;
  background-color: var(--light-bg);
  position: relative;
}

.steps-wrap {
  position: relative;
  padding: 20px 0;
}

.steps-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  position: relative;
}

.step-box {
  background-color: var(--secondary-color);
  padding: 2.5rem 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  text-align: center;
  position: relative;
  transition: var(--transition);
}

.step-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.step-number {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1.5rem;
}

.step-title {
  color: var(--dark-color);
  margin-bottom: 1rem;
}

/* About Section */
.about {
  padding: 80px 0;
  background-color: var(--secondary-color);
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-content {
  max-width: 600px;
}

.about-content h2 {
  margin-bottom: 2rem;
}

.about-content p {
  margin-bottom: 1.5rem;
}

.about-content ul {
  margin: 2rem 0;
  padding-left: 1.5rem;
}

.about-content ul li {
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.5rem;
}

.about-content ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

.about-content .btn {
  margin-top: 1.5rem;
}

.about-image {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

/* CTA Section */
.cta {
  padding: 80px 0;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  text-align: center;
  background-image: radial-gradient(circle at 90% 80%, rgba(255, 255, 255, 0.2) 0%, rgba(237, 41, 57, 0) 40%);
}

.cta h2 {
  color: var(--secondary-color);
  margin-bottom: 2rem;
}

.cta p {
  max-width: 800px;
  margin: 0 auto 2rem;
  font-size: 1.2rem;
  opacity: 0.9;
}

.cta .btn {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  font-size: 1.1rem;
}

.cta .btn:hover {
  background-color: var(--dark-color);
  color: var(--secondary-color);
}

/* Footer */
footer {
  padding: 60px 0 30px;
  background-color: var(--dark-color);
  color: rgba(255, 255, 255, 0.8);
}

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

.footer-column h3 {
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.footer-column p {
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  opacity: 0.8;
}

.footer-logo {
  display: block;
  margin-top: 1.5rem;
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--secondary-color);
  padding-left: 5px;
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 992px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-content {
    margin: 0 auto;
  }
  
  .about-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .about-content {
    margin: 0 auto;
    order: 2;
  }
  
  .about-image {
    order: 1;
    margin-bottom: 2rem;
  }
  
  .about-content ul li {
    text-align: left;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 60px 0;
  }
  
  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    background-color: var(--secondary-color);
    width: 100%;
    height: calc(100vh - 80px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    opacity: 0;
    box-shadow: var(--box-shadow);
  }
  
  .nav-menu.active {
    left: 0;
    opacity: 1;
  }
  
  .hamburger {
    display: block;
  }
  
  .features-container,
  .steps-container {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto 2rem;
    text-align: center;
  }
  
  .footer-logo {
    margin: 1.5rem auto;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.7rem;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .container {
    padding: 0 15px;
  }
  
  .feature-box,
  .step-box {
    padding: 1.5rem;
  }
}
