/* ===== RESPONSIVE DESIGN - MOBILE FIRST ===== */

/* Small devices (landscape phones, 576px and up) */
@media (max-width: 575.98px) {
  .container {
    padding: 0 var(--spacing-md);
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: var(--font-size-lg);
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 280px;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .social-links {
    justify-content: center;
    margin-top: var(--spacing-lg);
  }
  
  .counter-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
  }
  
  .counter-number {
    font-size: var(--font-size-3xl);
  }
  
  .programs-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  
  .values-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  
  .mentores-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    text-align: center;
  }
  
  .section {
    padding: var(--spacing-2xl) 0;
  }
  
  h1 { font-size: var(--font-size-3xl); }
  h2 { font-size: var(--font-size-2xl); }
  h3 { font-size: var(--font-size-xl); }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .counter-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .programs-grid {
    grid-template-columns: 1fr;
  }
  
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .mentores-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero-title {
    font-size: 3rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .counter-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .programs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .mentores-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .hero-title {
    font-size: 3.5rem;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 992px) {
  .counter-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  
  .programs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .values-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .mentores-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Extra extra large devices (1400px and up) */
@media (min-width: 1200px) {
  .programs-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .mentores-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ===== RESPONSIVE UTILITIES ===== */

/* Hide on mobile */
@media (max-width: 575.98px) {
  .d-none-mobile {
    display: none !important;
  }
}

/* Hide on tablet */
@media (min-width: 576px) and (max-width: 991.98px) {
  .d-none-tablet {
    display: none !important;
  }
}

/* Hide on desktop */
@media (min-width: 992px) {
  .d-none-desktop {
    display: none !important;
  }
}

/* Show only on mobile */
@media (min-width: 576px) {
  .d-mobile-only {
    display: none !important;
  }
}

/* Show only on tablet */
@media (max-width: 575.98px), (min-width: 992px) {
  .d-tablet-only {
    display: none !important;
  }
}

/* Show only on desktop */
@media (max-width: 991.98px) {
  .d-desktop-only {
    display: none !important;
  }
}

/* ===== RESPONSIVE TEXT ALIGNMENT ===== */
@media (max-width: 575.98px) {
  .text-center-mobile {
    text-align: center !important;
  }
  
  .text-left-mobile {
    text-align: left !important;
  }
}

@media (min-width: 576px) and (max-width: 991.98px) {
  .text-center-tablet {
    text-align: center !important;
  }
  
  .text-left-tablet {
    text-align: left !important;
  }
}

@media (min-width: 992px) {
  .text-center-desktop {
    text-align: center !important;
  }
  
  .text-left-desktop {
    text-align: left !important;
  }
}

/* ===== RESPONSIVE SPACING ===== */
@media (max-width: 575.98px) {
  .p-mobile-sm { padding: var(--spacing-sm) !important; }
  .p-mobile-md { padding: var(--spacing-md) !important; }
  .p-mobile-lg { padding: var(--spacing-lg) !important; }
  
  .m-mobile-sm { margin: var(--spacing-sm) !important; }
  .m-mobile-md { margin: var(--spacing-md) !important; }
  .m-mobile-lg { margin: var(--spacing-lg) !important; }
  
  .pt-mobile-lg { padding-top: var(--spacing-lg) !important; }
  .pb-mobile-lg { padding-bottom: var(--spacing-lg) !important; }
  
  .mt-mobile-lg { margin-top: var(--spacing-lg) !important; }
  .mb-mobile-lg { margin-bottom: var(--spacing-lg) !important; }
}

/* ===== RESPONSIVE FLEX ===== */
@media (max-width: 575.98px) {
  .flex-column-mobile {
    flex-direction: column !important;
  }
  
  .flex-center-mobile {
    align-items: center !important;
    justify-content: center !important;
  }
  
  .justify-center-mobile {
    justify-content: center !important;
  }
  
  .align-center-mobile {
    align-items: center !important;
  }
}

@media (min-width: 576px) and (max-width: 991.98px) {
  .flex-column-tablet {
    flex-direction: column !important;
  }
  
  .flex-center-tablet {
    align-items: center !important;
    justify-content: center !important;
  }
}

/* ===== RESPONSIVE GRID ===== */
@media (max-width: 575.98px) {
  .grid-1-mobile {
    grid-template-columns: 1fr !important;
  }
  
  .grid-2-mobile {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  .gap-sm-mobile {
    gap: var(--spacing-sm) !important;
  }
  
  .gap-md-mobile {
    gap: var(--spacing-md) !important;
  }
}

@media (min-width: 576px) and (max-width: 991.98px) {
  .grid-2-tablet {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  .grid-3-tablet {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

/* ===== RESPONSIVE BUTTONS ===== */
@media (max-width: 575.98px) {
  .btn-block-mobile {
    width: 100% !important;
    display: block !important;
  }
  
  .btn-group-mobile {
    flex-direction: column !important;
    width: 100%;
  }
  
  .btn-group-mobile .btn {
    width: 100%;
    margin-bottom: var(--spacing-sm);
  }
  
  .btn-group-mobile .btn:last-child {
    margin-bottom: 0;
  }
}

/* ===== NAVIGATION RESPONSIVE ===== */
@media (max-width: 575.98px) {
  .nav {
    padding: var(--spacing-sm) 0;
  }
  
  .logo {
    font-size: var(--font-size-xl);
  }
  
  .nav-link {
    display: block;
    width: 100%;
    text-align: center;
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
  }
  
  .nav-link:last-child {
    border-bottom: none;
  }
}

/* ===== HERO RESPONSIVE ===== */
@media (max-width: 575.98px) {
  .hero {
    min-height: 90vh;
    padding-top: 80px;
  }
  
  .hero-content {
    padding: 0 var(--spacing-md);
  }
  
  .hero-title {
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
  }
  
  .hero-subtitle {
    margin-bottom: var(--spacing-xl);
  }
}

/* ===== CARDS RESPONSIVE ===== */
@media (max-width: 575.98px) {
  .card {
    padding: var(--spacing-lg);
  }
  
  .card-title {
    font-size: var(--font-size-lg);
  }
}

/* ===== FORMS RESPONSIVE ===== */
@media (max-width: 575.98px) {
  .form-input,
  .form-textarea,
  .form-select {
    padding: var(--spacing-sm) var(--spacing-md);
  }
  
  .form-group {
    margin-bottom: var(--spacing-md);
  }
}

/* ===== CAROUSEL RESPONSIVE ===== */
@media (max-width: 575.98px) {
  .carousel-slide {
    padding: var(--spacing-lg);
  }
  
  .testimonial-text {
    font-size: var(--font-size-base);
  }
}

/* ===== ACCESSIBILITY & PERFORMANCE ===== */

/* Reduce motion for users who prefer it */
@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;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --bg-primary: #000000;
    --bg-card: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --border-color: #444444;
  }
}

/* Dark mode preference (though we're already dark) */
@media (prefers-color-scheme: light) {
  /* Optional: provide light theme variables if needed */
}

/* Print styles */
@media print {
  body {
    background: white !important;
    color: black !important;
  }
  
  .header,
  .footer,
  .mobile-menu-toggle,
  .social-links,
  .cta-buttons {
    display: none !important;
  }
  
  .hero {
    min-height: auto;
    page-break-after: always;
  }
  
  .card {
    break-inside: avoid;
    border: 1px solid #ccc;
    box-shadow: none;
  }
}