/* styles.css */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    color: #F5E6E8; /* Soft cream text */
    background: linear-gradient(135deg, #4A235A, #2A1A34); /* Deep plum to dark purple gradient */
    line-height: 1.6;
    overflow-x: hidden;
    transition: background 0.5s ease, color 0.5s ease;
}

/* Dark Mode (Sexy twist with pink accents) */
body.dark-mode {
    background: linear-gradient(135deg, #2A1A34, #1E0F2A); /* Darker purple depth */
    color: #F5E6E8;
}

body.dark-mode .room-card,
body.dark-mode .hero-content,
body.dark-mode form input,
body.dark-mode form textarea,
body.dark-mode .modal-content {
    background: rgba(74, 35, 90, 0.95); /* Deep plum with transparency */
}

body.dark-mode .room-card h3,
body.dark-mode h2 {
    color: #D81B60; /* Rosy pink accent */
}

/* Header with Figma-Like Glassmorphism */
header {
    background: linear-gradient(135deg, rgba(74, 35, 90, 0.9), rgba(42, 26, 52, 0.7));
    backdrop-filter: blur(15px);
    position: sticky;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 20px 60px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
}

header.scrolled {
    transform: scale(0.95);
    padding: 15px 40px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 34px;
    font-weight: 700;
    color: #F5E6E8;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(245, 230, 232, 0.6);
}

ul {
    list-style: none;
    display: flex;
    gap: 45px;
}

ul li a.nav-link {
    color: #F5E6E8;
    text-decoration: none;
    font-weight: 500;
    font-size: 18px;
    position: relative;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

ul li a.nav-link.active {
    color: #D81B60;
    text-shadow: 0 0 10px rgba(216, 27, 96, 0.7);
}

ul li a.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    background: #D81B60;
    bottom: -10px;
    left: 0;
    transition: width 0.4s ease;
}

ul li a.nav-link:hover::after {
    width: 100%;
}

ul li a.nav-link:hover {
    color: #F5E6E8;
    text-shadow: 0 0 15px rgba(245, 230, 232, 0.8);
}

#theme-toggle {
    background: none;
    border: none;
    color: #F5E6E8;
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.3s ease, color 0.3s ease;
}

#theme-toggle:hover {
    transform: rotate(360deg);
    color: #D81B60;
}

/* Hero Section with Seductive Animation - Slimmed Down */
.hero {
    height: 90vh; /* Reduced from 100vh for a tighter fit */
    background: linear-gradient(135deg, rgba(74, 35, 90, 0.8), rgba(42, 26, 52, 0.6)), url('https://via.placeholder.com/1920x1080?text=Sultry+Hotel+Night');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: glow 12s infinite alternate;
}

@keyframes glow {
    0% { filter: brightness(0.9); }
    50% { filter: brightness(1.2); box-shadow: inset 0 0 20px #D81B60; }
    100% { filter: brightness(0.9); }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(216, 27, 96, 0.3) 0%, transparent 70%);
    animation: ripple 8s infinite;
}

@keyframes ripple {
    0% { transform: scale(0.7); opacity: 0.4; }
    50% { transform: scale(1.3); opacity: 0.7; }
    100% { transform: scale(0.7); opacity: 0.4; }
}

.hero-content {
    position: relative;
    background: rgba(74, 35, 90, 0.7);
    backdrop-filter: blur(12px);
    padding: 30px 50px; /* Reduced from 45px 70px */
    border-radius: 20px; /* Reduced from 25px */
    border: 1px solid rgba(245, 230, 232, 0.3);
    animation: sway 4s infinite ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px; /* Reduced from 30px */
    padding-bottom: 40px; /* Reduced from 60px */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); /* Reduced shadow */
}

@keyframes sway {
    0% { transform: translateX(0); }
    50% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}

h1 {
    font-size: 50px; /* Reduced from 68px */
    font-weight: 800;
    letter-spacing: 3px; /* Reduced from 4px */
    margin-bottom: 20px; /* Reduced from 30px */
    text-shadow: 0 0 15px rgba(216, 27, 96, 0.9);
    color: #F5E6E8;
}

