/* ==========================================================================
   RESPONSIVE CSS - Additional breakpoints and mobile optimizations
   ========================================================================== */

/* Extra Large Devices (1400px and up) */
@media (min-width: 1400px) {
  .container-xxl {
    max-width: 1320px;
  }
  
  .hero-title {
    font-size: 3.58rem;
  }
  
  .hero-subtitle {
    font-size: 1.87rem;
  }
}

/* Large Devices (1200px and up) */
@media (min-width: 1200px) {
  .hero-content {
    padding-right: 2rem;
    padding-top: 175px;
}
  
  .service-item img {
    height: 250px;
  }
  
  .team-member img {
    width: 180px;
    height: 180px;
  }
}

/* Medium Devices (992px and up) */
@media (min-width: 992px) {
  .navbar-expand-lg .navbar-nav {
    margin-left: auto;
  }
  
  .navbar-expand-lg .navbar-collapse {
    display: flex!important;
    flex-basis: auto;
  }
  
  .navbar-expand-lg .navbar-toggler {
    display: none;
  }
  
  .hero {
    text-align: left;
  }
  
  .gallery-layout {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .timeline-item {
    margin-left: 2rem;
  }
  
  .timeline-item::before {
    left: -2rem;
  }
}

/* Small Devices (768px and up) */
@media (min-width: 768px) {
  .about-feature {
    min-height: 280px;
  }
  
  .service-item {
    min-height: 500px;
  }
  
  .feature-item {
    min-height: 250px;
  }
  
  .priceplan-item {
    min-height: 400px;
  }
  
  .team-member {
    min-height: 320px;
  }
  
  .review-item {
    min-height: 200px;
  }
  
  .casestudy-item {
    min-height: 200px;
  }
  
  .career-item {
    min-height: 250px;
  }
  
  .coreinfo-item {
    min-height: 220px;
  }
  
  .blog-item {
    min-height: 350px;
  }
  
  .contact-form {
    margin-bottom: 0;
  }
  
  .gallery-layout {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile Navigation */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(255, 255, 255, 0.98);
    border-radius: var(--border-radius);
    margin-top: 1rem;
    padding: 1rem;
    box-shadow: var(--shadow-md);
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--medium-gray);
  }
  
  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
}

/* Extra Small Devices (up to 576px) */
@media (max-width: 575.98px) {
  .hero {
    text-align: center;
    min-height: 80vh;
    padding: 2rem 0;
  }
  
  .hero-image {
    margin-top: 2rem;
  }
  
  .navbar-brand {
    font-size: 1.26rem;
  }
  
  .section-title {
    font-size: 1.57rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  .about-feature {
    margin-bottom: 2rem;
    padding: 1.5rem;
  }
  
  .service-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
  }
  
  .service-item img {
    height: 180px;
  }
  
  .feature-item {
    margin-bottom: 2rem;
    padding: 1.5rem 1rem;
  }
  
  .priceplan-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
  }
  
  .team-member {
    margin-bottom: 2rem;
    padding: 1.5rem;
  }
  
  .team-member img {
    width: 120px;
    height: 120px;
  }
  
  .review-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
  }
  
  .casestudy-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
  }
  
  .process-item {
    margin-bottom: 2rem;
    padding: 1.5rem 1rem;
  }
  
  .timeline-item {
    margin-left: 1rem;
    margin-bottom: 1.66rem;
    padding: 1.5rem;
  }
  
  .timeline-item::before {
    left: -1rem;
    width: 15px;
    height: 15px;
  }
  
  .career-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
  }
  
  .coreinfo-item {
    margin-bottom: 2rem;
    padding: 1.5rem 1rem;
  }
  
  .blog-item {
    margin-bottom: 2rem;
  }
  
  .blog-item img {
    height: 150px;
  }
  
  .blog-item-content {
    padding: 1.5rem;
  }
  
  .contact-form {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .contact-info {
    padding: 1.5rem;
  }
  
  .faq-question {
    padding: 1rem;
    font-size: 1.05rem;
  }
  
  .faq-answer {
    padding: 1rem;
    font-size: 1.02rem;
  }
  
  .footer {
    text-align: center;
    padding: 2rem 0 1rem;
  }
  
  .footer-section {
    margin-bottom: 2rem;
  }
}

