/* ==========================================
   MPC Battle AI - Responsive Stylesheet
   ========================================== */

/* Tablet - Medium Screens */
@media screen and (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }

    .section {
        padding: 4rem 0;
    }

    .cta-card {
        grid-template-columns: 1fr;
        padding: 3rem;
    }

    .cta-image-wrapper {
        display: none;
    }

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

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

/* Mobile - Small Screens */
@media screen and (max-width: 768px) {
    /* Navigation Mobile */
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: var(--shadow-lg);
        padding: 2rem;
    }

    .nav-menu.active {
        display: block;
    }

    .nav-links {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-link {
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--gray-100);
    }

    .nav-cta {
        margin-top: 1rem;
        width: 100%;
        text-align: center;
    }

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

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    /* Hero Mobile */
    .hero {
        padding-top: 5rem;
        min-height: auto;
    }

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

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

    .hero-actions {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-actions .btn-primary,
    .hero-actions .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 300px;
    }

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

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

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

    /* About Section Mobile */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* CTA Section Mobile */
    .cta-card {
        padding: 2rem;
    }

    .cta-title {
        font-size: 1.75rem;
    }

    .cta-text {
        font-size: 1rem;
    }

    /* Contact Section Mobile */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Container Mobile */
    .container {
        padding: 0 1rem;
    }

    /* Buttons Mobile */
    .btn-large {
        padding: 0.875rem 1.75rem;
        font-size: 1rem;
    }
}

/* Extra Small Mobile */
@media screen and (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

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

    .hero-badge span {
        font-size: 0.75rem;
    }

    .section {
        padding: 3rem 0;
    }

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

    .about-card {
        padding: 1.5rem;
    }

    .card-title {
        font-size: 1.25rem;
    }
}

/* Large Screens */
@media screen and (min-width: 1440px) {
    .container {
        max-width: 1320px;
    }

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

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

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

/* Print Styles */
@media print {
    .navbar,
    .hero-actions,
    .footer-social,
    .mobile-menu-toggle {
        display: none !important;
    }

    body {
        color: black;
        background: white;
    }

    .hero,
    .section {
        page-break-inside: avoid;
    }
}

/* Landscape Mode Adjustments */
@media screen and (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 4rem 0 3rem;
    }

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

    .hero-stats {
        display: none;
    }
}

/* High Resolution Displays */
@media (-webkit-min-device-pixel-ratio: 2),
       (min-resolution: 192dpi) {
    .hero-pattern {
        background-size: 100px 100px;
    }
}

/* Hover Effects - Desktop Only */
@media (hover: hover) and (pointer: fine) {
    .about-card:hover {
        transform: translateY(-8px);
    }

    .contact-card:hover {
        transform: translateY(-4px);
    }

    .social-link:hover {
        transform: translateY(-4px) rotate(5deg);
    }
}

/* Accessibility - Reduced Motion */
@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;
    }

    .btn-glow {
        animation: none;
    }

    .hero-pattern {
        animation: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --white: #1a1a1a;
        --gray-50: #2a2a2a;
        --gray-100: #3a3a3a;
        --gray-800: #f0f0f0;
        --gray-900: #ffffff;
    }

    body {
        background-color: var(--gray-900);
        color: var(--gray-100);
    }

    .navbar {
        background: rgba(26, 26, 26, 0.95);
    }

    .about-card,
    .contact-card,
    .cta-card {
        background: var(--gray-50);
        border-color: var(--gray-100);
    }

    .footer {
        background: var(--gray-50);
    }
}