 @import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

 @font-face {
     font-family: 'Minecraft';
     src: url(../fonts/Minecraft.ttf);
     font-weight: normal;
     font-style: normal;
 }

 :root {
     --neon-pink: #ff073a;
     --neon-cyan: #39d0d8;
     --neon-purple: #b537f2;
     --neon-yellow: #f5d905;
     --neon-green: #00ff41;
     --dark-bg: #0a0a0f;
     --darker-bg: #050508;
     --card-bg: #1a1a2e;
     --text-primary: #ffffff;
     --text-secondary: #a0a0a0;
     --border-glow: rgba(57, 208, 216, 0.5);
     --primary-cyan: #00ffff;
     --primary-cyan-rgb: 0, 255, 255;
     --secondary-magenta: #ff00ff;
     --secondary-magenta-rgb: 255, 0, 255;
     --accent-purple: #8b5cf6;
     --accent-purple-rgb: 139, 92, 246;
     --text-primary: #ffffff;
     --text-secondary: rgba(255, 255, 255, 0.8);
     --text-muted: rgba(255, 255, 255, 0.6);
     --background-dark: #0a0a0f;
     --background-darker: #050507;
     --surface: rgba(255, 255, 255, 0.03);
     --surface-hover: rgba(255, 255, 255, 0.08);
     --border: rgba(255, 255, 255, 0.1);

     --font-mono: 'JetBrains Mono', monospace;
     --font-display: 'Press Start 2P', monospace;
     --font-body: 'Space Grotesk', sans-serif;
     --font-accent: 'Minecraft', monospace;
     --shadow-glow: 0 0 40px rgba(var(--primary-cyan-rgb), 0.3);
     --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.3);
 }

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

 body {
     background: linear-gradient(135deg, var(--background-darker) 0%, var(--background-dark) 50%, #0f0f1a 100%);
     color: var(--text-primary);
     font-family: var(--font-body);
     overflow-x: hidden;
     line-height: 1.6;
 }

 body::before {
     content: '';
     position: fixed;
     top: 0;
     left: 0;
     width: 100vw;
     height: 100vh;
     background:
         radial-gradient(circle at 20% 30%, rgba(var(--primary-cyan-rgb), 0.1) 0%, transparent 50%),
         radial-gradient(circle at 80% 70%, rgba(var(--secondary-magenta-rgb), 0.1) 0%, transparent 50%),
         radial-gradient(circle at 50% 50%, rgba(var(--accent-purple-rgb), 0.05) 0%, transparent 50%);
     pointer-events: none;
     z-index: 1;
 }

 body::after {
     content: '';
     position: fixed;
     top: 0;
     left: 0;
     width: 100vw;
     height: 100vh;
     background:
         repeating-linear-gradient(0deg,
             transparent,
             transparent 2px,
             rgba(var(--primary-cyan-rgb), 0.03) 2px,
             rgba(var(--primary-cyan-rgb), 0.03) 4px);
     pointer-events: none;
     z-index: 2;
     opacity: 0.5;
 }

 .matrix-bg {
     position: fixed;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     z-index: -3;
     opacity: 0.03;
 }

 .matrix-bg::before {
     content: '';
     position: absolute;
     width: 100%;
     height: 100%;
     background:
         linear-gradient(90deg, transparent 98%, var(--neon-cyan) 100%),
         linear-gradient(transparent 98%, var(--neon-pink) 100%);
     background-size: 20px 20px;
     animation: matrix-scroll 10s linear infinite;
 }

 @keyframes matrix-scroll {
     0% {
         transform: translate(0, 0);
     }

     100% {
         transform: translate(20px, 20px);
     }
 }

 .particles {
     position: fixed;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     z-index: -2;
     overflow: hidden;
 }

 .particle {
     position: absolute;
     width: 3px;
     height: 3px;
     background: var(--neon-cyan);
     border-radius: 50%;
     box-shadow: 0 0 10px currentColor;
     animation: float 8s infinite linear;
 }

 @keyframes float {
     0% {
         transform: translateY(100vh) translateX(0px);
         opacity: 0;
     }

     10% {
         opacity: 1;
     }

     90% {
         opacity: 1;
     }

     100% {
         transform: translateY(-10vh) translateX(100px);
         opacity: 0;
     }
 }

 .glitch-overlay {
     position: fixed;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background: linear-gradient(45deg,
             transparent 30%,
             rgba(255, 7, 58, 0.02) 31%,
             rgba(255, 7, 58, 0.02) 32%,
             transparent 33%);
     z-index: -1;
     animation: glitch-sweep 3s infinite;
 }

 @keyframes glitch-sweep {

     0%,
     90% {
         transform: translateX(-100%);
     }

     95%,
     100% {
         transform: translateX(100%);
     }
 }


 @keyframes header-materialize {
     0% {
         transform: translateY(-100%) rotateX(90deg);
         opacity: 0;
     }

     100% {
         transform: translateY(0) rotateX(0deg);
         opacity: 1;
     }
 }

 .page-header {
     position: fixed;
     top: 5px;
     left: 0;
     right: 0;
     padding: 5px 40px;
     background: rgba(var(--background-darker), 0.8);
     backdrop-filter: blur(20px);
     border-bottom: 1px solid var(--border);
     z-index: 100;
     transition: all 0.3s ease;
 }

 .back-to-home-link {
     color: var(--text-secondary);
     text-decoration: none;
     font-family: var(--font-mono);
     font-size: 0.9rem;
     transition: all 0.3s ease;
     position: relative;
     margin-top: 30px;
 }

 .back-to-home-link:hover {
     color: var(--primary-cyan);
     text-shadow: 0 0 10px rgba(var(--primary-cyan-rgb), 0.8);
 }

 .back-to-home-link::before {
     content: '';
     position: absolute;
     bottom: -2px;
     left: 0;
     width: 0;
     height: 1px;
     background: var(--primary-cyan);
     transition: width 0.3s ease;
 }

 .back-to-home-link:hover::before {
     width: 100%;
 }


 .main {
     min-height: 100vh;
     display: flex;
     align-items: center;
     justify-content: center;
     padding: 8rem 2rem 4rem;
     perspective: 1000px;
 }

 .container {
     margin-top: 20px;
     width: 100%;
     max-width: 700px;
     animation: container-entrance 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s both;
 }

 @keyframes container-entrance {
     0% {
         opacity: 0;
         transform: translateZ(-500px) rotateY(20deg);
     }

     100% {
         opacity: 1;
         transform: translateZ(0) rotateY(0deg);
     }
 }

 .title {
     font-family: var(--font-accent);
     font-size: clamp(1.8rem, 5vw, 3.5rem);
     font-weight: 900;
     text-align: center;
     margin-bottom: 4rem;
     background: linear-gradient(45deg, var(--neon-pink), var(--neon-cyan), var(--neon-purple));
     background-size: 300% 300%;
     -webkit-background-clip: text;
     -webkit-text-fill-color: transparent;
     background-clip: text;
     animation: rainbow-flow 3s ease-in-out infinite, title-float 4s ease-in-out infinite;
     position: relative;
     text-transform: uppercase;
     letter-spacing: 0.1em;
 }

 .title::before {
     content: attr(data-text);
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background: linear-gradient(45deg, var(--neon-pink), var(--neon-cyan));
     -webkit-background-clip: text;
     -webkit-text-fill-color: transparent;
     background-clip: text;
     animation: glitch-text 2s infinite;
     z-index: -1;
 }

 @keyframes rainbow-flow {

     0%,
     100% {
         background-position: 0% 50%;
     }

     50% {
         background-position: 100% 50%;
     }
 }

 @keyframes title-float {

     0%,
     100% {
         transform: translateY(0px);
     }

     50% {
         transform: translateY(-10px);
     }
 }

 @keyframes glitch-text {

     0%,
     90% {
         transform: translate(0);
         opacity: 0;
     }

     91% {
         transform: translate(2px, -1px);
         opacity: 0.8;
     }

     92% {
         transform: translate(-2px, 1px);
         opacity: 0.8;
     }

     93% {
         transform: translate(1px, -2px);
         opacity: 0;
     }

     94%,
     100% {
         transform: translate(0);
         opacity: 0;
     }
 }

 .form-card {
     background: var(--card-bg);
     border: 2px solid var(--border-glow);
     border-radius: 20px;
     padding: 3rem;
     position: relative;
     transition: all 0.4s ease;
     box-shadow:
         0 20px 60px rgba(0, 0, 0, 0.5),
         inset 0 1px 0 rgba(255, 255, 255, 0.1);
     animation: card-materialize 1s ease-out 0.8s both;
 }

 @keyframes card-materialize {
     0% {
         opacity: 0;
         transform: scale(0.8) rotateX(30deg);
     }

     100% {
         opacity: 1;
         transform: scale(1) rotateX(0deg);
     }
 }





 @keyframes scan {
     0% {
         transform: translateY(0);
         opacity: 0;
     }

     10%,
     90% {
         opacity: 1;
     }

     100% {
         transform: translateY(400px);
         opacity: 0;
     }
 }

 .form {
     display: flex;
     flex-direction: column;
     gap: 2.5rem;
 }

 .form-group {
     display: flex;
     flex-direction: column;
     gap: 1rem;
     animation: form-slide-in 0.6s ease both;
 }

 .form-group:nth-child(1) {
     animation-delay: 1s;
 }

 .form-group:nth-child(2) {
     animation-delay: 1.2s;
 }

 .form-group:nth-child(3) {
     animation-delay: 1.4s;
 }

 @keyframes form-slide-in {
     0% {
         opacity: 0;
         transform: translateX(-50px);
     }

     100% {
         opacity: 1;
         transform: translateX(0);
     }
 }

 .label {
     font-family: 'Orbitron', monospace;
     font-size: 0.9rem;
     font-weight: 700;
     color: var(--neon-cyan);
     text-transform: uppercase;
     letter-spacing: 2px;
     position: relative;
     padding-left: 20px;
 }

 .label::before {
     content: '>';
     position: absolute;
     left: 0;
     color: var(--neon-pink);
     animation: cursor-blink 1.5s infinite;
 }

 @keyframes cursor-blink {

     0%,
     50% {
         opacity: 1;
     }

     51%,
     100% {
         opacity: 0.3;
     }
 }

 .input,
 .textarea {
     background: rgba(5, 5, 8, 0.8);
     border: 2px solid rgba(57, 208, 216, 0.3);
     border-radius: 12px;
     padding: 1.2rem 1.5rem;
     color: var(--text-primary);
     font-family: 'Space Mono', monospace;
     font-size: 1rem;
     transition: all 0.4s ease;
     position: relative;
     backdrop-filter: blur(10px);
 }

 .input:focus,
 .textarea:focus {
     outline: none;
     border-color: var(--neon-cyan);
     box-shadow:
         0 0 30px rgba(57, 208, 216, 0.5),
         inset 0 0 20px rgba(57, 208, 216, 0.1);
     transform: scale(1.02);
     background: rgba(5, 5, 8, 0.9);
 }

 .input::placeholder,
 .textarea::placeholder {
     color: var(--text-secondary);
     opacity: 0.6;
 }

 .textarea {
     min-height: 140px;
     resize: vertical;
 }

 .submit-btn {
     background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple));
     border: none;
     border-radius: 15px;
     padding: 1.5rem 3rem;
     color: white;
     font-family: 'Orbitron', monospace;
     font-size: 1rem;
     font-weight: 700;
     letter-spacing: 2px;
     cursor: pointer;
     margin-top: 2rem;
     position: relative;
     overflow: hidden;
     text-transform: uppercase;
     animation: form-slide-in 0.6s ease 1.6s both;
     transition: all 0.4s ease;
 }

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

 .submit-btn:hover {
     transform: translateY(-5px) scale(1.05);
     box-shadow:
         0 20px 40px rgba(255, 7, 58, 0.4),
         0 0 60px rgba(255, 7, 58, 0.6);
     text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
 }

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

 .submit-btn:active {
     transform: translateY(-2px) scale(1.02);
 }

 .submit-btn.loading {
     pointer-events: none;
     animation: loading-pulse 1.5s ease-in-out infinite;
 }

 @keyframes loading-pulse {

     0%,
     100% {
         box-shadow: 0 0 30px var(--neon-pink);
         transform: scale(1);
     }

     50% {
         box-shadow: 0 0 50px var(--neon-pink), 0 0 70px var(--neon-pink);
         transform: scale(1.02);
     }
 }

 .btn-content {
     display: flex;
     align-items: center;
     justify-content: center;
     gap: 1rem;
     transition: opacity 0.3s ease;
 }

 .submit-btn.loading .btn-content {
     opacity: 0;
 }

 .spinner {
     position: absolute;
     top: 50%;
     left: 50%;
     transform: translate(-50%, -50%);
     width: 30px;
     height: 30px;
     border: 3px solid rgba(255, 255, 255, 0.3);
     border-top: 3px solid var(--neon-cyan);
     border-radius: 50%;
     animation: spin 1s linear infinite;
     opacity: 0;
     transition: opacity 0.3s ease;
 }

 .submit-btn.loading .spinner {
     opacity: 1;
 }

 @keyframes spin {
     0% {
         transform: translate(-50%, -50%) rotate(0deg);
     }

     100% {
         transform: translate(-50%, -50%) rotate(360deg);
     }
 }

 .message {
     padding: 1.5rem;
     border-radius: 12px;
     margin-bottom: 2rem;
     font-size: 1rem;
     text-align: center;
     opacity: 0;
     transform: translateY(-30px) scale(0.8);
     transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
     border: 2px solid;
     position: relative;
     overflow: hidden;
 }

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

 .message.show {
     opacity: 1;
     transform: translateY(0) scale(1);
 }

 .message.show::before {
     left: 100%;
 }

 .message.success {
     background: rgba(0, 255, 65, 0.1);
     border-color: var(--neon-green);
     color: var(--neon-green);
     box-shadow: 0 0 40px rgba(0, 255, 65, 0.4);
 }

 .message.error {
     background: rgba(255, 7, 58, 0.1);
     border-color: var(--neon-pink);
     color: var(--neon-pink);
     box-shadow: 0 0 40px rgba(255, 7, 58, 0.4);
 }

 .footer {
     text-align: center;
     padding: 3rem 2rem;
     color: var(--text-secondary);
     font-size: 0.9rem;
     border-top: 1px solid rgba(57, 208, 216, 0.3);
     margin-top: 4rem;
     animation: footer-glow 2s ease-in-out infinite alternate;
 }

 .footer {
     width: 100%;
     font-size: 1.3em;
     letter-spacing: 2.2px;
     font-family: var(--font-display);
 }

 @keyframes footer-glow {
     0% {
         text-shadow: 0 0 10px currentColor;
     }

     100% {
         text-shadow: 0 0 20px currentColor, 0 0 30px currentColor;
     }
 }

 .footer .heart {
     color: var(--neon-pink);
     animation: heartbeat 2s ease-in-out infinite;
     font-size: 1.2em;
 }

 @keyframes heartbeat {

     0%,
     100% {
         transform: scale(1);
     }

     50% {
         transform: scale(1.2);
     }
 }

 @media (max-width: 768px) {
     .main {
         padding: 6rem 1rem 3rem;
     }

     .form-card {
         padding: 2rem 1.5rem;
     }

     .title {
         margin-bottom: 3rem;
     }

     .submit-btn {
         padding: 1.2rem 2rem;
         font-size: 0.9rem;
     }
 }

 @media (max-width: 480px) {
     .form-card {
         padding: 1.5rem 1rem;
     }
 }