/* Base Styles and Reset */
:root {
    --primary-color: #4F46E5;
    --primary-hover: #4338CA;
    --secondary-color: #10B981;
    --text-dark: #1F2937;
    --text-light: #6B7280;
    --text-white: #FFFFFF;
    --bg-light: #F9FAFB;
    --bg-white: #FFFFFF;
    --bg-dark: #111827;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --rounded-sm: 0.125rem;
    --rounded: 0.25rem;
    --rounded-md: 0.375rem;
    --rounded-lg: 0.5rem;
    --rounded-xl: 1rem;
    --rounded-full: 9999px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease, background-color 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

section {
    padding: 5rem 0;
}

button {
    font-family: 'Inter', sans-serif;
    border: none;
    cursor: pointer;
    background: none;
}

/* Header and Navigation */
header {
    background-color: var(--bg-white);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
}

nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
}

.logo img {
    height: 2.5rem;
    width: 2.5rem;
    object-fit: cover;
    border-radius: var(--rounded);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-dark);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.download-btn {
    background-color: var(--primary-color);
    color: var(--text-white) !important;
    padding: 0.5rem 1.25rem;
    border-radius: var(--rounded-full);
    font-weight: 600;
}

.download-btn:hover {
    background-color: var(--primary-hover);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--bg-white);
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 5rem 2rem 2rem;
        z-index: 99;
        box-shadow: var(--shadow-lg);
        transition: right 0.3s ease;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .menu-toggle.active {
        position: fixed;
        right: 1.5rem;
        z-index: 100;
    }
    
    .nav-links a {
        margin-bottom: 1.5rem;
    }
}

/* Hero Section */
.hero {
    padding: 6rem 0;
    background: linear-gradient(135deg, #F9FAFB 0%, #EEF2FF 100%);
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.hero-content {
    flex: 1;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-content.animated {
    opacity: 1;
    transform: translateY(0);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    position: relative;
    padding: 1rem;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 320px;
    height: 650px;
    background: var(--bg-light);
    border-radius: 2rem;
    box-shadow: var(--shadow-lg);
    z-index: 1;
}

.device {
    position: relative;
    width: 280px;
    height: 600px;
    object-fit: cover;
    border-radius: 1rem;
    z-index: 2;
    box-shadow: none;
}

.hero-image.animated {
    opacity: 1;
    transform: translateY(0);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    line-height: 1.1;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    max-width: 36rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
}

.app-store, .play-store {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--rounded);
    background-color: var(--bg-dark);
    color: var(--text-white);
    transition: transform 0.3s ease;
}

.app-store:hover, .play-store:hover {
    transform: translateY(-3px);
}

.app-store i, .play-store i {
    font-size: 1.75rem;
    margin-right: 0.75rem;
}

.app-store span, .play-store span {
    display: flex;
    flex-direction: column;
}

.app-store small, .play-store small {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* Features Section */
.features {
    background-color: var(--bg-white);
    text-align: center;
}

.features h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
}

.feature-card {
    padding: 2rem;
    background-color: var(--bg-light);
    border-radius: var(--rounded-lg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s ease;
}

.feature-card.animated {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    background-color: rgba(79, 70, 229, 0.1);
    height: 4rem;
    width: 4rem;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.5rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-light);
}

/* Screenshots Section */
.screenshots {
    background-color: var(--bg-light);
    text-align: center;
    padding: 5rem 0;
    overflow: hidden;
}

.screenshots h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.carousel {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

.screenshots-wrapper {
    display: flex;
    gap: 2rem;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    padding: 2rem 1rem;
    margin: 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.screenshots-wrapper::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.screenshot {
    flex: 0 0 300px;
    scroll-snap-align: center;
    position: relative;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

.screenshot:hover {
    transform: scale(1.02);
}

.screenshot::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 320px;
    height: 650px;
    background: var(--bg-light);
    border-radius: 2rem;
    box-shadow: var(--shadow-lg);
    z-index: 1;
}

.screenshot img {
    position: relative;
    width: 280px;
    height: 600px;
    object-fit: cover;
    border-radius: 1rem;
    z-index: 2;
    margin: 25px auto;
}

.screenshot p {
    margin-top: 1.5rem;
    color: var(--text-light);
    font-size: 0.875rem;
    max-width: 280px;
}

.carousel-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    padding: 0 1rem;
    pointer-events: none;
}

.prev-btn, .next-btn {
    background-color: var(--primary-color);
    color: var(--text-white);
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    pointer-events: auto;
    opacity: 0.9;
    box-shadow: var(--shadow-md);
}

.prev-btn:hover, .next-btn:hover {
    background-color: var(--primary-hover);
    transform: scale(1.1);
    opacity: 1;
}

/* Add scroll indicators */
.scroll-indicator {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 3;
}

.scroll-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--text-light);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.scroll-dot.active {
    opacity: 1;
    background-color: var(--primary-color);
    transform: scale(1.2);
}

/* Media Queries for Screenshots */
@media (max-width: 768px) {
    .screenshot {
        flex: 0 0 280px;
    }

    .screenshot::before {
        width: 280px;
        height: 570px;
    }

    .screenshot img {
        width: 250px;
        height: 530px;
    }

    .carousel-controls {
        padding: 0 0.5rem;
    }
}

@media (max-width: 576px) {
    .screenshot {
        flex: 0 0 240px;
    }

    .screenshot::before {
        width: 240px;
        height: 490px;
    }

    .screenshot img {
        width: 220px;
        height: 460px;
    }
}

/* Testimonials Section */
.testimonials {
    background-color: var(--bg-white);
    text-align: center;
}

.testimonials h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-bottom: 4rem;
}

.stat {
    text-align: center;
}

.stat h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat p {
    color: var(--text-light);
}

.stars {
    color: #FBBF24;
    font-size: 1rem;
    margin-top: 0.5rem;
}

.testimonial-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: var(--rounded-lg);
    text-align: left;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s ease;
}

