/* ===== CSS VARIABLES ===== */
:root {
    --gold: #D4AF37;
    --gold-light: #F4E4A6;
    --teal: #00A8B5;
    --teal-dark: #007A85;
    --dark: #0A0E17;
    --dark-light: #141B2A;
    --cream: #F5F0E8;
    --white: #FFFFFF;
}

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

html {
    scroll-behavior: auto;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--dark);
    color: var(--cream);
    overflow-x: hidden;
}

/* ===== PRELOADER ===== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.preloader-text {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--gold);
    overflow: hidden;
}

.preloader-text span {
    display: inline-block;
}

.preloader-line {
    width: 200px;
    height: 1px;
    background: rgba(212, 175, 55, 0.2);
    margin-top: 20px;
    position: relative;
    overflow: hidden;
}

.preloader-line::after {
    content: '';
    position: absolute;
    left: -100%;
    top: 0;
    width: 100%;
    height: 100%;
    background: var(--gold);
    animation: loadLine 1.5s ease-in-out forwards;
}

@keyframes loadLine {
    to { left: 100%; }
}

/* ===== NAVIGATION ===== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 24px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: all 0.5s ease;
}

nav.scrolled {
    background: rgba(10, 14, 23, 0.85);
    backdrop-filter: blur(20px);
    padding: 16px 60px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
}

.logo span {
    color: var(--gold);
    font-weight: 400;
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    color: var(--cream);
    text-decoration: none;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.nav-links a:hover::after {
    width: 100%;
}

/* ===== HERO ===== */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10, 14, 23, 0.3) 0%,
        rgba(10, 14, 23, 0.6) 50%,
        rgba(10, 14, 23, 1) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
}

.hero-subtitle {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 6px;
    color: var(--gold);
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(30px);
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 8vw, 7rem);
    line-height: 1.05;
    margin-bottom: 32px;
    color: var(--white);
}

.hero-title .line {
    display: block;
    overflow: hidden;
}

.hero-title .line span {
    display: block;
    transform: translateY(100%);
}

.hero-desc {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(245, 240, 232, 0.8);
    max-width: 600px;
    margin: 0 auto 48px;
    opacity: 0;
    transform: translateY(30px);
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 48px;
    background: var(--gold);
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    border-radius: 100px;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    transition: transform 0.3s ease;
}

.hero-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--white);
    transition: left 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: -1;
}

.hero-cta:hover::before {
    left: 0;
}

.hero-cta:hover {
    transform: scale(1.05);
}

.hero-cta svg {
    transition: transform 0.3s ease;
}

.hero-cta:hover svg {
    transform: translateX(5px);
}

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

.scroll-indicator span {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: rgba(245, 240, 232, 0.6);
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: rgba(212, 175, 55, 0.3);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gold);
    animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
    0% { top: -100%; }
    100% { top: 100%; }
}

/* ===== MARQUEE ===== */
.marquee-section {
    padding: 80px 0;
    overflow: hidden;
    background: var(--dark);
    border-top: 1px solid rgba(212, 175, 55, 0.15);
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 25s linear infinite;
}

.marquee-item {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 4rem);
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(212, 175, 55, 0.6);
    white-space: nowrap;
    padding: 0 40px;
    text-transform: uppercase;
    letter-spacing: 4px;
}

.marquee-item.active {
    color: var(--gold);
    -webkit-text-stroke: 0;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

@keyframes marquee {
    to { transform: translateX(-50%); }
}

/* ===== SECTION BASE ===== */
section {
    position: relative;
}

.section-header {
    margin-bottom: 80px;
}

.section-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--gold);
    margin-bottom: 16px;
    display: block;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    color: var(--white);
}

/* ===== ABOUT ===== */
.about {
    padding: 160px 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-images {
    position: relative;
    height: 600px;
}

.about-img {
    position: absolute;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}

.about-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-img-1 {
    width: 70%;
    height: 70%;
    top: 0;
    left: 0;
    z-index: 2;
}

.about-img-2 {
    width: 50%;
    height: 50%;
    bottom: 0;
    right: 0;
    z-index: 3;
    border: 4px solid var(--dark);
}

.about-img-3 {
    width: 40%;
    height: 40%;
    top: 20%;
    right: 5%;
    z-index: 1;
    opacity: 0.6;
}

.about-text {
    padding-left: 40px;
}

.about-text p {
    font-size: 1.05rem;
    line-height: 1.9;
    color: rgba(245, 240, 232, 0.75);
    margin-bottom: 24px;
}

.stats-row {
    display: flex;
    gap: 48px;
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.stat-item h3 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--gold);
    line-height: 1;
}

.stat-item p {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(245, 240, 232, 0.6);
    margin-top: 8px;
}

/* ===== PROPERTIES ===== */
.properties {
    padding: 160px 60px;
    background: var(--dark-light);
    position: relative;
}

.properties::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.3;
}

.properties-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    max-width: 1400px;
    margin: 0 auto 80px;
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.property-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 500px;
    cursor: pointer;
}

.property-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.property-card:hover .property-card-bg {
    transform: scale(1.1);
}

.property-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 14, 23, 0.95) 0%, rgba(10, 14, 23, 0.3) 50%, transparent 100%);
    transition: background 0.5s ease;
}

.property-card:hover .property-card-overlay {
    background: linear-gradient(to top, rgba(10, 14, 23, 0.98) 0%, rgba(10, 14, 23, 0.5) 60%, rgba(0, 168, 181, 0.1) 100%);
}

