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

/* Variables */
:root {
    --primary-color: #6C63FF; /* Ungu modern yang lembut */
    --primary-dark: #5A52E0;
    --secondary-color: #4D44DB;
    --text-color: #E0E0E0; /* Teks lebih terang untuk kontras */
    --text-light: #A0A0A0;
    --bg-light: #121212; /* Warna dasar gelap */
    --bg-dark: #1E1E1E; /* Untuk elemen yang lebih gelap */
    --white: #1E1E1E; /* Di dark mode, 'white' sebenarnya abu-abu gelap */
    --black: #E0E0E0; /* Di dark mode, 'black' sebenarnya terang */
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --border-radius: 12px;
    --transition: all 0.3s ease;
    --counter-font: 'Poppins', system-ui, sans-serif;
}

/* Base Styles */
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #121212; /* Warna background gelap */
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    color: #FFFFFF;
    font-weight: 600;
    line-height: 1.2;
}

p {
    color: var(--text-light);
}

a {
    text-decoration: none;
    color: inherit;
}

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

.section-title {
    font-size: 2.2rem;
    margin-bottom: 15px;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 15px auto 25px;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 50px;
    color: var(--text-light);
}

.section-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.15); /* Warna lebih subtle */
    width: 60%;
    max-width: 500px;
    margin: 70px auto;
    border: none;
    opacity: 0.5;
}

/* Buttons */
.btn-ghost {
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
    margin-top: 20px;
}

.btn-ghost:hover {
    background-color: var(--primary-color);
    color: #121212;
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    background-color: var(--primary-color);
    color: #121212;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    margin: 20px 0;
    box-shadow: var(--shadow);
    font-size: 1.1rem;
}

.btn-download:hover {
    background-color: var(--primary-dark);
    color: #121212;
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(67, 97, 238, 0.3);
}

.btn-download i {
    margin-right: 10px;
    font-size: 1.2rem;
}

/* Hero Section */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1E1E1E 0%, #2D2D2D 100%);
}

.hero-content {
    max-width: 600px;
    z-index: 2;
}

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

.hero .subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--text-light);
}

.hero-image {
    position: relative;
    z-index: 1;
}

.app-mockup {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transform: perspective(1000px) rotateY(-15deg);
    transition: var(--transition);
}

.app-mockup:hover {
    transform: perspective(1000px) rotateY(-5deg);
}

/* Feature Section */
.features {
    padding: 100px 0;
    position: relative;
    background-color: var(--white);
}

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

.feature {
    background-color: var(--bg-dark);
    padding: 30px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.feature:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 15px rgba(108, 99, 255, 0.3);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #4361ee 0%, #3f37c9 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: var(--white);
    font-size: 1.8rem;
}

.feature h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #FFFFFF;
}

/* How It Works Section */
.how-it-works {
    position: relative;
    padding: 100px 0;
    padding-bottom: 40px;
    background-color: #1A1A1A;
}

.steps-container {
    margin-bottom: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.step {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: var(--shadow);
    text-align: center;
    position: relative;
    transition: var(--transition);
}

.step:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 15px rgba(108, 99, 255, 0.3);
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #4361ee 0%, #3f37c9 100%);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #FFFFFF;
}

.step p {
    margin-bottom: 0;
    line-height: 1.6;
}

/* Download Counter Section */
.download-counter-section {
    position: relative;
    padding: 80px 0;
    padding-top: 50px;
}

.download-counter-grid {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 40px;
}

.download-counter {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--bg-dark);
    padding: 40px 60px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(67, 97, 238, 0.15);
    transition: all 0.3s ease;
    max-width: 500px;
    width: 100%;
}

.download-counter:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 15px rgba(108, 99, 255, 0.3);
}

.download-counter::after {
    content: '';
    display: block;
    width: 100px;
    height: 2px;
    background: rgba(108, 99, 255, 0.3);
    margin: 40px auto;
}

.main-counter i {
    font-size: 3.5rem;
    color: #4361ee;
    margin-bottom: 20px;
}

.counter-wrapper {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 5px;
    margin-bottom: 10px;
}

