/* Mobile First - Base styles for mobile devices */

/* Extra small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
  .hero-title {
    font-size: 2rem !important;
  }
  
  .hero-subtitle {
    font-size: 1.2rem !important;
  }
  
  .hero-desc {
    font-size: 1rem !important;
  }
  
  .section-title {
    font-size: 1.8rem !important;
  }
  
  .section {
    padding: 3rem 0 !important;
  }
  
  .navbar-brand {
    font-size: 1.2rem !important;
  }
  
  .contact-form {
    padding: 2rem !important;
  }
  
  .service-card, .feature-card, .price-card, .team-card {
    margin-bottom: 2rem;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  
  .blob-1, .blob-2 {
    display: none;
  }
  
  .process-number {
    width: 60px !important;
    height: 60px !important;
    font-size: 1.5rem !important;
  }
  
  .team-photo {
    width: 120px !important;
    height: 120px !important;
  }
  
  .testimonial-card {
    padding: 1.5rem !important;
    margin: 0.5rem !important;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.3rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .blob-1 {
    width: 200px;
    height: 200px;
  }
  
  .blob-2 {
    width: 150px;
    height: 150px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-title {
    font-size: 2.8rem;
  }
  
  .hero-subtitle {
    font-size: 1.4rem;
  }
  
  .section-title {
    font-size: 2.2rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 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: 3rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .hero-title {
    font-size: 3.5rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .container-xl {
    max-width: 1400px;
  }
}

/* Mobile-specific adjustments for Swiper */
@media (max-width: 767.98px) {
  .swiper {
    padding-bottom: 2rem !important;
  }
  
  .swiper-pagination {
    bottom: 0 !important;
  }
  
  .swiper-button-next,
  .swiper-button-prev {
    display: none !important;
  }
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 1023.98px) {
  .hero-section {
    min-height: 80vh;
  }
  
  .section {
    padding: 4rem 0;
  }
  
  .section-header {
    margin-bottom: 3rem;
  }
}

/* Print styles */
@media print {
  .navbar,
  .footer,
  .swiper-pagination,
  .swiper-button-next,
  .swiper-button-prev {
    display: none !important;
  }
  
  .hero-section {
    min-height: auto !important;
    padding: 2rem 0 !important;
  }
  
  .section {
    padding: 1rem 0 !important;
    page-break-inside: avoid;
  }
  
  .service-card,
  .feature-card,
  .price-card,
  .team-card {
    page-break-inside: avoid;
    box-shadow: none !important;
    border: 1px solid #ddd !important;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-section::before {
    background-image: url('../FIN_images/hero-bg@2x.webp');
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
  .hero-section {
    min-height: 100vh;
  }
  
  .hero-title {
    font-size: 2rem !important;
  }
  
  .hero-subtitle {
    font-size: 1.2rem !important;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  :root {
    --white: #1a1a1a;
    --light-gray: #2d2d2d;
    --gray: #b0b0b0;
    --dark-gray: #f0f0f0;
    --black: #ffffff;
  }
}

/* Reduced motion support for animations */
@media (prefers-reduced-motion: reduce) {
  .service-card,
  .feature-card,
  .price-card,
  .team-card,
  .testimonial-card,
  .gallery-item,
  .blog-card,
  .career-card,
  .casestudy-card,
  .coreinfo-card,
  .timeline-item {
    transition: none !important;
  }
  
  .service-card:hover,
  .feature-card:hover,
  .price-card:hover,
  .team-card:hover,
  .gallery-item:hover,
  .blog-card:hover,
  .career-card:hover,
  .casestudy-card:hover,
  .coreinfo-card:hover {
    transform: none !important;
  }
  
  .btn-primary:hover {
    transform: none !important;
  }
  
  .swiper {
    --swiper-wrapper-transition-timing-function: linear !important;
  }
}

/* Focus styles for accessibility */
@media (prefers-reduced-motion: no-preference) {
  .nav-link:focus,
  .btn:focus,
  .form-control:focus {
    outline: 2px solid var(--primary-orange);
    outline-offset: 2px;
  }
}

/* Container adjustments for different screen sizes */
@media (min-width: 1400px) {
  .container-xxl {
    max-width: 1600px;
  }
}

/* Navbar collapse adjustments */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: var(--white);
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(44, 120, 115, 0.1);
  }
  
  .navbar-nav .nav-link {
    padding: 0.5rem 0 !important;
    border-bottom: 1px solid var(--light-gray);
  }
  
  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
}

/* Footer adjustments */
@media (max-width: 767.98px) {
  .footer {
    padding: 2rem 0 1rem !important;
  }
  
  .footer .row > div {
    margin-bottom: 2rem;
  }
  
  .footer-bottom {
    margin-top: 2rem !important;
    padding-top: 1rem !important;
  }
}

/* Form adjustments */
@media (max-width: 575.98px) {
  .contact-form .row .col-md-6 {
    margin-bottom: 1rem;
  }
  
  .form-control {
    padding: 0.75rem !important;
    margin-bottom: 1rem !important;
  }
  
  .btn-primary {
    width: 100%;
    padding: 0.75rem 1rem !important;
  }
}

/* Hero section layout adjustments */
@media (max-width: 991.98px) {
  .hero-content .col-lg-6:first-child {
    order: 2;
    text-align: center;
    margin-top: 2rem;
  }
  
  .hero-content .col-lg-6:last-child {
    order: 1;
  }
}

/* Card grid adjustments */
@media (max-width: 575.98px) {
  .row .col-md-4,
  .row .col-md-6,
  .row .col-lg-4,
  .row .col-lg-6 {
    margin-bottom: 2rem;
  }
}

/* Process steps mobile layout */
@media (max-width: 767.98px) {
  .process-step {
    padding: 1.5rem 1rem !important;
  }
  
  .process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 2rem;
    background: var(--primary-orange);
  }
}

/* Timeline mobile adjustments */
@media (max-width: 767.98px) {
  .timeline-item {
    padding-left: 1.5rem !important;
  }
  
  .timeline-item::before {
    left: -5px !important;
    width: 10px !important;
    height: 10px !important;
  }
} 