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

/* Large Desktop (> 1200px) */
@media (min-width: 1200px) {
  .container {
    padding: 0 32px;
  }
}

/* Small Desktop / Laptop (1025px - 1199px) */
@media (max-width: 1199px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .downloads-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Tablet Landscape (769px - 1024px) */
@media (max-width: 1024px) {
  .top-banner-container {
    flex-wrap: wrap;
    justify-content: center;
  }
  .top-banner-left {
    width: 100%;
    justify-content: center;
  }
  .live-label {
    font-size: 0.7rem;
  }
  .news-grid {
    grid-template-columns: 1fr 1fr;
  }
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cta-content h2 {
    font-size: 1.8rem;
  }
  .section {
    padding: 80px 0;
  }
  .section-title {
    font-size: 2rem;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sponsors-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .about-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .about-image {
    order: -1;
  }
  .chatbot-panel {
    width: 340px;
    height: 480px;
    right: 0;
  }
}

/* Tablet Portrait (481px - 768px) */
@media (max-width: 768px) {
  .nav-overlay-content .nav-link {
    font-size: 1.2rem;
    padding: 14px 36px;
    gap: 12px;
  }
  .nav-overlay-content .nav-link svg {
    width: 20px;
    height: 20px;
  }
  .section-title {
    font-size: 1.7rem;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .downloads-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sponsors-grid {
    grid-template-columns: 1fr;
  }
  .mission-vision {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
  .chatbot-panel {
    width: calc(100vw - 48px);
    height: 60vh;
    right: 0;
    bottom: 76px;
  }
  .notif-dropdown {
    width: 300px;
    right: -60px;
  }
  .page-hero {
    padding: 140px 0 60px;
  }
}

/* Tablet Portrait (481px - 768px) */
@media (max-width: 768px) {
  .top-banner-btn {
    padding: 4px 10px;
    font-size: 0.7rem;
  }
  .top-banner-btn svg {
    width: 12px;
    height: 12px;
  }
  .live-label {
    display: none;
  }
  .news-grid {
    grid-template-columns: 1fr;
  }
  .values-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .value-card {
    padding: 24px 16px;
  }
  .timeline::before {
    left: 24px;
  }
  .timeline-item,
  .timeline-item:nth-child(odd) {
    flex-direction: row;
    padding-left: 48px;
  }
  .timeline-item-content,
  .timeline-item:nth-child(odd) .timeline-item-content {
    width: 100%;
    text-align: left;
  }
  .timeline-dot {
    left: 24px;
  }
  .cta-content h2 {
    font-size: 1.5rem;
  }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  .section {
    padding: 60px 0;
  }
  .section-title {
    font-size: 1.4rem;
  }
  .section-subtitle {
    font-size: 0.95rem;
  }
  .hero-title {
    font-size: 2.8rem;
    letter-spacing: 4px;
  }
  .hero-subtitle {
    font-size: 0.85rem;
    letter-spacing: 3px;
  }
  .hero-description {
    font-size: 0.95rem;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .team-grid {
    grid-template-columns: 1fr;
  }
  .downloads-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .stat-card {
    padding: 24px 16px;
  }
  .stat-number {
    font-size: 1.8rem;
  }
  .feature-card {
    padding: 32px 24px;
  }
  .chatbot-panel {
    width: calc(100vw - 32px);
    height: 55vh;
    bottom: 72px;
  }
  .chatbot-toggle {
    width: 48px;
    height: 48px;
  }
  .notif-dropdown {
    width: calc(100vw - 32px);
    right: -16px;
  }
  .page-hero {
    padding: 120px 0 40px;
  }
  .page-hero h1 {
    font-size: 1.8rem;
  }
  .btn {
    padding: 12px 24px;
    font-size: 0.85rem;
  }
  .top-banner-btn span {
    display: none;
  }
  .top-banner-right {
    gap: 4px;
  }
  .top-banner-btn {
    padding: 4px 8px;
  }
  .values-grid {
    grid-template-columns: 1fr;
  }
  .timeline-item-content {
    padding: 16px;
  }
  .cta-content h2 {
    font-size: 1.3rem;
  }
  .cta-actions {
    flex-direction: column;
    width: 100%;
  }
  .cta-actions .btn {
    width: 100%;
  }
}

/* Height-based adjustments */
@media (max-height: 600px) {
  .hero {
    min-height: 120vh;
  }
  .chatbot-panel {
    height: 70vh;
  }
}

/* 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;
  }
  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale {
    opacity: 1;
    transform: none;
  }
}
