:root {
    --accent-color: #D50000;
    --accent-color-hover: #E53935; /* Lighter red for hover state */
    --text-color: #212121;
    --background-color: #FFFFFF;
    --placeholder-bg: #cccccc;
    --hard-shadow: 4px 4px 0 #CCCCCC;
    --hard-shadow-hover: 6px 6px 0 #CCCCCC; /* More distant shadow for hover */
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    overflow-x: hidden; 
}

.container {
    width: 90%; 
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 0; 
}

h2.section-title {
    font-family: 'DM Mono', monospace;
    color: var(--accent-color);
    font-weight: 400; 
}

.logo-static {
    position: absolute; 
    top: 20px;
    left: 20px;
    width: 50px; 
    height: 50px;
    z-index: 1000;
}

/* --- PARALLAX HERO STYLES --- */
.hero {
    width: 100%; 
    height: 450px;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center; 
    box-sizing: border-box;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: url('assets/banner.gif'); 
    background-size: cover;                     
    background-position: center;                
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

.hero-text-container {
    display: inline-block; 
    text-align: left;
    max-width: 100%;
}

.hero h1 {
    font-family: 'DM Mono', monospace;
    background-color: var(--accent-color);
    color: white;
    font-weight: 450;
    white-space: nowrap;
    margin: 0;
    font-size: 3.25rem; 
    padding: 10px 30px;
}

.hero .progress-container {
    font-family: 'DM Mono', monospace;
    background-color: #333;
    color: white;
    font-weight: 400;
    margin: 0;
    font-size: 1rem;
    padding: 8px 30px;
}

#progress-update { /* No changes needed */ }

@keyframes blink { 50% { border-color: transparent; } }

/* About Section */
.about-header {
    text-align: center; 
}
.about-header h2 {
    margin-bottom: 20px;
    text-align: left;
}

.try-button {
    background-color: var(--accent-color);
    color: #FFFFFF;
    padding: 10px 20px;
    text-decoration: none;
    font-family: 'DM Mono', monospace;
    font-weight: 400;
    white-space: nowrap;
    box-shadow: var(--hard-shadow);
    display: none; 
    transition: background-color 0.3s ease, box-shadow 0.3s ease; /* Smooth transition */
}
.try-button:hover {
    background-color: var(--accent-color-hover);
    box-shadow: var(--hard-shadow-hover);
}

.content p {
    text-align: left;
    line-height: 1.6;
    margin-bottom: 20px;
}

.content p:last-of-type {
    margin-bottom: 40px;
}

.content strong {
    font-weight: 700;
    color: #000000;
}

/* Features Grid */
.features-grid {
    display: block; 
}
.feature-item {
    width: 100%;
    margin-bottom: 40px; 
}
.feature-item:last-child {
    margin-bottom: 0;
}
.feature-item img {
    width: 100%;
    object-fit: cover;
    aspect-ratio: 16/10; 
    margin-bottom: 15px;
    box-shadow: var(--hard-shadow);
    border: 1px solid #757575;
}
.feature-item p {
    line-height: 1.6;
    color: var(--text-color);
    text-align: left;
}

/* Team & Awards Section */
.team-grid, .awards-grid {
    display: block; 
}
.team-member, .award-item {
    width: 90%; 
    max-width: 400px;
    margin: 0 auto 40px auto;
}
.team-member img {
    width: 100%;
    aspect-ratio: 1 / 1; 
    object-fit: cover;
    margin-bottom: 15px;
}
.award-item img { 
    width: 100%;
    height: 150px;
    object-fit: contain; 
    margin-bottom: 15px;
}
.award-item p {
    text-align: center;
}

/* Sub-Header Style */
.feature-item h3,
.team-member h3 {
    font-family: 'DM Mono', monospace;
    color: #424242;
    font-weight: 500;       
    margin-top: 0;
    font-size: 1.2em;
    text-transform: none;
    margin-bottom: 5px; 
}
.team-member p {
    margin: 5px 0 0;
    color: #757575;
}

/* Clickable Card Links & Hover States */
.team-member a,
.award-item a {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
    transition: transform 0.3s ease;
}
.team-member a:hover,
.award-item a:hover {
    transform: scale(1.03);
}
.team-member a:focus-visible,
.award-item a:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 3px;
    border-radius: 8px;
}

/* Contact Section */
.contact-section {
    text-align: left;
}

/* Form Styles */
#contact-form {
    margin-top: 20px;
}
.form-container {
    display: block; 
}
.form-left {
    min-width: 0; 
}
.form-right {
    padding-top: 30px; 
    margin-top: 30px;
    border-top: 1px solid #CCCCCC; 
}
.form-note {
    font-size: 0.9em;
    color: #757575;
    margin-top: 0;
    margin-bottom: 20px;
    text-align: left;
}
.form-group {
    margin-bottom: 20px;
}
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
#contact-form label {
    display: block;
    margin-bottom: 5px;
    color: var(--text-color);
}
#contact-form input,
#contact-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
    font-size: 1em;
    outline: none;
}
#contact-form textarea {
    resize: none;
}
#contact-form input:focus,
#contact-form textarea:focus {
    border-color: var(--accent-color);
}
.form-right .h-captcha {
    margin-bottom: 20px;
}
#submit-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: #FFFFFF;
    padding: 10px 20px;
    border: none;
    text-decoration: none;
    font-family: 'DM Mono', monospace;
    font-weight: 400;
    white-space: nowrap;
    box-shadow: var(--hard-shadow);
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease, box-shadow 0.3s ease; /* Smooth transition */
}
#submit-button:hover:not(:disabled) {
    background-color: var(--accent-color-hover);
    box-shadow: var(--hard-shadow-hover);
}
#submit-button:disabled {
    background-color: #757575;
    cursor: not-allowed;
    box-shadow: none;
}

/* Validation & Feedback Styles */
.hidden { display: none; }
.error-message {
    color: var(--accent-color);
    font-size: 0.8em;
    margin-top: 4px;
}
#form-feedback {
    margin-top: 20px;
    padding: 10px;
    border-radius: 4px;
}
#form-feedback.success {
    background-color: #d4edda;
    color: #155724;
}
#form-feedback.error {
    background-color: #f8d7da;
    color: #721c24;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 20px;
    color: #9E9E9E;
    font-size: 0.85em;
}
footer p {
    margin: 8px 0; 
}

/* --- RESPONSIVE BREAKPOINTS --- */

/* Tablet Styles */
@media (min-width: 768px) {
    .container {
        padding: 40px 20px; 
    }

    .try-button {
        display: inline-block; 
    }

    .about-header {
        display: flex; 
        justify-content: space-between;
        align-items: center;
    }

    .features-grid {
        display: flex;
        gap: 30px;
    }

    .team-grid, .awards-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
    .team-member, .award-item {
        width: 100%; 
        max-width: none;
        margin: 0;
    }

    .form-container {
        display: flex;
        gap: 30px;
        align-items: flex-start;
        flex-wrap: wrap; 
    }
    .form-left {
        flex-grow: 1; 
        flex-basis: 400px; 
    }
    .form-right {
        flex-shrink: 0; 
        flex-basis: 320px; 
        border-top: none; 
        margin-top: 0;
        padding-top: 0;
        border-left: 1px solid #CCCCCC; 
        padding-left: 30px;
    }
}

/* Desktop Styles */
@media (min-width: 1024px) {
    .logo-static {
        position: fixed; 
        width: 60px;
        height: 60px;
    }
}

/* Hide Hero and Logo on Small Screens */
@media (max-width: 850px) {
    .hero, .logo-static {
        display: none;
    }
}