/* AI B-roll Suggestion Tool - Responsive CSS */

/* ===== MOBILE FIRST RESPONSIVE DESIGN ===== */

/* Extra Small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
  .hero-section {
    min-height: 100vh;
    padding: var(--spacing-xl) 0;
  }
  
  .hero-title {
    font-size: var(--font-size-3xl);
  }
  
  .hero-subtitle {
    font-size: var(--font-size-lg);
  }
  
  .hero-description {
    font-size: var(--font-size-base);
  }
  
  .section {
    padding: var(--spacing-2xl) 0;
  }
  
  .section-title {
    font-size: var(--font-size-2xl);
  }
  
  .section-subtitle {
    font-size: var(--font-size-base);
  }
  
  .navbar-brand {
    font-size: var(--font-size-base);
  }
  
  .navbar-nav .nav-link {
    padding: var(--spacing-sm);
  }
  
  .card-body {
    padding: var(--spacing-lg);
  }
  
  .service-card {
    padding: var(--spacing-xl);
  }
  
  .service-icon {
    width: 60px;
    height: 60px;
    font-size: var(--font-size-xl);
  }
  
  .service-price {
    font-size: var(--font-size-xl);
  }
  
  .contact-form {
    padding: var(--spacing-xl);
  }
  
  .testimonial-card {
    padding: var(--spacing-xl);
  }
  
  .team-photo {
    width: 100px;
    height: 100px;
  }
  
  .gallery-layout {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
  
  .blog-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  
  .footer {
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
  }
  
  .btn {
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: var(--font-size-sm);
  }
  
  .hero-blob {
    display: none;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-title {
    font-size: var(--font-size-4xl);
  }
  
  .hero-subtitle {
    font-size: var(--font-size-xl);
  }
  
  .gallery-layout {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .blog-grid {
    grid-template-columns: 1fr;
  }
  
  .service-card {
    padding: var(--spacing-xl);
  }
  
  .service-icon {
    width: 70px;
    height: 70px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-section {
    min-height: 90vh;
  }
  
  .gallery-layout {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .navbar-nav .nav-link {
    padding: var(--spacing-sm) var(--spacing-md);
  }
  
  .service-card {
    padding: var(--spacing-xl);
  }
  
  .contact-form {
    padding: var(--spacing-xl);
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .gallery-layout {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .service-card {
    padding: var(--spacing-2xl);
  }
  
  .testimonial-card {
    padding: var(--spacing-2xl);
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .gallery-layout {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .hero-section {
    min-height: 100vh;
  }
  
  .section {
    padding: var(--spacing-3xl) 0;
  }
}

/* ===== NAVIGATION RESPONSIVE ===== */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-lg);
    margin-top: var(--spacing-sm);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-lg);
  }
  
  .navbar-nav .nav-link {
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--border-radius-md);
    margin-bottom: var(--spacing-xs);
  }
  
  .navbar-nav .nav-link:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
  }
  
  .navbar-nav .nav-link::after {
    display: none;
  }
}

/* ===== HERO SECTION RESPONSIVE ===== */
@media (max-width: 767.98px) {
  .hero-section {
    text-align: center;
  }
  
  .hero-content {
    margin-bottom: var(--spacing-2xl);
    padding-top: 250px;
}
  
  .hero-image {
    order: -1;
    margin-bottom: var(--spacing-xl);
  }
}

/* ===== SERVICES RESPONSIVE ===== */
@media (max-width: 575.98px) {
  .service-card {
    margin-bottom: var(--spacing-lg);
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .service-card {
    margin-bottom: var(--spacing-lg);
  }
}

/* ===== TEAM RESPONSIVE ===== */
@media (max-width: 767.98px) {
  .team-card {
    margin-bottom: var(--spacing-lg);
  }
}

/* ===== CONTACT FORM RESPONSIVE ===== */
@media (max-width: 767.98px) {
  .contact-form {
    margin: var(--spacing-lg) 0;
  }
  
  .form-group {
    margin-bottom: var(--spacing-md);
  }
  
  .form-control {
    padding: var(--spacing-sm);
  }
  
  textarea.form-control {
    min-height: 100px;
  }
}

/* ===== TESTIMONIALS RESPONSIVE ===== */
@media (max-width: 767.98px) {
  .testimonial-card {
    margin-bottom: var(--spacing-lg);
  }
  
  .testimonial-card::before {
    font-size: 3rem;
  }
}



/* ===== FOOTER RESPONSIVE ===== */
@media (max-width: 767.98px) {
  .footer {
    text-align: center;
  }
  
  .footer .col-md-3,
  .footer .col-md-4 {
    margin-bottom: var(--spacing-xl);
  }
}

/* ===== BREADCRUMB RESPONSIVE ===== */
@media (max-width: 575.98px) {
  .breadcrumb {
    padding: var(--spacing-sm) 0;
  }
  
  .breadcrumb-item img {
    width: 16px;
    height: 16px;
  }
}

/* ===== SPACE PAGE RESPONSIVE ===== */
@media (max-width: 767.98px) {
  #space {
    min-height: 60vh;
    margin: var(--spacing-lg) 0;
  }
  
  #space::after {
    font-size: var(--font-size-xl);
  }
}

/* ===== ADDITIONAL FIXES FOR PRODUCTION ===== */

/* Fixed navbar spacing for all devices */
@media (max-width: 991.98px) {
  body {
    padding-top: 70px;
  }
}

@media (max-width: 575.98px) {
  body {
    padding-top: 60px;
  }
}

/* Improved gallery lightbox compatibility */
.gallery-item a {
  display: block;
  overflow: hidden;
  border-radius: var(--border-radius-lg);
}

