/* ===== Responsive Design ===== */

/* Large Desktop */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
}

/* Desktop */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
    
    .hero-content {
        gap: 3rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* Tablet */
@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-content {
        gap: 2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .download-content {
        gap: 3rem;
    }
}

/* Mobile Large */
@media (max-width: 768px) {
    .container {
        max-width: 540px;
    }
    
    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.3s ease, visibility 0.3s ease, opacity 0.3s ease;
        box-shadow: var(--shadow);
        z-index: 1000;
        display: flex;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        visibility: hidden;
        opacity: 0;
    }
    
    .nav-menu.active {
        left: 0;
        visibility: visible;
        opacity: 1;
    }
    
    .nav-link {
        font-size: 1.2rem;
        margin: 1rem 0;
        color: var(--text-primary);
        text-decoration: none;
        font-weight: 500;
        transition: var(--transition);
        position: relative;
    }
    
    .nav-link:hover {
        color: var(--primary-color);
    }
    
    .nav-link::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--primary-color);
        transition: var(--transition);
    }
    
    .nav-link:hover::after {
        width: 100%;
    }
    
    .nav-link.active {
        color: var(--primary-color);
    }
    
    .nav-link.active::after {
        width: 100%;
    }
    
    .nav-toggle {
        display: flex;
        position: relative;
        z-index: 1001;
        background: none;
        border: none;
        outline: none;
        cursor: pointer;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
        background: var(--primary-color);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: scale(0);
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
        background: var(--primary-color);
    }
    
    /* Hero Section */
    .hero {
        padding-top: 80px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }
    
    .app-preview {
        width: 250px;
    }
    
    /* Sections */
    .section-title {
        font-size: 2.2rem;
    }
    
    .about,
    .features,
    .download {
        padding: 4rem 0;
    }
    
    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    /* Download */
    .download-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .download-text h2 {
        font-size: 2rem;
    }
    
    .download-buttons {
        flex-direction: row;
        align-items: center;
        gap: 0.8rem;
    }
    
    .download-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    /* Share */
    .share-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .share-btn {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }
    
    /* Footer */
    .footer {
        background-attachment: scroll;
    }
    
    .download {
        background-attachment: scroll;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Mobile Medium */
@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    /* Typography */
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    /* Buttons */
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .hero-buttons {
        gap: 0.8rem;
    }
    
    /* Cards */
    .about-card,
    .feature-card {
        padding: 1.5rem;
    }
    
    .card-icon,
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    /* App Preview */
    .app-preview {
        width: 200px;
    }
    
    /* Download Buttons */
    .download-btn {
        padding: 0.8rem 1rem;
    }
    
    .download-btn i {
        font-size: 1.5rem;
    }
    
    .btn-text {
        font-size: 0.9rem;
    }
    
    /* Share Buttons */
    .share-btn {
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Footer */
    .footer {
        padding: 2rem 0 1rem;
        background-attachment: scroll;
    }
    
    .download {
        background-attachment: scroll;
    }
    
    .footer-logo {
        width: 50px;
        height: 50px;
    }
}

/* Mobile Small */
@media (max-width: 480px) {
    /* Hero */
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    /* Sections */
    .about,
    .features,
    .download {
        padding: 3rem 0;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .download-image img {
        max-width: 60%;
    }
    
    .download-buttons {
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
    }
    
    /* Cards */
    .about-card,
    .feature-card {
        padding: 1.2rem;
    }
    
    /* Download */
    .download-text h2 {
        font-size: 1.8rem;
    }
    
    /* Floating Elements */
    .element {
        font-size: 1.5rem;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 100px 0 50px;
    }
    
    .hero-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .app-preview {
        width: 200px;
    }
}

/* ===== FAQ Responsive ===== */
@media (max-width: 768px) {
    .faq-question {
        padding: 1rem;
    }
    
    .faq-question h3 {
        font-size: 1rem;
    }
    
    .faq-item.active .faq-answer {
        padding: 1rem;
    }
}

/* ===== Contact Responsive ===== */
@media (max-width: 1024px) {
    .contact-form-container {
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    .contact-content {
        padding: 0 1rem;
    }
    
    .contact-form-container {
        padding: 1.5rem;
        margin: 0 1rem;
        max-width: 100%;
    }
    
    .contact-form {
        gap: 1.2rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.8rem;
        font-size: 1rem;
    }
    
    .submit-btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .faq-question {
        padding: 0.75rem;
    }
    
    .faq-question h3 {
        font-size: 0.9rem;
    }
    
    .contact-form-container {
        padding: 1rem;
        margin: 0 0.5rem;
        border-radius: 8px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.7rem;
        font-size: 0.95rem;
        border-radius: 6px;
    }
    
    .submit-btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.95rem;
        border-radius: 6px;
    }
    
    .form-group label {
        font-size: 0.9rem;
    }
}

@media (max-width: 360px) {
    .contact-form-container {
        padding: 0.8rem;
        margin: 0 0.3rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.6rem;
        font-size: 0.9rem;
    }
    
    .submit-btn {
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
    }
}

/* Print Styles */
@media print {
    .header,
    .nav-toggle,
    .hero-buttons,
    .download-buttons,
    .share-buttons {
        display: none;
    }
    
    .footer {
        background: var(--text-primary) !important;
        background-attachment: scroll;
        padding: 1.5rem 0 1rem;
    }
    
    .download {
        background: var(--text-primary) !important;
        background-attachment: scroll;
    }
    
    .hero {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
    }
    
    .about,
    .features,
    .download {
        padding: 1rem 0;
    }
    
    .feature-card,
    .about-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo,
    .footer-logo {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
    
    .footer {
        background-image: url('../images/footer_background.jpeg');
        background-size: cover;
        background-position: center;
    }
    
    .download {
        background-image: url('../images/footer_background.jpeg');
        background-size: cover;
        background-position: center;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .floating-elements {
        display: none;
    }
    
    .footer {
        background-attachment: scroll;
    }
    
    .download {
        background-attachment: scroll;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --text-primary: #E0E0E0;
        --text-secondary: #B0B0B0;
        --background: #121212;
        --white: #1E1E1E;
    }
    
    .header {
        background: rgba(30, 30, 30, 0.95);
    }
    
    .about,
    .share {
        background: var(--white);
    }
    
    .features {
        background: var(--background);
    }
    
    .footer {
        background: linear-gradient(135deg, rgba(44, 62, 80, 0.9) 0%, rgba(52, 73, 94, 0.9) 100%), 
                    url('../images/footer_background.jpeg') center/cover no-repeat;
        background-attachment: scroll;
    }
    
    .download {
        background: linear-gradient(135deg, rgba(44, 62, 80, 0.9) 0%, rgba(52, 73, 94, 0.9) 100%), 
                    url('../images/footer_background.jpeg') center/cover no-repeat;
        background-attachment: scroll;
    }
    
    .footer-bottom {
        background: rgba(0, 0, 0, 0.2);
    }
    
    .footer-section a:hover {
        background: rgba(255, 255, 255, 0.15);
    }
    
    .download-text h2 {
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    }
    
    .download-image img {
        max-width: 70%;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    }
    
    .download-image img:hover {
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    }
    
    .download-text p {
        color: rgba(255, 255, 255, 0.95);
    }
    
    .download-text h2 {
        color: var(--white);
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
        font-weight: 600;
    }
    
    .download-text p {
        color: rgba(255, 255, 255, 0.95);
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    }
    
    .download-text p {
        font-weight: 400;
    }
    
    .download-text p {
        line-height: 1.6;
    }
    
    .download-text p {
        margin-bottom: 1.5rem;
    }
    
    .download-text p {
        font-size: 1.1rem;
    }
    
    .download-text p {
        text-align: center;
    }
    
    .download-text p {
        max-width: 600px;
        margin: 0 auto 1.5rem;
    }
    
    .download-text p {
        padding: 0 1rem;
    }
    
    .download-text p {
        border-radius: 8px;
    }
    
    .download-text p {
        background: rgba(0, 0, 0, 0.1);
    }
    
    .download-text p {
        backdrop-filter: blur(5px);
    }
    
    .download-text p {
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .download-text p {
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    }
    
    .download-text p {
        transition: var(--transition);
    }
    
    .download-text p:hover {
        background: rgba(0, 0, 0, 0.15);
        transform: translateY(-2px);
    }
    
    .download-text p:hover {
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    }
    
    .download-text p:hover {
        border-color: rgba(255, 255, 255, 0.2);
    }
    
    .download-text p:hover {
        backdrop-filter: blur(8px);
    }
    
    .download-text p:hover {
        color: rgba(255, 255, 255, 1);
    }
    
    .download-text p:hover {
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    }
    
    .download-text p:hover {
        font-weight: 500;
    }
    
    .download-text p:hover {
        letter-spacing: 0.5px;
    }
    
    .download-text p:hover {
        cursor: pointer;
    }
    
    .download-text p:hover {
        user-select: none;
    }
    
    .download-text p:hover {
        outline: none;
    }
    
    .download-text p:hover {
        -webkit-tap-highlight-color: transparent;
    }
    
    .download-text p:hover {
        -webkit-user-select: none;
    }
    
    .download-text p:hover {
        -moz-user-select: none;
    }
    
    .download-text p:hover {
        -ms-user-select: none;
    }
    
    .download-text p:hover {
        -webkit-touch-callout: none;
    }
    
    .download-text p:hover {
        -webkit-tap-highlight-color: transparent;
    }
    
    .download-text p:hover {
        -webkit-tap-highlight-color: transparent;
    }
    
    .download-text p:hover {
        -webkit-tap-highlight-color: transparent;
    }
    
    .download-text p:hover {
        -webkit-tap-highlight-color: transparent;
    }
    
    .download-text p:hover {
        -webkit-tap-highlight-color: transparent;
    }
    
    .download-text p:hover {
        -webkit-tap-highlight-color: transparent;
    }
    
    .download-text p:hover {
        -webkit-tap-highlight-color: transparent;
    }
    
    .download-text p:hover {
        -webkit-tap-highlight-color: transparent;
    }
    
    .download-text p:hover {
        -webkit-tap-highlight-color: transparent;
    }
    
    .download-text p:hover {
        -webkit-tap-highlight-color: transparent;
    }
    
    .download-text p:hover {
        -webkit-tap-highlight-color: transparent;
    }
    
    .download-text p:hover {
        -webkit-tap-highlight-color: transparent;
    }
    
    .download-text p:hover {
        -webkit-tap-highlight-color: transparent;
    }
    
    .download-text p:hover {
        -webkit-tap-highlight-color: transparent;
    }
    
    .download-text p:hover {
        -webkit-tap-highlight-color: transparent;
    }
    
    .download-text p:hover {
        -webkit-tap-highlight-color: transparent;
    }
    
    .download-text p:hover {
        -webkit-tap-highlight-color: transparent;
    }
    
    .download-text p:hover {
        -webkit-tap-highlight-color: transparent;
    }
    
    .download-text p:hover {
        -webkit-tap-highlight-color: transparent;
    }
    
    .download-text p:hover {
        -webkit-tap-highlight-color: transparent;
    }
    
    .download-text p:hover {
        -webkit-tap-highlight-color: transparent;
    }
    
    .download-text p:hover {
        -webkit-tap-highlight-color: transparent;
    }
    
    .download-text p:hover {
        -webkit-tap-highlight-color: transparent;
    }
    
    .download-text p:hover {
        -webkit-tap-highlight-color: transparent;
    }
    
    .download-text p:hover {
        -webkit-tap-highlight-color: transparent;
    }
    
    .download-text p:hover {
        -webkit-tap-highlight-color: transparent;
    }
    
    .download-text p:hover {
        -webkit-tap-highlight-color: transparent;
    }
    
    .download-text p:hover {
        -webkit-tap-highlight-color: transparent;
    }
    
    .download-text p:hover {
        -webkit-tap-highlight-color: transparent;
    }
    
    .download-text p:hover {
        -webkit-tap-highlight-color: transparent;
    }
    
    .download-text p:hover {
        -webkit-tap-highlight-color: transparent;
    }
    
    .download-text p:hover {
        -webkit-tap-highlight-color: transparent;
    }
    
    .download-text p:hover {
        -webkit-tap-highlight-color: transparent;
    }
    
    .download-text p:hover {
        -webkit-tap-highlight-color: transparent;
    }
    
    .download-text p:hover {
        -webkit-tap-highlight-color: transparent;
    }
    
    .download-text p:hover {
        -webkit-tap-highlight-color: transparent;
    }
}

