/* Additional Responsive Styles for Ali Haji Portal Theme */

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

/* Large Tablets / Small Desktops */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 2.5rem;
    }

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

    .section {
        padding: 4rem 0;
    }
}

/* Tablets */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

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

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

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

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

    .header-cta {
        display: none;
    }

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

/* Mobile Phones */
@media (max-width: 480px) {
    :root {
        --container-padding: 1rem;
        --spacing-xl: 2rem;
        --spacing-2xl: 3rem;
        --spacing-3xl: 3rem;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

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

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

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

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

    .btn {
        width: 100%;
        text-align: center;
    }

    .card {
        padding: 1rem;
    }

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

/* Print Styles */
@media print {

    .site-header,
    .site-footer,
    .btn,
    .mobile-menu-toggle {
        display: none;
    }

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

    body {
        font-size: 12pt;
        line-height: 1.5;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --color-primary: #000080;
        --color-primary-light: #0000ff;
    }

    .btn-primary {
        border: 2px solid currentColor;
    }

    .card {
        border: 2px solid var(--color-gray-300);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    /* Uncomment if you want automatic dark mode support */
    /*
  :root {
    --color-white: #1f2937;
    --color-gray-50: #111827;
    --color-gray-100: #0f1c35;
    --color-gray-800: #f3f4f6;
    --color-gray-900: #ffffff;
  }
  
  body {
    background-color: var(--color-gray-50);
    color: var(--color-gray-800);
  }
  
  .card {
    background: var(--color-white);
  }
  */
}

/* Focus Visible for Accessibility */
:focus-visible {
    outline: 2px solid var(--color-primary-light);
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--color-primary-light);
    outline-offset: 2px;
}

/* Skip to Content Link (Accessibility) */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-primary);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}