/* ==================== Tablet Styles ==================== */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        gap: 0;
        background: rgba(10, 20, 40, 0.98);
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu a {
        display: block;
        padding: 1rem;
        color: var(--text-light);
    }

    .nav-menu a::after {
        display: none;
    }

    .nav-menu a:hover {
        background: rgba(0, 180, 216, 0.1);
    }

    .hero {
        grid-template-columns: 1fr;
        margin-top: 70px;
        padding: 3rem 20px;
        min-height: auto;
    }

    .hero-content h2 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .hero-visual {
        height: 300px;
    }

    .animated-cube {
        width: 150px;
        height: 150px;
    }

    .featured-products {
        padding: 3rem 20px;
    }

    .featured-products h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .features {
        padding: 3rem 20px;
    }

    .features h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-number {
        font-size: 2rem;
    }

    .cta {
        padding: 3rem 20px;
    }

    .cta h2 {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
    }

    .news-preview {
        padding: 3rem 20px;
    }

    .news-preview h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==================== Mobile Styles ==================== */
@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.3rem;
    }

    .hero {
        padding: 2rem 15px;
    }

    .hero-content h2 {
        font-size: 1.8rem;
        line-height: 1.2;
    }

    .hero-content p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }

    .hero-visual {
        height: 250px;
        margin-top: 1rem;
    }

    .animated-cube {
        width: 120px;
        height: 120px;
    }

    .featured-products h2,
    .features h2,
    .cta h2,
    .news-preview h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .products-grid,
    .features-grid,
    .news-grid {
        gap: 1rem;
    }

    .product-card,
    .feature-item,
    .news-item {
        padding: 1.5rem 1rem;
    }

    .product-icon {
        width: 60px;
        height: 60px;
    }

    .product-card h3 {
        font-size: 1.2rem;
    }

    .feature-number {
        font-size: 2rem;
    }

    .feature-item h3 {
        font-size: 1.1rem;
    }

    .cta p {
        font-size: 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-section h4 {
        font-size: 1rem;
    }

    .footer-bottom {
        font-size: 0.8rem;
        padding-top: 1rem;
    }

    /* Page specific responsive adjustments */
    h1 {
        font-size: 1.8rem !important;
    }

    h2 {
        font-size: 1.5rem !important;
    }

    .page-header {
        padding: 2rem 15px !important;
        margin-top: 70px;
    }

    .faq-item {
        padding: 1rem !important;
    }

    .code-block {
        font-size: 0.85rem !important;
    }
}

/* ==================== Large Screens ==================== */
@media (min-width: 1201px) {
    .container {
        max-width: 1200px;
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
