:root {
    --sand: #F4E1D2;
    --forest: #2D3E33;
    --dark: #121212;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --gold: #D4AF37;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--dark);
    color: var(--sand);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
}

.logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -1px;
    color: var(--gold);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--sand);
    font-weight: 300;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--gold);
}

.cta-nav {
    border: 1px solid var(--sand);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
}

/* Bento Grid */
.bento-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px;
    gap: 20px;
    padding: 0 5% 5% 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.bento-item {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.bento-item:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.3);
}

/* Layout Specifics */
.hero-3d {
    grid-column: span 3;
    grid-row: span 2;
    background: linear-gradient(135deg, #1a1a1a 0%, #000 100%);
    padding: 0;
}

.brand-vision {
    grid-column: span 1;
    grid-row: span 1;
    background-color: var(--forest);
    color: white;
}

.brand-vision h2 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
}

.material-macro {
    grid-column: span 1;
    grid-row: span 1;
    padding: 0;
}

.material-macro img, .pool-macro img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.features {
    grid-column: span 1;
    grid-row: span 1;
    justify-content: flex-start;
}

.features ul {
    list-style: none;
    margin-top: 1rem;
}

.features li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.features span {
    color: var(--gold);
}

.floor-plan {
    grid-column: span 1;
    grid-row: span 1;
    background-color: var(--sand);
    color: var(--forest);
}

.floor-plan h3 {
    font-family: var(--font-heading);
}

.pool-macro {
    grid-column: span 1;
    grid-row: span 2;
    padding: 0;
}

.cta-box {
    grid-column: span 2;
    grid-row: span 1;
    background: linear-gradient(45deg, var(--forest), #1a2a21);
    align-items: center;
    text-align: center;
}

.cta-box h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.cta-button {
    background: var(--sand);
    color: var(--forest);
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: transform 0.3s;
}

.cta-button:hover {
    transform: scale(1.05);
    background: #fff;
}

/* 3D Section Overlay */
.overlay-text {
    position: absolute;
    top: 2rem;
    left: 2rem;
    z-index: 10;
}

.overlay-text h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.overlay-text p {
    color: var(--gold);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.8rem;
}

/* Spline Placeholder Styles */
.spline-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at center, #2d3e33 0%, #121212 100%);
    color: rgba(244, 225, 210, 0.4);
}

.loader {
    width: 40px;
    height: 40px;
    border: 2px solid var(--gold);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.user-action-tip {
    margin-top: 2rem;
    background: rgba(0,0,0,0.5);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.7rem;
    border: 1px solid rgba(255,255,255,0.1);
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .bento-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .bento-container {
        grid-template-columns: 1fr;
        grid-auto-rows: min-content;
    }
    
    .hero-3d, .cta-box, .pool-macro {
        grid-column: span 1;
        grid-row: span 1;
        min-height: 300px;
    }

    .hero-3d {
        grid-row: span 2;
    }

    .overlay-text h1 {
        font-size: 2rem;
    }
}

.footer {
    text-align: center;
    padding: 3rem;
    font-size: 0.7rem;
    letter-spacing: 1px;
    opacity: 0.4;
}
