/* style.css */

:root {
    --bg-dark: #000000;
    --bg-accent: #1b0a0af7;
    --text-main: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.5);
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(to bottom, var(--bg-accent) 0%, var(--bg-dark) 50%, var(--bg-dark) 100%);
    background-attachment: fixed;
    color: var(--text-main);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.ambient-glow {
    position: fixed;
    top: -20vh;
    left: 50%;
    transform: translateX(-50%);
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
}

/* Typography Utility */
h1, h2, h3 { font-weight: 300; letter-spacing: -0.02em; }

/* ======== TOP BAR ======== */
.top-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4), transparent);
    z-index: 100;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
    letter-spacing: 0.05em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05); /* very subtle edge */
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.top-bar-left .divider {
    color: rgba(255, 255, 255, 0.2);
}

.top-bar-right.social-mini {
    display: flex;
    gap: 15px;
    align-items: center;
}

.top-bar-right.social-mini a {
    display: flex;
}

.top-bar-right.social-mini svg {
    width: 16px;
    height: 16px;
    fill: rgba(255, 255, 255, 0.7);
    transition: fill 0.3s ease, transform 0.3s ease;
}

.top-bar-right.social-mini a:hover svg {
    fill: #fff;
    transform: translateY(-2px);
}

@media (max-width: 600px) {
    .top-bar {
        flex-direction: column;
        gap: 10px;
        padding: 15px 20px;
        background: rgba(0,0,0,0.3);
    }
}

/* ======== HERO SECTION — FULL-SCREEN CAROUSEL ======== */
.hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    overflow: hidden;
}

/* --- Carousel slides --- */
.hero-carousel {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.9s ease;
}

.hero-slide.is-active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.06);
    transition: transform 6s ease;
}

.hero-slide.is-active img {
    transform: scale(1);
}

/* --- Dark overlay for text legibility --- */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.25) 0%,
        rgba(0,0,0,0.10) 45%,
        rgba(0,0,0,0.55) 100%
    );
}

/* --- Centred text content --- */
.hero-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 6%;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 200;
    letter-spacing: 0.1em;
    opacity: 0;
    transform: translateY(30px);
    text-shadow: 0 4px 24px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: clamp(1rem, 2.2vw, 1.8rem);
    color: rgba(255,255,255,0.78);
    margin-top: 1rem;
    opacity: 0;
    transform: translateY(20px);
    letter-spacing: 0.12em;
    font-weight: 300;
}

.hero-slide-label {
    margin-top: 2rem;
    font-size: 0.78rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
    font-weight: 300;
    transition: opacity 0.5s ease;
}


/* --- Dot indicators --- */
.hero-dots {
    position: absolute;
    right: 32px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    border: none;
    cursor: pointer;
    transition: background 0.3s ease, height 0.35s ease, border-radius 0.35s ease;
}

.hero-dot.is-active {
    background: #ffffff;
    height: 24px;
    border-radius: 4px;
}

/* --- Scroll indicator --- */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
}

.scroll-indicator span {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.scroll-indicator .line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--text-muted), transparent);
}

/* Mobile */
@media (max-width: 600px) {
    .hero-arrow { display: none; }
    .hero-dots  { right: 16px; }
}

/* ======== ABOUT SECTION ======== */
.about {
    padding: 10vh 5%; /* Tightened vertical padding */
    max-width: 1200px;   /* Narrower container for better readability */
    margin: 0 auto;
}

.about-container {
    display: flex;
    flex-direction: column;
    gap: 8vh;
}

@media (min-width: 1024px) {
    .about-container {
        flex-direction: row;
        align-items: center;
        gap: 4vw;
    }
}

.about-content {
    flex: 1;
    opacity: 0; /* JS reveal */
    transform: translateY(50px);
}

.about-title {
    font-size: clamp(2rem, 3.5vw, 3rem); /* Standard elegant size */
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, #fff, #888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-text {
    font-size: clamp(1rem, 1.15vw, 1.15rem); /* Standard reading size */
    line-height: 1.7;
    color: var(--text-muted);
    font-weight: 300;
}

.about-gallery {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px; /* Tighter image grid */
    opacity: 0; /* JS reveal */
    transform: translateY(50px);
}

.about-gallery img {
    width: 100%;
    height: 250px; /* Reduced frame height */
    object-fit: cover;
    border-radius: 12px;
    filter: grayscale(40%) opacity(80%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
    cursor: pointer;
}

.about-gallery img:hover {
    transform: scale(1.03);
    filter: grayscale(0%) opacity(100%);
    z-index: 10;
}

.about-gallery img:nth-child(even) {
    transform: translateY(40px);
}

.about-gallery img:nth-child(even):hover {
    transform: scale(1.03) translateY(40px);
}

/* ======== 3D CAROUSEL SECTION ======== */
.properties {
    min-height: 120vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10vh 0;
    overflow: hidden;
}

.properties-header {
    text-align: center;
    margin-bottom: 10vh;
}

.properties-header h2 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.properties-header p {
    color: var(--text-muted);
    font-size: 1.2rem;
}

.scene {
    width: 100%;
    height: 500px;
    perspective: 1500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel {
    width: 320px;
    height: 450px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.1s; /* smooth via JS/GSAP */
    cursor: grab;
}

.carousel:active {
    cursor: grabbing;
}

.carousel-card {
    position: absolute;
    width: 320px;
    height: 450px;
    left: 0;
    top: 0;
    border-radius: 20px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d; /* Allows nested 3D fx */
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
    /* Removed overflow: hidden so 3D models can break out of the frame */
}

.carousel-card img {
    width: 120%; /* Give it space to be larger than the card */
    height: 120%;
    object-fit: contain; /* Don't crop the 3D model */
    opacity: 0.5;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateZ(20px) translateY(20px) scale(0.85); /* Sits slightly behind */
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.4));
    pointer-events: none;
    mix-blend-mode: screen; /* Drops the pure black background magically! */
}

