:root {
    --primary: #d4af37;
    --dark: #0f0f0f;
    --light: #f4f4f4;
    --grey: #333;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--dark);
    color: var(--light);
    overflow-x: hidden;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(15, 15, 15, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-placeholder {
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    position: relative;
}

.logo-placeholder::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 1px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: var(--light);
    font-weight: 500;
    transition: var(--transition);
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 100px 20px 20px;
    /* Added top padding for fixed header */
    background: radial-gradient(circle at center, #1a1a1a 0%, #0f0f0f 100%);
    position: relative;
    z-index: 2;
    margin-bottom: -100px; /* Overlap with next section */
}

.hero-logo {
    width: 150px;
    height: auto;
    border-radius: 50%;
    margin-bottom: 20px;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
    border: 2px solid var(--primary);
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #fff;
    /* Fallback color */
    background: linear-gradient(to right, #fff, #d4af37);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 40px;
}

.btn {
    padding: 15px 40px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    cursor: pointer;
    transition: var(--transition);
    border-radius: 5px;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    background: var(--primary);
    color: var(--dark);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

/* Villa Showcase - Seamless Merge */
.villa-showcase {
    padding: 0;
    background: #0f0f0f;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.villa-container {
    position: relative;
    width: 100%;
    max-width: 100%; /* Make it full width for immersive feel */
    height: 800px; /* Increased height */
    overflow: hidden;
    opacity: 0;
    transform: scale(1.05); /* Slight zoom out effect */
    border-radius: 0;
    box-shadow: none;
    transition: opacity 1.5s ease, transform 1.5s ease;
    margin: 0;
}

@media (max-width: 768px) {
    .villa-container {
        height: 550px; /* Taller on mobile too */
    }
}

.villa-container.aos-animate {
    opacity: 1;
    transform: scale(1);
}

.villa-image {
    width: 100%;
    height: 140%; /* More room for parallax */
    object-fit: cover;
    display: block;
    filter: brightness(0.5);
    position: absolute;
    top: -20%;
    left: 0;
    transition: transform 0.1s linear;
}

.villa-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 3;
    width: 90%;
}

.villa-overlay h3 {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
    text-shadow: 0 5px 30px rgba(0,0,0,0.8);
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .villa-overlay h3 {
        font-size: 1.8rem;
    }
    .villa-overlay p {
        font-size: 1rem;
    }
}

.villa-container.aos-animate h3 {
    opacity: 1;
    transform: translateY(0);
}

.villa-overlay p {
    font-size: 1.4rem;
    color: #eee;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease 0.3s;
}

.villa-container.aos-animate p {
    opacity: 1;
    transform: translateY(0);
}

/* Services - Merge */
.services {
    padding: 100px 50px;
    background: #0f0f0f;
    position: relative;
    z-index: 2;
    margin-top: -100px; /* Overlap with villa section */
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: var(--primary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: #1a1a1a;
    padding: 40px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    background: #222;
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--primary);
}

/* Contact Page Form */
.form-container {
    max-width: 600px;
    margin: 150px auto;
    background: #1a1a1a;
    padding: 50px;
    border-radius: 15px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: #aaa;
}

input,
select {
    width: 100%;
    padding: 12px;
    background: #0f0f0f;
    border: 1px solid #333;
    color: #fff;
    border-radius: 5px;
    outline: none;
}

input:focus,
select:focus {
    border-color: var(--primary);
}

/* Footer */
.footer {
    padding: 80px 50px 30px;
    background: #0a0a0a;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section h4 {
    color: var(--primary);
    margin-bottom: 25px;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-section p {
    color: #888;
    margin-bottom: 15px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-section i {
    color: var(--primary);
    width: 20px;
}

.footer-section a {
    color: #888;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: #555;
    font-size: 0.85rem;
}

/* Sub-hero for inner pages */
.sub-hero {
    height: 40vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(rgba(15, 15, 15, 0.8), rgba(15, 15, 15, 0.8)), radial-gradient(circle at center, #222 0%, #0f0f0f 100%);
    position: relative;
    padding-top: 80px;
}

.sub-hero h1 {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.breadcrumb {
    color: #888;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* Background Animation */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.05), transparent 70%);
    z-index: -1;
    pointer-events: none;
}

@media (max-width: 768px) {
    header {
        padding: 20px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .sub-hero h1 {
        font-size: 2rem;
    }

    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 80px;
        /* Adjust based on header height */
        left: 0;
        background: rgba(15, 15, 15, 0.95);
        backdrop-filter: blur(10px);
        padding: 20px 0;
        border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    }

    nav ul.active {
        display: flex;
    }

    nav ul li {
        text-align: center;
        margin: 10px 0;
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 25px;
        cursor: pointer;
        z-index: 1001;
    }

    .hamburger span {
        width: 100%;
        height: 3px;
        background: var(--primary);
        border-radius: 2px;
        transition: var(--transition);
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .services {
        padding: 50px 20px;
    }

    .form-container {
        margin: 100px 20px;
        padding: 30px;
    }
}