:root {
    --primary-orange: #ff6600;
    --accent-orange: #ff8533;
    --light-orange: #ffad66;
    --bg-dark: #1a1a1a;
    --bg-darker: #0d0d0d;
    --bg-card: #2a2a2a;
    --bg-card-darker: #222222;
    --text-light: #e0e0e0;
    --text-white: #ffffff;
    --text-muted: #888888;
    --border-orange: #ff6600;
    --border-gray: #3a3a3a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-darker);
    color: var(--text-light);
    line-height: 1.6;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath d='M30 10 L30 5 M25 12 L25 8 A5 5 0 0 1 35 8 L35 12 M22 12 L22 20 A8 8 0 0 0 38 20 L38 12 Z' fill='none' stroke='%23ff660035' stroke-width='1.5'/%3E%3Ccircle cx='30' cy='18' r='2' fill='%23ff660035'/%3E%3C/svg%3E");
    background-size: 60px 60px;
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

nav {
    display: flex;
    justify-content: flex-end;
    padding: 20px;
    gap: 10px;
}

.nav-link {
    color: var(--primary-orange);
    text-decoration: none;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 102, 0, 0.1), transparent);
    transition: left 0.5s ease;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover {
    color: var(--text-white);
    background: rgba(255, 102, 0, 0.15);
}

.hero {
    text-align: center;
    padding: 40px 20px 60px;
}

.logo-container {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
}

.logo-placeholder {
    display: block;
    text-align: center;
}

.logo-placeholder img {
    display: inline-block;
    max-width: 100%;
    height: auto;
    border: 3px solid var(--primary-orange);
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(255, 102, 0, 0.3);
    transition: all 0.3s ease;
}

.logo-placeholder img:hover {
    box-shadow: 0 0 40px rgba(255, 102, 0, 0.5);
    transform: translateY(-2px);
}


.logo-text {
    font-family: 'Share Tech Mono', monospace;
    font-size: 2.5rem;
    color: var(--primary-orange);
    text-shadow: 0 0 15px rgba(255, 102, 0, 0.5);
}

.hero h1 {
    font-family: 'Roboto', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 15px;
}

.event-date {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 20px;
    font-weight: 400;
}

.btn-primary {
    display: inline-block;
    padding: 12px 32px;
    background: linear-gradient(135deg, var(--primary-orange) 0%, #e55a00 100%);
    color: var(--text-white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 8px;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.4), 0 0 0 0 rgba(255, 102, 0, 0.5);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 102, 0, 0.5), 0 0 20px rgba(255, 102, 0, 0.3);
}

.btn-accent {
    display: inline-block;
    padding: 10px 28px;
    background: transparent;
    color: var(--primary-orange);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 8px;
    border: 2px solid var(--primary-orange);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-accent::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--primary-orange);
    transition: width 0.3s ease;
    z-index: -1;
}

.btn-accent:hover::before {
    width: 100%;
}

.btn-accent:hover {
    color: var(--text-white);
    box-shadow: 0 4px 20px rgba(255, 102, 0, 0.4);
}

.btn-link {
    display: inline-block;
    color: var(--primary-orange);
    text-decoration: none;
    font-weight: 500;
    /* font-size: 0.9rem; */
    padding: 8px 0;
    position: relative;
    transition: all 0.3s ease;
}

.btn-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-orange), var(--accent-orange));
    transition: width 0.3s ease;
}

.btn-link:hover::after {
    width: 100%;
}

.btn-link:hover {
    color: var(--accent-orange);
}

.card-section {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 35px 45px;
    margin-bottom: 30px;
}

