:root {
    --bg: #0a0a0a;
    --surface: #121212;
    --primary: #00ff41;
    --text: #e0e0e0;
    --muted: #888;
    --encrypted-bg: #222;
    --border: #333;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    margin: 0;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, .mono {
    font-family: 'Space Mono', monospace;
    text-transform: uppercase;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Mission Dates Display */
.mission-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border);
    padding: 15px 25px;
    margin-bottom: 40px;
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    background: rgba(255,255,255,0.02);
    flex-wrap: wrap;
    gap: 20px;
}

.header-logo {
    height: 50px;
    width: auto;
    filter: brightness(1.1);
}

.status-items {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    flex: 1;
    justify-content: flex-end;
}

.status-item span {
    color: var(--primary);
    font-weight: bold;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .mission-status {
        justify-content: center;
    }

    .header-logo {
        height: 40px;
    }

    .status-items {
        justify-content: center;
        width: 100%;
    }

    .status-item {
        font-size: 0.8rem;
    }
}

/* Top Secret Banner */
.banner {
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 10px;
    text-align: center;
    font-weight: bold;
    letter-spacing: 5px;
    margin-bottom: 60px;
    position: relative;
    animation: flicker 2s infinite;
}

@keyframes flicker {
    0% { opacity: 1; }
    50% { opacity: 0.8; }
    100% { opacity: 1; }
}

/* Hero Section */
header {
    text-align: center;
    margin-bottom: 80px;
}

h1 {
    font-size: 3rem;
    margin: 0;
    color: #fff;
    letter-spacing: -1px;
    line-height: 1.1;
}

.subheadline {
    font-size: 1.2rem;
    color: var(--muted);
    margin-top: 20px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

/* Encrypted Text Effect */
.encrypted {
    background-color: var(--encrypted-bg);
    color: var(--encrypted-bg);
    padding: 0 4px;
    transition: all 0.3s ease;
    cursor: help;
    border-radius: 2px;
    position: relative;
}

.encrypted::after {
    content: '[TITKOSÍTVA]';
    font-size: 0.6rem;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #444;
}

.encrypted:hover {
    color: var(--primary);
    background: transparent;
}

.encrypted:hover::after {
    display: none;
}

/* Form / Registration */
.cta-box {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 40px;
    text-align: center;
    border-radius: 4px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

input[type="email"] {
    background: #1a1a1a;
    border: 1px solid var(--border);
    padding: 15px;
    width: 75%;
    color: white;
    font-family: inherit;
    margin-bottom: 20px;
    outline: none;
    max-width: 400px;
}

input[type="email"]:focus {
    border-color: var(--primary);
}

button {
    background: var(--primary);
    color: black;
    border: none;
    padding: 15px 40px;
    font-weight: bold;
    font-family: 'Space Mono', monospace;
    cursor: pointer;
    transition: transform 0.2s;
}

button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.4);
}

/* Timeline Section */
.timeline {
    margin: 80px 0;
    border-left: 1px solid var(--border);
    padding-left: 30px;
}

.step {
    margin-bottom: 40px;
    position: relative;
}

.step::before {
    content: '';
    position: absolute;
    left: -36px;
    top: 5px;
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
}

.step-title {
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 5px;
}

footer {
    text-align: center;
    color: var(--muted);
    font-size: 0.8rem;
    margin-top: 100px;
    padding-top: 60px;
    padding-bottom: 40px;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto 40px;
    text-align: left;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-heading {
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    color: var(--primary);
    margin: 0 0 20px 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-contact-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.footer-contact-item:hover {
    color: var(--primary);
}

.footer-contact-item:hover .footer-icon {
    stroke: var(--primary);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.footer-link:hover {
    color: var(--primary);
}

.footer-link:hover .footer-icon {
    stroke: var(--primary);
}

.footer-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    stroke: var(--muted);
    transition: stroke 0.3s ease;
}

.footer-copyright {
    color: var(--muted);
    font-size: 0.75rem;
    margin: 30px 0 0 0;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

/* Footer Social Media */
.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-social-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--muted);
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
}

.footer-social-item:hover {
    color: var(--primary);
    background: rgba(0, 255, 65, 0.1);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.footer-social-item .footer-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
    stroke: none;
}

/* Mobile responsive for footer */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (min-width: 769px) and (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

.stamp {
    position: absolute;
    top: -20px;
    right: -20px;
    border: 4px solid #ff4444;
    color: #ff4444;
    padding: 5px 15px;
    font-weight: bold;
    transform: rotate(15deg);
    opacity: 0.7;
    pointer-events: none;
    font-family: 'Space Mono', monospace;
}

/* FAQ Styles */
.faq-item {
    border-bottom: 1px solid var(--border);
    margin-bottom: 10px;
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 20px 0;
    color: var(--text);
    font-family: 'Space Mono', monospace;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.2s;
}

.faq-question:hover {
    color: var(--primary);
    transform: none;
    box-shadow: none;
}

/* Modern Grid Animation for smooth height transition */
.faq-answer-wrapper {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease-out;
}

.faq-item.active .faq-answer-wrapper {
    grid-template-rows: 1fr;
}

.faq-answer {
    overflow: hidden;
    color: var(--muted);
    font-size: 0.95rem;
    padding-right: 20px;
}

/* Inner padding applied to the content, not the wrapper, to prevent jumps */
.faq-answer-content {
    padding-bottom: 20px;
}

.faq-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: var(--primary);
}

/* Email Validation Styles */
.email-input {
    width: 75%;
    max-width: 400px;
    padding: 15px;
    font-size: 16px;
    background: #1a1a1a;
    border: 1px solid var(--border);
    color: white;
    font-family: inherit;
    outline: none;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.email-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 255, 65, 0.1);
}

