/* Responsive Design Improvements */

/* Base Mobile-First Approach */
:root {
    --header-height: 60px;
}

/* General Responsive Improvements */
html {
    font-size: 16px;
}

/* Ensure images are responsive by default */
img {
    max-width: 100%;
    height: auto;
}

/* Mobile Menu Styles */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background-color: var(--bg-lighter);
    z-index: 1000;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-close {
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.3s;
}

.mobile-menu-close:hover {
    color: var(--primary-color);
}

.mobile-menu ul {
    padding: 20px;
    flex: 1;
}

.mobile-menu ul li {
    margin-bottom: 15px;
}

.mobile-menu ul li a {
    font-size: 1.1rem;
    font-weight: 600;
    display: block;
    padding: 10px 0;
    transition: color 0.3s;
}

.mobile-menu ul li a:hover,
.mobile-menu ul li a.active {
    color: var(--primary-color);
}

.mobile-social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-social-icons a {
    font-size: 1.3rem;
    transition: color 0.3s;
}

.mobile-social-icons a:hover {
    color: var(--primary-color);
}

/* Enhanced Media Queries */

/* Large Screens */
@media screen and (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* Medium Screens */
@media screen and (max-width: 1024px) {
    html {
        font-size: 15px;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .hero-content .app-title {
        font-size: 1.8rem;
    }
    
    .cta .container {
        padding: 30px;
    }
    
    .decoration img {
        max-width: 100px;
    }
}

/* Tablets */
@media screen and (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    header .container {
        padding: 0 15px;
    }
    
    .mobile-menu-btn {
        display: flex !important;
        font-size: 1.5rem;
        cursor: pointer;
        color: var(--text-light);
        transition: var(--transition);
        padding: 12px;
        min-width: 44px;
        min-height: 44px;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        position: relative;
        z-index: 1001;
        -webkit-tap-highlight-color: transparent;
        user-select: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        background-color: transparent;
        border: none;
        outline: none;
    }
    
    .mobile-menu-btn:hover {
        color: var(--primary-color);
        background-color: rgba(255, 255, 255, 0.1);
    }
    
    .mobile-menu-btn:active {
        transform: scale(0.95);
        background-color: rgba(255, 255, 255, 0.2);
    }
    
    .mobile-menu-btn:focus {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
    }
    
    header nav ul {
        display: none;
    }
    
    .mobile-menu ul {
        display: block;
    }
    
    .mobile-menu ul li {
        display: block;
    }
    
    .mobile-menu ul li a {
        display: block;
        padding: 12px 0;
        font-size: 1.2rem;
    }
    
    .hero .container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    
    .hero-content {
        padding-right: 0;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content .app-title {
        font-size: 1.6rem;
    }
    
    .hero-content p {
        margin: 0 auto 30px;
    }
    
    .feature-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .testimonial-cards {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .cta .container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    
    .decoration {
        height: 200px;
    }
    
    footer .container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .footer-links ul {
        display: flex;
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .newsletter-form {
        flex-direction: column;
        gap: 15px;
    }
    
    .newsletter-form input {
        border-radius: 30px;
        text-align: center;
    }
    
    .subscribe-btn {
        border-radius: 30px;
        width: 100%;
        padding: 15px;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .free-badge {
        margin-left: 0;
        margin-top: 0;
    }
}

/* Mobile Phones */
@media screen and (max-width: 480px) {
    html { font-size: 14px; }
    body { line-height: 1.5; }
    
    .container { padding: 0 20px; }
    
    .logo img { height: 32px; }
    
    /* Enhanced mobile menu button for small screens */
    .mobile-menu-btn {
        min-width: 48px;
        min-height: 48px;
        padding: 14px;
        font-size: 1.6rem;
        z-index: 1002;
    }
    
    .hero { 
        padding: 80px 0 60px; 
    }
    
    .hero .container {
        gap: 40px;
    }
    
    .hero-content {
        text-align: center;
        padding: 0 10px;
    }
    
    .hero-content h1 { 
        font-size: 2.8rem; 
        line-height: 1.2; 
        margin-bottom: 15px;
    }
    
    .hero-content .app-title { 
        font-size: 1.8rem; 
        line-height: 1.3;
        margin-bottom: 25px;
    }
    
    .hero-content h2 {
        font-size: 1.4rem;
        margin-bottom: 20px;
        color: var(--primary-color);
    }
    
    .hero-content p {
        font-size: 1.1rem;
        line-height: 1.6;
        margin-bottom: 35px;
        max-width: 100%;
        color: var(--text-light);
    }
    
    .hero-actions {
        justify-content: center;
        margin-top: 10px;
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .ai-btn {
        padding: 18px 32px;
        font-size: 1.1rem;
        border-radius: 16px;
        min-width: 200px;
        justify-content: center;
    }
    
    .free-badge {
        margin-left: 0;
        margin-top: 0;
    }
    
    .hero-image {
        order: -1;
        margin-bottom: 20px;
    }
    
    .people-image img {
        max-width: 280px;
        margin: 0 auto;
        display: block;
    }
    
    .section-title { 
        font-size: 2rem; 
        line-height: 1.3; 
        margin-bottom: 20px;
    }
    
    .section-subtitle { 
        font-size: 1rem; 
        line-height: 1.5; 
        margin-bottom: 35px;
        padding: 0 10px;
    }
    
    .feature-cards { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 12px; 
    }
    
    .feature-card { 
        padding: 18px; 
    }
    
    .feature-icon img { height: 56px; }
    .feature-card h3 { font-size: 1.2rem; }
    .feature-card p { font-size: 0.9rem; }
    
    .faq-question h3 { font-size: 1.1rem; }
    
    .cta-content h2 { font-size: 2.2rem; line-height: 1.3; }
    .cta-content h3 { font-size: 1.5rem; }
    
    .get-now-btn { 
        padding: 18px 35px; 
        font-size: 1.2rem;
        font-weight: 700;
        min-width: 200px;
        text-align: center;
        display: inline-block;
        border-radius: 25px;
        box-shadow: 0 6px 20px rgba(235, 107, 59, 0.4);
        transition: all 0.3s ease;
    }
    
    .get-now-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(235, 107, 59, 0.5);
    }
    
    .decoration { height: 160px; }
    .decoration img { max-width: 90px; }
    
    .contact-cards { grid-template-columns: 1fr; gap: 20px; }
    
    .screenshots-slider {
        gap: 8px;
        padding: 8px 0;
    }
    
    .screenshot {
        width: calc((100% - 16px) / 3); /* show 3 items in view */
        padding: 10px;
    }
    
    .screenshot img {
        min-height: 140px;
        border-radius: 10px;
    }
    
    .screenshot p {
        font-size: 0.9rem;
        margin-top: 10px;
    }
}

/* Small Mobile Phones */
@media screen and (max-width: 360px) {
    html { font-size: 11.5px; }
    .hero-content h1 { font-size: 2rem; line-height: 1.1; }
    
    .hero-content .app-title { font-size: 1.2rem; }
    
    .download-btn { padding: 10px 18px; font-size: 0.95rem; }
    
    .get-now-btn {
        padding: 16px 28px;
        font-size: 1.1rem;
        min-width: 180px;
        border-radius: 22px;
    }
    
    .feature-icon img { height: 48px; }
    
    /* Ensure 3 screenshots are visible on very small screens */
    .screenshots-slider {
        gap: 6px;
        padding: 6px 0;
    }
    
    .screenshot {
        width: calc((100% - 12px) / 3);
        padding: 8px;
    }
    
    .screenshot img {
        min-height: 120px;
    }
    
    .screenshot p {
        font-size: 0.8rem;
        margin-top: 8px;
    }
}

/* Fix for iOS Safari 100vh issue */
@supports (-webkit-touch-callout: none) {
    .mobile-menu {
        height: -webkit-fill-available;
    }
}