/* ===== UNNOTI Responsive Design ===== */

/* Ultra small devices (320px) */
@media (max-width: 359px) {
  .hero-section h1 { font-size: 1.6rem; }
  .hero-section p { font-size: 0.85rem; }
  .section-title { font-size: 1.4rem; }
  .container { padding-left: 12px; padding-right: 12px; }
  .stats-grid { grid-template-columns: 1fr; }
  .bento-grid { grid-template-columns: 1fr; }
  .cta-buttons { flex-direction: column; gap: 8px; }
  .cta-buttons .btn { width: 100%; }
}

/* Small phones (360px - 479px) */
@media (min-width: 360px) and (max-width: 479px) {
  .hero-section h1 { font-size: 1.8rem; }
  .section-title { font-size: 1.5rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .bento-grid { grid-template-columns: 1fr; }
}

/* Large phones (480px - 767px) */
@media (min-width: 480px) and (max-width: 767px) {
  .hero-section h1 { font-size: 2rem; }
  .section-title { font-size: 1.7rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .bento-grid { grid-template-columns: 1fr 1fr; }
  .course-grid { grid-template-columns: 1fr; }
}

/* Tablets (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero-section h1 { font-size: 2.5rem; }
  .section-title { font-size: 2rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .course-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Laptops (1024px - 1439px) */
@media (min-width: 1024px) and (max-width: 1439px) {
  .hero-section h1 { font-size: 3rem; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .bento-grid { grid-template-columns: repeat(3, 1fr); }
  .course-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Desktop (1440px - 1919px) */
@media (min-width: 1440px) and (max-width: 1919px) {
  .container { max-width: 1320px; }
  .hero-section h1 { font-size: 3.5rem; }
  .bento-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Ultra-wide (1920px+) */
@media (min-width: 1920px) {
  .container { max-width: 1600px; }
  .hero-section h1 { font-size: 4rem; }
  .hero-section p { font-size: 1.3rem; }
  .section-title { font-size: 2.8rem; }
}

/* Mobile-first base responsive */
@media (max-width: 767px) {
  .navbar-brand img { height: 32px; }
  .navbar .nav-item { text-align: center; }
  
  .hero-section { padding: 80px 0 40px; text-align: center; min-height: auto; }
  .hero-section .hero-image { display: none; }
  .hero-content { padding: 0 16px; }
  
  .floating-card { display: none; }
  
  section { padding: 40px 0; }
  .section-title { margin-bottom: 24px; }
  
  .testimonial-card { margin: 0 8px; }
  
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 12px; }
  
  .dashboard-sidebar { display: none; }
  .dashboard-content { margin-left: 0; }
  
  .language-switcher { font-size: 12px; }
  .theme-toggle { padding: 4px 8px; font-size: 12px; }
  
  .modal-dialog { margin: 8px; }
  
  .blog-grid { grid-template-columns: 1fr; }
  .career-grid { grid-template-columns: 1fr; }
  
  .cta-buttons { flex-direction: column; align-items: center; }
  .cta-buttons .btn { width: 100%; max-width: 280px; }
  
  .scroll-progress { height: 2px; }
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero-section { padding: 100px 0 60px; }
  section { padding: 60px 0; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .career-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Print styles */
@media print {
  .navbar, footer, .theme-toggle, .language-switcher,
  .scroll-progress, .loading-screen, .floating-card,
  .back-to-top { display: none !important; }
  body { background: white !important; color: black !important; }
  a { color: black !important; text-decoration: underline; }
  .card { border: 1px solid #ccc !important; box-shadow: none !important; }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .floating-card, .animate-float, .animate-morph { animation: none !important; }
  .reveal, .reveal-left, .reveal-right, .reveal-scale {
    opacity: 1 !important; transform: none !important;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  :root { --border-color: #000; }
  .glass-card { backdrop-filter: none; background: white; border: 2px solid #000; }
  .btn-primary { background: #000; color: #fff; }
}

/* Touch device optimizations */
@media (hover: none) {
  .hover-lift:hover { transform: none; box-shadow: none; }
  .hover-scale:hover { transform: none; }
  .card-tilt { transform: none !important; }
  .btn { min-height: 44px; min-width: 44px; }
}

/* Landscape phone */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-section { min-height: auto; padding: 60px 0 30px; }
  .hero-section h1 { font-size: 1.8rem; }
  .loading-screen { display: none; }
}
