/* Enhanced Base Styles with Modern Luxury Theme */
:root {
    /* Refined luxury color palette */
    --primary-color: #1e293b;
    /* Dark blue-slate for primary elements */
    --secondary-color: #475569;
    /* Medium slate for secondary elements */
    --accent-color: #f59e0b;
    /* Amber for accents and highlights */
    --accent-secondary: #0ea5e9;
    /* Sky blue as secondary accent */
    --light-color: #f8fafc;
    /* Off-white for light backgrounds */
    --dark-color: #0f172a;
    /* Darker slate for footers, etc. */
    --text-color: #334155;
    /* Slate for main text */
    --text-light: #64748b;
    /* Light slate for secondary text */
    --white: #ffffff;
    --black: #0f172a;

    /* Modern, premium font stack */
    --font-primary: 'Cormorant Garamond', 'Playfair Display', serif;
    --font-secondary: 'Outfit', 'Inter', sans-serif;

    /* Effects */
    --transition: all 0.3s ease;
    --box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
    --box-shadow-hover: 0 10px 30px rgba(15, 23, 42, 0.12);
    --border-radius: 8px;
    --border-radius-large: 12px;
}

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

html {
    -webkit-text-size-adjust: 100%;
    /* Prevent text scaling */
}

body {
    font-family: var(--font-secondary);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--light-color);
    font-size: 16px;
    /* Base font size for better readability */
    position: relative;
    width: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-primary);
    font-weight: 500;
    line-height: 1.2;
    color: var(--primary-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    cursor: pointer;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius);
}

.container {
    width: 90%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 15px;
}

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

.section {
    padding: 100px 0;
}

.section-title {
    font-size: 3rem;
    /* Increased for better visibility */
    margin-bottom: 60px;
    position: relative;
    text-align: center;
    color: var(--primary-color);
    font-weight: 400;
    letter-spacing: 0.5px;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    /* Slightly wider for better visual impact */
    height: 3px;
    /* Thicker for better visibility */
    background-color: var(--accent-color);
    margin: 18px auto;
}

.bg-light {
    background-color: var(--light-color);
}

.bg-dark {
    background-color: var(--dark-color);
    color: var(--white);
}

/* Enhanced Modern Button Styles */
.btn {
    display: inline-block;
    padding: 14px 30px;
    /* Larger buttons */
    font-family: var(--font-secondary);
    font-weight: 500;
    font-size: 1rem;
    /* Increased font size */
    letter-spacing: 0.5px;
    border-radius: var(--border-radius);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-align: center;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

.btn-primary:hover {
    background-color: #e59000;
    box-shadow: 0 6px 15px rgba(245, 158, 11, 0.35);
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: var(--accent-secondary);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.25);
}

.btn-secondary:hover {
    background-color: #0284c7;
    box-shadow: 0 6px 15px rgba(14, 165, 233, 0.35);
    transform: translateY(-3px);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    box-shadow: none;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 6px 15px rgba(15, 23, 42, 0.15);
    transform: translateY(-3px);
}

.btn-outline-light {
    background-color: transparent;
    color: var(--white);
    border: 1px solid var(--white);
    box-shadow: none;
}

.btn-outline-light:hover {
    background-color: var(--white);
    color: var(--primary-color);
    box-shadow: 0 6px 15px rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

/* Enhanced Hero & Navigation */
.hero {
    height: 100vh;
    min-height: 600px;
    background: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.7)), url('2.jpg') no-repeat center center/cover;
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    background-attachment: fixed;
    /* Parallax effect */
}

.property-hero {
    height: 70vh;
    min-height: 500px;
}

.navbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: all 0.4s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 5%;
    background-color: transparent;
}

.navbar.scrolled {
    background-color: var(--white);
    padding: 15px 5%;
    position: fixed;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.1);
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    /* Fix for position:fixed on iOS */
}

.navbar.scrolled .logo,
.navbar.scrolled .nav-links a {
    color: var(--primary-color);
}

.logo-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    /* Added cursor pointer */
}

