/* ===== RESPONSIVE STYLES FOR SOCIAL MEDIA AGENCY ===== */

/* Extra Small Devices (phones, 576px and down) */
@media (max-width: 575.98px) {
  .hero-title {
    font-size: 1.77rem;
    line-height: 1.3;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-desc {
    font-size: 0.96rem;
  }
  
  .section {
    padding: 2.5rem 0;
  }
  
  .section-title {
    font-size: 1.64rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  .navbar-brand {
    font-size: 1.14rem;
  }
  
  .navbar-nav .nav-link {
    font-size: 0.99rem;
    margin: 0.25rem 0;
  }
  
  .contact-form {
    padding: 1rem;
    margin: 1rem;
  }
  
  .feature-card {
    padding: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .service-card-body {
    padding: 1.5rem;
  }
  
  .team-card-body {
    padding: 1.5rem;
  }
  
  .price-card {
    padding: 2rem 1.5rem;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .gallery-item img {
    height: 200px;
  }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.23rem;
  }
  
  .section-title {
    font-size: 1.80rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
  }
  
  .navbar-toggler:focus {
    box-shadow: none;
  }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-title {
    font-size: 2.59rem;
  }
  
  .hero-subtitle {
    font-size: 1.39rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .section {
    padding: 4rem 0;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .contact-form {
    padding: 2.5rem;
  }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero-title {
    font-size: 2.76rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .section {
    padding: 6rem 0;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
  }
  
  .container {
    max-width: 1200px;
  }
}

/* Landscape Orientation Adjustments */
@media (orientation: landscape) and (max-height: 500px) {
  .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
    min-height: 100vh;
    padding: 2rem 0;
  }
  
  .hero-title {
    font-size: 2rem;
    margin-bottom: 0.58rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1rem;
  }
  
  .hero-desc {
    font-size: 1.04rem;
    margin-bottom: 1rem;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .footer,
  .blob-1,
  .blob-2,
  .contact-form .btn,
  .faq-question::after {
    display: none;
  }
  
  .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
    background: white;
    color: black;
    min-height: auto;
    padding: 2rem 0;
  }
  
  .hero-title,
  .hero-subtitle,
  .hero-desc {
    color: black;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  .service-card,
  .feature-card,
  .team-card,
  .price-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #d6d6d6;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  :root {
    --primary-purple: #4f18a8;
    --primary-pink: #a80d40;
    --primary-blue: #1f3394;
    --primary-teal: #0d745d;
    --primary-orange: #bd1e07;
    --gray-600: #222c38;
    --gray-800: #111925;
  }
  
  .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
    background: #313131;
  }
  
  .service-card,
  .feature-card,
  .team-card,
  .price-card {
    border: 2px solid var(--gray-800);
  }
  
  .contact-form .form-control {
    border: 2px solid var(--gray-800);
  }
}

/* Touch Device Optimizations */
@media (pointer: coarse) {
  .nav-link,
  .btn,
  .faq-question {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  
  .gallery-item img {
    cursor: pointer;
  }
  
  .service-card,
  .feature-card,
  .team-card {
    transition: transform 0.2s ease;
  }
  
  .service-card:active,
  .feature-card:active,
  .team-card:active {
    transform: scale(0.98);
  }
}

/* Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
  .hero-section::before {
    animation: none;
  }
  
  .blob-1,
  .blob-2 {
    animation: none;
  }
  
  .service-card:hover,
  .feature-card:hover,
  .team-card:hover,
  .price-card:hover {
    transform: none;
  }
  
  .nav-link:hover {
    transform: none;
  }
  
  .contact-form .btn-primary:hover {
    transform: none;
  }
}

/* Dark Mode Preparation (for future implementation) */
@media (prefers-color-scheme: dark) {
  /* This section is prepared for dark mode but not implemented per requirements */
  /* The template maintains light theme for accessibility */
}

/* Focus States for Accessibility */
.nav-link:focus,
.btn:focus,
.form-control:focus,
.faq-question:focus {
  outline: 2px solid var(--primary-purple);
  outline-offset: 2px;
}

/* Text Selection Styles */
::selection {
  background-color: var(--primary-purple);
  color: white;
}

::-moz-selection {
  background-color: var(--primary-purple);
  color: white;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-purple);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--dark-purple);
}

/* Loading States */
.loading {
  opacity: 0.7;
  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-purple);
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Image Optimization for Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-image img,
  .service-card img,
  .team-card img,
  .blog-card img,
  .gallery-item img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Container Adjustments */
@media (max-width: 1200px) {
  .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-width: 768px) {
  .container-fluid {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  
  .row {
    margin-left: -0.75rem;
    margin-right: -0.75rem;
  }
  
  .row > * {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

/* Grid System Adjustments */
@media (max-width: 991.98px) {
  .col-lg-4 {
    margin-bottom: 2rem;
  }
  
  .col-lg-6 {
    margin-bottom: 2rem;
  }
  
  .col-md-6 {
    margin-bottom: 1.67rem;
  }
}

@media (max-width: 767.98px) {
  .col-md-6,
  .col-sm-6 {
    margin-bottom: 1.61rem;
  }
}

/* Navigation Improvements */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(89, 96, 247, 0.95);
    border-radius: 10px;
    margin-top: 1rem;
    padding: 1rem;
  }
  
  .navbar-nav {
    text-align: center;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem;
    border-radius: 5px;
    margin: 0.25rem 0;
  }
  
  .navbar-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
  }
} 