/* Import Font (Opsional, jika ingin menggunakan Google Fonts) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* === CSS Variables === */
:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --text-dark: #18191F;
    --text-medium: #4D4D4D;
    --text-light: #717171;
    --bg-light: #F5F7FA;
    --bg-dark: #2C2C2C;
    --white-color: #FFFFFF;
    --border-color: #E0E0E0;
    --shadow-light: rgba(102, 126, 234, 0.3);
    --shadow-dark: rgba(0, 0, 0, 0.1);
    --border-radius-sm: 6px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
}

/* === General Styles === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white-color);
    overflow-x: hidden;
}

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

section {
    padding: 80px 0;
}

h1, h2, h3 {
    line-height: 1.3;
    font-weight: 600;
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.25rem);
    color: var(--text-medium);
    margin-bottom: 20px;
    text-align: center;
}

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

/* === Header & Navigation === */
.header {
    background: var(--bg-light);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px var(--shadow-dark);
}

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

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

.logo-img {
    width: 45px;
    height: 45px;
    background: var(--gradient);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
    font-weight: bold;
    font-size: 20px;
}

.logo-text {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 400;
    transition: color 0.3s ease;
}

.nav-menu a:hover, .nav-menu a.active {
    color: var(--primary-color);
    font-weight: 500;
}

.nav-buttons {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
}

.btn-secondary {
    background: var(--white-color);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: #f0f0f0;
}

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--shadow-light);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    z-index: 1001; /* Must be above nav-menu */
    color: var(--text-dark);
}
.mobile-menu-btn .fa-times {
    display: none;
}
.mobile-menu-btn.active .fa-bars {
    display: none;
}
.mobile-menu-btn.active .fa-times {
    display: block;
}


/* === Hero Section === */
.hero {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
    overflow: hidden;
}

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

.hero-text h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 20px;
}
.hero-text h1 .brand { color: var(--text-dark); }
.hero-text h1 .tagline { color: var(--text-medium); }
.hero-text h1 .subtitle { color: var(--text-light); font-weight: 400;}
.hero-text p {
    font-size: 1.1rem;
    max-width: 500px;
    margin-bottom: 30px;
}
.btn-hero { padding: 15px 40px; font-size: 16px; }

.hero-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 20px 40px var(--shadow-light);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* === Trust Section === */
.trust-section { background-color: var(--white-color); }
.trust-section p {
    max-width: 800px;
    margin: 0 auto 40px auto;
    text-align: center;
}
.brand-logos {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    align-items: center;
}
.brand-logo img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}
.brand-logo img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: translateY(-5px);
}

/* === Features Section === */
.features-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    align-items: center;
}
.features-image img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 20px 40px var(--shadow-dark);
}
.features-text h2 { text-align: left; }
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}
.feature-item { text-align: left; }
.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--white-color);
    font-size: 24px;
    box-shadow: 0 10px 30px var(--shadow-light);
}
.feature-item h3 {
    font-size: 1.25rem;
    color: var(--text-medium);
    margin-bottom: 10px;
}

/* === Stats Section === */
.stats { background: var(--bg-light); }
.stats-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.stats-text h2 { text-align: left; }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}
.stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
}
.stat-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient);
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
    font-size: 20px;
    flex-shrink: 0;
}
.stat-content h3 {
    font-size: 1.75rem;
    color: var(--text-medium);
    margin-bottom: 0;
}
.stat-content p { margin-bottom: 0; }

/* === CTA Section === */
.cta {
    background: var(--gradient);
    color: var(--white-color);
    text-align: center;
}
.cta h2 {
    color: var(--white-color);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.btn-cta {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white-color);
    padding: 15px 40px;
    font-size: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}
.btn-cta:hover {
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px var(--shadow-dark);
}

