/* ==========================================================================
   Responsive CSS - Breakpoint Specific Styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Extra Small Devices (< 576px)
   -------------------------------------------------------------------------- */
@media (max-width: 575.98px) {
    :root {
        --fs-4xl: 2.25rem;   /* 36px */
        --fs-3xl: 1.875rem;  /* 30px */
        --fs-2xl: 1.5rem;    /* 24px */
        --header-height: 70px;
    }

    .py-section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .brand-logo-img {
        height: 44px;
        max-height: 44px;
    }

    .btn-custom {
        width: 100%;
        padding: 0.75rem 1.25rem;
    }

    .hero-cta-group {
        flex-direction: column;
        width: 100%;
    }

    .card-custom {
        padding: 1.25rem;
    }

    .back-to-top {
        bottom: 1.25rem;
        right: 1.25rem;
        width: 42px;
        height: 42px;
    }
}

/* Hero Slider Mobile Responsive Alignment (< 768px) */
@media (max-width: 767.98px) {
    .hero-content {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    #hero .carousel-control-prev {
        left: 0.5rem;
        width: 44px;
        height: 44px;
    }

    #hero .carousel-control-next {
        right: 0.5rem;
        width: 44px;
        height: 44px;
    }
}

/* --------------------------------------------------------------------------
   2. Small Devices (>= 576px)
   -------------------------------------------------------------------------- */
@media (min-width: 576px) and (max-width: 767.98px) {
    :root {
        --fs-4xl: 2.75rem;   /* 44px */
        --fs-3xl: 2.125rem;  /* 34px */
    }

    .py-section {
        padding-top: 3.5rem;
        padding-bottom: 3.5rem;
    }
}

/* --------------------------------------------------------------------------
   3. Medium Devices / Tablets (>= 768px)
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {
    .hero-cta-group {
        display: flex;
        align-items: center;
        gap: 1rem;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    :root {
        --fs-4xl: 3rem;      /* 48px */
    }

    .py-section {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}

/* --------------------------------------------------------------------------
   4. Large Devices / Desktop (>= 992px)
   -------------------------------------------------------------------------- */
@media (min-width: 992px) {
    .site-header {
        height: var(--header-height);
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .container-custom {
        max-width: 960px;
    }
}

/* --------------------------------------------------------------------------
   5. Extra Large Devices (>= 1200px)
   -------------------------------------------------------------------------- */
@media (min-width: 1200px) {
    .container-custom {
        max-width: 1140px;
    }
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
    .py-section {
        padding-top: 5.5rem;
        padding-bottom: 5.5rem;
    }
}

/* --------------------------------------------------------------------------
   6. Ultra Wide / XXL Devices (>= 1400px)
   -------------------------------------------------------------------------- */
@media (min-width: 1400px) {
    .container-custom {
        max-width: 1320px;
    }

    :root {
        --fs-4xl: 3.75rem;   /* 60px */
    }
}

/* About Section Mobile & Tablet Responsive Rules (< 992px) */
@media (max-width: 991.98px) {
    .about-section {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .about-content {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .about-title {
        font-size: 2.25rem;
    }

    .about-text {
        font-size: 16px;
    }

    .about-btn {
        width: 100%;
        max-width: 320px;
    }

    .about-graphic {
        min-height: 340px;
        margin-top: 2rem;
    }

    .blue-half-circle {
        width: 140px;
        height: 280px;
        border-top-left-radius: 140px;
        border-bottom-left-radius: 140px;
    }

    .vertical-about-text {
        font-size: 1.35rem;
        letter-spacing: 0.1em;
    }

    .about-circle-image-wrapper {
        margin-left: 60px;
    }

    .about-circle-image {
        width: 270px;
        height: 270px;
    }
}
