 @import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

        /* CSS Variables for our 8-bit color palette */
        :root {
            --pixel-green: #00ff00;
            --pixel-blue: #0080ff;
            --pixel-red: #ff0040;
            --pixel-yellow: #ffff00;
            --pixel-purple: #8000ff;
            --pixel-cyan: #00ffff;
            --dark-bg: #1a1a2e;
            --darker-bg: #16213e;
            --pixel-white: #ffffff;
            --pixel-black: #000000;
        }

        /* Basic setup */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            font-family: 'Press Start 2P', monospace;
            background-color: var(--dark-bg);
            color: var(--pixel-white);
            line-height: 1.8;
            /* Force nearest-neighbor scaling for a crisp pixel look */
            image-rendering: pixelated;
            image-rendering: -moz-crisp-edges;
            image-rendering: crisp-edges;
            font-size: 12px;
            overflow-x: hidden; /* Prevent horizontal scrollbars */
        }

        /* --- ENHANCED VISUAL EFFECTS --- */

        /* Animated Pixel Grid Background */
        body::before {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            width: 200%;
            height: 200%;
            background-image: 
                linear-gradient(var(--pixel-blue) 1px, transparent 1px),
                linear-gradient(90deg, var(--pixel-blue) 1px, transparent 1px);
            background-size: 40px 40px;
            opacity: 0.1;
            z-index: -2;
            animation: pixelGridMove 20s linear infinite;
        }

        /* Scan Lines Overlay for that CRT Monitor Vibe */
        body::after {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: repeating-linear-gradient(
                0deg,
                rgba(0, 0, 0, 0) 0px,
                rgba(0, 0, 0, 0) 2px,
                rgba(0, 0, 0, 0.2) 2px,
                rgba(0, 0, 0, 0.2) 4px
            );
            z-index: 10000;
            pointer-events: none; /* Make sure we can click through it */
        }

        /* Keyframe Animations */
        @keyframes pixelGridMove {
            0% { transform: translate(0, 0); }
            100% { transform: translate(-50%, -50%); }
        }

        @keyframes blink {
            0%, 49% { opacity: 1; }
            50%, 100% { opacity: 0; }
        }

        @keyframes bounce {
            0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
            40% { transform: translateY(-10px); }
            60% { transform: translateY(-5px); }
        }

        /* Glitch effect for titles */
       .glitch {
            position: relative;
            animation: glitch-anim 2.5s infinite steps(1);
        }

        .glitch::before,
        .glitch::after {
            content: attr(data-text);
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: var(--dark-bg);
        }

        .glitch::before {
            left: 2px;
            text-shadow: -2px 0 var(--pixel-red);
            clip: rect(44px, 450px, 56px, 0);
            animation: glitch-anim-2 2.5s infinite linear alternate-reverse;
        }

        .glitch::after {
            left: -2px;
            text-shadow: -2px 0 var(--pixel-blue), 2px 2px var(--pixel-red);
            animation: glitch-anim-1 2.5s infinite linear alternate-reverse;
        }

        @keyframes glitch-anim-1 {
            0% { clip: rect(7px, 9999px, 87px, 0); }
            100% { clip: rect(92px, 9999px, 98px, 0); }
        }
        @keyframes glitch-anim-2 {
            0% { clip: rect(33px, 9999px, 74px, 0); }
            100% { clip: rect(15px, 9999px, 63px, 0); }
        }
        @keyframes glitch-anim {
            0% { transform: skew(0deg); }
            10% { transform: skew(0.5deg); }
            20% { transform: skew(0deg); }
            80% { transform: skew(0deg); }
            90% { transform: skew(-0.8deg); }
            100% { transform: skew(0deg); }
        }

        /* --- Navigation Bar --- */
        nav {
            position: fixed;
            top: 0;
            width: 100%;
            background: var(--darker-bg);
            border-bottom: 4px solid var(--pixel-green);
            z-index: 1000;
            padding: 15px 0;
        }
        .nav-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
            font-size:10px ;
        }

        .logo {
            font-size: 14px;
            color: var(--pixel-yellow);
            text-shadow: 2px 2px 0px var(--pixel-red);
            user-select: none;
        }

        .nav-links {
            color:var(--pixel-white);
            display: flex;
            gap: 15px;
            list-style: none;
        }

        .nav-links a {
            color: var(--pixel-white);
            text-decoration: none;
            padding: 8px 12px;
            transition: all 0.2s ease;
            text-transform: uppercase;
            position: relative;
            width: 50px;
        }

        .nav-links a:hover, .nav-links a.active {
            color: var(--pixel-yellow);
            background: rgba(0, 255, 0, 0.1);
            text-shadow: 0 0 5px var(--pixel-green);
        }
        .nav-links a:hover::before {
            content: '>';
            position: absolute;
            left: 0;
            animation: blink 0.8s infinite;
        }
        .nav-links a:hover::after {
            content: '<';
            position: absolute;
            right: 0;
            animation: blink 0.8s infinite;
        }

        /* --- Hero Section --- */
        .hero {
            height: 50vh;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
            padding: 0 20px;
            position: relative;
            
            animation: matrixFall linear infinite;
            white-space: pre-line;
            line-height: 1.2;
            /*background: radial-gradient(circle, rgba(22, 33, 62, 0.8) 0%, rgba(26, 26, 46, 1) 70%);
        */}

        .hero-content {
            z-index: 2;
            max-width: 800px;
        }

        .game-title {
            font-size: clamp(28px, 6vw, 34px);
            margin-bottom: 5px;
            color: var(--pixel-yellow);
            text-transform: uppercase;
            letter-spacing: 4px;
        }

        .subtitle {
            font-size: 10px;
            margin-bottom: 10px;
            color: var(--pixel-green);
            
        }

    .progress-bar {
        display: flex;
        color:var(--pixel-green);
        justify-content: space-between;
        margin-bottom: var(--space-32);
        flex-wrap: wrap;
        gap: var(--space-8);
        }


       

        /* --- General Section Styling --- */
        .game-section {

            
            padding: 50px 200px;
            max-width: 1200px;
            margin: 0 auto;
            position: auto;
            border-bottom: 4px dashed var(--pixel-blue);
        }
        .game-section:last-of-type {
            border-bottom: none;
        }

        .section-title {
            font-size: 24px;
            text-align: center;
            margin-bottom: 50px;
            color: var(--pixel-cyan);
            text-transform: uppercase;
        }

        .section-title::before,
        .section-title::after {
            content: '★';
            color: var(--pixel-green);
            margin: 0 20px;
            animation: blink 1.5s infinite alternate;
        }

        
        .pixel-button {
            display: inline-block;
            padding: 10px 20px;
            background: var(--pixel-green);
            color: var(--dark-bg);
            text-decoration: none;
            border: 2px solid var(--pixel-black);
            font-family: 'Press Start 2P', monospace;
            font-size: 10px;
            text-transform: uppercase;
            transition: all 0.2s ease;
    
        }

        .pixel-button:hover {
            background: var(--pixel-yellow);
            color: var(--pixel-red);
            border-color: var(--pixel-red);
        }

        /* --- Responsive Design --- */
        @media (max-width: 768px) {
            .nav-links { display: none; }
            .game-title { font-size: 24px; }
            .section-title { font-size: 20px; }
            .game-grid { grid-template-columns: 1fr; }
            .countdown-timer { gap: 10px; }
            .time-box { min-width: 70px; padding: 10px; }
            .time-box .time-number { font-size: 24px; }
        }
        /*Progress*/
        /* Form Container */
