/* Script-to-Storyboard AI Generator - Responsive CSS */
/* Mobile-First Responsive Design */

/* Base Mobile Styles (default) */
/* Already defined in main.css for mobile-first approach */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
  
  .hero-title {
    font-size: var(--fs-4xl);
  }
  
  .section-title {
    font-size: var(--fs-3xl);
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
  
  /* Navigation */
  .navbar-nav {
    flex-direction: row;
  }
  
  .navbar-nav .nav-link {
    margin: 0 1rem;
  }
  
  /* Hero Section */
  .hero-title {
    font-size: calc(var(--fs-4xl) + 0.5rem);
  }
  
  .hero-subtitle {
    font-size: calc(var(--fs-xl) + 0.25rem);
  }
  
  .hero-blob-1,
  .hero-blob-2 {
    display: block;
  }
  
  /* Sections */
  .section-padding {
    padding: 5rem 0;
  }
  
  .section-title {
    font-size: calc(var(--fs-3xl) + 0.25rem);
  }
  
  /* Grid Layouts */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .gallery-layout {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Forms */
  .contact-form {
    padding: 2.5rem;
  }
  
  .form-row {
    display: flex;
    gap: 1rem;
  }
  
  .form-row .form-group {
    flex: 1;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
  
  /* Typography */
  .hero-title {
    font-size: calc(var(--fs-4xl) + 1rem);
  }
  
  .hero-subtitle {
    font-size: calc(var(--fs-xl) + 0.5rem);
  }
  
  .section-title {
    font-size: calc(var(--fs-3xl) + 0.5rem);
  }
  
  /* Layout */
  :root {
    --section-padding: 6rem 0;
  }
  
  /* Hero Section */
  .hero-content {
    padding-right: 2rem;
    padding-top: 225px;
}
  
  .hero-image {
    padding-left: 2rem;
  }
  
  /* Grid Layouts */
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .price-plans-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .team-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  
  .reviews-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .case-studies-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .gallery-layout {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .career-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .core-info-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* FAQ */
  .faq-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  /* Process Timeline */
  .process-container {
    position: relative;
    padding-left: 3rem;
  }
  
  .process-container::before {
    content: '';
    position: absolute;
    left: 2rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient-accent);
  }
  
  .process-item {
    position: relative;
    margin-left: 3rem;
  }
  
  .process-item::before {
    left: -3.25rem;
  }
  
  /* Contact Layout */
  .contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
  }
  
  /* Footer */
  .footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  /* Typography */
  .hero-title {
    font-size: calc(var(--fs-4xl) + 1.5rem);
  }
  
  .section-title {
    font-size: calc(var(--fs-3xl) + 0.75rem);
  }
  
  /* Layout */
  :root {
    --section-padding: 7rem 0;
  }
  
  /* Hero */
  .hero-content {
    padding-right: 3rem;
    padding-top: 225px;
}
  
  .hero-image {
    padding-left: 3rem;
  }
  
  /* Services Grid */
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  
  /* Gallery */
  .gallery-layout {
    grid-template-columns: repeat(4, 1fr);
  }
  
  /* Core Info */
  .core-info-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  
  /* Contact Form */
  .contact-form {
    padding: 3rem;
  }
}

/* Extra extra large devices (1400px and up) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  
  /* Maximum width for very large screens */
  .hero-title {
    font-size: calc(var(--fs-4xl) + 2rem);
  }
  
  .section-title {
    font-size: calc(var(--fs-3xl) + 1rem);
  }
  
  :root {
    --section-padding: 8rem 0;
  }
}

