/* Reset CSS dan font */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #ffffff;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Header styles */
header {
    background-color: #fff;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #f0f0f0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 1.9rem;
    font-weight: 700;
    color: #000000;
    letter-spacing: -0.5px;
    margin-right: 1rem;
}

.logo span {
    color: #ff4081;
    font-weight: 800;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2.2rem;

    align-items: center;
}

nav a {
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    font-size: 1.05rem;
    color: #4b5563;
    white-space: nowrap;
}

nav a:hover {
    color: #FFD5D5;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #FFD5D5;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

nav li:last-child {
    margin-right: 1.6rem; /* Jarak "Kontak" ke search */
}

.search-icon, .cart-icon {
    font-size: 1.35rem;
    cursor: pointer;
    transition: transform 0.3s ease;
    color: #4b5563;
}

.search-icon:hover, .cart-icon:hover {
    transform: scale(1.1);
    color: #FFD5D5;
}
#profileIcon img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid #ffe4e9;
}

/* LOGOUT */
#authButtons button {
    padding: 7px 20px; /* Ukuran pas */
    color: #ff4081;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    margin-left: 0.5rem; /* Dekat dengan profile */
}
/* Hero section */
.hero {
    background: linear-gradient(135deg, rgba(255, 192, 203, 0.95) 0%, rgba(255, 105, 180, 0.92) 50%, rgba(236, 64, 122, 0.95) 100%);
    /* Background abstrak pink modern (elegant, digital feel) */
    background-image: url('images/2.jpg');
    background-size: cover;
    background-position: center;
    height: 90vh;
    color: white;
    display: flex;
    align-items: center;
    padding: 0 5%;
    position: relative;
}

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

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    font-weight: 300;
    line-height: 1.6;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: #ffffff;
    color: #ff4081;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.btn:hover {
    background-color: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Features section */
.features {
    padding: 6rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 40px !important;
    font-size: 2.5rem;
    font-weight: 600;
    position: relative;
    color: #000;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #ff4081;
    margin: 1rem auto;
}

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

.feature-card {
    text-align: center;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    background-color: #f8fafc;
    transition: all 0.4s ease;
    border: 1px solid #f1f5f9;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #ff4081;
}

.feature-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #000;
}

.feature-desc {
    color: #64748b;
    line-height: 1.7;
}

/* Products section */
.products {
    padding: 6rem 5%;
    background-color: #f8fafc;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.product-card {
    background-color: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    position: relative;
    border: 1px solid #f1f5f9;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: #ff4081;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.product-image {
    height: 200px;
    overflow: hidden;
    position: relative;
    background-color: #f1f5f9;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.product-info {
    padding: 2rem;
}

.product-category {
    color: #ff4081;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-name {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #000;
    line-height: 1.3;
}

.product-desc {
    color: #64748b;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.product-features {
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
    color: #475569;
    font-size: 0.9rem;
}

.feature-item::before {
    content: 'Checkmark';
    color: #FFD5D5;
    font-weight: bold;
    margin-right: 0.5rem;
}

.product-price {
    font-size: 1.8rem;
    color: #ff4081;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: block;
}

.add-to-cart {
    width: 100%;
    text-align: center;
    padding: 1rem;
    background-color: #ff4081;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.add-to-cart:hover {
    background-color: #ff4081;
    transform: translateY(-2px);
}

/* How it works */
.how-it-works {
    padding: 60px 5% 80px !important; 
    background-color: #ffffff;
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 50px;
    max-width: 1300px;
    margin: 0 auto;
    counter-reset: step-counter;
}

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

.step-number {
    width: 60px;
    height: 60px;
    background-color: #ff4081;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 2;
}

.step-number::before {
    counter-increment: step-counter;
    content: counter(step-counter);
}

.step-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #000;
}

.step-desc {
    color: #64748b;
    line-height: 1.6;
}

/* Testimonials */
.testimonials {
    padding: 80px 5% 80px !important; /* Padding atas & bawah normal, title pas navbar */
    background-color: #f8fafc;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px !important; /* Gap antar card pas & rapi */
    max-width: 1200px;
    margin-top: -60px !important; /* Naikkan sedikit ke atas */
}

/* CARD TESTIMONI GRADIENT */
.testimonial-card-gradient {
    background: linear-gradient(135deg, #e8afc9 0%, #f798be 50%, #f588b4 100%);
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 15px 40px rgba(255, 105, 180, 0.3);
    transition: all .3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 182, 193, 0.3);
}

.testimonial-card-gradient::before {
    content: '"';
    font-size: 6rem;
    color: rgba(255, 192, 203, 0.2);
    position: absolute;
    top: -15px;
    left: 15px;
    pointer-events: none;
}

.testimonial-card-gradient:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 60px rgba(255, 105, 180, 0.4);
}

