/* Responsive CSS for Celebration Boxes */

/* Mobile First Approach */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .hero-section {
  padding-top: 50px;
        text-align: center;
        padding: 1.5rem 0;
    }
    
    .hero-section h1 {
        font-size: 1.85rem;
        margin-bottom: 1.19rem;
    }
    
    .hero-section .lead {
        font-size: 1.12rem;
    }
    
    .navbar-brand {
        font-size: 1.19rem !important;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .btn-lg {
        padding: 0.5rem 1.5rem;
        font-size: 1.12rem;
    }
    
    .display-4 {
        font-size: 2.12rem;
    }
    
    .py-5 {
        padding: 1.5rem 0 !important;
    }
    
    section {
        padding: 2rem 0;
    }
    
    .text-center.mb-5 {
        margin-bottom: 2.07rem !important;
    }
    
    .accordion-button {
        padding: 0.75rem;
        font-size: 1.00rem;
    }
    
    .team-member img {
        width: 100px !important;
        height: 100px !important;
    }
    
    .pricing-card {
        margin-bottom: 1.62rem;
    }
    
    .support-card {
        margin-bottom: 1.19rem;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-section h1 {
        font-size: 2.12rem;
    }
    
    .container {
        max-width: 540px;
    }
    
    .card-columns {
        column-count: 1;
    }
    
    .team-member {
        margin-bottom: 2.07rem;
    }
    
    .process-step {
        margin-bottom: 1.62rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section {
  padding-top: 50px;
        padding: 3rem 0;
    }
    
    .hero-section h1 {
        font-size: 2.26rem;
    }
    
    .container {
        max-width: 720px;
    }
    
    .card-columns {
        column-count: 2;
    }
    
    .navbar-toggler {
        display: block;
    }
    
    .navbar-collapse {
        margin-top: 1.18rem;
    }
    
    .team-member img {
        width: 120px !important;
        height: 120px !important;
    }
    
    /* Disable Swiper autoplay and effects on tablets */
    .swiper-container {
        --swiper-navigation-size: 24px;
    }
    
    .swiper-slide {
        transition: none !important;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .container {
        max-width: 960px;
    }
    
    .hero-section h1 {
        font-size: 2.53rem;
    }
    
    .card-columns {
        column-count: 3;
    }
    
    .process-step {
        text-align: center;
    }
    
    .team-row {
        justify-content: center;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-section {
  padding-top: 50px;
        padding: 5rem 0;
    }
    
    .hero-section h1 {
        font-size: 3.10rem;
    }
    
    .card-columns {
        column-count: 4;
    }
    
    .section-spacing {
        padding: 6rem 0;
    }
}

/* Navigation responsive behavior */
@media (max-width: 991.98px) {
    .navbar-nav {
        text-align: center;
        margin-top: 1.18rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 1rem;
        border-bottom: 1px solid #dee7ef;
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
    
    .navbar-toggler {
        border: none;
        padding: 0.25rem 0.5rem;
    }
    
    .navbar-toggler:focus {
        box-shadow: none;
    }
}

/* Gallery responsive grid */
@media (max-width: 575.98px) {
    .gallery-grid .col-6 {
        margin-bottom: 0.66rem;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .gallery-grid .col-md-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Team section responsive layout */
@media (max-width: 767.98px) {
    .team-row .col-lg-2 {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 2.07rem;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .team-row .col-lg-2 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

/* Process steps responsive layout */
@media (max-width: 767.98px) {
    .process-row .col-lg-2 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 1.62rem;
    }
    
    .process-step .rounded-circle {
        width: 50px !important;
        height: 50px !important;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .process-row .col-lg-2 {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 1.62rem;
    }
}

/* Form responsive adjustments */
@media (max-width: 767.98px) {
    .contact-form .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .form-control {
        font-size: 19.00px; /* Prevent zoom on iOS */
    }
    
    .contact-info .col-md-4 {
        margin-bottom: 1.62rem;
    }
}

/* Cards responsive behavior */
@media (max-width: 767.98px) {
    .card-deck .card {
        margin-bottom: 1.62rem;
    }
    
    .card-img-top {
        height: 150px;
    }
}

/* Pricing cards responsive */
@media (max-width: 991.98px) {
    .pricing-row .col-lg-4 {
        margin-bottom: 2.07rem;
    }
}

@media (max-width: 575.98px) {
    .pricing-row .col-lg-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Footer responsive adjustments */
@media (max-width: 767.98px) {
    footer .col-lg-3 {
        margin-bottom: 2.07rem;
        text-align: center;
    }
    
    footer .list-unstyled {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

/* Disable animations on mobile for better performance */
@media (max-width: 767.98px) {
    .card:hover {
        transform: none;
    }
    
    .support-card:hover {
        transform: none;
    }
    
    .pricing-card:hover {
        transform: none;
    }
    
    .rounded-circle:hover {
        transform: none;
    }
    
    .img-fluid.rounded:hover {
        transform: none;
    }
}

/* Disable Swiper effects on mobile */
@media (max-width: 767.98px) {
    .swiper-container {
        --swiper-autoplay-delay: 0;
    }
    
    .swiper-slide {
        transition: none !important;
        transform: none !important;
    }
    
    .swiper-wrapper {
        transition-duration: 0ms !important;
    }
    
    .swiper-pagination {
        display: none !important;
    }
    
    .swiper-button-next,
    .swiper-button-prev {
        display: none !important;
    }
}

/* Timeline responsive adjustments */
@media (max-width: 991.98px) {
    .timeline-row .col-lg-2 {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 1.62rem;
    }
}

@media (max-width: 575.98px) {
    .timeline-row .col-lg-2 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Blog grid responsive */
@media (max-width: 991.98px) {
    .blog-grid .col-lg-4 {
        margin-bottom: 2.07rem;
    }
}

@media (max-width: 767.98px) {
    .blog-grid .col-lg-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* FAQ responsive adjustments */
@media (max-width: 575.98px) {
    .accordion {
        margin-top: 1.18rem;
    }
    
    .accordion-button {
        padding: 0.75rem 1rem;
        font-size: 1.00rem;
    }
    
    .accordion-body {
        padding: 1rem;
        font-size: 1.00rem;
    }
}

/* Hero section image responsive */
@media (max-width: 991.98px) {
    .hero-section .row {
        flex-direction: column-reverse;
    }
    
    .hero-section .col-lg-6:last-child {
        margin-bottom: 2.07rem;
    }
}

/* Additional page sections responsive */
@media (max-width: 767.98px) {
    .additional-page .col-lg-4,
    .additional-page .col-lg-6 {
        margin-bottom: 1.62rem;
    }
}

/* Services grid responsive */
@media (max-width: 991.98px) {
    .services-grid .col-lg-4 {
        margin-bottom: 1.62rem;
    }
}

@media (max-width: 767.98px) {
    .services-grid .col-lg-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Core info responsive */
@media (max-width: 991.98px) {
    .coreinfo-grid .col-lg-4 {
        margin-bottom: 1.62rem;
    }
}

@media (max-width: 767.98px) {
    .coreinfo-grid .col-lg-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-section {
  padding-top: 50px;
        background-attachment: scroll; /* Better performance on high DPI */
    }
} 