/* Home page responsive overrides */

@media (max-width: 1199.98px) {
    .section-title {
        font-size: 52px;
    }

    .video-title {
        font-size: 48px;
        line-height: 1.2;
    }

    .video-overlay h3 {
        font-size: 42px;
        line-height: 1.3;
    }
}

@media (max-width: 991.98px) {
    .top-header {
        height: 72px;
    }

    .header-logo {
        max-height: 44px;
    }

    .hero-section {
        height: 420px;
        padding: 24px 0;
    }

    .hero-banner {
        max-width: 700px;
    }

    .form-section {
        padding: 60px 0;
        background-attachment: scroll;
    }

    .form-container {
        max-width: 100%;
        margin: 0 auto;
        padding: 22px;
    }

    .stage-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .section-title {
        font-size: 42px;
        margin-bottom: 18px;
    }

    .concept-subtitle {
        font-size: 17px;
        line-height: 1.6;
        margin-bottom: 36px;
    }

    .concept-caption {
        font-size: 24px;
    }

    .catalogue-section {
        padding: 42px 0;
    }

    .catalogue-title {
        font-size: 34px;
        margin-bottom: 28px !important;
    }

    .catalogue-item {
        margin-bottom: 34px !important;
    }

    .catalogue-item-title {
        line-height: 1.4;
    }

    .catalogue-desc {
        max-width: 100%;
    }

    .catalogue-img {
        max-width: 220px;
    }

    .video-section {
        padding: 56px 0;
    }

    .video-title {
        font-size: 44px;
    }

    .video-overlay h3 {
        font-size: 34px;
        line-height: 1.25;
    }

    .play-btn {
        font-size: 30px;
    }

    .play-btn span {
        font-size: 16px;
    }
}

@media (max-width: 767.98px) {
    .container-fluid,
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .top-header {
        height: 64px;
    }

    .header-logo {
        max-height: 38px;
    }

    .hero-section {
        height: auto;
        min-height: 280px;
        padding: 20px 0;
    }

    .hero-banner {
        padding: 0;
    }

    .form-section {
        padding: 40px 0;
    }

    .form-container {
        border-radius: 6px;
        padding: 18px 14px;
    }

    .form-title {
        font-size: 24px;
        margin-bottom: 18px;
    }

    .custom-form .form-control,
    .custom-form .form-select,
    .custom-form .input-group-text {
        height: 40px;
        font-size: 13px;
        margin-bottom: 14px;
    }

    .custom-form textarea.form-control {
        min-height: 76px;
    }

    .stage-options {
        grid-template-columns: 1fr;
    }

    .stage-options .form-check-text {
        font-size: 13px;
    }

    .construction-stage-title {
        margin-bottom: 14px;
    }

    .btn-next,
    .btn-back,
    .btn-submit {
        padding: 10px 24px;
        font-size: 13px;
    }

    .concept-section {
        padding: 40px 0 26px;
    }

    .section-title {
        font-size: 32px;
    }

    .concept-subtitle {
        font-size: 15px;
        line-height: 1.55;
        margin-bottom: 6px;
    }

    .concept-carousel {
        margin-top: 0;
    }

    .concept-caption {
        margin-top: 18px;
        font-size: 18px;
    }

    .carousel-control-next,
    .carousel-control-prev {
        width: 12%;
    }

    .catalogue-section .col-lg-5,
    .catalogue-section .col-md-5 {
        align-items: flex-start !important;
    }

    .catalogue-title {
        font-size: 30px;
    }

    .catalogue-item {
        margin-bottom: 24px !important;
    }

    .catalogue-item-title {
        font-size: 17px;
    }

    .catalogue-desc {
        font-size: 15px;
        line-height: 1.55;
    }

    .catalogue-img {
        max-width: 190px;
        margin-left: 0;
    }

    .video-section {
        padding: 44px 0;
    }

    .video-title {
        font-size: 30px;
        line-height: 1.25;
    }

    .video-overlay h3 {
        font-size: 24px;
        line-height: 1.3;
        margin-bottom: 10px;
    }

    .play-btn {
        font-size: 24px;
    }

    .play-btn span {
        font-size: 14px;
    }

    .footer {
        padding: 28px 0;
    }

    .footer-brand {
        font-size: 24px;
        line-height: 1.3;
    }

    .footer-links {
        margin-top: 14px;
        justify-content: center !important;
    }

    .footer-links a {
        font-size: 14px;
    }
}