.form-container {
  max-width: 800px;
  margin: var(--space-32) auto;
  padding: 0 var(--space-20);
}

/* Progress Bar */
.progress-bar {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-32);
  flex-wrap: wrap;
  gap: var(--space-8);
}

.progress-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-8);
  min-width: 100px;
}

.step-number {
  width: 40px;
  height: 40px;
  border: 2px solid var(--pixel-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--pixel-green);
  background: var(--dark-bg);
  transition: all 0.3s ease;
}

.step-label {
  font-size: 8px;
  color: var(--pixel-green);
  text-align: center;
}

.progress-step.active .step-number {
  background: var(--pixel-green);
  color: var(--dark-bg);
  box-shadow: 0 0 10px var(--pixel-green);
}

.progress-step.completed .step-number {
  background: var(--pixel-cyan);
  border-color: var(--pixel-cyan);
  color: var(--dark-bg);
}
/* Registration Form */
.registration-form {
  justify-self: center;
  justify-content:center;
  width: 1200px;
  background: var(--darker-bg);
  border: 2px solid var(--pixel-green);
  
  
}

.form-step {
  display: none;
  animation: fadeIn 0.5s ease;
}

.form-step.active {
  display: block;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.step-title {
  font-size: 16px;
  color: var(--pixel-cyan);
  text-align: center;
  margin-bottom: var(--space-32);
  text-shadow: 0 0 5px var(--pixel-cyan);
}

.form-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(150px,0.5fr));
  gap: 20px;
  padding-top: 40px;
  padding-left: 50px;
  padding-right: 20px;
}

.input-group {

  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  padding: 20px;
  align-content:center;
}

.input-group label {
  font-size: 10px;
  color: var(--pixel-yellow);
  letter-spacing: 1px;
}

.input-group input,
.input-group select,
.input-group textarea {
  background: var(--dark-bg);
  border: 2px solid var(--pixel-green);
  color: var(--pixel-green);
  padding: var(--space-12);
  font-family: var(--font-family-pixel);
  font-size: 10px;
  transition: all 0.3s ease;
  height: 20pt;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
  outline: none;
  border-color: var(--pixel-cyan);
  box-shadow: 0 0 10px var(--pixel-cyan);
  background: rgba(0, 255, 255, 0.1);
}

.input-group textarea {
  resize: vertical;
  min-height: 100px;
}

.error-message {
  font-size: 8px;
  color: var(--pixel-red);
  min-height: 16px;
}
/* Competition Grid */
.competitions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-16);
}

.competition-card {
  background: var(--dark-bg);
  border: 2px solid var(--pixel-green);
  padding: var(--space-20);
  transition: all 0.3s ease;
  position: relative;
}

