/*==============================================
  NeonMatrix Pro - Responsive Styles
  Version: 1.0.0
==============================================*/

/*----------------------------------------------
  Tablet (768px - 1024px)
----------------------------------------------*/
@media (max-width: 1024px) {
    .container {
        padding: 0 var(--spacing-md);
    }

    .hero .container {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .hero-visual {
        order: 1;
    }

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

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

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

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

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

/*----------------------------------------------
  Mobile (max-width: 768px)
----------------------------------------------*/
@media (max-width: 768px) {
    
    /* Typography */
    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .section-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }

    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 280px;
        height: calc(100vh - 70px);
        background: var(--bg-secondary);
        flex-direction: column;
        padding: var(--spacing-xl);
        gap: var(--spacing-lg);
        border-left: 1px solid var(--border);
        border-top-left-radius: 24px;         
        transition: right 0.3s ease;
        overflow-y: auto;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        font-size: 1.1rem;
        padding: 12px 0;
        width: 100%;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-actions {
        gap: var(--spacing-xs);
    }

    .nav-actions .btn {
        display: none;
    }

    /* Hero Section */
    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

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

    .scroll-indicator {
        display: none;
    }

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

    .feature-card {
        padding: var(--spacing-lg);
    }

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

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

    /* Testimonials */
    .testimonials-slider {
        grid-template-columns: 1fr;
    }

    /* CTA */
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cta-buttons .btn {
        width: 100%;
    }

    /* Footer */
    .footer-top {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    /* Back to Top */
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
}

/*----------------------------------------------
  Small Mobile (max-width: 480px)
----------------------------------------------*/
@media (max-width: 480px) {
    :root {
        --spacing-xs: 0.4rem;
        --spacing-sm: 0.8rem;
        --spacing-md: 1.2rem;
        --spacing-lg: 1.6rem;
        --spacing-xl: 2.4rem;
        --spacing-2xl: 3rem;
    }

    body {
        font-size: 14px;
    }
    .logo {
        font-size: 1.3rem;
        gap: 8px;
        font-weight: 900;
        color: var(--text-primary);  
    }
    section {
        padding: 50px 0;
    }

    .container {
        padding: 0 25px;
    }

    /* Hero */
    .hero-badge {
        font-size: 0.75rem;
        padding: 6px 12px;
    }

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

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

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .btn-lg {
        padding: 12px 24px;
        font-size: 0.95rem;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

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

    /* Features */
    .feature-card {
        padding: var(--spacing-md);
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }

    .feature-title {
        font-size: 1.1rem;
    }

    /* Services */
    .service-card {
        padding: var(--spacing-md);
    }

    .service-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
        margin-top: 14px;        
    }

    /* Portfolio */
    .portfolio-image img {
        height: 250px;
    }

    .portfolio-overlay {
        padding: var(--spacing-md);
    }

    /* Section Titles */
    .section-badge {
        font-size: 0.75rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-description {
        font-size: 0.95rem;
    }

    /* Footer */
    .footer {
        padding: 30px 0 20px;
    }

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

    .footer-social a {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
}

/*----------------------------------------------
  Extra Small (max-width: 360px)
----------------------------------------------*/
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }
}

/*----------------------------------------------
  Landscape Mobile
----------------------------------------------*/
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 80px 0 40px;
    }

    .hero-stats {
        display: none;
    }

    .scroll-indicator {
        display: none;
    }

    section {
        padding: 40px 0;
    }
}

/*----------------------------------------------
  Print Styles
----------------------------------------------*/
@media print {
    .navbar,
    .back-to-top,
    .progress-bar,
    .matrix-background,
    .matrix-overlay,
    .floating-card,
    .scroll-indicator {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .section-title,
    .hero-title {
        color: black;
    }
}