/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    line-height: 1.6;
    background-color: #fdfdfd;
    color: #333;
}

/* Header styles */
header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    /* transparent by default so hero image shows through */
    background: transparent;
    color: #fff;
}

/* Solid header used on pages without hero section */
header.solid {
    position: relative;
    background-color: #0f172a;
}

/* Flex container for header content */
.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Mobile menu icon (hamburger). Hidden by default on larger screens. */
/* Updated sizing and styling for improved visibility on mobile */
.menu-icon {
    display: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    margin-left: 15px;
    width: 40px;
    height: 40px;
    /* Prepare for column layout when the menu icon is visible on mobile.  The flex
       properties will take effect once display: flex is applied via media query. */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: rgba(15, 23, 42, 0.8);
    border-radius: 6px;
    position: relative;
    z-index: 1002;
}

/* Individual dots within the mobile menu icon */
.menu-icon .dot {
    display: block;
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    margin: 2px 0;
}

/* Responsive navigation */
/* Mobile styles: when the viewport is narrow (≤768px), hide the nav menu and show the hamburger icon */
@media (max-width: 768px) {
    /* Hide navigation container (nav-menu) by default */
    header .nav-menu {
        display: none;
        position: absolute;
        top: 65px;
        right: 20px;
        background-color: #0f172a;
        width: 200px;
        border-radius: 8px;
        padding: 15px 20px;
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
        z-index: 1001;
    }
    /* When nav menu has the active class, display it */
    header .nav-menu.active {
        display: block;
    }
    /* Stack menu items vertically */
    header .nav-menu ul {
        display: flex;
        flex-direction: column;
    }
    header .nav-menu ul li {
        margin: 10px 0;
    }
    /* Show the call-now button on mobile with smaller styling */
    header .call-now {
        display: inline-block;
        font-size: 0.75rem;
        padding: 6px 10px;
        /* push the call button to the right side but leave space before the menu icon */
        margin-left: auto;
        margin-right: 10px;
    }
    /* Show the menu icon on mobile. Use flex column layout to display dots vertically */
    header .menu-icon {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
}

/* Ensure iframe in video grid is responsive */
.video-grid iframe {
    width: 100%;
    border-radius: 5px;
    aspect-ratio: 16/9;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

nav ul li {
    margin: 0 15px;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    padding: 8px 10px;
    border-radius: 4px;
}

nav a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Call Now button within header */
.call-now {
    background-color: #2563EB;
    color: #fff !important;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.call-now:hover {
    background-color: #1e40af;
}

/* Hero Section */

/* Hero section with Ken Burns-style zoom effect */
.hero {
    background: url('../images/temple.jpg') no-repeat center center/cover;
    height: 75vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
    overflow: hidden;
}

/* subtle zoom animation for hero background */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    background-size: cover;
    z-index: -2;
    animation: zoomIn 20s infinite alternate;
}

/* dark gradient overlay to enhance text readability */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.6) 0%, rgba(15, 23, 42, 0.8) 100%);
    z-index: -1;
}

@keyframes zoomIn {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}


.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Button styles */
.btn {
    display: inline-block;
    background-color: #2563EB;
    color: #fff;
    padding: 12px 30px;
    border-radius: 6px;
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease;
    margin: 5px;
    font-weight: 600;
}

.btn:hover {
    background-color: #1e40af;
    transform: translateY(-3px);
}

/* Sections */
section {
    padding: 60px 0;
}

section h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.2rem;
    color: #0f172a;
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.service-card {
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    width: 100%;
    max-width: 340px;
    text-align: center;
    padding: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 5px 5px 0 0;
    margin-bottom: 15px;
}

.service-card h3 {
    margin-bottom: 12px;
    font-size: 1.4rem;
    color: #0f172a;
}

.service-card p {
    font-size: 0.95rem;
    color: #555;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-grid img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

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

/* Features section below hero */
#features {
    background-color: #f8fafc;
    padding: 40px 0;
}

#features .feature-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

#features .feature {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    width: 280px;
    text-align: center;
    padding: 30px 20px;
    transition: transform 0.3s ease;
}

#features .feature:hover {
    transform: translateY(-5px);
}

#features .feature i {
    font-size: 2.5rem;
    color: #2563EB;
    margin-bottom: 15px;
}

#features .feature h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #0f172a;
}

#features .feature p {
    font-size: 0.9rem;
    color: #555;
}

/* Video Gallery */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 30px;
    justify-content: center;
}

.video-grid video {
    width: 100%;
    border-radius: 5px;
}

/* Property categories grid inspired by travel cards */
#property-categories {
    background-color: #f8fafc;
    padding: 60px 0;
}

#property-categories .categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

#property-categories .category-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    height: 300px;
    cursor: pointer;
}

#property-categories .category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

#property-categories .category-card:hover img {
    transform: scale(1.08);
}

#property-categories .card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(15,23,42,0.8) 0%, rgba(15,23,42,0.1) 100%);
    color: #fff;
    transition: background 0.3s ease;
}

#property-categories .category-card:hover .card-overlay {
    background: linear-gradient(to top, rgba(37,99,235,0.9) 0%, rgba(37,99,235,0.2) 100%);
}

#property-categories .card-overlay h3 {
    margin-bottom: 5px;
    font-size: 1.3rem;
}

#property-categories .card-overlay p {
    font-size: 0.9rem;
    margin-bottom: 10px;
}

#property-categories .card-overlay a {
    display: inline-block;
    padding: 6px 15px;
    background-color: #fff;
    color: #2563EB;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

#property-categories .card-overlay a:hover {
    background-color: #2563EB;
    color: #fff;
}

/* Contact Section */
.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    margin-bottom: 40px;
}

.contact-info div {
    flex: 1;
    min-width: 250px;
}

form {
    max-width: 600px;
    margin: auto;
}

form input, form textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
}

form button {
    background-color: #2563EB;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

form button:hover {
    background-color: #1e40af;
}

footer {
    background-color: #0f172a;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

/* WhatsApp floating button */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background-color: #25D366;
    color: #fff;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

/* Make sure the inline WhatsApp SVG inherits the white color and scales appropriately */
.whatsapp-float svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

.whatsapp-float:hover {
    transform: translateY(-3px);
}

@media(max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .service-card {
        width: 100%;
    }
}