/*
 * Undresser Malaysia - Main Stylesheet
 * Dioptimumkan untuk SEO dan reka bentuk responsif
 */

:root {
  --primary: #4dabf7;
  --secondary: #20c997;
  --dark: #212529;
  --light: #f8f9fa;
  --text: #343a40;
  --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
  --shadow: 0 5px 15px rgba(77, 171, 247, 0.2);
  --radius: 10px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito', sans-serif;
  color: var(--text);
  background-color: #f8f9fa;
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--dark);
}

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

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

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

/* Header styles */
.header {
  background: white;
  padding: 15px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  color: transparent;
}

.logo svg {
  height: 40px;
  width: 40px;
}

/* Navigation */
.main-nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

.main-nav a {
  color: var(--dark);
  font-weight: 600;
  position: relative;
  padding-bottom: 5px;
}

.main-nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background: var(--gradient);
  transition: width 0.3s ease;
}

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

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

/* Hero section */
.hero {
  position: relative;
  padding: 80px 0 60px;
  overflow: hidden;
  background-color: white;
}

.hero::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: var(--gradient);
  opacity: 0.05;
  right: -100px;
  top: -100px;
}

.hero::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--gradient);
  opacity: 0.05;
  left: -50px;
  bottom: -50px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--dark);
}

.hero-title span {
  color: var(--primary);
}

.hero-text {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: var(--text);
  opacity: 0.9;
}

.hero-image {
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-image svg {
  max-width: 100%;
  height: auto;
}

/* Button styles */
.btn {
  display: inline-block;
  padding: 12px 30px;
  background: var(--gradient);
  color: white;
  border-radius: 50px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 14px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
  border: none;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(77, 171, 247, 0.3);
  color: white;
}

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

.section-title {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.section-title p {
  max-width: 600px;
  margin: 0 auto;
  color: var(--text);
  opacity: 0.8;
}

.features-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.feature-box {
  background: white;
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.feature-icon {
  margin-bottom: 20px;
}

.feature-box h3 {
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.feature-box p {
  color: var(--text);
  opacity: 0.8;
}

/* How it works section */
.how-it-works {
  padding: 80px 0;
  background: white;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 800px;
  margin: 0 auto;
}

.step {
  display: flex;
  gap: 30px;
}

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

.step-content h3 {
  margin-bottom: 10px;
  font-size: 1.5rem;
}

/* CTA section */
.cta {
  padding: 80px 0;
  background: var(--gradient);
  color: white;
  text-align: center;
}

.cta h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: white;
}

.cta p {
  max-width: 600px;
  margin: 0 auto 30px;
  opacity: 0.9;
}

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

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

/* FAQ section */
.faq {
  padding: 80px 0;
  background: var(--light);
}

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

.faq-item {
  background: white;
  margin-bottom: 20px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
}

.faq-question {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 600;
}

.faq-question svg {
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question svg {
  transform: rotate(45deg);
}

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

.faq-item.active .faq-answer {
  padding: 0 20px 20px;
  max-height: 300px;
}

/* Footer */
.footer {
  padding: 60px 0 30px;
  background: var(--dark);
  color: white;
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.footer-logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
}

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

.footer-text {
  opacity: 0.7;
  margin-bottom: 20px;
}

.footer-col h4 {
  color: white;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--gradient);
}

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

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: white;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.footer-links a:hover {
  opacity: 1;
}

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

/* Responsive styles */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-image {
    order: -1;
    margin-bottom: 30px;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  
  .main-nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    padding: 0;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: clip-path 0.4s ease;
    z-index: 99;
  }
  
  .main-nav.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
  
  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }
  
  .main-nav a {
    display: block;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .step {
    flex-direction: column;
  }
  
  .step-number {
    margin-bottom: 15px;
  }
  
  .features-container {
    grid-template-columns: 1fr;
  }
}

/* Animations */
@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate {
  animation: fadeIn 0.8s ease forwards;
}

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

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

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