/* Responsive Design - Mobile First Approach */

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .hero-title {
    font-size: 4rem;
  }
  
  .section-title {
    font-size: 3rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (max-width: 991.98px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-subtitle {
    font-size: 1.3rem;
  }
  
  .section-title {
    font-size: 2.2rem;
  }
  
  .navbar-nav {
  flex-direction: row;
    text-align: center;
    padding: 1rem 0;
  }
  
  .navbar-nav .nav-link {
    margin: 0.5rem 0;
  }
  
  .service-card,
  .price-card,
  .team-member {
    margin-bottom: 3rem;
  }
  
  .contact-form {
    padding: 2rem;
  }
  
  .shape-1,
  .shape-2 {
    display: none;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (max-width: 767.98px) {
  .hero {
    min-height: 80vh;
    padding-top: 70px;
  }
  
  .hero-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }
  
  .hero-desc {
    font-size: 1rem;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .section-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }
  
  .section-subtitle {
    font-size: 1.1rem;
  }
  
  .section-desc {
    margin-bottom: 2rem;
  }
  
  .about-feature,
  .feature-item,
  .coreinfo-item {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .service-card {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .service-card img {
    height: 180px;
  }
  
  .service-price {
    font-size: 1.8rem;
  }
  
  .price-card {
    padding: 2rem;
    margin-bottom: 2rem;
  }
  
  .price-amount {
    font-size: 2.5rem;
  }
  
  .team-member {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .team-member img {
    width: 120px;
    height: 120px;
  }
  
  .review-item {
    padding: 1.5rem;
    margin: 0.5rem;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
  
  .form-control {
    padding: 12px;
  }
  
  .btn-primary {
    padding: 12px 30px;
    width: 100%;
  }
  
  .blog-item img {
    height: 180px;
  }
  
  .gallery-item img {
    height: 200px;
  }
  
  footer {
    padding: 2rem 0 1rem;
  }
  
  .footer-section {
    margin-bottom: 2rem;
    text-align: center;
  }
  
  /* Disable animations on mobile for better performance */
  .floating,
  .service-card:hover,
  .about-feature:hover,
  .feature-item:hover,
  .coreinfo-item:hover,
  .team-member:hover,
  .blog-item:hover,
  .gallery-item:hover {
    animation: none;
    transform: none;
  }
  
  /* Hide decorative shapes on mobile */
  .shape {
    display: none;
  }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  .hero {
    min-height: 70vh;
    padding-top: 60px;
  }
  
  .hero-title {
    font-size: 2rem;
    line-height: 1.2;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-desc {
    font-size: 0.9rem;
  }
  
  .section {
    padding: 40px 0;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  .about-feature,
  .feature-item,
  .coreinfo-item,
  .service-card,
  .price-card,
  .team-member {
    padding: 1rem;
  }
  
  .about-feature i,
  .feature-item i {
    font-size: 2.5rem;
  }
  
  .coreinfo-item i {
    font-size: 2rem;
  }
  
  .service-card img,
  .blog-item img {
    height: 150px;
  }
  
  .service-price {
    font-size: 1.5rem;
  }
  
  .price-amount {
    font-size: 2rem;
  }
  
  .team-member img {
    width: 100px;
    height: 100px;
  }
  
  .review-item {
    padding: 1rem;
  }
  
  .review-text {
    font-size: 1rem;
  }
  
  .contact-form {
    padding: 1rem;
  }
  
  .form-control {
    padding: 10px;
  }
  
  .btn-primary {
    padding: 10px 25px;
  }
  
  .gallery-item img {
    height: 150px;
  }
  
  .navbar-brand {
    font-size: 1.3rem;
  }
  
  .navbar-toggler {
    border: none;
    padding: 0.25rem;
  }
  
  .navbar-toggler:focus {
    box-shadow: none;
  }
  
  .accordion-button {
    padding: 1rem;
    font-size: 0.9rem;
  }
  
  .accordion-body {
overflow-x: hidden;
    padding: 1rem;
    font-size: 0.9rem;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-title,
  .section-title {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}

/* Print styles */
@media print {
  .navbar,
  .btn,
  .swiper-pagination,
  .swiper-button-next,
  .swiper-button-prev {
    display: none !important;
  }
  
  .hero {
    min-height: auto;
    padding: 2rem 0;
  }
  
  .section {
    padding: 1rem 0;
    page-break-inside: avoid;
  }
  
  .service-card,
  .price-card,
  .team-member,
  .review-item {
    page-break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
  }
}

/* Accessibility - Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  ::before,
  ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .floating {
    animation: none;
  }
  
  .service-card:hover,
  .about-feature:hover,
  .feature-item:hover,
  .coreinfo-item:hover,
  .team-member:hover,
  .blog-item:hover,
  .gallery-item:hover,
  .btn-primary:hover {
    transform: none;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --primary-coral: #CC0000;
    --primary-sage: #006600;
    --primary-lavender: #6600CC;
    --primary-amber: #CC9900;
    --primary-mint: #0066CC;
    --gray-light: #F0F0F0;
    --gray-medium: #808080;
    --gray-dark: #202020;
  }
  
  .service-card,
  .price-card,
  .team-member,
  .review-item,
  .about-feature,
  .feature-item,
  .coreinfo-item {
    border: 2px solid var(--gray-dark);
  }
}

/* Dark mode preferences */
@media (prefers-color-scheme: dark) {
  :root {
    --white: #1a1a1a;
    --gray-light: #2d2d2d;
    --gray-medium: #a0a0a0;
    --gray-dark: #e0e0e0;
    --black: #ffffff;
  }
  
  body {
overflow-x: hidden;
    background-color: var(--white);
    color: var(--gray-dark);
  }
  
  .hero {
    background: linear-gradient(135deg, #2c5aa0, #6b46c1);
  }
  
  .service-card,
  .price-card,
  .team-member,
  .review-item,
  .about-feature,
  .feature-item,
  .coreinfo-item,
  .blog-item {
    background: var(--gray-light);
    color: var(--gray-dark);
  }
  
  .form-control {
    background: var(--gray-light);
    color: var(--gray-dark);
    border-color: var(--gray-medium);
  }
}

/* Container max-widths for different breakpoints */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* Swiper responsive adjustments */
@media (max-width: 767.98px) {
  .swiper-slide {
    width: 100% !important;
  }
  
  .swiper-button-next,
  .swiper-button-prev {
    display: none;
  }
  
  .swiper-pagination {
    bottom: 10px;
  }
}

/* Font size adjustments for better readability */
@media (max-width: 575.98px) {
  html {
    font-size: 14px;
  }
  
  .small,
  small {
    font-size: 0.8rem;
  }
}

@media (min-width: 1200px) {
  html {
    font-size: 16px;
  }
} 