/* ===== RESPONSIVE CSS ===== */

/* Mobile First Approach */

/* Extra Small Devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    /* Disable animations on mobile as per requirements */
    *, *::before, *::after {
        animation-duration: 0ms !important;
        animation-delay: 0ms !important;
        transition-duration: 0ms !important;
        transition-delay: 0ms !important;
    }
    
    /* Typography adjustments */
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    /* Section padding */
    section {
        padding: 40px 0;
    }
    
    /* Hero section mobile */
    #hero {
        min-height: 70vh;
        text-align: center;
    }
    
    #hero .col-lg-6:first-child {
        order: 2;
    }
    
    #hero .col-lg-6:last-child {
        order: 1;
        margin-bottom: 30px;
    }
    
    /* Hide decorative shapes on mobile */
    .hero-shapes {
        display: none;
    }
    
    /* Cards mobile optimization */
    .card {
        margin-bottom: 20px;
    }
    
    .card:hover {
        transform: none;
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    }
    
    /* Price tags mobile */
    .price-tag {
        position: static;
        display: inline-block;
        margin-top: 10px;
    }
    
    /* Process steps mobile */
    .process-step {
        margin-bottom: 30px;
    }
    
    .step-number,
    .phase-number {
        margin-bottom: 15px;
    }
    
    /* Timeline mobile - reset all positioning */
    .timeline {
        display: block;
        position: static !important;
        padding: 0 !important;
        width: 100% !important;
    }
    
    .timeline::before {
        display: none !important;
    }
    
    .timeline-item {
        width: 100% !important;
        position: static !important;
        margin: 15px 0 !important;
        padding: 20px !important;
        box-sizing: border-box !important;
        transform: none !important;
        text-align: center !important;
        display: block !important;
        float: none !important;
        clear: both !important;
    }
    
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        margin: 15px 0 !important;
        float: none !important;
        width: 100% !important;
        position: static !important;
        left: auto !important;
        right: auto !important;
    }
    
    .timeline-item::before,
    .timeline-item:nth-child(odd)::before,
    .timeline-item:nth-child(even)::before {
        display: none !important;
    }
    
    /* Contact form mobile */
    .contact-info {
        margin-top: 40px;
        padding: 20px 0;
    }
    
    /* Stats mobile */
    .stat-number {
        font-size: 2.5rem;
    }
    
    /* Gallery mobile */
    #gallery .col-lg-3 {
        margin-bottom: 15px;
    }
    
    /* Team cards mobile */
    #team .col-lg-3 {
        margin-bottom: 30px;
    }
    
    /* Feature items mobile */
    .feature-item {
        margin-bottom: 20px;
        padding: 20px;
    }
    
    .feature-item:hover {
        transform: none;
    }
    
    /* Medium cards mobile */
    .medium-card,
    .community-feature,
    .education-item,
    .info-card {
        margin-bottom: 20px;
        padding: 15px;
    }
    
    .medium-card img,
    .community-feature img {
        height: 120px;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.7rem;
    }
    
    section {
        padding: 50px 0;
    }
    
    #hero {
        min-height: 80vh;
    }
    
    .timeline {
        display: block;
        position: static !important;
        padding: 0 !important;
        width: 100% !important;
    }
    
    .timeline::before {
        display: none !important;
    }
    
    .timeline-item {
        width: 100% !important;
        position: static !important;
        margin: 15px 0 !important;
        padding: 20px !important;
        box-sizing: border-box !important;
        transform: none !important;
        text-align: center !important;
        display: block !important;
        float: none !important;
        clear: both !important;
    }
    
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        margin: 15px 0 !important;
        float: none !important;
        width: 100% !important;
        position: static !important;
        left: auto !important;
        right: auto !important;
    }
    
    .timeline-item::before,
    .timeline-item:nth-child(odd)::before,
    .timeline-item:nth-child(even)::before {
        display: none !important;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    #hero {
        min-height: 85vh;
    }
    
    /* Timeline tablet */
    .timeline-item {
        width: 45%;
    }
    
    /* Cards tablet spacing */
    .card {
        margin-bottom: 25px;
    }
    
    /* Process steps tablet */
    .process-step {
        margin-bottom: 25px;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    section {
        padding: 70px 0;
    }
    
    #hero {
        min-height: 90vh;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    section {
        padding: 80px 0;
    }
    
    #hero {
        min-height: 100vh;
    }
    
    .container {
        max-width: 1140px;
    }
}

