/* ================================================
   EduVerse Tech Solutions — Responsive Overrides
   css/responsive.css
   ================================================ */

/* ============ TABLET (max-width: 1100px) ============ */
@media (max-width: 1100px) {
  .nav-links,
  .nav-cta {
    display: none;
  }
  .menu-btn {
    display: block;
  }
  .nav-links.active {
    display: flex;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    padding: 1rem;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    z-index: 999;
  }
  .nav-links.active a {
    color: var(--text);
    padding: 0.75rem 1rem;
    text-align: left;
    border-radius: var(--radius-md);
  }
  .nav-links.active a:hover {
    background: var(--primary-light);
  }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  .hero-copy p {
    margin: 0 auto 2rem;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-points {
    justify-content: center;
  }
  .hero-visual {
    order: -1;
    max-width: 500px;
    margin: 0 auto;
  }
  .auth-wrap {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .demo-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .portal-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .login-type-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-actions {
    flex-direction: column;
  }
}

/* ============ MOBILE (max-width: 768px) ============ */
@media (max-width: 768px) {
  html {
    scroll-padding-top: 70px;
  }
  .navbar {
    padding: 0.75rem 1rem;
  }
  .nav-links.active {
    top: 65px;
  }
  .hero {
    padding-top: 6rem;
    min-height: auto;
    padding-bottom: 3rem;
  }
  .hero h1 {
    font-size: 2rem;
    letter-spacing: -0.5px;
  }
  .section {
    padding: 3rem 1rem;
  }
  .title h2 {
    font-size: 1.6rem;
  }
  .grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .compact-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .stat-card {
    padding: 1.5rem 1rem;
  }
  .stat-card .stat-number {
    font-size: 2rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
  .quick-actions {
    bottom: 1rem;
    right: 1rem;
    gap: 0.5rem;
  }
  .quick-actions a {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }
  .ai-agent {
    bottom: 1rem;
    left: 1rem;
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
  }
  .portal-grid {
    grid-template-columns: 1fr;
  }
  .portal-menu {
    justify-content: center;
  }
  .portal-menu button {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }
  .profile {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
  .verified-badge {
    margin-left: 0;
  }
  .cookie-banner {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
    gap: 1rem;
  }
  .cookie-btns {
    width: 100%;
  }
  .cookie-btns button {
    flex: 1;
  }
  #toastRoot {
    left: 1rem;
    right: 1rem;
    top: auto;
    bottom: 100px;
  }
  .toast {
    min-width: auto;
    max-width: 100%;
  }
  .login-type-grid {
    grid-template-columns: 1fr;
  }
  .modal-card {
    padding: 2rem 1.5rem;
    margin: 1rem;
  }
  .career-modal-card {
    max-height: 85vh;
  }
  .product-modal-card {
    padding: 1.5rem;
  }
  .company-logo,
  .logo-fallback {
    width: 40px;
    height: 40px;
  }
}

/* ============ SMALL MOBILE (max-width: 480px) ============ */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.6rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .btn {
    width: 100%;
    padding: 0.65rem 1.25rem;
    font-size: 0.85rem;
  }
  .price-line strong {
    font-size: 2rem;
  }
  .pricing-card {
    padding: 2rem 1.25rem;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 2.5rem 1rem;
  }
  .card-3d {
    padding: 1.5rem;
  }
  .product-card {
    padding: 1.5rem;
  }
  .module-card {
    padding: 1.25rem;
  }
  .customer-card {
    padding: 1.25rem;
  }
  .auth-card {
    padding: 1.5rem;
  }
  .portal-card {
    padding: 1.25rem;
  }
  .demo-card {
    padding: 2rem 1.5rem;
  }
  .eyebrow {
    font-size: 0.7rem;
    padding: 0.3rem 0.75rem;
  }
  .title h2 {
    font-size: 1.4rem;
  }
  .title p {
    font-size: 0.9rem;
  }
  .footer-grid h3 {
    font-size: 1rem;
  }
  .footer-grid h4 {
    font-size: 0.8rem;
  }
  .map-card iframe,
  .map-card #googleMap {
    height: 250px;
  }
  .stack-card {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
  }
  .lang-grid {
    grid-template-columns: 1fr;
  }
  .lang-options {
    grid-template-columns: 1fr;
  }
  .school-logo-img,
  .school-logo-fallback {
    width: 48px;
    height: 48px;
  }
}

/* ============ LANDSCAPE MOBILE ============ */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding-top: 5rem;
    padding-bottom: 2rem;
  }
  .hero h1 {
    font-size: 1.5rem;
  }
  .modal-card {
    max-height: 90vh;
    overflow-y: auto;
  }
  .career-modal-card {
    max-height: 85vh;
  }
}

/* ============ LARGE SCREENS ============ */
@media (min-width: 1920px) {
  html {
    font-size: 18px;
  }
  .section {
    max-width: 1600px;
  }
  .hero-inner {
    max-width: 1600px;
  }
  .footer-grid {
    max-width: 1600px;
  }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .floating-3d,
  .particle,
  .orb {
    animation: none;
  }
}

/* ============ DARK MODE SUPPORT ============ */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1026;
    --card: #111827;
    --text: #f1f5f9;
    --heading: #ffffff;
    --muted: #94a3b8;
    --faint: #64748b;
    --line: #1e3a5f;
    --field: #1a2744;
  }
  body {
    background: var(--bg);
    color: var(--text);
  }
  .navbar {
    background: rgba(11, 16, 38, 0.85);
    border-bottom-color: rgba(30, 58, 95, 0.5);
  }
  .navbar.scrolled {
    background: rgba(11, 16, 38, 0.95);
  }
  .nav-links.active {
    background: rgba(11, 16, 38, 0.98);
    border-bottom-color: rgba(30, 58, 95, 0.5);
  }
  .nav-links.active a {
    color: var(--text);
  }
  .nav-links.active a:hover {
    background: rgba(37, 99, 235, 0.1);
  }
  .card-3d,
  .product-card,
  .module-card,
  .customer-card {
    background: var(--card);
    border-color: var(--line);
  }
  .auth-card,
  .portal-card,
  .profile {
    background: rgba(17, 24, 39, 0.95);
    border-color: var(--line);
  }
  .cookie-banner {
    background: rgba(11, 16, 38, 0.95);
    border-top-color: var(--line);
  }
  .cookie-banner p {
    color: var(--muted);
  }
}
