/* ===================================
   Responsive Styles
   Mobile First Approach
   =================================== */

/* ===================================
   Tablet (768px and up)
   =================================== */
@media (min-width: 768px) {
  /* Header */
  .menu-toggle {
    display: none;
  }

  .nav-links {
    display: flex;
    position: static;
    background: transparent;
    padding: 0;
    flex-direction: row;
    gap: var(--spacing-sm);
  }

  .nav-links a {
    padding: var(--spacing-xs) var(--spacing-sm);
  }

  /* Hero */
  .hero {
    flex-direction: row;
    padding: calc(80px + var(--spacing-lg)) var(--spacing-lg);
    gap: var(--spacing-lg);
  }

  .hero-content {
    text-align: left;
    flex: 1;
  }

  .hero-illustration {
    margin-top: 0;
    flex: 0 0 auto;
  }

  .robot-mascot {
    width: 250px;
    height: 350px;
  }

  /* Features Grid */
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Meetings Grid */
  .meetings-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .meeting-card {
    text-align: left;
  }

  .meeting-icon {
    margin: 0 0 var(--spacing-sm) 0;
  }

  /* Connect Grid */
  .connect-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .connect-card {
    padding: var(--spacing-lg) var(--spacing-md);
  }
}

/* ===================================
   Desktop (1024px and up)
   =================================== */
@media (min-width: 1024px) {
  /* Typography */
  html {
    font-size: 18px;
  }

  /* Hero */
  .hero {
    padding: calc(100px + var(--spacing-xl)) var(--spacing-xl);
  }

  .hero-content {
    max-width: 550px;
  }

  .robot-mascot {
    width: 300px;
    height: 420px;
  }

  /* Gears positioning */
  .gear-1 {
    width: 180px;
    height: 180px;
    top: 15%;
    left: 8%;
  }

  .gear-2 {
    width: 120px;
    height: 120px;
    top: 55%;
    right: 15%;
  }

  .gear-3 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 20%;
  }

  /* Sections */
  .about,
  .meetings,
  .connect {
    padding: var(--spacing-xl) 0;
  }

  /* Feature Cards */
  .feature-card {
    padding: var(--spacing-lg);
  }

  .feature-icon {
    width: 80px;
    height: 80px;
  }

  /* Meeting Cards */
  .meeting-card {
    padding: var(--spacing-lg);
  }

  .meeting-icon {
    width: 80px;
    height: 80px;
  }
}

/* ===================================
   Large Desktop (1440px and up)
   =================================== */
@media (min-width: 1440px) {
  .container {
    max-width: 1320px;
  }

  .hero {
    gap: var(--spacing-xl);
  }

  .robot-mascot {
    width: 350px;
    height: 490px;
  }

  .features-grid,
  .meetings-grid,
  .connect-grid {
    gap: var(--spacing-lg);
  }
}

/* ===================================
   Small Mobile (below 375px)
   =================================== */
@media (max-width: 374px) {
  html {
    font-size: 14px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .tagline {
    font-size: 0.875rem;
  }

  .robot-mascot {
    width: 160px;
    height: 224px;
  }

  .container {
    padding: 0 var(--spacing-sm);
  }
}

/* ===================================
   Landscape Mobile
   =================================== */
@media (max-width: 767px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding-top: calc(70px + var(--spacing-md));
    padding-bottom: var(--spacing-md);
  }

  .robot-mascot {
    width: 120px;
    height: 168px;
  }

  .hero-illustration {
    margin-top: var(--spacing-sm);
  }
}

/* ===================================
   Print Styles
   =================================== */
@media print {
  .site-header,
  .menu-toggle,
  .floating-gears,
  .circuit-pattern,
  .hero-illustration,
  .footer-robot {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .hero {
    background: white;
    color: black;
    min-height: auto;
    padding: var(--spacing-md);
  }

  .hero h1,
  .hero .tagline {
    color: black;
    background: none;
    -webkit-text-fill-color: black;
  }

  .meetings {
    background: white;
  }

  .meetings .section-title,
  .meeting-card h3 {
    color: black;
  }

  .meeting-card {
    border: 1px solid #ccc;
    background: white;
  }

  a {
    color: black;
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
  }
}

/* ===================================
   High Contrast Mode
   =================================== */
@media (prefers-contrast: high) {
  :root {
    --color-primary: #00BFFF;
    --color-secondary: #FF4500;
    --color-dark: #000000;
    --color-light: #FFFFFF;
    --color-mid: #333333;
  }

  .feature-card,
  .connect-card,
  .meeting-card {
    border: 2px solid currentColor;
  }

  .btn-primary {
    border: 2px solid var(--color-light);
  }
}

/* ===================================
   Dark Mode Support (future)
   =================================== */
@media (prefers-color-scheme: dark) {
  /*
   * The site already has a dark hero and footer.
   * This is a placeholder for potential full dark mode.
   * For now, we keep the light sections light for contrast.
   */
}
