/* Basic Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', sans-serif; /* Modern sans-serif font */
    line-height: 1.7;
    color: #333;
    background-color: #e8f0f2; /* Very light blue-gray background */
}

/* Header */
header {
    background: #1a237e; /* Deep blue */
    color: #fff; /* White text */
    padding: 2rem 0;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-family: 'Playfair Display', serif; /* Elegant serif font for heading */
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

header p {
    color: #d0d7e0; /* Lighter gray text */
}

/* Navigation */
nav {
    background: #0d47a1; /* Slightly lighter blue */
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Shadow for depth */
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
}

nav a {
    color: #fff; /* White text */
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    transition: background-color 0.3s, color 0.3s; /* Smooth transitions */
}

nav a:hover {
    background-color: #fff; /* White on hover */
    color: #0d47a1; /* Dark blue on hover */
    border-radius: 5px;
}

/* Hero Section */
.hero {
    position: relative;
    height: 80vh; /* Reduced height */
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #000;
}

.hero video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0; /* Explicitly set to 0 */
}

.hero-content {
    background: rgba(0, 0, 0, 0.5);
    padding: 2rem;
    border-radius: 5px;
    max-width: 800px;
    width: 90%; /* Responsive width */
    position: relative;
    backdrop-filter: blur(5px); /* Glassmorphism effect */
}

.hero h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem; /* Larger size */
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); /* Text shadow */
    color: #1a237e; /* Deep blue */
    color: #ffc107; /* New gold color for contrast */
    color: #ffffff; /* New gold color for contrast */
    color: #0d88ff; /* Lighter blue 0070C0 */
}

.hero p {
    font-size: 1.3rem; /* Larger size */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); /* Text shadow */
    max-width: 700px;
    margin: 0 auto;
}

/* Sections */
section {
    padding: 4rem 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #1a237e; /* Deep blue */
}

section img {
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    height: auto; /* maintain aspect ratio */
}

/* Card Container */
.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive grid */
    gap: 2rem;
    margin: 2rem auto;
    max-width: 1200px;
    padding: 0 1rem;
}

.card {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card:hover {
    transform: translateY(-5px); /* Lift effect */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.card img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 1rem;
    height: 200px; /*consistent image size*/
    object-fit: cover;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: #0d47a1; /* Deep blue */
    color: #fff;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.3s;
    margin-top: 1rem;
}

.btn:hover {
    background-color: #08316b; /* Darker blue on hover */
    transform: translateY(-2px); /* Lift effect on hover */
}

/* ###################### */
/* #### Modal & Form #### */
/* ###################### */

#openModalBtn {
    background-color: #228b22; /* Forest green */
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s;
}

#openModalBtn:hover {
    background-color: #195f19; /* Darker green */
}

/* Modal styles */
.modal {
    display: none; /* Hidden by default */
    position: absolute; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 400%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(34, 139, 34, 0.0); /* Forest green w/ opacity */
    text-align: left;
}

.modal-content {
    font-size: 1rem; /* Smaller size */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); /* Text shadow */
    background-color: rgba(35, 95, 25, 0.96); /* Forest green w/ opacity */
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #ffff00; /* Yellow border */
    width: 80%; /* Could be more or less, depending on screen size */
    max-width: 550px;
    border-radius: 10px;
}

.modal p {
    font-size: 1.2rem; /* Larger size */
}

.modal label {
    font-size: 1.2rem; /* Larger size */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8); /* Text shadow */
}

.close {
    color: #ffff00; /* Dark Green */
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

/* Footer */
footer {
    background: #000a12; /* very dark blue*/
    color: #fff;
    text-align: center;
    padding: 2rem;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .hero h2 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav li {
        margin: 0.5rem 0;
    }
    .card img{
        height: 150px;
    }
}