/* Very Small Devices (up to 480px) */
@media (max-width: 480px) {
  .hero-title {
    font-size: 1.59rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-desc {
    font-size: 0.95rem;
  }
  
  h1 {
    font-size: 1.57rem;
  }
  
  h2 {
    font-size: 1.38rem;
  }
  
  h3 {
    font-size: 1.30rem;
  }
  
  h4 {
    font-size: 1.22rem;
  }
  
  .navbar {
    padding: 0.5rem 0;
  }
  
  .navbar-brand {
    font-size: 1.16rem;
  }
  
  .section-padding {
    padding: 2rem 0;
  }
  
  .service-item-name {
    font-size: 1.22rem;
  }
  
  .service-item-price {
    font-size: 1.29rem;
  }
  
  .priceplan-item-price {
    font-size: 1.51rem;
  }
  
  .contact-form .form-control {
    padding: 0.5rem 0.75rem;
  }
  
  .contact-form .btn {
    padding: 0.5rem 1.5rem;
    width: 100%;
  }
  
  /* Notification responsive */
  .notification {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
    transform: translateY(-100%);
  }
  
  .notification.show {
    transform: translateY(0);
  }
}

/* Landscape Orientation Adjustments */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: 100vh;
    padding: 1rem 0;
  }
  
  .hero-title {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  
  .hero-subtitle {
    font-size: 1.11rem;
    margin-bottom: 1rem;
  }
  
  .hero-desc {
    margin-bottom: 1.67rem;
  }
}

/* High DPI/Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero::before {
    background-image: url('../INF_images/hero-bg@2x.webp');
  }
}

/* Print Styles */
@media print {
  .navbar,
  .footer,
  .contact-form,
  .btn {
    display: none;
  }
  
  .hero {
    min-height: auto;
    background: none;
    color: black;
  }
  
  section {
    padding: 1rem 0;
    page-break-inside: avoid;
  }
  
  .service-item,
  .team-member,
  .review-item {
    page-break-inside: avoid;
    box-shadow: none;
    border: 1px solid #e6e6e6;
  }
}

/* Dark Mode Support (respects system preference) */

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .hero::before {
    animation: none;
  }
  
  .fade-in-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
  
  .scale-hover:hover {
    transform: none;
  }
  
  .service-item:hover,
  .team-member:hover,
  .casestudy-item:hover,
  .career-item:hover,
  .blog-item:hover {
    transform: none;
  }
  
  .gallery-item:hover img {
    transform: none;
  }
}

/* Focus Styles for Accessibility */
@media (prefers-reduced-motion: no-preference) {
  .btn:focus,
  .form-control:focus,
  .nav-link:focus,
  .navbar-brand:focus {
    outline: 2px solid var(--primary-teal);
    outline-offset: 2px;
  }
}

/* Container Adjustments */
@media (max-width: 1199.98px) {
  .container-xl {
    max-width: 960px;
  }
}

@media (max-width: 991.98px) {
  .container-lg {
    max-width: 720px;
  }
  
  .hero-content {
    padding-right: 0;
    margin-bottom: 2rem;
    padding-top: 175px;
}
}

@media (max-width: 767.98px) {
  .container-md {
    max-width: 540px;
  }
  
  .row > [class*="col-"] {
    margin-bottom: 2rem;
  }
  
  .row > [class*="col-"]:last-child {
    margin-bottom: 0;
  }
}

@media (max-width: 575.98px) {
  .container-sm {
    max-width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Grid System Enhancements */
@media (min-width: 576px) {
  .row-cols-sm-2 > * {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (min-width: 768px) {
  .row-cols-md-3 > * {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
}

@media (min-width: 992px) {
  .row-cols-lg-4 > * {
    flex: 0 0 25%;
    max-width: 25%;
  }
  
  .row-cols-lg-5 > * {
    flex: 0 0 20%;
    max-width: 20%;
  }
  
  .row-cols-lg-6 > * {
    flex: 0 0 16.666667%;
    max-width: 16.666667%;
  }
} 