/* JST Core Responsive Styles */

/* Mobile First Approach */
:root {
  --breakpoint-sm: 375px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1366px;
  --breakpoint-2xl: 1920px;
}

/* Base Mobile Styles (default) */
.container {
  padding: 0 var(--space-4);
}

/* Mobile Navigation */
.nav-toggle {
  display: flex;
}

.nav-menu {
  display: none;
}

/* Mobile Hero Adjustments */
.hero {
  min-height: calc(100vh - 60px);
  padding: var(--space-16) 0 var(--space-20);
}

.hero-content {
  padding-bottom: var(--space-12);
}

.hero-scroll {
  bottom: var(--space-4);
}

/* Mobile Project Grid */
.projects-grid {
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

/* Mobile Typography */
.hero-title {
  font-size: var(--text-3xl);
}

.hero-tagline {
  font-size: var(--text-base);
}

.section-title {
  font-size: var(--text-3xl);
}

/* Mobile Contact */
.contact-content {
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

.social-links {
  flex-direction: column;
  align-items: flex-start;
}

.social-link {
  width: 100%;
  justify-content: flex-start;
}

/* Small Mobile (375px and up) */
@media (min-width: 375px) {
  .hero-title {
    font-size: var(--text-4xl);
  }

  .section-title {
    font-size: var(--text-4xl);
  }
}

/* Tablet Portrait (768px and up) */
@media (min-width: 768px) {
  .container {
    padding: 0 var(--space-6);
  }

  /* Navigation */
  .nav-toggle {
    display: none;
  }

  .nav-menu {
    display: flex;
  }

  /* Hero Section */
  .hero {
    min-height: calc(100vh - 70px);
    padding: var(--space-20) 0 var(--space-28);
  }

  .hero-content {
    padding-bottom: var(--space-16);
  }

  .hero-scroll {
    bottom: var(--space-6);
  }

  .hero-title {
    font-size: var(--text-5xl);
  }

  .hero-tagline {
    font-size: var(--text-lg);
  }

  .section-title {
    font-size: var(--text-4xl);
  }

  /* Projects Grid */
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
  }

  /* About Features */
  .about-features {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
  }

  /* Contact */
  .contact-content {
    gap: var(--space-12);
  }

  .social-links {
    flex-direction: row;
    align-items: center;
  }

  .social-link {
    width: auto;
  }
}

/* Desktop (1024px and up) */
@media (min-width: 1024px) {
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-6);
  }

  /* Hero Section */
  .hero {
    min-height: calc(100vh - 80px);
    padding: var(--space-24) 0 var(--space-32);
  }

  .hero-content {
    max-width: 900px;
    padding-bottom: var(--space-20);
  }

  .hero-scroll {
    bottom: var(--space-8);
  }

  .hero-title {
    font-size: var(--text-6xl);
  }

  .hero-tagline {
    font-size: var(--text-xl);
  }

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

  .project-card {
    padding: var(--space-10);
  }

  /* Contact */
  .contact-content {
    grid-template-columns: 2fr 1fr;
    gap: var(--space-16);
  }

  .contact-form {
    gap: var(--space-8);
  }
}

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

  .hero-title {
    font-size: clamp(var(--text-5xl), 8vw, var(--text-6xl));
  }

  .hero-tagline {
    font-size: var(--text-2xl);
  }
}

/* Ultra-wide (1920px and up) */
@media (min-width: 1920px) {
  .container {
    max-width: 1600px;
  }

  .hero-title {
    font-size: 4.5rem;
  }
}

/* Height-based Media Queries for better scroll indicator positioning */
@media (max-height: 600px) {
  .hero {
    min-height: calc(100vh - 40px);
    padding: var(--space-12) 0 var(--space-16);
  }

  .hero-content {
    padding-bottom: var(--space-6);
  }

  .hero-scroll {
    bottom: var(--space-3);
  }
}

@media (min-height: 800px) {
  .hero {
    min-height: calc(100vh - 100px);
  }

  .hero-scroll {
    bottom: var(--space-10);
  }
}

@media (min-height: 1000px) {
  .hero {
    min-height: calc(100vh - 120px);
    padding: var(--space-32) 0 var(--space-40);
  }

  .hero-content {
    padding-bottom: var(--space-24);
  }

  .hero-scroll {
    bottom: var(--space-12);
  }
}

/* Print Styles */
@media print {

  .header,
  .hero-scroll,
  .nav-toggle,
  .contact-form {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: var(--space-8) 0;
  }

  .project-card {
    break-inside: avoid;
    margin-bottom: var(--space-4);
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .hero {
    padding: var(--space-16) 0 var(--space-20);
  }

  .hero-content {
    padding-bottom: var(--space-12);
  }
}