.hero-content p {
    font-size: 18px; /* Reduced from 22px */
    margin-bottom: 15px; /* Reduced from 30px */
    color: #F5E6E8;
}

.btn {
    background: linear-gradient(45deg, #D81B60, #9B2C6A);
    color: #F5E6E8;
    padding: 12px 35px; /* Reduced from 18px 50px */
    text-decoration: none;
    font-weight: 600;
    border-radius: 25px; /* Reduced from 35px */
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: inline-block;
    border: 1px solid #F5E6E8; /* Reduced from 2px */
}

.btn:hover {
    transform: translateY(-4px) scale(1.03); /* Reduced from -6px 1.05 */
    box-shadow: 0 8px 25px rgba(216, 27, 96, 0.7); /* Reduced shadow */
}

.hero-content .btn {
    margin: 0 10px; /* Reduced from 20px */
}

/* Scroll Animation for Sections */
.scroll-animate {
    opacity: 0;
    transform: translateY(70px);
    transition: opacity 1s ease, transform 1s ease;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Section Styles */
section {
    padding: 80px 60px; /* Reduced padding for a slimmer look */
    margin-top: 80px;
    background: rgba(74, 35, 90, 0.2);
    border-radius: 15px;
    backdrop-filter: blur(6px);
}

h2 {
    font-size: 42px; /* Slightly reduced for balance */
    font-weight: 700;
    color: #D81B60;
    margin-bottom: 40px;
    position: relative;
    text-align: center;
}

body.dark-mode h2::after {
    background: #F5E6E8;
}

h2::after {
    content: '';
    width: 80px;
    height: 4px;
    background: #9B2C6A;
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

/* Contact Section (Home Page Form) - Slimmed Down */
#contact form {
    max-width: 500px; /* Reduced from 850px */
    margin: 30px auto; /* Reduced margin */
    display: flex;
    flex-direction: column;
    gap: 15px; /* Reduced gap */
}

#contact input,
#contact textarea,
#contact select {
    padding: 12px; /* Reduced from 20px */
    border: 1px solid rgba(216, 27, 96, 0.4); /* Thinner border */
    border-radius: 12px; /* Slightly reduced radius */
    background: rgba(74, 35, 90, 0.3);
    color: #F5E6E8;
    transition: border-color 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
}

body.dark-mode #contact input,
body.dark-mode #contact textarea,
body.dark-mode #contact select {
    border-color: rgba(245, 230, 232, 0.4);
}

#contact input:focus,
#contact textarea:focus,
#contact select:focus {
    border-color: #D81B60;
    transform: scale(1.03); /* Slightly reduced scale */
    box-shadow: 0 0 15px rgba(216, 27, 96, 0.7);
    outline: none;
}

#contact textarea {
    resize: vertical;
    min-height: 120px; /* Reduced from 200px */
}

/* Rooms Section - Slimmed Down */
.rooms-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Reduced from 370px */
    gap: 30px; /* Reduced gap */
    max-width: 1100px; /* Reduced from 1400px */
    margin: 0 auto;
}

.room-card {
    background: rgba(74, 35, 90, 0.8);
    border-radius: 20px;
    padding: 20px; /* Reduced from 35px */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
    border: 1px solid rgba(245, 230, 232, 0.2);
}

.room-card img {
    width: 100%;
    height: 180px; /* Reduced from 240px */
    object-fit: cover;
    border-radius: 12px; /* Reduced from 15px */
    margin-bottom: 15px; /* Reduced from 25px */
    transition: transform 0.5s ease;
}

.room-card:hover img {
    transform: scale(1.15);
}

.room-card:hover {
    transform: translateY(-15px); /* Reduced from 20px */
    box-shadow: 0 15px 35px rgba(216, 27, 96, 0.5);
}

