/* Hackathon Page Styles */

/* Override root vars for hackathon theme */
.hackathon-page {
    --hack-bg: #09082F;
    --hack-teal: #53FAD4;
    --hack-teal-border: #7CFFE2;
    --hack-white: #FFFFF7;
    --hack-gray: #9d9d9d;
    --hack-section-padding: 8rem;
}

.hackathon-page body,
body.hackathon-page {
    background-color: var(--hack-bg);
}

/* Hero Section with Video Background */
.hack-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hack-hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hack-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(9, 8, 47, 0.4) 0%,
        rgba(9, 8, 47, 0.6) 50%,
        rgba(9, 8, 47, 0.85) 100%
    );
    z-index: 1;
}

.hack-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1000px;
    padding: var(--nav-height) 2rem 2rem;
}

.hack-hero-subline {
    font-size: 16px;
    font-weight: 700;
    color: var(--hack-teal);
    text-transform: uppercase;
    letter-spacing: 1.92px;
    margin-bottom: 1.5rem;
}

.hack-hero-title {
    font-size: clamp(2.5rem, 5vw, 4.375rem);
    font-weight: 600;
    color: var(--hack-white);
    line-height: 1.11;
    margin-bottom: 2rem;
}

.hack-hero-desc {
    font-size: clamp(1rem, 1.8vw, 1.375rem);
    font-weight: 400;
    color: var(--hack-white);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    max-width: 875px;
    margin-left: auto;
    margin-right: auto;
}

.hack-hero-bold {
    font-size: clamp(0.95rem, 1.5vw, 1.125rem);
    font-weight: 700;
    color: var(--hack-white);
    margin-bottom: 2.5rem;
}

.hack-btn-primary {
    display: inline-block;
    background: var(--hack-teal);
    border: 2px solid var(--hack-teal-border);
    color: #070923;
    font-family: 'Poppins', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    padding: 1rem 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
}

.hack-btn-primary:hover {
    background: var(--hack-teal-border);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(83, 250, 212, 0.4);
}

.hack-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--hack-teal);
    font-family: 'Poppins', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hack-btn-secondary:hover {
    opacity: 0.8;
    transform: translateX(4px);
}

.hack-btn-secondary svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.hack-btn-secondary:hover svg {
    transform: translate(2px, -2px);
}

.hack-link-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--hack-teal);
    font-family: 'Poppins', sans-serif;
    font-size: 1.125rem;
    font-weight: 400;
    text-decoration: none;
}

.hack-link-secondary:hover {
    opacity: 0.8;
}

/* Impact Stats Section */
.hack-stats {
    padding: var(--hack-section-padding) 0;
    background: var(--hack-bg);
}

.hack-stats-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hack-stats .impact-stats {
    grid-template-columns: repeat(2, 1fr);
}

.hack-stats .stat-card {
    background: rgba(83, 250, 212, 0.05);
    border-color: rgba(83, 250, 212, 0.2);
    padding: 1.5rem 2rem;
}

.hack-stats .stat-card:hover {
    box-shadow: 0 15px 35px rgba(83, 250, 212, 0.3);
    border-color: var(--hack-teal);
    background: rgba(83, 250, 212, 0.1);
}

.hack-stats .stat-card::before {
    background: linear-gradient(90deg, var(--hack-teal), var(--hack-teal-border));
}

.hack-stats .stat-icon {
    color: var(--hack-teal);
}

.hack-stats .stat-icon svg {
    filter: drop-shadow(0 0 8px rgba(83, 250, 212, 0.5));
}

.hack-stats .stat-number {
    color: var(--hack-teal);
}

.hack-stats .stat-label {
    color: var(--hack-white);
}

/* Why This Matters Section */
.hack-why {
    padding: var(--hack-section-padding) 0;
    background: var(--hack-bg);
}

.hack-why-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 4rem;
}

.hack-why-subline {
    font-size: 16px;
    font-weight: 700;
    color: var(--hack-teal);
    text-transform: uppercase;
    letter-spacing: 1.92px;
    margin-bottom: 1.25rem;
}

.hack-why-title {
    font-size: clamp(1.75rem, 3vw, 2.3125rem);
    font-weight: 300;
    color: var(--hack-white);
    line-height: 1.43;
}

