/* General Body and Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Georgia', serif;
}

body {
    color: #333; /* Darker text for better readability on lighter backgrounds */
    line-height: 1.6;
}

/* Header and Navigation */
header {
    background: url('background.jpg') no-repeat center center/cover;
    height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Align nav to top */
    align-items: center;
    color: white; /* Ensure header text is white */
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background-color: rgba(0, 32, 63, 0.7); /* Dark blue with transparency */
    width: 100%; /* Make nav-container span full width */
    position: sticky;
    top: 0;
    z-index: 1000; /* Ensure nav stays on top */
    flex-wrap: wrap;
}

.logo {
    font-size: 0;
}

.logo img {
    height: 60px;  /* ← make this whatever size you like */
    width: auto;
    display: block;
}

nav a {
    margin-left: 25px; /* Slightly more space between nav items */
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover {
    color: gold; /* Gold hover effect */
    text-decoration: none; /* No underline on hover for a cleaner look */
}

.auth-buttons {
    display: flex;
    gap: 15px; /* More space between buttons */
}

.auth-buttons button {
    padding: 10px 20px; /* Larger buttons */
    background-color: #003366; /* Darker blue for buttons */
    color: white;
    border: none;
    border-radius: 5px; /* Slightly more rounded corners */
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.auth-buttons button:hover {
    background-color: #00558c;
}

/* Hero Content */
.hero-content {
    text-align: center;
    padding: 50px 20px;
    position: absolute;
    top: 50%; /* Center vertically */
    left: 50%;
    transform: translate(-50%, -50%); /* Adjust for centering */
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* Add text shadow for readability */
}

.hero-content h1 {
    font-size: 60px;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease-out; /* Animation for hero text */
}

.hero-content p {
    font-size: 22px;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease-out 0.5s forwards;
    opacity: 0; /* Start hidden for animation */
}

.hero-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: gold; /* Gold button for contrast */
    color: #003366; /* Dark blue text on gold button */
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 18px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    animation: zoomIn 1s ease-out 1s forwards;
    opacity: 0; /* Start hidden for animation */
}

.hero-button:hover {
    background-color: #ffd700; /* Lighter gold on hover */
    transform: translateY(-3px);
}

/* Keyframe Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Modal Styling */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1001; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.6); /* Black w/ opacity */
    padding-top: 60px;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto; /* 5% from the top and centered */
    padding: 30px;
    border: 1px solid #888;
    width: 80%; /* Could be more responsive */
    max-width: 500px; /* Max width for larger screens */
    border-radius: 8px;
    position: relative;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    color: #333; /* Dark text for modal content */
}

.modal-content h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #003366;
    font-size: 28px;
}

.modal-content input[type="text"],
.modal-content input[type="email"],
.modal-content input[type="password"] {
    width: calc(100% - 20px); /* Adjust for padding */
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.modal-content button {
    width: 100%;
    padding: 12px;
    background-color: #003366;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

.modal-content button:hover {
    background-color: #00558c;
}

.close {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

/* Ensure forms are correctly hidden/shown by JS */
#login-form,
#register-form {
    display: none; /* Managed by JavaScript */
}

/* Main Content Sections */
.content-section {
    padding: 80px 0;
    text-align: center;
}

.content-section:nth-of-type(even) {
    background-color: #f8f8f8; /* Light grey background for alternating sections */
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.content-section h2 {
    font-size: 42px;
    margin-bottom: 40px;
    color: #003366;
    position: relative;
    display: inline-block;
}

.content-section h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: gold;
    margin: 15px auto 0;
    border-radius: 2px;
}

.content-section p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #555;
}

/* About Us Section Specific */
#about p:last-of-type {
    margin-bottom: 0;
}

/* Accommodations Section */
.room-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.room-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.room-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.room-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.room-card h3 {
    font-size: 24px;
    color: #003366;
    margin: 20px 20px 10px;
}

.room-card p {
    font-size: 16px;
    color: #666;
    padding: 0 20px;
    margin-bottom: 15px;
    text-align: left;
}

.room-card ul {
    list-style: none;
    padding: 0 20px;
    margin-bottom: 20px;
}

.room-card ul li {
    font-size: 15px;
    color: #777;
    margin-bottom: 8px;
    position: relative;
    padding-left: 25px;
}

.room-card ul li::before {
    content: '✓';
    color: gold;
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
}

.room-card .book-now-button {
    display: block;
    width: calc(100% - 40px); /* Account for padding */
    margin: 0 20px 20px;
    padding: 12px 20px;
    background-color: gold;
    color: #003366;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.room-card .book-now-button:hover {
    background-color: #ffd700;
}

/* Dining Section */
.dining-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.dining-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dining-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.dining-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.dining-card h3 {
    font-size: 24px;
    color: #003366;
    margin: 20px 0 10px;
}

.dining-card p {
    font-size: 16px;
    color: #666;
    padding: 0 20px 20px;
    text-align: center;
}

/* Contact Section */
.contact-section {
    background-color: #003366; /* Dark blue background for contact */
    color: white;
}

.contact-section h2 {
    color: #666;
}

.contact-section p {
    color: #666;
}

.contact-info {
    margin-top: 30px;
    margin-bottom: 40px;
}

.contact-info p {
    font-size: 18px;
    margin-bottom: 10px;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    padding: 15px;
    border: 1px solid #00558c;
    border-radius: 5px;
    font-size: 16px;
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button {
    padding: 15px 30px;
    background-color: gold;
    color: #003366;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: #ffd700;
}

/* Footer */
footer {
    background-color: #00203f; /* Darker blue for footer */
    color: white;
    text-align: center;
    padding: 30px 20px;
    font-size: 15px;
}

footer .container {
    padding: 0; /* Remove container padding for footer text */
}

/* Responsive Design */
@media (max-width: 992px) {
    .nav-container {
        padding: 15px 30px;
    }
    nav a {
        margin-left: 15px;
    }
    .hero-content h1 {
        font-size: 50px;
    }
    .hero-content p {
        font-size: 20px;
    }
    .content-section h2 {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px 20px;
    }

    .logo {
        margin-bottom: 15px;
    }

    nav {
        margin-top: 10px;
        width: 100%;
        text-align: center;
    }
    nav a {
        display: block;
        margin: 10px 0;
    }

    .auth-buttons {
        margin-top: 15px;
        width: 100%;
        justify-content: center;
    }

    .hero-content h1 {
        font-size: 40px;
    }

    .hero-content p {
        font-size: 18px;
    }

    .content-section {
        padding: 60px 0;
    }

    .content-section h2 {
        font-size: 32px;
    }

    .room-gallery, .dining-options {
        grid-template-columns: 1fr; /* Single column for smaller screens */
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 10px 15px;
    }
    .logo {
        font-size: 24px;
    }
    .auth-buttons button {
        padding: 8px 15px;
        font-size: 14px;
    }
    .hero-content h1 {
        font-size: 30px;
    }
    .hero-content p {
        font-size: 16px;
    }
    .hero-button {
        padding: 12px 25px;
        font-size: 16px;
    }
    .content-section h2 {
        font-size: 28px;
    }
    .modal-content {
        width: 95%;
        padding: 20px;
    }
    .modal-content h2 {
        font-size: 24px;
    }
    .contact-form {
        padding: 0 10px;
    }
}

#verify-button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transition: opacity 0.2s ease;
}

#verify-button {
    opacity: 1;
    transition: opacity 0.2s ease;
}