/* INFO: NAMA → BINTANG → PRODUK */
.testimonial-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 1rem;
}

.user-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: #333;
}

.testimonial-quote {
    font-style: italic;
    color: #444;
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

/* BINTANG LOGO + GLOW */
.stars-display,
.rating-stars {
  font-size: 1.8rem;
  color: #ccc;
  letter-spacing: 3px;
  display: flex;
  justify-content: flex-start;
  gap: 6px;
  line-height: 1;
}

/* BINTANG TERISI (KUNING EMAS + GLOW) */
.stars-display .filled,
.rating-stars input:checked ~ label,
.rating-stars label:hover ~ label,
.rating-stars label:hover {
  color: #ffd700 !important;
  text-shadow: 0 0 12px #ffd700, 0 0 20px #ffeb3b;
  transform: scale(1.15);
  transition: all .25s ease;
}

/* HOVER EFEK */
.rating-stars label {
  cursor: pointer;
  transition: all .25s ease;
}
.rating-stars label:hover {
  color: #ffeb3b !important;
  text-shadow: 0 0 15px #ffd700, 0 0 25px #ffeb3b;
  transform: scale(1.3);
}

/* INPUT HIDDEN */
.rating-stars input {
  display: none;
}

/* HAPUS AVATAR "Y" SAJA */
.testimonial-avatar,
.testimonial-header,
.testimonial-card-gradient .testimonial-avatar,
.testimonial-card-gradient .testimonial-header {
  display: none !important;
}

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

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta .btn {
    background-color: #ffffff;
    color: #ff4081;
}

/* Footer */
footer {
    background-color: #0f172a;
    color: white;
    padding: 5rem 5% 2rem;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer-logo span {
    color: #ff4081;
}

.footer-desc {
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background-color: #ff4081;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #ffff;
}

.social-link:hover {
    background-color: #FFD5D5;
    transform: translateY(-2px);
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    font-weight: 600;
    position: relative;
}

.footer-section h3::after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background-color: #ff4081;
    margin-top: 0.5rem;
}

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

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

.footer-links a {
    color: #94a3b8;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #FFD5D5;
}

.copyright {
    text-align: center;
    padding-top: 3rem;
    margin-top: 3rem;
    border-top: 1px solid #ff4081;
    color: #64748b;
    font-size: 0.9rem;
}

/* Responsive styles */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        padding: 1.2rem 5%;
        gap: 1rem;
    }
    
    nav ul {
        margin: 2.5rem 0;
        gap: 2.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Profile di undexuser */
.profile-popup {
    position: absolute;
    top: 70px;
    right: 40px;
    background: #fff;
    border: 1.5px solid #e0e0e0;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.13);
    padding: 22px 32px 18px 32px;
    min-width: 270px;
    z-index: 1000;
    animation: fadeInProfile .25s;
}
@keyframes fadeInProfile {
    from { opacity: 0; transform: translateY(-10px);}
    to { opacity: 1; transform: translateY(0);}
}
.profile-popup-header {
    display: flex;
    align-items: center;
    gap: 16px;
}
.profile-avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 2px solid #f0f0f0;
    background: #f8f8f8;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
.profile-popup-name {
    font-size: 1.15em;
    font-weight: 600;
    margin-bottom: 2px;
}
.profile-popup-email {
    font-size: 0.97em;
    color: #888;
}
.btn-profile-close {
    margin-top: 12px;
    background: linear-gradient(90deg,#f857a6,#ff5858);
    color: #fff;
    border: none;
    border-radius: 7px;
    padding: 7px 22px;
    font-size: 1em;
    cursor: pointer;
    transition: background .2s;
}
.btn-profile-close:hover {
    background: linear-gradient(90deg,#ff5858,#f857a6);
}
.profile-icon img:hover {
    box-shadow: 0 4px 16px rgba(248,87,166,0.13);
    border-color: #f857a6;
}

/* Section Title Fix */
.content-section {
    padding: 60px 20px;
    text-align: center;
}
.content-section h2 {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 0.5em;
    border-bottom: 3px solid #ff5050;
    display: inline-block;
    padding-bottom: 10px;
}

.section-description {
    max-width: 700px;
    margin: 0 auto 40px auto;
    color: #666;
    line-height: 1.6;
}

/* user.css – tambahkan di akhir file */

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

@keyframes popEffect {
  0%   { transform: scale(1) translateY(0); }
  30%  { transform: scale(1.15) translateY(-12px) skewX(-4deg); }
  50%  { transform: scale(1.1) translateY(-6px) skewX(2deg); }
  100% { transform: scale(1) translateY(0) skewX(0); }
}

.review-bubble {
  background: linear-gradient(135deg, #ffd1dc, #ffe4e1);
  border-radius: 20px;
  padding: 20px;
  margin: 16px auto;
  max-width: 420px;
  box-shadow: 0 6px 16px rgba(255,105,180,.18);
  border: 1.5px solid #ff99bb;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  user-select: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

.review-bubble:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(255,105,180,.3);
}

.faq-answer {
    transition: all 0.3s ease;
}
/* TESTIMONI CAROUSEL - KECIL, HORIZONTAL, RATA TENGAH SEMPURNA */
/* TESTIMONI CAROUSEL - KECIL, HORIZONTAL, RATA TENGAH SEMPURNA */
#testimonialsGrid {
  padding: 140px 20px 80px;
  background-color: #ffffff;
  overflow: hidden;
}

.testimonials-carousel-container {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
}

.testimonials-track {
  display: flex;
  gap: 40px;
  transition: transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.testi-card-small {
  background: linear-gradient(135deg, #ffe4e9, #ffcedd);
  border-radius: 28px;
  padding: 28px 20px;
  width: 280px; /* KECIL */
  height: 280px;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(255,105,180,0.2);
  border: 1px solid #ffbad1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  transition: all 0.5s ease;
  animation: popIn 1s ease-out forwards;
  opacity: 0;
}

@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  70% {
    opacity: 1;
    transform: scale(1.04) translateY(-8px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.testi-name {
  font-weight: 800;
  font-size: 19px;
  color: #d81b60;
  margin-bottom: 12px;
}

.testi-stars {
  font-size: 23px;
  color: #ffb800;
  margin-bottom: 14px;
  letter-spacing: 3px;
  text-shadow: 0 0 8px rgba(255,215,0,0.5);
}

.testi-product {
  font-size: 13px;
  color: #e91e63;
  font-weight: 600;
  margin-bottom: 16px;
}

.testi-quote {
  font-style: italic;
  font-size: 15px;
  color: #c2185b;
  line-height: 1.6;
  position: relative;
  padding: 0 20px;
}

.testi-quote::before {
  content: '“';
  position: absolute;
  left: 0;
  top: -10px;
  font-size: 40px;
  color: #ff4081;
  opacity: 0.6;
}

.testi-quote::after {
  content: '”';
  position: absolute;
  right: 0;
  bottom: -20px;
  font-size: 40px;
  color: #ff4081;
  opacity: 0.6;
}

/* Tombol geser kecil */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,64,129,0.8);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}

.carousel-arrow:hover {
  background: #ff4081;
  transform: translateY(-50%) scale(1.1);
}

.prev { left: 20px; }
.next { right: 20px; }

/* Responsif */
@media (max-width: 992px) {
  .testimonials-track { gap: 30px; }
  .testi-card-small { width: 260px; height: 260px; }
}

@media (max-width: 768px) {
  #testimonialsGrid { padding: 120px 20px 60px; }
  .testimonials-track { gap: 20px; }
  .testi-card-small { width: 240px; height: 240px; padding: 20px; }
  .carousel-arrow { width: 35px; height: 35px; font-size: 20px; }
}
/* FIX SCROLL FINAL - PAS UNTUK SEMUA SECTION (GA ADA YANG TURUN/NAIK) */
html {
    scroll-behavior: smooth;
}

/* Nilai berbeda per section biar title selalu pas di bawah navbar */
#hero {
    scroll-margin-top: 100px; /* Hero langsung atas */
}

#features {
    scroll-margin-top: 140px;
}

#products {
    scroll-margin-top: 10px; /* Produk pas, ga turun lagi */
}

#how-it-works {
    scroll-margin-top: 120px; /* Cara Beli pas */
}

#testimonials {
    scroll-margin-top: 10px; /* Testimoni pas, ga naik ke atas */
}

#about {
    scroll-margin-top: 10px;
    padding-top: 70px !important;
}
.about-container {
    padding: 0 20px 80px !important; /* Hapus padding atas ekstra */
}

.about-container h2 {
    font-size: 2.8rem !important;
    color: #ff4081;
    margin-top: 0 !important;
    margin-bottom: 20px !important;
}

.about-container p {
    font-size: 1.15rem !important;
    color: #666;
    max-width: 900px;
    margin: 0 auto 40px !important;
    line-height: 1.8;
}

/* Card misi/vis/nilai lebih compact */
.about-grid {
    gap: 30px !important;
}

.about-card {
    padding: 30px 25px !important;
    border-radius: 20px !important;
}

.about-card div {
    font-size: 3.5rem !important;
    margin-bottom: 20px !important;
}

.about-card h3 {
    font-size: 1.6rem !important;
    margin-bottom: 15px !important;
}

.about-card p {
    font-size: 1rem !important;
    line-height: 1.7;
}


#faq, #terms, #privacy {
    scroll-margin-top: 100px;
}

#cta {
    scroll-margin-top: 110px;
}

#footer {
    scroll-margin-top: 100px;
}
