@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100;200;300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

:root {
    --primary: #002b3d;
    --accent: #ffd700; /* Super Bright Gold (Yellow) */
    --light: #f4f7f6;
    --dark: #121212;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.9);
    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    --spacing-lg: 160px;
    --spacing-md: 80px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--dark);
    background-color: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
}

/* --- Utilities --- */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

.section-padding {
    padding: var(--spacing-lg) 0;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Header (Barrita) --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 25px 0;
    transition: var(--transition);
    background: linear-gradient(to bottom, rgba(0,0,0,0.4), transparent);
}

header.scrolled {
    background: var(--glass);
    backdrop-filter: blur(15px);
    padding: 12px 0;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 100px;
    transition: var(--transition);
}

header.scrolled .logo img {
    height: 50px;
    filter: none;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: var(--transition);
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

header.scrolled .nav-links a {
    color: var(--primary);
    text-shadow: none;
}

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

.btn-nav {
    background: var(--accent);
    color: var(--primary) !important;
    padding: 10px 25px;
    border-radius: 2px;
    font-weight: 700 !important;
    text-shadow: none !important;
}

header.scrolled .btn-nav {
    background: var(--primary);
    color: var(--white) !important;
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: #000;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0,43,61,0.7), transparent);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    color: var(--white);
    max-width: 800px;
}

.hero-tag {
    font-size: 0.8rem;
    letter-spacing: 0.5em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 25px;
    display: block;
    font-weight: 600;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 5.5rem);
    line-height: 1.1;
    margin-bottom: 30px;
}

.hero p {
    font-size: 1.1rem;
    font-weight: 300;
    max-width: 550px;
    margin-bottom: 40px;
    opacity: 0.85;
}

.hero-stats {
    display: flex;
    gap: 60px;
    margin-top: 50px;
}

.stat-item h4 {
    font-size: 2.2rem;
    margin-bottom: 5px;
    color: var(--accent);
}

.stat-item p {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.7;
}

/* --- Section Stylings --- */
.section-tag {
    font-size: 0.7rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
    display: block;
    font-weight: 700;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 40px;
    color: var(--primary);
    line-height: 1.2;
}

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

.split.reverse {
    direction: rtl;
}
.split.reverse > * {
    direction: ltr;
}

.split-img {
    height: 650px;
    overflow: hidden;
    position: relative;
}

.split-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.split-img:hover img {
    transform: scale(1.05);
}

/* --- Feature Grid --- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    margin-top: 60px;
}

.feature-item {
    border-top: 1px solid #e0e0e0;
    padding-top: 30px;
}

.feature-item h3 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.feature-item p {
    font-size: 0.9rem;
    font-weight: 300;
    color: #666;
}

/* --- Gallery --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    height: 500px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

/* --- Floor Plans --- */
.plans-section {
    background: var(--light);
}

.plan-card {
    background: var(--white);
    padding: 60px;
    margin-bottom: 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    box-shadow: 0 40px 100px rgba(0,0,0,0.03);
}

.plan-img {
    overflow: hidden;
    border-radius: 8px;
}

.plan-img img {
    width: 100%;
    max-height: 450px;
    object-fit: contain;
    transition: var(--transition);
}

.plan-card:hover .plan-img img {
    transform: scale(1.3);
}

.plan-info h3 {
    font-size: 2.8rem;
    margin-bottom: 25px;
    color: var(--primary);
}

.plan-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.plan-list li {
    font-size: 0.85rem;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #555;
}

.plan-list li::before {
    content: '';
    width: 20px;
    height: 1px;
    background: var(--accent);
}

.amenity-list li::before {
    display: none;
}

.amenity-list li i {
    color: var(--accent);
    font-size: 1.2rem;
    width: 30px;
    text-align: center;
    margin-right: 10px;
}

/* --- Contact --- */
.contact-section {
    background: var(--primary);
    color: var(--white);
}

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

.form-group input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    padding: 20px 0;
    color: var(--white);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

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

.btn-submit {
    background: var(--accent);
    color: var(--primary);
    border: none;
    padding: 20px 60px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    background: var(--white);
    transform: translateY(-5px);
}

/* --- Floating --- */
.whatsapp {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    z-index: 1000;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    text-decoration: none;
    transition: var(--transition);
}

.whatsapp:hover {
    transform: scale(1.1) rotate(10deg);
}

/* --- Video Section --- */
.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    aspect-ratio: 16/9;
    background: #000;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 43, 61, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    z-index: 2;
}

.video-wrapper.playing .video-overlay {
    opacity: 0;
    pointer-events: none;
}

.play-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--primary);
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

.play-btn:hover {
    transform: scale(1.1);
    background: var(--white);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.4);
}

.play-btn i {
    margin-left: 5px; /* Centering fix for play icon */
}

/* --- Gallery Page Styles --- */
.gallery-hero {
    background: var(--primary);
    color: var(--white);
    padding: 160px 0 60px 0;
    text-align: center;
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 40px 0 50px 0;
    list-style: none;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid rgba(0, 43, 61, 0.15);
    color: var(--primary);
    padding: 10px 25px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 2px;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.gallery-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: var(--spacing-lg);
}

.gallery-card {
    position: relative;
    overflow: hidden;
    height: 380px;
    cursor: pointer;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.gallery-card:hover img {
    transform: scale(1.05);
}

.gallery-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 43, 61, 0.9), transparent);
    color: var(--white);
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition);
}

.gallery-card:hover .gallery-info {
    transform: translateY(0);
    opacity: 1;
}

.gallery-info span {
    font-size: 0.65rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
}

.gallery-info h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 400;
}

/* Lightbox Modal */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 26, 37, 0.95);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80%;
    position: relative;
    text-align: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: var(--white);
    font-size: 2.5rem;
    cursor: pointer;
    background: transparent;
    border: none;
    transition: var(--transition);
}

.lightbox-close:hover {
    color: var(--accent);
}

.lightbox-caption {
    color: var(--white);
    text-align: center;
    margin-top: 15px;
}

.lightbox-caption h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 5px;
}

.lightbox-caption span {
    color: var(--accent);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 700;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .split, .plan-card {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .hero h1 { font-size: 3.5rem; }
    .gallery-grid { 
        grid-template-columns: 1fr;
    }
    .gallery-item {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .container { padding: 0 8%; }
    .nav-links { display: none; }
    .feature-grid { grid-template-columns: 1fr; }
    .section-padding { padding: 100px 0; }
}

/* --- Login Modal Styles --- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 26, 37, 0.95);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: #002231;
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: 8px;
    padding: 50px 40px;
    max-width: 450px;
    width: 90%;
    position: relative;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    text-align: center;
    backdrop-filter: blur(10px);
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.modal.active .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.close-modal:hover {
    opacity: 1;
    color: var(--accent);
}

.modal-header {
    margin-bottom: 30px;
}

.modal-icon {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 15px;
}

.modal-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--white);
    margin-bottom: 10px;
}

.modal-header p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

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

.modal .form-group input {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px;
    padding: 15px 20px;
    color: var(--white);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    text-align: center;
    letter-spacing: 0.2em;
    transition: var(--transition);
}

.modal .form-group input:focus {
    border-color: var(--accent);
    background: rgba(255,255,255,0.08);
}

.modal .btn-submit {
    width: 100%;
    padding: 15px 0;
    font-size: 0.9rem;
}

.login-error {
    color: #ff4d4d;
    font-size: 0.85rem;
    margin-top: 15px;
    display: none;
}
