@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:wght@700&display=swap');


/* Animations */
@keyframes mobileFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes gradientGlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes drawHouse {
    0% { stroke-dasharray: 0 200; stroke-dashoffset: 0; }
    50% { stroke-dasharray: 200 200; stroke-dashoffset: 0; }
    100% { stroke-dasharray: 200 200; stroke-dashoffset: -200; }
}

@keyframes bubbleFloat {
    0% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(-15px); opacity: 0.7; } 
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

@keyframes chatGlow {
    0% { box-shadow: 0 0 8px rgba(253, 193, 7, 0.3), 0 0 12px rgba(255, 107, 107, 0.3); }
    50% { box-shadow: 0 0 12px rgba(253, 193, 7, 0.5), 0 0 18px rgba(255, 107, 107, 0.5); }
    100% { box-shadow: 0 0 8px rgba(253, 193, 7, 0.3), 0 0 12px rgba(255, 107, 107, 0.3); }
}

@keyframes bounce {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 8px); }
}

@keyframes heroFadeIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes typingPulse {
    0%, 60%, 100% { opacity: 0.3; transform: scale(0.8); }
    30% { opacity: 1; transform: scale(1); }
}
@keyframes gradient-animate {
    0% {
    background-position: 0% 50%;
    }
    50% {
    background-position: 100% 50%;
    }
    100% {
    background-position: 0% 50%;
    }
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Root Variables */
:root {
    --primary-color: #01031d;
    --secondary-color: #FDC107;
    --gradient: linear-gradient(45deg, #FDC107, #FF6B6B);
    --background: #f5f5f5;
    --text-color: #333333;
    --card-bg: #ffffff;
    --shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}
body.dark-mode {
    --primary-color: #ffffff;
    --background: #01031d;
    --text-color: #ffffff;
    --card-bg: #1a1a2e;
    --shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* General Styles */
* {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.hero-title {
    font-family: 'Bodoni Moda', serif;
    font-weight: 700;
    font-size: clamp(4rem, 9vw, 6.5rem); 
    letter-spacing: 0.01em;
    background: linear-gradient(45deg, #FDC107, #FF6B6B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    line-height: 1.15;
    margin-bottom: 0.5em;
}

/* Auto blur */
.autoBlur {
    animation: autoBlurAnimation linear both;
    animation-timeline: view();
}
@keyframes autoBlurAnimation{
    0%{
        filter:blur(40px);
    }
    40%, 60%{
        filter: blur(0);
        transform: translateY(0px);
        opacity: 1;
    }
    100%{
        filter: blur(40px);
        transform: translateY(-200px);
        opacity: 0;
    }
}

.luxury {
    width: 100%;
    height: 100%;
    margin-top: 50px; 
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-color); 
    padding: 2rem;
    gap: 0.1rem !important;
}
.luxury p {
    font-size: 16px;
    color: #333333; 
}

body.dark-mode .luxury p {
    color: #ffffff; 
}

.image-box {
    width: 360px;
    height: 510px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
}
.image-box img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.luxury h1 {
    font-family: 'Playfair Display', serif;
    font-weight: 500px;
    font-size: 70px;
    max-width: 1150px;
    text-align: center;
    margin: 25px 0;
    text-transform: uppercase;
    background: linear-gradient(45deg, #FDC107, #FF6B6B);
    background-size: 200px;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: animate-gradient 2.5s linear infinite;

}
.hero-title {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: 70px;
    max-width: 1150px;
    text-align: center;
    margin: 25px 0;
    text-transform: uppercase;
    background: linear-gradient(90deg, #FDC107 0%, #FF6B6B 50%, #FF3CAC 100%);
    background-size: 300% 300%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: animate-gradient 5s ease infinite;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}
@keyframes animate-gradient {
    0% {
      background-position: 0% 50%;
    }
    50% {
      background-position: 100% 50%;
    }
    100% {
      background-position: 0% 50%;
    }
}

.rental {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: 70px;
    max-width: 1150px;
    text-align: center;
    margin: 25px 0;
    text-transform: uppercase;
    background: linear-gradient(90deg, #FDC107 0%, #FF6B6B 50%);
    background-size: 300% 300%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: animate-gradient 5s ease infinite;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.autoTakeFull {
    animation: autoTakeFullAnimation both;
    animation-timeline: view(70% 65%);
}

@keyframes autoTakeFullAnimation {
    to{
        width: 100%;
        height: 100vh;
        border-radius: 20px;
        margin-bottom: 100px;
    }
}

.autoDisplay {
    animation: autoDisplayAnimation both;
    animation-timeline: view(70% 5%);
}

@keyframes autoDisplayAnimation {
    from{
        opacity: 0;
        transform: translateY(200px) scale(0.3);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.gradient-border {
    position: relative;
    z-index: 1;
    overflow: hidden;
    padding: 2rem; 
}

.gradient-border::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 2px; 
    background: linear-gradient(270deg, #FDC107, #FF6B6B, #FDC107);
    background-size: 600% 600%;
    animation: gradient-animate 8s linear infinite;
    -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.gradient-border > * {
    position: relative;
    z-index: 2;
}



body {
    background: var(--background);
    color: var(--text-color);
    transition: var(--transition);
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* Enhanced Mobile Touch Support */
input, textarea, button, select {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    -webkit-user-select: text;
    user-select: text;
    cursor: text;
    -webkit-appearance: none;
    appearance: none;
    z-index: 100;
    font-size: 16px;
    padding: 12px;
    border-radius: 8px;
    border: 2px solid #ddd;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(253, 193, 7, 0.2);
}

/* Ensure chat input matches form input responsiveness */
.chat-input-container input {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    -webkit-user-select: text;
    user-select: text;
    cursor: text;
    -webkit-appearance: none;
    appearance: none;
    font-size: 16px;
    padding: 0.8em;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    pointer-events: auto;
    z-index: 2000;
}

.chat-input-container input:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(253, 193, 7, 0.2);
}

#chat-widget,
.chat-container.active {
    z-index: 4000 !important;
    pointer-events: auto !important;
}

.chat-container {
    pointer-events: auto;
}

.chat-input-container input,
.chat-input-container button {
    pointer-events: auto;
    z-index: 3001;
}

form, .chat-input-container {
    touch-action: auto;
    pointer-events: auto;
    z-index: 2000;
}

.btn {
    background: var(--gradient);
    color: #ffffff;
    padding: 0.8em 1.5em;
    border: none;
    border-radius: 18px;
    font-size: 1em;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2em 5%;
    background: var(--card-bg);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition), background 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
    border-radius: 15px;
    margin: 0 1rem;
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
}

body.dark-mode nav.scrolled {
    background: rgba(1, 3, 29, 0.1);
    border-radius: 15px;
}

nav.hidden-nav {
    opacity: 0;
    transform: translateY(-100%);
    pointer-events: none;
}

.logo {
    font-size: 2em;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    background: var(--gradient);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    font-family: 'Exo 2', sans-serif;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1em;
}

.links {
    display: flex;
    list-style: none;
    gap: 1.5em;
    margin: 0;
}

.links li a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95em;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.links li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s ease;
}

.links li a:hover::after,
.links li a.active::after {
    width: 100%;
}

.nav-btn {
    padding: 1em 2em;
    font-size: 0.9em;
}

.menu-toggle-container {
    display: none;
    align-items: center;
    gap: 0.5em;
    order: 1;
}

.menu-toggle {
    cursor: pointer;
    font-size: 1.5em;
    color: var(--text-color);
    padding: 0.5em;
    border-radius: 50%;
    transition: var(--transition);
}

.menu-toggle:hover {
    background: rgba(253, 193, 7, 0.1);
}

#menu-close {
    display: none;
    z-index: 1001;
    position: relative;
}

.nav-right.active {
    z-index: 1000;
}

.mode-toggle {
    cursor: pointer;
    font-size: 1.2em;
    color: var(--text-color);
    padding: 0.5em;
    border-radius: 50%;
    transition: var(--transition);
}

.mode-toggle:hover {
    background: rgba(253, 193, 7, 0.1);
}

/* Hero Section */
#hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    position: relative;
    z-index: 1;
}
#properties-hero, #about-hero {
    background: url('images/hero-main.jpg') no-repeat center center/cover;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    position: relative;
    z-index: 1;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-container {
    text-align: center;
    color: #ffffff;
    max-width: 900px;
    position: relative;
    z-index: 2;
    padding: 2em;
}
/* Hero Text Animation */
.hero-title, .hero-text, .hero-btn {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease; 
}

.hero-title.visible, .hero-text.visible, .hero-btn.visible {
    opacity: 1;
    transform: translateY(0);
    animation: heroFadeIn 0.8s ease-out forwards;
}

.hero-title {
    animation-delay: 0.2s;
}

.hero-text {
    animation-delay: 0.4s;
}

.hero-btn {
    animation-delay: 0.6s;
}

.header {
    font-size: clamp(2em, 6vw, 3.5em);
    font-weight: 900;
    margin-bottom: 0.5em;
    line-height: 1.2;
}

.hero-text {
    font-size: clamp(1em, 2.5vw, 1.3em);
    margin-bottom: 1.5em;
    line-height: 1.6;
    opacity: 0.95;
}

.hero-btn {
    padding: 1em 2em;
    font-size: 1.1em;
    margin-top: 1em;
}

/* Location Filter Section */
#location-filter, #properties-filter {
    padding: 3em 5%;
    background: var(--card-bg);
}

.filter-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.filter-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5em;
    margin: 2em 0;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.filter-group label {
    font-weight: 500;
    margin-bottom: 0.5em;
    color: var(--text-color);
}

.filter-select {
    background: var(--background);
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 12px;
    font-size: 1em;
    color: var(--text-color);
    cursor: pointer;
}

.filter-btn {
    padding: 12px 24px;
    align-self: end;
    height: fit-content;
}

.filter-results {
    margin-top: 2em;
}

.results-count {
    font-weight: 500;
    margin-bottom: 1em;
    color: var(--secondary-color);
}

.filtered-properties {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2em;
}

/* About Section */
#about, #our-story, #mission-vision {
    padding: 4em 5%;
}

.about-container, .story-container, .mission-vision-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.section-header {
    font-size: clamp(1.8em, 5vw, 2.5em);
    font-weight: 600;
    background: var(--gradient);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: 0.5em;
    font-family: 'Exo 2', sans-serif;
}

.section-text {
    font-size: clamp(0.9em, 2.5vw, 1.1em);
    margin-bottom: 2em;
    line-height: 1.7;
}

.ceo-profile {
    display: flex;
    align-items: center;
    gap: 2em;
    margin: 2em 0;
    flex-wrap: wrap;
    justify-content: center;
}

.ceo-image {
    width: 200px;
    height: 200px;
    background-size: cover;
    background-position: center;
    border-radius: 50%;
    box-shadow: var(--shadow);
    flex-shrink: 0;
}

.ceo-info {
    text-align: left;
    max-width: 400px;
}

.ceo-info h3 {
    font-size: 1.5em;
    color: var(--secondary-color);
    margin-bottom: 0.3em;
}

.ceo-info p {
    font-size: 0.9em;
}

.ceo-text {
    margin-top: 0.5em;
    opacity: 0.8;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2em;
    margin-top: 2em;
}

.stat-box {
    background: var(--card-bg);
    padding: 2em 1.5em;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(253, 193, 7, 0.1);
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.stat-box h3 {
    font-size: 2.5em;
    color: var(--secondary-color);
    margin-bottom: 0.3em;
    font-weight: 700;
}

.stat-box p {
    font-size: 1em;
    font-weight: 500;
}

#available-rentals, #all-properties {
    padding: 4em 5%;
    background: var(--background);
}

.rentals-container, .properties-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.rental-grid, .property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2em;
    margin-top: 2em;
}

.rental-card, .property-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(253, 193, 7, 0.1);
}

.rental-card:hover, .property-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.rental-image, .property-image {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.rental-card h3, .property-card h3 {
    font-size: 1.3em;
    margin: 1em;
    color: var(--primary-color);
    font-weight: 600;
}

.rental-card p, .property-card p {
    font-size: 0.95em;
    margin-bottom: 1em;
    color: var(--text-color);
    opacity: 0.8;
    padding: 0 1em;
}

.property-desc {
    padding: 0 1em;
    margin-bottom: 1.5em;
    font-style: italic;
}

.rental-btn, .property-btn {
    display: block;
    margin: 1.5em auto;
    padding: 0.7em 1.5em;
    width: 80%;
}

.more-btn {
    margin: 3em auto 1em;
    padding: 1em 2em;
    font-size: 1.1em;
}

/* Team Section */
#team {
    padding: 4em 5%;
    background: var(--card-bg);
}

.team-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2em;
    margin-top: 2em;
}

.team-card {
    background: var(--background);
    padding: 2em 1.5em;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(253, 193, 7, 0.1);
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.team-image {
    width: 150px;
    height: 150px;
    background-size: cover;
    background-position: center;
    border-radius: 50%;
    margin: 0 auto 1em;
    border: 3px solid var(--secondary-color);
}

.team-card h3 {
    font-size: 1.3em;
    color: var(--secondary-color);
    margin-bottom: 0.3em;
    font-weight: 600;
}

.team-card p {
    font-size: 0.95em;
}

.team-text {
    margin-top: 0.5em;
    opacity: 0.8;
    font-style: italic;
}

/* Mission & Vision Section */
#mission-vision {
    background: var(--background);
}

.mission-vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2em;
    margin-top: 2em;
}

.mission-card, .vision-card {
    background: var(--card-bg);
    padding: 2em;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(253, 193, 7, 0.1);
}

.mission-card:hover, .vision-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.mission-card h3, .vision-card h3 {
    font-size: 1.5em;
    color: var(--secondary-color);
    margin-bottom: 1em;
    font-weight: 600;
}

/* Partners Section with Carousel */
#partners {
    padding: 4em 5%;
    background: var(--card-bg);
    overflow: hidden;
}

