/* Responsive Design - Aurora Midnite Network */

/* Tablet: 768px - 1199px */
@media (max-width: 1024px) {
    .header-container {
        padding: 0 1.5rem;
    }

    .logo h1 {
        font-size: 1.5rem;
    }

    .logo .tagline {
        font-size: 0.75rem;
    }

    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }

    .nav {
        gap: 1.5rem;
    }

    .nav-link {
        font-size: 0.95rem;
        padding: 0.4rem 0.8rem;
    }

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

    .grid-cols-2 {
        grid-template-columns: 1fr;
    }

    .card, .service-card, .portfolio-card {
        padding: 1.5rem;
    }

    .btn-primary, .btn-secondary {
        padding: 0.6rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* Mobile: 480px - 767px */
@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
        padding: 0 1rem;
    }

    .logo h1 {
        font-size: 1.3rem;
    }

    .logo .tagline {
        font-size: 0.7rem;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
        padding: 1rem;
        width: 100%;
        z-index: 1000;
    }

    .nav.open {
        display: flex;
    }

    .nav-link {
        width: 100%;
        text-align: left;
        padding: 1rem;
        border-radius: 0;
        border: none;
        font-size: 1rem;
    }

    .nav-link.active {
        background-color: rgba(255, 255, 255, 0.2);
        border-left: 4px solid white;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.2rem; }
    h4 { font-size: 1rem; }

    .section {
        padding: 2rem 1rem;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .section-header p {
        font-size: 1rem;
    }

    .hero {
        padding: 2rem 1rem;
        min-height: 60vh;
    }

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

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

    .hero-features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

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

    .service-card, .portfolio-card, .feature-card {
        padding: 1.5rem;
    }

    .portfolio-header-card {
        flex-direction: column;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-info, .contact-form {
        padding: 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer {
        padding: 2rem 1rem 1rem;
    }

    .footer-section h3 {
        font-size: 1.1rem;
    }

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

    .footer-section p,
    .footer-section a {
        font-size: 0.9rem;
    }

    .approach-list {
        grid-template-columns: 1fr;
    }

    .why-choose-grid {
        grid-template-columns: 1fr;
    }

    .tech-stack {
        grid-template-columns: 1fr;
    }

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

    .error-code {
        font-size: 4rem;
    }

    .error-title {
        font-size: 1.5rem;
    }

    .error-description {
        font-size: 1rem;
    }

    .error-actions {
        flex-direction: column;
    }

    .error-actions .btn-primary,
    .error-actions .btn-secondary {
        width: 100%;
    }
}

/* Small Mobile: < 480px */
@media (max-width: 480px) {
    .header-container {
        padding: 0 0.75rem;
    }

    .logo h1 {
        font-size: 1.1rem;
    }

    .logo .tagline {
        font-size: 0.65rem;
    }

    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.2rem; }
    h3 { font-size: 1rem; }
    h4 { font-size: 0.9rem; }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        padding: 0.6rem 1.5rem;
        font-size: 0.95rem;
    }

    .footer {
        padding: 1.5rem 0.75rem 0.75rem;
    }

    .footer-content {
        gap: 1rem;
    }

    .footer-section h3 {
        font-size: 1rem;
    }

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

    .footer-section p,
    .footer-section a {
        font-size: 0.85rem;
    }

    .social-links a {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .grid-cols-3 {
        grid-template-columns: 1fr;
    }

    .grid-cols-2 {
        grid-template-columns: 1fr;
    }

    .card, .service-card, .portfolio-card, .feature-card {
        padding: 1.25rem;
    }

    .max-w-2xl, .max-w-3xl, .max-w-4xl {
        max-width: 100%;
        padding: 0 1rem;
    }

    input, textarea, select {
        font-size: 16px;
    }

    table {
        font-size: 0.85rem;
    }

    th, td {
        padding: 0.75rem 0.5rem;
    }
}

/* Extra Small: < 360px */
@media (max-width: 360px) {
    .logo h1 {
        font-size: 1rem;
    }

    .logo .tagline {
        font-size: 0.6rem;
    }

    h1 { font-size: 1.3rem; }
    h2 { font-size: 1rem; }
    h3 { font-size: 0.9rem; }

    .footer-section h3 {
        font-size: 0.95rem;
    }

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

/* Print Styles */
@media print {
    .header,
    .footer,
    .mobile-menu-btn {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    a {
        color: black;
        text-decoration: underline;
    }

    .main-content {
        padding: 0;
    }
}

/* High DPI Screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    body {
        -webkit-font-smoothing: subpixel-antialiased;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --light-bg: #1a1a2e;
        --text-dark: #e0e0e0;
        --text-light: #b0b0b0;
        --border-color: #333333;
    }

    body {
        background-color: var(--light-bg);
        color: var(--text-dark);
    }
}

