/* Reset and base styles */
:root {
    --transition-duration: 0.35s;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    scroll-behavior: auto;
}
html {
    scroll-behavior: auto;
}

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

/* Navigation */
.navbar {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
}

.nav-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.logo {
    width: 32px;
    height: 32px;
    margin-right: 10px;
}

.brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: #007AFF;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #007AFF;
}

/* Main content */
main {
    margin-top: 80px;
}

/* Hero section */
.hero {
    background: linear-gradient(135deg, #007AFF 0%, #5AC8FA 100%);
    color: white;
    padding: 100px 0;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

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

.btn {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: #fff;
    color: #007AFF;
}

.btn-primary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #007AFF;
}

.app-mockup {
    width: 100%;
    max-width: 300px;
    height: auto;
    margin: 0 auto;
    display: block;
}

/* Carousel base styles */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 600px; /* Even wider for better spacing */
    margin: 0 auto;
    overflow: visible; /* Show stacked images on sides */
    border-radius: 20px;
    perspective: 1000px;
    padding: 0 100px; /* Add padding for side images */
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 600px; /* Fixed height to contain slides */
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide {
    position: absolute;
    width: 100%;
    max-width: 300px;
    height: auto;
    opacity: 0;
    transform: translateX(50px) scale(0.8);
    transition: all var(--transition-duration) cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1;
    pointer-events: none;
    cursor: pointer;
    top: 50%;
    left: 50%;
    transform-origin: center center;
    will-change: transform, opacity;
}

.carousel-slide.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    z-index: 3;
    pointer-events: auto;
}

/* Stacked layout - previous slide */
.carousel-slide.prev {
    opacity: 0.6;
    transform: translate(-50%, -50%) translateX(-120px) scale(0.7);
    z-index: 2;
    pointer-events: auto;
}

/* Stacked layout - next slide */
.carousel-slide.next {
    opacity: 0.6;
    transform: translate(-50%, -50%) translateX(120px) scale(0.7);
    z-index: 2;
    pointer-events: auto;
}

/* Additional stacked slides for more depth */
.carousel-slide.prev-2 {
    opacity: 0.3;
    transform: translate(-50%, -50%) translateX(-180px) scale(0.5);
    z-index: 1;
    pointer-events: auto;
    transition: opacity 0.3s ease;
}

.carousel-slide.next-2 {
    opacity: 0.3;
    transform: translate(-50%, -50%) translateX(180px) scale(0.5);
    z-index: 1;
    pointer-events: auto;
    transition: opacity 0.3s ease;
}

/* Smooth hover effects for stacked images */
.carousel-slide.prev:hover {
    opacity: 0.75;
    transform: translate(-50%, -50%) translateX(-115px) scale(0.72);
}

.carousel-slide.next:hover {
    opacity: 0.75;
    transform: translate(-50%, -50%) translateX(115px) scale(0.72);
}

/* Minimal hover effects for furthest back images to prevent glitching */
.carousel-slide.prev-2:hover {
    opacity: 0.35;
}

.carousel-slide.next-2:hover {
    opacity: 0.35;
}

/* Cross-browser compatibility fixes */
@supports not (backdrop-filter: blur(10px)) {
    .slide-caption {
        background: rgba(255,255,255,0.9);
        backdrop-filter: none;
    }
}

/* Firefox compatibility */
@-moz-document url-prefix() {
    .carousel-slide {
        transform-style: preserve-3d;
    }
}

/* Safari compatibility */
@media screen and (-webkit-min-device-pixel-ratio:0) {
    .carousel-container {
        -webkit-transform: translateZ(0);
    }
    
    .carousel-slide {
        -webkit-transform-style: preserve-3d;
    }
}

.carousel-slide .app-mockup {
    width: 300px;
    max-width: 300px;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    object-position: center;
    border-radius: 20px;
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    display: block;
    margin: 0 auto;
}

/* Fix for activitypreview2.png being smaller */
.carousel-slide[data-index="3"] .app-mockup {
    width: 350px;
    max-width: 350px;
    margin-left: -25px;
    margin-right: -25px;
}

/* Performance optimizations */
.carousel-container {
    will-change: transform;
    transform: translateZ(0);
}

