/* Mobile First Responsive Design */
@media (max-width: 768px) {
    .header-content {
        padding: 0 1rem;
    }

    .site-title {
        font-size: 1.3rem;
    }



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

    .hero-title-sub {
        font-size: 1.5rem;
    }

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

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

    .cta-button {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .stat-card {
        padding: 1.5rem;
    }

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

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

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

    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .card {
        margin-bottom: 0;

    }

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

    .feature-card {
        padding: 2rem 1.5rem;
    }

    .form-group {
        flex-direction: column;
    }

    .newsletter-form button {
        width: 100%;
        justify-content: center;
    }

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

    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }

    .modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 0 0.75rem;
    }

    .logo {
        width: 35px;
        height: 35px;
    }

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

    .hero-section {
        padding: 1.5rem 0.5rem;
    }

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

    .hero-title-sub {
        font-size: 1.3rem;
    }

    .stats-container {
        grid-template-columns: 1fr;
    }

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

    .card-content {
        padding: 1.25rem;
    }

    .mods-filters {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .footer {
        padding: 3rem 1rem 1.5rem;
    }

    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

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

/* Desktop */
@media (min-width: 1025px) {
    .cards-grid {
        grid-template-columns: repeat(4, 1fr);
    }

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

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

/* Large Desktop */
@media (min-width: 1440px) {
    .cards-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Landscape mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .main-content {
        padding-bottom: 100px;
    }

    .hero-section {
        padding: 1rem 0.5rem;
        min-height: auto;
    }

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

    .hero-title-sub {
        font-size: 1.5rem;
    }

    .hero-actions {
        margin-bottom: 1.5rem;
    }

    .hero-scroll-indicator {
        display: none;
    }
}

/* High DPI Screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Print Styles */
@media print {
    .header, .footer, .sidebar, .hero-scroll-indicator, .back-to-top {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
