:root {
    --bg: #050814;
    --panel: rgba(15, 23, 42, 0.76);
    --panel-strong: rgba(5, 8, 20, 0.86);
    --text: #f8fafc;
    --muted: #cbd5e1;
    --orange: #f97316;
    --purple: #7c3aed;
    --gold: #fbbf24;
    --border: rgba(255, 255, 255, 0.14);
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    margin: 0;
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

h1,
h2,
h3 {
    color: white;
    letter-spacing: -0.055em;
}

p {
    color: var(--muted);
    line-height: 1.75;
}

a {
    color: var(--orange);
}

a:hover {
    color: #fb923c;
}

h1:focus {
    outline: none;
}

.content {
    padding-top: 1.5rem;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #fed7aa;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.78rem;
}

.eyebrow::before {
    content: "";
    width: 2.25rem;
    height: 0.2rem;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--orange), var(--purple));
}

.hero {
    position: relative;
    min-height: calc(100vh - 8rem);
    display: grid;
    align-items: center;
    gap: 3rem;
    padding: 3rem 0 4rem;
}

.hero-home {
    grid-template-columns: 0.95fr 1.05fr;
}

.hero-copy {
    position: relative;
    z-index: 2;
}

.hero-copy h1,
.page-hero h1 {
    max-width: 850px;
    font-size: clamp(3.3rem, 7vw, 7.5rem);
    line-height: 0.88;
    font-weight: 1000;
    margin: 1rem 0;
    text-transform: uppercase;
    text-shadow: 0 18px 42px rgba(0, 0, 0, 0.65);
}

.hero-copy p,
.page-hero p {
    max-width: 660px;
    font-size: 1.2rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.gm-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.2rem;
    padding: 0.9rem 1.4rem;
    border-radius: 999px;
    font-weight: 950;
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.gm-button:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.gm-button.primary {
    color: white;
    background: linear-gradient(135deg, var(--orange), var(--purple));
    box-shadow: 0 18px 40px rgba(124, 58, 237, 0.34);
}

.gm-button.ghost {
    color: white;
    border-color: var(--border);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
}

.hero-photo-stack {
    position: relative;
    min-height: 620px;
}

.hero-photo-stack img,
.about-card img,
.gallery-grid img {
    width: 100%;
    object-fit: cover;
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.16);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}

.photo-main {
    position: absolute;
    right: 0;
    top: 4rem;
    height: 440px;
    transform: rotate(2deg);
}

.photo-small {
    position: absolute;
    width: 44% !important;
    height: 210px;
}

.photo-small-one {
    left: 0;
    top: 0;
    transform: rotate(-6deg);
}

.photo-small-two {
    left: 8%;
    bottom: 0;
    transform: rotate(5deg);
}

.stat-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: -1rem 0 3rem;
}

.stat-strip div {
    padding: 1.4rem;
    border-radius: 26px;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.14), rgba(124, 58, 237, 0.14));
    border: 1px solid var(--border);
    backdrop-filter: blur(14px);
}

.stat-strip strong {
    display: block;
    font-size: 2rem;
    font-weight: 1000;
}

.stat-strip span {
    color: var(--muted);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.76rem;
}

.feature-grid,
.about-grid,
.sponsor-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.feature-card,
.about-card,
.sponsor-card,
.schedule-card,
.contact-panel,
.not-found-card {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(249, 115, 22, 0.10), rgba(124, 58, 237, 0.12)),
        var(--panel);
    border: 1px solid var(--border);
    border-radius: 30px;
    box-shadow: 0 24px 70px rgba(0,0,0,0.42);
    backdrop-filter: blur(16px);
}

.feature-card {
    min-height: 250px;
    padding: 1.5rem;
    color: white;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    color: white;
    box-shadow: 0 30px 80px rgba(124, 58, 237, 0.34);
}

.feature-card.big {
    grid-column: span 1;
}

.feature-card span {
    color: var(--orange);
    font-weight: 1000;
}

.feature-card h2 {
    margin-top: 3rem;
    font-size: 2rem;
}

.page-hero.compact {
    padding: 3rem 0 2rem;
}

.page-hero.compact h1 {
    font-size: clamp(2.7rem, 5vw, 5.5rem);
}

.about-grid {
    grid-template-columns: 1fr;
}

.about-card {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 1.5rem;
    align-items: center;
    padding: 1rem;
}

.about-card img {
    height: 320px;
}

.about-card div {
    padding: 1rem;
}

