/* ============================================
   Competition Page Styles
   Beautiful, animated competition detail page
   ============================================ */

/* ============ Variables ============ */
:root {
    --comp-primary: #00d4ff;
    --comp-secondary: #00ff88;
    --comp-accent: #ffb547;
    --comp-danger: #ff6b6b;
    --comp-purple: #aa66ff;

    --comp-bg-dark: #0a0e17;
    --comp-bg-card: rgba(17, 24, 39, 0.8);
    --comp-border: rgba(255, 255, 255, 0.1);

    --comp-gradient: linear-gradient(135deg, var(--comp-primary), var(--comp-secondary));
    --comp-gradient-gold: linear-gradient(135deg, #ffb547, #ffd700);
}

/* ============ Base Styles ============ */
.competition-page {
    background: var(--comp-bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
}

/* ============ Loading Screen ============ */
.drone-loader {
    animation: droneHover 2s ease-in-out infinite;
}

@keyframes droneHover {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.drone-loader .propeller {
    animation: propellerSpin 0.1s linear infinite;
    transform-origin: center;
}

.propeller-1 { animation-delay: 0s; }
.propeller-2 { animation-delay: 0.025s; }
.propeller-3 { animation-delay: 0.05s; }
.propeller-4 { animation-delay: 0.075s; }

@keyframes propellerSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ============ 3D Canvas ============ */
.drone-canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
}

/* ============ Navbar Competition ============ */
.navbar-competition {
    background: rgba(10, 14, 23, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--comp-border);
}

.navbar-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.competition-badge-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--comp-primary);
}

.competition-badge-nav .icon {
    width: 16px;
    height: 16px;
}

.navbar-actions {
    display: flex;
    gap: 12px;
}

/* ============ Hero Title Reset (override main.css) ============ */
.competition-page .hero-title {
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    -webkit-text-fill-color: unset;
    color: var(--text-primary);
    opacity: 1;
    animation: none;
}

/* ============ Hero Section ============ */
.competition-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-bg-effects {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.speed-lines {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 50px,
        rgba(0, 212, 255, 0.03) 50px,
        rgba(0, 212, 255, 0.03) 51px
    );
    animation: speedLinesMove 20s linear infinite;
}

@keyframes speedLinesMove {
    from { transform: translateX(0); }
    to { transform: translateX(-51px); }
}

.grid-floor {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background:
        linear-gradient(transparent, rgba(0, 212, 255, 0.1)),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 49px,
            rgba(0, 212, 255, 0.1) 49px,
            rgba(0, 212, 255, 0.1) 50px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 49px,
            rgba(0, 212, 255, 0.1) 49px,
            rgba(0, 212, 255, 0.1) 50px
        );
    transform: perspective(500px) rotateX(60deg);
    transform-origin: bottom;
}

.glow-orbs {
    position: absolute;
    inset: 0;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: orbFloat 8s ease-in-out infinite;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: rgba(0, 212, 255, 0.3);
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: rgba(0, 255, 136, 0.2);
    bottom: 20%;
    left: 5%;
    animation-delay: -3s;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: rgba(255, 181, 71, 0.2);
    top: 40%;
    left: 30%;
    animation-delay: -5s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

.competition-hero .container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.badge-category {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(0, 212, 255, 0.15);
    border: 1px solid rgba(0, 212, 255, 0.4);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--comp-primary);
}

.badge-level {
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-xalqaro {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(0, 255, 136, 0.2));
    border: 1px solid rgba(0, 212, 255, 0.5);
    color: var(--comp-primary);
}

.badge-mdh {
    background: rgba(255, 181, 71, 0.15);
    border: 1px solid rgba(255, 181, 71, 0.5);
    color: var(--comp-accent);
}

.badge-sht {
    background: rgba(170, 102, 255, 0.15);
    border: 1px solid rgba(170, 102, 255, 0.5);
    color: var(--comp-purple);
}

.badge-vazir {
    background: linear-gradient(135deg, rgba(255, 181, 71, 0.2), rgba(255, 215, 0, 0.15));
    border: 1px solid rgba(255, 181, 71, 0.5);
    color: var(--comp-accent);
}

.badge-inklyuziv {
    background: rgba(244, 63, 94, 0.15);
    border: 1px solid rgba(244, 63, 94, 0.5);
    color: #f43f5e;
}

