:root {
    --bg-color: #121212;
    --surface-color: #1E1E1E;
    --primary-color: #00BFFF;
    --text-color: #EAEAEA;
    --subtle-text-color: #A0A0A0;
    --border-color: #333333;
    --logo-stage-color: #F5F5F5;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background-color: var(--bg-color); color: var(--text-color); line-height: 1.6; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Header */
header { background-color: rgba(18, 18, 18, 0.8); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border-color); padding: 15px 0; position: fixed; width: 100%; z-index: 1000; }
header .container { display: flex; justify-content: space-between; align-items: center; }
.logo img { height: 35px; }
nav { display: flex; align-items: center; gap: 25px; }
nav a { color: var(--subtle-text-color); text-decoration: none; font-weight: 600; transition: color 0.3s ease; }
nav a:hover:not(.btn-nav) { color: var(--primary-color); }

/* Buttons */
.btn { display: inline-block; padding: 12px 28px; border-radius: 8px; text-decoration: none; font-weight: 600; transition: all 0.3s ease; border: 2px solid transparent; cursor: pointer; }
.btn-primary { background-color: var(--primary-color); color: #000; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 4px 15px rgba(0, 191, 255, 0.3); }
.btn-secondary { background-color: transparent; color: var(--primary-color); border-color: var(--primary-color); }
.btn-secondary:hover { background-color: var(--primary-color); color: #000; }
.btn-nav { padding: 8px 20px; font-size: 0.9rem; background-color: var(--primary-color); color: #000; }
.btn-nav:hover { background-color: #FFF; color: #000; transform: translateY(-2px); }

/* General Sections */
section { text-align: center; } /* Base alignment */
#hero { background-color: var(--bg-color); }
#winners { background-color: var(--bg-color); }
#philosophy { background-color: var(--surface-color); }

/* Hero Section */
#hero { min-height: 90vh; display: flex; align-items: center; justify-content: center; padding: 80px 0; }
#hero h1 { font-size: 3.5rem; font-weight: 700; color: #FFFFFF; margin-bottom: 10px; }
#hero .hero-subhead { font-size: 2.5rem; font-weight: 600; color: var(--subtle-text-color); margin-bottom: 20px; }
#hero .tagline { font-size: 1.1rem; max-width: 600px; margin: 0 auto 40px auto; color: var(--text-color); }
.cta-buttons { display: flex; justify-content: center; gap: 20px; }

/* Shared Content Styles */
section h2 { font-size: 2.5rem; margin-bottom: 20px; }
section .subtitle, section p { max-width: 700px; margin: 0 auto 30px auto; color: var(--subtle-text-color); }

/* Winners Grid */
.awards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-top: 50px; }
.award-card { background-color: var(--surface-color); padding: 30px; border-radius: 8px; border: 1px solid var(--border-color); text-align: center; transition: all 0.3s ease; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.award-card:hover { transform: translateY(-5px); border-color: var(--primary-color); }
.award-card .logo-bg { width: 100%; height: 80px; display: flex; align-items: center; justify-content: center; border-radius: 6px; margin-bottom: 20px; background-color: transparent; transition: background-color 0.3s ease; }
.award-card img { height: 60px; width: 100%; object-fit: contain; filter: grayscale(100%) invert(100%) opacity(0.7); transition: filter 0.3s ease; }
.award-card:hover .logo-bg { background-color: var(--logo-stage-color); }
.award-card:hover img { filter: none; }
.award-card h4 { font-size: 1.1rem; color: var(--text-color); font-weight: 600; }

/* Philosophy Section */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; text-align: left; margin-top: 50px; list-style: none; }
.pillars li { background-color: var(--bg-color); padding: 30px; border-radius: 8px; border: 1px solid var(--border-color); }
.pillars h3 { color: var(--primary-color); margin-bottom: 10px; }

/* Footer */
footer { background-color: #000; padding: 60px 0; text-align: center; border-top: 1px solid var(--border-color); }
footer h3 { font-size: 2rem; margin-bottom: 15px; }
.footer-links { display: flex; flex-direction: column; align-items: center; gap: 20px; margin-top: 40px; }
.footer-links a, .social-links a { color: var(--subtle-text-color); text-decoration: none; transition: color 0.3s ease; }
.footer-links a:hover, .social-links a:hover { color: var(--primary-color); }
.social-links { display: flex; gap: 25px; }
.social-links svg { width: 24px; height: 24px; }

/* Custom On-Page Form */
.custom-form { display: flex; flex-direction: column; align-items: center; gap: 20px; max-width: 500px; margin: 30px auto 40px auto; }
.custom-form input[type="email"] { width: 100%; padding: 14px; border-radius: 8px; border: 1px solid var(--border-color); background-color: var(--surface-color); color: var(--text-color); font-size: 1rem; text-align: center; }
.checkbox-group { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }
.checkbox-group label { display: flex; align-items: center; cursor: pointer; font-size: 0.9rem; color: var(--subtle-text-color); }
.checkbox-group input[type="checkbox"] { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; border: 2px solid var(--border-color); border-radius: 4px; background-color: var(--bg-color); cursor: pointer; position: relative; top: -1px; margin-right: 12px; }
.checkbox-group input[type="checkbox"]:checked { background-color: var(--primary-color); border-color: var(--primary-color); }
.checkbox-group input[type="checkbox"]:checked::after { content: '✓'; color: #000; font-weight: bold; font-size: 14px; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.thank-you-message { display: none; color: var(--primary-color); font-weight: bold; margin-top: 30px; }

/* Modal Styles */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(5px); display: none; align-items: center; justify-content: center; z-index: 2000; opacity: 0; transition: opacity 0.3s ease; }
.modal-overlay.active { display: flex; opacity: 1; }
.modal-content { position: relative; background: var(--surface-color); padding: 40px; border-radius: 8px; max-width: 600px; width: 90%; max-height: 90vh; overflow-y: auto; transform: scale(0.95); transition: transform 0.3s ease; }
.modal-overlay.active .modal-content { transform: scale(1); }
.close-button { position: absolute; top: 15px; right: 20px; font-size: 2rem; font-weight: bold; color: var(--subtle-text-color); cursor: pointer; transition: color 0.3s ease; }
.close-button:hover { color: var(--text-color); }
.modal-header { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--border-color); padding-bottom: 20px; }
.modal-header .logo-bg { flex-shrink: 0; width: 150px; height: 80px; display: flex; align-items: center; justify-content: center; background-color: var(--logo-stage-color); border-radius: 6px; }
#modal-logo { max-width: 120px; max-height: 60px; object-fit: contain; }
#modal-award-title { font-size: 1.5rem; }
#modal-description { font-size: 1rem; line-height: 1.7; color: var(--subtle-text-color); }
.runner-up { margin-top: 20px; padding-top: 15px; border-top: 1px solid var(--border-color); font-size: 0.9rem; color: var(--subtle-text-color); }
.runner-up strong { color: var(--text-color); }

/* Responsive */
@media (max-width: 768px) {
    #hero h1 { font-size: 2.5rem; }
    #hero .hero-subhead { font-size: 1.8rem; }
}

/* --- FINAL SPACING & BORDER FIX --- */
main > section {
    padding: 100px 0; /* Ensures all sections have vertical "breathing room" */
    border-top: 1px solid var(--border-color);
}
main > section:first-child {
    border-top: none; /* Removes unnecessary border on the first section */
    padding-top: 0; /* The hero section gets its top space from its own layout */
}