/* =============================================
   RESPONSIVE CSS - MOBILE FIRST APPROACH
   Bootstrap 5 Breakpoints Integration
   ============================================= */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .hero-desc {
    font-size: 1rem;
  }
  
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  .services-item {
    padding: 1.5rem;
  }
  
  .priceplan-item {
    padding: 2rem 1.5rem;
  }
  
  .contact-form {
    padding: 2rem;
  }
  
  .hero-blob {
    display: none;
  }
  
  .process-item {
    flex-direction: column;
    text-align: center;
  }
  
  .process-number {
    margin-right: 0;
    margin-bottom: 1rem;
  }
  
  .timeline-item::before {
    display: none;
  }
}

/* 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.2rem;
  }
  
  .services-item {
    padding: 1.75rem;
  }
  
  .priceplan-item {
    padding: 2.5rem;
  }
  
  .contact-form {
    padding: 2.5rem;
  }
  
  .hero-blob:nth-child(1) {
    width: 200px;
    height: 200px;
  }
  
  .hero-blob:nth-child(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.75rem;
  }
  
  .hero-subtitle {
    font-size: 1.3rem;
  }
  
  .services-item {
    padding: 2rem;
  }
  
  .priceplan-item {
    padding: 3rem 2rem;
  }
  
  .contact-form {
    padding: 3rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero-blob:nth-child(1) {
    width: 250px;
    height: 250px;
  }
  
  .hero-blob:nth-child(2) {
    width: 175px;
    height: 175px;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-subtitle {
    font-size: 1.4rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .priceplan-item.featured {
    transform: scale(1.05);
  }
  
  .hero-blob:nth-child(1) {
    width: 275px;
    height: 275px;
  }
  
  .hero-blob:nth-child(2) {
    width: 200px;
    height: 200px;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .hero-title {
    font-size: 3.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.5rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .container {
    max-width: 1200px;
  }
  
  .hero-blob:nth-child(1) {
    width: 300px;
    height: 300px;
  }
  
  .hero-blob:nth-child(2) {
    width: 200px;
    height: 200px;
  }
}

/* Specific responsive adjustments */
@media (max-width: 767.98px) {
  .navbar-toggler {
    border: none;
    padding: 0.5rem;
  }
  
  .navbar-collapse {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 10px;
    padding: 1rem;
    margin-top: 1rem;
  }
  
  .team-member img {
    width: 120px;
    height: 120px;
  }
  
  .about-feature {
    padding: 1.5rem;
  }
  
  .features-item {
    padding: 2rem;
  }
  
  .casestudy-item {
    padding: 2rem;
  }
  
  .coreinfo-item {
    padding: 1.5rem;
  }
  
  .career-item {
    padding: 2rem;
  }
  
  .blog-content {
    padding: 1.5rem;
  }
  
  .faq-question {
    padding: 1rem;
  }
  
  .faq-answer {
    padding: 1rem;
  }
  
  .add-page-item {
    padding: 1.5rem;
  }
}

/* Print styles */
@media print {
  .navbar,
  .footer,
  .hero-shapes,
  .hero-blob {
    display: none;
  }
  
  .hero-section {
    background: white;
    color: black;
    min-height: auto;
  }
  
  .hero-content {
    color: black;
    padding-top: 200px;
}
  
  * {
    background: white !important;
    color: black !important;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .services-item,
  .priceplan-item,
  .team-member,
  .casestudy-item,
  .coreinfo-item {
    border: 2px solid var(--primary-shadow-dark);
  }
  
  .btn-primary {
    border: 2px solid var(--primary-shadow-dark);
  }
  
  .form-control {
    border: 2px solid var(--primary-shadow-dark);
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
  .hero-section {
    min-height: 80vh;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
}

/* Specific component responsive behavior */
@media (max-width: 991.98px) {
  .process-item {
    flex-direction: column;
    text-align: center;
  }
  
  .process-number {
    margin-right: 0;
    margin-bottom: 1rem;
  }
  
  .timeline-item::before {
    left: 50%;
    transform: translateX(-50%);
    top: -10px;
  }
  
  .timeline-item {
    text-align: center;
  }
}

/* Ensure images are responsive */
@media (max-width: 767.98px) {
  .hero-image {
    max-width: 100%;
    margin: 0 auto;
  }
  
  .service-image {
    height: 180px;
  }
  
  .gallery-image {
    height: 250px;
  }
  
  .blog-image {
    height: 180px;
  }
}

/* Footer responsive adjustments */
@media (max-width: 575.98px) {
  .footer {
    text-align: center;
  }
  
  .footer .col-md-4 {
    margin-bottom: 2rem;
  }
}

/* Navigation adjustments for mobile */
@media (max-width: 991.98px) {
  .navbar-nav {
    text-align: center;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    margin: 0.25rem 0;
  }
}

/* Hover effects disabled on touch devices */
@media (hover: none) {
  .services-item:hover,
  .priceplan-item:hover,
  .team-member:hover,
  .reviews-item:hover,
  .casestudy-item:hover,
  .process-item:hover,
  .timeline-item:hover,
  .career-item:hover,
  .coreinfo-item:hover,
  .blog-item:hover,
  .faq-item:hover,
  .gallery-item:hover,
  .add-page-item:hover,
  .about-feature:hover,
  .features-item:hover,
  .btn-primary:hover {
    transform: none;
  }
}

/* Additional responsive utilities */
.d-mobile-none {
  display: none;
}

@media (min-width: 768px) {
  .d-mobile-none {
    display: block;
  }
}

.d-desktop-none {
  display: block;
}

@media (min-width: 768px) {
  .d-desktop-none {
    display: none;
  }
}

/* Ensure proper spacing on all devices */
@media (max-width: 575.98px) {
  .section-padding {
    padding: 3rem 0;
  }
  
  .add-page-section {
    padding: 3rem 0;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .section-padding {
    padding: 4rem 0;
  }
  
  .add-page-section {
    padding: 3.5rem 0;
  }
}

/* Ensure readability on small screens */
@media (max-width: 575.98px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
  h4 { font-size: 1.125rem; }
  h5 { font-size: 1rem; }
  h6 { font-size: 0.875rem; }
  
  p {
    font-size: 0.95rem;
  }
} 