/* CSS Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; /* Smooth iOS scrolling */
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    color: #333;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Luxury Color Palette */
:root {
    --black: #0a0a0a;
    --gold: #D4AF37;
    --gold-dark: #B8962E;
    --white: #ffffff;
    --gray-dark: #1a1a1a;
    --gray: #333;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

/* Typography - Mobile First */
h1 { 
    font-size: clamp(2rem, 6vw, 3.5rem); 
    font-weight: 600;
    line-height: 1.2;
}

h2 { 
    font-size: clamp(1.75rem, 5vw, 2.75rem); 
    font-weight: 600;
}

h3 { font-size: clamp(1.25rem, 4vw, 1.5rem); }
h4 { font-size: clamp(1rem, 3.5vw, 1.25rem); }

p {
    font-size: clamp(0.95rem, 3vw, 1.1rem);
}

/* Navigation - Mobile Optimized */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: saturate(180%) blur(20px);
    z-index: 1000;
    padding: clamp(0.8rem, 2vw, 1rem) 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(15px, 5vw, 20px);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo h2 {
    color: var(--gold);
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.1rem, 4vw, 1.5rem);
    margin: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: clamp(1rem, 3vw, 2rem);
    transition: all 0.3s ease;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    position: relative;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--gold-dark));
    transition: width 0.3s ease;
    border-radius: 1px;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--gold);
}

.nav-lang {
    display: flex;
    align-items: center;
    gap: clamp(0.3rem, 1vw, 0.5rem);
    font-weight: 600;
    font-size: clamp(0.85rem, 2.5vw, 0.9rem);
}

.lang-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: clamp(0.4rem, 1.5vw, 0.5rem) clamp(0.8rem, 2vw, 1rem);
    border-radius: 20px;
    transition: all 0.3s ease;
    font-weight: 600;
    min-width: 40px;
    backdrop-filter: blur(10px);
}

.lang-btn.active,
.lang-btn:hover {
    background: rgba(212, 175, 55, 0.2);
    color: var(--gold);
    transform: scale(1.05);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.hamburger span {
    width: clamp(20px, 5vw, 25px);
    height: 3px;
    background: white;
    margin: 2px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

/* Hero Section - Mobile Optimized */
.hero {
    height: clamp(80vh, 100vh, 100vh);
    min-height: 80vh;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%),
                url('https://images.unsplash.com/photo-1564507592333-c91618891568?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: scroll; /* Better for mobile */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(10,10,10,0.85) 0%, rgba(0,0,0,0.95) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: min(90vw, 800px);
    padding: clamp(20px, 5vw, 40px);
    animation: fadeInUp 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-title {
    color: var(--white);
    margin-bottom: clamp(1rem, 3vw, 1.5rem);
    text-shadow: 0 4px 20px rgba(0,0,0,0.8);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    color: rgba(255,255,255,0.92);
    margin-bottom: clamp(2rem, 5vw, 2.5rem);
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--black);
    padding: clamp(0.9rem, 2.5vw, 1rem) clamp(2rem, 6vw, 2.5rem);
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(1rem, 3vw, 1.1rem);
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 12px 40px rgba(212, 175, 55, 0.4);
    position: relative;
    overflow: hidden;
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s;
}

.cta-btn:hover::before {
    left: 100%;
}

.cta-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 50px rgba(212, 175, 55, 0.6);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin: clamp(3rem, 8vw, 4rem) 0;
    max-width: min(90vw, 600px);
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    color: var(--black);
    margin-bottom: clamp(0.8rem, 2vw, 1rem);
}

.section-header p {
    color: var(--gray);
    font-size: clamp(1rem, 2.8vw, 1.1rem);
}

/* General Sections Padding */
section {
    padding: clamp(80px, 12vw, 120px) 0;
}

/* About Section */
.about {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(2rem, 6vw, 4rem);
    align-items: center;
}

@media (min-width: 768px) {
    .about-content {
        grid-template-columns: 1fr 1fr;
    }
}

.about-text p {
    font-size: clamp(1rem, 2.8vw, 1.1rem);
    color: var(--gray);
    margin-bottom: clamp(1.5rem, 4vw, 2rem);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: clamp(1.5rem, 4vw, 2rem);
    justify-items: center;
}

.stat {
    text-align: center;
    padding: clamp(1rem, 3vw, 1.5rem);
}

.stat h3 {
    color: var(--gold);
    font-size: clamp(2rem, 8vw, 2.5rem);
    margin-bottom: 0.5rem;
}

.stat p {
    color: var(--gray);
    font-weight: 500;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
}

/* Villas Section */
.villas-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(2rem, 5vw, 3rem);
}

