/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

html {
    scroll-behavior: smooth;
}

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

/* Navigation */
.navbar {
    position: sticky;
    top: 0;
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-logo img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.nav-logo h2 {
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
    margin: 0;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #f8fafc;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #5DADE2;
}

.nav-btn {
    background: #5DADE2;
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.nav-btn:hover {
    background: #4A94C7;
}

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes gentleFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-6px);
    }
}

@keyframes gentlePulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.02);
        opacity: 0.9;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Smooth transitions */
.animate-on-scroll {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
}

/* Hero Section */
.hero {
    padding: 6rem 0 4rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

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

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 3rem 2rem;
}

.hero-text {
    grid-column: 1;
    grid-row: 1;
}

.hero-image {
    grid-column: 2;
    grid-row: 1 / span 2;
}

/* Hero Downloads Section */
.hero-downloads {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    grid-column: 1;
    grid-row: 2;
}

/* Desktop alignment for downloads */
@media (min-width: 769px) {
    .hero-downloads {
        align-items: flex-start;
        padding-left: 0;
    }

    .qr-section {
        align-items: flex-start !important;
        text-align: left;
    }

    .qr-text {
        text-align: left;
    }
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
}

.hero-text p {
    font-size: 1.25rem;
    color: #64748b;
    margin-bottom: 0;
    line-height: 1.6;
    animation: fadeInLeft 1s cubic-bezier(0.4, 0, 0.2, 1) 0.4s both;
}

.hero-qr {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 6px 10px -2px rgba(0, 0, 0, 0.15);
    max-width: 380px;
    animation: fadeInLeft 1s cubic-bezier(0.4, 0, 0.2, 1) 0.6s both;
}

.hero-qr .qr-code {
    animation: gentleFloat 3s ease-in-out infinite;
}

.qr-code {
    width: 160px;
    height: 160px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.qr-code img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hero-qr p {
    font-size: 0.9rem;
    color: #475569;
    margin: 0;
}

.hero-image {
    display: flex;
    justify-content: center;
    padding: 1rem;
}

.hero-image img {
    max-width: 140%;
    height: auto;
    border-radius: 20px;
    filter: drop-shadow(0 25px 30px rgba(0, 0, 0, 0.15));
    transform: scale(1.08);
    background: transparent;
    animation: fadeInRight 1s cubic-bezier(0.4, 0, 0.2, 1) 0.8s both;
}

/* Features Section */
.features {
    padding: 6rem 0;
    background: white;
}

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

.features h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.features h2.animate-on-scroll {
    transform: translateY(30px);
}

.features h2.animate-on-scroll.visible {
    transform: translateY(0);
}

.features > p {
    font-size: 1.25rem;
    color: #64748b;
    margin-bottom: 4rem;
}

.features > p.animate-on-scroll {
    transform: translateY(30px);
}

.features > p.animate-on-scroll.visible {
    transform: translateY(0);
}

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

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    text-align: left;
}

.feature-card.animate-on-scroll {
    transform: scale(0.95) translateY(30px);
}

.feature-card.animate-on-scroll.visible {
    transform: scale(1) translateY(0);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 30px -5px rgba(0, 0, 0, 0.15);
    border-color: #5DADE2;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.feature-card:hover .feature-icon img {
    transform: scale(1.15);
    transition: transform 0.3s ease;
    filter: drop-shadow(0 4px 8px rgba(93, 173, 226, 0.3));
}

