/* Global Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #fff;
    background-color: #111;
}

h1, h2 {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 10px 0;
    line-height: 1.2;
}

/* Top Header */
.top-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background-color: #000;
    padding: 10px 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.top-header .logo {
    max-width: 75px;
    margin-right: 20px;
}

.top-header .site-title {
    font-size: 1.8rem;
    color: #f5b300;
    display: flex;
    align-items: center;
    line-height: 1;
    position: relative;
}

/* Site Title Gradient Hover */
.site-title::before {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, red, orange, yellow, green, blue, indigo, violet);
    background-size: 400%;
    background-position: 0%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    opacity: 0;
    transition: opacity 0.4s ease, background-position 0.6s ease;
}

.site-title:hover::before {
    opacity: 1;
    background-position: 100%;
}

/* Parallax / Video Background */
.parallax {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 50%;
    left: 50%;
    width: auto;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: -1;
}

/* Header Content */
.header-content {
    position: absolute; /* over video */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: clamp(250px, 80%, 800px);
    max-height: 90vh; /* ensures content never exceeds viewport */
    overflow-y: auto; /* allows scroll if content is too tall */

    text-align: center;
    padding: 20px;
    border: 3px solid rgba(255, 255, 255, 0.7);
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 15px;
}

.header-content h1 {
    font-size: clamp(2rem, 6vw, 4rem);
    margin: 0;
}

.header-content p {
    font-size: clamp(1rem, 3vw, 1.5rem);
    line-height: 1.4;
    margin: 0;
}

/* Booking Section */
#booking {
    padding: 50px 20px;
    text-align: center;
    background-color: #333;
}

#booking h2 {
    font-size: clamp(1.8rem, 4vw, 2rem);
    color: #f5b300;
}

#booking p {
    font-size: clamp(1rem, 3vw, 1.2rem);
    margin-bottom: 20px;
}

.booking-button {
    padding: 10px 20px;
    background-color: #f5b300;
    color: #111;
    text-decoration: none;
    font-size: clamp(14px, 4vw, 1.5rem);
    border-radius: 5px;
    transition: background-color 0.3s ease;

    white-space: nowrap;   /* prevent wrapping */
    display: inline-block; /* allow width to shrink */
    width: fit-content;    /* shrink to text */
}

.booking-button:hover {
    background-color: #ffcc00;
}

.booking-button i {
    margin-right: 8px;
    font-size: clamp(11px, 2vw, 16px);
}

/* About Section */
#about {
    padding: 50px 20px;
    background-color: #222;
    text-align: center;
}

#about h2 {
    font-size: clamp(1.5rem, 5vw, 2rem);
    color: #f5b300;
    margin-bottom: 20px;
}

#about p {
    font-size: clamp(1rem, 3vw, 1.2rem);
    max-width: 80%;
    margin: 0 auto;
    line-height: 1.5;
}

/* Previous Events Section */
.previous-events {
    padding: 60px 20px;
    background: #303030;
    color: white;
    text-align: center;
}

.previous-events h2 {
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    margin-bottom: 10px;
}

.previous-events .subtitle {
    color: #cbd5f5;
    margin-bottom: 40px;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.event-card {
    background: #1e293b;
    padding: 20px;
    border-radius: 10px;
    transition: transform 0.2s ease;
}

.event-card:hover {
    transform: translateY(-5px);
}

.event-card h3 {
    margin-bottom: 10px;
    color: #38bdf8;
}

/* Footer */
footer {
    background-color: #222;
    text-align: center;
    padding: 20px;
    color: #ccc;
    font-size: 0.9rem;
}

/* Responsive Adjustments for Small Devices */
@media (max-width: 600px) {
    .header-content {
        padding: 15px;
    }

    .booking-button {
        font-size: clamp(12px, 4vw, 1.5rem);
        padding: 8px 16px;
    }

    #about p,
    .header-content p {
        font-size: clamp(0.9rem, 3vw, 1.2rem);
    }

    .previous-events h2 {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }
}