.carousel-slide {
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Lazy loading styles */
.carousel-slide img[data-src] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.carousel-slide img.loaded {
    opacity: 1;
}

.slide-caption {
    position: absolute;
    bottom: -70px;
    left: 50%;
    transform: translateX(-50%);
    background: none;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
    white-space: nowrap;
    z-index: 10;
    pointer-events: none;
}

.carousel-slide.active .slide-caption {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Ensure non-active slides have completely hidden captions */
.carousel-slide:not(.active) .slide-caption {
    opacity: 0 !important;
    visibility: hidden !important;
}

.slide-caption p {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    color: #ffffff;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
    letter-spacing: 0.3px;
    line-height: 1.2;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    padding: 0;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.indicator.active,
.indicator:hover {
    background: rgba(255,255,255,0.9);
    transform: scale(1.2);
}

/* Features section */
.features {
    padding: 100px 0;
    background: #f8f9fa;
}

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

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

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
}

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

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

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.feature-card p {
    color: #666;
}

/* Download section */
.download {
    padding: 100px 0;
    background: #007AFF;
    color: white;
    text-align: center;
}

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

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

.badge-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 76px; /* 60px badge + 16px vertical padding */
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.download-btn img {
    max-height: 60px;
    width: auto;
    height: auto;
    display: block;
}

.coming-soon {
    font-style: italic;
    opacity: 0.8;
}

.download-btn.coming-soon {
    cursor: not-allowed;
    opacity: 0.6;
    pointer-events: none;
}

.download-btn.coming-soon img {
    filter: grayscale(30%);
}

/* Footer */
footer {
    background: #333;
    color: white;
    padding: 50px 0 20px;
}

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

.footer-section h4 {
    margin-bottom: 1rem;
    color: #007AFF;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #007AFF;
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 1rem;
    text-align: center;
    color: #ccc;
}

/* Support page styles */
.support-page,
.legal-page {
    padding: 50px 0;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.page-header p {
    font-size: 1.2rem;
    color: #666;
}

.last-updated {
    font-style: italic;
    color: #666;
    margin-bottom: 2rem;
}

.contact-info {
    margin-bottom: 3rem;
}

.contact-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid #007AFF;
}

.contact-card h2 {
    margin-bottom: 1rem;
    color: #333;
}

.contact-details {
    margin-top: 1rem;
}

.contact-item {
    margin-bottom: 0.5rem;
}

.contact-item a {
    color: #007AFF;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.faq-section {
    margin-bottom: 3rem;
}

.faq-section h2 {
    margin-bottom: 2rem;
    color: #333;
    font-size: 2rem;
}

.faq-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.faq-item h3 {
    color: #007AFF;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.faq-item p {
    color: #666;
    line-height: 1.6;
}

.faq-item a {
    color: #007AFF;
    text-decoration: none;
}

.faq-item a:hover {
    text-decoration: underline;
}

.additional-help {
    text-align: center;
}

.help-card {
    background: #007AFF;
    color: white;
    padding: 2rem;
    border-radius: 12px;
    max-width: 600px;
    margin: 0 auto;
}

.help-card h2 {
    margin-bottom: 1rem;
}

.help-card p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.help-card .btn {
    background: white;
    color: #007AFF;
}

/* Legal page styles */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.legal-content h2 {
    color: #333;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.legal-content h3 {
    color: #007AFF;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.legal-content p {
    margin-bottom: 1rem;
    color: #666;
}

.legal-content ul {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
    color: #666;
}

.legal-content a {
    color: #007AFF;
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}

.legal-content code {
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.9em;
}

/* --- Additions for mobile nav and hero optimization --- */

/* Hamburger menu styles */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    width: 32px;
    height: 32px;
    cursor: pointer;
    z-index: 1100;
}
.hamburger span {
    height: 4px;
    width: 100%;
    background: #007AFF;
    margin: 4px 0;
    border-radius: 2px;
    transition: 0.3s;
}

/* Responsive design */
/* Small desktop/tablet adjustments */
@media (max-width: 1024px) and (min-width: 769px) {
    .carousel-container {
        max-width: 450px;
        padding: 0 80px;
    }
    
    .carousel-slide.prev {
        transform: translate(-50%, -50%) translateX(-100px) scale(0.75);
    }
    
    .carousel-slide.next {
        transform: translate(-50%, -50%) translateX(100px) scale(0.75);
    }
    
    .carousel-slide.prev-2 {
        transform: translate(-50%, -50%) translateX(-160px) scale(0.55);
    }
    
    .carousel-slide.next-2 {
        transform: translate(-50%, -50%) translateX(160px) scale(0.55);
    }
    
    .carousel-slide.prev:hover {
        transform: translate(-50%, -50%) translateX(-95px) scale(0.77);
    }
    
    .carousel-slide.next:hover {
        transform: translate(-50%, -50%) translateX(95px) scale(0.77);
    }
}

@media (max-width: 768px) {
    .navbar {
        min-height: 56px;
    }
    .nav-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 10px;
        gap: 0;
        flex-wrap: nowrap;
    }
    .nav-logo {
        display: flex;
        align-items: center;
        flex-shrink: 0;
    }
    .nav-logo .logo {
        width: 40px;
        height: 40px;
        margin-right: 8px;
    }
    .brand {
        font-size: 1.5rem;
    }
    .hamburger {
        display: flex;
        align-items: center;
        height: 32px;
        flex-shrink: 0;
        margin-left: 0;
    }
    .nav-menu {
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        padding: 1.5rem 0;
        box-shadow: 0 2px 10px rgba(0,0,0,0.08);
        display: none;
        z-index: 1050;
        height: auto;
        max-height: 80vh;
        overflow-y: auto;
    }
    .nav-menu.open {
        display: flex;
    }
    main {
        margin-top: 56px;
    }
    .hero {
        padding: 32px 0 24px 0;
    }
    .hero .container {
        gap: 2rem;
    }
    .app-mockup {
        max-width: 220px;
    }
    
    /* Mobile carousel adjustments */
    .carousel-container {
        max-width: 90vw; /* Much wider for mobile - almost full screen */
        padding: 0 60px; /* Reduce padding for more image space */
    }
    
    .carousel-track {
        height: 70vh; /* Much larger height for mobile */
    }
    
    .carousel-slide {
        max-width: 350px; /* Bigger images on mobile */
    }
    
    /* Mobile hover effects - more subtle */
    .carousel-slide.prev:hover {
        opacity: 0.8;
        transform: translate(-50%, -50%) translateX(-135px) scale(0.72);
    }
    
    .carousel-slide.next:hover {
        opacity: 0.8;
        transform: translate(-50%, -50%) translateX(135px) scale(0.72);
    }
    
    /* Disable hover effects on furthest images for mobile to prevent glitching */
    .carousel-slide.prev-2:hover,
    .carousel-slide.next-2:hover {
        opacity: 0.3;
    }
    
    .slide-caption {
        bottom: -50px;
    }
    
    .slide-caption p {
        font-size: 16px;
        letter-spacing: 0.2px;
    }
    
    /* Mobile responsive image sizing */
    .carousel-slide .app-mockup {
        width: 250px;
        max-width: 250px;
        height: auto;
        max-height: 450px;
        object-fit: contain;
        object-position: center;
    }
    
    /* Fix for activitypreview2.png being smaller on mobile */
    .carousel-slide[data-index="3"] .app-mockup {
        width: 290px;
        max-width: 290px;
        margin-left: -20px;
        margin-right: -20px;
    }
    
    /* Mobile transforms - better spacing for larger images */
    .carousel-slide.prev {
        transform: translate(-50%, -50%) translateX(-140px) scale(0.7);
    }
    
    .carousel-slide.next {
        transform: translate(-50%, -50%) translateX(140px) scale(0.7);
    }
    
    .carousel-slide.prev-2 {
        transform: translate(-50%, -50%) translateX(-220px) scale(0.5);
    }
    
    .carousel-slide.next-2 {
        transform: translate(-50%, -50%) translateX(220px) scale(0.5);
    }
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .download-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 1rem;
    }
    
    .features {
        padding: 50px 0;
    }
    
    .download {
        padding: 50px 0;
    }
} 