/* --- GLOBAL RESET & TYPOGRAPHY --- */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: monospace, sans-serif;
    color: rgb(22, 22, 23); /* Default body text color */
}

h1, h2, h3, p {
    text-align: center;
    color: inherit;
}

h3 {
    text-decoration: dotted underline;
}

/* --- CAROUSEL CONTAINER --- */
.carousel-container {
    width: 100vw;
    height: 100vh;
    max-width: none;
    position: relative;
    margin: 0;
    overflow: hidden;
}

/* --- SLIDE STYLING --- */
.carousel-slide {
    display: none;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.background-slide-1 {
    background-image: url("spa%20bunker.png");
}

.background-slide-2 {
    background-image: url("spa%20bunker%201.png");
}

.background-slide-3 {
    background-image: url("spa%20bunker%202.png");
}

.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {opacity: .4} 
    to {opacity: 1}
}

/* --- WEBSITE CONTENT OVERLAY (INDEX PAGE TEXT & BUTTONS) --- */
.website-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 5;
    padding: 20px;
    box-sizing: border-box;

    color: #CFF4FC; 
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.9), 0 0 5px rgba(0, 0, 0, 0.7);
}

.website-content h1 {
    color: inherit;
    font-size: 3.5rem; 
    margin-bottom: 0.5rem; 
    letter-spacing: 2px;
    font-weight: 900;
}

.website-content p {
    color: inherit;
    max-width: 600px;
    line-height: 1.5;
    font-size: 1.25rem;
    font-weight: 500;
}

/* --- BUTTON CONTAINER (For index.html) --- */
.button-container {
    display: flex;
    gap: 20px;
    margin-top: 50px; 
}

/* --- BUTTON STYLING --- */
.button {
    text-decoration: none;
    background-color: rgba(50, 70, 90, 0.9);
    color: #FFFFFF;
    border-radius: 4px;
    padding: 12px 25px;
    font-family: sans-serif;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4); 
    border: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.button:hover {
    background-color: rgba(65, 90, 115, 0.95);
    color: #CFF4FC;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5); 
    transform: translateY(-2px);
}


/* --- NAVIGATION BUTTONS (Prev/Next) --- */
.prev-button, .next-button { 
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 20px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 24px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 10;
    display: block; 
    margin: 0;
}

.next-button {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev-button:hover, .next-button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* --- DOTS/INDICATORS --- */
.dot-container {
    position: absolute;
    bottom: 20px;
    width: 100%;
    z-index: 10;
}

.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.active, .dot:hover {
    background-color: #717171;
}

/* --- INTERIOR PAGE CENTERING & STYLING RULES --- */

/* 🟢 New Rule: Style for the large project description text 🟢 */
.large-text p {
    font-size: 1.15em; 
}

/* General spacing for project item wrappers */
.page-content, .project-item {
    padding: 20px;
}

/* Centers all block-level elements (images and forms) inside the project containers */
.page-content form, .project-item form,
.page-content img, .project-item img {
    display: block;
    margin: 0 auto;
}

/* Centers all standalone links inside the project containers that are NOT a .button */
.page-content a:not(.button), .project-item a:not(.button) {
    display: block;
    margin: 0 auto;
    text-align: center;
    max-width: fit-content;
    padding: 5px 0; 
}

/* Centers the video container */
.centered-video {
    display: flex;
    justify-content: center;
    margin: 20px 0; /* Adds spacing around the videos */
}

/* 🟢 New Rule: Ensures videos use the width from HTML but are responsive on small screens 🟢 */
.centered-video video {
    max-width: 100%; /* Important for responsiveness on mobile */
    height: auto;
}

.page-content .centered-video video,
.project-item .centered-video video {
    /* Sets the video's maximum width to 620 pixels */
    max-width: 720px !important; 
    /* Ensures the video is responsive on smaller screens */
    width: 100% !important; 
    height: auto !important;
}

/* --- UTILITY CLASSES --- */
.project-item {
    text-align: center;
    margin-bottom: 40px;
}
.project-image {
    max-width: 700px;
    height: auto;
}
.text-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}
.center-link {
    text-align: center;
    margin-top: 20px; /* Optional: adds a little space above the link */
    margin-bottom: 20px; /* Optional: adds a little space below the link */
}
.contact-form {
    /* Limit the width of the form so it can be centered */
    max-width: 500px; 
    /* Center the form block horizontally */
    margin: 40px auto; 
    /* Ensure text (like labels) is left-aligned within the form block */
    text-align: left; 
    padding: 20px;
}

/* Ensure form elements (labels and inputs) are on their own lines */
.contact-form div {
    margin-bottom: 15px; 
}

/* Make inputs and textarea take up the full available width */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 10px;
    box-sizing: border-box; /* Include padding/border in the element's total width */
    margin-top: 5px;
}

/* Center the buttons at the bottom of the form */
.contact-form .button-group {
    text-align: center;
    margin-top: 30px;
}