/* Responsive Design */

/* Tablet (768px and below) */
@media (max-width: 768px) {
    .nav-list {
        gap: 1rem;
    }
    
    .nav-link {
        font-size: 0.9rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav {
        display: none;
    }
    
    .nav.active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--background-light);
        padding: 1rem;
        border-bottom: 2px solid var(--primary-color);
        z-index: 999;
    }
    
    html[dir="rtl"] .nav.active {
        text-align: right;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 0;
    }
    
    .nav-link {
        display: block;
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--border-color);
    }
    
    .header-right {
        gap: 1rem;
    }
    
    .hero {
        padding: 50px 0;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}

/* Small Mobile (360px and below) */
@media (max-width: 360px) {
    .container {
        padding: 0 15px;
    }
    
    .logo a {
        font-size: 20px;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .card-title {
        font-size: 1.2rem;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
}

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
    :root {
        --background-dark: #0a0e27;
        --background-light: #1a1f3a;
    }
}

/* Light mode (if needed) */
@media (prefers-color-scheme: light) {
    :root {
        --background-dark: #f5f5f5;
        --background-light: #ffffff;
        --text-light: #1a1a1a;
        --text-gray: #666666;
        --border-color: #e0e0e0;
    }
}

/* Print styles */
@media print {
    .header,
    .footer,
    .mobile-menu-toggle,
    .language-switcher {
        display: none;
    }
    
    body {
        background-color: white;
        color: black;
    }
    
    .card {
        page-break-inside: avoid;
    }
}