@media (max-width: 479.98px) {
    .container-fluid,
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .form-container {
        padding: 16px 12px;
    }

    .form-title {
        font-size: 22px;
    }

    .btn-next,
    .btn-back,
    .btn-submit {
        padding: 9px 18px;
    }

    .section-title {
        font-size: 28px;
    }

    .concept-subtitle {
        font-size: 14px;
    }

    .concept-caption {
        font-size: 16px;
    }

    .video-overlay h3 {
        font-size: 20px;
    }

    .play-btn span {
        font-size: 13px;
    }
}

/* Portfolio and Category Detail responsive overrides */

@media (max-width: 1199.98px) {
    .project-title {
        font-size: 50px;
        margin-bottom: 42px;
    }

    .popup-content-wrapper {
        width: 94%;
    }

    .popup-title {
        font-size: 32px;
    }
}

@media (max-width: 991.98px) {
    .portfolio-gallery {
        padding: 12px 0 28px;
    }

    .portfolio-item img {
        height: 330px;
    }

    .portfolio-overlay {
        opacity: 1;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.18) 62%, rgba(0, 0, 0, 0));
        justify-content: flex-end;
        align-items: flex-start;
        text-align: left;
    }

    .portfolio-overlay h4 {
        transform: none;
        font-size: 22px;
        line-height: 1.35;
    }

    .category-detail-section {
        padding-top: 44px;
    }

    .project-title {
        font-size: 42px;
        margin-bottom: 30px;
    }

    .next-project-link {
        font-size: 16px;
    }

    .popup-content-wrapper {
        width: 92%;
        height: 90vh;
    }

    .popup-img {
        max-height: 56vh;
    }

    .popup-text-col {
        padding-left: 24px;
        padding-right: 12px;
    }

    .popup-title {
        font-size: 28px;
        margin-bottom: 12px;
    }

    .popup-desc {
        font-size: 15px;
        line-height: 1.6;
    }

    .popup-close,
    .popup-expand {
        top: 12px;
        padding: 6px;
    }

    .popup-expand {
        left: 12px;
    }

    .popup-close {
        right: 12px;
    }
}


@media (max-width: 767.98px) {
    .portfolio-gallery .row {
        --bs-gutter-x: 12px;
        --bs-gutter-y: 12px;
    }

    .portfolio-item {
        border-radius: 10px;
    }

    .portfolio-item img {
        height: 255px;
    }

    .portfolio-overlay {
        padding: 16px;
    }

    .portfolio-overlay h4 {
        font-size: 18px;
    }

    .category-detail-section {
        padding-top: 34px;
    }

    .project-title {
        font-size: 32px;
        margin-bottom: 22px;
    }

    .project-main-img {
        margin-bottom: 14px;
    }

    .project-grid-img {
        width: 100%;
        aspect-ratio: 1 / 1;
        object-fit: cover;
    }

    .next-project-link {
        font-size: 15px;
    }

    .popup-content-wrapper {
        width: 100%;
        height: 100vh;
        padding: 54px 12px 12px;
    }

    .popup-content-wrapper .carousel-item .row {
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    .popup-img-col {
        flex: 0 0 auto;
        max-width: 100%;
    }

    .popup-img {
        width: 100%;
        max-height: 50vh;
        object-fit: contain;
    }

    .popup-text-col {
        padding: 16px 6px 0;
        margin-top: 0;
        text-align: center;
    }

    .popup-title {
        font-size: 22px;
        margin-bottom: 10px;
    }

    .popup-desc {
        font-size: 14px;
        line-height: 1.55;
    }

    .popup-close svg,
    .popup-expand svg {
        width: 24px;
        height: 24px;
    }

    .product-popup.fullscreen-mode .popup-content-wrapper {
        padding: 44px 0 0;
    }

    .product-popup.fullscreen-mode .popup-img {
        height: calc(100vh - 44px);
        max-height: calc(100vh - 44px);
    }
}

@media (max-width: 479.98px) {
    .portfolio-item img {
        height: 220px;
    }

    .portfolio-overlay {
        padding: 12px;
    }

    .portfolio-overlay h4 {
        font-size: 14px;
    }

    .project-title {
        font-size: 28px;
    }

    .next-project-link {
        font-size: 14px;
    }

    .popup-content-wrapper {
        padding: 50px 8px 8px;
    }

    .popup-img {
        max-height: 46vh;
    }

    .popup-title {
        font-size: 20px;
    }

    .popup-desc {
        font-size: 13px;
    }
}
