/*
Theme Name: FintechBali
Theme URI: https://balicash.money/
Author: SeeCreative
Author URI: https://seecreative.com
Description: A modern fintech WordPress theme inspired by BaliCASH. Features gradient hero section, QRIS payment focus, comparison tables, FAQ accordion, and responsive design.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fintechbali
Tags: fintech, digital-payment, modern, responsive, clean, blue
*/

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --secondary-color: #06b6d4;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --dark-bg: #0f172a;
    --light-bg: #f8fafc;
    --white: #ffffff;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --border-color: #e2e8f0;
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
    --gradient-dark: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s ease;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

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

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

.section {
    padding: 80px 0;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

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

.btn-white:hover {
    background: var(--light-bg);
}

.btn-large {
    padding: 18px 40px;
    font-size: 18px;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 900;
    color: var(--primary-color);
}

.site-logo span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.main-navigation ul {
    display: flex;
    gap: 30px;
}

.main-navigation a {
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
}

.main-navigation a:hover,
.main-navigation a.current {
    color: var(--primary-color);
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
}

.main-navigation a:hover::after,
.main-navigation a.current::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-primary);
    overflow: hidden;
    padding-top: 100px;
}

.hero-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    color: var(--white);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
}

.hero-badge i {
    color: var(--accent-color);
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.1;
}

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

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    opacity: 0.9;
    margin-bottom: 30px;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.hero-feature i {
    color: var(--success-color);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.hero-image {
    position: relative;
}

.hero-image img {
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.hero-float-card {
    position: absolute;
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 15px 20px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 15px;
    animation: float 3s ease-in-out infinite;
}

.hero-float-card.top-left {
    top: 10%;
    left: -30px;
}

.hero-float-card.bottom-right {
    bottom: 10%;
    right: -30px;
    animation-delay: 1.5s;
}

.hero-float-card-icon {
    width: 45px;
    height: 45px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 18px;
}

.hero-float-card-content span:first-child {
    font-size: 12px;
    color: var(--text-light);
}

.hero-float-card-content span:last-child {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
}

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

/* ============================================
   FEATURES SECTION
   ============================================ */
.features-section {
    background: var(--light-bg);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 15px;
}

.section-title {
    color: var(--text-dark);
    margin-bottom: 15px;
}

.section-description {
    font-size: 1.1rem;
}

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

.feature-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--white);
    margin-bottom: 20px;
}

.feature-card h3 {
    color: var(--text-dark);
    margin-bottom: 10px;
}

/* ============================================
   CHECKLIST FEATURES
   ============================================ */
.checklist-section {
    background: var(--white);
}

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

.checklist-items {
    display: grid;
    gap: 20px;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: var(--light-bg);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.checklist-item:hover {
    background: rgba(37, 99, 235, 0.05);
    transform: translateX(5px);
}

.checklist-item i {
    width: 24px;
    height: 24px;
    background: var(--success-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 12px;
    flex-shrink: 0;
}

.checklist-item span {
    font-weight: 500;
    color: var(--text-dark);
}

.checklist-note {
    margin-top: 20px;
    padding: 15px;
    background: rgba(245, 158, 11, 0.1);
    border-left: 4px solid var(--accent-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-dark);
}

/* ============================================
   CURRENCY CONVERTER
   ============================================ */
.converter-section {
    background: var(--dark-bg);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.converter-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(37, 99, 235, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.converter-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.converter-content h2 {
    color: var(--white);
}

.converter-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-lg);
}

.converter-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.converter-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.converter-form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.converter-input-group {
    display: flex;
    gap: 10px;
}

.converter-input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-family: inherit;
    transition: var(--transition);
}

.converter-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.converter-select {
    padding: 15px 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-family: inherit;
    background: var(--white);
    cursor: pointer;
    min-width: 100px;
}

.converter-rate {
    text-align: center;
    padding: 15px;
    background: var(--light-bg);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-light);
}

.converter-rate strong {
    color: var(--primary-color);
    font-size: 18px;
}

.converter-result {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
    color: var(--white);
}

.converter-result-amount {
    font-size: 28px;
    font-weight: 700;
}

.converter-result-currency {
    font-size: 14px;
    opacity: 0.9;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials-section {
    background: var(--light-bg);
}

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

.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.testimonial-rating {
    display: flex;
    gap: 5px;
    margin-bottom: 15px;
}

.testimonial-rating i {
    color: var(--accent-color);
    font-size: 18px;
}

.testimonial-text {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

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

.testimonial-author-info h4 {
    margin-bottom: 2px;
}

.testimonial-author-info span {
    font-size: 14px;
    color: var(--text-light);
}

/* ============================================
   COMPARISON TABLE
   ============================================ */
.comparison-section {
    background: var(--white);
}

.comparison-table-wrapper {
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.comparison-table th,
.comparison-table td {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
    background: var(--dark-bg);
    color: var(--white);
    font-weight: 600;
}

.comparison-table th:first-child {
    text-align: left;
    width: 200px;
}

.comparison-table th.highlight {
    background: var(--gradient-primary);
    position: relative;
}

.comparison-table th.highlight::before {
    content: 'Best Choice';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 15px;
    background: var(--accent-color);
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
}

.comparison-table td:first-child {
    text-align: left;
    font-weight: 600;
    color: var(--text-dark);
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tr:hover td {
    background: rgba(37, 99, 235, 0.03);
}

.comparison-icon {
    font-size: 24px;
}

.comparison-icon.check {
    color: var(--success-color);
}

.comparison-icon.cross {
    color: #ef4444;
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-section {
    background: var(--light-bg);
}

.faq-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 40px;
}

.faq-category-btn {
    padding: 12px 24px;
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.faq-category-btn:hover,
.faq-category-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

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

.faq-item {
    background: var(--white);
    border-radius: var(--radius-sm);
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.faq-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    transition: var(--transition);
}

.faq-item-header:hover {
    background: rgba(37, 99, 235, 0.03);
}

.faq-item-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.faq-item-toggle {
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.faq-item.active .faq-item-toggle {
    transform: rotate(180deg);
}

.faq-item-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-item-content {
    max-height: 500px;
}

.faq-item-content p {
    padding: 0 25px 20px;
    margin: 0;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    background: var(--gradient-primary);
    color: var(--white);
    text-align: center;
}

.cta-section h2 {
    color: var(--white);
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--dark-bg);
    color: var(--white);
    padding-top: 60px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .footer-logo {
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 15px;
    display: inline-block;
}

.footer-brand p {
    color: rgba(255,255,255,0.7);
}

.footer-widget h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
}

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

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.footer-bottom p {
    color: rgba(255,255,255,0.6);
    margin: 0;
    font-size: 14px;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
}

.footer-bottom-links a:hover {
    color: var(--white);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-buttons,
    .hero-features {
        justify-content: center;
    }

    .hero-float-card {
        display: none;
    }

    .checklist-grid,
    .converter-inner {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .main-navigation ul {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .main-navigation.active ul {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 20px;
        box-shadow: var(--shadow-lg);
    }

    .header-actions {
        display: none;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 50px 0;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .comparison-table {
        font-size: 14px;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 15px 10px;
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }

    .btn-large {
        padding: 14px 28px;
        font-size: 16px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .converter-input-group {
        flex-direction: column;
    }

    .converter-select {
        width: 100%;
    }
}