.main-counter .counter {
    font-size: 3.2rem;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1;
    font-style: normal;
    font-feature-settings: "tnum";
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.main-counter .plus-sign {
    font-size: 2rem;
    color: #4361ee;
    font-weight: 700;
    padding-bottom: 8px;
    position: relative;
    left: 5px;
}

.main-counter p {
    font-size: 1.1rem;
    color: #8d99ae;
    margin-top: 10px;
    letter-spacing: 0.5px;
}

/* Counter Stats */
.counter-stats {
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 40px;
    width: 100%;
    max-width: 800px;
    padding: 0 20px;
}

.stat-item {
    background: var(--bg-dark);
    padding: 25px 15px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    flex: 1;
    min-width: 160px;
    text-align: center;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 15px rgba(108, 99, 255, 0.3);
    border-color: rgba(108, 99, 255, 0.3);
}

.stat-item i {
    font-size: 2rem;
    color: #4361ee;
    margin-bottom: 15px;
}

.stat-item div {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 3px;
}

.stat-item .stat-counter {
    font-size: 1.8rem;
    font-weight: 600;
    color: #FFFFFF;
    line-height: 1;
    font-style: normal;
}

.stat-counter {
    font-family: var(--counter-font);
    font-variant-numeric: tabular-nums;
}

.stat-item span:last-child {
    font-size: 1.2rem;
    color: #8d99ae;
    padding-bottom: 3px;
}

.stat-item p {
    font-size: 0.95rem;
    color: #8d99ae;
    margin-top: 8px;
    latter-spacing: 0.3px;
}

/* Footer Styles */
.footer {
    background-color: #1A1A1A;
    padding: 60px 0 30px;
    color: var(--text-light);
}

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

.footer-brand h3 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.footer-links h4, .footer-contact h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links li {
    gap: 10px;
    margin-bottom: 15px;
}

.footer-links a {
    color: var(--text-light);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.privacy-link {
    color: var(--primary-color);
    font-weight: 500;
}

.divider {
    color: var(--primary-color); /* Sesuaikan warna dengan tema footer Anda */
    font-size: 1.2em;
    padding: 0 5px; /* Memberi sedikit ruang di sekitar pemisah */
}

/* Perbarui CTA section */
.cta {
    text-align: center;
    padding: 100px 0px;
    background: linear-gradient(135deg, #1E1E1E 0%, #2D2D2D 100%);
    position: relative;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 80px);
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.cta h2 {
    font-size: 2.4rem;
    margin-bottom: 25px;
    line-height: 1.3;
}

.cta-subtitle {
    font-size: 1.2rem;
    max-width: 650px;
    margin: 0 auto 50px;
    line-height: 1.6;
}

.btn-download {
    margin: 20px 0 40px; /* Spasi lebih besar */
}

.file-size {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 15px;
}

/* App Store Section */
.app-store {
    padding: 100px 0;
    background-color: var(--bg-dark);
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.app-card {
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.app-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(108, 99, 255, 0.2);
}

.app-icon {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.app-info {
    padding: 25px;
}

.app-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #FFFFFF;
}

.app-description {
    font-size: 0.95rem;
    margin-bottom: 20px;
    color: var(--text-light);
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.app-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.app-version {
    color: var(--primary-color);
    font-weight: 500;
}

.app-size {
    color: var(--text-light);
}

.app-download {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: var(--bg-dark);
    text-align: center;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
}

.app-download:hover {
    background-color: var(--primary-dark);
    box-shadow: 0 5px 15px rgba(108, 99, 255, 0.3);
}

.app-download i {
    margin-right: 8px;
}

/* New CSS for Rating section */
.rating-card-section {
  padding: 60px 0;
  background-color: var(--bg-dark);
  text-align: center;
}

.rating-card {
  background-color: #242424;
  border-radius: var(--border-radius);
  padding: 40px;
  max-width: 500px;
  margin: 0 auto;
  box-shadow: var(--shadow);
  text-align: center;
}

.rating-card-header h3 {
  color: var(--black);
  margin-bottom: 10px;
}

.rating-card-body p {
  color: var(--text-light);
  margin-bottom: 15px;
}

.stars-container i {
  font-size: 2.2rem;
  color: #444;
  cursor: pointer;
  transition: all 0.2s;
}

/* Bintang akan berubah warna saat di-hover */
.stars-container i:hover,
.stars-container i:hover ~ i {
  color: #FFC107;
}

/* Bintang akan tetap berwarna saat diklik */
.stars-container i.clicked {
  color: #FFC107;
}

/* Tambahan CSS untuk tombol Kirim Penilaian */
#submitRatingBtn {
    display: none; /* Tombol ini akan dimunculkan oleh JavaScript */
}

/* Rating Counter Stars */
.rating-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.rating-stars {
    display: flex;
    justify-content: center;
    gap: 3px;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.rating-stars i {
    cursor: pointer;
    color: #ccc;
    transition: all 0.2s;
}

.rating-stars i:hover {
    transform: scale(1.2);
}

.rating-stars i.active {
    color: #FFC107;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero {
        padding: 80px 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 60px 0;
    }
    
    .hero-content {
        margin-bottom: 40px;
    }
    
    .app-mockup {
        max-width: 80%;
        transform: none;
    }
    
    .app-mockup:hover {
        transform: none;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero .subtitle {
        font-size: 1rem;
    }
    
    .btn-ghost, .btn-download {
        padding: 12px 25px;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-brand, .footer-links, .footer-contact {
        text-align: center;
    }
    
    .footer-links ul {
        display: flex;
        flex-direction: column;
        gap: 10px;
        aligh-items: center;
    }

    .footer-links li {
        text-align: center;
    }
    
    .footer-contact p {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .section-divider {
        margin: 50px auto;
        width: 80%;
    }
    
    .stat-item {
        min-width: 120px;
        padding: 20px 10px;
    }
    
    .rating-stars {
        font-size: 1.2rem;
    }
    
    .cta {
        padding: 80px 20px;
    }
    
    .cta h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .main-counter .counter {
        font-size: 2.5rem;
    }
    
    .stat-item .stat-counter {
        font-size: 1.5rem;
    }
}
