/* Responsive Styles - Mobile First Approach */

/* Tablet Styles (768px and up) */
@media (max-width: 1024px) {
    h1 {
        font-size: 2.75rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero-visual {
        position: relative;
        width: 100%;
        margin-top: var(--spacing-xl);
    }
    
    .hero-section .container {
        display: flex;
        flex-direction: column;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .dashboard-container {
        grid-template-columns: 1fr;
    }
}

/* Mobile Styles (768px and down) */
@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    h1 {
        font-size: 2.25rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    /* Navigation */
    .nav-menu,
    .nav-cta {
        display: none;
    }
    
    .hamburger-menu {
        display: flex;
    }
    
    /* Mobile Menu Active State */
    .nav-menu.active {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--white);
        padding: var(--spacing-lg);
        box-shadow: var(--shadow-lg);
        z-index: 1000;
    }
    
    /* Hero Section */
    .hero-section {
        padding-top: 6rem;
        padding-bottom: var(--spacing-xl);
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--spacing-lg);
    }
    
    /* Bento Grid */
    .bento-grid {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-sm);
        text-align: center;
    }
    
    .footer-links-bottom {
        justify-content: center;
    }
    
    /* Floating Buttons */
    .floating-buttons {
        bottom: 5rem;
        right: 1rem;
    }
    
    .floating-button {
        width: 50px;
        height: 50px;
    }
    
    /* Mobile Sticky Bar */
    .mobile-sticky-bar {
        display: flex;
    }
    
    /* Cookie Notice */
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
}

/* Small Mobile Styles (480px and down) */
@media (max-width: 480px) {
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .btn-large {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .service-card,
    .dashboard-widget {
        padding: var(--spacing-lg);
    }
    
    .cta-form {
        padding: var(--spacing-lg);
    }
    
    .floating-buttons {
        bottom: 4rem;
    }
}

/* Large Desktop Styles (1440px and up) */
@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }
    
    h1 {
        font-size: 4rem;
    }
    
    .hero-title {
        font-size: 4rem;
    }
}

/* Print Styles */
@media print {
    .floating-buttons,
    .mobile-sticky-bar,
    .cookie-notice {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }
    
    .btn {
        border: 1px solid #000;
        color: #000;
        background: none;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    .hero-section {
        padding-top: 2rem;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0000FF;
        --accent-color: #FF0000;
        --white: #FFFFFF;
        --dark: #000000;
    }
    
    .gradient-text {
        background: none;
        color: var(--primary-color);
    }
}

/* Reduced Motion Support */
@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;
    }
    
    .dashboard-preview,
    .widget-chart::before {
        animation: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --white: #121212;
        --light-bg: #1e1e1e;
        --light-gray: #2d2d2d;
        --gray: #8a8a8a;
        --dark-gray: #b0b0b0;
        --dark: #ffffff;
    }
    
    .main-header {
        background: rgba(30, 30, 30, 0.95);
    }
    
    .service-card,
    .dashboard-widget,
    .faq-item {
        background: #2d2d2d;
        border-color: #3d3d3d;
    }
    
    .hero-gradient {
        background: radial-gradient(circle at 70% 50%, rgba(67, 97, 238, 0.2) 0%, transparent 50%);
    }
}

/* Landscape Mode Optimization */
@media (max-height: 600px) and (orientation: landscape) {
    .hero-section {
        padding-top: 5rem;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: var(--spacing-md);
    }
    
    .hero-cta {
        margin-bottom: var(--spacing-md);
    }
}