/* ==========================================================================
   Advanced Responsive Design - Complete Device Optimization
   Optimized for all devices from 320px to 4K displays
   ========================================================================== */

/* Performance optimizations */
@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;
    }
    
    .feature-icon::before,
    .hero-scroll .scroll-indicator,
    .loading-spinner {
        animation: none !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --gold-primary: #FFD700;
        --gold-light: #FFFF99;
        --white-pure: #FFFFFF;
        --primary-black: #000000;
    }
    
    .navbar,
    .feature-card,
    .menu-item {
        border-width: 2px;
    }
}

/* Dark mode preference support */
@media (prefers-color-scheme: dark) {
    :root {
        --primary-black: #000000;
        --rich-black: #0a0a0a;
        --white-soft: #f0f0f0;
    }
}

/* ==========================================================================
   Extra Large Screens (4K and Ultra-Wide)
   ========================================================================== */
@media (min-width: 1920px) {
    :root {
        --section-padding: 150px 0;
        --container-padding: 0 40px;
        --navbar-height: 100px;
    }
    
    .container {
        max-width: 1600px;
    }
    
    .container-wide {
        max-width: 1800px;
    }
    
    .hero {
        min-height: 90vh;
    }
    
    .hero-title-main {
        font-size: clamp(4rem, 8vw, 8rem);
    }
    
    .features-grid,
    .menu-preview-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 3rem;
    }
    
    .section-title {
        font-size: clamp(3rem, 5vw, 5rem);
    }
}

/* ==========================================================================
   Large Desktop Screens
   ========================================================================== */
@media (min-width: 1440px) and (max-width: 1919px) {
    :root {
        --section-padding: 120px 0;
        --container-padding: 0 30px;
    }
    
    .container {
        max-width: 1320px;
    }
    
    .features-grid,
    .menu-preview-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .hero-title-main {
        font-size: clamp(3.5rem, 6vw, 6rem);
    }
}

/* ==========================================================================
   Standard Desktop Screens
   ========================================================================== */
@media (min-width: 1200px) and (max-width: 1439px) {
    :root {
        --section-padding: 100px 0;
        --container-padding: 0 25px;
    }
    
    .container {
        max-width: 1140px;
    }
    
    .hero {
        min-height: 80vh;
    }
}

/* ==========================================================================
   Small Laptops and Large Tablets
   ========================================================================== */
@media (min-width: 1025px) and (max-width: 1199px) {
    :root {
        --section-padding: 90px 0;
        --container-padding: 0 25px;
    }
    
    .container {
        max-width: 960px;
    }
    
    .features-grid,
    .menu-preview-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
    
    .hero {
        min-height: 75vh;
    }
    
    .hero-title-main {
        font-size: clamp(3rem, 5vw, 4.5rem);
    }
}

/* ==========================================================================
   Tablets and Small Laptops
   ========================================================================== */