.competition-card:hover {
  border-color: var(--pixel-cyan);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.competition-card.selected {
  border-color: var(--pixel-yellow);
  background: rgba(255, 255, 0, 0.1);
}

.competition-checkbox {
  position: absolute;
  top: var(--space-12);
  right: var(--space-12);
  width: 20px;
  height: 20px;
  appearance: none;
  border: 2px solid var(--pixel-green);
  background: var(--dark-bg);
}

.competition-checkbox:checked {
  background: var(--pixel-yellow);
  border-color: var(--pixel-yellow);
}

.competition-name {
  font-size: 12px;
  color: var(--pixel-cyan);
  margin-bottom: var(--space-8);
}

.competition-type {
  font-size: 8px;
  color: var(--pixel-purple);
  text-transform: uppercase;
  margin-bottom: var(--space-8);
}

.competition-description {
  font-size: 8px;
  color: var(--pixel-green);
  line-height: 1.4;
}
/* Team Section */
.team-section {
  text-align: center;
}

.team-note {
  font-size: 10px;
  color: var(--pixel-yellow);
  margin-bottom: var(--space-24);
}

.team-member {
  background: var(--dark-bg);
  border: 1px solid var(--pixel-green);
  padding: var(--space-16);
  margin-bottom: var(--space-16);
}

.team-member h4 {
  font-size: 10px;
  color: var(--pixel-cyan);
  margin-bottom: var(--space-12);
}

/* Review Section */
.review-section {
  background: var(--dark-bg);
  border: 1px solid var(--pixel-green);
  padding: var(--space-20);
}

.review-category {
  margin-bottom: var(--space-20);
  padding-bottom: var(--space-16);
  border-bottom: 1px solid rgba(0, 255, 0, 0.3);
}

.review-category:last-child {
  border-bottom: none;
}

.review-category h4 {
  font-size: 10px;
  color: var(--pixel-yellow);
  margin-bottom: var(--space-8);
}

.review-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-4);
  font-size: 8px;
}

.review-label {
  color: var(--pixel-green);
}

.review-value {
  color: var(--pixel-cyan);
}

/* Navigation Buttons */

.form-navigation {
  display: flex;
  justify-content: center;
  margin-top: var(--space-32);
  gap: 600px;
  
}

.btn {
  padding: var(--space-12) var(--space-24);
  border: 2px solid var(--pixel-green);
  background: var(--dark-bg);
  color: var(--pixel-green);
  font-family: var(--font-family-pixel);
  font-size: 10px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding:11px;

}

.btn:hover {
  background: var(--pixel-green);
  color: var(--dark-bg);
  box-shadow: 0 0 10px var(--pixel-green);
}



.btn-submit {
  border-color: var(--pixel-yellow);
  color: var(--pixel-yellow);
  animation: submitGlow 2s infinite;
}

.btn-submit:hover {
  background: var(--pixel-yellow);
  color: var(--dark-bg);
}

@keyframes submitGlow {
  0%, 100% { box-shadow: 0 0 5px var(--pixel-yellow); }
  50% { box-shadow: 0 0 20px var(--pixel-yellow), 0 0 30px var(--pixel-yellow); }
}
  

.btn:disabled {
  opacity: 0.5;
}

.hidden {
  display: none !important;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: var(--darker-bg);
  border: 3px solid var(--pixel-green);
  padding: var(--space-32);
  text-align: center;
  max-width: 400px;
  animation: modalAppear 0.5s ease;
}

@keyframes modalAppear {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.success-animation {
  margin-bottom: var(--space-24);
}

.pixel-checkmark {
  width: 60px;
  height: 60px;
  margin: 0 auto;
  border: 3px solid var(--pixel-green);
  position: relative;
  animation: checkmarkGlow 2s infinite;
}

.pixel-checkmark::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 24px;
  color: var(--pixel-green);
}

@keyframes checkmarkGlow {
  0%, 100% { box-shadow: 0 0 10px var(--pixel-green); }
  50% { box-shadow: 0 0 20px var(--pixel-green), 0 0 30px var(--pixel-green); }
}

.success-title {
  font-size: 14px;
  color: var(--pixel-cyan);
  margin-bottom: var(--space-16);
  text-shadow: 0 0 5px var(--pixel-cyan);
}

.success-message {
  font-size: 8px;
  color: var(--pixel-green);
  line-height: 1.4;
  margin-bottom: var(--space-24);
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    gap: var(--space-16);
  }
  
  .nav-link {
    font-size: 8px;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .competitions-grid {
    grid-template-columns: 1fr;
  }
  
  .progress-bar {
    justify-content: center;
  }
  
  .progress-step {
    flex: none;
  }
  
  .form-navigation {
    flex-direction: column;
  }
  
  .glitch-text {
    font-size: 24px;
  }


}

/* Error state styling */
.form-control.error,
input.error,
select.error,
textarea.error {
  border-color: var(--pixel-red) !important;
  box-shadow: 0 0 5px var(--pixel-red) !important;
}

@keyframes slideIn {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Form Container */