/* Navigation responsive adjustments */
@media (max-width: 991.98px) {
    .navbar-nav {
        text-align: center;
        margin-top: 15px;
    }
    
    .navbar-nav .nav-link {
        padding: 10px 0;
    }
}

/* Form responsive adjustments */
@media (max-width: 767.98px) {
    .form-control {
        padding: 12px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .btn-primary,
    .btn-outline-primary {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* Footer responsive */
@media (max-width: 767.98px) {
    #footer .col-lg-4 {
        text-align: center;
        margin-bottom: 30px;
    }
    
    #footer ul {
        padding-left: 0;
    }
}

/* Services section responsive */
@media (max-width: 767.98px) {
    #services .col-lg-4 {
        margin-bottom: 30px;
    }
    
    #services .card-img-top {
        height: 180px;
    }
}

/* Team section responsive */
@media (max-width: 991.98px) {
    #team .col-lg-3 {
        margin-bottom: 30px;
    }
}

/* Price plan responsive */
@media (max-width: 991.98px) {
    #priceplan .col-lg-4 {
        margin-bottom: 30px;
    }
    
    .price-display {
        font-size: 2rem;
    }
}

/* Reviews responsive */
@media (max-width: 767.98px) {
    #reviews .col-lg-4 {
        margin-bottom: 20px;
    }
}

/* Case studies responsive */
@media (max-width: 991.98px) {
    #casestudy .col-lg-4 {
        margin-bottom: 25px;
    }
}

/* Career responsive */
@media (max-width: 767.98px) {
    #career .col-lg-6 {
        margin-bottom: 20px;
    }
}

/* Core info responsive */
@media (max-width: 991.98px) {
    #coreinfo .col-lg-4 {
        margin-bottom: 25px;
    }
}

/* Blog responsive */
@media (max-width: 991.98px) {
    #blog .col-lg-4 {
        margin-bottom: 30px;
    }
}

/* FAQ responsive */
@media (max-width: 767.98px) {
    #faq .col-lg-6 {
        margin-bottom: 15px;
    }
}

/* Gallery responsive */
@media (max-width: 575.98px) {
    #gallery .col-lg-3 {
        margin-bottom: 10px;
    }
}

/* Additional page responsive adjustments */
@media (max-width: 767.98px) {
    .research-stat {
        margin-bottom: 25px;
        padding: 20px;
    }
    
    .session-phase {
        margin-bottom: 25px;
    }
    
    .crisis-card {
        margin-bottom: 20px;
        padding: 20px;
    }
}

/* Utility classes for responsive design */
.d-mobile-none {
    display: block;
}

@media (max-width: 767.98px) {
    .d-mobile-none {
        display: none;
    }
}

.d-mobile-block {
    display: none;
}

@media (max-width: 767.98px) {
    .d-mobile-block {
        display: block;
    }
}

/* Text alignment responsive */
@media (max-width: 767.98px) {
    .text-md-center {
        text-align: center;
    }
}

/* Spacing adjustments for mobile */
@media (max-width: 575.98px) {
    .mb-mobile-4 {
        margin-bottom: 1.5rem;
    }
    
    .mt-mobile-4 {
        margin-top: 1.5rem;
    }
    
    .py-mobile-3 {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .card-img-top,
    #gallery img,
    .medium-card img,
    .community-feature img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Landscape orientation adjustments */
@media (max-height: 600px) and (orientation: landscape) {
    #hero {
        min-height: 70vh;
    }
    
    section {
        padding: 40px 0;
    }
}

/* Print styles */
@media print {
    #header,
    #footer,
    .btn,
    .hero-shapes {
        display: none;
    }
    
    section {
        padding: 20px 0;
        page-break-inside: avoid;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
} 

body {
    overflow-x: hidden;
}

/* Prevent horizontal scroll in sections */
section {
    overflow-x: hidden;
}

.container {
    overflow-x: hidden;
}