/* ==========================================================================
   NorthPeak - Responsive Stylesheet
   Mobile-first responsive design for all devices
   ========================================================================== */

/* ==========================================================================
   Large Desktop (1920px and up)
   ========================================================================== */

@media screen and (min-width: 1920px) {
    .container {
        max-width: 1600px;
    }

    .hero-title {
        font-size: 6rem;
    }

    .hero-subtitle {
        font-size: 2rem;
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .metrics-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ==========================================================================
   Desktop (1440px)
   ========================================================================== */

@media screen and (max-width: 1440px) {
    .hero-title {
        font-size: 4.5rem;
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

/* ==========================================================================
   Laptop (1280px)
   ========================================================================== */

@media screen and (max-width: 1280px) {
    .container {
        max-width: 1200px;
    }

    .hero-title {
        font-size: 4rem;
    }

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

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

/* ==========================================================================
   Tablet Landscape (1024px)
   ========================================================================== */

@media screen and (max-width: 1024px) {
    /* Navigation */
    .nav-menu {
        gap: var(--spacing-lg);
    }

    /* Hero */
    .hero-title {
        font-size: 3.5rem;
    }

    .hero-stats {
        gap: var(--spacing-xl);
    }

    .stat-number {
        font-size: 2.5rem;
    }

    /* Products */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }

    /* Business */
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Contact */
    .contact-content {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ==========================================================================
   Tablet Portrait (768px)
   ========================================================================== */

@media screen and (max-width: 768px) {
    /* Typography */
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    h3 {
        font-size: 2rem;
    }

    /* Navigation */
    .nav-menu {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    /* Hero */
    .hero-section {
        min-height: 100vh;
        padding-top: 60px;
    }

    .hero-title {
        font-size: 2.5rem;
        margin-bottom: var(--spacing-md);
    }

    .hero-subtitle {
        font-size: 1.25rem;
        margin-bottom: var(--spacing-xl);
    }

    .hero-stats {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .stat-item {
        flex-direction: row;
        gap: var(--spacing-sm);
        justify-content: center;
    }

    .stat-number {
        font-size: 2rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 300px;
    }

    /* Sections */
    section {
        padding: var(--spacing-2xl) 0;
    }

    /* Products */
    .product-filters {
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: var(--spacing-sm);
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    /* Technology */
    .tech-categories {
        grid-template-columns: 1fr;
    }

    /* Business */
    .metrics-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .chart-container {
        height: 300px;
    }

    /* Statistics */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }

    /* Contact */
    .contact-content {
        gap: var(--spacing-xl);
    }

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

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    /* Forms */
    .input-group {
        flex-direction: column;
    }

    .input-group input {
        width: 100%;
    }

    .input-group button {
        width: 100%;
    }
}

/* ==========================================================================
   Mobile Landscape (640px)
   ========================================================================== */

@media screen and (max-width: 640px) {
    /* Base */
    body {
        font-size: 0.875rem;
    }

    /* Container */
    .container {
        padding: 0 var(--spacing-lg);
    }

    /* Typography */
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    /* Hero */
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-badge {
        font-size: 0.875rem;
    }

    /* Sections */
    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    /* Products */
    .product-card {
        padding: var(--spacing-lg);
    }

    .product-name {
        font-size: 1.25rem;
    }

    /* Business */
    .metric-value {
        font-size: 2rem;
    }

    /* Statistics */
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-value {
        font-size: 2rem;
    }

    /* Contact */
    .contact-form {
        padding: var(--spacing-lg);
    }

    /* Newsletter */
    .newsletter {
        padding: var(--spacing-lg);
    }
}

/* ==========================================================================
   Mobile Portrait (375px)
   ========================================================================== */

@media screen and (max-width: 375px) {
    /* Container */
    .container {
        padding: 0 var(--spacing-md);
    }

    /* Typography */
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    /* Hero */
    .hero-content {
        padding: 0 var(--spacing-md);
    }

    .hero-title {
        font-size: 1.75rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 0.875rem;
    }

    .hero-badge {
        padding: var(--spacing-xs) var(--spacing-md);
        font-size: 0.75rem;
    }

    /* Buttons */
    .btn-primary,
    .btn-secondary {
        padding: var(--spacing-sm) var(--spacing-lg);
        font-size: 0.875rem;
    }

    /* Products */
    .product-filters {
        gap: var(--spacing-sm);
    }

    .filter-btn {
        padding: var(--spacing-xs) var(--spacing-md);
        font-size: 0.75rem;
    }

    .product-card {
        padding: var(--spacing-md);
    }

    .product-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .product-name {
        font-size: 1.125rem;
    }

    .product-description {
        font-size: 0.875rem;
    }

    /* Tech Stack */
    .tech-category {
        padding: var(--spacing-md);
    }

    .category-title {
        font-size: 1rem;
    }

    .tech-item {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: 0.875rem;
    }

    .tech-item i {
        font-size: 1rem;
    }

    /* Business */
    .metric-card {
        padding: var(--spacing-md);
    }

    .metric-value {
        font-size: 1.75rem;
    }

    .metric-label {
        font-size: 1rem;
    }

    /* Statistics */
    .stat-card {
        padding: var(--spacing-lg);
    }

    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .stat-value {
        font-size: 1.75rem;
    }

    /* Contact */
    .info-card {
        padding: var(--spacing-md);
    }

    .info-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    /* Footer */
    .footer {
        padding: var(--spacing-2xl) 0 var(--spacing-lg);
    }

    .footer-content {
        gap: var(--spacing-lg);
        margin-bottom: var(--spacing-lg);
        padding-bottom: var(--spacing-lg);
    }

    .footer-section h4 {
        font-size: 0.875rem;
    }

    .footer-section ul li a {
        font-size: 0.75rem;
    }

    .footer-bottom p {
        font-size: 0.75rem;
    }

    .footer-social a {
        font-size: 1rem;
    }
}

/* ==========================================================================
   Touch Device Optimizations
   ========================================================================== */

@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects on touch devices */
    .product-card:hover {
        transform: none;
    }

    .nav-link:hover::after {
        width: 0;
    }

    /* Increase tap targets */
    button,
    a {
        min-height: 44px;
        min-width: 44px;
    }

    /* Disable parallax on mobile for performance */
    .parallax-layer {
        transform: none !important;
    }

    /* Simplify animations */
    .gradient-bg {
        animation: none;
        background: radial-gradient(
            ellipse at center,
            rgba(0, 212, 255, 0.15) 0%,
            rgba(123, 47, 247, 0.1) 25%,
            rgba(10, 14, 39, 0) 70%
        );
    }

    /* Hide cursor trail */
    .cursor-trail {
        display: none !important;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    /* Hide non-essential elements */
    .nav-header,
    .hero-background,
    .scroll-indicator,
    .product-filters,
    .social-links,
    .newsletter,
    .footer-social,
    .cursor-trail {
        display: none !important;
    }

    /* Reset colors for print */
    * {
        background: white !important;
        color: black !important;
    }

    /* Ensure content breaks nicely */
    .product-card,
    .metric-card,
    .stat-card {
        page-break-inside: avoid;
    }

    /* Show URLs */
    a[href]:after {
        content: " (" attr(href) ")";
    }
}

/* ==========================================================================
   High DPI Displays
   ========================================================================== */

@media (-webkit-min-device-pixel-ratio: 2),
       (min-resolution: 192dpi) {
    /* Use higher resolution images if available */
    .logo-icon {
        image-rendering: -webkit-optimize-contrast;
    }

    /* Sharper borders */
    .product-card,
    .metric-card,
    .tech-category {
        border-width: 0.5px;
    }
}

/* ==========================================================================
   Dark Mode Support (System Preference)
   ========================================================================== */

@media (prefers-color-scheme: light) {
    /* Override for light mode users if needed */
    /* Currently the site is dark by default */
}

/* ==========================================================================
   Landscape Orientation Specific
   ========================================================================== */

@media screen and (orientation: landscape) and (max-height: 500px) {
    .hero-section {
        min-height: auto;
        padding: var(--spacing-3xl) 0;
    }

    .scroll-indicator {
        display: none;
    }
}