.partners-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.partner-carousel {
    overflow: hidden;
    margin-top: 2em;
    position: relative;
}

.partner-track {
    display: flex;
    animation: marquee 20s linear infinite;
    gap: 3em;
}

.partner-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 200px;
    text-align: center;
}

.partner-img {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.partner-logo span {
    margin-top: 0.5em;
    font-weight: 500;
    color: var(--text-color);
}

/* Testimonials Section */
#testimonials {
    padding: 4em 5%;
    background: var(--background);
}

.testimonials-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2em;
    margin-top: 2em;
}

.testimonial-card {
    background: var(--card-bg);
    padding: 2em;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(253, 193, 7, 0.1);
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.testimonial-card::before {
    content: '"';
    font-size: 4em;
    color: var(--secondary-color);
    position: absolute;
    top: -0.2em;
    left: 0.3em;
    font-family: serif;
}

.testimonial-card p {
    font-size: 1em;
    margin-bottom: 1.5em;
    font-style: italic;
    line-height: 1.6;
}

.testimonial-card h4 {
    font-size: 1.1em;
    color: var(--secondary-color);
    margin-bottom: 0.3em;
    font-weight: 600;
}

.testimonial-card span {
    font-size: 0.9em;
    opacity: 0.7;
}

/* Contact CTA Section */
#contact-cta {
    padding: 4em 5%;
    background: var(--card-bg);
    text-align: center;
}