/* === Footer === */
.footer {
    background: var(--bg-dark);
    padding: 60px 0 30px;
    color: var(--white-color);
}
.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
}
.footer-brand { display: flex; flex-direction: column; gap: 20px; }
.footer-info p { color: rgba(255, 255, 255, 0.7); font-size: 14px; margin-bottom: 5px; }
.social-links { display: flex; gap: 15px; }
.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
    text-decoration: none;
    transition: all 0.3s ease;
}
.social-link:hover { background: var(--primary-color); transform: translateY(-3px); }
.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}
.footer-column h3 { font-size: 18px; margin-bottom: 20px; color: var(--white-color); }
.footer-column ul { list-style: none; }
.footer-column ul li { margin-bottom: 10px; }
.footer-column ul li a { color: rgba(255, 255, 255, 0.7); text-decoration: none; font-size: 14px; transition: color 0.3s ease; }
.footer-column ul li a:hover { color: var(--white-color); }
.newsletter { display: flex; }
.newsletter-input {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: var(--border-radius-sm) 0 0 var(--border-radius-sm);
    background: rgba(255, 255, 255, 0.1);
    color: var(--white-color);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.newsletter-input::placeholder { color: rgba(255, 255, 255, 0.5); }
.btn-newsletter {
    border: none;
    background: var(--primary-color);
    color: var(--white-color);
    padding: 0 15px;
    cursor: pointer;
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
    transition: background-color 0.3s ease;
}
.btn-newsletter:hover { background: var(--secondary-color); }

/* === Animation on Scroll === */
.feature-item, .stat-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.feature-item.visible, .stat-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === Responsive Media Queries === */
@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 60%;
        height: 100vh;
        background-color: var(--bg-light);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 50px;
        transition: right 0.5s ease-in-out;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }
    .nav-menu.active {
        right: 0;
    }
    .nav-menu a {
        font-size: 1.2rem;
    }
    .mobile-menu-btn {
        display: block;
    }
    .nav-buttons {
        display: none; /* Hide buttons on mobile nav bar, can be moved into menu if needed */
    }
    .features-content, .stats-content { grid-template-columns: 1fr; }
    .features-image, .stats-text { order: -1; } /* Image/text appears on top on mobile */
    .features-text h2, .stats-text h2 { text-align: center; margin-top: 40px; }
    .features-grid { text-align: center; }
    .feature-item { text-align: center; }
    .feature-icon { margin-left: auto; margin-right: auto; }
}

@media (max-width: 768px) {
    section { padding: 60px 0; }
    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .hero-text p { margin-left: auto; margin-right: auto; }
    .hero-image { margin-top: 40px; }
    .hero-image img { max-width: 350px; margin: 0 auto; }
    .stats-content, .footer-content { text-align: center; }
    .stats-grid { grid-template-columns: 1fr; }
    .stat-item { justify-content: center; }
    .footer-content { grid-template-columns: 1fr; }
    .footer-brand { align-items: center; }
    .footer-links { grid-template-columns: 1fr; gap: 30px; margin-top: 30px; }
    .newsletter { justify-content: center; }
}

@media (max-width: 480px) {
    .container { padding: 0 15px; }
    .features-grid { grid-template-columns: 1fr; }
    .footer-links { grid-template-columns: 1fr; }
    .nav-menu { width: 80%; }
}


/* HALAMAN BRAND DAN CREATOR */

/* === General Page Styles === */
.page-content {
    background-color: #f9f9f9;
    padding: 60px 0;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-header h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
}

.page-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 10px auto 0;
}

/* === Filter Bar === */
.filter-bar {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-bar input[type="text"] {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 16px;
    width: 300px;
    transition: border-color 0.3s ease;
}

.filter-bar input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-color);
}

.filter-bar select {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 16px;
    background-color: white;
}

/* === Card Grid === */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

/* === Brand Card === */
.brand-card {
    background: var(--white-color);
    border-radius: var(--border-radius-md);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.brand-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.card-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.card-category {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 15px;
}

.card-description {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 20px;
    flex-grow: 1;
}

.card-body .btn {
    margin-top: auto;
}

/* === Creator Card === */
.creator-card {
    background: var(--white-color);
    border-radius: var(--border-radius-md);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    padding: 30px 20px;
}

.creator-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.creator-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px;
    border: 3px solid var(--primary-color);
}

