/* ==================== CSS VARIABLES ==================== */
:root {
    --color-primary-dark: #004d66;
    --color-accent-gold: #D4AF37;
    --color-light-bg: #F9F9F9;
    --color-secondary: #2c5f7a;
    --transition-default: all 0.3s ease;
    --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 25px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* ==================== GLOBAL STYLES ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Merriweather', sans-serif;
    background-color: var(--color-light-bg);
    scroll-behavior: smooth;
}

/* ==================== UTILITY CLASSES ==================== */
.text-gold {
    color: var(--color-accent-gold);
}

.bg-primary-dark {
    background-color: var(--color-primary-dark);
}

.bg-secondary {
    background-color: var(--color-secondary);
}

.border-gold {
    border-color: var(--color-accent-gold);
}

.section-separator {
    width: 80px;
    height: 3px;
    background-color: var(--color-accent-gold);
    margin: 24px auto;
}

/* ==================== HEADER & NAVIGATION ==================== */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    transition: var(--transition-default);
}

header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--color-accent-gold);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* ==================== MOBILE MENU ==================== */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 2000;
}

.mobile-menu.active {
    right: 0;
}

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.active {
    display: block;
    opacity: 1;
}

/* ==================== BUTTONS ==================== */
.btn-primary {
    background: var(--color-accent-gold);
    color: var(--color-primary-dark);
    font-weight: 600;
    padding: 12px 32px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    transition: var(--transition-default);
    display: inline-block;
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
    border: 2px solid var(--color-accent-gold);
    color: white;
    font-weight: 500;
    padding: 10px 30px;
    border-radius: 8px;
    transition: var(--transition-default);
    display: inline-block;
    text-decoration: none;
}

.btn-secondary:hover {
    background: var(--color-accent-gold);
    color: var(--color-primary-dark);
}

.download-brochure-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--color-accent-gold);
    color: var(--color-primary-dark);
    font-weight: 700;
    font-size: 16px;
    border-radius: 8px;
    text-decoration: none;
    transition: var(--transition-default);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.download-brochure-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
    background: #e5c158;
}

.download-brochure-btn i {
    font-size: 20px;
    animation: bounce 2s infinite;
}

.view-more-btn {
    display: inline-block;
    margin-top: auto;
    padding: 10px 20px;
    background: var(--color-primary-dark);
    color: white;
    text-align: center;
    border-radius: 8px;
    font-weight: 500;
    transition: var(--transition-default);
    text-decoration: none;
}

.view-more-btn:hover {
    background: var(--color-accent-gold);
    color: var(--color-primary-dark);
}

/* ==================== HERO SECTION ==================== */
.hero-gradient {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-banner {
    background: linear-gradient(135deg, rgba(0, 77, 102, 0.9) 0%, rgba(44, 95, 122, 0.8) 100%),
        url('images/project1.webp') center/cover no-repeat;
    min-height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    background-size: cover;
    background-position: center;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 77, 102, 0.815) 0%, rgba(44, 95, 122, 0) 100%);
}

.hero-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 60%);
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
}

/* Carousel Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 20;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition-default);
}

.carousel-indicator.active {
    background: var(--color-accent-gold);
    width: 30px;
    border-radius: 6px;
}

/* ==================== CARDS ==================== */
.stat-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.project-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-default);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.project-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.project-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image-wrapper img {
    transform: scale(1.1);
}

.project-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.project-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-card {
    background: #f9fafb;
    border-radius: 12px;
    padding: 32px;
    transition: var(--transition-default);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 4px 15px rgba(0, 77, 102, 0.2);
}

.amenity-card {
    transition: var(--transition-default);
}

.amenity-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15) !important;
}

.feature-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-default);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.testimonial-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 60px;
    color: var(--color-accent-gold);
    opacity: 0.3;
    font-family: Georgia, serif;
}

.master-plan-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-default);
}

.master-plan-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.master-plan-image {
    width: 100%;
    height: 450px;
    object-fit: contain;
    background: #f8f8f8;
    padding: 20px;
}

/* ==================== FORMS ==================== */
.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    transition: border-color 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-accent-gold);
}