.testimonial-card.animated {
    opacity: 1;
    transform: translateY(0);
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.user-avatar {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    object-fit: cover;
}

.user-info h4 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.testimonial-card p {
    color: var(--text-dark);
    font-style: italic;
}

/* Download Section */
.download {
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    color: var(--text-white);
    text-align: center;
}

.download h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.download p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.download .cta-buttons {
    justify-content: center;
}

/* Footer */
footer {
    background-color: var(--bg-dark);
    color: var(--text-white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
}

.link-group h4 {
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.link-group a {
    display: block;
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.link-group a:hover {
    color: var(--text-white);
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

/* Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Animation classes */
.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

.pulse {
    animation: pulse 2s infinite;
}

/* Animation delays */
.delay-100 {
    animation-delay: 100ms;
}

.delay-200 {
    animation-delay: 200ms;
}

.delay-300 {
    animation-delay: 300ms;
}

.delay-400 {
    animation-delay: 400ms;
}

.delay-500 {
    animation-delay: 500ms;
}

/* Loaded state animations */
body.loaded .hero h1 {
    animation: fadeInUp 0.8s ease forwards;
}

body.loaded .hero p {
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

body.loaded .hero .cta-buttons {
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

/* Media Queries for Responsiveness */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.75rem;
    }
    
    .hero .container {
        flex-direction: column;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .screenshot {
        width: calc(33.333% - 1rem);
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .nav-links {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    section {
        padding: 4rem 0;
    }
    
    .stats {
        flex-direction: column;
        gap: 2rem;
    }
    
    .screenshot {
        width: calc(50% - 0.75rem);
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2.25rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .screenshot {
        width: 100%;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
}

/* Media Queries for Hero Device */
@media (max-width: 768px) {
    .hero-image::before {
        width: 280px;
        height: 570px;
    }

    .device {
        width: 250px;
        height: 530px;
    }
}

@media (max-width: 576px) {
    .hero-image::before {
        width: 240px;
        height: 490px;
    }

    .device {
        width: 220px;
        height: 460px;
    }
}

/* Base Mobile-First Media Queries */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }

    /* Hero Section Adjustments */
    .hero {
        padding: 4rem 0;
    }

    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        margin-bottom: 2rem;
    }

    .hero h1 {
        font-size: 2.75rem;
    }

    .hero p {
        margin-left: auto;
        margin-right: auto;
    }

    .cta-buttons {
        justify-content: center;
    }

    /* Features Section Adjustments */
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 540px;
        padding: 0 1rem;
    }

    html {
        font-size: 14px;
    }

    /* Navigation Adjustments */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--bg-white);
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 5rem 2rem 2rem;
        z-index: 99;
        box-shadow: var(--shadow-lg);
        transition: right 0.3s ease;
    }

    .nav-links.active {
        right: 0;
    }

    .menu-toggle {
        display: block;
        z-index: 100;
    }

    /* Hero Section Adjustments */
    .hero h1 {
        font-size: 2.25rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .cta-buttons {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .app-store, .play-store {
        width: 100%;
        justify-content: center;
    }

    /* Device Frame Adjustments */
    .hero-image::before,
    .screenshot::before {
        width: 280px;
        height: 570px;
    }

    .device,
    .screenshot img {
        width: 250px;
        height: 530px;
    }

    /* Screenshots Section Adjustments */
    .screenshots-wrapper {
        padding: 1rem;
    }

    .screenshot {
        flex: 0 0 280px;
    }

    .carousel-controls {
        padding: 0 0.5rem;
    }

    /* Features Section Adjustments */
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Testimonials Section Adjustments */
    .stats {
        flex-direction: column;
        gap: 2rem;
    }

    .testimonial-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 1rem;
    }

    /* Hero Section Adjustments */
    .hero {
        padding: 3rem 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    /* Device Frame Adjustments */
    .hero-image::before,
    .screenshot::before {
        width: 240px;
        height: 490px;
    }

    .device,
    .screenshot img {
        width: 220px;
        height: 460px;
    }

    .screenshot {
        flex: 0 0 240px;
    }

    /* Section Spacing */
    section {
        padding: 3rem 0;
    }

    /* Footer Adjustments */
    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 2rem;
    }

    .social-links {
        justify-content: center;
    }
}

/* Touch Device Optimizations */
@media (hover: none) {
    .screenshot:hover {
        transform: none;
    }

    .feature-card:hover {
        transform: none;
    }

    .prev-btn:hover,
    .next-btn:hover {
        transform: none;
    }
} 