/* --- Global Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Modern stack */
}

body {
    /* Changed from #f4f4f9 to your brand Dark Blue */
    background-color: #f5f5f5; 
    color: #ffffff; /* Switched text to white for readability against dark blue */
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- Navigation (Shared across all pages) --- */
nav {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 10%;
    background-color: #001f3f; /* Dark Blue */
    color: white;
}

.logo-container {
    display: flex;
    align-items: center;
}

.company-logo {
    height: 50px;
    width: auto;
    margin-right: 15px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

nav ul li a:hover {
    color: #009999; /* Light Teal hover */
}

/* --- Balanced Video Hero --- */
.video-hero {
    width: 100%;
    height: 85vh; /* Standard height for PC */
    background-color: #000000; /* Fills the rest of the screen with black */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 0;
    margin: 0;
}

#main-logo-video {
    width: 100%;
    height: 100%;
    /* KEY: 'contain' ensures the whole logo is visible without cropping */
    object-fit: contain; 
    
    /* Limits how large the logo gets on ultra-wide or 4K monitors */
    max-width: 1200px; 
    max-height: 80vh; 
    
    display: block;
}

/* --- Mobile-Specific Fix --- */
@media (max-width: 768px) {
    .video-hero {
        /* Shorter container for phones so there isn't too much black space */
        height: 50vh; 
    }
    
    #main-logo-video {
        max-width: 100%;
        max-height: 100%;
    }
}


/* Container to handle internal spacing and centering */
.hero-content {
    max-width: 800px; /* Limits width on large screens */
    padding: 20px;
    text-align: center; /* Centers all child text and buttons */
}

.hero-content h1 {
    font-size: 3.5rem; /* Large headline */
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 40px auto; /* Centers text block and adds large bottom space */
}

/* Centered main Hero button */
.btn-hero-main {
    padding: 15px 35px;
    background-color: #c0c0c0; /* Silver */
    color: #001f3f; /* Dark Blue */
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.1rem;
    display: inline-block; /* Essential for text-align to center it */
    transition: 0.3s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.btn-hero-main:hover {
    background-color: #009999; /* Teal hover */
    color: white;
    box-shadow: 0 6px 8px rgba(0,0,0,0.3);
}

/* --- General Content Layout (Used on team.html and contact.html) --- */
.container {
    padding: 80px 10%; /* More top/bottom padding for separation */
    text-align: center;
    flex: 1; /* Pushes footer down */
}

.page-title {
    margin-bottom: 40px;
    font-size: 3rem;
    color: #001f3f;
}

/* --- Team Section (team.html) --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Better spacing */
    gap: 40px;
    margin-top: 50px;
    text-align: left; /* Biographies align left */
}

.profile-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.profile-card:hover {
    transform: translateY(-5px); /* Subtle interaction */
}

.profile-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px auto; /* Centered above text */
    border: 4px solid #009999; /* Teal border */
    display: block;
}

.profile-card h3 {
    text-align: center; /* Center names and titles */
    color: #001f3f;
    margin-bottom: 5px;
}

.title {
    text-align: center;
    font-weight: bold;
    color: #009999;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.bio {
    font-size: 0.95rem;
    color: #555;
}

/* --- Contact Section (contact.html) --- */
.contact-header {
    margin-bottom: 60px;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

.contact-header p {
    font-size: 1.1rem;
    color: #555;
}

.form-container {
    max-width: 650px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    text-align: left;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #001f3f;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background-color: #001f3f;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    transition: 0.3s;
}

.btn-submit:hover {
    background-color: #009999;
}

/* --- Footer (Shared across all pages) --- */
footer {
    text-align: center;
    padding: 25px;
    background-color: #001f3f;
    color: white;
    margin-top: auto; /* Keeps footer at bottom of content */
}

/* --- Responsive Hamburger Menu --- */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    #nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #001f3f;
        text-align: center;
        padding: 20px 0;
        box-shadow: 0 4px 6px rgba(0,0,0,0.2);
        z-index: 100;
        margin: 0;
    }

    #nav-links.active {
        display: flex;
    }

    #nav-links li {
        margin: 15px 0;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}