.property-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    transform: translateY(20px);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.property-card:hover .property-content {
    transform: translateY(0);
}

.property-tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--gold);
    color: var(--dark);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 100px;
    margin-bottom: 16px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease 0.1s;
}

.property-card:hover .property-tag {
    transform: translateY(0);
    opacity: 1;
}

.property-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--white);
    margin-bottom: 8px;
}

.property-location {
    font-size: 0.9rem;
    color: rgba(245, 240, 232, 0.7);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.property-price {
    font-size: 1.3rem;
    color: var(--gold);
    font-weight: 600;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease 0.2s;
}

.property-card:hover .property-price {
    transform: translateY(0);
    opacity: 1;
}

.property-features {
    display: flex;
    gap: 20px;
    margin-top: 16px;
    font-size: 0.85rem;
    color: rgba(245, 240, 232, 0.7);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease 0.3s;
}

.property-card:hover .property-features {
    transform: translateY(0);
    opacity: 1;
}

/* ===== WHY SAMUI ===== */
.why-samui {
    position: relative;
    padding: 160px 60px;
    overflow: hidden;
}

.why-samui-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 0;
}

.why-samui-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 14, 23, 0.6);
    z-index: 1;
}

.why-samui-content {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.why-samui-desc {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(245, 240, 232, 0.85);
    max-width: 800px;
    margin: 0 auto 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.feature-card {
    padding: 48px 32px;
    background: rgba(20, 27, 42, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 16px;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    background: rgba(20, 27, 42, 0.7);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.feature-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--white);
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(245, 240, 232, 0.7);
}

/* ===== GALLERY ===== */
.gallery {
    padding: 0 60px 160px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(3, 300px);
    gap: 16px;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item-1 { grid-column: 1 / 6; grid-row: 1 / 3; }
.gallery-item-2 { grid-column: 6 / 9; grid-row: 1 / 2; }
.gallery-item-3 { grid-column: 9 / 13; grid-row: 1 / 2; }
.gallery-item-4 { grid-column: 6 / 10; grid-row: 2 / 4; }
.gallery-item-5 { grid-column: 10 / 13; grid-row: 2 / 3; }
.gallery-item-6 { grid-column: 1 / 6; grid-row: 3 / 4; }
.gallery-item-7 { grid-column: 10 / 13; grid-row: 3 / 4; }

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 14, 23, 0.4);
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--white);
    transform: translateY(20px);
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-overlay span {
    transform: translateY(0);
}

/* ===== CTA ===== */
.cta-section {
    padding: 160px 60px;
    position: relative;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 14, 23, 0.75);
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.cta-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--white);
    margin-bottom: 24px;
    line-height: 1.2;
}

.cta-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(245, 240, 232, 0.8);
    margin-bottom: 48px;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 20px 56px;
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.85rem;
    border-radius: 100px;
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
}

.cta-btn:hover {
    background: var(--gold);
    color: var(--dark);
    transform: scale(1.05);
}

/* ===== CONTACT ===== */
.contact {
    padding: 160px 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 32px;
}

.contact-item {
    margin-bottom: 32px;
    padding-left: 24px;
    border-left: 2px solid rgba(212, 175, 55, 0.3);
    transition: border-color 0.3s;
}

.contact-item:hover {
    border-left-color: var(--gold);
}

.contact-item-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--gold);
    margin-bottom: 8px;
}

.contact-item-value {
    font-size: 1.1rem;
    color: var(--cream);
    text-decoration: none;
    display: block;
    transition: color 0.3s;
}

.contact-item-value:hover {
    color: var(--gold);
}

.contact-form {
    background: rgba(20, 27, 42, 0.5);
    padding: 48px;
    border-radius: 16px;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(245, 240, 232, 0.2);
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group label {
    position: absolute;
    left: 0;
    top: 16px;
    color: rgba(245, 240, 232, 0.5);
    pointer-events: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    border-bottom-color: var(--gold);
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -8px;
    font-size: 0.75rem;
    color: var(--gold);
}

.submit-btn {
    width: 100%;
    padding: 18px;
    background: var(--gold);
    color: var(--dark);
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    border-radius: 100px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s;
}

.submit-btn:hover {
    transform: scale(1.02);
}

/* ===== FOOTER ===== */
footer {
    padding: 80px 60px 40px;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    text-align: center;
}

.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 24px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 48px;
    list-style: none;
}

.footer-links a {
    color: rgba(245, 240, 232, 0.6);
    text-decoration: none;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-copy {
    font-size: 0.8rem;
    color: rgba(245, 240, 232, 0.4);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .properties-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
    .gallery-item-1, .gallery-item-2, .gallery-item-3,
    .gallery-item-4, .gallery-item-5, .gallery-item-6, .gallery-item-7 {
        grid-column: auto;
        grid-row: auto;
        height: 250px;
    }
    .gallery-item-1 { height: 400px; }
}

@media (max-width: 768px) {
    nav { padding: 20px 24px; }
    nav.scrolled { padding: 16px 24px; }
    .nav-links { display: none; }
    .about, .properties, .why-samui, .contact { padding: 100px 24px; }
    .gallery { padding: 0 24px 100px; }
    .properties-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .stats-row { flex-direction: column; gap: 24px; }
    .about-images { height: 400px; }
}
