/* Responsive Design - Mobile First Approach */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  :root {
    --section-padding: 3rem 0;
  }

  body {
overflow-x: hidden;
    font-size: 0.9rem;
  }

  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
  h4 { font-size: 1.1rem; }

  .hero-section {
    min-height: 80vh;
    text-align: center;
  }

  .hero-image img {
    transform: none;
    margin-top: 2rem;
  }

  .navbar-collapse {
    background: var(--color-neutral-light);
    margin-top: 1rem;
    padding: 1rem;
    border-radius: var(--border-radius-sm);
  }

  .service-item,
  .team-member,
  .testimonial-item {
    margin-bottom: 1.5rem;
  }

  .contact-form {
    padding: 1.5rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .faq-question {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  .faq-answer {
    padding: 1rem;
  }

  /* Disable animations on mobile for better performance */
  .hero-section::before,
  .shape-1,
  .shape-2,
  .shape-3 {
    display: none;
  }

  .card:hover,
  .service-item:hover,
  .team-member:hover,
  .gallery-item:hover {
    transform: none;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  .hero-section {
    min-height: 90vh;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-item,
  .team-member {
    margin-bottom: 2rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  :root {
    --section-padding: 4rem 0;
  }

  .hero-section {
    min-height: 100vh;
  }

  .hero-content {
    text-align: left;
  }

  .hero-image {
    text-align: center;
  }

  .navbar-expand-lg .navbar-nav {
  flex-direction: row;
    margin-left: auto;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .service-item {
    padding: 2.5rem;
  }

  .team-member img {
    width: 180px;
    height: 180px;
  }

  .contact-form {
    padding: 2.5rem;
  }

  /* Re-enable hover effects on tablets and above */
  .card:hover {
    transform: translateY(-10px);
  }

  .service-item:hover {
    transform: translateY(-10px) scale(1.02);
  }

  .team-member:hover {
    transform: translateY(-5px);
  }

  .gallery-item:hover {
    transform: scale(1.02);
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  :root {
    --section-padding: 5rem 0;
  }

  body {
overflow-x: hidden;
    font-size: 1.1rem;
  }

  h1 { font-size: 3rem; }
  h2 { font-size: 2.5rem; }
  h3 { font-size: 1.75rem; }

  .hero-section {
    padding: 0 2rem;
  }

  .hero-content {
    padding-right: 2rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .service-item {
    padding: 3rem;
  }

  .team-member {
    padding: 2rem;
  }

  .team-member img {
    width: 200px;
    height: 200px;
  }

  .contact-form {
    padding: 3rem;
  }

  .testimonial-item {
    padding: 2.5rem;
  }

  /* Enable decorative shapes on larger screens */
  .shape {
    display: block;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }

  .hero-section {
    padding: 0 3rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .service-item {
    padding: 3.5rem;
  }

  .team-member {
    padding: 2.5rem;
  }

  .contact-form {
    padding: 4rem;
  }
}

/* Extra extra large devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }

  .hero-section {
    padding: 0 4rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* Landscape orientation adjustments */
@media screen and (orientation: landscape) and (max-height: 500px) {
  .hero-section {
    min-height: 100vh;
    padding: 2rem 0;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 0.9rem;
  }

  .hero-image {
    display: none;
  }
}

/* Print styles */
@media print {
  * {
    background: white !important;
    color: black !important;
    box-shadow: none !important;
  }

  .hero-section::before,
  .shape,
  .navbar,
  footer {
    display: none !important;
  }

  .section {
    padding: 1rem 0;
    page-break-inside: avoid;
  }

  .card,
  .service-item,
  .team-member {
    break-inside: avoid;
    margin-bottom: 1rem;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --color-primary: #6B46C1;
    --color-secondary: #DC2626;
    --color-accent: #059669;
    --color-supporting: #BE185D;
    --text-dark: #000000;
    --text-medium: #374151;
  }

  .card,
  .service-item,
  .team-member,
  .testimonial-item {
    border: 2px solid var(--text-dark);
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  :root {
    --color-neutral: #1F2937;
    --color-neutral-light: #374151;
    --color-neutral-dark: #111827;
    --text-dark: #F9FAFB;
    --text-medium: #D1D5DB;
    --text-light: #9CA3AF;
  }

  body {
overflow-x: hidden;
    background-color: var(--color-neutral);
    color: var(--text-dark);
  }

  .card,
  .service-item,
  .team-member,
  .testimonial-item,
  .contact-form,
  .faq-item {
    background: var(--color-neutral-light);
  }

  .form-control {
    background: var(--color-neutral-dark);
    color: var(--text-dark);
    border-color: var(--color-neutral);
  }

  .form-control:focus {
    background: var(--color-neutral-light);
  }
} 