.logo-icon {
    font-size: 2rem;
    /* Increased for better visibility */
    color: var(--accent-color);
    margin-right: 12px;
    transition: var(--transition);
}

.logo-container:hover .logo-icon {
    transform: scale(1.1);
}

.logo {
    font-family: var(--font-primary);
    font-size: 2rem;
    /* Increased for better visibility */
    font-weight: 500;
    color: var(--white);
    letter-spacing: 1px;
    transition: var(--transition);
}

.logo span {
    font-size: 2rem;
    color: var(--accent-color);
    transition: var(--transition);
}

.logo-container:hover .logo span {
    color: var(--white);
}

.navbar.scrolled .logo-container:hover .logo span {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links li {
    margin-left: 35px;
}

.nav-links a {
    color: var(--white);
    font-weight: 500;
    font-size: 1.05rem;
    /* Increased for better visibility */
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    /* Moved down slightly */
    left: 0;
    width: 0;
    height: 2px;
    /* Thicker underline */
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

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

.nav-links a:hover::after {
    width: 100%;
}

/* Special styling for property links in nav */
.property-nav-link {
    color: var(--white);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}

.property-nav-link:hover {
    color: var(--accent-color) !important;
}

.property-nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.property-nav-link:hover::after {
    width: 100%;
}

.navbar.scrolled .property-nav-link {
    color: var(--primary-color);
    background-color: transparent;
}

.navbar.scrolled .property-nav-link:hover {
    background-color: transparent;
    color: var(--accent-color) !important;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .line {
    width: 28px;
    /* Slightly larger for better visibility */
    height: 2px;
    background-color: var(--white);
    margin: 6px 0;
    transition: var(--transition);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
    z-index: 10;
    animation: fadeIn 1.5s ease-out;
    /* Subtle animation */
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content h1 {
    font-size: 5rem;
    /* Increased for better visibility */
    margin-bottom: 20px;
    color: var(--white);
    font-weight: 400;
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    /* Added text shadow for better readability */
}

.subtitle {
    font-size: 1.5rem;
    /* Increased for better visibility */
    margin-bottom: 35px;
    opacity: 0.9;
    font-weight: 300;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    /* Added text shadow for better readability */
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

/* About Section */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    margin-bottom: 25px;
    /* Increased spacing between paragraphs */
    font-size: 1.2rem;
    /* Increased for better visibility */
    line-height: 1.8;
    color: var(--text-color);
}

/* Enhanced Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius-large);
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: all 0.4s ease;
    border: 1px solid rgba(15, 23, 42, 0.05);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background-color: var(--accent-color);
    transition: all 0.4s ease;
}

.service-card:hover::before {
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
    border-color: rgba(15, 23, 42, 0.1);
}

.service-icon {
    font-size: 3rem;
    /* Increased for better visibility */
    margin-bottom: 25px;
    color: var(--accent-color);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    color: var(--accent-secondary);
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.8rem;
    /* Increased for better visibility */
    font-weight: 500;
}

.service-card p {
    color: var(--text-light);
    font-size: 1.1rem;
    /* Increased for better visibility */
    line-height: 1.7;
}

/* Enhanced Gallery Styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.gallery-item {
    height: 350px;
    /* Slightly taller */
    background-size: cover;
    background-position: center;
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    transition: all 0.5s ease;
    box-shadow: var(--box-shadow);
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.2));
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 1;
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: var(--box-shadow-hover);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    /* Increased padding */
    color: var(--white);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 2;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
    opacity: 1;
}

.gallery-overlay h3 {
    margin-bottom: 10px;
    font-size: 1.6rem;
    /* Increased for better visibility */
    color: var(--white);
    font-weight: 500;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    /* Added for better readability */
}

.gallery-overlay::after {
    content: '→ View';
    display: inline-block;
    font-size: 1rem;
    /* Increased for better visibility */
    color: var(--accent-color);
    margin-top: 10px;
    font-family: var(--font-secondary);
    font-weight: 500;
}

/* Enhanced Properties Section */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.property-card {
    background-color: var(--white);
    border-radius: var(--border-radius-large);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: all 0.4s ease;
    border: 1px solid rgba(15, 23, 42, 0.05);
}

