/* Global Styles */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: #fff;
    background-color: #111;
    text-align: center;
    overflow-x: hidden;
}

/* Hero Section - Fullscreen Centered */
.hero {
    display: flex;
    align-items: center;   /* Center vertically */
    justify-content: center; /* Center horizontally */
    height: 100vh; /* Full viewport height */
    text-align: center;
    background: #000; /* Adjust background if needed */
}

/* Centering the hero content */
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 800px; /* Adjust max width if needed */
}

/* Logo should be centered and responsive */
.logo {
    width: 600px; /* Ensuring the logo is at least 600px wide */
    max-width: 80%; /* Adjust for responsiveness */
    height: auto;
    margin-bottom: 20px; /* Spacing below the logo */
}

/* Centering text content */
.hero h1 {
    font-size: 3rem;
    margin: 10px 0;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
}

/* Call-to-action button */
.cta-button, .contact-button, .access-button, .home-button {
    display: inline-block;
    padding: 15px 30px;
    background: #ff7f50;
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    border-radius: 5px;
    margin-top: 20px;
    transition: background 0.3s;
}

.cta-button:hover, .contact-button:hover, .access-button:hover, .home-button:hover {
    background: #ff5733;
}

/* Video Section (Parallax Effect) */
.video-container {
    position: relative;
    width: 100%;
    height: 70vh; /* Smaller video section */
    overflow: hidden;
}

.bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 150%; /* Extra height for smooth scrolling */
    object-fit: cover;
    transform: translateY(0);
    transition: transform 0.1s linear;
}

/* Features Section - Transparent Background */
.features {
    padding: 60px 20px;
    background: rgba(0, 0, 0, 0); /* Fully transparent */
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative; /* Ensures text sits above the video */
    z-index: 2; /* Keeps features above the video */
}

/* Features Heading */
.features h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

/* Feature Grid Layout */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns by default */
    gap: 20px;
    max-width: 900px; /* Limits width to approximately 3 tiles wide */
}

/* Individual Feature Styling */
.feature {
    background: #333;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s;
}

.feature img {
    width: 50px;
    height: 50px;
}

.feature h3 {
    margin: 15px 0;
}

.feature p {
    font-size: 1rem;
}

.feature:hover {
    transform: scale(1.05);
}

/* Medium Screens: Switch to 2 columns × 3 rows */
@media (max-width: 1024px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns */
    }
}

/* Small Screens: Stack vertically */
@media (max-width: 768px) {
    .feature-grid {
        grid-template-columns: repeat(1, 1fr); /* 1 column */
    }
}

/* Gallery Section */
.gallery, .access {
    padding: 60px 20px;
    background: #111;
    text-align: center;
}

/* Gallery Heading */
.gallery h2, .access h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

/* Gallery Grid Layout */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns default */
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

/* Gallery Images - Uniform Size */
.gallery-container img {
    width: 100%;
    height: 200px; /* Fixed height for uniformity */
    object-fit: cover; /* Maintain aspect ratio and crop excess */
    cursor: pointer; /* Indicate it's clickable */
    border-radius: 10px;
    transition: transform 0.2s ease-in-out;
}

/* Hover Effect */
.gallery-container img:hover {
    transform: scale(1.05);
}

/* Image Overlay (Full-Screen) */
.image-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Enlarged Image */
.image-overlay img {
    max-width: 80%;
    max-height: 80%;
    border-radius: 10px;
}

/* Close Button */
.image-overlay .close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 30px;
    color: white;
    cursor: pointer;
}

/* Medium Screens: Switch to 2 Columns */
@media (max-width: 1024px) {
    .gallery-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Small Screens: Stack Vertically */
@media (max-width: 768px) {
    .gallery-container {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* Footer */
footer {
    padding: 20px;
    background: #000;
    font-size: 1rem;
}

/* Contact Form - Centered & Scrollable */
.contact-form {
    display: none; /* Initially hidden */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #222;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    max-height: 90vh; /* Prevents overflow on small screens */
    overflow-y: auto; /* Enables scrolling inside the form */
    text-align: center;
    z-index: 1000;
}

/* Ensure scrolling is enabled on small screens */
@media (max-height: 600px) {
    .contact-form {
        max-height: 80vh;
        overflow-y: auto;
    }
}

.contact-form input,
.contact-form textarea {
    width: calc(100% - 20px);
    padding: 10px;
    margin: 10px 0;
    border: none;
    border-radius: 5px;
    box-sizing: border-box;
    max-height: 40vh; /* Prevents textarea from making the form too large */
    overflow-y: auto;
}

.contact-form label {
    display: block;
    margin: 10px 0;
    font-size: 1rem;
    color: #fff;
}

/* Button Styling */
.contact-form button {
    padding: 10px 20px;
    background: #ff7f50;
    color: #fff;
    border: none;
    cursor: pointer;
}


.contact-form button:hover {
    background: #ff5733;
}

/* Form Message */
#formMessage {
    font-size: 1rem;
    font-weight: bold;
    margin-top: 10px;
    display: block;
}

/* Close (X) Button */
.close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 1100; /* Ensure it’s always on top */
}

.close-button:hover {
    color: #ff7f50; /* Changes color on hover */
}

/* Hide the default Google reCAPTCHA badge */
.grecaptcha-badge {
    visibility: hidden;
}

.features-category {
    margin: 0 auto 40px auto;
    max-width: 640px;
    text-align: center;
}

.feature-table {
    width: 100%;
    max-width: 640px;
    table-layout: fixed;           /* Forces equal column widths */
    border-collapse: collapse;
    background-color: #1e1e1e;
    color: #eee;
    font-size: 1rem;
}

.feature-table thead {
    background-color: #333;
}

.feature-table th,
.feature-table td {
    padding: 12px 16px;
    border: 1px solid #444;
    text-align: center;
    word-wrap: break-word;         /* Ensure long text wraps */
    white-space: normal;           /* Prevent overflow in narrow cells */
}

.feature-table td:first-child,
.feature-table th:first-child {
    text-align: left;
}

.eula-category, .privacy-category {
    margin: 0 auto 40px auto;
    max-width: 640px;
    text-align: center;
    width: 100%;
    text-align: justify;
}

/* Ensure both buttons have white text */
.contact-button, .home-button, .access-button {
    color: #fff !important; /* Override the color for buttons */
}

/* Make all links light grey */
a {
    color: #ff7f50;
    text-decoration: none; /* Optional: Removes underline */
}

/* Ensure visited links are also light grey */
a:visited {
    color: #ff7f50;
}

/* Optional: Change color on hover */
a:hover {
    color: #ff7f33; /* Adjust if needed */
}

/* Optional: Change color when active (clicked) */
a:active {
    color: #ddd;
}
