/* Mo-Theory Website - Responsive Styles */

/* Medium devices (tablets, less than 992px) */
@media (max-width: 991.98px) {
  .container {
    max-width: 960px;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-subtitle {
    font-size: 1.3rem;
  }
  
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .equation-variables ul {
    columns: 1;
  }
}

/* Small devices (landscape phones, less than 768px) */
@media (max-width: 767.98px) {
  .container {
    max-width: 720px;
  }
  
  .header-container {
    position: relative;
  }
  
  .logo {
    z-index: 1001;
  }
  
  .mobile-menu-toggle {
    display: block;
    position: absolute;
    top: 50%;
    right: var(--spacing-md);
    transform: translateY(-50%);
    z-index: 1001;
  }
  
  .nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1000;
  }
  
  .nav.active {
    transform: translateX(0);
  }
  
  .nav-list {
    flex-direction: column;
    align-items: center;
  }
  
  .nav-item {
    margin: var(--spacing-md) 0;
    margin-left: 0;
  }
  
  .nav-link {
    font-size: 1.2rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .grid {
    grid-template-columns: 1fr;
  }
  
  .section {
    padding: var(--spacing-xl) 0;
  }
  
  .concept-card {
    margin-bottom: var(--spacing-md);
  }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  .container {
    max-width: 100%;
    padding: 0 var(--spacing-md);
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  h3 {
    font-size: 1.5rem;
  }
  
  .card, .concept-card {
    padding: var(--spacing-md);
  }
  
  .equation {
    padding: var(--spacing-md);
    margin: var(--spacing-md) 0;
  }
  
  .visualization {
    margin: var(--spacing-lg) 0;
  }
  
  .btn {
    padding: var(--spacing-sm) var(--spacing-lg);
  }
}

/* For very small devices */
@media (max-width: 359.98px) {
  html {
    font-size: 14px;
  }
  
  .hero-title {
    font-size: 1.75rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .logo-text {
    font-size: 1.5rem;
  }
}

/* For print */
@media print {
  .header, .footer, .nav, .mobile-menu-toggle, .dark-mode-toggle {
    display: none !important;
  }
  
  .container {
    max-width: 100%;
    padding: 0;
    margin: 0;
  }
  
  body {
    background-color: #fff;
    color: #000;
    font-size: 12pt;
  }
  
  a {
    color: #000;
    text-decoration: underline;
  }
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
    color: #000;
  }
  
  h2::after {
    background-color: #000;
  }
  
  .card, .concept-card, .equation {
    box-shadow: none;
    border: 1px solid #ddd;
  }
  
  .visualization-image {
    max-width: 100% !important;
    box-shadow: none;
  }
  
  .hero {
    background: none;
    color: #000;
    padding: 1rem 0;
  }
  
  .hero::before {
    display: none;
  }
  
  .hero-title, .hero-subtitle {
    color: #000;
  }
  
  .hero-cta {
    display: none;
  }
  
  .section {
    padding: 1rem 0;
  }
  
  table {
    border-collapse: collapse;
    width: 100%;
  }
  
  th {
    background-color: #f0f0f0 !important;
    color: #000 !important;
  }
  
  th, td {
    border: 1px solid #ddd;
  }
}
