/* ================================
   RESPONSIVE STYLES - FULL MOBILE SUPPORT
   ================================ */

/* Extra Large Screens (1400px+) - Desktop */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Large Screens (992px - 1199px) - Small Desktop/Tablets */
@media (max-width: 1199.98px) {
    .display-1 {
        font-size: 3rem;
    }

    .display-3 {
        font-size: 2.5rem;
    }

    .display-4 {
        font-size: 2rem;
    }

    .hero-main-title .title-line-1 {
        font-size: 2.8rem;
    }

    .hero-main-title .title-line-2 {
        font-size: 2.8rem;
    }
}

/* Medium Screens (768px - 991px) - Tablets */
@media (max-width: 991.98px) {

    /* Typography */
    .display-1 {
        font-size: 2.5rem;
    }

    .display-3 {
        font-size: 2rem;
    }

    .display-4 {
        font-size: 1.75rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    /* Navbar */
    .navbar-brand h1 {
        font-size: 1.5rem !important;
    }

    .navbar-brand .img-1 {
        height: 35px !important;
    }

    /* Hero Section */
    .hero-wrapper-new {
        min-height: 70vh;
        padding: 60px 0;
    }

    .hero-main-title .title-line-1,
    .hero-main-title .title-line-2 {
        font-size: 2.2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .typewriter-container {
        font-size: 1rem;
    }

    /* Services Grid */
    .services-uniform-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px;
    }

    .service-tile {
        min-height: 280px;
    }

    /* Sections Padding */
    .py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    /* Carousel */
    .header-carousel .carousel-caption-content h1 {
        font-size: 2rem;
    }

    .header-carousel .carousel-caption-content p {
        font-size: 0.95rem;
    }

    /* Feature Items */
    .feature .feature-item {
        padding: 1.5rem !important;
    }

    /* About Section */
    .about-img {
        margin-bottom: 2rem;
    }

    /* Footer */
    .footer .row>div {
        margin-bottom: 2rem;
    }
}

/* Small Screens (576px - 767px) - Large Phones */
@media (max-width: 767.98px) {

    /* Typography */
    .display-1 {
        font-size: 2rem;
    }

    .display-3 {
        font-size: 1.75rem;
    }

    .display-4 {
        font-size: 1.5rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    h4 {
        font-size: 1.1rem;
    }

    h5 {
        font-size: 1rem;
    }

    p {
        font-size: 0.95rem;
    }

    /* Navbar */
    .navbar {
        padding: 10px 15px !important;
    }

    .navbar-brand h1 {
        font-size: 1.3rem !important;
    }

    .navbar-brand .img-1 {
        height: 32px !important;
        margin-right: -8px !important;
    }

    .navbar .btn {
        padding: 8px 16px !important;
        font-size: 0.85rem;
    }

    /* Hero Section */
    .hero-wrapper-new {
        min-height: 60vh;
        padding: 40px 0;
    }

    .hero-main-title .title-line-1,
    .hero-main-title .title-line-2 {
        font-size: 1.8rem;
    }

    .hero-description {
        font-size: 0.9rem;
        padding: 0 10px;
    }

    .hero-cta-group {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-cta-group .btn {
        width: 100%;
        max-width: 280px;
    }

    .typewriter-container {
        font-size: 0.9rem;
    }

    .holistic-text {
        font-size: 0.85rem;
    }

    /* Services Grid */
    .services-uniform-grid {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }

    .service-tile {
        min-height: auto;
        padding: 24px 20px;
    }

    /* Service Items */
    .service .service-item {
        margin-bottom: 1.5rem;
    }

    /* Mental Health Test */
    .mental-test .progress-container {
        padding: 15px;
    }

    .mental-test .question h3 {
        font-size: 1.1rem;
    }

    .mental-test .option-card {
        padding: 12px;
        margin-bottom: 10px;
    }

    .mental-test .option-card label {
        font-size: 0.9rem;
    }

    .mental-test .btn-next {
        width: 100%;
        padding: 12px;
    }

    /* Section Titles */
    .section-title {
        margin-bottom: 2rem !important;
    }

    .section-title .sub-title {
        font-size: 0.8rem;
    }

    /* Appointment Form */
    .appointment-form {
        padding: 1.5rem !important;
    }

    .appointment-form .form-control,
    .appointment-form .form-select {
        padding: 10px 15px !important;
    }

    /* Team Cards */
    .team-item {
        margin-bottom: 1.5rem;
    }

    /* Testimonials */
    .testimonial-inner {
        padding: 1.5rem !important;
    }

    .testimonial-inner p {
        font-size: 0.9rem;
    }

    /* Footer */
    .footer {
        padding: 2rem 0 !important;
    }

    .footer h4 {
        font-size: 1.1rem;
        margin-bottom: 1rem !important;
    }

    .footer .footer-item {
        margin-bottom: 1.5rem;
        text-align: center;
        align-items: center !important;
    }

    .footer .footer-item h4 {
        text-align: center;
        width: 100%;
    }

    .footer .d-flex {
        justify-content: center;
    }

    .footer .footer-item .d-flex {
        justify-content: center;
        width: 100%;
    }

    /* Buttons */
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .btn-primary.rounded-pill {
        padding: 10px 25px;
    }

    /* Back to Top - Position above chatbot */
    .back-to-top {
        width: 45px !important;
        height: 45px !important;
        right: 20px !important;
        bottom: 140px !important;
        /* Above chatbot which is at ~80px */
    }

    /* Carousel */
    .header-carousel .owl-nav {
        display: none;
    }

    .header-carousel .carousel-caption {
        padding: 20px;
    }

    .header-carousel .carousel-caption-content h1 {
        font-size: 1.5rem;
    }

    .header-carousel .carousel-caption-content h5 {
        font-size: 0.8rem;
    }

    .header-carousel .carousel-caption-content p {
        font-size: 0.85rem;
        display: none;
    }

    /* Feature Cards */
    .feature .feature-item {
        padding: 1rem !important;
    }

    .feature .feature-item h5 {
        font-size: 1rem;
    }

    .feature .feature-item p {
        font-size: 0.85rem;
    }

    .feature .feature-icon .fa-4x {
        font-size: 2.5rem !important;
    }

    /* Charts Container */
    .charts-container {
        grid-template-columns: 1fr !important;
    }

    /* Action Buttons */
    .action-buttons {
        flex-direction: column;
    }

    .action-buttons .btn-action {
        width: 100%;
    }

    /* Topbar */
    .topbar {
        display: none !important;
    }
}

/* Extra Small Screens (< 576px) - Small Phones */
@media (max-width: 575.98px) {

    /* Typography */
    .display-1 {
        font-size: 1.75rem;
    }

    .display-3 {
        font-size: 1.5rem;
    }

    .display-4 {
        font-size: 1.3rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    h3 {
        font-size: 1.15rem;
    }

    /* Navbar */
    .navbar {
        padding: 8px 10px !important;
    }

    .navbar-brand h1 {
        font-size: 1.1rem !important;
    }

    .navbar-brand .img-1 {
        height: 28px !important;
        margin-right: -6px !important;
    }

    /* Hero */
    .hero-wrapper-new {
        min-height: 55vh;
        padding: 30px 0;
    }

    .hero-main-title .title-line-1,
    .hero-main-title .title-line-2 {
        font-size: 1.5rem;
    }

    .hero-description {
        font-size: 0.85rem;
    }

    .typewriter-container {
        font-size: 0.8rem;
    }

    /* Sections */
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Mental Health Test */
    .mental-test .question h3 {
        font-size: 1rem;
    }

    .mental-test .option-card {
        padding: 10px;
    }

    .mental-test .option-card label {
        font-size: 0.85rem;
    }

    /* Service Cards */
    .service-tile {
        padding: 20px 15px;
    }

    .service-tile h4 {
        font-size: 1rem;
    }

    .service-tile p {
        font-size: 0.85rem;
    }

    /* Footer */
    .footer h4 {
        font-size: 1rem;
    }

    .footer .img {
        height: 25px;
    }

    .footer p,
    .footer a {
        font-size: 0.85rem;
    }

    /* Copyright */
    .copyright {
        font-size: 0.8rem;
        padding: 15px 0 !important;
    }

    /* Carousel */
    .header-carousel .carousel-caption-content h1 {
        font-size: 1.25rem;
    }

    .header-carousel .carousel-caption-content .btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    /* About Section */
    .about-experience {
        font-size: 0.8rem;
        padding: 10px;
    }

    /* Cards */
    .service .service-item .service-content {
        padding: 1rem !important;
    }

    /* Appointment */
    .appointment-form h1 {
        font-size: 1.3rem;
    }

    /* Team */
    .team-content h5 {
        font-size: 1rem;
    }

    /* Testimonial */
    .testimonial-inner h5 {
        font-size: 1rem;
    }
}

/* Special Fix for Very Small Phones (<400px) */
@media (max-width: 399.98px) {
    .navbar-brand h1 {
        font-size: 1rem !important;
    }

    .navbar-brand .img-1 {
        height: 24px !important;
    }

    .display-1,
    .display-3 {
        font-size: 1.3rem;
    }

    .hero-main-title .title-line-1,
    .hero-main-title .title-line-2 {
        font-size: 1.25rem;
    }

    .btn {
        padding: 8px 15px;
        font-size: 0.8rem;
    }
}

/* Landscape Mode Fixes for Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-wrapper-new {
        min-height: 100vh;
        padding: 20px 0;
    }

    .hero-main-title .title-line-1,
    .hero-main-title .title-line-2 {
        font-size: 1.5rem;
    }

    .header-carousel .header-carousel-item {
        min-height: 100vh;
    }
}

/* Print Styles */
@media print {

    .navbar,
    .topbar,
    .footer,
    .back-to-top,
    .header-carousel .owl-nav {
        display: none !important;
    }

    body {
        font-size: 12pt;
    }

    .container {
        max-width: 100%;
    }
}