/* Main CSS for Book Cricket Pro Website */

:root {
    --primary-color: #1e88e5;
    --secondary-color: #26a69a;
    --accent-color: #ff6d00;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #fff;
    --bg-light: #f5f7fa;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

html {
    scroll-behavior: smooth;
}

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

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

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

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

a:hover {
    color: var(--accent-color);
}

h1, h2, h3, h4 {
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

/* Header Styles */
header {
    background-color: var(--bg-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1.2rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

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

.app-logo {
    width: 50px;
    height: 50px;
    margin-right: 15px;
    border-radius: 10px;
    object-fit: cover;
}

.logo h1 {
    font-size: 1.5rem;
    margin-bottom: 0;
    color: var(--primary-color);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

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

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

.hero-content {
    flex: 1;
    padding-right: 2rem;
}

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

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-light);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.8rem 1.8rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: all 0.3s;
    display: inline-block;
}

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

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

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

.btn-secondary:hover {
    background-color: var(--bg-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    animation: floatAnimation 4s ease-in-out infinite;
}

.app-mockup {
    position: relative;
    z-index: 1;
}

.phone-frame {
    width: 280px;
    height: 570px;
    background-color: #111;
    border-radius: 40px;
    padding: 10px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #3CA55C, #B5AC49);
    border-radius: 30px;
    overflow: hidden;
    position: relative;
}

.app-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

/* Features Section */
.features {
    padding: 5rem 0;
    background-color: var(--bg-color);
}

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

.features-intro {
    margin-bottom: 3rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem; /* Increased gap from 2rem to 2.5rem */
    margin-bottom: 4rem; /* Added margin-bottom for better separation between sections */
}

.feature-card {
    background-color: var(--bg-light);
    padding: 2.5rem; /* Increased padding from 2rem to 2.5rem */
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s, transform 0.5s;
    height: 100%; /* Ensure all cards have the same height */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

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

/* Audience section styles */
.audience-title {
    margin-top: 1rem;
    margin-bottom: 2rem !important;
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.8rem; /* Increased from default */
    margin-bottom: 4rem; /* Added bottom margin for better separation */
}

.audience-card {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 150px; /* Set minimum height */
}

.audience-card i {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.audience-card p {
    color: var(--text-color);
    line-height: 1.4;
}

/* Features CTA section styling */
.features-cta {
    background-color: var(--bg-light);
    padding: 3rem;
    border-radius: var(--border-radius);
    text-align: center;
    margin-top: 2rem;
}

.features-cta p {
    margin-bottom: 1.2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-text {
    font-style: italic;
    color: var(--primary-color);
    font-size: 1.1rem;
    margin: 1.5rem auto;
}

.cta-join {
    font-weight: 500;
    font-size: 1.1rem;
    margin: 1.5rem auto;
}

.features-cta .btn {
    margin-top: 1.5rem;
}

/* Privacy Policy Section */
.privacy-policy {
    padding: 5rem 0;
    background-color: var(--bg-light);
}

.privacy-policy h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
}

.privacy-policy h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 1rem auto 0;
    border-radius: 2px;
}

.policy-content {
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.policy-content.animated {
    transform: translateY(0);
    opacity: 1;
}

.policy-intro, .policy-highlight, .policy-section {
    margin-bottom: 2rem;
}

.policy-intro {
    color: var(--text-light);
}

.policy-intro p:first-child {
    font-weight: 600;
}

.policy-highlight {
    background-color: rgba(38, 166, 154, 0.1);
    border-left: 4px solid var(--secondary-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    position: relative;
}

.policy-highlight::before {
    content: '"';
    font-size: 5rem;
    position: absolute;
    top: -1rem;
    left: 1rem;
    opacity: 0.1;
    color: var(--secondary-color);
    font-family: Georgia, serif;
}

.policy-content h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 2rem;
    position: relative;
    padding-left: 2rem;
}

.policy-content h3::before {
    font-family: "Font Awesome 5 Free";
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.policy-content h4 {
    font-size: 1.2rem;
    color: var(--text-color);
    margin: 1.5rem 0 1rem;
}

.policy-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.policy-content ul {
    padding-left: 2rem;
    margin-bottom: 1.5rem;
    list-style: none;
}

.policy-content li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 0.5rem;
}

.policy-content li::before {
    content: '•';
    color: var(--primary-color);
    font-weight: bold;
    display: inline-block;
    margin-right: 0.5rem;
}

.policy-section {
    transition: all 0.3s ease;
}

.policy-section:hover {
    transform: translateY(-5px);
}

.policy-section a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 500;
}

.policy-section a:hover {
    color: var(--accent-color);
}

.policy-date {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* Privacy Policy Navigation Styles */
.back-to-summary {
    margin: 1.5rem 0;
    text-align: left;
}

.btn-tertiary {
    background-color: var(--bg-light);
    color: var(--primary-color);
    padding: 0.6rem 1.2rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.btn-tertiary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.full-indicator, .summary-indicator {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.full-indicator {
    background-color: var(--secondary-color);
    color: white;
}

.summary-indicator {
    background-color: var(--accent-color);
    color: white;
}

.full-policy-link {
    margin-top: 2rem;
    padding: 1rem;
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    text-align: center;
}

.full-policy-link a {
    color: var(--primary-color);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.full-policy-link a:hover {
    color: var(--accent-color);
}

.full-policy-link a i {
    transition: transform 0.3s;
}

.full-policy-link a:hover i {
    transform: translateX(4px);
}

.full-policy-link p {
    margin-bottom: 0.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background-color: var(--bg-color);
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.contact-info, .app-download {
    padding: 2rem;
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.contact-email {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 500;
    color: var(--primary-color);
}

.store-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.store-button {
    display: flex;
    flex-direction: column;
    background-color: #000;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    min-width: 150px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.store-button span {
    font-size: 0.8rem;
}

.store-button strong {
    font-size: 1.2rem;
}

.store-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.15);
    background-color: #333;
    color: white;
}

/* Footer */
footer {
    background-color: #202020;
    color: #eee;
    padding: 2rem 0;
}

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

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: #eee;
}

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

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease-in forwards;
}

/* Testimonials Section */
.testimonials {
    padding: 5rem 0;
    background-color: var(--bg-light);
    position: relative;
}

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

.testimonial-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.testimonial-slider {
    overflow: hidden;
    border-radius: var(--border-radius);
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-card {
    min-width: 100%;
    background-color: var(--bg-color);
    padding: 2rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 3px solid var(--primary-color);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.testimonial-name {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
}

.testimonial-role {
    font-size: 0.9rem;
    color: var(--text-light);
}

.testimonial-nav {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    gap: 1rem;
}

.testimonial-nav button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.testimonial-nav button:hover {
    background-color: #1565c0;
    transform: scale(1.1);
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
    gap: 0.5rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: var(--primary-color);
}

/* FAQ Section */
.faq {
    padding: 5rem 0;
    background-color: var(--bg-color);
}

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

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

.faq-item {
    margin-bottom: 1.5rem;
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
}

.faq-question:hover {
    background-color: rgba(30, 136, 229, 0.1);
}

.faq-toggle {
    font-size: 1.2rem;
    transition: transform 0.3s;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 1.5rem;
}

.faq-answer p {
    padding-bottom: 1.5rem;
}

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

.faq-item.active .faq-answer {
    max-height: 300px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 3rem;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .policy-content {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    
    .logo {
        margin-bottom: 1rem;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 0 0.75rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .phone-frame {
        width: 220px;
        height: 450px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .phone-frame {
        width: 180px;
        height: 360px;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-card {
        padding: 1.5rem 1rem;
    }
    
    .testimonial-text {
        font-size: 0.95rem;
    }
    
    .faq-question {
        padding: 1.2rem;
        font-size: 0.95rem;
    }
}