@media (min-width: 768px) {
    .villas-grid {
        grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    }
}

.villa-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    height: 100%;
}

.villa-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 35px 90px rgba(0,0,0,0.22);
}

.villa-image {
    position: relative;
    height: clamp(250px, 40vw, 350px);
    overflow: hidden;
}

.villa-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.villa-card:hover .villa-image img {
    transform: scale(1.12);
}

.villa-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent 0%, rgba(0,0,0,0.88) 40%);
    color: white;
    padding: clamp(1.5rem, 4vw, 2rem) clamp(1.5rem, 4vw, 2rem) clamp(2rem, 5vw, 3rem);
}

.villa-overlay h3 {
    font-size: clamp(1.4rem, 4vw, 1.8rem);
    margin-bottom: 0.5rem;
}

.villa-info {
    padding: clamp(2rem, 5vw, 2.5rem);
}

.villa-info p {
    color: var(--gray);
    margin-bottom: clamp(1.2rem, 3vw, 1.5rem);
    line-height: 1.7;
}

.villa-btn {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--black);
    padding: clamp(0.8rem, 2.5vw, 0.9rem) clamp(1.5rem, 4vw, 2rem);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    transition: all 0.3s ease;
}

.villa-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.4);
}

/* Features Section */
.features {
    background: var(--gray-dark);
    color: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: clamp(1.5rem, 4vw, 2rem);
}

.feature {
    text-align: center;
    padding: clamp(1.5rem, 4vw, 2rem);
    transition: transform 0.4s ease;
}

.feature:hover {
    transform: translateY(-8px);
}

.feature-icon {
    width: clamp(70px, 12vw, 80px);
    height: clamp(70px, 12vw, 80px);
    background: rgba(255,255,255,0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto clamp(1rem, 3vw, 1.5rem);
    font-size: clamp(1.5rem, 5vw, 2rem);
    color: var(--gold);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.feature:hover .feature-icon {
    background: rgba(212, 175, 55, 0.2);
    transform: scale(1.1);
}

.feature h3 {
    color: white;
    margin-bottom: clamp(0.8rem, 2vw, 1rem);
    font-size: clamp(1.1rem, 3vw, 1.25rem);
}

.feature p {
    color: rgba(255,255,255,0.85);
    font-size: clamp(0.9rem, 2.5vw, 1rem);
}

/* Testimonials */
.testimonials {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.testimonials-slider {
    max-width: min(95vw, 800px);
    margin: 0 auto;
    position: relative;
}

.testimonial {
    display: none;
    text-align: center;
    padding: clamp(2rem, 6vw, 3rem);
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.testimonial.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.stars {
    color: var(--gold);
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    margin-bottom: clamp(1rem, 3vw, 1.5rem);
    letter-spacing: 0.2rem;
}

.testimonial p {
    font-style: italic;
    font-size: clamp(1.1rem, 3vw, 1.2rem);
    color: var(--gray);
    margin-bottom: clamp(1.5rem, 4vw, 2rem);
    line-height: 1.7;
}

.testimonial h4 {
    color: var(--gold);
    font-size: clamp(1rem, 3vw, 1.1rem);
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--black) 0%, var(--gray-dark) 100%);
    color: white;
    text-align: center;
}

.cta h2 {
    color: white;
    margin-bottom: clamp(1rem, 3vw, 1.5rem);
}

.cta p {
    font-size: clamp(1.1rem, 3vw, 1.2rem);
    margin-bottom: clamp(2rem, 6vw, 3rem);
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 3vw, 2rem);
    justify-content: center;
    align-items: center;
}

@media (min-width: 640px) {
    .cta-buttons {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

.cta-btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--black);
    min-width: 200px;
}

.cta-btn-secondary {
    background: transparent;
    color: white;
    border: 45;
    }