.about-card span {
    color: var(--orange);
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.75rem;
}

.about-card h2 {
    font-size: 2.4rem;
    margin: 0.4rem 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.gallery-grid img {
    height: 280px;
    transition: transform 0.25s ease, filter 0.25s ease;
}

.gallery-grid img:hover {
    transform: scale(1.035) rotate(1deg);
    filter: brightness(1.12);
}

.schedule-list {
    display: grid;
    gap: 1rem;
}

.schedule-card {
    display: grid;
    grid-template-columns: 110px 1fr auto;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem;
}

.date-block {
    display: grid;
    place-items: center;
    height: 90px;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--orange), var(--purple));
}

.date-block strong {
    font-size: 0.85rem;
}

.date-block span {
    font-size: 2rem;
    font-weight: 1000;
    line-height: 1;
}

.badge {
    background: rgba(255,255,255,0.1);
    color: #fed7aa;
    border: 1px solid rgba(249,115,22,0.28);
    border-radius: 999px;
    padding: 0.55rem 0.8rem;
    font-weight: 900;
}

/* SPONSORS - fixed logo sizing */
.sponsor-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    align-items: stretch;
}

.sponsor-card {
    min-height: 190px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.sponsor-logo {
    display: block;
    width: 100%;
    max-width: 230px;
    max-height: 125px;
    height: auto;
    object-fit: contain;
}

.contact-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 2rem;
}

.not-found-container {
    min-height: calc(100vh - 8rem);
    display: grid;
    place-items: center;
    padding: 2rem;
}

.not-found-card {
    max-width: 720px;
    text-align: center;
    padding: 4rem 2rem;
}

.not-found-card h1 {
    font-size: 6rem;
    font-weight: 1000;
    margin: 0;
}

.not-found-flag {
    font-size: 4rem;
}

#blazor-error-ui {
    background: #7f1d1d;
    color: white;
    bottom: 0;
    box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.35);
    display: none;
    left: 0;
    padding: 0.85rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .reload {
    color: #fed7aa;
    font-weight: 800;
    margin-left: 0.75rem;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.9rem;
    top: 0.65rem;
    color: white;
}

.app-loading {
    min-height: 100vh;
    display: grid;
    place-items: center;
    align-content: center;
    text-align: center;
    background:
        radial-gradient(circle at top left, rgba(124, 58, 237, 0.25), transparent 28rem),
        radial-gradient(circle at bottom right, rgba(249, 115, 22, 0.23), transparent 28rem),
        #050814;
    color: white;
}

.loading-flag {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.app-loading h1 {
    font-size: 2.8rem;
    font-weight: 1000;
    letter-spacing: -0.05em;
    margin: 0;
}

.loading-progress {
    position: relative;
    display: block;
    width: 7rem;
    height: 7rem;
    margin: 2rem auto 1rem;
}

.loading-progress circle {
    fill: none;
    stroke: rgba(255,255,255,0.14);
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: var(--orange);
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
    filter: drop-shadow(0 0 8px rgba(249, 115, 22, 0.65));
}

.loading-progress-text {
    font-weight: 950;
}

.loading-progress-text::after {
    content: var(--blazor-load-percentage-text, "Loading");
}

::selection {
    background: rgba(249, 115, 22, 0.4);
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #050814;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--orange), var(--purple));
    border-radius: 999px;
}

@media (max-width: 1100px) {
    .hero-home {
        grid-template-columns: 1fr;
    }

    .hero-photo-stack {
        min-height: 520px;
    }

    .stat-strip,
    .feature-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .about-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .hero {
        min-height: auto;
    }

    .hero-copy h1,
    .page-hero h1 {
        font-size: 3.1rem;
    }

    .hero-photo-stack {
        min-height: 420px;
    }

    .photo-main {
        height: 300px;
    }

    .photo-small {
        height: 150px;
    }

    .schedule-card {
        grid-template-columns: 1fr;
    }

    .contact-panel {
        flex-direction: column;
        align-items: flex-start;
    }

    .sponsor-grid {
        grid-template-columns: 1fr;
    }

    .sponsor-card {
        min-height: 160px;
    }

    .sponsor-logo {
        max-width: 260px;
        max-height: 110px;
    }
}

.seo-text {
    max-width: 1100px;
    margin: 4rem auto 2rem;
    padding: 0 1.5rem;
    color: rgba(255,255,255,0.72);
    line-height: 1.8;
    font-size: 0.95rem;
}