.badge-respublika {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.5);
    color: #10b981;
}

.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
}

.title-accent {
    display: block;
    background: var(--comp-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-main {
    display: block;
    color: var(--text-primary);
    -webkit-text-fill-color: var(--text-primary);
    text-shadow: 0 0 40px rgba(0, 212, 255, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--comp-bg-card);
    border: 1px solid var(--comp-border);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    border-color: var(--comp-primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.15);
}

.stat-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 10px;
}

.stat-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--comp-primary);
}

.stat-value {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--comp-gradient);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    filter: blur(10px);
    transition: opacity 0.3s ease;
}

.btn-glow:hover::before {
    opacity: 0.6;
}

/* Hero Visual */
.hero-visual {
    position: relative;
}

.hero-image-frame {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.hero-image-frame:hover .hero-image {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 212, 255, 0.2) 0%,
        transparent 50%,
        rgba(0, 255, 136, 0.2) 100%
    );
    pointer-events: none;
}

.corner {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 3px solid var(--comp-primary);
}

.corner-tl { top: 10px; left: 10px; border-right: none; border-bottom: none; }
.corner-tr { top: 10px; right: 10px; border-left: none; border-bottom: none; }
.corner-bl { bottom: 10px; left: 10px; border-right: none; border-top: none; }
.corner-br { bottom: 10px; right: 10px; border-left: none; border-top: none; }

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    animation: scrollBounce 2s ease-in-out infinite;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--text-secondary);
    border-radius: 15px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--comp-primary);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: wheelScroll 1.5s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

@keyframes wheelScroll {
    0% { opacity: 1; top: 8px; }
    100% { opacity: 0; top: 20px; }
}

/* ============ Section Styles ============ */
.competition-section {
    position: relative;
    padding: 100px 0;
}

.section-header {
    margin-bottom: 60px;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--comp-primary);
    margin-bottom: 16px;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--text-primary);
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 16px auto 0;
}

/* Section Dark */
.section-dark {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.15));
}

/* Content Block */
.content-block {
    margin-bottom: 30px;
}

.content-block h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.content-block p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 12px;
}

.content-block p:last-child {
    margin-bottom: 0;
}

/* Card Glass Effect */
.card-glass {
    background: var(--comp-bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--comp-border);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
}

.card-glass:hover {
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* ============ Overview Section ============ */
.overview-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.overview-card {
    margin-bottom: 30px;
}

.overview-card .card-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--comp-gradient);
    border-radius: 16px;
    margin-bottom: 20px;
}

.overview-card .card-icon svg {
    width: 30px;
    height: 30px;
    stroke: white;
}

.overview-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.overview-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.overview-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    padding: 24px;
    background: var(--comp-bg-card);
    border: 1px solid var(--comp-border);
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--comp-primary);
}

.feature-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    border-radius: 50%;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
}

.feature-icon-speed {
    background: rgba(255, 181, 71, 0.15);
}
.feature-icon-speed svg { stroke: var(--comp-accent); }

.feature-icon-precision {
    background: rgba(0, 212, 255, 0.15);
}
.feature-icon-precision svg { stroke: var(--comp-primary); }

.feature-icon-skill {
    background: rgba(0, 255, 136, 0.15);
}
.feature-icon-skill svg { stroke: var(--comp-secondary); }

.feature-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Info Cards */
.info-card {
    margin-bottom: 20px;
}

.info-card h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    margin-bottom: 16px;
    color: var(--comp-primary);
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--comp-border);
}

.info-list li:last-child {
    border-bottom: none;
}

.info-label {
    color: var(--text-secondary);
}

.info-value {
    font-weight: 600;
    color: var(--text-primary);
}

.participant-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.participant-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.participant-list li i {
    color: var(--comp-secondary);
    font-size: 1rem;
    min-width: 20px;
}

.participant-list li div {
    display: flex;
    flex-direction: column;
}

.participant-list li div strong {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.participant-list li div span {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

/* ============ Goals Section ============ */
.section-goals {
    background: linear-gradient(180deg, transparent, rgba(0, 212, 255, 0.03), transparent);
}

.goals-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.goal-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 30px;
    background: var(--comp-bg-card);
    border: 1px solid var(--comp-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.goal-card:hover {
    border-color: var(--comp-primary);
    transform: translateY(-5px);
}

.goal-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    color: rgba(0, 212, 255, 0.15);
    line-height: 1;
}

.goal-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.goal-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.goal-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 12px;
}

.goal-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--comp-primary);
}

