/*
   nudifyerMY.site - Gaya Laman Web
   Warna utama: Hijau (#006400), Kuning (#FFCC00), Merah (#DC143C)
*/

/* Pemboleh ubah CSS */
:root {
  --hijau-gelap: #006400;
  --hijau: #009900;
  --hijau-cerah: #00CC00;
  --kuning: #FFCC00;
  --merah: #DC143C;
  --putih: #FFFFFF;
  --hitam: #222222;
  --kelabu-cerah: #F0FFF0;
  --kelabu: #DDDDDD;
  --kelabu-gelap: #888888;
  --bayang: 0 10px 25px rgba(0, 100, 0, 0.12);
  --bayang-hover: 0 15px 35px rgba(0, 100, 0, 0.18);
  --gradient: linear-gradient(135deg, var(--hijau-gelap) 0%, var(--hijau) 100%);
  --transition: all 0.3s ease;
  --radius: 12px;
}

/* Tetapan asas */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: 'Poppins', sans-serif;
  color: var(--hitam);
  background-color: var(--putih);
  line-height: 1.6;
  overflow-x: hidden;
}

.wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

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

ul {
  list-style: none;
}

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

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

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

section {
  padding: 80px 0;
}

/* Tipografi */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.3;
  color: var(--hijau-gelap);
}

h1 {
  font-size: 3.2rem;
  margin-bottom: 1.2rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
}

p {
  margin-bottom: 1.2rem;
}

/* Butang */
.button {
  display: inline-block;
  background: var(--gradient);
  color: var(--putih);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: 16px 32px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 1px;
  box-shadow: 0 5px 15px rgba(0, 100, 0, 0.2);
  text-transform: uppercase;
}

.button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 100, 0, 0.3);
  color: var(--putih);
}

/* Tajuk Seksyen */
.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: var(--kuning);
  border-radius: 2px;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--putih);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 15px 0;
}

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

/* Logo */
.logo {
  display: flex;
  align-items: center;
}

.logo__icon {
  margin-right: 10px;
}

.logo__text {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--hijau-gelap);
}

/* Navigasi */
.nav__list {
  display: flex;
  gap: 25px;
}

.nav__link {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--hitam);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 3px;
  background: var(--kuning);
  transition: var(--transition);
  border-radius: 3px;
}

.nav__link:hover {
  color: var(--hijau-gelap);
}

.nav__link:hover::after {
  width: 100%;
}

/* Burger Menu */
.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  width: 40px;
  height: 30px;
  position: relative;
  z-index: 1001;
}

.burger__line {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--hijau-gelap);
  margin: 6px 0;
  border-radius: 3px;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  padding-top: 150px;
  padding-bottom: 80px;
  background-color: var(--kelabu-cerah);
  position: relative;
  overflow: hidden;
}

.hero__container {
  display: flex;
  align-items: center;
  gap: 40px;
}

.hero__content {
  flex: 1;
}

.hero__subtitle {
  font-size: 1.3rem;
  color: var(--kelabu-gelap);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.hero__text {
  font-size: 1.2rem;
  color: var(--hitam);
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero__visual {
  flex: 1;
  display: flex;
  justify-content: center;
}

.hero__image {
  max-width: 100%;
  height: auto;
}

/* Ciri-ciri */
.features {
  background-color: var(--putih);
}

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

.feature-card {
  background-color: var(--kelabu-cerah);
  border-radius: var(--radius);
  padding: 30px 25px;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--bayang);
  height: 100%;
}

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

.feature-card__icon {
  margin: 0 auto 20px;
  width: 80px;
  height: 80px;
}

.feature-card__title {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--hijau-gelap);
}

/* Cara Penggunaan */
.how-it-works {
  background-color: var(--kelabu-cerah);
  position: relative;
}

.how-it-works::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 10% 10%, rgba(0, 100, 0, 0.05) 10%, transparent 70%),
                    radial-gradient(circle at 90% 90%, rgba(220, 20, 60, 0.05) 10%, transparent 70%);
  z-index: 0;
}

.steps {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 60px;
  position: relative;
  z-index: 1;
}

.step-card {
  background-color: var(--putih);
  border-radius: var(--radius);
  padding: 35px 25px;
  text-align: center;
  flex: 1;
  min-width: 250px;
  max-width: 320px;
  box-shadow: var(--bayang);
  position: relative;
  transition: var(--transition);
}

.step-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--bayang-hover);
}

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

.step-card__title {
  margin-bottom: 15px;
  color: var(--hijau-gelap);
}

.cta {
  text-align: center;
  margin-top: 40px;
  position: relative;
  z-index: 1;
}

/* Testimonial */
.testimonials {
  background-color: var(--putih);
  text-align: center;
}

