/* =================================================================
   RESPONSIVE DESIGN - MOBILE-FIRST APPROACH
   Modern Breakpoints & Adaptive Layouts
   ================================================================= */

/* ===== Desktop First - Large Screens (1280px+) ===== */
/* Base styles are already optimized for desktop */

/* ===== Large Tablet & Small Desktop (1024px - 1279px) ===== */
@media screen and (max-width: 1279px) {
    :root {
        --container-padding: var(--space-md);
    }
    
    .hero-content {
        gap: var(--space-2xl);
    }
    
    .packages-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

/* ===== Tablet (768px - 1023px) ===== */
@media screen and (max-width: 1023px) {
    :root {
        --space-3xl: 4rem;
        --font-size-5xl: 2.5rem;
        --font-size-4xl: 2rem;
    }
    
    /* Navigation - Mobile Menu */
    .menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(80%, 400px);
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 0;
        padding: 100px var(--space-xl) var(--space-xl);
        overflow-y: auto;
        transition: right var(--transition-slow);
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
        z-index: calc(var(--z-sticky) - 1);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .nav-link {
        width: 100%;
        padding: var(--space-md);
        font-size: var(--font-size-base);
        border-radius: 0;
    }
    
    .nav-link::before {
        display: none;
    }
    
    .nav-cta {
        margin-left: 0;
        margin-top: var(--space-md);
        border-radius: var(--radius-xl);
    }
    
    /* Hero Section */
    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
        text-align: center;
    }
    
    .hero-text {
        order: 2;
    }
    
    .video-container {
        order: 1;
        height: 400px;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    /* Sections */
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
}

/* ===== Mobile (480px - 767px) ===== */
@media screen and (max-width: 767px) {
    :root {
        --space-2xl: 3rem;
        --space-3xl: 4rem;
        --font-size-5xl: 2.25rem;
        --font-size-4xl: 1.875rem;
        --font-size-3xl: 1.5rem;
        --container-padding: var(--space-md);
    }
    
    /* Header */
    .navbar {
        padding: 0.75rem var(--space-md);
        height: 70px;
    }
    
    .logo img {
        width: 40px;
        height: 40px;
    }
    
    .logo-text {
        font-size: var(--font-size-lg);
    }
    
    /* Sections */
    .section {
        padding: var(--space-2xl) 0;
    }
    
    .section-header {
        margin-bottom: var(--space-2xl);
    }
    
    /* Hero Section */
    .hero {
        min-height: auto;
        padding: 100px var(--space-md) var(--space-2xl);
    }
    
    .hero-badge {
        font-size: var(--font-size-xs);
        padding: var(--space-xs) var(--space-md);
    }
    
    .video-container {
        height: 300px;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-scroll-indicator {
        display: none;
    }
    
    /* Cards */
    .announcement-grid,
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .announcement-image,
    .service-image {
        height: 220px;
    }
    
    /* Packages - Horizontal Scroll */
    .packages-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: var(--space-lg);
        padding: var(--space-md) var(--space-xs);
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: var(--primary-color) rgba(0, 0, 0, 0.1);
    }
    
    .package-card {
        flex: 0 0 85%;
        scroll-snap-align: center;
        padding: var(--space-lg);
    }
    
    /* Scrollbar styling */
    .packages-grid::-webkit-scrollbar {
        height: 6px;
    }
    
    .packages-grid::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.05);
        border-radius: var(--radius-full);
        margin: 0 var(--space-md);
    }
    
    .packages-grid::-webkit-scrollbar-thumb {
        background: var(--primary-gradient);
        border-radius: var(--radius-full);
    }
    
    .packages-scroll-hint {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: var(--space-sm);
        margin-top: var(--space-lg);
        color: var(--text-muted);
        font-size: var(--font-size-sm);
    }
    
    /* About */
    .about-highlight {
        flex-direction: column;
        text-align: center;
        padding: var(--space-lg);
    }
    
    .highlight-icon {
        margin: 0 auto;
    }
    
    .about-image-wrapper img {
        height: 250px;
    }
    
    /* Contact */
    .contact-info-wrapper {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        padding: var(--space-lg);
    }
    
    .contact-icon {
        margin: 0 auto;
    }
    
    .map-container iframe {
        height: 350px;
    }
    
    /* Back to Top */
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: var(--space-md);
        right: var(--space-md);
    }
}

/* ===== Small Mobile (320px - 479px) ===== */
@media screen and (max-width: 479px) {
    :root {
        --space-xl: 2rem;
        --space-2xl: 2.5rem;
        --space-3xl: 3rem;
        --font-size-5xl: 2rem;
        --font-size-4xl: 1.75rem;
    }
    
    .hero-title {
        font-size: clamp(2rem, 10vw, 2.5rem);
    }
    
    .hero-subtitle {
        font-size: clamp(1.5rem, 8vw, 2rem);
    }
    
    .package-card {
        flex: 0 0 90%;
    }
    
    .announcement-image,
    .service-image {
        height: 200px;
    }
    
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: var(--font-size-sm);
    }
}

/* ===== Landscape Mobile Optimization ===== */
@media screen and (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 100px var(--space-md) var(--space-lg);
    }
    
    .hero-scroll-indicator {
        display: none;
    }
    
    .video-container {
        height: 250px;
    }
}

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

/* ===== Print Styles ===== */
@media print {
    .site-header,
    .hero-scroll-indicator,
    .back-to-top,
    .menu-toggle {
        display: none !important;
    }
    
    .section {
        page-break-inside: avoid;
    }
}

/* Small Mobile - 480px and below */
@media screen and (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
        letter-spacing: -1px;
    }
    
    .hero-subtitle {
        font-size: 1.6rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
    
    .btn {
        padding: 0.85rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .package-icon {
        width: 70px;
        height: 70px;
    }
    
    .package-icon i {
        font-size: 2rem;
    }
    
    .package-header h3 {
        font-size: 1.3rem;
    }
    
    .video-container {
        height: 250px;
    }
}

/* Landscape mode for mobile */
@media screen and (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 100px 1rem 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-scroll-indicator {
        display: none;
    }
    
    .video-container {
        height: 280px;
    }
}

/* High resolution displays */
@media screen and (min-width: 1920px) {
    .container {
        max-width: 1600px;
    }
    
    .hero-title {
        font-size: 5.5rem;
    }
    
    .hero-subtitle {
        font-size: 4.5rem;
    }
    
    .section-header h2 {
        font-size: 3.5rem;
    }
}

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

/* Print styles */
@media print {
    .navbar,
    .hero-buttons,
    .hero-scroll-indicator,
    .back-to-top,
    footer .social-links {
        display: none !important;
    }
    
    .section {
        page-break-inside: avoid;
    }
    
    * {
        box-shadow: none !important;
        text-shadow: none !important;
    }
}