.cta-container {
    max-width: 600px;
    margin: 0 auto;
}

.cta-btn {
    padding: 1em 2em;
    font-size: 1.1em;
    margin-top: 1em;
}

/* Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    transition: opacity 0.3s ease;
}

.chat-widget.hidden {
    opacity: 0;
    pointer-events: none;
}

.chat-toggle {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    font-size: 1.5em;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    animation: chatGlow 2s ease-in-out infinite;
}

.chat-toggle:hover {
    transform: scale(1.1);
}

.chat-container {
    display: none;
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 350px;
    height: 450px;
    background: var(--card-bg);
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    flex-direction: column;
    border: 1px solid rgba(253, 193, 7, 0.2);
    z-index: 4000;
}

.chat-container.active {
    display: flex;
    pointer-events: auto; 
}

.chat-header {
    background: var(--gradient);
    color: white;
    padding: 1em;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h4 {
    margin: 0;
    font-weight: 600;
}

.chat-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.2em;
    cursor: pointer;
    padding: 0.2em;
    border-radius: 50%;
    transition: var(--transition);
}

.chat-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.chat-messages {
    flex: 1;
    padding: 1em;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.message {
    max-width: 80%;
    padding: 0.8em 1em;
    border-radius: 15px;
    line-height: 1.4;
}

.bot-message {
    background: #f0f0f0;
    align-self: flex-start;
    color: #333;
}

.user-message {
    background: var(--gradient);
    color: white;
    align-self: flex-end;
}

.chat-input-container {
    padding: 1em;
    border-top: 1px solid #eee;
    display: flex;
    gap: 0.5em;
}

.chat-input-container input {
    flex: 1;
    padding: 0.8em;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
    font-size: 0.9em;
    touch-action: auto; 
}

.chat-input-container button {
    background: var(--gradient);
    border: none;
    color: white;
    padding: 0.8em 1em;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.chat-input-container button:hover {
    transform: scale(1.1);
}

.chat-btn.small {
    font-size: 14px;
    padding: 6px 12px;
    line-height: 1.5;
    display: inline-block;
    margin: 5px;
}

#chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    transition: opacity 0.3s ease;
}

#chat-widget.hidden {
    opacity: 0;
    pointer-events: none;
}

.chat-container.active {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 1000;
}

/* Form Styles */
#contact-form, #rental-application {
    padding: 4em 5%;
    background: var(--background);
}