.card-section.compact {
    padding: 25px 40px;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.info-block h2 {
    font-family: 'Roboto', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 10px;
}

.info-block p {
    color: var(--text-light);
    margin-bottom: 12px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.two-column-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.grid-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 30px;
}

.grid-card h2 {
    font-family: 'Roboto', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 15px;
}

.grid-card p {
    color: var(--text-light);
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.grid-card a {
    color: var(--primary-orange);
    text-decoration: none;
    transition: color 0.3s ease;
}

.grid-card a:hover {
    color: var(--accent-orange);
}

.encrypted-message {
    background: var(--bg-card-darker);
    border-left: 4px solid var(--primary-orange);
    padding: 15px 20px;
    margin: 15px 0;
    font-family: 'Share Tech Mono', monospace;
    color: var(--text-muted);
    border-radius: 0 8px 8px 0;
}

.encrypted-message p {
    margin: 0;
}

.rules-section {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 35px 45px;
    margin-bottom: 30px;
}

.rules-section h2 {
    font-family: 'Roboto', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 25px;
    text-align: center;
}

.rules-list {
    counter-reset: rules-counter;
    list-style: none;
    padding-left: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 40px;
}

.rules-list li {
    counter-increment: rules-counter;
    padding: 10px 0 10px 40px;
    position: relative;
    color: var(--text-light);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-gray);
}

.rules-list li::before {
    content: counter(rules-counter, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 10px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.9rem;
    color: var(--primary-orange);
    font-weight: bold;
}

.rules-list li:last-child,
.rules-list li:nth-last-child(2) {
    border-bottom: none;
}

.rules-list li a {
    color: var(--primary-orange);
    text-decoration: none;
    transition: color 0.3s ease;
}

.rules-list li a:hover {
    color: var(--accent-orange);
    text-decoration: underline;
}

.prize-category {
    margin-bottom: 20px;
}

.prize-category h3 {
    font-family: 'Roboto', sans-serif;
    color: var(--text-white);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.prize-tier {
    background: var(--bg-card-darker);
    border: 1px solid var(--border-gray);
    padding: 12px 16px;
    margin-bottom: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.prize-tier:hover {
    border-color: var(--primary-orange);
    background: rgba(255, 102, 0, 0.05);
}

.prize-tier h4 {
    color: var(--primary-orange);
    margin-bottom: 4px;
    font-size: 0.9rem;
}

.prize-tier p {
    color: var(--text-muted);
    margin-bottom: 0;
    font-size: 0.85rem;
}

.prev-competitions {
    margin-bottom: 30px;
}

.prev-competitions h2 {
    font-family: 'Roboto', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-white);
    text-align: center;
    margin-bottom: 25px;
}

.prev-competitions ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

.prev-competitions li {
    background: var(--bg-card);
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
}

.prev-competitions li:hover {
    border-color: var(--primary-orange);
    background: rgba(255, 102, 0, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.15);
}

.prev-competitions a {
    color: var(--text-light);
    text-decoration: none;
    display: block;
    padding: 14px;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.prev-competitions li:hover a {
    color: var(--primary-orange);
}

.prev-competitions span {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: block;
    padding: 14px;
    cursor: default;
}

.prev-competitions li.no-link {
    position: relative;
    cursor: default;
}

.prev-competitions li.no-link::after {
    content: "Competition source not available.";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background: rgba(0, 0, 0, 0.85);
    color: var(--text-light);
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
    z-index: 100;
}

.prev-competitions li.no-link:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
}

.sponsors-section {
    margin-bottom: 30px;
}

.sponsors-section h2 {
    font-family: 'Roboto', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-white);
    text-align: center;
    margin-bottom: 10px;
}

.sponsor-tier {
    margin-bottom: 30px;
}

.sponsor-tier h3 {
    font-family: 'Roboto', sans-serif;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 18px;
    text-align: center;
}

.sponsor-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.sponsor-placeholder {
    background: #f5f5f5;
    padding: 20px 25px;
    color: var(--text-muted);
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.8rem;
    border-radius: 12px;
    text-align: center;
    min-width: 100px;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.sponsor-placeholder:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 102, 0, 0.25);
}

.sponsor-placeholder img {
    max-width: 100%;
    max-height: 60px;
    object-fit: contain;
}

.diamond .sponsor-placeholder {
    padding: 25px 35px;
    min-height: 100px;
}

.diamond .sponsor-placeholder img {
    max-height: 80px;
}

.platinum .sponsor-placeholder {
    padding: 22px 30px;
    min-height: 90px;
}

.platinum .sponsor-placeholder img {
    max-height: 70px;
}

#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-orange), var(--accent-orange));
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.4);
    z-index: 1000;
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(255, 102, 0, 0.6);
    background: linear-gradient(135deg, var(--accent-orange), var(--primary-orange));
}

#back-to-top:active {
    transform: translateY(0);
}

#back-to-top svg {
    width: 24px;
    height: 24px;
}

footer {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

@media (max-width: 900px) {
    .two-column-grid,
    .info-grid {
        grid-template-columns: 1fr;
    }

    .rules-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .logo-text {
        font-size: 1.8rem;
    }

    .logo-placeholder {
        padding: 35px 50px;
    }

    .card-section {
        padding: 20px 20px;
    }

    .grid-card h2,
    .rules-section h2 {
        font-size: 1.2rem;
    }

    .rules-list li {
        padding-left: 35px;
    }

    .prev-competitions ul {
        grid-template-columns: 1fr;
    }

    .sponsor-placeholder {
        padding: 18px 22px;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .nav-link {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
}

small {
    font-size: 0.8rem;
    color: var(--text-muted);
}