.creator-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 15px 0;
    color: var(--text-medium);
}

.creator-stats span {
    font-size: 0.9rem;
    font-weight: 500;
}
.creator-stats span i {
    margin-right: 5px;
    color: var(--secondary-color);
}

/* === Responsive === */
@media (max-width: 768px) {
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .filter-bar input[type="text"],
    .filter-bar select {
        width: 100%;
    }
}

/* AKHIR HALAMAN BRAND DAN CREATOR */


/* HALAMAN LOGIN REGISTER */

/* === Authentication Page Styles (Login & Register) === */

.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: var(--bg-light);
    padding: 20px;
}

.auth-card {
    background: var(--white-color);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 450px;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header .logo {
    justify-content: center;
    margin-bottom: 20px;
}

.auth-header h2 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

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

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    font-weight: 500;
    color: var(--text-medium);
    margin-bottom: 8px;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--shadow-light);
}

.form-options {
    text-align: right;
    margin-bottom: 20px;
}

.form-options a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
}

.auth-btn {
    width: 100%;
    padding: 15px;
    font-size: 1rem;
    font-weight: 600;
}

.auth-footer {
    text-align: center;
    margin-top: 30px;
    color: var(--text-medium);
}

.auth-footer a {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
}

/* === Role Selector (Register Page) === */

.role-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.role-selector input[type="radio"] {
    display: none; /* Sembunyikan radio button asli */
}

.role-selector .role-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.role-selector .role-option i {
    font-size: 2rem;
    color: var(--text-light);
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.role-selector .role-option span {
    font-weight: 600;
    color: var(--text-medium);
    transition: color 0.3s ease;
}

.role-selector input[type="radio"]:checked + .role-option {
    background-color: #f0f3ff;
    border-color: var(--primary-color);
}

.role-selector input[type="radio"]:checked + .role-option i,
.role-selector input[type="radio"]:checked + .role-option span {
    color: var(--primary-color);
}

/* AKHIR HALAMAN LOGIN REG */

/* HALAMAN TESTI */
/* === Testimonial Page Styles === */

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

.testimonial-card {
    background: var(--white-color);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.07);
    display: flex;
    flex-direction: column;
    border-top: 4px solid var(--primary-color);
}

.star-rating {
    margin-bottom: 15px;
    color: #FFC107; /* Warna bintang kuning */
    font-size: 1.1rem;
}

.testimonial-card blockquote {
    font-size: 1.1rem;
    color: var(--text-medium);
    line-height: 1.7;
    margin: 0 0 25px 0;
    font-style: italic;
    flex-grow: 1; /* Membuat teks mengisi ruang yang tersedia */
    border-left: 3px solid var(--border-color);
    padding-left: 15px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: auto; /* Mendorong author ke bagian bawah kartu */
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info .author-name {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 600;
}

.author-info .author-role {
    margin: 0;
    color: var(--text-light);
    font-size: 0.9rem;
}
/* AKHIR HALAMAN TESTI */

/* HALAMAN FAQ */

/* === FAQ Page Styles === */

.faq-section .page-header {
    margin-bottom: 50px;
}

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

.faq-item {
    border-bottom: 1px solid var(--border-color);
}
.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    cursor: pointer;
    text-align: left;
}

.faq-question span {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.faq-question .fa-chevron-down {
    font-size: 1rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.faq-answer p {
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
    padding: 0 10px 20px 10px;
}

/* === Active State (When FAQ is open) === */

.faq-item.active .faq-question span {
    color: var(--primary-color);
}

.faq-item.active .faq-question .fa-chevron-down {
    transform: rotate(180deg);
}

.faq-item.active .faq-answer {
    /* Atur max-height lebih besar dari konten agar transisi mulus */
    max-height: 300px; 
    padding: 0 10px 20px 10px;
}

/* AKHIR HALAMAN FAQ */