.property-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
    border-color: rgba(15, 23, 42, 0.1);
}

.property-image {
    height: 300px;
    /* Slightly taller */
    background-size: cover;
    background-position: center;
    transition: all 0.6s ease;
    position: relative;
}

.property-card:hover .property-image {
    transform: scale(1.05);
}

.property-content {
    padding: 35px;
    /* Increased padding */
}

.property-content h3 {
    margin-bottom: 15px;
    font-size: 2rem;
    /* Increased for better visibility */
    font-weight: 500;
}

.property-content p {
    margin-bottom: 25px;
    color: var(--text-light);
    line-height: 1.7;
    font-size: 1.1rem;
    /* Increased for better visibility */
}

/* Enhanced Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    margin-top: 50px;
}

.contact-info {
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.contact-info h3 {
    margin-bottom: 25px;
    font-size: 2rem;
    /* Increased for better visibility */
    font-weight: 500;
    text-align: left;
}

.contact-info h3::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 15px 0;
}

.contact-info p {
    margin-bottom: 15px;
    line-height: 1.7;
    font-size: 1.1rem;
    /* Increased for better visibility */
    display: flex;
    align-items: flex-start;
}

.contact-info p strong {
    display: inline-block;
    min-width: 80px;
    margin-right: 10px;
}

.social-links {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    margin-right: 25px;
    margin-bottom: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
    color: var(--text-light);
    font-size: 1.1rem;
}

.social-links a i {
    margin-right: 8px;
    color: var(--accent-color);
    font-size: 1.3rem;
}

.social-links a:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.contact-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: all 0.4s ease;
    border: 1px solid rgba(15, 23, 42, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
    border-color: rgba(15, 23, 42, 0.1);
}

.contact-icon {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: var(--accent-color);
    transition: all 0.3s ease;
}

.contact-card:hover .contact-icon {
    transform: scale(1.1);
    color: var(--accent-secondary);
}

.contact-card h4 {
    margin-bottom: 12px;
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--primary-color);
}

.contact-card p {
    margin-bottom: 20px;
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Button-Style Contact Buttons */
.contact-card a {
    display: inline-block;
    padding: 12px 20px;
    color: var(--white);
    font-size: 1rem;
    background-color: var(--accent-color);
    /* Amber button color */
    border-radius: 6px;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.25);
    border: none;
    font-weight: 500;
    text-decoration: none;
}

.contact-card a:hover {
    background-color: #e59000;
    /* Slightly darker on hover */
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(245, 158, 11, 0.35);
}

/* Email specific styling */
.contact-card:nth-child(1) a {
    background-color: var(--accent-color);
    /* Amber */
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.25);
}

.contact-card:nth-child(1) a:hover {
    background-color: #e59000;
    box-shadow: 0 6px 15px rgba(245, 158, 11, 0.35);
}

/* Call specific styling */
.contact-card:nth-child(2) a {
    background-color: var(--accent-secondary);
    /* Sky blue */
    box-shadow: 0 4px 10px rgba(14, 165, 233, 0.25);
}

.contact-card:nth-child(2) a:hover {
    background-color: #0284c7;
    box-shadow: 0 6px 15px rgba(14, 165, 233, 0.35);
}

/* WhatsApp specific styling */
.contact-card:nth-child(3) a {
    background-color: #10b981;
    /* Green (WhatsApp color) */
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.25);
}

.contact-card:nth-child(3) a:hover {
    background-color: #059669;
    box-shadow: 0 6px 15px rgba(16, 185, 129, 0.35);
}

/* Enhanced Property Pages Styles */
.property-description {
    padding: 100px 0;
}

.description-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 60px;
    align-items: center;
}

.description-content h2 {
    margin-bottom: 30px;
    text-align: left;
    font-size: 2.8rem;
    /* Increased for better visibility */
    font-weight: 500;
}

.description-content h2::after {
    margin-left: 0;
}

.description-content p {
    margin-bottom: 25px;
    /* Increased spacing */
    font-size: 1.2rem;
    /* Increased for better visibility */
    line-height: 1.8;
    color: var(--text-color);
}

