/* General Body Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    background-color: #fdfdfd;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header */
.header {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header .logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2d3e50;
    text-decoration: none;
}

.nav-menu a {
    margin: 0 1.5rem;
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #e67e22;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    width: 24px;
    height: 18px;
    justify-content: space-between;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #2d3e50;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Responsive */
@media screen and (max-width: 768px) {
    .header {
        padding: 1rem 2rem;
    }
    
    .header .logo {
        font-size: 1.5rem;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu a {
        display: block;
        margin: 1rem 0;
        font-size: 1.1rem;
        padding: 0.5rem 0;
    }
    
    /* Hero Section Mobile */
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1rem;
        margin: 1rem 0;
    }
    
    /* Content Sections Mobile */
    .content-section {
        padding: 3rem 1.5rem;
    }
    
    .content-section h2 {
        font-size: 2rem;
    }
    
    .description {
        font-size: 1rem;
    }
    
    /* Gallery Grid Mobile */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .gallery-item img {
        height: 200px;
    }
    
    /* Tour Grid Mobile */
    .tour-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Video Container Mobile */
    .video-container {
        height: 250px;
    }
}

.header nav a:hover {
    color: #e67e22;
}

/* Hero Section */
.hero {
    height: 100vh;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden; /* Ensure the image doesn't overflow the section */
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* This will cover the area, might still crop. Use 'contain' if you want to see the whole image */
    z-index: -1; /* Place it behind the content */
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7));
    z-index: 0; /* Make sure the overlay is on top of the image but below the text */
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    animation: fadeInUp 1.5s ease-out;
}

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

.hero h1 {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    background-color: #e67e22;
    color: white;
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    display: inline-block;
    text-align: center;
}

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

.btn-tour {
    background-color: #27ae60;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.btn-tour:hover {
    background: linear-gradient(135deg, #229954, #27ae60);
}

/* Content Section */
.content-section {
    padding: 6rem 3rem;
    text-align: center;
}

.content-section h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #2d3e50;
}

.content-section .description {
    max-width: 800px;
    margin: 0 auto 4rem auto;
    color: #666;
    font-size: 1.1rem;
}

/* Video Section */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 1000px;
    margin: 2rem auto 0 auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Gallery */
/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 15px;
}

/* Image Overlay for Name Display */
.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 70%, transparent 100%);
    color: white;
    padding: 1rem;
    transform: translateY(0);
    transition: opacity 0.3s ease;
}

.gallery-item:hover .image-overlay {
    opacity: 0.9;
}

.image-overlay h4 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: capitalize;
    line-height: 1.2;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* No Images Message */
.no-images-message {
    background: linear-gradient(135deg, #ffd89b 0%, #19547b 100%);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    grid-column: 1 / -1;
}

.no-images-message p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.no-images-message ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.5rem;
    margin-top: 1rem;
}

.no-images-message li {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
}

/* 360 Tour Section */
.tour-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.tour-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    cursor: pointer;
}

.tour-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

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

.tour-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    text-align: center;
}

.tour-item:hover .tour-overlay {
    opacity: 1;
}

.tour-overlay h3 {
    font-size: 1.8rem;
    margin: 0;
    transform: translateY(10px);
    transition: transform 0.4s ease;
}

.tour-overlay .btn-360 {
    background-color: #e67e22;
    color: white;
    padding: 0.8rem 1.8rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.3s ease;
    transform: translateY(10px);
}

.tour-item:hover .tour-overlay h3,
.tour-item:hover .tour-overlay .btn-360 {
    transform: translateY(0);
}

.tour-overlay .btn-360:hover {
    background-color: #d35400;
    transform: translateY(-2px);
}

/* Modal (Lightbox) Styles */
.modal {
    display: none; 
    position: fixed; 
    z-index: 2000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.modal-content {
    margin: 0;
    display: block;
    width: auto;
    max-width: 85%;
    max-height: 85vh;
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {transform:scale(0)} 
    to {transform:scale(1)}
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close-modal:hover,
.close-modal:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Footer */
.footer {
    background-color: #2d3e50;
    color: white;
    text-align: center;
    padding: 3rem 2rem;
}

.footer p {
    margin: 0;
    font-weight: 300;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        padding: 1rem 2rem;
    }
    
    .header nav a {
        margin: 0 0.5rem;
        font-size: 0.9rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    
    .content-section {
        padding: 4rem 2rem;
    }
    
    .content-section h2 {
        font-size: 2rem;
    }
    
    .gallery-grid, .tour-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.6rem;
    }
    
    .btn {
        padding: 0.8rem 2rem;
        font-size: 0.9rem;
    }
    
    .content-section {
        padding: 3rem 1.5rem;
    }
}

/* Scroll animations */
.content-section {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

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

.gallery-item, .tour-item {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.gallery-item.animate, .tour-item.animate {
    opacity: 1;
    transform: translateY(0);
}