.form-side {
    max-width: 800px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 3em;
    border-radius: 15px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(253, 193, 7, 0.1);
}

.contact-intro {
    font-size: 1.1em;
    margin-bottom: 2em;
    text-align: center;
    color: var(--text-color);
    opacity: 0.8;
}

.form-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5em;
    margin-bottom: 2em;
}

.input-box {
    display: flex;
    flex-direction: column;
}

.input-box.full-width {
    grid-column: 1 / -1;
}

.input-box label {
    font-weight: 500;
    margin-bottom: 0.5em;
    color: var(--text-color);
}

.required {
    color: #ff4444;
}

.input-box input,
.input-box select,
.input-box textarea {
    background: var(--background);
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 12px;
    font-size: 1em;
    color: var(--text-color);
    transition: var(--transition);
}

.input-box input.error,
.input-box select.error,
.input-box textarea.error {
    border-color: #ff4444;
    background-color: rgba(255, 68, 68, 0.1);
}

.terms-text {
    font-size: 0.85em;
    color: var(--text-color);
    opacity: 0.7;
    line-height: 1.5;
    margin-bottom: 1.5em;
    text-align: justify;
}

.form-actions {
    text-align: center;
}

.form-feedback {
    margin-top: 1em;
    text-align: center;
    display: none;
}