.hack-why-text {
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--hack-white);
    line-height: 1.75;
    margin-bottom: 2.5rem;
}

.hack-why-text .highlight {
    color: var(--hack-teal);
}

/* Vienna HQ Section */
.hack-vienna {
    padding: var(--hack-section-padding) 0;
    background: linear-gradient(212deg, rgba(83, 250, 212, 0.15) 10%, var(--hack-bg) 45%);
    position: relative;
    overflow: hidden;
}

.hack-vienna-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 6rem;
    padding: 5rem 2rem;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
}

.hack-vienna-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('assets/applications/2026-04-hackathon/world_background.png') center center / contain no-repeat;
    opacity: 0.65;
    pointer-events: none;
}

.hack-vienna-header > * {
    position: relative;
    z-index: 1;
}

.hack-vienna-subline {
    font-size: 16px;
    font-weight: 700;
    color: var(--hack-teal);
    text-transform: uppercase;
    letter-spacing: 1.92px;
    margin-bottom: 1rem;
}

.hack-vienna-title {
    font-size: clamp(1.75rem, 3vw, 2.3125rem);
    font-weight: 300;
    color: var(--hack-white);
    line-height: 1.43;
    margin-bottom: 2rem;
}

.hack-vienna-desc {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--hack-white);
    line-height: 1.7;
}

.hack-vienna-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 4rem;
    align-items: center;
}

.hack-vienna-content > div:first-child {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.hack-benefits-subline {
    font-size: 16px;
    font-weight: 700;
    color: var(--hack-teal);
    text-transform: uppercase;
    letter-spacing: 1.92px;
    margin-bottom: 1.75rem;
    padding-top: 2.5rem;
}

.hack-benefits-list {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 3rem;
}

.hack-benefits-list li {
    font-size: 1.125rem;
    color: var(--hack-white);
    line-height: 1.6;
    margin-bottom: 0.875rem;
}

.hack-video-wrapper {
    position: relative;
    width: 100%;
    max-height: calc(90vh - var(--nav-height));
    max-height: calc(90dvh - var(--nav-height));
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

.hack-video-wrapper video {
    width: 100%;
    display: block;
    object-fit: cover;
    border-radius: 8px;
    /* Crop ~4% top and bottom by shifting the video up and reducing visible height */
    margin-top: -32%;
    margin-bottom: -32%;
}

.hack-video-caption {
    font-size: 1rem;
    color: var(--hack-gray);
    margin-top: 1.25rem;
    line-height: 1.6;
}

/* Vienna content centered variant */
.hack-vienna-content--centered {
    grid-template-columns: 1fr;
    max-width: 700px;
    text-align: center;
}

.hack-vienna-content--centered .hack-benefits-list {
    text-align: left;
    display: inline-block;
}

/* Vienna section image */
.hack-vienna-image-wrapper {
    border-radius: 12px;
    overflow: hidden;
    line-height: 0;
}

.hack-vienna-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

/* Timeline & Aftermovie Section */
.hack-timeline-section {
    padding: var(--hack-section-padding) 0;
    background: var(--hack-bg);
}

.hack-timeline-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 5rem;
    align-items: center;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 4rem;
}

.hack-timeline-left {
    /* video side */
}

.hack-timeline-right {
    /* timeline side */
}

.hack-timeline-subline {
    font-size: 16px;
    font-weight: 700;
    color: var(--hack-teal);
    text-transform: uppercase;
    letter-spacing: 1.92px;
    margin-bottom: 1rem;
}

.hack-timeline-title {
    font-size: clamp(1.75rem, 3vw, 2.3125rem);
    font-weight: 300;
    color: var(--hack-white);
    line-height: 1.43;
    margin-bottom: 3rem;
}

.hack-timeline {
    position: relative;
    padding-left: 2rem;
}

/* Vertical line */
.hack-timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: rgba(83, 250, 212, 0.2);
}

.hack-timeline-item {
    position: relative;
    padding-bottom: 2.25rem;
}

.hack-timeline-item:last-child {
    padding-bottom: 0;
}

.hack-timeline-marker {
    position: absolute;
    left: -2rem;
    top: 6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--hack-bg);
    border: 2px solid rgba(83, 250, 212, 0.4);
    z-index: 1;
    transition: all 0.3s ease;
}