.brochure-form-input {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.brochure-form-input:focus {
    outline: none;
    border-color: var(--color-accent-gold);
}

.brochure-form-input.error {
    border-color: #ef4444;
}

.brochure-form-error {
    color: #ef4444;
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

.brochure-submit-btn {
    width: 100%;
    padding: 12px 18px;
    background: var(--color-accent-gold);
    color: var(--color-primary-dark);
    font-weight: 700;
    font-size: 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-default);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.brochure-submit-btn:hover {
    background: #e5c158;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.brochure-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-success-message {
    background: #10b981;
    color: white;
    padding: 10px;
    border-radius: 6px;
    text-align: center;
    margin-bottom: 12px;
    display: none;
    font-size: 14px;
}

/* ==================== GALLERY ==================== */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* ==================== MODALS ==================== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
}

.modal-content {
    position: relative;
    margin: 2% auto;
    padding: 0;
    width: 90%;
    max-width: 1200px;
}

.modal-content img {
    width: 100%;
    height: auto;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
}

.close-modal:hover {
    color: var(--color-accent-gold);
}

/* Brochure Download Modal */
.brochure-modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    overflow: auto;
    animation: fadeIn 0.3s ease;
}

.brochure-modal-content {
    background-color: white;
    margin: 8% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 420px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease;
}

.brochure-modal-header {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-secondary) 100%);
    color: white;
    padding: 20px;
    border-radius: 12px 12px 0 0;
    position: relative;
}

.brochure-modal-close {
    position: absolute;
    right: 16px;
    top: 16px;
    color: white;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.brochure-modal-close:hover {
    color: var(--color-accent-gold);
}

.brochure-modal-body {
    padding: 24px;
}

/* ==================== SECTIONS ==================== */
.brochure-section {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-secondary) 100%);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.brochure-icon {
    font-size: 64px;
    color: var(--color-accent-gold);
    margin-bottom: 20px;
}

.block-badge {
    display: inline-block;
    padding: 8px 16px;
    background: var(--color-accent-gold);
    color: var(--color-primary-dark);
    font-weight: 700;
    font-size: 14px;
    border-radius: 20px;
    margin-bottom: 12px;
}

/* ==================== ICONS ==================== */
.icon-lg {
    font-size: 48px;
    display: block;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition-default);
}

.social-icon:hover {
    background: var(--color-accent-gold);
    transform: translateY(-3px);
}

/* ==================== FOOTER ==================== */
.footer-link {
    color: #d1d5db;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--color-accent-gold);
}

/* ==================== FLOATING BUTTONS ==================== */
.call-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: var(--color-primary-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 77, 102, 0.4);
    z-index: 1000;
    transition: var(--transition-default);
    text-decoration: none;
}

.call-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 77, 102, 0.6);
}

.call-float.gold-variant {
    background: var(--color-accent-gold);
}

.call-float i {
    color: white;
    font-size: 28px;
}

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--transition-default);
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-float i {
    color: white;
    font-size: 28px;
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 767px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (min-width: 768px) {
    .project-card {
        flex-direction: row;
    }

    .project-image-wrapper {
        width: 40%;
        height: auto;
        min-height: 280px;
    }

    .project-content {
        width: 60%;
        padding: 24px;
    }
}

@media (max-width: 768px) {
    .hero-gradient {
        min-height: 60vh;
    }

    .hero-gradient h2 {
        font-size: 2.5rem;
    }

    .stat-card {
        margin-bottom: 16px;
    }

    .icon-lg {
        font-size: 36px;
    }

    .project-image-wrapper {
        height: 180px;
    }

    .carousel-indicators {
        bottom: 20px;
    }

    .call-float,
    .whatsapp-float {
        bottom: 100px;
        width: 50px;
        height: 50px;
    }

    .call-float {
        left: 20px;
    }

    .call-float i,
    .whatsapp-float i {
        font-size: 22px;
    }

    .whatsapp-float {
        right: 20px;
    }

    .brochure-section {
        padding: 30px 20px;
    }

    .master-plan-image {
        height: 300px;
    }

    .brochure-modal-content {
        width: 95%;
        margin: 10% auto;
    }

    .brochure-modal-body {
        padding: 20px;
    }
}