.form-feedback.show {
    display: block;
}

.success-message {
    color: #28a745;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
}

.success-message.show {
    display: flex;
}

.error-message {
    color: #dc3545;
    display: none;
}

.error-message.show {
    display: block;
}

/* Footer */
footer {
    background: var(--primary-color);
    color: #ffffff;
    padding: 3em 5% 1em;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2em;
}

body.dark-mode footer {
    background: #0a0a0a;
}

.col-left, .col-right {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.col-box {
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.col-box i {
    font-size: 1.2em;
    color: var(--secondary-color);
}

.social-icons {
    display: flex;
    gap: 1em;
}

.social-icons a {
    color: #ffffff;
    font-size: 1.5em;
    transition: var(--transition);
}

.social-icons a:hover {
    color: var(--secondary-color);
    transform: scale(1.2);
}

.copyright {
    width: 100%;
    text-align: center;
    margin-top: 2em;
    padding-top: 2em;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0.7;
}

/* Toast Notification */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--card-bg);
    color: var(--text-color);
    padding: 1em 1.5em;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    border-left: 4px solid var(--secondary-color);
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    border-left-color: #28a745;
}

.toast.error {
    border-left-color: #dc3545;
}

.toast.hidden {
    display: none;
}

/* Loading Animation */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.house-loader {
    width: 100px;
    height: 100px;
}