/* Mobile-specific adjustments */
@media (max-width: 767.98px) {
  /* Reset some desktop styles for mobile */
  .hero {
    min-height: 90vh;
    text-align: center;
  }
  
  .hero-title {
    font-size: var(--fs-3xl);
    margin-bottom: 1rem;
  }
  
  .hero-subtitle {
    font-size: var(--fs-lg);
    margin-bottom: 1.63rem;
  }
  
  .hero-desc {
    font-size: var(--fs-base);
    margin-bottom: 2rem;
  }
  
  .hero-blob-1,
  .hero-blob-2 {
    display: none;
  }
  
  /* Section spacing */
  :root {
    --section-padding: 3rem 0;
  }
  
  .section-title {
    font-size: var(--fs-2xl);
  }
  
  .section-subtitle {
    font-size: var(--fs-lg);
  }
  
  .section-desc {
    font-size: var(--fs-base);
  }
  
  /* Navbar */
  .navbar {
    padding: 0.5rem 0;
  }
  
  .navbar-brand {
    font-size: var(--fs-lg);
  }
  
  .navbar-collapse {
    background: var(--dark-overlay);
    margin-top: 1rem;
    border-radius: 10px;
    padding: 1rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
  
  /* Grid layouts for mobile */
  .services-grid,
  .features-grid,
  .price-plans-grid,
  .team-grid,
  .reviews-grid,
  .case-studies-grid,
  .gallery-layout,
  .blog-grid,
  .career-grid,
  .core-info-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  /* Cards */
  .service-card,
  .feature-card,
  .price-card,
  .team-member,
  .review-card,
  .case-study-card,
  .blog-card,
  .career-card,
  .core-info-card {
    margin-bottom: 1.72rem;
  }
  
  /* Forms */
  .contact-form {
    padding: 2rem 1.5rem;
  }
  
  .form-row {
    flex-direction: column;
    gap: 0;
  }
  
  .btn {
    width: 100%;
    padding: 1rem;
  }
  
  /* Contact layout */
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  /* Footer */
  .footer {
    text-align: center;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  /* FAQ */
  .faq-container {
    grid-template-columns: 1fr;
  }
  
  .faq-question {
    padding: 1rem 1.5rem;
    font-size: var(--fs-sm);
  }
  
  .faq-answer {
    padding: 0 1.5rem 1rem;
  }
  
  /* Process Timeline */
  .process-container {
    padding-left: 0;
  }
  
  .process-container::before {
    display: none;
  }
  
  .process-item {
    margin-left: 0;
    margin-bottom: 1.66rem;
  }
  
  .process-item::before {
    position: static;
    margin: 0 auto 1rem;
  }
  
  /* Tables */
  .table-responsive {
    font-size: var(--fs-sm);
  }
  
  /* Modals */
  .modal-dialog {
    margin: 1rem;
  }
  
  .modal-content {
    border-radius: 15px;
  }
}

/* Tablet-specific adjustments */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero {
    min-height: 95vh;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .case-studies-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .core-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .career-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Print styles */
@media print {
  * {
    background: white !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  
  .navbar,
  .footer,
  .btn,
  .hero-blob-1,
  .hero-blob-2 {
    display: none !important;
  }
  
  .hero {
    min-height: auto;
    padding: 2rem 0;
  }
  
  a,
  a:visited {
    text-decoration: underline;
  }
  
  a[href]:after {
    content: " (" attr(href) ")";
  }
  
  .section {
    page-break-inside: avoid;
  }
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .hero-blob-1,
  .hero-blob-2 {
    animation: none;
  }
  
  .service-card:hover,
  .feature-card:hover,
  .price-card:hover,
  .team-member:hover,
  .review-card:hover,
  .case-study-card:hover,
  .blog-card:hover,
  .career-card:hover,
  .core-info-card:hover {
    transform: none;
  }
  
  .btn:hover {
    transform: none;
  }
  
  .navbar-nav .nav-link:hover {
    transform: none;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --primary-deep: #000000;
    --primary-tech: #1a1a1a;
    --primary-accent: #454242;
    --primary-bright: #3a3536;
    --primary-highlight: #ff1e00;
    
    --light-bg: #ffffff;
    --light-secondary: #b8b8b8;
    --light-accent: #aaaaaa;
    --light-text: #393939;
    
    --dark-bg: #000000;
    --dark-secondary: #030303;
    --dark-accent: #4b4b4b;
    --dark-text: #7b7b7b;
  }
  
  .btn {
    border: 2px solid currentColor;
  }
  
  .form-control {
    border-width: 2px;
  }
  
  .service-card,
  .feature-card,
  .price-card,
  .team-member,
  .review-card,
  .case-study-card,
  .blog-card,
  .career-card,
  .core-info-card {
    border-width: 2px;
  }
}

/* Focus styles for accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus,
.faq-question:focus {
  outline: 2px solid var(--primary-highlight);
  outline-offset: 2px;
}

/* Skip to content link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-deep);
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 10000;
  border-radius: 4px;
}

.skip-link:focus {
  top: 6px;
}

/* Responsive images */
img {
  max-width: 100%;
  height: auto;
}

.img-responsive {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Responsive embeds */
.embed-responsive {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
}

.embed-responsive::before {
  content: "";
  display: block;
  padding-top: 56.25%; /* 16:9 aspect ratio */
}

.embed-responsive iframe,
.embed-responsive video,
.embed-responsive object,
.embed-responsive embed {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  height: 100%;
  width: 100%;
  border: 0;
}

/* Container queries (when supported) */
@supports (container-type: inline-size) {
  .card-container {
    container-type: inline-size;
  }
  
  @container (min-width: 300px) {
    .service-card {
      display: flex;
      flex-direction: column;
    }
  }
  
  @container (min-width: 500px) {
    .service-card {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1rem;
    }
  }
} 