/* Responsive Design for Fortivana Website */

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

/* Large Screens */
@media (max-width: 1200px) {
    .hero-container {
        gap: 3rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Medium Screens */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Small Screens */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #1e3a8a 100%);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
        padding: 2rem 0;
        border-top: 1px solid rgba(139, 92, 246, 0.3);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu .nav-link {
        color: #E5E7EB !important;
        font-size: 1.1rem;
        padding: 0.8rem 0;
        border-bottom: 1px solid rgba(139, 92, 246, 0.2);
        transition: all 0.3s ease;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    }

    .nav-menu .nav-link:hover {
        color: #8B5CF6 !important;
        background: rgba(139, 92, 246, 0.1);
        transform: translateX(5px);
        text-shadow: 0 0 10px rgba(139, 92, 246, 0.6);
    }

    .nav-menu .language-switcher {
        margin-top: 1rem;
        padding: 1rem 2rem;
        background: rgba(139, 92, 246, 0.1);
        border-radius: 10px;
        margin-left: 2rem;
        margin-right: 2rem;
    }

    .nav-menu .language-select {
        background: rgba(139, 92, 246, 0.3) !important;
        color: #E5E7EB !important;
        border: 2px solid rgba(139, 92, 246, 0.6) !important;
        padding: 0.7rem 1rem;
        border-radius: 8px;
        font-size: 1rem;
        width: 100%;
    }

    .nav-menu .language-select:focus {
        outline: none;
        border-color: #8B5CF6;
        box-shadow: 0 0 10px rgba(139, 92, 246, 0.4);
    }

    .nav-menu .language-select option {
        background: #1e1b4b;
        color: #E5E7EB;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .phone-mockup {
        width: 250px;
        height: 500px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .download-buttons {
        flex-direction: column;
        align-items: center;
    }

    .support-options {
        grid-template-columns: 1fr;
    }

    .article-grid {
        grid-template-columns: 1fr;
    }
    
    .screenshot-gallery {
        flex-direction: column;
        align-items: center;
    }
    
    .screenshot-1,
    .screenshot-2 {
        width: 80%;
        max-width: 250px;
        transform: none;
    }
    
    .features-screenshot {
        transform: none;
    }
    
    .payment-icons {
        gap: 1rem;
    }
    
    .payment-icon {
        min-width: 70px;
        padding: 0.8rem;
    }
    
    .payment-icon i {
        font-size: 1.5rem;
    }
    
    .payment-icon span {
        font-size: 0.8rem;
    }
}

/* Extra Small Screens */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .phone-mockup {
        width: 200px;
        height: 400px;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .about-feature {
        text-align: center;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .error-number {
        font-size: 4rem;
    }

    .error-content h1 {
        font-size: 1.5rem;
    }
}

/* Landscape Orientation */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 80px 0 40px;
        min-height: auto;
    }

    .hero-container {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .phone-mockup {
        width: 200px;
        height: 400px;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .floating-elements {
        display: none;
    }

    .hero {
        background: white;
        color: black;
    }

    .hero-title {
        color: black;
    }

    .section-title {
        color: black;
    }

    .feature-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .floating-card {
        animation: none;
    }

    .gradient-text {
        animation: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .navbar {
        background: rgba(26, 26, 26, 0.95);
    }

    .nav-link {
        color: white;
    }

    .feature-card {
        background: #2a2a2a;
        color: white;
    }

    .contact-form {
        background: #2a2a2a;
    }

    .form-group input,
    .form-group textarea {
        background: #3a3a3a;
        color: white;
        border-color: #555;
    }
}
