



:root {
    --primary-color: #172d20;
    --secondary-color: #FFFFFF;
    --accent-color: #ceac5f;
    --text-color: #E0E0E0;
    --light-gray: #1E1E1E;
    --font-family: 'Poppins', sans-serif;

    /* Golden Ratio Typography */
    --gr: 1.618;
    --base-font-size: 16px;
    --h1-size: calc(var(--base-font-size) * var(--gr) * var(--gr) * var(--gr));
    --h2-size: calc(var(--base-font-size) * var(--gr) * var(--gr));
    --h3-size: calc(var(--base-font-size) * var(--gr));
    --line-height: var(--gr);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: var(--line-height);
    color: var(--text-color);
    background-color: var(--primary-color);
    text-rendering: optimizeLegibility;
    font-size: var(--base-font-size);
}

.container {
    max-width: 1100px;
    margin: auto;
    padding: 0 2rem;
}

header {
    background: var(--primary-color);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--light-gray);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: auto;
    padding: 0 2rem;
}

nav .logo {
    display: flex;
    align-items: center;
    font-size: var(--h3-size);
    font-weight: 700;
    z-index: 1001;
    color: var(--text-color); /* Reverted to original color */
}

nav .logo img {
    width: 52px; /* Changed from 26px to 52px */
    max-width: 100%;
    height: auto;
    display: block;
    margin-right: 10px; /* Add some space between logo and text */
}

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

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: var(--secondary-color); /* Reverted to original color */
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-color);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

nav ul li a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

nav ul li a:hover {
    color: var(--accent-color);
}

#hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    padding: 0 1rem;
    position: relative;
    overflow: hidden;
}

.background-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/hotel_lobby.JPG');
    background-size: cover;
    background-position: center;
    z-index: -1;
    filter: blur(5px);
    transition: filter 0.5s ease-in-out;
}

.background-image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.background-image-wrapper:hover {
    filter: blur(0);
}

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

.hero-content h1 {
    font-size: var(--h1-size);
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.hero-content p {
    font-size: var(--h3-size);
    margin-bottom: 2rem;
    font-weight: 300;
}

.btn {
    display: inline-block;
    background: var(--accent-color);
    color: var(--secondary-color);
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background 0.3s ease, color 0.3s ease;
    border: 1px solid var(--accent-color);
}

.btn:hover {
    background: transparent;
    color: var(--accent-color);
}

section {
    padding: calc(var(--base-font-size) * var(--gr) * 2) 0;
    overflow: hidden;
}

section h2 {
    text-align: center;
    font-size: var(--h2-size);
    margin-bottom: calc(var(--base-font-size) * var(--gr));
    color: var(--secondary-color);
    font-weight: 600;
}

#about {
    background: var(--primary-color);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: calc(var(--base-font-size) * var(--gr));
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
}

#rooms {
    background: #000000;
}

.room-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    justify-content: center; /* Add this line */
}

.room-card {
    background: var(--primary-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #333;
}

.room-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(206, 172, 95, 0.1);
}

.room-card img {
    width: 100%;
    display: block;
    transition: transform 0.3s ease;
}

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

.room-card-content {
    padding: 1.5rem;
}

.room-card-content h3 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
    font-size: var(--h3-size);
}

.room-card-content p {
    font-size: calc(var(--base-font-size) * 0.75); /* Adjusted for better balance */
    line-height: 1.5; /* Adjusted for better readability */
}

#gallery {
    background: var(--primary-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.3s ease;
    filter: grayscale(80%);
}

.gallery-item img:hover {
    transform: scale(1.05) rotate(2deg);
    filter: grayscale(0%);
}

#contact {
    background: var(--light-gray);
}

#contact-form {
    max-width: 700px;
    margin: auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

#contact-form input,
#contact-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #333;
    border-radius: 5px;
    font-family: var(--font-family);
    background: #222;
    color: var(--text-color);
    transition: border-color 0.3s ease;
}

#contact-form input:focus,
#contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

#contact-form button {
    width: 100%;
    border: none;
    cursor: pointer;
}

#form-status {
    text-align: center;
    margin-top: 1.5rem;
    font-weight: 600;
    min-height: 1.5rem;
}

footer {
    background: var(--light-gray);
    color: var(--secondary-color);
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid #333;
}

.nav-toggle {
    display: none;
}

/* WhatsApp Button */
.whatsapp-fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--accent-color);
    color: #FFF;
    border-radius: 50px;
    max-width: 60px; /* Changed from width to max-width */
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: max-width 0.5s ease, transform 0.3s ease, box-shadow 0.3s ease; /* Explicit transitions */
    z-index: 1001;
    animation: pulse-shadow 2.5s infinite;
}

