/* Base Styles */
body { 
    font-family: Arial, sans-serif; 
    margin: 0; 
    padding: 0; 
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
}

a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #004080;
}

/* Header Styles */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    height: 50px;
    width: auto;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    color: #333;
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #0066cc;
    transition: width 0.3s;
}

nav ul li a:hover::after {
    width: 100%;
}

/* Category Title */
.category-title {
    text-align: center;
    padding: 30px 0 10px 0;
}

.category-title h1 {
    color: #333;
    font-size: 32px;
    margin: 0;
    font-weight: bold;
}

/* Gallery Intro */
.gallery-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: #444;
    font-size: 1.15rem;
    line-height: 1.6;
    padding: 0 20px;
}

/* Featured Rooms */
.featured-rooms {
    padding: 30px;
    background-color: #fff;
    margin-bottom: 50px;
}

.room-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.room-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 300px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.07);
    background: #eee;
    cursor: pointer;
}

.room-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
    display: block;
}

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

.room-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0));
    padding: 20px;
    color: #fff;
}

.room-overlay h3 {
    margin: 0;
    font-size: 22px;
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Gallery Outro */
.gallery-outro {
    text-align: center;
    max-width: 800px;
    margin: 40px auto 20px auto;
    color: #444;
    font-size: 1.08rem;
    line-height: 1.6;
    padding: 0 20px;
}

/* Product Categories Section */
.product-categories {
    background-color: #f0f5fa;
    padding: 50px 30px;
    text-align: center;
}

.product-categories h2 {
    margin-top: 0;
    margin-bottom: 30px;
    font-size: 28px;
    color: #333;
}

.category-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.category-box {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.07);
    overflow: hidden;
    width: 300px;
    transition: transform 0.3s;
}

.category-box:hover {
    transform: translateY(-5px);
}

.category-box img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.category-box h3 {
    margin: 15px 0 10px;
    color: #333;
}

.category-box p {
    padding: 0 15px;
    margin-bottom: 20px;
    color: #666;
}

.btn {
    display: inline-block;
    background-color: #0066cc;
    color: white;
    padding: 8px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #004080;
    color: white;
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    padding: 40px 30px 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo, .footer-links, .footer-social {
    margin-bottom: 30px;
}

.footer-logo {
    flex-basis: 300px;
}

.footer-logo-img {
    height: 60px;
    width: auto;
    margin-bottom: 10px;
}

.footer-links h4, .footer-social h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #ccc;
}

.footer-links ul li a:hover {
    color: #fff;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: #ccc;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #fff;
}

.copyright {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #555;
    color: #aaa;
}

.copyright a {
    color: #ccc;
}

.copyright a:hover {
    color: #fff;
}

/* Back to Top Button */
#back-to-top {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: #0066cc;
    color: white;
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 50%;
    font-size: 18px;
    transition: background-color 0.3s;
}

#back-to-top:hover {
    background-color: #004080;
}

/* Responsive Styles */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 15px;
    }

    nav ul {
        margin-top: 15px;
    }

    nav ul li {
        margin-left: 15px;
        margin-right: 15px;
    }

    .room-showcase {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .featured-rooms {
        padding: 15px;
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-logo, .footer-links, .footer-social {
        width: 100%;
        text-align: center;
    }

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

@media (max-width: 480px) {
    .category-title h1 {
        font-size: 28px;
    }

    .gallery-intro, .gallery-outro {
        font-size: 1rem;
    }

    .room-card {
        height: 250px;
    }
}
