/* Modern Landing Page CSS */

:root {
    --primary-color: #4361ee;
    --secondary-color: #3f37c9;
    --accent-color: #f72585;
    --success-color: #4cc9f0;
    --text-dark: #2b2d42;
    --text-light: #8d99ae;
    --white: #ffffff;
    --light-bg: #f8f9fa;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --hover-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

body {
    font-family: 'Kanit', sans-serif;
    color: var(--text-dark);
    background-color: #fcfcfc;
}

/* --- Hero Section --- */
.hero-modern {
    position: relative;
    padding: 140px 0 120px;
    /* Vibrant Royal Blue to Deep Purple Gradient */
    background: linear-gradient(135deg, #2b32b2 0%, #1488cc 100%);
    background: linear-gradient(100deg, #4b36d1 0%, #2955d9 100%);
    color: var(--white);
    overflow: hidden;
}

.hero-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Subtle geometric pattern */
    background-image: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 40%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 800;
    /* Extra bold */
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    margin-bottom: 3rem;
    opacity: 0.95;
    max-width: 90%;
    line-height: 1.6;
}

.hero-img-wrapper {
    position: relative;
    z-index: 1;
    animation: float 6s ease-in-out infinite;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 25px;
    backdrop-filter: blur(5px);
}

.hero-img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* --- Buttons --- */
.btn-app {
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: capitalize;
    /* Cleaner look */
    letter-spacing: 0.5px;
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border: none;
}

.btn-app-primary {
    /* Pink/Red Gradient */
    background: linear-gradient(45deg, #ff416c 0%, #ff4b2b 100%);
    color: var(--white);
}

.btn-app-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px -5px rgba(255, 75, 43, 0.5);
    color: var(--white);
    filter: brightness(110%);
}

.btn-app-secondary {
    /* Glassmorphism */
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
}

.btn-app-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    color: var(--white);
    transform: translateY(-4px);
    border-color: var(--white);
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.2);
}

/* --- Features Section --- */
.features-section {
    padding: 80px 0;
    position: relative;
    background: var(--white);
}

.feature-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
    border-color: transparent;
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: rgba(67, 97, 238, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: var(--primary-color);
    font-size: 2rem;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    background: var(--primary-color);
    color: var(--white);
    transform: rotateY(180deg);
}

/* --- Stats Counter --- */
.stats-section {
    padding: 80px 0;
    /* Continuation of Blue Theme */
    background: #3a5bf0;
    /* Fallback */
    background: linear-gradient(100deg, #4458dc 0%, #3a5bf0 100%);
    color: var(--white);
    text-align: center;
    position: relative;
}

.stat-item h3 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 5px;
    line-height: 1;
}

.stat-item p {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
}

/* --- Product Cards (App Style) --- */
.section-title-modern {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title-modern h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.section-title-modern span {
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    margin: 0 auto;
    border-radius: 2px;
}

.product-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    border: none;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 10;
}

.badge-free {
    background: var(--success-color);
    color: var(--text-dark);
}

.badge-premium {
    background: var(--accent-color);
    color: var(--white);
}

.product-img {
    height: 200px;
    object-fit: cover;
    width: 100%;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img {
    transform: scale(1.05);
}

.product-body {
    padding: 20px;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.product-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* --- Pricing Section --- */
.pricing-section {
    padding: 80px 0;
    background: var(--light-bg);
}

.pricing-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.pricing-card.popular {
    border-color: var(--primary-color);
    transform: scale(1.05);
    z-index: 2;
}

.pricing-card:hover {
    transform: translateY(-10px);
}

.popular-tag {
    position: absolute;
    top: 20px;
    right: -30px;
    background: var(--accent-color);
    color: var(--white);
    padding: 5px 35px;
    transform: rotate(45deg);
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.pricing-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.pricing-price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.pricing-price span {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 400;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
    text-align: left;
}

.pricing-features li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    color: var(--text-dark);
}

.pricing-features li i {
    color: var(--success-color);
    margin-right: 10px;
}

/* --- Testimonials --- */
.testimonials-section {
    padding: 80px 0;
    background: var(--white);
}

.testimonial-card {
    background: var(--light-bg);
    padding: 30px;
    border-radius: 15px;
    margin: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 20px;
    object-fit: cover;
    border: 3px solid var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.quote-icon {
    font-size: 2rem;
    color: var(--primary-color);
    opacity: 0.2;
    margin-bottom: 15px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .heroes-modern {
        padding: 80px 0 60px;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-img-wrapper {
        margin-top: 40px;
    }

    .pricing-card.popular {
        transform: scale(1);
        margin: 20px 0;
    }

    .product-actions {
        grid-template-columns: 1fr;
    }

    .stat-item {
        margin-bottom: 30px;
    }
}

/* --- Mobile Bottom Navigation --- */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 10px 0;
    justify-content: space-around;
    align-items: center;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.mobile-nav-item {
    text-align: center;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.75rem;
    transition: all 0.3s ease;
    flex: 1;
}

.mobile-nav-item i {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 5px;
}

.mobile-nav-item.active,
.mobile-nav-item:hover {
    color: var(--primary-color);
}

.mobile-nav-item.active i {
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
    }

    body {
        padding-bottom: 80px;
        /* Space for nav */
    }
}

/* --- FAQ Accordion --- */
.faq-section {
    padding: 80px 0;
    background: var(--white);
}

.accordion-modern .card {
    border: none;
    background: var(--light-bg);
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: none;
}

.accordion-modern .card-header {
    background: none;
    border-bottom: none;
    padding: 0;
}

.accordion-modern .btn-link {
    display: block;
    width: 100%;
    text-align: left;
    padding: 20px;
    color: var(--text-dark);
    font-weight: 600;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
}

.accordion-modern .btn-link:hover {
    color: var(--primary-color);
}

.accordion-modern .btn-link::after {
    content: '\f107';
    /* FontAwesome down arrow */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    right: 20px;
    transition: transform 0.3s ease;
}

.accordion-modern .btn-link[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

.accordion-modern .card-body {
    padding: 0 20px 20px;
    color: var(--text-light);
    line-height: 1.6;
}

/* --- Cookie Consent --- */
.cookie-consent {
    position: fixed;
    bottom: -100px;
    /* Hidden initially */
    left: 20px;
    right: 20px;
    background: var(--text-dark);
    color: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: bottom 0.5s ease;
    max-width: 600px;
    margin: 0 auto 90px;
    /* Above mobile nav */
}

.cookie-consent.show {
    bottom: 20px;
}

@media (max-width: 768px) {
    .cookie-consent {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        bottom: -200px;
    }

    .cookie-consent.show {
        bottom: 90px;
        /* Above mobile nav */
    }
}