/* 
  Design Original: Envato User 
  Licença de Uso: Comercial (Cliente Final)
  Proibida a revenda do código fonte.
*/
:root {
            --bg: #030303;
            --text: #f0f0f0;
            --accent: #cfa158; /* Muted Gold */
            --accent-dim: #5a4625;
            --font-display: 'Syncopate', sans-serif;
            --font-body: 'Manrope', sans-serif;
        }

        * { margin: 0; padding: 0; box-sizing: border-box; }

        html {
            scroll-behavior: smooth;
        }

        body {
            background-color: var(--bg);
            color: var(--text);
            font-family: var(--font-body);
            overflow-x: hidden;
            width: 100%;
            max-width: 100%;
            font-size: 16px;
            cursor: none; /* Default hidden for custom cursor */
            position: relative;
        }

        /* Restore default cursor on touch devices */
        @media (hover: none) {
            body { cursor: auto; }
            .cursor { display: none !important; }
            .hover-trigger { cursor: pointer; }
        }

        /* Custom Cursor */
        .cursor {
            width: 20px;
            height: 20px;
            border: 1px solid white;
            border-radius: 50%;
            position: fixed;
            pointer-events: none;
            z-index: 9999;
            transition: transform 0.1s ease;
            mix-blend-mode: difference;
        }
        .cursor.hovered {
            transform: scale(4);
            background: white;
            border-color: transparent;
        }

        /* Noise Overlay */
        .noise {
            position: fixed;
            top: 0; left: 0; width: 100%; height: 100%;
            background: url('../images/0570a36996273c151ce968346cc290e7.svg');
            opacity: 0.05;
            pointer-events: none;
            z-index: 9000;
        }

        /* Typography Utility */
        .display-text {
            font-family: var(--font-display);
            text-transform: uppercase;
            line-height: 1;
        }
        .outline-text {
            -webkit-text-stroke: 1px rgba(255,255,255,0.3);
            color: transparent;
            transition: 0.5s;
        }
        .outline-text:hover {
            color: var(--accent);
            -webkit-text-stroke: 0px;
        }

        /* Preloader */
        .preloader {
            position: fixed;
            top: 0; left: 0; width: 100%; height: 100%;
            background: var(--bg);
            z-index: 10000;
            display: flex;
            justify-content: center;
            align-items: center;
            flex-direction: column;
            animation: slideUp 1s cubic-bezier(0.7, 0, 0.3, 1) forwards 2.5s;
        }
        .loader-text {
            font-family: var(--font-display);
            font-size: 2rem;
            letter-spacing: 10px;
            overflow: hidden;
        }
        .loader-text span {
            display: inline-block;
            transform: translateY(100%);
            animation: revealText 1s cubic-bezier(0.7, 0, 0.3, 1) forwards;
        }
        .loader-line {
            width: 0%;
            height: 1px;
            background: var(--accent);
            margin-top: 20px;
            animation: loadLine 2s ease-in-out forwards;
        }

        @keyframes revealText { to { transform: translateY(0); } }
        @keyframes loadLine { to { width: 200px; } }
        @keyframes slideUp { to { transform: translateY(-100%); } }

        /* Navigation */
        nav {
            position: fixed;
            top: 0;
            width: 100%;
            padding: 40px 60px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            z-index: 1000;
            mix-blend-mode: difference;
            transition: padding 0.3s;
        }
        .nav-logo {
            font-family: var(--font-display);
            font-weight: 700;
            letter-spacing: 2px;
            font-size: 1.2rem;
            z-index: 1002;
        }
        .nav-menu {
            display: flex;
            gap: 40px;
        }
        .nav-link {
            text-decoration: none;
            color: white;
            text-transform: uppercase;
            font-size: 0.8rem;
            letter-spacing: 2px;
            position: relative;
        }
        .nav-link::after {
            content: '';
            position: absolute;
            bottom: -5px; left: 0; width: 0%; height: 1px;
            background: var(--accent);
            transition: 0.3s;
        }
        .nav-link:hover::after { width: 100%; }

        /* Language Switcher */
        .lang-switch {
            display: flex;
            gap: 10px;
            font-size: 0.8rem;
            font-family: var(--font-display);
            z-index: 1002;
            margin-left: 40px;
        }
        .lang-switch a {
            text-decoration: none;
            color: #666;
            transition: 0.3s;
        }
        .lang-switch a:hover {
            color: white;
        }

        /* Mobile Menu Toggle */
        .menu-toggle {
            display: none;
            flex-direction: column;
            gap: 6px;
            cursor: pointer;
            z-index: 1002;
        }
        .bar {
            width: 30px;
            height: 2px;
            background-color: white;
            transition: 0.3s;
        }
        
        /* Mobile Menu Overlay */
        .mobile-menu-overlay {
            position: fixed;
            top: 0; left: 0; width: 100%; height: 100vh;
            background: var(--bg);
            z-index: 1001;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            gap: 40px;
            transform: translateY(-100%);
            transition: transform 0.5s cubic-bezier(0.7, 0, 0.3, 1);
        }
        .mobile-menu-overlay.active {
            transform: translateY(0);
        }
        .mobile-menu-overlay .nav-link {
            font-size: 1.5rem;
            font-family: var(--font-display);
        }

        /* Hero Section */
        .hero {
            height: 100vh;
            width: 100%;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }
        .hero-video {
            position: absolute;
            top: 0; left: 0; width: 100%; height: 100%;
            object-fit: cover;
            opacity: 0.6;
            transform: scale(1.1);
        }
        .hero-content {
            z-index: 2;
            text-align: center;
            mix-blend-mode: overlay;
            padding: 0 20px;
        }
        .hero-title {
            font-size: 12vw;
            font-weight: 700;
            letter-spacing: -5px;
            color: white;
            margin: 0;
            opacity: 0;
            animation: fadeIn 1s ease forwards 3s;
        }
        .hero-subtitle {
            font-size: 1.5rem;
            letter-spacing: 10px;
            text-transform: uppercase;
            margin-top: -20px;
            opacity: 0;
            animation: fadeIn 1s ease forwards 3.5s;
        }

        @keyframes fadeIn { to { opacity: 1; } }

        /* Marquee Section */
        .marquee-container {
            padding: 100px 0;
            background: var(--bg);
            overflow: hidden;
            border-bottom: 1px solid rgba(255,255,255,0.1);
        }
        .marquee-content {
            display: flex;
            white-space: nowrap;
            animation: scrollText 20s linear infinite;
        }
        .marquee-item {
            font-family: var(--font-display);
            font-size: 8vw;
            color: transparent;
            -webkit-text-stroke: 1px rgba(255,255,255,0.2);
            margin-right: 50px;
            transition: 0.3s;
        }
        .marquee-item:hover {
            color: var(--accent);
            -webkit-text-stroke: 0px;
        }

        @keyframes scrollText {
            from { transform: translateX(0); }
            to { transform: translateX(-100%); }
        }

        /* Broken Grid Section */
        .grid-section {
            padding: 150px 50px;
            position: relative;
        }
        .grid-container {
            display: grid;
            grid-template-columns: 1.5fr 1fr;
            gap: 100px;
            max-width: 1600px;
            margin: 0 auto;
        }
        .grid-container.reverse {
            grid-template-columns: 1fr 1.5fr;
        }
        .grid-text {
            padding-top: 100px;
        }
        .grid-text h2 {
            font-size: 4rem;
            margin-bottom: 40px;
            line-height: 1;
        }
        .grid-text p {
            font-size: 1.2rem;
            color: #888;
            line-height: 1.8;
            margin-bottom: 40px;
            max-width: 500px;
        }
        .grid-image-wrapper {
            position: relative;
            height: 800px;
            overflow: hidden;
        }
        .grid-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 1s ease;
        }
        .grid-image-wrapper:hover .grid-image {
            transform: scale(1.1);
        }
        .floating-stat {
            position: absolute;
            bottom: -50px;
            left: -50px;
            background: var(--bg);
            padding: 40px;
            border: 1px solid rgba(255,255,255,0.1);
        }
        .stat-number {
            font-family: var(--font-display);
            font-size: 4rem;
            color: var(--accent);
        }

        /* Horizontal Scroll Section (Sticky Method) */
        .horizontal-scroll-wrapper {
            height: 400vh; /* Defines the scroll length */
            position: relative;
        }
        .horizontal-sticky {
            position: sticky;
            top: 0;
            height: 100vh;
            width: 100%;
            overflow: hidden;
            display: flex;
            align-items: center;
        }
        .horizontal-track {
            display: flex;
            gap: 50px;
            padding-left: 100px;
            padding-right: 100px;
            will-change: transform;
        }
        .card {
            min-width: 600px;
            height: 70vh;
            position: relative;
            overflow: hidden;
            filter: grayscale(100%);
            transition: 0.5s;
        }
        .card:hover {
            filter: grayscale(0%);
        }
        .card img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .card-info {
            position: absolute;
            bottom: 0; left: 0;
            padding: 30px;
            background: linear-gradient(to top, black, transparent);
            width: 100%;
        }
        .card-title {
            font-family: var(--font-display);
            font-size: 2rem;
            margin-bottom: 10px;
        }

        /* Interactive Image (Grayscale to Color) */
        .interactive-image {
            width: 100%;
            height: 600px;
            object-fit: cover;
            filter: grayscale(100%);
            transition: 0.5s;
        }
        .interactive-image:hover {
            filter: grayscale(0%);
        }

        /* New Sections */
        .residences-section {
            padding: 150px 50px;
            background: #0a0a0a;
        }
        .residences-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 80px;
            max-width: 1600px;
            margin: 0 auto;
            align-items: center;
        }
        .residence-detail {
            border-top: 1px solid rgba(255,255,255,0.1);
            padding-top: 40px;
            margin-top: 40px;
        }
        .detail-row {
            display: flex;
            justify-content: space-between;
            margin-bottom: 20px;
            font-size: 1.1rem;
            color: #aaa;
        }
        .detail-value {
            color: white;
            font-weight: 600;
        }

        .wellness-section {
            height: 100vh;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            background: url('../images/233a16fd57aa28753f772b1d4d74ecdf.jpg') no-repeat center center/cover;
        }
        .wellness-overlay {
            position: absolute;
            top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(0,0,0,0.7);
        }
        .wellness-content {
            z-index: 2;
            max-width: 800px;
            padding: 0 20px;
        }

        .location-section {
            padding: 150px 50px;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 0;
        }
        .map-container {
            height: 80vh;
            background: #111;
            position: relative;
            overflow: hidden;
        }
        .map-iframe {
            width: 100%;
            height: 100%;
            filter: grayscale(100%) invert(100%) contrast(1.2);
            opacity: 0.7;
            border: none;
        }
        .location-info {
            padding: 100px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            background: #080808;
        }

        /* Footer */
        .footer-grand {
            height: 100vh;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
            position: relative;
            border-top: 1px solid rgba(255,255,255,0.1);
        }
        .footer-cta {
            font-family: var(--font-display);
            font-size: 8vw;
            line-height: 0.9;
            margin-bottom: 50px;
            transition: 0.3s;
        }
        .footer-cta:hover {
            color: var(--accent);
        }
        .footer-btn {
            padding: 20px 60px;
            border: 1px solid white;
            background: transparent;
            color: white;
            font-family: var(--font-display);
            font-size: 1rem;
            text-transform: uppercase;
            letter-spacing: 2px;
            transition: 0.3s;
        }
        .footer-btn:hover {
            background: white;
            color: black;
        }

        /* =========================================
           MOBILE OPTIMIZATION
           ========================================= */
        @media (max-width: 1024px) {
            .grid-container { grid-template-columns: 1fr; gap: 50px; }
            .grid-container.reverse { grid-template-columns: 1fr; }
            .grid-text { padding-top: 0; }
            .grid-image-wrapper { height: 600px; }
            .residences-grid { grid-template-columns: 1fr; gap: 50px; }
            .location-section { grid-template-columns: 1fr; }
            .location-info { padding: 60px 40px; }
            .map-container { height: 50vh; }
        }

        @media (max-width: 768px) {
            /* Global Mobile Fixes */
            html, body { overflow-x: hidden; width: 100%; }
            section, div { max-width: 100%; box-sizing: border-box; }
            
            /* Navigation */
            nav { padding: 20px; }
            .nav-menu { display: none; }
            .menu-toggle { display: flex; }
            .lang-switch { margin-left: auto; margin-right: 20px; }
            
            /* Hero */
            .hero-title { font-size: 10vw; letter-spacing: -2px; word-wrap: break-word; }
            .hero-subtitle { font-size: 0.8rem; letter-spacing: 3px; margin-top: 10px; }
            
            /* Marquee */
            .marquee-container { padding: 60px 0; width: 100%; overflow: hidden; }
            .marquee-item { font-size: 10vw; margin-right: 20px; }

            /* Grid Section */
            .grid-section { padding: 60px 20px; overflow: hidden; }
            .grid-text h2 { font-size: 1.8rem; word-wrap: break-word; hyphens: auto; }
            .grid-image-wrapper { height: 300px; width: 100%; }
            .floating-stat { position: relative; bottom: auto; left: auto; margin-top: -30px; margin-left: 0; z-index: 5; width: 100%; padding: 20px; box-sizing: border-box; }
            .stat-number { font-size: 3rem; }
            
            /* Horizontal Scroll -> Vertical Stack on Mobile */
            .horizontal-scroll-wrapper { height: auto; width: 100%; overflow: hidden; }
            .horizontal-sticky { position: relative; height: auto; top: auto; display: block; width: 100%; }
            .horizontal-track { 
                flex-direction: column; 
                padding: 40px 20px; 
                gap: 30px; 
                width: 100%;
                transform: none !important; /* Disable JS transform */
                box-sizing: border-box;
            }
            .card { 
                width: 100%;
                min-width: 0; /* Reset min-width */
                height: 50vh; 
                filter: grayscale(0%); /* Always color on mobile */
            }
            .card-title { font-size: 1.5rem; }

            /* Interactive Image Mobile */
            .interactive-image {
                filter: grayscale(0%);
                height: 300px;
                width: 100%;
            }

            /* Residences */
            .residences-section { padding: 60px 20px; overflow: hidden; }
            .display-text { font-size: 1.8rem !important; word-wrap: break-word; }
            
            /* Wellness */
            .wellness-content { width: 100%; padding: 0 20px; box-sizing: border-box; }
            .wellness-content h2 { font-size: 1.8rem !important; }
            .wellness-content p { font-size: 0.9rem !important; }

            /* Footer */
            .footer-cta { font-size: 10vw; word-wrap: break-word; }
            .footer-btn { padding: 15px 0; font-size: 0.8rem; width: 100%; margin-bottom: 10px; }
            .footer-grand { padding: 0 20px; overflow: hidden; }
            
            /* Map */
            .map-container { width: 100%; }
        }