.testimonials__slider {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.testimonial {
  padding: 20px;
}

.testimonial__content {
  background-color: var(--kelabu-cerah);
  border-radius: var(--radius);
  padding: 35px 30px;
  box-shadow: var(--bayang);
  position: relative;
}

.testimonial__content::before {
  content: '"';
  position: absolute;
  top: 10px;
  left: 20px;
  font-size: 5rem;
  font-family: 'Georgia', serif;
  color: var(--kuning);
  opacity: 0.4;
  line-height: 0.8;
}

.testimonial__quote {
  font-style: italic;
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.testimonial__author {
  font-weight: 700;
  color: var(--hijau-gelap);
}

.testimonials__dots {
  display: flex;
  justify-content: center;
  margin-top: 30px;
  gap: 10px;
}

.testimonials__dot {
  width: 12px;
  height: 12px;
  background-color: var(--kelabu);
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
}

.testimonials__dot.active {
  background-color: var(--kuning);
  transform: scale(1.2);
}

/* FAQ */
.faq {
  background-color: var(--kelabu-cerah);
}

.accordion {
  max-width: 900px;
  margin: 0 auto;
}

.accordion__item {
  background-color: var(--putih);
  border-radius: var(--radius);
  margin-bottom: 20px;
  box-shadow: var(--bayang);
  overflow: hidden;
}

.accordion__header {
  padding: 20px 30px;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--hijau-gelap);
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}

.accordion__header::after {
  content: '+';
  position: absolute;
  right: 30px;
  font-size: 1.5rem;
  transition: var(--transition);
}

.accordion__item.active .accordion__header {
  background-color: var(--hijau-gelap);
  color: var(--putih);
}

.accordion__item.active .accordion__header::after {
  content: '−';
  transform: rotate(180deg);
  color: var(--putih);
}

.accordion__content {
  max-height: 0;
  overflow: hidden;
  transition: var(--transition);
  padding: 0 30px;
}

.accordion__item.active .accordion__content {
  max-height: 200px;
  padding: 20px 30px 30px;
}

/* CTA Akhir */
.final-cta {
  background: var(--gradient);
  color: var(--putih);
  text-align: center;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background-image: radial-gradient(circle, rgba(255, 204, 0, 0.1) 5%, transparent 15%);
  background-size: 30px 30px;
  z-index: 0;
  animation: rotate 30s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.final-cta__title {
  color: var(--putih);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.final-cta__text {
  font-size: 1.3rem;
  max-width: 700px;
  margin: 0 auto 40px;
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  z-index: 1;
}

.final-cta__button {
  background: var(--putih);
  color: var(--hijau-gelap);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
  position: relative;
  z-index: 1;
}

.final-cta__button:hover {
  background: var(--putih);
  color: var(--hijau);
  box-shadow: 0 12px 25px rgba(255, 255, 255, 0.3);
}

/* Footer */
.footer {
  background-color: var(--hijau-gelap);
  color: var(--putih);
  padding: 70px 0 20px;
}

.footer__content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 50px;
}

.footer__branding {
  display: flex;
  align-items: flex-start;
}

.footer__logo {
  margin-right: 20px;
}

.footer__title {
  color: var(--putih);
  margin-bottom: 10px;
}

.footer__description {
  color: rgba(255, 255, 255, 0.7);
  max-width: 300px;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 60px;
}

.footer__heading {
  color: var(--putih);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer__heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--kuning);
  border-radius: 2px;
}

.footer__menu li {
  margin-bottom: 12px;
}

.footer__link {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.footer__link:hover {
  color: var(--putih);
  padding-left: 5px;
}

.footer__copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 350px;
  height: 100%;
  background-color: var(--putih);
  z-index: 1000;
  padding: 100px 40px 40px;
  box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
  transition: right 0.4s ease;
  overflow-y: auto;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-menu a {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--hijau-gelap);
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid var(--kelabu);
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Animasi */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Slider */
.testimonial {
  display: none;
  transition: opacity 0.5s ease;
}

.testimonial.active {
  display: block;
  animation: fadeIn 0.5s forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Adaptif */
@media (max-width: 992px) {
  html {
    font-size: 15px;
  }
  
  section {
    padding: 70px 0;
  }
  
  .hero {
    padding-top: 130px;
    padding-bottom: 70px;
  }
  
  .hero__container {
    flex-direction: column;
  }
  
  .feature-card,
  .step-card {
    padding: 25px 20px;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
  
  .nav {
    display: none;
  }
  
  .burger {
    display: block;
  }
  
  .hero {
    padding-top: 110px;
    text-align: center;
  }
  
  .hero__text {
    margin-left: auto;
    margin-right: auto;
  }
  
  .testimonial__content {
    padding: 25px 20px;
  }
  
  .footer__content {
    flex-direction: column;
    align-items: center;
  }
  
  .footer__branding {
    justify-content: center;
    text-align: center;
  }
  
  .footer__links {
    justify-content: center;
    gap: 40px;
  }
  
  .footer__heading::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .footer__column {
    text-align: center;
    min-width: 200px;
  }
}

@media (max-width: 576px) {
  .section-title {
    font-size: 2rem;
  }
  
  .hero__title {
    font-size: 2.6rem;
  }
  
  .steps {
    flex-direction: column;
    align-items: center;
  }
  
  .step-card {
    width: 100%;
    max-width: 100%;
  }
  
  .accordion__header {
    padding: 15px 20px;
    font-size: 1.1rem;
  }
  
  .accordion__header::after {
    right: 20px;
  }
  
  .accordion__item.active .accordion__content {
    padding: 15px 20px 20px;
  }
}
