/* ================================================================
   BrimmaTech - Responsive Styles
   Mobile-first responsive design
   ================================================================ */

/* ================ TABLET & BELOW (768px) ================ */
@media (max-width: 768px) {

    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(10, 14, 39, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 2rem;
        gap: 0;
        transition: left 0.3s ease;
        border-top: 1px solid rgba(0, 212, 255, 0.3);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        width: 100%;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(0, 212, 255, 0.1);
    }

    .nav-link {
        display: block;
        width: 100%;
        text-align: center;
        font-size: 1.2rem;
    }

    .mobile-toggle {
        display: flex;
    }

    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }

    /* Hero */
    .hero {
        padding: 100px 1rem 2rem;
        min-height: auto;
    }

    .hero-content {
        padding: 0 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    /* Section Spacing */
    .section {
        padding: 3rem 0;
    }

    /* Services Grid */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Portfolio Grid */
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Contact */
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Container Padding */
    .container {
        padding: 0 1rem;
    }

    /* Cards */
    .card {
        padding: 1.5rem;
    }

    /* Typography */
    h2 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.4rem;
    }

    /* Buttons */
    .btn {
        padding: 0.8rem 2rem;
        font-size: 0.9rem;
    }
}

/* ================ MOBILE (480px) ================ */
@media (max-width: 480px) {
    :root {
        --spacing-xs: 0.4rem;
        --spacing-sm: 0.8rem;
        --spacing-md: 1.5rem;
        --spacing-lg: 2.5rem;
        --spacing-xl: 3.5rem;
    }

    .logo {
        font-size: 1.4rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.85rem;
    }
}

/* ================ LARGE SCREENS (1400px+) ================ */
@media (min-width: 1400px) {
    .container {
        max-width: 1600px;
    }

    .hero h1 {
        font-size: 4.5rem;
    }

    .hero p {
        font-size: 1.5rem;
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .portfolio-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ================ LANDSCAPE MOBILE ================ */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 120px 2rem 3rem;
    }

    .nav-menu {
        height: auto;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
}

/* ================ PRINT STYLES ================ */
@media print {

    .navbar,
    .mobile-toggle,
    .hero-buttons,
    .btn,
    .footer {
        display: none;
    }

    body {
        background: #ffffff;
        color: #000000;
    }

    .card {
        border: 1px solid #cccccc;
        page-break-inside: avoid;
    }
}