.email-input.valid {
    border-color: var(--primary);
    background-color: rgba(0, 255, 65, 0.05);
}

.email-input.invalid {
    border-color: #ff4444;
    background-color: rgba(255, 68, 68, 0.05);
}

.email-input.shake {
    animation: shake 0.5s ease;
}

/* Email Validation Feedback */
.email-validation-feedback {
    font-family: 'Inter', sans-serif;
    text-align: left;
    max-width: 400px;
    margin: 10px auto 0;
    padding: 0;
    font-size: 14px;
    min-height: 24px;
    animation: fadeIn 0.3s ease;
}

.email-validation-feedback.error {
    color: #ff6666;
}

.email-validation-feedback.success {
    color: var(--primary);
    font-weight: 500;
    padding: 8px 12px;
    background-color: rgba(0, 255, 65, 0.1);
    border-left: 3px solid var(--primary);
    border-radius: 4px;
}

/* Validation Error List */
.validation-errors {
    list-style: none;
    margin: 0;
    padding: 8px 12px;
    background-color: rgba(255, 68, 68, 0.1);
    border-left: 3px solid #ff4444;
    border-radius: 4px;
}

.validation-errors li {
    color: #ff6666;
    padding: 4px 0;
    display: flex;
    align-items: flex-start;
}

.validation-errors li:before {
    content: '✕';
    margin-right: 8px;
    font-weight: bold;
    flex-shrink: 0;
}

/* Validation Warnings List */
.validation-warnings {
    list-style: none;
    margin: 8px 0 0 0;
    padding: 8px 12px;
    background-color: rgba(255, 152, 0, 0.1);
    border-left: 3px solid #ff9800;
    border-radius: 4px;
}

.validation-warnings li {
    color: #ffb74d;
    padding: 4px 0;
    display: flex;
    align-items: flex-start;
}

.validation-warnings li:before {
    content: '⚠';
    margin-right: 8px;
    flex-shrink: 0;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Submit Button Disabled State */
#submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Notification (for success messages) */
.notification {
    max-width: 500px;
    margin: 0 auto 20px;
    padding: 15px 20px;
    border-radius: 4px;
    text-align: center;
    font-family: 'Space Mono', monospace;
    animation: fadeIn 0.3s ease;
}

/* Visually Hidden (for screen readers) */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Terms acceptance text - barely visible */
.terms-text {
    font-size: 0.65rem;
    color: rgba(136, 136, 136, 0.5);
    margin-bottom: 8px;
    text-align: center;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.terms-checkbox {
    width: 14px;
    height: 14px;
    cursor: pointer;
    accent-color: var(--primary);
}

/* Links in terms text - underline only */
.terms-text a {
    color: inherit;
    text-decoration: underline;
}

/* Calendar button - shown after successful registration */
.calendar-button {
    display: none;
    margin-top: 15px;
    padding: 12px 30px;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: fadeIn 0.5s ease;
}

.calendar-button.show {
    display: inline-block;
}

.calendar-button:hover {
    background: var(--primary);
    color: black;
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.4);
}

/* Email help text after registration */
.email-help-text {
    font-size: 0.75rem;
    color: var(--muted);
    margin-top: 15px;
}

.email-help-text a {
    color: var(--primary);
    text-decoration: none;
}

.email-help-text a:hover {
    text-decoration: underline;
}

/* Back to homepage button */
.back-button {
    display: inline-block;
    padding: 15px 40px;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.back-button:hover {
    background: var(--primary);
    color: black;
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.4);
}

/* Organizers Section */
.organizers-section {
    margin-top: 80px;
    border-top: 1px solid var(--border);
    padding-top: 60px;
    margin-bottom: 60px;
}

.organizers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
    max-width: 700px;
    margin: 0 auto;
}

.organizer-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.organizer-image-wrapper {
    width: 200px;
    height: 200px;
    margin-bottom: 20px;
    position: relative;
}

.organizer-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border);
    transition: border-color 0.3s ease;
    background: var(--surface);
    color: transparent;
    font-size: 0;
}

.organizer-image:hover {
    border-color: var(--primary);
}

.organizer-name {
    font-size: 1.3rem;
    margin: 0 0 10px 0;
    color: var(--text);
    font-weight: bold;
}

.linkedin-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    text-decoration: none;
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.linkedin-link:hover {
    color: var(--primary);
}

.linkedin-icon {
    width: 20px;
    height: 20px;
}

.organizer-title {
    color: var(--muted);
    font-size: 1rem;
    margin: 0;
    font-style: italic;
}

/* Mobile responsive for organizers */
@media (max-width: 768px) {
    .organizers-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .organizer-image-wrapper {
        width: 150px;
        height: 150px;
    }

    .organizer-name {
        font-size: 1.1rem;
    }
}
