/* Variabel dan konfigurasi asas */
:root {
  --color-primary: #000066;     /* Biru Malaysia */
  --color-secondary: #CC0000;   /* Merah Malaysia */
  --color-accent: #FFCC00;      /* Kuning Malaysia */
  --color-dark: #212529;
  --color-light: #f8f9fa;
  --color-white: #ffffff;
  --color-gray: #6c757d;
  --font-primary: 'Noto Sans', sans-serif;
  --font-secondary: 'Poppins', sans-serif;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --radius: 8px;
  --transition: all 0.3s ease;
}

/* Reset dan gaya asas */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-primary);
  color: var(--color-dark);
  line-height: 1.6;
  background-color: var(--color-light);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-secondary);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1.5rem;
}

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

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

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 5rem 0;
}

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

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius);
  font-weight: 600;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.btn:hover {
  background-color: var(--color-secondary);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

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

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

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

/* Header dan navigasi */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--color-white);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-lg);
}

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

.logo {
  display: flex;
  align-items: center;
  font-family: var(--font-secondary);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  gap: 0.5rem;
}

.logo svg {
  width: 2rem;
  height: 2rem;
}

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

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

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

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

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-dark);
  cursor: pointer;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(to right, rgba(0, 0, 102, 0.95), rgba(0, 0, 102, 0.7)), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' width='100' height='100'%3E%3Cpath fill='%23FFCC00' d='M20 20h60v60H20z' opacity='0.05'/%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
  color: var(--color-white);
  padding-top: 4rem;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

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

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Keistimewaan Section */
.keistimewaan {
  background-color: var(--color-white);
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
}

.section-title:after {
  content: '';
  position: absolute;
  height: 4px;
  width: 60px;
  background-color: var(--color-secondary);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

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

.feature-card {
  background-color: var(--color-light);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.feature-card:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(to right, var(--color-secondary), var(--color-primary));
  z-index: -1;
}

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

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

.feature-icon svg {
  width: 35px;
  height: 35px;
  color: var(--color-primary);
}

.feature-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

/* Bagaimana Section */
.bagaimana {
  background-color: #f4f7fb;
  position: relative;
}

.bagaimana:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23000066' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.6;
  z-index: 0;
}

.steps-container {
  position: relative;
  z-index: 1;
}

.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.step {
  flex: 1;
  min-width: 250px;
  background-color: var(--color-white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  text-align: center;
  position: relative;
}

.step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background-color: var(--color-secondary);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
}

.step:nth-child(2) .step-number {
  background-color: var(--color-primary);
}

.step:nth-child(3) .step-number {
  background-color: var(--color-accent);
  color: var(--color-dark);
}

.step h3 {
  margin-top: 0.5rem;
}

/* Keselamatan Section */
.keselamatan {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.keselamatan .section-title:after {
  background-color: var(--color-accent);
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.security-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.security-icon {
  min-width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 204, 0, 0.2);
  border-radius: 50%;
}

.security-icon svg {
  width: 25px;
  height: 25px;
  color: var(--color-accent);
}

.security-content h3 {
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.security-content p {
  opacity: 0.8;
}

/* FAQ Section */
.faq {
  background-color: var(--color-white);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1rem;
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--color-light);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  padding: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  color: var(--color-primary);
  border-left: 4px solid var(--color-primary);
}

.faq-question:after {
  content: '+';
  font-size: 1.5rem;
}

.faq-answer {
  padding: 0 1.25rem;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item.active .faq-question:after {
  content: '−';
}

.faq-item.active .faq-answer {
  padding: 1.25rem;
  max-height: 1000px;
}

/* CTA Section */
.cta {
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
  color: var(--color-white);
  text-align: center;
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
}

.cta h2 {
  margin-bottom: 1.5rem;
}

.cta p {
  opacity: 0.9;
  margin-bottom: 2rem;
}

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

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

/* Footer */
.footer {
  background-color: var(--color-dark);
  color: var(--color-light);
  padding: 4rem 0 2rem;
}

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

.footer-about {
  grid-column: span 2;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 1rem;
}

.footer-logo svg {
  width: 30px;
  height: 30px;
}

.footer h4 {
  color: var(--color-accent);
  margin-bottom: 1.25rem;
  font-size: 1.2rem;
}

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

.footer-links a {
  color: var(--color-light);
  opacity: 0.8;
}

.footer-links a:hover {
  color: var(--color-accent);
  opacity: 1;
}

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

/* Media Queries */
@media (max-width: 992px) {
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  section {
    padding: 4rem 0;
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 80%;
    height: calc(100vh - 70px);
    background-color: var(--color-white);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    z-index: 999;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .step {
    margin-bottom: 2.5rem;
  }
  
  .security-item {
    margin-bottom: 1.5rem;
  }
  
  .footer-about {
    grid-column: span 1;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.6rem;
  }
  
  h3 {
    font-size: 1.3rem;
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }
  
  .feature-card {
    padding: 1.5rem;
  }
}

/* Animation Keyframes */
@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0);
  }
}