.property-features {
    margin-top: 30px;
}

.property-features li {
    margin-bottom: 18px;
    /* Increased spacing */
    position: relative;
    padding-left: 35px;
    font-weight: 400;
    color: var(--text-color);
    font-size: 1.1rem;
    /* Increased for better visibility */
}

.feature-icon {
    color: var(--accent-color);
    position: absolute;
    left: 0;
    top: 3px;
    font-size: 1.2rem;
    /* Increased for better visibility */
}

.description-image {
    border-radius: var(--border-radius-large);
    overflow: hidden;
    box-shadow: var(--box-shadow-hover);
    position: relative;
}

.description-image img {
    display: block;
    width: 100%;
    height: auto;
    transition: all 0.5s ease;
}

.description-image:hover img {
    transform: scale(1.03);
}

.property-location {
    padding: 80px 0;
}

.location-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

.location-map {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    height: 100%;
}

.location-map iframe {
    border-radius: var(--border-radius);
}

.location-info h3 {
    margin-bottom: 20px;
    font-size: 1.8rem;
    /* Increased for better visibility */
    color: var(--primary-color);
    font-weight: 500;
}

.location-info p {
    margin-bottom: 25px;
    line-height: 1.8;
    color: var(--text-color);
    font-size: 1.1rem;
    /* Increased for better visibility */
}

.location-info i {
    color: var(--accent-color);
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* Enhanced Property CTA Section */
.property-cta {
    text-align: center;
    padding: 80px 0;
    background: linear-gradient(rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.9)), url('2.jpg') no-repeat center center/cover;
    background-attachment: fixed;
    /* Parallax effect */
}

.property-cta h2 {
    font-size: 3rem;
    /* Increased for better visibility */
    margin-bottom: 20px;
    color: var(--white);
    font-weight: 400;
}

.property-cta p {
    font-size: 1.3rem;
    /* Increased for better visibility */
    margin-bottom: 35px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
    color: var(--white);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Enhanced Footer */
.footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 70px 0 40px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.footer-logo-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    /* Added cursor pointer */
}

.footer-logo-icon {
    font-size: 1.8rem;
    color: var(--accent-color);
    margin-right: 12px;
    transition: var(--transition);
}

.footer-logo-container:hover .footer-logo-icon {
    transform: scale(1.1);
}

.footer-logo {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 500;
    letter-spacing: 1px;
}

.footer-logo span {
    color: var(--accent-color);
    transition: var(--transition);
}

.footer-logo-container:hover .footer-logo span {
    color: var(--white);
}

.footer-info {
    text-align: right;
}

.footer p {
    opacity: 0.8;
    margin-bottom: 20px;
    font-size: 1rem;
    /* Increased for better visibility */
}

.footer-links {
    display: flex;
    gap: 25px;
    justify-content: flex-end;
}

.footer-links a {
    color: var(--white);
    opacity: 0.8;
    font-size: 1rem;
    /* Increased for better visibility */
}

.footer-links a:hover {
    color: var(--accent-color);
    opacity: 1;
}

/* Enhanced Modal Styles */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-content {
    max-width: 90%;
    position: relative;
    transform: scale(0.95);
    transition: all 0.3s ease;
}

.modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: var(--white);
    font-size: 40px;
    /* Increased for better visibility */
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: var(--accent-color);
    transform: rotate(90deg);
}

.modal-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.modal-content p {
    color: var(--white);
    text-align: center;
    padding: 20px 0;
    font-family: var(--font-primary);
    font-size: 1.6rem;
    /* Increased for better visibility */
}

/* Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

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

/* Section reveal animations */
.section-hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease;
}

.section-revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced modal navigation */
.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-nav:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

.modal-prev {
    left: -80px;
}

.modal-next {
    right: -80px;
}

.modal-nav i {
    font-size: 24px;
}