.carousel-card.active img {
    opacity: 1;
    transform: translateZ(120px) translateY(-20px) scale(1.15); /* Breaks dramatically out of the glass */
    filter: drop-shadow(0 40px 40px rgba(0,0,0,0.8));
}

.card-info {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    text-align: center;
    transform: translateZ(50px); /* Pops out slightly */
    opacity: 0;
    pointer-events: none; /* Ignore clicks when not active */
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.carousel-card.active .card-info {
    opacity: 1;
    transform: translateZ(80px);
    pointer-events: auto; /* Make buttons clickable */
}

.card-info h3 {
    font-size: 1.4rem;
    font-weight: 500;
    padding: 0 15px; /* Ensures text never violently hits the edges */
    text-shadow: 0 4px 20px rgba(0,0,0,1);
    line-height: 1.3;
}

.card-info p {
    font-size: 1rem;
    color: rgba(255,255,255,0.8);
    font-weight: 300;
    margin-bottom: 12px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.8);
}

.explore-btn {
    display: inline-block;
    padding: 10px 25px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-decoration: none;
    border-radius: 30px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.explore-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

/* Card-specific hover looks (visible only on hover) */
#card-1 .explore-btn:hover {
    background: #d7ff2a;
    color: #0b0b10;
    border-color: rgba(215, 255, 42, 0.9);
    border-radius: 10px;
    letter-spacing: 0.18em;
    font-weight: 700;
    box-shadow:
        0 14px 28px rgba(0, 0, 0, 0.55),
        0 0 0 2px rgba(215, 255, 42, 0.22);
}

#card-2 .explore-btn:hover {
    background: #e7a07a;
    color: #ffffff;
    border-color: rgba(231, 160, 122, 0.95);
    border-radius: 999px;
    letter-spacing: 0.08em;
    font-weight: 600;
    box-shadow:
        0 14px 28px rgba(0, 0, 0, 0.55),
        0 0 0 2px rgba(231, 160, 122, 0.18);
}

#card-3 .explore-btn:hover {
    background: linear-gradient(90deg, #6a5cff 0%, #4dc5ff 100%);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    box-shadow:
        0 16px 34px rgba(0, 0, 0, 0.58),
        0 0 0 2px rgba(122, 97, 255, 0.18);
}

/* ======== CONTACT SECTION ======== */
.contact {
    padding: 10vh 5%; 
    max-width: 1200px;
    margin: 5vh auto 10vh auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05); /* Subtle separator */
}

.contact-container {
    display: flex;
    flex-direction: column;
    gap: 8vh;
    padding-top: 5vh;
}

@media (min-width: 1024px) {
    .contact-container {
        flex-direction: row;
        align-items: center;
        gap: 5vw;
    }
}

.contact-info {
    flex: 1;
    opacity: 0; /* JS reveal */
    transform: translateY(50px);
}

.contact-map {
    flex: 1;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    opacity: 0; /* JS reveal */
    transform: translateY(50px);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
}

.contact-title {
    font-size: clamp(2rem, 3.5vw, 3rem);
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, #fff, #888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-text {
    font-size: clamp(1rem, 1.15vw, 1.15rem);
    line-height: 1.7;
    color: var(--text-muted);
    font-weight: 300;
    margin-bottom: 2.5rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.detail-item strong {
    font-weight: 500;
    color: #fff;
    display: block;
    margin-bottom: 0.3rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.detail-item p {
    color: var(--text-muted);
    font-weight: 300;
    line-height: 1.5;
}

.detail-item.social {
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin-top: 0.5rem;
}

.detail-item.social svg {
    width: 28px;
    height: 28px;
    fill: var(--text-muted);
    transition: fill 0.3s ease, transform 0.3s ease;
}

.detail-item.social a:hover svg {
    fill: #ffffff;
    transform: translateY(-4px);
}

/* ======== EXPANDABLE CONTACT FAB ======== */
.contact-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.contact-fab__toggle {
    width: 60px;
    height: 60px;
    padding: 0;
    border: 2px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    background:
        radial-gradient(circle closest-side at 50% 50%, rgba(48, 48, 52, 0.88) 0%, rgba(22, 22, 26, 0.72) 100%),
        rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow:
        0 10px 34px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease,
        background-color 0.25s ease;
}

.contact-fab__toggle-icon {
    width: 32px;
    height: 32px;
    fill: rgba(255, 255, 255, 0.78);
    transition: fill 0.25s ease;
}

.contact-fab__toggle:hover {
    transform: translateY(-5px);
    border-color: #ffffff;
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.58),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.contact-fab__toggle:hover .contact-fab__toggle-icon {
    fill: #ffffff;
}

.contact-fab--open .contact-fab__toggle {
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow:
        0 12px 36px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        0 0 0 1px rgba(255, 255, 255, 0.12);
}

.contact-fab--open .contact-fab__toggle-icon {
    fill: #ffffff;
}

.contact-fab__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
}

.contact-fab--open .contact-fab__actions {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.contact-fab__action {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.contact-fab__action--call {
    background: rgba(255, 255, 255, 0.08);
}

.contact-fab__action--wa {
    background: rgba(37, 211, 102, 0.22);
    border-color: rgba(37, 211, 102, 0.45);
}

.contact-fab__action svg {
    width: 24px;
    height: 24px;
    fill: rgba(255, 255, 255, 0.92);
}

.contact-fab__action--wa svg {
    fill: #b8f5d0;
}

.contact-fab__action:hover {
    transform: scale(1.06);
    border-color: rgba(255, 255, 255, 0.35);
}

