/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.5s, visibility 0.5s;
}

.loading.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 48px;
    height: 48px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Global Styles */
:root {
    --primary-color: #CFEBFF;
    --secondary-color: #A0D1FF;
    --text-color: #333;
    --light-gray: #f5f5f5;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

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

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

h1, h2, h3 {
    margin-bottom: 1rem;
    font-weight: 500;
}

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

/* Fullpage Layout */
html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Add scroll padding for fixed header */
}

#fullpage {
    height: 100vh;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
    padding-top: 80px; /* Space for fixed header */
}

.section {
    min-height: 100vh;
    width: 100%;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    position: relative;
    padding: 80px 0;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #333;
    animation: bounce 2s infinite;
    cursor: pointer;
}

.scroll-indicator i {
    font-size: 1.5rem;
    margin-top: 5px;
}

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

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #CFEBFF, #A0D1FF);
    color: #333;
    text-align: center;
    padding: 100px 20px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.tagline {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Header Styles */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px 0;
}

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

.app-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    text-decoration: none;
}

.app-icon {
    width: 36px;
    height: 36px;
    margin-right: 10px;
    border-radius: 8px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 10px; /* Reduced gap for better spacing */
}

.nav-link {
    color: #555;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 12px; /* Added horizontal padding */
    border-radius: 4px;
}

.nav-link:hover {
    color: var(--primary-color);
    background-color: rgba(42, 103, 227, 0.1);
}

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

.main-nav a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.main-nav a:hover:after {
    width: 100%;
}

.download-nav {
    background-color: #2a67e3;
    color: white !important;
    padding: 10px 28px; /* Increased horizontal padding */
    margin-left: 10px; /* Add some space from the last nav item */
    border-radius: 50px;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(42, 103, 227, 0.3);
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    white-space: nowrap; /* Prevent text wrapping */
}

.download-nav:hover {
    background-color: #1a4bb3; /* Slightly darker on hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(26, 75, 179, 0.4);
}

.download-nav:after {
    display: none;
}

/* CTA Button */
.cta-button {
    display: inline-block;
    padding: 14px 32px;
    background-color: white;
    color: #2a67e3; /* Darker blue for better contrast */
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 2px solid #2a67e3; /* Darker blue border */
    text-decoration: none;
    margin: 15px 5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    font-size: 0.95rem;
}

.cta-button:hover {
    background-color: #2a67e3; /* Darker blue on hover */
    color: white;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Feature Sections */
.feature-section {
    padding: 60px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.feature-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}

.feature-text {
    flex: 1;
    padding: 0 40px;
    max-width: 500px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.section.in-view .feature-text {
    opacity: 1;
    transform: translateY(0);
}

.feature-text.right {
    order: 2;
}

.feature-preview {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.section.in-view .feature-preview {
    opacity: 1;
    transform: scale(1);
}

.feature-preview img {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-preview img:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.feature-icon:hover {
    transform: scale(1.1);
}

.feature-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #333;
    position: relative;
    display: inline-block;
}

.feature-section h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.feature-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 30px;
}

/* Alternate background colors for sections */
#feature1, #feature3 {
    background-color: #f9f9f9;
}

#feature2, #feature4 {
    background-color: #ffffff;
}

/* Responsive Design */
@media (max-width: 992px) {
    .feature-content {
        flex-direction: column;
        text-align: center;
        padding: 0 20px;
    }
    
    .feature-text, 
    .feature-preview {
        max-width: 100%;
        padding: 20px 0;
    }
    
    .feature-text.right {
        order: 0;
    }
    
    .feature-section h2:after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .feature-preview img {
        max-height: 50vh;
    }
}

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

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

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

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

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Testimonials Section */
.testimonials {
    padding: 80px 0;
    background-color: #f9f9f9;
}

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

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

.testimonial-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

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

.testimonial-content p {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: #555;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-top: 1.5rem;
}

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

.testimonial-author h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-color);
}

.testimonial-author span {
    font-size: 0.9rem;
    color: #777;
}

/* FAQ Section */
#faq {
    background-color: #f9f9f9;
}

.faq-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    text-align: left;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
}

.faq-question:hover {
    background-color: #f5f5f5;
}

.faq-question i {
    transition: transform 0.3s ease;
    color: var(--primary-color);
    font-size: 0.9rem;
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 1.5rem;
    background-color: #fafafa;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
    margin: 0;
    line-height: 1.7;
    color: #555;
    padding-top: 1rem;
}

.faq-illustration {
    text-align: center;
    padding: 2rem;
}

.faq-illustration i {
    font-size: 5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.faq-illustration p {
    font-size: 1.2rem;
    color: #555;
    line-height: 1.6;
    max-width: 300px;
    margin: 0 auto;
}

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

/* Previews Section */
.previews {
    padding: 80px 0;
    text-align: center;
}

.previews h2 {
    font-size: 2.2rem;
    margin-bottom: 3rem;
}

.screenshots {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}

.screenshot {
    width: 250px;
    text-align: center;
}

.screenshot img {
    width: 100%;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
    transition: transform 0.3s;
}

.screenshot img:hover {
    transform: scale(1.05);
}

/* Download Section */
.download {
    background: linear-gradient(135deg, #CFEBFF, #A0D1FF);
    color: #333;
    text-align: center;
    padding: 80px 20px;
}

.download h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.download p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.play-store-button {
    display: inline-block;
    height: 60px;
    transition: transform 0.3s;
}

.play-store-button:hover {
    transform: scale(1.05);
}

.play-store-button img {
    height: 100%;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: white;
}

.footer-logo p {
    color: #bdc3c7;
    line-height: 1.6;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 500;
}

.footer-column a {
    display: block;
    color: #bdc3c7;
    margin-bottom: 0.8rem;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    margin: 0;
    color: #bdc3c7;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    /* Base Typography */
    html {
        font-size: 14px;
    }
    
    h1 {
        font-size: 2.2rem !important;
        line-height: 1.2;
    }
    
    h2 {
        font-size: 1.8rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    /* Hero Section */
    .hero {
        padding: 80px 15px;
    }
    
    .hero h1 {
        font-size: 2.5rem !important;
        margin-bottom: 1rem;
    }
    
    .tagline {
        font-size: 1.2rem;
        margin-bottom: 2rem;
    }
    
    .cta-button {
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    /* Features */
    .features {
        padding: 60px 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    /* Screenshots */
    .screenshots {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
    
    .screenshot {
        width: 85%;
        max-width: 300px;
    }
    
    /* FAQ */
    .faq {
        padding: 60px 0;
    }
    
    .faq-question {
        padding: 1.25rem 1rem;
        font-size: 1rem;
        text-align: left;
    }
    
    /* Download Section */
    .download {
        padding: 60px 15px;
    }
    
    .play-store-button {
        height: 50px;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-column h4 {
        margin-bottom: 1rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    /* Adjust container padding */
    .container {
        padding: 0 15px;
    }
    
    /* Make sure all clickable elements are touch-friendly */
    a, button, .feature-card, .faq-question {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Prevent horizontal scrolling */
    html, body {
        max-width: 100%;
        overflow-x: hidden;
    }
}
