/* Tablet Styles */

@media (max-width: 1400px) {

    #intro-globe-container {
        width: 50%;
    }

    .intro-section canvas {
        max-width: 100%;
        max-height: fit-content;
    }

    .intro-section {
        padding: 20px 15px;
    }

    .intro-headline {
        font-size: 56px;
        margin: 0px 0px 15px;
    }

    .intro-text {
        font-size: 20px;
    }

    .companies-heading {
        font-size: 5rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 1100px) {
    .nav-link {
        font-size: 15px;
    }

    .nav-left {
        gap: 1.5rem;
    }

    .logo-image {
        max-height: 40px;
    }

    .overlay-left {
        display: none;
    }

    .overlay-nav {
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .overlay-link {
        font-size: 1.5rem;
    }

    #intro-globe-container {
        width: 40%;
    }

    .intro-headline,
    .intro-text {
        pointer-events: auto;
        max-width: 100%;
        text-align: center;
    }

    .intro-section {
        min-height: 550px;
    }

    #intro-globe-container {
        display: none;
    }

    .intro-headline {
        font-size: 76px;
        margin: 0px 0px 15px;
    }

    .companies-group-section {
        padding: 5rem 0px;
    }

    .companies-group-section .heading-row {
        max-width: 95%;
        margin: 0 auto 2rem;
        gap: 1rem;
    }

    .companies-group-section .heading-row .btn {
        padding: .8rem 3rem;
    }

    .companies-heading {
        font-size: 4rem;
        margin-bottom: .5rem;
    }

    .sectors-section {
        padding: 4rem 0;
    }

    .leadership-slider-section {
        color: #fff;
        padding: 4rem 0;
    }

    .footer-nav-large {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: space-between;
        width: 100%;
        border-bottom: 1px solid #1d1d1d;
        padding-bottom: 25px;
        margin-bottom: 0px;
    }

    .footer-container {
        min-height: auto;
    }
}

/* Mobile Optimizations - Reset GSAP styles */
@media (max-width: 1024px) {

    .scroll-indicator,
    .property-info,
    .section-headline,
    .wellness-description,
    .wellness-label,
    .wellness-title .char,
    .nature-panel,
    .nature-title,
    .outdoor-content,
    .architecture-description,
    .design-title,
    .showcase-panel,
    .cta-card,
    .move-in-text,
    .back-to-top,
    .footer-logo,
    .footer-link,
    .info-block,
    .intro-headline .word,
    .intro-text .word {
        opacity: 1 !important;
        /* transform: none !important; */
        visibility: visible !important;
    }

    /* Additional Resets for specific elements if needed */
    .hero-col {
        opacity: 1 !important;
        transform: none !important;
    }

    .hero-btn {
        opacity: 1 !important;
        transform: none !important;
    }

    .hero-separator {
        opacity: 1 !important;
        transform: scaleX(1) !important;
    }

    .sector-tile,
    .sector-block {
        opacity: 1 !important;
        transform: none !important;
    }

    .impact-card,
    .leader-card {
        opacity: 1 !important;
        transform: none !important;
    }

    .res-col-header,
    .res-card {
        opacity: 1 !important;
        transform: none !important;
    }
}

