/* ============================================
   Responsive Design - Media Queries
   ============================================ */

/* Large Screens (1024px and up) */
@media (min-width: 1024px) {
    .container {
        padding: 0 40px;
    }
}

/* Tablets (768px to 1023px) */
@media (max-width: 1023px) {
    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .section-title {
        font-size: 28px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .platform-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tutorials-content {
        grid-template-columns: 1fr;
    }

    .tutorial-sidebar {
        order: 2;
    }

    .tutorial-main {
        order: 1;
    }

    .airport-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablets Landscape & Small Screens (481px to 768px) */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    /* Navigation */
    .nav-menu {
        gap: 15px;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--card-bg);
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: var(--shadow-md);
    }

    .nav-menu.active {
        max-height: 500px;
    }

    .nav-menu li {
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu a {
        display: block;
        padding: 15px 20px;
    }

    .nav-menu a::after {
        display: none;
    }

    /* Hero Section */
    .hero {
        padding: 60px 0;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-buttons {
        gap: 10px;
    }

    .btn-lg {
        padding: 12px 20px;
        font-size: 16px;
    }

    /* Features Section */
    .features {
        padding: 40px 0;
    }

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

    .feature-card {
        padding: 25px 20px;
    }

    .feature-icon {
        font-size: 40px;
    }

    .feature-card h3 {
        font-size: 18px;
    }

    /* Quick Download */
    .quick-download {
        padding: 40px 0;
    }

    .platform-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .platform-card {
        padding: 20px;
    }

    .platform-icon {
        font-size: 40px;
    }

    /* Stats */
    .stats {
        padding: 40px 0;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .stat-number {
        font-size: 32px;
    }

    /* CTA */
    .cta {
        padding: 40px 0;
    }

    .cta h2 {
        font-size: 28px;
    }

    .cta p {
        font-size: 16px;
    }

    /* Page Header */
    .page-header {
        padding: 40px 0;
    }

    .page-header h1 {
        font-size: 28px;
    }

    .page-header p {
        font-size: 16px;
    }

    /* Download Section */
    .downloads {
        padding: 40px 0;
    }

    .download-body {
        grid-template-columns: 1fr;
    }

    .download-buttons {
        gap: 8px;
    }

    .download-buttons .btn {
        flex: 1;
        justify-content: center;
        font-size: 14px;
        padding: 10px 15px;
    }

    /* Tutorial */
    .tutorials {
        padding: 40px 0;
    }

    .tutorial-sidebar {
        margin-bottom: 30px;
    }

    .tutorial-main {
        padding: 20px;
    }

    .tutorial-article h2 {
        font-size: 20px;
    }

    .tutorial-article h3 {
        font-size: 16px;
    }

    .toc-list a {
        font-size: 14px;
    }

    /* Filter */
    .filter-buttons {
        gap: 10px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 12px;
    }

    /* Airport */
    .airport-grid {
        grid-template-columns: 1fr;
    }

    .airport-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .airport-buttons {
        gap: 8px;
        flex-direction: column;
    }

    .airport-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .comparison-table {
        font-size: 14px;
    }

    th, td {
        padding: 8px;
    }

    /* Footer */
    .footer-content {
        gap: 30px;
    }

    .footer-section h4 {
        margin-bottom: 15px;
        font-size: 16px;
    }
}

/* Mobile Phones (480px and below) */
@media (max-width: 480px) {
    :root {
        font-size: 14px;
    }

    .container {
        padding: 0 12px;
    }

    /* Navigation */
    .logo {
        font-size: 18px;
        gap: 8px;
    }

    .logo i {
        font-size: 20px;
    }

    .nav-wrapper {
        padding: 12px 0;
    }

    /* Hero */
    .hero {
        padding: 40px 0;
    }

    .hero-title {
        font-size: 22px;
        margin-bottom: 15px;
    }

    .hero-subtitle {
        font-size: 14px;
        margin-bottom: 25px;
    }

    .btn {
        padding: 10px 16px;
        font-size: 14px;
    }

    .btn-lg {
        padding: 10px 16px;
        font-size: 14px;
    }

    .hero-buttons {
        gap: 8px;
    }

    .hero-buttons .btn {
        flex: 1;
        font-size: 13px;
        min-width: 100px;
    }

    /* Features */
    .features {
        padding: 30px 0;
    }

    .section-title {
        font-size: 24px;
        margin-bottom: 25px;
    }

    .features-grid {
        gap: 15px;
    }

    .feature-card {
        padding: 20px 15px;
    }

    .feature-icon {
        font-size: 32px;
        margin-bottom: 15px;
    }

    .feature-card h3 {
        font-size: 16px;
    }

    .feature-card p {
        font-size: 12px;
    }

    /* Stats */
    .stats {
        padding: 30px 0;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .stat-number {
        font-size: 28px;
    }

    .stat-label {
        font-size: 14px;
    }

    /* CTA */
    .cta {
        padding: 30px 0;
    }

    .cta h2 {
        font-size: 22px;
    }

    .cta p {
        font-size: 14px;
    }

    /* Page Header */
    .page-header {
        padding: 30px 0;
    }

    .page-header h1 {
        font-size: 22px;
    }

    .page-header p {
        font-size: 14px;
    }

    /* Download */
    .download-header {
        padding: 20px;
        font-size: 20px;
    }

    .download-header h2 {
        font-size: 18px;
    }

    .download-body {
        padding: 15px;
    }

    .app-box {
        padding: 15px;
    }

    .app-box h3 {
        font-size: 16px;
    }

    .description {
        font-size: 12px;
    }

    .download-buttons {
        flex-direction: column;
        gap: 8px;
    }

    .download-buttons .btn {
        font-size: 12px;
        padding: 8px 12px;
    }

    /* Tutorial */
    .tutorial-main {
        padding: 15px;
    }

    .tutorial-article h2 {
        font-size: 18px;
    }

    .tutorial-article h3 {
        font-size: 14px;
    }

    .toc-list a {
        padding: 6px 0;
    }

    /* Airport */
    .airport-content {
        padding: 15px;
    }

    .airport-info p {
        font-size: 12px;
    }

    .airport-price {
        font-size: 14px;
    }

    .current-price {
        font-size: 16px;
    }

    .feature {
        font-size: 12px;
    }

    .comparison-table-wrapper {
        font-size: 12px;
    }

    th, td {
        padding: 6px 4px;
    }

    .airport-header {
        padding: 15px;
    }

    .airport-header h3 {
        font-size: 16px;
    }

    .badge {
        font-size: 10px;
        padding: 4px 8px;
    }

    /* Footer */
    .footer {
        padding: 40px 0 15px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-section h4 {
        font-size: 14px;
    }

    .footer-section p {
        font-size: 12px;
    }

    .footer-section a {
        font-size: 12px;
    }

    .social-links {
        justify-content: center;
    }

    .footer-bottom {
        font-size: 12px;
    }
}

/* Extra Small Screens (below 360px) */
@media (max-width: 359px) {
    .hero-title {
        font-size: 18px;
    }

    .section-title {
        font-size: 20px;
    }

    .btn {
        padding: 8px 12px;
        font-size: 12px;
    }

    .feature-icon {
        font-size: 28px;
    }

    .platform-icon {
        font-size: 32px;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hamburger,
    .hero-buttons,
    .btn,
    .footer {
        display: none;
    }

    body {
        background: white;
    }

    .card,
    .airport-card,
    .feature-card {
        break-inside: avoid;
    }
}
