/* Base Styles */
:root {
    --primary: #4361ee;
    --primary-dark: #3a56d4;
    --secondary: #3f37c9;
    --accent: #4895ef;
    --text: #2b2d42;
    --text-light: #8d99ae;
    --bg: #f8f9fa;
    --white: #ffffff;
    --gray: #e9ecef;
    --dark-gray: #adb5bd;
    --success: #4cc9f0;
    --warning: #f72585;
    --font: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font);
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
}

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

section {
    padding: 80px 0;
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

h1 {
    font-size: 2.8rem;
}

h2 {
    font-size: 2.2rem;
    text-align: center;
}

h3 {
    font-size: 1.5rem;
}

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

.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
    color: var(--text-light);
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: left;
}

.btn i {
    margin-right: 10px;
    font-size: 1.5rem;
}

.btn span {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.btn span strong {
    font-weight: 600;
    font-size: 1.1rem;
}

.btn.app-store {
    background-color: #000;
    color: #fff;
}

.btn.google-play {
    background-color: #fff;
    color: #000;
    border: 1px solid #ddd;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--text);
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text);
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px; /* Reduced slightly for better mobile start */
    background: linear-gradient(135deg, var(--white) 0%, var(--gray) 100%);
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;    /* Centers the container */
    max-width: 1200px; /* Or whatever your site width is */
    padding: 0 20px;   /* Prevents touching screen edges */
}

.hero-content {
    flex: 1;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Ensure the image container doesn't shrink too much */
.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    width: 100%;       /* Allows it to be responsive */
    max-width: 500px;  /* Set this to your preferred "Phone" width */
    height: auto;      /* Maintain aspect ratio */
    object-fit: contain;
}

/* Responsive Fixes */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column; /* Stacks text on top of image */
        text-align: center;
    }

    .hero-content {
        flex: 1;
        max-width: 600px;
        /* Add these three lines */
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin: 0 auto; /* Ensures the 600px box itself is centered */
    }

    .download-buttons {
        display: flex;
        gap: 15px;
        margin-top: 30px;
        justify-content: center; /* Centers the button inside the flex row */
        width: 100%;             /* Ensures it takes full width to allow centering */
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-image img {
            max-width: 280px; /* Sensible size for mobile phones */
    }

    .hero {
            padding: 100px 0 120px; /* Extra bottom padding so it doesn't hit the scroll icon */
    }
}

/* Scroll indicator */
/* Fix for Scroll Indicator Centering */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;          /* These three lines (left, right, width) */
    width: 100%;       /* force the container to span the full width */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 0.9rem;
    cursor: pointer;
    z-index: 10;
}

.scroll-indicator i {
    margin-top: 8px;
    font-size: 1.2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Animation */
.floating {
    animation: floating 3s ease-in-out infinite;
}

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

/* Loading state */
.loading-spinner {
    text-align: center;
    padding: 40px;
}

.spinner {
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: var(--white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 1.8rem;
}

/* ===== Modern Screenshot Gallery ===== */
.screenshots {
    padding: 60px 0;
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
}

.screenshots-container {
    position: relative;
    margin-top: 40px;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    padding: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.screenshot-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: 500px;
    scroll-snap-align: start;
}

.screenshot-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.5s ease;
    cursor: pointer;
}

.screenshot-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.screenshot-item:hover img {
    transform: scale(1.02);
}

.caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 15px;
    text-align: center;
    font-weight: 500;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.screenshot-item:hover .caption {
    transform: translateY(0);
}

/* Navigation arrows */
.screenshot-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.8);
    color: #333;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.screenshot-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.screenshot-prev {
    left: 15px;
}

.screenshot-next {
    right: 15px;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .screenshots-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1200px) {
    .screenshots-grid {
        grid-template-columns: repeat(2, 1fr);
        height: auto;
    }
    
    .screenshot-item {
        height: 350px;
    }
}

@media (max-width: 350px) {
    .screenshots-grid {
        grid-template-columns: 100%;
        grid-auto-flow: column;
        grid-auto-columns: 100%;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none; /* Firefox */
    }
    
    .screenshots-grid::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }
    
    .screenshot-item {
        height: 350px; /* Changed from 350px to match desktop height */
    }
    
    .screenshot-nav {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.show {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 8px;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox.show .lightbox-content {
    transform: scale(1);
}

.close-lightbox {
    position: absolute;
    top: 30px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.close-lightbox:hover {
    transform: rotate(90deg);
}

.lightbox-caption {
    color: white;
    margin-top: 20px;
    text-align: center;
    max-width: 80%;
    font-size: 1.2rem;
}

/* Testimonials */
.testimonials-container {
    position: relative;
    margin-top: 50px;
}

.testimonial-cards {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 20px 0;
    margin: 0 -15px;
}

.testimonial-card {
    flex: 0 0 calc(100% - 60px);
    background: var(--white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    scroll-snap-align: start;
    margin: 0 15px;
}

.stars {
    color: #ffc107;
    margin-bottom: 15px;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 20px;
}

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

.user img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

.user div {
    display: flex;
    flex-direction: column;
}

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

/* Navigation arrows */
.testimonial-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.9);
    color: #333;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.testimonial-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.testimonial-prev {
    left: -20px;
}

.testimonial-next {
    right: -20px;
}

.loading-message {
    text-align: center;
    padding: 40px;
    width: 100%;
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .testimonial-card {
        flex: 0 0 calc(50% - 60px);
    }
}

@media (min-width: 1024px) {
    .testimonial-card {
        flex: 0 0 calc(33.333% - 60px);
    }
}

@media (max-width: 480px) {
    .testimonial-nav {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .testimonial-prev {
        left: -15px;
    }
    
    .testimonial-next {
        right: -15px;
    }
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    text-align: center;
}

.cta h2 {
    color: white;
}

.cta p {
    color: rgba(255,255,255,0.8);
    max-width: 700px;
    margin: 0 auto 30px;
}

/* Footer */
footer {
    background-color: var(--text);
    color: white;
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 25px;
    font-size: 1.2rem;
}

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

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 15px;
}

.footer-col ul li a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: white;
}

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

.social-links a {
    color: white;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
}

.newsletter-form {
    display: flex;
    margin-top: 20px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 8px 0 0 8px;
    font-family: var(--font);
}

.newsletter-form button {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 0 20px;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.newsletter-form button:hover {
    background-color: var(--primary-dark);
}

.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    z-index: 2000;
    overflow-y: auto;
}

.modal-content {
    background-color: var(--white);
    margin: 50px auto;
    max-width: 800px;
    width: 90%;
    border-radius: 12px;
    padding: 30px;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
}

.modal h2 {
    text-align: left;
    margin-bottom: 30px;
}

.modal-body {
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 10px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        margin-bottom: 50px;
        max-width: 100%;
    }
    
    .download-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .download-buttons {
        flex-direction: column;
    }
    
    .btn {
        justify-content: center;
    }
    
    .phone-mockup {
        width: 250px;
        height: 500px;
    }
}