@media (max-width: 1024px) {
    :root {
        --section-padding: 3%;
    }

    .diagonal-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .split-container {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .split-left,
    .split-right {
        min-height: 50vh;
    }

    .wellness-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .nature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .panel-middle-left {
        grid-column: 1 / -1;
        min-height: 300px;
    }

    .panel-middle-center,
    .panel-middle-right {
        grid-column: span 1;
    }

    .showcase-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .architecture-content {
        grid-template-columns: 1fr;
    }

    .design-title {
        text-align: left;
    }
}

@media (max-width: 991px) {
    .nav-left {
        display: none;
    }

    .navigation {
        display: flex;
        justify-content: space-between;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    :root {
        --section-padding: 5%;
        --font-size-5xl: 3rem;
        --font-size-4xl: 2.5rem;
    }

    .navigation {
        padding: 1rem var(--section-padding);
    }

    .navigation.scrolled {
        padding: 0.8rem var(--section-padding);
    }

    .logo {
        font-size: var(--font-size-xl);
    }

    .diagonal-grid {
        grid-template-columns: 1fr;
        transform: none;
    }

    .grid-panel {
        clip-path: none;
    }

    .grid-panel img {
        transform: none;
    }

    .hero-headline {
        text-align: left;
        font-size: clamp(2.5rem, 10vw, 4rem);
    }

    .hero-headline-large {
        font-size: 4rem;
    }

    .wellness-title {
        font-size: clamp(3rem, 12vw, 5rem);
    }

    .nature-grid {
        grid-template-columns: 1fr;
    }

    .nature-extended {
        grid-template-columns: 1fr;
    }

    .outdoor-content {
        margin: var(--spacing-md);
    }

    .move-in-ready {
        grid-template-columns: 1fr;
    }

    .carousel-slide {
        height: 50vh;
    }

    .cta-card {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: var(--spacing-md);
    }

    .resources-section {
        padding: 4rem 0;

        .footer-links {
            flex-direction: column;
            gap: 1rem;
        }

        .back-to-top {
            top: auto;
            bottom: 2rem;
            left: 2rem;
        }
    }



    @media (max-width: 767px) {


        .companies-group-section .heading-row {
            flex-wrap: wrap;
        }
    }



    /* Small Mobile */


    @media (max-width: 600px) {
        .hero-headline-large {
            font-size: 4rem;
        }

        .intro-headline {
            font-size: 3rem;
        }

        .hero-section.inner {
            height: 450px;
            width: 100%;
        }

        .hero-section.inner .hero-content {
            padding: 0 2rem 3rem;
        }

        .hero-section.inner .hero-content .hero-headline-large {
            font-size: 3rem;
            margin-bottom: 1rem;
        }

        .hero-section.inner .hero-content .hero-separator {
            margin-bottom: 1rem;
        }

        .hero-section.inner .hero-content .hero-description {
            font-size: 1rem;
        }

        .intro-section-inner {
            padding: 25px;
        }



        .companies-heading {
            font-size: 3.5rem;
            margin-bottom: .5rem;
            text-align: center;
        }

        .companies-group-section .heading-left h3 {
            text-align: center;
        }

        .companies-group-section .heading-right {
            width: 100%;
            text-align: center;
            margin-top: .5rem;
        }

        .companies-group-section .heading-row .btn {
            padding: 0.5rem 2rem;
            font-size: 18px;
            font-weight: 500;
        }

        .carousel-card {
            height: 100%;
        }

        .card-content {
            display: flex;
            flex-direction: column;
            text-align: center;
            justify-content: center;
            align-items: center;
            top: 0px!important;
            bottom: auto!important;
        }

        .card-title {
            font-size: 1.5rem;
        }

        .carousel-container .swiper-horizontal {
            height: 280px;
        }


        .card-badge {
            position: relative;
            bottom: inherit;
            right: inherit;
            top: auto;
        }

        .company-grid-container {
            padding: 15px;
            grid-template-columns: repeat(1, 1fr);
        }

        .cookie-notice.active {
            width: 90%;
        }

        .footer-nav-large {
            gap: 2rem;
        }

        .footer-nav-large a {
            font-size: clamp(2rem, 5vw, 4rem);
        }
    }



    @media (max-width: 480px) {
        .hero-headline {
            font-size: 2.5rem;
        }

        .wellness-title {
            font-size: 3rem;
        }

        .nature-title {
            font-size: 3rem;
        }

        .design-title {
            font-size: 4rem;
        }
    }

    /* Reduced Motion */
    @media (prefers-reduced-motion: reduce) {

        *,
        *::before,
        *::after {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }

        .diagonal-grid {
            transform: none;
        }

        .scroll-line {
            animation: none;
        }
    }

    /* High Contrast Mode */
    @media (prefers-contrast: high) {
        :root {
            --color-primary: #000;
            --color-accent: #fff;
        }
    }


    @media (max-width: 1200px) {
        .projects-grid-layout {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    @media (max-width: 768px) {
        .projects-grid-layout {
            grid-template-columns: 1fr;
        }
    }

    /* Vision/Mission & Clients Responsive */
    @media (max-width: 1024px) {
        .vm-text {
            font-size: 2.5rem;
        }

        .vm-container {
            gap: 4rem;
        }
    }

    @media (max-width: 768px) {

        /* Vision & Mission */
        .vision-mission-section {
            padding: 4rem 1.5rem;
        }

        .vm-container {
            flex-direction: column;
            gap: 3rem;
            text-align: center;
        }

        .vm-block {
            text-align: center;
        }

        .vm-divider {
            width: 100px;
            height: 1px;
        }

        .vm-text {
            font-size: 2rem;
        }

        /* Clients */
        .clients-section {
            padding: 4rem 1.5rem;
        }

        .clients-header {
            margin-bottom: 3rem;
        }

        .clients-grid {
            gap: 3rem;
        }

        .client-logo-wrapper {
            flex: 0 1 150px;
        }
    }