/* ============ Stages Section ============ */
.stages-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--comp-primary), var(--comp-secondary), var(--comp-accent));
    border-radius: 2px;
}

.stage-item {
    position: relative;
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}

.stage-item:last-child {
    margin-bottom: 0;
}

.stage-marker {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--comp-bg-dark);
    border: 4px solid var(--comp-primary);
    border-radius: 50%;
}

.stage-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--comp-primary);
}

.stage-1 .stage-marker { border-color: var(--comp-primary); }
.stage-1 .stage-number { color: var(--comp-primary); }
.stage-2 .stage-marker { border-color: var(--comp-secondary); }
.stage-2 .stage-number { color: var(--comp-secondary); }
.stage-3 .stage-marker { border-color: var(--comp-accent); }
.stage-3 .stage-number { color: var(--comp-accent); }

.stage-card {
    flex: 1;
}

.stage-header {
    margin-bottom: 16px;
}

.stage-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(0, 212, 255, 0.15);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--comp-primary);
    margin-bottom: 8px;
}

.stage-badge-active {
    background: rgba(0, 255, 136, 0.15);
    color: var(--comp-secondary);
}

.stage-badge-final {
    background: rgba(255, 181, 71, 0.15);
    color: var(--comp-accent);
}

.stage-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

.stage-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.stage-points {
    list-style: none;
    padding: 0;
    margin: 0;
}

.stage-points li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: var(--text-secondary);
}

.stage-points li i {
    color: var(--comp-secondary);
}

.stage-highlight {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    margin-top: 16px;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 12px;
    color: var(--comp-secondary);
}

.stage-highlight i {
    font-size: 1.25rem;
}

/* ============ Course Section ============ */
.section-course {
    background: linear-gradient(180deg, rgba(0, 212, 255, 0.03), transparent);
}

.course-visual {
    margin-bottom: 60px;
}

.course-map {
    background: var(--comp-bg-card);
    border: 1px solid var(--comp-border);
    border-radius: 20px;
    padding: 30px;
    overflow: hidden;
}

.course-svg {
    width: 100%;
    height: auto;
}

.flight-path {
    stroke-dashoffset: 0;
    animation: flightPathDraw 3s ease-in-out infinite alternate;
}

@keyframes flightPathDraw {
    from { stroke-dashoffset: 100; }
    to { stroke-dashoffset: 0; }
}

.obstacle {
    transition: transform 0.3s ease;
}

.obstacle:hover {
    transform: scale(1.1);
}

.obstacles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.obstacle-card {
    position: relative;
    padding: 24px;
    background: var(--comp-bg-card);
    border: 1px solid var(--comp-border);
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
}

.obstacle-card:hover {
    transform: translateY(-5px);
    border-color: var(--comp-primary);
}

.obstacle-number {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--comp-gradient);
    border-radius: 50%;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
}

.obstacle-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 16px;
}

.obstacle-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--comp-primary);
}

.obstacle-icon-gate svg { stroke: var(--comp-secondary); }
.obstacle-icon-slalom svg { stroke: var(--comp-accent); }
.obstacle-icon-arch svg { stroke: var(--comp-primary); }
.obstacle-icon-tunnel svg { stroke: var(--comp-primary); }
.obstacle-icon-rings svg { stroke: var(--comp-danger); }
.obstacle-icon-finish svg { stroke: var(--comp-accent); }

.obstacle-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.obstacle-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.obstacle-points {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0, 255, 136, 0.15);
    border-radius: 20px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--comp-secondary);
}

.obstacle-card-finish {
    background: linear-gradient(135deg, rgba(255, 181, 71, 0.1), rgba(255, 215, 0, 0.05));
    border-color: rgba(255, 181, 71, 0.3);
}

.obstacle-card-finish .obstacle-number {
    background: var(--comp-gradient-gold);
}

.total-points-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1), rgba(0, 212, 255, 0.1));
    border: 2px solid rgba(0, 255, 136, 0.3);
    border-radius: 20px;
}

