/* Global Styles */
:root {
    --primary-color: #5b6ef7;
    --secondary-color: #ff7b54;
    --accent-color-1: #ffb26b;
    --accent-color-2: #7ed957;
    --accent-color-3: #dd52f5;
    --text-color: #333333;
    --light-text: #ffffff;
    --background-color: #f9f9ff;
    --card-background: #ffffff;
    --shadow: 0 8px 20px rgba(91, 110, 247, 0.15);
    --border-radius: 20px;
}

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

body {
    font-family: 'Nunito', sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Baloo 2', cursive;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

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

section {
    padding: 80px 0;
    position: relative;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

ul {
    list-style-position: inside;
    margin-left: 1rem;
}

/* Header Styles */
header {
    background-color: var(--card-background);
    box-shadow: var(--shadow);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-container {
    display: flex;
    align-items: center;
}

.app-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    margin-right: 15px;
}

header h1 {
    font-size: 1.8rem;
    margin-bottom: 0;
}

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

/* Button Styles */
.download-btn {
    background-color: var(--secondary-color);
    color: var(--light-text);
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1rem;
    display: inline-block;
    box-shadow: 0 5px 15px rgba(255, 123, 84, 0.3);
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 123, 84, 0.4);
}

/* Hero Section */
.hero {
    padding: 100px 0 120px;
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.hero-content {
    width: 50%;
}

.hero-image {
    width: 45%;
    position: relative;
}

.app-preview {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.hero h2 {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.shape {
    position: absolute;
    border-radius: 50%;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background-color: rgba(91, 110, 247, 0.1);
    top: -150px;
    right: -100px;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background-color: rgba(255, 178, 107, 0.1);
    bottom: -100px;
    left: 10%;
}

.shape-3 {
    width: 150px;
    height: 150px;
    background-color: rgba(221, 82, 245, 0.1);
    top: 30%;
    left: 45%;
}

/* Features Section */
.features {
    background-color: var(--card-background);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    margin-top: -50px;
    padding-top: 100px;
}

.features h2, .benefits h2, .testimonials h2, .faq h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

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

.feature-card {
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: 40px;
    background-position: center;
    background-repeat: no-repeat;
}

.visual-icon {
    background-color: rgba(91, 110, 247, 0.15);
    background-image: url('../images/visual-icon.svg');
}

.voice-icon {
    background-color: rgba(255, 123, 84, 0.15);
    background-image: url('../images/voice-icon.svg');
}

.safety-icon {
    background-color: rgba(126, 217, 87, 0.15);
    background-image: url('../images/safety-icon.svg');
}

.interactive-icon {
    background-color: rgba(255, 178, 107, 0.15);
    background-image: url('../images/interactive-icon.svg');
}

.tracking-icon {
    background-color: rgba(221, 82, 245, 0.15);
    background-image: url('../images/tracking-icon.svg');
}

.history-icon {
    background-color: rgba(91, 110, 247, 0.15);
    background-image: url('../images/history-icon.svg');
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* Benefits Section */
.benefits {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color-3) 100%);
    color: var(--light-text);
    padding: 80px 0;
}

.benefits h2 {
    color: var(--light-text);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.benefit-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 25px;
    display: flex;
    align-items: center;
    backdrop-filter: blur(5px);
}

.benefit-icon {
    min-width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: 30px;
    background-position: center;
    background-repeat: no-repeat;
}

.ad-free-icon, .text-voice-icon, .trusted-icon, .curiosity-icon {
    background-image: url('../images/benefit-icon.svg');
}

/* Testimonials Section */
.testimonials {
    background-color: var(--background-color);
    padding: 80px 0;
}

.testimonial-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 30px;
    padding: 20px 0;
    scrollbar-width: none; /* Firefox */
}

.testimonial-slider::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.testimonial {
    flex: 0 0 auto;
    width: 100%;
    max-width: 500px;
    scroll-snap-align: start;
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
}

.quote {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 15px;
}

.author {
    font-weight: 700;
    color: var(--secondary-color);
}

/* FAQ Section */
.faq {
    background-color: var(--card-background);
    padding: 80px 0;
}

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

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

.question {
    padding: 20px;
    background-color: var(--background-color);
    font-size: 1.2rem;
    cursor: pointer;
    position: relative;
    margin-bottom: 0;
}

.question::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.faq-item.active .question::after {
    transform: translateY(-50%) rotate(45deg);
}

.answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: var(--card-background);
}

.faq-item.active .answer {
    padding: 20px;
    max-height: 1000px; /* Arbitrary large value */
}

.policy-link {
    text-decoration: underline;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--accent-color-1) 0%, var(--secondary-color) 100%);
    color: var(--light-text);
    text-align: center;
    padding: 80px 0;
}

.cta-section h2 {
    color: var(--light-text);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta-section p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
}

.cta-section .download-btn {
    background-color: var(--light-text);
    color: var(--secondary-color);
    font-size: 1.2rem;
    padding: 15px 40px;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
}

.footer-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    margin-right: 15px;
}

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

.footer-link {
    color: var(--light-text);
    transition: opacity 0.3s ease;
}

.footer-link:hover {
    opacity: 0.8;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-content, .hero-image {
        width: 100%;
    }
    
    .hero .container {
        flex-direction: column;
    }
    
    .hero-content {
        margin-bottom: 50px;
        text-align: center;
    }
    
    .hero h2 {
        font-size: 2.3rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    .hero {
        padding: 80px 0 100px;
    }
    
    header h1 {
        font-size: 1.5rem;
    }
    
    .app-icon {
        width: 40px;
        height: 40px;
    }
    
    .features h2, .benefits h2, .testimonials h2, .faq h2, .cta-section h2 {
        font-size: 2rem;
    }
    
    .testimonial {
        max-width: 85%;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .feature-card, .benefit-item {
        padding: 20px;
    }
    
    header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .cta-header {
        margin-top: 10px;
    }
    
    .download-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}