.house-path {
    fill: none;
    stroke: url(#gradient);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    animation: drawHouse 2s ease-in-out infinite;
}

.bubble {
    fill: url(#gradient);
    animation: bubbleFloat 1.5s ease-in-out infinite;
}

.bubble:nth-child(3) { animation-delay: 0.2s; }
.bubble:nth-child(4) { animation-delay: 0.4s; }
.bubble:nth-child(5) { animation-delay: 0.6s; }
.bubble:nth-child(6) { animation-delay: 0.8s; }
.bubble:nth-child(7) { animation-delay: 1s; }

/* Visibility Classes */
.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.mobile-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.mobile-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Chat Typing Indicator */
.typing-dots {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--secondary-color);
    animation: typingPulse 1.4s infinite;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

/* Chat Notification Badge */
.chat-notification {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #FF4444;
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7em;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1em 4%;
    }

    .menu-toggle-container {
        display: flex;
        order: 1;
    }

    .logo {
        order: 2;
        flex: 1;
        text-align: center;
        font-size: 1.4em;
    }

    .nav-right {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--card-bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease;
        z-index: 999;
        pointer-events: auto;
    }

    .nav-right.active {
        right: 0;
    }

    .links {
        flex-direction: column;
        gap: 2em;
        text-align: center;
        margin-bottom: 2em;
    }

    .links li a {
        font-size: 1.2em;
        font-weight: 600;
    }

    .nav-btn {
        padding: 1em 2em;
        font-size: 1.1em;
        margin-bottom: 2em;
    }

    .mobile-get-started {
        display: block !important;
        order: 3;
        padding: 0.7em 1.2em;
        font-size: 0.9em;
        background: var(--gradient);
        color: white;
        text-decoration: none;
        border-radius: 25px;
        font-weight: 600;
        transition: var(--transition);
        white-space: nowrap;
    }

    .mobile-get-started:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow);
    }

    .nav-right .nav-btn {
        display: none;
    }

    .hero-container {
        padding: 1em;
        max-width: 100%;
    }

    .header {
        font-size: clamp(1.8em, 8vw, 2.5em);
    }

    .hero-text {
        font-size: clamp(0.9em, 3vw, 1.1em);
    }

    .hero-btn {
        padding: 0.8em 1.5em;
        font-size: 1em;
    }

    #hero .hero-video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease, opacity 0.5s ease;
    }

    #hero .hero-video.shrink {
        transform: scale(0.9);
        opacity: 0.7;
    }

    #hero .scroll-arrow {
        position: absolute !important;
        bottom: -90px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 1rem;
        color: var(--primary-text, #ffffff);
        width: 28px;
        height: 28px;
        display: flex !important;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        box-shadow: 0 0 6px rgba(255, 255, 255, 0.4), 0 0 10px rgba(255, 255, 255, 0.2);
        animation: bounce 2s infinite ease-in-out !important;
        transition: all 0.3s ease;
        z-index: 15;
    }

    #hero .scroll-arrow:hover {
        box-shadow: 0 0 8px rgba(255, 255, 255, 0.6), 0 0 12px rgba(255, 255, 255, 0.3);
        color: var(--accent-color);
    }

    #hero .hero-title, #hero .hero-text, #hero .hero-btn {
        opacity: 0;
        transform: translateY(20px);
        animation: heroFadeIn 0.8s ease-out forwards;
    }

    #hero .hero-title {
        animation-delay: 0.2s;
    }

    #hero .hero-text {
        animation-delay: 0.4s;
    }

    #hero .hero-btn {
        animation-delay: 0.6s;
    }

    .filter-controls {
        grid-template-columns: 1fr;
        gap: 1em;
    }

    .filter-btn {
        align-self: stretch;
    }

    .rental-grid, .property-grid {
        grid-template-columns: 1fr;
        gap: 1.5em;
    }

    .ceo-profile {
        flex-direction: column;
        text-align: center;
    }

    .ceo-info {
        text-align: center;
    }

    .form-container {
        grid-template-columns: 1fr;
        gap: 1em;
    }

    .form-side {
        padding: 2em 1.5em;
    }

    .chat-container {
        width: 90vw; 
        height: 70vh; 
        max-height: 400px;
        z-index: 5100; 
    }
    footer {
        flex-direction: column;
        text-align: center;
    }

    .col-left, .col-right {
        align-items: center;
    }

    .social-icons {
        justify-content: center;
    }

    .toast {
        right: 10px;
        left: 10px;
        transform: translateY(-100px);
    }

    .toast.show {
        transform: translateY(0);
    }

    .property-card {
        display: block !important;
    }

    .luxury {
        margin-top: 30px; 
        padding: 1rem;
    }

    .luxury p {
        font-size: 18px;
        text-align: center;
        color: #333333; 
    }

    body.dark-mode .luxury p {
        color: #ffffff; 
    }

    .image-box {
        width: 300px;
        height: 500px;
    }

    .luxury h1 {
        font-size: 50px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .menu-toggle-container {
        display: flex;
    }

    .nav-right {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--card-bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease;
        z-index: 999;
        pointer-events: auto;
    }

    .nav-right.active {
        right: 0;
    }

    .mobile-get-started {
        display: block !important;
    }

    .nav-right .nav-btn {
        display: none;
    }

    .hero-container {
        padding: 1.5em;
        max-width: 100%;
    }

    .header {
        font-size: clamp(1.9em, 7vw, 2.8em);
    }

    .hero-text {
        font-size: clamp(0.95em, 2.8vw, 1.2em);
    }

    .hero-btn {
        padding: 0.9em 1.8em;
        font-size: 1.05em;
    }

    #hero .hero-video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease, opacity 0.5s ease;
    }

    #hero .hero-video.shrink {
        transform: scale(0.85);
        opacity: 0.6;
    }

    #hero .scroll-arrow {
        position: absolute !important;
        bottom: -90px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 1.1rem;
        color: var(--primary-text, #ffffff);
        width: 30px;
        height: 30px;
        display: flex !important;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        box-shadow: 0 0 7px rgba(255, 255, 255, 0.45), 0 0 11px rgba(255, 255, 255, 0.25);
        animation: bounce 2s infinite ease-in-out !important;
        transition: all 0.3s ease;
        z-index: 15;
    }

    #hero .scroll-arrow:hover {
        box-shadow: 0 0 9px rgba(255, 255, 255, 0.65), 0 0 13px rgba(255, 255, 255, 0.35);
        color: var(--accent-color);
    }

    #hero .hero-title, #hero .hero-text, #hero .hero-btn {
        opacity: 0;
        transform: translateY(20px);
        animation: heroFadeIn 0.8s ease-out forwards;
    }

    #hero .hero-title {
        animation-delay: 0.2s;
    }

    #hero .hero-text {
        animation-delay: 0.4s;
    }

    #hero .hero-btn {
        animation-delay: 0.6s;
    }
}

