/*
 * Main stylesheet for ainudes.beauty
 * Malaysian-focused website with mobile-responsive design
 * Distinctive teal/green color scheme
 */

/* Base styles and reset */
:root {
  --primary-color: #20C997;
  --primary-dark: #0CA678;
  --primary-light: #63E6BE;
  --accent-color: #FD7E14;
  --text-dark: #212529;
  --text-light: #F8F9FA;
  --bg-light: #F8F9FA;
  --bg-dark: #343A40;
  --section-padding: 4rem 0;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans SC', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-light);
}

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

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

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

h1, h2, h3, h4, h5, h6 {
  line-height: 1.3;
  margin-bottom: 1rem;
}

h2 {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 1rem;
}

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

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1.2rem;
}

/* Buttons */
.btn-main {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.btn-main:hover {
  background: var(--primary-dark);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(32, 201, 151, 0.2);
}

/* Header & Navigation */
.site-header {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 15px;
}

.brand {
  display: flex;
  align-items: center;
}

.brand h1 {
  margin: 0;
  font-size: 1.8rem;
  margin-left: 10px;
  color: var(--primary-color);
}

.logo {
  width: 42px;
  height: 42px;
}

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

.nav-list {
  display: flex;
  list-style: none;
}

.nav-list li {
  margin-left: 2rem;
}

.nav-list a {
  color: var(--text-dark);
  font-weight: 500;
  font-size: 1.1rem;
  transition: color 0.3s;
}

.nav-list a:hover {
  color: var(--primary-color);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 30px;
  height: 3px;
  background-color: var(--text-dark);
  transition: all 0.3s;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 5rem 0;
  text-align: center;
}

.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-text {
  max-width: 600px;
  text-align: center;
  margin-bottom: 2rem;
}

.hero h2 {
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
}

.hero h2::after {
  background: white;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.hero-visual {
  max-width: 100%;
}

/* Features Section */
.features {
  padding: var(--section-padding);
  background-color: var(--bg-light);
}

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

.feature {
  text-align: center;
  padding: 2rem;
  border-radius: 10px;
  background-color: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.feature .icon {
  margin-bottom: 1.5rem;
}

/* How it Works Section */
.how-works {
  padding: var(--section-padding);
  background-color: #F0FFF8;
}

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

.step {
  text-align: center;
  position: relative;
  padding: 2rem;
}

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

/* Results Section */
.results {
  padding: var(--section-padding);
  background-color: var(--bg-light);
}

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

.gallery-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s;
}

.gallery-item:hover {
  transform: scale(1.02);
}

.gallery-item svg {
  display: block;
  width: 100%;
  height: auto;
}

.overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(32, 201, 151, 0.8);
  color: white;
  padding: 1rem;
  transition: opacity 0.3s;
}

/* FAQ Section */
.faq {
  padding: var(--section-padding);
  background-color: #F0FFF8;
}

.faq-items {
  margin-top: 2rem;
}

.faq-item {
  margin-bottom: 1.5rem;
  border: 1px solid rgba(32, 201, 151, 0.2);
  border-radius: 8px;
  overflow: hidden;
}

.faq-item h3 {
  background-color: white;
  padding: 1.2rem;
  margin: 0;
  cursor: pointer;
  position: relative;
  font-size: 1.2rem;
}

.faq-item h3::after {
  content: '+';
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  transition: transform 0.3s;
}

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

.answer {
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  background-color: white;
}

.faq-item.active .answer {
  padding: 1.2rem;
  max-height: 500px;
}

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

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

.cta h2::after {
  background: white;
}

.cta p {
  margin-bottom: 2rem;
  font-size: 1.2rem;
}

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

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 2rem;
}

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

.footer-brand p {
  margin: 0 0 0 10px;
  font-size: 1.5rem;
  font-weight: bold;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
}

.footer-column {
  margin-right: 3rem;
  margin-bottom: 1.5rem;
}

.footer-column h4 {
  color: var(--primary-light);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 0.5rem;
}

.footer-column ul li a {
  color: var(--text-light);
  transition: color 0.3s;
}

.footer-column ul li a:hover {
  color: var(--primary-light);
}

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

/* Media Queries for Responsive Design */
@media (max-width: 992px) {
  h2 {
    font-size: 2rem;
  }
  
  .hero h2 {
    font-size: 2.4rem;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
  
  .nav-list {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    background-color: white;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
  }
  
  .nav-list.active {
    max-height: 300px;
  }
  
  .nav-list li {
    margin: 0;
    text-align: center;
  }
  
  .nav-list li a {
    display: block;
    padding: 1rem;
  }
  
  .footer-content {
    flex-direction: column;
  }
  
  .feature-grid,
  .steps,
  .results-gallery {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  h2 {
    font-size: 1.8rem;
  }
  
  .hero h2 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .brand h1 {
    font-size: 1.5rem;
  }
  
  .btn-main {
    padding: 0.7rem 1.5rem;
  }
}

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

.feature,
.step,
.gallery-item,
.faq-item {
  opacity: 0;
  transform: translateY(20px);
}

.feature.animate,
.step.animate,
.gallery-item.animate,
.faq-item.animate {
  animation: fadeIn 0.6s forwards;
}