.hack-timeline-item--active .hack-timeline-marker {
    background: var(--hack-teal);
    border-color: var(--hack-teal);
    box-shadow: 0 0 12px rgba(83, 250, 212, 0.6), 0 0 24px rgba(83, 250, 212, 0.3);
}

.hack-timeline-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.hack-timeline-date {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--hack-teal);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hack-timeline-label {
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--hack-white);
    line-height: 1.5;
}

.hack-timeline-badge {
    display: inline-block;
    background: var(--hack-teal);
    color: var(--hack-bg);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    margin-left: 0.5rem;
    vertical-align: middle;
}

/* Event Details Section */
.hack-details {
    padding: var(--hack-section-padding) 0;
    background: var(--hack-bg);
}

.hack-details-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 4rem;
}

.hack-details-title {
    font-size: clamp(1.75rem, 3vw, 2.3125rem);
    font-weight: 300;
    color: var(--hack-white);
    line-height: 1.43;
    margin-bottom: 2rem;
    text-align: center;
}

.hack-details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.hack-detail-card {
    border: 1px solid var(--hack-teal);
    padding: 3rem 2rem 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hack-detail-label {
    font-size: 16px;
    font-weight: 700;
    color: var(--hack-teal);
    text-transform: uppercase;
    letter-spacing: 1.92px;
}

.hack-detail-value {
    font-size: clamp(1rem, 1.5vw, 1.375rem);
    font-weight: 400;
    color: white;
    line-height: 1.5;
}

/* CTA / Sign Up Section */
.hack-cta {
    padding: var(--hack-section-padding) 0;
    background: linear-gradient(170deg, rgba(83, 250, 212, 0.25) 0%, var(--hack-bg) 50%);
}

.hack-cta-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.hack-cta-subline {
    font-size: 16px;
    font-weight: 700;
    color: var(--hack-teal);
    text-transform: uppercase;
    letter-spacing: 1.92px;
    margin-bottom: 1rem;
}

.hack-cta-title {
    font-size: clamp(1.75rem, 3vw, 2.3125rem);
    font-weight: 300;
    color: white;
    line-height: 1.43;
    margin-bottom: 3.5rem;
}

.hack-cta-note {
    font-size: 1.125rem;
    color: white;
    margin-top: 2rem;
    line-height: 1.7;
    opacity: 0.8;
}

/* Partners Section */
.hack-partners {
    padding: var(--hack-section-padding) 0;
    background: var(--hack-bg);
}

.hack-partners-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.hack-partners-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--hack-teal);
    text-transform: uppercase;
    letter-spacing: 1.92px;
    margin-bottom: 2.5rem;
}

.hack-partners-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.hack-partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 2.5rem;
}

.hack-partner-logo img {
    height: 70px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    display: block;
    opacity: 0.9;
    filter: drop-shadow(0 0 8px rgba(83, 250, 212, 0.15));
    transition: all 0.3s ease;
}

.hack-partner-logo:hover img {
    opacity: 1;
    filter: drop-shadow(0 0 15px rgba(83, 250, 212, 0.3));
}

/* Klartext logo needs more vertical space */
.hack-partner-logo:has(img[alt="Klartext AI"]) img {
    height: 110px;
}

/* FAQ Section */
.hack-faq {
    padding: var(--hack-section-padding) 0;
    background: var(--hack-bg);
}

.hack-faq-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hack-faq-title {
    font-size: clamp(1.75rem, 3vw, 2.3125rem);
    font-weight: 300;
    color: var(--hack-white);
    line-height: 1.43;
    margin-bottom: 4rem;
    text-align: center;
}

.hack-faq-item {
    border-bottom: 1px solid rgba(83, 250, 212, 0.2);
    padding: 2.5rem 0;
}

.hack-faq-question {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--hack-teal);
    margin-bottom: 1rem;
}

.hack-faq-answer {
    font-size: 1rem;
    color: var(--hack-white);
    line-height: 1.75;
    opacity: 0.9;
}

/* Hackathon Nav override */
.hackathon-page .navbar {
    background: rgba(5, 4, 25, 0.95);
}