.points-label {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

.points-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    background: var(--comp-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.points-note {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ============ Penalties Section ============ */
.penalties-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.penalty-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: var(--comp-bg-card);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.penalty-card:hover {
    transform: translateX(5px);
}

.penalty-warning {
    border-left: 4px solid var(--comp-accent);
}

.penalty-minor {
    border-left: 4px solid var(--comp-primary);
}

.penalty-critical {
    border-left: 4px solid var(--comp-danger);
}

.penalty-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
}

.penalty-warning .penalty-icon {
    background: rgba(255, 181, 71, 0.15);
}
.penalty-warning .penalty-icon svg { stroke: var(--comp-accent); }

.penalty-minor .penalty-icon {
    background: rgba(0, 212, 255, 0.15);
}
.penalty-minor .penalty-icon svg { stroke: var(--comp-primary); }

.penalty-critical .penalty-icon {
    background: rgba(255, 107, 107, 0.15);
}
.penalty-critical .penalty-icon svg { stroke: var(--comp-danger); }

.penalty-icon svg {
    width: 24px;
    height: 24px;
}

.penalty-content {
    flex: 1;
}

.penalty-content h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.penalty-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

.penalty-points {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--comp-danger);
    white-space: nowrap;
}

/* ============ Tech Section ============ */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.tech-card {
    text-align: center;
}

.tech-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 20px;
}

.tech-icon svg {
    width: 40px;
    height: 40px;
    stroke: var(--comp-primary);
}

.tech-card h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.tech-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.tech-card-highlight {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1), rgba(0, 212, 255, 0.05));
    border-color: rgba(0, 255, 136, 0.3);
}

.tech-card-highlight .tech-icon {
    background: var(--comp-gradient);
}

.tech-card-highlight .tech-icon svg {
    stroke: white;
}

/* ============ Gallery Section ============ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 200px);
    gap: 16px;
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item-large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    font-size: 2rem;
    color: white;
}

/* ============ CTA Section ============ */
.section-cta {
    position: relative;
    padding: 120px 0;
    text-align: center;
    overflow: hidden;
}

.cta-bg-effects {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.cta-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 212, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
}

.cta-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.2), transparent 70%);
    filter: blur(60px);
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 30px;
}

.cta-badges {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.cta-badges .badge {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* ============ Footer ============ */
/* Footer styles are inherited from components.css */

/* ============ Lightbox ============ */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-close {
    top: 20px;
    right: 20px;
}

.lightbox-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

/* ============ Responsive ============ */
@media (max-width: 1200px) {
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .obstacles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .competition-hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-badges {
        justify-content: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        max-width: 500px;
        margin: 0 auto;
    }

    .overview-grid {
        grid-template-columns: 1fr;
    }

    .overview-features {
        grid-template-columns: repeat(2, 1fr);
    }

    .goals-grid {
        grid-template-columns: 1fr;
    }

    .tech-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }

    .gallery-item {
        height: 220px;
    }

    .gallery-item-large {
        grid-column: span 2;
        grid-row: span 1;
        height: 280px;
    }

    .navbar-center {
        display: none;
    }
}

@media (max-width: 768px) {
    .competition-hero {
        padding: 100px 0 60px;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .stat-item {
        padding: 12px;
        flex-direction: column;
        text-align: center;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .overview-features {
        grid-template-columns: 1fr;
    }

    .stages-timeline {
        padding-left: 30px;
    }

    .timeline-line {
        left: 10px;
    }

    .stage-item {
        flex-direction: column;
        gap: 20px;
    }

    .stage-marker {
        position: absolute;
        left: -30px;
        width: 40px;
        height: 40px;
    }

    .stage-number {
        font-size: 1rem;
    }

    .obstacles-grid {
        grid-template-columns: 1fr;
    }

    .penalties-grid {
        grid-template-columns: 1fr;
    }

    .penalty-card {
        flex-direction: column;
        text-align: center;
    }

    .cta-actions {
        flex-direction: column;
    }

    .cta-badges {
        flex-wrap: wrap;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 16px;
    }

    .gallery-item {
        height: 250px;
    }

    .gallery-item-large {
        grid-column: span 1;
        grid-row: span 1;
        height: 250px;
    }
}

@media (max-width: 480px) {
    .navbar-actions .btn span {
        display: none;
    }

    .hero-stats {
        grid-template-columns: 1fr 1fr;
    }

    .total-points-card {
        flex-direction: column;
        gap: 10px;
    }
}
