/* Tablet Devices (768px - 1024px) */
@media screen and (max-width: 1024px) {
    .main-title {
        font-size: 2.8rem;
    }
    
    .hero-content {
        max-width: 90%;
    }
    
    .countries-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .features-container,
    .services-container,
    .team-members {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pricing-table {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .price-card.popular {
        transform: none;
    }
}

/* Mobile Devices (up to 768px) */
@media screen and (max-width: 768px) {
    /* Navigation */
    .hamburger {
        display: block;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--primary-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        gap: 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        margin: 1rem 0;
    }
    
    /* Hero Section */
    .hero-section {
        height: 80vh;
    }
    
    .main-title {
        font-size: 2.2rem;
    }
    
    .hero-text p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        margin-bottom: 1rem;
    }
    
    /* Countries Section */
    .countries-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    /* Forms */
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .submit-btn,
    .download-btn {
        width: 100%;
    }
    
    /* Features and Services */
    .features-container,
    .services-container,
    .team-members {
        grid-template-columns: 1fr;
    }
    
    .pricing-table {
        grid-template-columns: 1fr;
    }
    
    /* About Section */
    .achievements {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Video Modal */
    .video-container iframe {
        height: 300px;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
    }
}

/* Small Mobile Devices (up to 480px) */
@media screen and (max-width: 480px) {
    .navbar {
        padding: 1rem;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .main-title {
        font-size: 1.8rem;
    }
    
    .hero-content {
        padding: 1rem;
        margin: 0 10px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
    }
    
    .country-card {
        margin: 0 10px;
    }
    
    .card-buttons {
        grid-template-columns: 1fr;
    }
    
    .form-section {
        padding: 1.5rem;
        margin: 0 10px 1.5rem;
    }
    
    .service-card,
    .feature-card,
    .team-member,
    .price-card {
        margin: 0 10px;
        padding: 1.5rem;
    }
    
    .achievements {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: 20px;
        padding: 1rem;
    }
    
    .video-container {
        padding: 1rem;
    }
    
    .video-container iframe {
        height: 200px;
    }
    
    /* Travel Form Specific */
    .checkbox-group {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .rating {
        justify-content: center;
    }
    
    /* Typography Adjustments */
    h1, h2, h3, h4 {
        word-wrap: break-word;
    }
    
    /* Button Adjustments */
    .btn {
        padding: 0.6rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Image Adjustments */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Table Adjustments */
    table {
        display: block;
        overflow-x: auto;
    }
}

/* Landscape Mode */
@media screen and (max-height: 600px) and (orientation: landscape) {
    .hero-section {
        height: auto;
        min-height: 100vh;
        padding: 2rem 0;
    }
    
    .hero-content {
        margin: 2rem auto;
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    .nav-menu {
        top: 60px;
    }
}

/* High Resolution Screens */
@media screen and (min-width: 1440px) {
    .hero-content {
        max-width: 1200px;
    }
    
    .countries-grid {
        max-width: 1400px;
    }
    
    .form-section {
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hero-buttons,
    .hamburger,
    .modal,
    footer {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .hero-section {
        height: auto;
        background: none !important;
    }
    
    .hero-content {
        background: none !important;
        color: black !important;
        box-shadow: none !important;
    }
    
    .main-title {
        color: black !important;
        text-shadow: none !important;
    }
    
    a {
        color: black !important;
        text-decoration: underline;
    }
    
    .btn {
        display: none !important;
    }
    
    .form-section {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        page-break-inside: avoid;
    }
}

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

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #121212;
        color: #e0e0e0;
    }
    
    .country-card,
    .service-card,
    .feature-card,
    .form-section,
    .team-member,
    .price-card {
        background-color: #1e1e1e;
        color: #e0e0e0;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        background-color: #2d2d2d;
        color: #e0e0e0;
        border-color: #444;
    }
    
    .modal-content {
        background-color: #1e1e1e;
        color: #e0e0e0;
    }
}