/* AIM-logo-black.png already has light elements for dark backgrounds - no filter needed */

/* Responsive */
@media (max-width: 768px) {
    .hackathon-page {
        --hack-section-padding: 4rem;
    }

    .hack-hero {
        min-height: 100vh;
        min-height: 100dvh;
        height: 100vh;
        height: 100dvh;
    }

    .hack-hero-content {
        padding: var(--nav-height) 1.5rem 2rem;
        text-align: center;
    }

    .hack-hero-desc {
        display: none;
    }

    /* Why section */
    .hack-why-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1.5rem;
        text-align: center;
    }

    .hack-why-text {
        text-align: center;
    }

    .hack-why-grid > div {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Vienna section */
    .hack-vienna-header {
        margin-bottom: 3rem;
        padding: 3rem 1.5rem;
        text-align: center;
    }

    .hack-vienna-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 0 1.5rem;
        text-align: center;
    }

    .hack-vienna-content--centered {
        padding: 0 1.5rem;
    }

    .hack-vienna-content > div:first-child {
        align-items: center;
    }

    .hack-benefits-subline {
        text-align: center;
    }

    .hack-benefits-list {
        text-align: left;
        width: 100%;
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }

    /* Timeline section */
    .hack-timeline-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 0 1.5rem;
    }

    .hack-timeline-right {
        text-align: center;
    }

    .hack-timeline-subline,
    .hack-timeline-title {
        text-align: center;
    }

    .hack-timeline {
        display: inline-block;
        text-align: left;
    }

    .hack-video-caption {
        text-align: center;
    }

    /* Stats section */
    .hack-stats .impact-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .hack-stats .stat-number {
        font-size: 2.75rem;
    }

    .hack-stats .stat-label {
        font-size: 0.9rem;
    }

    /* Details section */
    .hack-details-inner {
        padding: 0 1.5rem;
    }

    .hack-details-grid {
        grid-template-columns: 1fr;
    }

    .hack-detail-card {
        padding: 1.5rem;
        text-align: center;
        align-items: center;
    }

    /* Partners section */
    .hack-partners-grid {
        column-gap: 1.5rem;
        row-gap: 0.5rem;
    }

    .hack-partner-logo {
        padding: 0.5rem 1.5rem;
    }

    .hack-partner-logo img {
        max-height: 80px;
    }

    /* FAQ section */
    .hack-faq-inner {
        padding: 0 1.5rem;
    }

    .hack-faq-item {
        padding: 2rem 0;
        text-align: center;
    }

    .hack-faq-answer {
        text-align: left;
    }

    /* CTA section */
    .hack-cta-inner {
        padding: 0 1.5rem;
    }

    /* Buttons */
    .hack-btn-primary {
        font-size: 1rem;
        padding: 0.875rem 1.25rem;
        width: 100%;
        display: block;
    }

    .hack-btn-secondary {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hackathon-page {
        --hack-section-padding: 3.5rem;
    }

    .hack-hero-content {
        padding: var(--nav-height) 1.25rem 1.5rem;
    }

    .hack-hero-title {
        font-size: 2rem;
    }

    .hack-hero-desc {
        font-size: 0.95rem;
        display: none;
    }

    .hack-why-title,
    .hack-vienna-title,
    .hack-details-title,
    .hack-timeline-title,
    .hack-cta-title,
    .hack-faq-title {
        font-size: 1.5rem;
    }

    .hack-why-grid,
    .hack-vienna-content,
    .hack-details-inner,
    .hack-timeline-inner,
    .hack-faq-inner,
    .hack-cta-inner,
    .hack-stats-inner,
    .hack-partners-inner {
        padding: 0 1.25rem;
    }

    .hack-vienna-header {
        padding: 2.5rem 1.25rem;
    }

    .hack-faq-item {
        padding: 1.75rem 0;
    }

    .hack-why-text {
        font-size: 1rem;
    }

    .hack-benefits-list li {
        font-size: 1rem;
    }

    .hack-stats .stat-number {
        font-size: 2.25rem;
    }

    .hack-stats .stat-label {
        font-size: 0.85rem;
    }

    .hack-stats .stat-icon svg {
        width: 28px;
        height: 28px;
    }
}
