/* Responsive Styles */

/* Large devices (desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container-fluid {
    max-width: 1400px;
  }
  
  .hero-content h1 {
    padding-top: 50px !important;
    font-size: 4rem;
  }
  
  .section {
    padding: 6rem 0;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (max-width: 991.98px) {
  .hero-content h1 {
    padding-top: 50px !important;
    font-size: 3rem;
  }
  
  .hero-content p {
    font-size: 1.19rem;
  }
  
  .section {
    padding: 4rem 0;
  }
  
  .section-title {
    margin-bottom: 3rem;
  }
  
  .feature-card,
  .service-card,
  .pricing-card {
    margin-bottom: 2rem;
  }
  
  .team-member {
    margin-bottom: 2rem;
  }
  
  .contact-form {
    padding: 2.5rem;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (max-width: 767.98px) {
  .navbar-brand {
    font-size: 1.37rem;
  }
  
  .navbar-nav {
    text-align: center;
    padding: 1rem 0;
  }
  
  .navbar-nav .nav-link {
    margin: 0.5rem 0;
  }
  
  #hero {
    text-align: center;
    padding: 2rem 0;
  }
  
  .hero-content h1 {
    padding-top: 50px !important;
    font-size: 2.57rem;
    margin-bottom: 1rem;
  }
  
  .hero-content p {
    font-size: 1rem;
    margin-bottom: 1.72rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .section-title h2 {
    font-size: 1.84rem;
  }
  
  .section-title p {
    font-size: 1rem;
  }
  
  .feature-card,
  .service-card,
  .pricing-card,
  .team-member,
  .review-card {
    margin-bottom: 1.63rem;
  }
  
  .service-card,
  .pricing-card {
    padding: 2rem 1.5rem;
  }
  
  .pricing-card .price {
    font-size: 2.61rem;
  }
  
  .contact-form {
    padding: 2rem 1.5rem;
  }
  
  .team-member img {
    width: 120px;
    height: 120px;
  }
  
  .gallery-item {
    margin-bottom: 1rem;
  }
  
  .blog-card {
    margin-bottom: 1.64rem;
  }
  
  .faq-item {
    margin-bottom: 0.86rem;
  }
  
  .faq-question {
    padding: 1rem;
    font-size: 0.97rem;
  }
  
  .faq-answer {
    padding: 0 1rem 1rem;
    font-size: 0.99rem;
  }
  
  footer {
    text-align: center;
    padding: 2rem 0 1rem;
  }
  
  footer .row > div {
    margin-bottom: 1.63rem;
  }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .navbar-brand {
    font-size: 1.16rem;
  }
  
  .hero-content h1 {
    padding-top: 50px !important;
    font-size: 2rem;
    line-height: 1.2;
  }
  
  .hero-content p {
    font-size: 1.00rem;
  }
  
  .section {
    padding: 2.5rem 0;
  }
  
  .section-title {
    margin-bottom: 2rem;
  }
  
  .section-title h2 {
    font-size: 1.54rem;
  }
  
  .section-title p {
    font-size: 0.96rem;
  }
  
  .feature-card,
  .service-card,
  .pricing-card {
    padding: 1.5rem 1rem;
  }
  
  .service-card img {
    width: 60px;
    height: 60px;
  }
  
  .service-card .price {
    font-size: 1.79rem;
  }
  
  .pricing-card .price {
    font-size: 2rem;
  }
  
  .team-member {
    padding: 1.5rem;
  }
  
  .team-member img {
    width: 100px;
    height: 100px;
  }
  
  .contact-form {
    padding: 1.5rem 1rem;
  }
  
  .form-control {
    padding: 0.6rem 0.8rem;
  }
  
  .btn-primary {
    padding: 0.6rem 1.5rem;
    font-size: 1.01rem;
  }
  
  .review-card {
    padding: 1.5rem;
  }
  
  .review-card::before {
    font-size: 3rem;
    top: 5px;
    right: 15px;
  }
  
  .gallery-item img {
    height: 200px;
  }
  
  .blog-card-content {
    padding: 1rem;
  }
  
  .blog-card h5 {
    font-size: 1.27rem;
  }
  
  footer {
    padding: 1.5rem 0 1rem;
  }
  
  footer h5 {
    font-size: 1.22rem;
  }
  
  #space {
    margin: 1rem 0;
    min-height: 60vh;
  }
}

/* Utility classes for responsive display */
@media (max-width: 767.98px) {
  .d-mobile-none {
    display: none !important;
  }
  
  .d-mobile-block {
    display: block !important;
  }
  
  .text-mobile-center {
    text-align: center !important;
  }
}

@media (min-width: 768px) {
  .d-desktop-none {
    display: none !important;
  }
  
  .d-desktop-block {
    display: block !important;
  }
}

/* Responsive typography */
@media (max-width: 575.98px) {
  h1 { font-size: 1.90rem; }
  h2 { font-size: 1.60rem; }
  h3 { font-size: 1.39rem; }
  h4 { font-size: 1.39rem; }
  h5 { font-size: 1.27rem; }
  h6 { font-size: 1rem; }
}

/* Image responsiveness */
@media (max-width: 767.98px) {
  img {
    max-width: 100%;
    height: auto;
  }
  
  .gallery-item img,
  .blog-card img {
    width: 100%;
    object-fit: cover;
  }
}

/* Navigation improvements for mobile */
@media (max-width: 991.98px) {
  .navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
  }
  
  .navbar-toggler:focus {
    box-shadow: none;
  }
  
  .navbar-collapse {
    background: rgba(255, 255, 255, 0.98);
    margin-top: 1rem;
    border-radius: var(--border-radius);
    padding: 1rem;
    box-shadow: var(--shadow-md);
  }
}

/* Form improvements for mobile */
@media (max-width: 575.98px) {
  .form-control {
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  textarea.form-control {
    min-height: 120px;
  }
}

/* Card stack improvements for mobile */
@media (max-width: 767.98px) {
  .card-deck > .card {
    margin-bottom: 1rem;
  }
  
  .row.equal-height > [class*="col-"] {
    margin-bottom: 1rem;
  }
  
  .row.equal-height > [class*="col-"]:last-child {
    margin-bottom: 0;
  }
}

/* Animation adjustments for mobile performance */
@media (max-width: 767.98px) {
  .service-card:hover,
  .pricing-card:hover,
  .feature-card:hover {
    transform: translateY(-3px);
  }
  
  .team-member:hover,
  .blog-card:hover {
    transform: translateY(-2px);
  }
  
  .gallery-item:hover {
    transform: scale(1.02);
  }
}

/* Fix for 5-column layouts on tablet */
@media (max-width: 1199.98px) {
  .row.justify-content-center .col-xl-2 {
    max-width: 20%;
    flex: 0 0 20%;
  }
}

@media (max-width: 991.98px) {
  .row.justify-content-center .col-xl-2 {
    max-width: 50%;
    flex: 0 0 50%;
  }
}

/* Print styles */
@media print {
  * {
    background: transparent !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  
  .navbar,
  footer,
  .btn,
  .contact-form {
    display: none !important;
  }
  
  .section {
    padding: 1rem 0;
  }
  
  .page-break {
    page-break-before: always;
  }
} 