.room-card h3 {
    font-size: 24px; /* Reduced from 30px */
    color: #F5E6E8;
    margin-bottom: 10px; /* Reduced from 20px */
}

.room-card p {
    font-size: 15px; /* Reduced from 18px */
    color: #E6C3D0;
}

body.dark-mode .room-card p {
    color: #F5E6E8;
}

.room-card span {
    font-size: 20px; /* Reduced from 24px */
    font-weight: 600;
    color: #D81B60;
    margin-top: 15px; /* Reduced from 25px */
}

/* Gallery Section - Slimmed Down */
.gallery-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Reduced from 340px */
    gap: 20px; /* Reduced from 35px */
    max-width: 1100px; /* Reduced from 1400px */
    margin: 0 auto;
}

.gallery-images img {
    width: 100%;
    height: 200px; /* Reduced from 300px */
    object-fit: cover;
    border-radius: 15px; /* Reduced from 20px */
    cursor: pointer;
    transition: transform 0.6s ease, box-shadow 0.6s ease;
    border: 1px solid rgba(245, 230, 232, 0.3); /* Thinner border */
}

.gallery-images img:hover {
    transform: scale(1.1); /* Reduced from 1.12 */
    box-shadow: 0 10px 30px rgba(216, 27, 96, 0.6);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(8px);
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 85%;
    border-radius: 20px;
    border: 2px solid #F5E6E8; /* Reduced from 3px */
    box-shadow: 0 0 20px rgba(216, 27, 96, 0.5);
}

.lightbox-caption {
    color: #F5E6E8;
    font-size: 18px; /* Reduced from 22px */
    margin-top: 15px; /* Reduced from 20px */
    text-shadow: 0 0 6px rgba(245, 230, 232, 0.6);
}

.close-lightbox {
    position: absolute;
    top: 25px; /* Reduced from 30px */
    right: 25px;
    color: #F5E6E8;
    font-size: 35px; /* Reduced from 40px */
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-lightbox:hover {
    color: #D81B60;
}

/* Booking Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(10px);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: rgba(74, 35, 90, 0.9);
    padding: 30px; /* Reduced from 50px */
    border-radius: 20px; /* Reduced from 30px */
    max-width: 450px; /* Reduced from 600px */
    width: 90%;
    position: relative;
    animation: glideIn 0.7s ease;
    border: 1px solid #F5E6E8; /* Thinner border */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

@keyframes glideIn {
    0% { transform: translateY(50px) scale(0.9); opacity: 0; }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}

.close {
    position: absolute;
    top: 15px; /* Reduced from 20px */
    right: 20px; /* Reduced from 25px */
    font-size: 25px; /* Reduced from 30px */
    cursor: pointer;
    color: #F5E6E8;
    transition: color 0.3s ease;
}

body.dark-mode .close {
    color: #D81B60;
}

.close:hover {
    color: #9B2C6A;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #4A235A, #2A1A34);
    color: #F5E6E8;
    text-align: center;
    padding: 30px 20px; /* Reduced from 50px */
    margin-top: 80px; /* Reduced from 100px */
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(245, 230, 232, 0.1); /* Thinner border */
}

footer p {
    font-size: 16px; /* Reduced from 18px */
    margin: 8px 0; /* Reduced from 10px */
    animation: rise 1.5s ease-in-out;
}

@keyframes rise {
    0% { transform: translateY(40px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        padding: 15px 40px;
    }

    ul {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .logo {
        font-size: 28px;
    }

    h1 {
        font-size: 48px;
    }

    h2 {
        font-size: 34px;
    }

    .hero {
        background-attachment: scroll;
    }

    .hero-content {
        padding: 25px 40px;
    }

    .rooms-container, .gallery-images {
        grid-template-columns: 1fr;
    }

    .hero-content .btn {
        margin: 10px 0;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 36px;
    }

    .btn {
        padding: 12px 35px;
        font-size: 14px;
    }

    .room-card, .gallery-images img {
        padding: 15px;
    }

    .hero-content {
        padding: 20px 30px;
    }
}