/* New Feature: Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--accent-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 99;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.back-to-top.visible {
    opacity: 1;
}

.back-to-top:hover {
    background-color: var(--accent-secondary);
    transform: translateY(-5px);
}

/* Mobile Optimizations */
/* Mobile Optimizations - STRICT MODE */
@media screen and (max-width: 1024px) {
    .container {
        width: 100%;
        padding: 0 20px;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }

    .section-title {
        font-size: 2.5rem;
    }
}

@media screen and (max-width: 768px) {

    /* Global Resets for Mobile */
    html,
    body {
        overflow-x: hidden;
        width: 100%;
        position: relative;
    }

    .section {
        padding: 60px 0;
    }

    /* Navigation Drawer */
    .navbar {
        padding: 15px 20px;
        background-color: var(--white);
        /* Always solid white on mobile for visibility */
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .navbar .logo {
        color: var(--primary-color);
    }

    .navbar .logo span {
        color: var(--accent-color);
    }

    .hamburger {
        display: block;
        z-index: 1001;
        /* Above overlay */
        cursor: pointer;
    }

    .hamburger .line {
        background-color: var(--primary-color);
        width: 25px;
        height: 3px;
        margin: 5px 0;
        transition: all 0.3s ease;
    }

    /* Hamburger Animation */
    .hamburger.active .line:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

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

    .hamburger.active .line:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 80%;
        /* Drawer width */
        max-width: 300px;
        background-color: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 100px;
        transition: right 0.4s ease;
        z-index: 1000;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

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

    .nav-links li {
        width: 100%;
        margin: 0;
        text-align: center;
        opacity: 0;
        /* Fade in effect */
        animation: navLinkFade 0.5s ease forwards 0.3s;
    }

    @keyframes navLinkFade {
        from {
            opacity: 0;
            transform: translateX(50px);
        }

        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    .nav-links a {
        color: var(--primary-color);
        font-size: 1.2rem;
        padding: 20px 0;
        display: block;
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    /* Force Single Column Grids */
    /* Horizontal Sliding Cards */
    .services-grid,
    .properties-grid {
        display: flex !important;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 20px;
        padding-bottom: 20px;
        /* Space for scrollbar */
        -webkit-overflow-scrolling: touch;
        width: 100%;
    }

    /* Force other grids to stay stacked if needed */
    .gallery-grid,
    .contact-grid,
    .location-grid,
    .description-grid,
    .room-details-grid,
    .contact-methods {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }

    .service-card,
    .property-card,
    .room-card {
        min-width: 260px;
        /* Reduced width for better carousel feel */
        max-width: 260px;
        /* Ensure consistency */
        flex: 0 0 auto;
        scroll-snap-align: center;
        margin-bottom: 0;
        margin-right: 15px;
        /* Add explicit gap for visual separation */
    }

    .grid {
        /* Fallback for inline styles */
        grid-template-columns: 1fr !important;
    }

    /* Typography Adjustments */
    .hero-content h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .subtitle {
        font-size: 1.1rem;
        padding: 0 10px;
    }

    .section-title {
        font-size: 2rem;
    }

    /* Component Adjustments */
    .property-image,
    .description-image img,
    .gallery-item {
        width: 100%;
        height: auto;
        min-height: 160px;
        /* Reduced specific valid height for carousel */
        max-height: 180px;
        /* Prevent it from getting too tall */
        object-fit: cover;
    }

    .service-card,
    .contact-card,
    .property-content {
        padding: 20px 15px;
        /* Tighter padding */
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cta-buttons .btn {
        width: 100%;
        margin-bottom: 15px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
        margin-top: 20px;
        flex-wrap: wrap;
    }

    /* Table Responsive Wrapper */
    .overflow-x-auto {
        max-width: 100vw;
        overflow-x: scroll;
        -webkit-overflow-scrolling: touch;
    }

    /* Contact Form on Mobile */
    .contact-form-container,
    .contact-info {
        padding: 20px !important;
    }

    .contact-info p {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        margin-bottom: 20px;
        line-height: 1.6;
    }

    .contact-info p strong {
        display: block;
        margin-bottom: 5px;
        color: var(--primary-color);
        font-size: 1.1rem;
    }
}

@media screen and (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .btn {
        padding: 12px 20px;
        width: 100%;
    }
}