/* Responsive Styles with Modern Enhancements */

/* Custom Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

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

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

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Utility Classes */
.animate-fade-in {
  animation: fadeIn 0.7s ease forwards;
}

.animate-slide-right {
  animation: slideInRight 0.7s ease forwards;
}

.animate-slide-left {
  animation: slideInLeft 0.7s ease forwards;
}

.animate-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; }

/* Large screens (laptops/desktops, 992px and up) */
@media only screen and (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
    
    .feature-detail-image img {
        max-width: 100%;
    }
    
    .screenshots-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
}

/* Medium screens (tablets, 768px and up) */
@media only screen and (max-width: 992px) {
    .container {
        max-width: 720px;
        padding: 0 20px;
    }
    
    /* Navigation */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background-color: white;
        flex-direction: column;
        padding: 100px 30px 30px;
        z-index: 998;
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
        align-items: flex-start;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links a {
        margin: 12px 0;
        font-size: 18px;
        opacity: 0;
        transform: translateX(20px);
        transition: opacity 0.3s ease, transform 0.3s ease;
        transition-delay: calc(var(--item-index) * 0.05s);
    }
    
    .nav-links.active a {
        opacity: 1;
        transform: translateX(0);
    }
    
    .nav-links a.btn {
        width: 100%;
        margin-top: 20px;
        text-align: center;
    }
    
    .mobile-menu-btn {
        display: block;
        z-index: 999;
        transition: transform 0.3s ease;
    }
    
    .mobile-menu-btn.active {
        transform: rotate(90deg);
    }
    
    /* Backdrop overlay for mobile menu */
    .menu-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 997;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    
    .menu-backdrop.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* Hero section */
    .hero {
        padding: 80px 0;
    }
    
    .hero h1 {
        font-size: 2.7rem;
    }
    
    /* Features */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .other-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Feature details */
    .feature-detail-item {
        flex-direction: column;
        gap: 40px;
    }
    
    .feature-detail-item.reverse {
        flex-direction: column;
    }
    
    .feature-detail-content {
        width: 100%;
        margin-bottom: 0;
    }
    
    .feature-detail-image {
        width: 100%;
    }
    
    /* Downloads */
    .download-cards-row {
        flex-direction: column;
    }
    
    .download-card.secondary {
        width: 100%;
        margin: 15px 0;
    }
    
    /* Compatibility */
    .compatibility-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

/* Small screens (phones, 576px and up) */
@media only screen and (max-width: 768px) {
    .container {
        max-width: 540px;
    }
    
    /* Typography */
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .section-title h2::after {
        width: 50px;
    }
    
    /* Hero */
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
    
    /* Features */
    .features {
        padding: 70px 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .other-features-grid {
        grid-template-columns: 1fr;
    }
    
    /* Screenshots */
    .screenshots {
        padding: 70px 0;
    }
    
    .screenshots-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    /* Installation steps */
    .installation-steps {
        margin-left: 0;
    }
    
    .step {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .step-number {
        margin-bottom: 15px;
        margin-right: 0;
    }
    
    /* Compatibility */
    .compatibility-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-column {
        margin-bottom: 30px;
    }
    
    .footer-column:last-child {
        margin-bottom: 0;
    }
    
    /* Privacy */
    .privacy-content {
        padding: 25px;
    }
    
    /* FAQ */
    .faq-question h3 {
        font-size: 1.1rem;
    }
}

/* Extra small screens */
@media only screen and (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    /* Header */
    .logo-text {
        display: none;
    }
    
    /* Hero */
    .hero {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    /* CTA */
    .cta {
        padding: 70px 0;
    }
    
    .cta h2 {
        font-size: 1.8rem;
    }
    
    /* Downloads */
    .download-card {
        padding: 25px;
    }
    
    .download-card h2 {
        font-size: 1.6rem;
    }
    
    /* Privacy */
    .privacy-section h2 {
        font-size: 1.6rem;
    }
    
    .privacy-section h3 {
        font-size: 1.3rem;
    }
    
    /* Feature cards */
    .feature-card {
        padding: 25px 20px;
    }
    
    /* Faded edge on mobile for scrollable content */
    .scrollable-container {
        position: relative;
        overflow-x: auto;
        padding: 15px 0;
        margin: 0 -15px;
        -webkit-overflow-scrolling: touch;
    }
    
    .scrollable-container::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        height: 100%;
        width: 40px;
        background: linear-gradient(to right, transparent, white);
        pointer-events: none;
    }
    
    .scrollable-content {
        display: flex;
        padding: 0 15px;
        gap: 15px;
    }
    
    .scroll-item {
        flex: 0 0 85%;
        max-width: 85%;
    }
}

/* Animations for content */
.feature-card, 
.feature-detail-item, 
.step, 
.compatibility-item, 
.download-card,
.screenshot-item,
.faq-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.feature-card.visible,
.feature-detail-item.visible,
.step.visible,
.compatibility-item.visible,
.download-card.visible,
.screenshot-item.visible,
.faq-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Delay animations in sequence with improved timings */
.feature-card:nth-child(2),
.step:nth-child(2),
.compatibility-item:nth-child(2),
.screenshot-item:nth-child(2),
.faq-item:nth-child(2) {
    transition-delay: 0.15s;
}

.feature-card:nth-child(3),
.step:nth-child(3),
.compatibility-item:nth-child(3),
.screenshot-item:nth-child(3),
.faq-item:nth-child(3) {
    transition-delay: 0.25s;
}

.feature-card:nth-child(4),
.step:nth-child(4),
.compatibility-item:nth-child(4),
.screenshot-item:nth-child(4),
.faq-item:nth-child(4) {
    transition-delay: 0.35s;
}

.feature-card:nth-child(5),
.screenshot-item:nth-child(5),
.faq-item:nth-child(5) {
    transition-delay: 0.45s;
}

.feature-card:nth-child(6),
.screenshot-item:nth-child(6) {
    transition-delay: 0.55s;
}

/* Loading animation for buttons during action */
.btn.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    margin-left: -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Glass morphism effects for modern UI */
.glass-effect {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Dark mode styling - for future implementation */
@media (prefers-color-scheme: dark) {
    :root {
        /* Dark mode variables would go here */
    }
} 