.gallery-item a:hover {
  text-decoration: none;
}

/* Better form validation styling */
.just-validate-error-label {
  color: #d5261a !important;
  font-size: var(--font-size-sm);
  margin-top: var(--spacing-xs);
  display: block;
}

.just-validate-error-field {
  border-color: #d03618 !important;
  box-shadow: 0 0 0 6px rgba(232, 56, 61, 0.10) !important;
}

.just-validate-success-field {
  border-color: #1fa956 !important;
  box-shadow: 0 0 0 5px rgba(21, 163, 82, 0.10) !important;
}

/* Loading spinner for forms */
.form-loading {
  position: relative;
  pointer-events: none;
}

.form-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s linear infinite;
  z-index: 10;
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Better focus states for accessibility */
.btn:focus-visible,
.form-control:focus-visible,
.nav-link:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
  box-shadow: none;
}

/* High contrast improvements */
@media (prefers-contrast: high) {
  .card,
  .service-card,
  .testimonial-card,
  .team-card,
  .contact-form,
  .blog-card {
    border: 2px solid var(--neutral-dark);
  }
  
  .btn {
    border: 2px solid currentColor;
  }
}

/* Print optimizations */
@media print {
  body {
    padding-top: 0 !important;
  }
  
  .navbar,
  .footer,
  .breadcrumb,
  .btn,
  #space {
    display: none !important;
  }
  
  .section {
    page-break-inside: avoid;
    padding: var(--spacing-md) 0;
  }
  
  .card,
  .service-card,
  .testimonial-card,
  .team-card {
    break-inside: avoid;
  }
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #2700ff;
    --secondary-color: #077415;
    --accent-color: #ffa40f;
    --neutral-color: #000000;
    --neutral-light: #6d6c6c;
    --neutral-dark: #000000;
    --background-color: #ffffff;
    --background-light: #ffffff;
    --background-dark: #f0f0f0;
  }
  
  .btn {
    border: 2px solid currentColor;
  }
  
  .card {
    border: 1px solid var(--neutral-light);
  }
  
  .form-control {
    border: 2px solid var(--neutral-color);
  }
}

/* Dark mode support */

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .hero-blob {
    animation: none;
  }
  
  .fade-in,
  .slide-in-left,
  .slide-in-right,
  .bounce-in {
    animation: none;
    opacity: 1;
    transform: none;
  }
  
  .card:hover,
  .service-card:hover,
  .testimonial-card:hover,
  .team-card:hover,
  .blog-card:hover,
  .gallery-item:hover {
    transform: none;
  }
  
  .btn:hover {
    transform: none;
  }
  
  .navbar-nav .nav-link::after {
    transition: none;
  }
  
  .service-card::before {
    transition: none;
  }
  
  * {
    transition: none !important;
    animation: none !important;
  }
}

/* Print styles */
@media print {
  .navbar,
  .footer,
  .btn,
  .breadcrumb {
    display: none !important;
  }
  
  .hero-section {
    min-height: auto;
    padding: var(--spacing-lg) 0;
  }
  
  .section {
    padding: var(--spacing-lg) 0;
  }
  
  .card,
  .service-card,
  .testimonial-card,
  .team-card,
  .contact-form,
  .blog-card {
    box-shadow: none;
    border: 1px solid #d7d7d7;
  }
  
  .hero-title,
  .section-title {
    color: #000 !important;
  }
  
  .hero-subtitle,
  .section-subtitle {
    color: #413d3d !important;
  }
  
  .hero-description,
  .section-description,
  .card-text,
  .testimonial-text {
    color: #5f5f5f !important;
  }
  
  .gallery-layout,
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero-image img,
  .gallery-item img,
  .blog-image img {
    max-width: 100%;
    height: auto;
  }
}

/* ===== TOUCH DEVICE OPTIMIZATIONS ===== */
@media (hover: none) and (pointer: coarse) {
  .btn {
    min-height: 44px;
    min-width: 44px;
  }
  
  .navbar-nav .nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  
  .form-control {
    min-height: 44px;
  }
  

  
  .card:hover,
  .service-card:hover,
  .testimonial-card:hover,
  .team-card:hover,
  .blog-card:hover,
  .gallery-item:hover {
    transform: none;
  }
  
  .btn:hover {
    transform: none;
  }
}

/* ===== SCREEN READER SUPPORT ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sr-only-focusable:focus {
  position: static;
  width: auto;
  height: auto;
  padding: inherit;
  margin: inherit;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

/* ===== FOCUS MANAGEMENT ===== */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-color);
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 0 0 4px 4px;
  z-index: 1000;
}

.skip-link:focus {
  top: 0;
}

/* ===== CONTAINER ADJUSTMENTS ===== */
@media (max-width: 575.98px) {
  .container {
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .container {
    max-width: 720px;
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

/* ===== LOADING STATES ===== */
.loading {
  position: relative;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== ERROR STATES ===== */
.error {
  color: #ee321a;
  background-color: #fef2f2;
  border: 1px solid #ffc1ca;
  padding: var(--spacing-sm);
  border-radius: var(--border-radius-md);
  margin-bottom: var(--spacing-md);
}

.success {
  color: #0e8264;
  background-color: #f0fdf4;
  border: 1px solid #ccffe2;
  padding: var(--spacing-sm);
  border-radius: var(--border-radius-md);
  margin-bottom: var(--spacing-md);
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--background-dark);
  border-radius: var(--border-radius-md);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: var(--border-radius-md);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* ===== SELECTION STYLES ===== */
::selection {
  background-color: var(--primary-color);
  color: white;
}

::-moz-selection {
  background-color: var(--primary-color);
  color: white;
} 