@media (min-width: 769px) and (max-width: 1024px) {
    :root {
        --section-padding: 80px 0;
        --container-padding: 0 25px;
        --navbar-height: 75px;
    }
    
    .container {
        max-width: 720px;
    }
    
    .nav-container {
        padding: 1rem 1.5rem;
    }
    
    .hero {
        min-height: 70vh;
    }
    
    .hero-title-main {
        font-size: clamp(2.5rem, 6vw, 4rem);
    }
    
    .features-grid,
    .menu-preview-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .page-header {
        height: 50vh;
        min-height: 350px;
    }
    
    /* Enhanced touch targets for tablets */
    .btn-primary,
    .btn-secondary {
        min-height: 48px;
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .nav-link {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }
}

/* ==========================================================================
   Large Mobile Devices (Landscape tablets and large phones)
   ========================================================================== */
@media (min-width: 641px) and (max-width: 768px) {
    :root {
        --section-padding: 70px 0;
        --container-padding: 0 20px;
        --navbar-height: 70px;
    }
    
    .container {
        max-width: 100%;
    }
    
    .hero {
        min-height: 65vh;
        padding-top: 90px;
        padding-bottom: 60px;
    }
    
    .hero-title-main {
        font-size: clamp(2.25rem, 7vw, 3.5rem);
    }
    
    .features-grid,
    .menu-preview-grid,
    .chefs-grid,
    .awards-grid,
    .event-types-grid,
    .packages-grid,
    .rooms-grid,
    .reviews-grid,
    .contact-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* ==========================================================================
   Mobile Devices (Standard smartphones)
   ========================================================================== */
@media (max-width: 640px) {
    :root {
        --section-padding: 60px 0;
        --container-padding: 0 20px;
        --navbar-height: 70px;
    }
    
    /* Typography adjustments for mobile */
    h1 {
        font-size: clamp(2rem, 6vw, 3.5rem);
        line-height: 1.1;
    }
    
    h2 {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
        line-height: 1.2;
    }
    
    h3 {
        font-size: clamp(1.5rem, 4vw, 2rem);
        line-height: 1.2;
    }
    
    p {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    /* Enhanced mobile navigation */
    .nav-container {
        padding: 1rem 1.5rem;
    }
    
    .nav-menu {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(0, 0, 0, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        box-shadow: var(--shadow-heavy);
        border-top: 2px solid rgba(212, 175, 55, 0.3);
        overflow-y: auto;
        z-index: 999;
    }
    
    .nav-menu.active {
        display: flex;
        animation: slideDown 0.3s ease-out;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .nav-toggle {
        display: flex;
        z-index: 1001;
        flex-direction: column;
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 8px;
    }
    
    .nav-toggle .bar {
        width: 100%;
        height: 3px;
        background: var(--gold-primary);
        margin: 2px 0;
        border-radius: 2px;
        transition: var(--transition-fast);
    }
    
    .nav-link {
        font-size: 1.125rem;
        text-align: center;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(212, 175, 55, 0.1);
        min-height: 56px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    /* Enhanced hero section for mobile */
    .hero {
        min-height: 85vh;
        height: auto;
        padding: 90px 0 60px;
        display: flex;
        align-items: center;
    }
    
    .hero-container {
        padding: 0 1rem;
        width: 100%;
    }
    
    .hero-content {
        text-align: center;
        max-width: 100%;
    }
    
    .hero-title-main {
        font-size: clamp(2rem, 8vw, 3.5rem);
        margin-bottom: 0.5rem;
        letter-spacing: 0.02em;
    }
    
    .hero-title-sub {
        font-size: clamp(1rem, 4vw, 1.5rem);
        margin-bottom: 1.5rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
        margin-bottom: 2.5rem;
        max-width: 100%;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        width: 100%;
    }
    
    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
        padding: 1.25rem 2rem;
        font-size: 1.05rem;
        min-height: 56px;
    }
    
    /* Page header mobile optimization */
    .page-header {
        height: 45vh;
        min-height: 320px;
        padding-top: 90px;
    }
    
    .page-header-content {
        padding: 0 1rem;
        text-align: center;
    }
    
    .page-title {
        font-size: clamp(2rem, 7vw, 3rem);
        margin-bottom: 1rem;
    }
    
    .page-subtitle {
        font-size: 1.1rem;
        max-width: 100%;
    }
    
    /* Enhanced cards for mobile */
    .card {
        padding: 1.75rem;
        margin-bottom: 1.5rem;
        border-radius: var(--border-radius-large);
    }
    
    .card-title {
        font-size: 1.375rem;
        margin-bottom: 1rem;
    }
    
    /* Optimized grid layouts for mobile */
    .features-grid,
    .menu-preview-grid,
    .chefs-grid,
    .awards-grid,
    .event-types-grid,
    .packages-grid,
    .rooms-grid,
    .reviews-grid,
    .contact-cards {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 2rem;
    }
    
    /* Feature cards mobile optimization */
    .feature-card {
        padding: 2.5rem 2rem;
        text-align: center;
    }
    
    .feature-icon {
        width: 75px;
        height: 75px;
        margin: 0 auto 1.75rem;
    }
    
    .feature-icon i {
        font-size: 2.25rem;
    }
    
    /* Menu items mobile */
    .menu-item-image {
        height: 240px;
    }
    
    .menu-item-content {
        padding: 2rem 1.75rem;
    }
    
    .menu-item-content h3 {
        font-size: 1.375rem;
        margin-bottom: 1rem;
    }
    
    .price {
        font-size: 1.375rem;
        padding: 0.5rem 1rem;
    }
    
    /* Section headers mobile */
    .section-header {
        margin-bottom: 3rem;
        text-align: center;
    }
    
    .section-title {
        font-size: clamp(1.875rem, 6vw, 2.5rem);
        margin-bottom: 1rem;
    }
    
    .section-description {
        font-size: 1.05rem;
        max-width: 100%;
        margin: 0 auto 1.5rem;
    }
    
    .section-divider {
        width: 100px;
        margin: 2rem auto;
    }
    
    /* Enhanced footer for mobile */
    .footer {
        padding: 4rem 0 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }
    
    .footer-section h3,
    .footer-section h4 {
        font-size: 1.25rem;
        margin-bottom: 1.25rem;
        color: var(--gold-primary);
    }
    
    .footer-description {
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 2rem;
    }
    
    .social-links {
        justify-content: center;
        gap: 1.5rem;
        margin-top: 1.5rem;
    }
    
    .social-link {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
    
    /* Contact info mobile */
    .contact-info p,
    .opening-hours p {
        font-size: 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .contact-info i,
    .opening-hours i {
        color: var(--gold-primary);
        width: 20px;
    }
}

/* ==========================================================================
   Large Mobile Phones (414px and larger)
   ========================================================================== */
@media (min-width: 415px) and (max-width: 640px) {
    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        max-width: 320px;
        padding: 1.25rem 2.25rem;
    }
    
    .hero-title-main {
        font-size: clamp(2.25rem, 7vw, 3.75rem);
    }
    
    .feature-icon {
        width: 80px;
        height: 80px;
    }
    
    .feature-icon i {
        font-size: 2.5rem;
    }
    
    .menu-item-image {
        height: 260px;
    }
}

/* ==========================================================================
   Standard Mobile Phones (375px to 414px)
   ========================================================================== */
@media (min-width: 376px) and (max-width: 414px) {
    .hero-title-main {
        font-size: clamp(2rem, 8vw, 3.25rem);
    }
    
    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        max-width: 300px;
        padding: 1.125rem 2rem;
    }
    
    .feature-card {
        padding: 2.25rem 1.75rem;
    }
    
    .menu-item-image {
        height: 240px;
    }
}

/* ==========================================================================
   Small Mobile Phones (320px to 375px)
   ========================================================================== */
@media (max-width: 375px) {
    :root {
        --section-padding: 50px 0;
        --container-padding: 0 15px;
        --navbar-height: 65px;
    }
    
    /* Enhanced logo for small screens */
    .logo-image {
        width: 40px;
        height: 40px;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
    
    .logo-tagline {
        font-size: 0.65rem;
    }
    
    /* Navigation optimizations */
    .nav-container {
        padding: 0.875rem 1rem;
    }
    
    .nav-menu {
        top: 65px;
        height: calc(100vh - 65px);
        padding: 1.5rem;
        gap: 1rem;
    }
    
    .nav-toggle {
        width: 40px;
        height: 40px;
        padding: 6px;
    }
    
    .nav-link {
        font-size: 1.05rem;
        padding: 0.875rem 0;
        min-height: 52px;
    }
    
    /* Hero optimizations for small screens */
    .hero {
        min-height: 80vh;
        padding: 85px 0 50px;
    }
    
    .hero-container {
        padding: 0 0.75rem;
    }
    
    .hero-title-main {
        font-size: clamp(1.875rem, 10vw, 3rem);
        letter-spacing: 0.01em;
        margin-bottom: 0.75rem;
    }
    
    .hero-title-sub {
        font-size: clamp(0.95rem, 4vw, 1.25rem);
        margin-bottom: 1.25rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 2rem;
        line-height: 1.6;
    }
    
    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        max-width: 280px;
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
        min-height: 52px;
    }
    
    /* Page header for small screens */
    .page-header {
        height: 40vh;
        min-height: 260px;
        padding-top: 85px;
    }
    
    .page-title {
        font-size: clamp(1.75rem, 8vw, 2.75rem);
    }
    
    .page-subtitle {
        font-size: 0.95rem;
    }
    
    /* Content optimizations */
    .card {
        padding: 1.25rem;
        border-radius: var(--border-radius-medium);
    }
    
    .card-title {
        font-size: 1.25rem;
    }
    
    /* Feature cards for small screens */
    .feature-card {
        padding: 2rem 1.25rem;
    }
    
    .feature-icon {
        width: 65px;
        height: 65px;
        margin-bottom: 1.25rem;
    }
    
    .feature-icon i {
        font-size: 2rem;
    }
    
    .feature-card h3 {
        font-size: 1.25rem;
    }
    
    .feature-card p {
        font-size: 0.95rem;
    }
    
    /* Menu items for small screens */
    .menu-preview-grid {
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .menu-item-image {
        height: 200px;
    }
    
    .menu-item-content {
        padding: 1.5rem 1.25rem;
    }
    
    .menu-item-content h3 {
        font-size: 1.25rem;
    }
    
    .price {
        font-size: 1.25rem;
        padding: 0.4rem 0.75rem;
    }
    
    /* Section headers for small screens */
    .section-header {
        margin-bottom: 2.5rem;
    }
    
    .section-title {
        font-size: clamp(1.625rem, 7vw, 2.25rem);
    }
    
    .section-description {
        font-size: 0.95rem;
    }
    
    .section-divider {
        width: 80px;
        margin: 1.5rem auto;
    }
    
    /* Footer optimizations for small screens */
    .footer {
        padding: 3rem 0 2rem;
        margin-top: 3rem;
    }
    
    .footer-content {
        gap: 2rem;
    }
    
    .footer-section h3,
    .footer-section h4 {
        font-size: 1.125rem;
        margin-bottom: 1rem;
    }
    
    .footer-description {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
        line-height: 1.6;
    }
    
    .social-links {
        gap: 1rem;
        margin-top: 1rem;
    }
    
    .social-link {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }
    
    .contact-info p,
    .opening-hours p {
        font-size: 0.9rem;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }
    
    .footer-bottom {
        padding-top: 1.5rem;
        font-size: 0.875rem;
    }
    
    /* Button optimizations */
    .btn-primary,
    .btn-secondary {
        padding: 0.95rem 1.5rem;
        font-size: 0.95rem;
        min-height: 50px;
    }
}

/* ==========================================================================
   Extra Small Devices (320px and below)
   ========================================================================== */
@media (max-width: 320px) {
    :root {
        --container-padding: 0 12px;
        --section-padding: 40px 0;
        --navbar-height: 60px;
    }
    
    /* Ultra-compact logo */
    .logo-image {
        width: 35px;
        height: 35px;
    }
    
    .logo-text {
        font-size: 1.25rem;
    }
    
    .logo-tagline {
        font-size: 0.6rem;
    }
    
    /* Ultra-compact navigation */
    .nav-container {
        padding: 0.75rem 0.875rem;
    }
    
    .nav-menu {
        top: 60px;
        height: calc(100vh - 60px);
        padding: 1.25rem;
    }
    
    .nav-toggle {
        width: 36px;
        height: 36px;
        padding: 5px;
    }
    
    .nav-link {
        font-size: 1rem;
        padding: 0.75rem 0;
        min-height: 48px;
    }
    
    /* Ultra-compact hero */
    .hero {
        min-height: 75vh;
        padding: 80px 0 40px;
    }
    
    .hero-container,
    .page-header-content {
        padding: 0 0.5rem;
    }
    
    .hero-title-main {
        font-size: clamp(1.625rem, 12vw, 2.75rem);
        margin-bottom: 0.5rem;
    }
    
    .hero-title-sub {
        font-size: clamp(0.875rem, 4vw, 1.125rem);
        margin-bottom: 1rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 1.75rem;
    }
    
    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        max-width: 250px;
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
        min-height: 48px;
    }
    
    /* Ultra-compact content */
    .page-header {
        height: 35vh;
        min-height: 240px;
        padding-top: 80px;
    }
    
    .page-title {
        font-size: clamp(1.5rem, 9vw, 2.5rem);
    }
    
    .page-subtitle {
        font-size: 0.9rem;
    }
    
    .feature-card,
    .card {
        padding: 1.25rem 1rem;
    }
    
    .feature-icon {
        width: 55px;
        height: 55px;
        margin-bottom: 1rem;
    }
    
    .feature-icon i {
        font-size: 1.75rem;
    }
    
    .feature-card h3 {
        font-size: 1.125rem;
    }
    
    .feature-card p {
        font-size: 0.9rem;
    }
    
    .menu-item-content {
        padding: 1.25rem 1rem;
    }
    
    .menu-item-image {
        height: 180px;
    }
    
    .menu-item-content h3 {
        font-size: 1.125rem;
    }
    
    .price {
        font-size: 1.125rem;
        padding: 0.375rem 0.625rem;
    }
    
    /* Ultra-compact sections */
    .section-header {
        margin-bottom: 2rem;
    }
    
    .section-title {
        font-size: clamp(1.5rem, 8vw, 2rem);
    }
    
    .section-description {
        font-size: 0.9rem;
    }
    
    .section-divider {
        width: 70px;
        margin: 1.25rem auto;
    }
    
    /* Ultra-compact footer */
    .footer {
        padding: 2.5rem 0 1.5rem;
    }
    
    .footer-content {
        gap: 1.75rem;
    }
    
    .footer-section h3,
    .footer-section h4 {
        font-size: 1.05rem;
    }
    
    .footer-description {
        font-size: 0.85rem;
    }
    
    .social-link {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
    
    .contact-info p,
    .opening-hours p {
        font-size: 0.85rem;
        flex-direction: column;
        align-items: center;
        gap: 0.375rem;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
        min-height: 46px;
    }
}

/* ==========================================================================
   Landscape Orientation Optimizations
   ========================================================================== */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        height: auto;
        padding: 60px 0 40px;
    }
    
    .hero-title-main {
        font-size: clamp(2rem, 8vw, 3rem);
        margin-bottom: 0.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: row;
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        flex: 0 1 auto;
        min-width: 200px;
        max-width: 250px;
    }
    
    .page-header {
        height: 60vh;
        min-height: 300px;
    }
    
    .features,
    .menu-preview {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
}

/* ==========================================================================
   iPhone SE and smaller landscape
   ========================================================================== */
@media (max-height: 450px) and (orientation: landscape) and (max-width: 667px) {
    .hero {
        min-height: 100vh;
        padding: 50px 0 30px;
    }
    
    .hero-title-main {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }
    
    .hero-title-sub {
        font-size: clamp(0.9rem, 3vw, 1.25rem);
    }
    
    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
    }
}

/* ==========================================================================
   High DPI Display Optimizations
   ========================================================================== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Enhanced text rendering for high DPI screens */
    body,
    .feature-icon,
    .social-link,
    .logo-text,
    .hero-title-main,
    .section-title {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-rendering: optimizeLegibility;
    }
    
    /* Sharper borders for high DPI */
    .feature-card,
    .menu-item,
    .card,
    .navbar {
        border-width: 0.5px;
    }
    
    /* Enhanced shadows for high DPI */
    .feature-card:hover,
    .menu-item:hover {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 0 40px rgba(212, 175, 55, 0.2);
    }
}

/* ==========================================================================
   Touch Device Optimizations
   ========================================================================== */
@media (hover: none) and (pointer: coarse) {
    /* Disable hover effects on touch devices */
    .btn-primary:hover,
    .btn-secondary:hover,
    .nav-link:hover,
    .feature-card:hover,
    .menu-item:hover,
    .card:hover,
    .social-link:hover {
        transform: none;
        box-shadow: inherit;
    }
    
    /* Enhanced touch feedback */
    .btn-primary:active,
    .btn-secondary:active {
        transform: scale(0.96);
        transition: transform 0.1s ease;
    }
    
    .feature-card:active,
    .menu-item:active,
    .card:active {
        transform: translateY(-4px) scale(0.98);
        transition: transform 0.1s ease;
    }
    
    .nav-link:active {
        background: rgba(212, 175, 55, 0.1);
        transition: background 0.1s ease;
    }
    
    .social-link:active {
        transform: scale(0.9);
        transition: transform 0.1s ease;
    }
    
    /* Larger touch targets for better usability */
    .nav-link,
    .btn-primary,
    .btn-secondary,
    .social-link {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Remove complex animations on touch devices for performance */
    .feature-icon::before,
    body::before,
    body::after {
        animation-duration: 0.5s;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */
@media print {
    * {
        background: transparent !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.3;
    }
    
    .navbar,
    .hero-buttons,
    .social-links,
    .nav-toggle {
        display: none !important;
    }
    
    .hero {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .section-padding {
        padding: 1rem 0;
    }
    
    .page-header {
        height: auto;
        min-height: auto;
        padding: 1rem 0;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
}

/* ==========================================================================
   Accessibility Enhancements
   ========================================================================== */
@media (prefers-reduced-transparency: reduce) {
    .navbar,
    .nav-menu,
    .feature-card,
    .menu-item,
    .card {
        backdrop-filter: none;
        background: rgba(26, 26, 26, 0.95);
    }
}

/* Enhanced focus indicators for keyboard navigation */
@media (prefers-reduced-motion: no-preference) {
    .btn-primary:focus,
    .btn-secondary:focus,
    .nav-link:focus,
    .social-link:focus {
        outline: 2px solid var(--gold-primary);
        outline-offset: 2px;
        box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.2);
    }
}

/* Performance optimization for older devices */
@media (max-width: 640px) and (max-device-width: 640px) {
    /* Reduce complex backgrounds on older mobile devices */
    body::before,
    body::after {
        display: none;
    }
    
    /* Simplify animations */
    .feature-icon::before {
        animation: none;
    }
    
    /* Reduce blur effects */
    .navbar,
    .nav-menu {
        backdrop-filter: none;
    }
}
