/* Responsive Design for All Devices */

/* Base Responsive Settings */
* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  overflow-x: hidden;
}

/* Container Responsive */
.container {
  max-width: 100%;
  padding: 0 15px;
}

/* Navigation Responsive */
.navbar {
  padding: 0.5rem 0;
}

.navbar-brand img {
  max-height: 40px;
  width: auto;
}

.navbar-toggler {
  border: none;
  padding: 0.25rem 0.5rem;
}

/* Hero Section Responsive */
.hero {
  padding: 100px 0 60px;
  min-height: auto;
}

.hero h1 {
  font-size: 2.5rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.hero-image img {
  max-width: 100%;
  height: auto;
}

/* Cards Responsive */
.feature-card,
.service-card,
.pricing-card,
.testimonial-card,
.blog-card,
.contact-card {
  margin-bottom: 2rem;
  padding: 1.5rem;
}

.feature-icon,
.service-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 1rem;
}

/* Buttons Responsive */
.btn {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  white-space: nowrap;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* Images Responsive */
img {
  max-width: 100%;
  height: auto;
}

/* Tables Responsive */
.comparison-table {
  overflow-x: auto;
}

.table {
  min-width: 600px;
}

/* Gallery Responsive */
.gallery-item {
  margin-bottom: 1.5rem;
  overflow: hidden;
  border-radius: 8px;
}

/* Form Responsive */
.form-control {
  padding: 0.75rem;
  font-size: 1rem;
}

.input-group {
  flex-wrap: nowrap;
}

/* Footer Responsive */
.footer {
  padding: 3rem 0 1rem;
}

.footer .col-lg-4,
.footer .col-lg-2 {
  margin-bottom: 2rem;
}

/* Large Devices (Desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  .hero h1 {
    font-size: 3.5rem;
  }
  
  .hero p {
    font-size: 1.25rem;
  }
}

/* Medium Devices (Tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 1199px) {
  .hero h1 {
    font-size: 3rem;
  }
  
  .hero p {
    font-size: 1.15rem;
  }
  
  .feature-card,
  .service-card {
    height: 100%;
  }
  
  .pricing-card {
    margin-bottom: 2rem;
  }
}

/* Small Devices (Landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767px) {
  .hero {
    padding: 80px 0 40px;
  }
  
  .hero h1 {
    font-size: 2.25rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .pricing-card {
    max-width: 400px;
    margin: 0 auto 2rem;
  }
}

/* Extra Small Devices (Portrait phones, less than 576px) */
@media (max-width: 575px) {
  html {
    font-size: 14px;
  }
  
  .container {
    padding: 0 10px;
  }
  
  .hero {
    padding: 70px 0 30px;
    text-align: center;
  }
  
  .hero h1 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
  }
  
  .hero p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }
  
  .hero .d-flex {
    flex-direction: column;
    gap: 1rem !important;
  }
  
  .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  .section-title {
    font-size: 1.75rem;
    margin-bottom: 1rem;
  }
  
  .section-subtitle {
    font-size: 0.95rem;
    margin-bottom: 2rem;
  }
  
  .feature-card,
  .service-card,
  .testimonial-card,
  .blog-card {
    padding: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .pricing-card {
    padding: 1.5rem 1rem;
    margin-bottom: 2rem;
  }
  
  .pricing-card h3 {
    font-size: 1.5rem;
  }
  
  .price {
    font-size: 2rem;
  }
  
  .navbar-nav {
    text-align: center;
    padding: 1rem 0;
  }
  
  .navbar-nav .nav-link {
    padding: 0.5rem 0;
  }
  
  .d-flex.gap-3 {
    flex-direction: column;
    gap: 1rem !important;
  }
  
  .contact-card {
    padding: 1rem;
  }
  
  .contact-card h2 {
    font-size: 1.5rem;
  }
  
  .gallery-item {
    margin-bottom: 1rem;
  }
  
  .blog-card img {
    height: 200px;
    object-fit: cover;
  }
  
  .blog-title {
    font-size: 1.1rem;
  }
  
  .blog-excerpt {
    font-size: 0.9rem;
  }
  
  .footer {
    padding: 2rem 0 1rem;
  }
  
  .footer .col-lg-4,
  .footer .col-lg-2 {
    text-align: center;
    margin-bottom: 1.5rem;
  }
  
  .input-group {
    flex-direction: column;
  }
  
  .input-group .form-control {
    margin-bottom: 0.5rem;
    border-radius: 0.375rem;
  }
  
  .input-group .btn {
    border-radius: 0.375rem;
  }
  
  .comparison-table {
    font-size: 0.85rem;
  }
  
  .table th,
  .table td {
    padding: 0.5rem 0.25rem;
  }
  
  .accordion-button {
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
  }
  
  .accordion-body {
    font-size: 0.9rem;
    padding: 1rem;
  }
}

/* Extra Extra Small Devices (Very small phones, less than 375px) */
@media (max-width: 374px) {
  html {
    font-size: 13px;
  }
  
  .container {
    padding: 0 8px;
  }
  
  .hero h1 {
    font-size: 1.5rem;
  }
  
  .hero p {
    font-size: 0.9rem;
  }
  
  .btn {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
  
  .feature-card,
  .service-card,
  .testimonial-card,
  .blog-card,
  .contact-card {
    padding: 0.75rem;
  }
  
  .pricing-card {
    padding: 1rem 0.75rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .price {
    font-size: 1.75rem;
  }
}

/* Landscape Orientation */
@media (orientation: landscape) and (max-height: 500px) {
  .hero {
    padding: 60px 0 30px;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .section {
    padding: 2rem 0;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .btn,
  .footer {
    display: none !important;
  }
  
  .hero {
    padding: 1rem 0;
  }
  
  .section {
    padding: 1rem 0;
  }
  
  * {
    color: black !important;
    background: white !important;
  }
}