.feature-card:hover h3 {
    color: #5DADE2;
    transition: color 0.3s ease;
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon img {
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.feature-card p {
    color: #64748b;
    line-height: 1.6;
}

/* Download CTA Section */
.download-cta {
    padding: 6rem 0;
    background: linear-gradient(135deg, #5DADE2 0%, #A9DFBF 100%);
    color: white;
}

.download-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.download-cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.download-cta h2.animate-on-scroll {
    transform: translateY(30px);
}

.download-cta h2.animate-on-scroll.visible {
    transform: translateY(0);
}

.download-container > p {
    font-size: 1.5rem;
    opacity: 0.9;
}

.download-container > p.animate-on-scroll {
    transform: translateY(30px);
}

.download-container > p.animate-on-scroll.visible {
    transform: translateY(0);
}

.celebration-image {
    margin-bottom: 0.5rem;
}

.celebration-image img {
    width: 400px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.download-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 0.5rem;
}

.download-qr.animate-on-scroll {
    transform: translateY(30px);
}

.download-qr.animate-on-scroll.visible {
    transform: translateY(0);
}

.download-qr .qr-code.large {
    animation: gentlePulse 4s ease-in-out infinite;
}

.qr-code.large {
    width: 200px;
    height: 200px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    margin-bottom: 1rem;
    padding: 8px;
}

/* Apple Store Button Styles */
.apple-store-btn {
    display: inline-block;
}

.apple-store-img {
    width: 200px;
    height: auto;
    animation: gentleFloat 3s ease-in-out infinite;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.apple-store-img:hover {
    transform: translateY(-2px);
}

/* QR Section Styles */
.qr-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 0.5rem;
}

.qr-text {
    font-size: 1rem;
    color: #64748b;
    margin-bottom: 1rem;
    font-weight: 500;
}

.download-qr p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Support Section */
.support {
    padding: 6rem 0;
    background: white;
}

.support-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.support h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.support p {
    font-size: 1.25rem;
    color: #64748b;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.support-email {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 600;
    color: #5DADE2;
    text-decoration: none;
    padding: 1rem 2rem;
    border: 2px solid #5DADE2;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.support-email:hover {
    background: #5DADE2;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(93, 173, 226, 0.3);
}

/* FAQ Section */
.faq {
    padding: 6rem 0;
    background: #1e293b;
    color: white;
}

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

.faq h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.faq h2.animate-on-scroll {
    transform: translateY(30px);
}

.faq h2.animate-on-scroll.visible {
    transform: translateY(0);
}

.faq > p {
    font-size: 1.25rem;
    color: #94a3b8;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.animate-on-scroll {
    transform: translateY(30px);
}

.faq-item.animate-on-scroll.visible {
    transform: translateY(0);
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #5DADE2;
}

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

.faq-question:hover {
    color: #5DADE2;
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s ease;
    color: #5DADE2;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.2);
}

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

.faq-answer p {
    color: #e2e8f0;
    line-height: 1.6;
    margin: 0;
}

/* Footer */
.footer {
    background: #1e293b;
    color: white;
    padding: 3rem 0 1rem;
    border-top: 2px solid rgba(93, 173, 226, 0.3);
}

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

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.footer-logo img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.footer-brand h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: white;
}

.footer-brand p {
    color: #94a3b8;
}

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

.footer-section h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-link {
    display: block;
    color: #94a3b8;
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: white;
}

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

.social-link {
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
}

.social-link:hover {
    color: white;
    background: #5DADE2;
    transform: translateY(-2px);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 2rem;
    text-align: center;
    color: #94a3b8;
}

/* Laptop and medium screen responsiveness */
@media (max-width: 1024px) and (min-width: 769px) {
    .hero-content {
        gap: 2.5rem 1.5rem;
    }
}

/* Tablet and small desktop responsiveness */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
}

/* Force single column on mobile and tablet screens */
@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }

    /* Override any grid-column spans on mobile */
    .feature-card {
        grid-column: 1 !important;
    }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .nav-menu {
        gap: 1rem;
    }

    .nav-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .nav-logo img {
        width: 28px;
        height: 28px;
    }

    .nav-logo h2 {
        font-size: 1.25rem;
    }

    .footer-logo img {
        width: 32px;
        height: 32px;
    }

    /* Mobile menu styling */
    .mobile-menu-btn {
        color: white !important;
    }

    .nav-menu[style*="flex-direction: column"] .nav-link {
        color: white !important;
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-menu[style*="flex-direction: column"] .nav-btn {
        margin-top: 0.5rem;
        /* align-self: flex-start; */
    }

    /* Mobile touch effects */
    @media (hover: none) and (pointer: coarse) {
        .nav-link:active {
            color: #5DADE2 !important;
            background: rgba(93, 173, 226, 0.1);
            transform: scale(0.98);
        }

        .nav-btn:active {
            background: #4A94C7 !important;
            transform: scale(0.95);
        }

        .mobile-menu-btn:active {
            transform: scale(0.9);
            opacity: 0.8;
        }
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    .hero-text {
        order: 1;
    }

    .hero-image {
        order: 2;
        margin-bottom: 0;
    }

    .hero-downloads {
        order: 3;
        align-items: center;
        margin-top: 0;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text p {
        font-size: 1.1rem;
    }

    .hero-qr {
        justify-content: center;
        margin: 0 auto;
        max-width: 320px;
        padding: 1.5rem;
        gap: 1rem;
    }

    .qr-code {
        /* width: 100px; */
        /* height: 100px; */
        padding: 6px;
    }

    .hero-image img {
        max-width: 100%;
        transform: scale(1);
    }

    /* Mobile Apple Store Button */
    .apple-store-img {
        width: 180px;
        max-width: 100%;
    }

    .qr-text {
        font-size: 0.95rem;
        /* margin-bottom: 1.25rem; */
    }

    .features h2 {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }

    /* Override any grid-column spans on mobile */
    .feature-card {
        grid-column: 1 !important;
    }

    .celebration-image img {
        width: 240px;
    }

    .download-container {
        gap: 0.75rem;
        padding: 0 20px;
    }

    .download-cta h2 {
        font-size: 1.75rem;
    }

    .download-container > p {
        font-size: 1.2rem;
    }

    .support h2 {
        font-size: 1.75rem;
    }

    .support p {
        font-size: 1.1rem;
    }

    .support-email {
        font-size: 1.25rem;
        padding: 0.875rem 1.5rem;
    }

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

    .footer-links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .social-links {
        justify-content: center;
        gap: 0.75rem;
    }

    .social-link {
        width: 36px;
        height: 36px;
    }

    .social-link svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 4rem 0 2rem;
    }

    .hero-content {
        gap: 1.5rem;
    }

    .hero-text h1 {
        font-size: 1.75rem;
    }

    .features {
        padding: 4rem 0;
    }

    .download-cta {
        padding: 4rem 0;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .qr-code.large {
        width: 150px;
        height: 150px;
    }

    /* Extra small mobile Apple Store Button */
    .apple-store-img {
        width: 160px;
    }

    .qr-text {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .hero-image {
        padding: 0.5rem;
    }

    /* FAQ Mobile Responsive */
    .faq h2 {
        font-size: 2rem;
    }

    .faq > p {
        font-size: 1rem;
    }

    .faq-question {
        padding: 1rem;
        font-size: 1rem;
    }

    .faq-item.active .faq-answer {
        max-height: 250px;
        padding: 1rem;
    }

    .faq-icon {
        font-size: 1.25rem;
    }
}

/* Accessibility - Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    /* Disable all animations for users who prefer reduced motion */
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    /* Remove floating and pulsing animations */
    .hero-qr .qr-code,
    .download-qr .qr-code.large {
        animation: none !important;
    }

    /* Simplify transforms for better accessibility */
    .animate-on-scroll {
        transform: none !important;
    }

    .animate-on-scroll.visible {
        transform: none !important;
        opacity: 1 !important;
    }
}