.whatsapp-fab:hover {
    max-width: 300px; /* Changed from width to max-width */
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.whatsapp-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-icon svg {
    width: 28px;
    height: 28px;
}

.whatsapp-text {
    padding: 0;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    max-width: 0;
    transition: max-width 0.5s ease, padding 0.5s ease;
}

.whatsapp-fab:hover .whatsapp-text {
    max-width: 300px;
    padding: 0 20px 0 10px;
}

@keyframes pulse-shadow {
    0% {
        box-shadow: 0 0 0 0 rgba(206, 172, 95, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(206, 172, 95, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(206, 172, 95, 0);
    }
}

/* Responsive Design - Golden Ratio Mobile Optimization */
@media(max-width: 768px) {
    :root {
        --base-font-size: 15px; /* Slightly adjusted for better mobile readability */
    }

    .container {
        padding: 0 1rem;
    }

    section {
        padding: calc(var(--base-font-size) * var(--gr)) 0;
    }

    .hero-content h1 {
        font-size: calc(var(--h2-size) * 0.9); /* Using h2 as a base for mobile hero */
        line-height: 1.3;
    }

    .hero-content p {
        font-size: calc(var(--h3-size) * 0.9);
    }
    
    nav .logo {
        font-size: calc(var(--h3-size) * 0.95);
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: calc(var(--base-font-size) * var(--gr) / 2);
    }

    .about-image {
        margin-top: calc(var(--base-font-size) * var(--gr) / 2);
    }

    section h2 {
        font-size: calc(var(--h2-size) * 0.9);
        margin-bottom: calc(var(--base-font-size) * var(--gr) / 2);
    }

    .room-grid {
        grid-template-columns: 1fr;
        gap: calc(var(--base-font-size) * var(--gr) / 2);
    }

    .room-card-content {
        padding: calc(var(--base-font-size) / var(--gr));
    }

    .room-card-content h3 {
        font-size: calc(var(--h3-size) * 0.9);
        margin-bottom: calc(var(--base-font-size) / var(--gr) / 2);
    }

    .room-card-content p {
        font-size: calc(var(--base-font-size) * 0.7); /* Adjust for smaller screens */
    }

    .gallery-grid {
        gap: 0.5rem;
    }

    .nav-toggle {
        display: block;
        position: relative;
        width: 30px;
        height: 20px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 1001;
    }

    .nav-toggle span {
        display: block;
        position: absolute;
        width: 100%;
        height: 2px;
        background: var(--secondary-color);
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .nav-toggle span:nth-child(1) { top: 0; }
    .nav-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
    .nav-toggle span:nth-child(3) { bottom: 0; }

    .nav-active .nav-toggle span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .nav-active .nav-toggle span:nth-child(2) { opacity: 0; }
    .nav-active .nav-toggle span:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); }

    nav ul {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--primary-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(-100%);
        transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    }

    .nav-active nav ul {
        transform: translateX(0);
    }

    nav ul li {
        margin: calc(var(--base-font-size) / var(--gr)) 0;
    }

    nav ul li a {
        font-size: var(--h3-size); /* Adjusted for better mobile nav hierarchy */
    }

    .whatsapp-fab {
        width: 50px;
        height: 50px;
        bottom: 1rem;
        right: 1rem;
    }
    
    .whatsapp-icon {
        width: 50px;
        height: 50px;
    }

    .whatsapp-icon svg {
        width: 24px;
        height: 24px;
    }

    .whatsapp-fab .whatsapp-text {
        display: none;
    }
}

@media(max-width: 480px) {
    :root {
        --base-font-size: 14px;
    }

    .hero-content h1 {
        font-size: calc(var(--h2-size) * 0.8);
    }

    .hero-content p {
        font-size: calc(var(--h3-size) * 0.85);
    }

    section h2 {
        font-size: calc(var(--h2-size) * 0.85);
    }
    
    .room-card-content h3 {
        font-size: calc(var(--h3-size) * 0.85);
    }
    
    .room-card-content p {
        font-size: calc(var(--base-font-size) * 0.65); /* Further adjust for very small screens */
    }

    nav ul li a {
        font-size: calc(var(--h3-size) * 0.9);
    }

    footer {
        font-size: calc(var(--base-font-size) * 0.85);
    }
}

nav ul li a.active {
    color: var(--accent-color);
}

nav ul li a.active::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Animation */
.reveal {
    opacity: 1; /* Changed from 0 to 1 for visibility */
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

@media(min-width: 1200px) {
    .room-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}