@media (min-width: 1025px) {
    .mode-toggle {
        cursor: pointer;
        font-size: 1.2rem;
        color: var(--primary-text);
        transition: all 0.3s ease;
        box-shadow: 0 0 8px rgba(255, 255, 255, 0.5), 0 0 12px rgba(255, 255, 255, 0.3);
        border-radius: 50%;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        line-height: 1;
    }

    .mode-toggle:hover {
        color: var(--accent-color);
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.7), 0 0 15px rgba(255, 255, 255, 0.4);
    }

    #hero .scroll-arrow {
        position: absolute !important;
        bottom: -90px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 1.2rem;
        color: var(--primary-text, #ffffff);
        width: 32px;
        height: 32px;
        display: flex !important;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        box-shadow: 0 0 8px rgba(255, 255, 255, 0.5), 0 0 12px rgba(255, 255, 255, 0.3);
        animation: bounce 2s infinite ease-in-out !important;
        transition: all 0.3s ease;
        z-index: 15;
    }

    #hero .scroll-arrow:hover {
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.7), 0 0 15px rgba(255, 255, 255, 0.4);
        color: var(--accent-color);
    }

    .hero-container {
        padding: 2em;
        max-width: 900px;
    }

    #hero .hero-video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease, opacity 0.5s ease;
    }

    #hero .hero-video.shrink {
        transform: scale(0.8);
        opacity: 0.5;
    }

    #hero .hero-title, #hero .hero-text, #hero .hero-btn {
        opacity: 0;
        transform: translateY(20px);
        animation: heroFadeIn 0.8s ease-out forwards;
    }

    #hero .hero-title {
        animation-delay: 0.2s;
    }

    #hero .hero-text {
        animation-delay: 0.4s;
    }

    #hero .hero-btn {
        animation-delay: 0.6s;
    }
}

/* Hide mobile get started button on desktop */
@media (min-width: 769px) {
    .mobile-get-started {
        display: none !important;
    }
}

/* Add to existing CSS */
@media (max-width: 768px) {
    .autoBlur {
        animation: none !important;
    }
    #hero {
        min-height: 80vh !important;
        opacity: 1 !important;
        display: flex !important;
        visibility: visible !important;
        position: relative !important;
        filter: none !important;
    }
    .hero-video {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        z-index: 0 !important;
        filter: none !important;
    }
    .hero-container, .hero-title, .hero-text, .hero-btn {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
        z-index: 2 !important;
        filter: none !important;
        position: relative !important;
    }
    .hero-container {
        padding: 1em !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
    }
}
