/* --------------------------------------------------
   FONT IMPORT
-------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600&display=swap');


/* --------------------------------------------------
   ROOT VARIABLES
-------------------------------------------------- */
:root {
    --bg-main: #050608;
    --accent: #f3c26a;
    --accent-soft: #d9a45a;
    --text-main: #ffffff;
    --text-muted: #a7a7a7;
    --panel-bg: rgba(5,6,8,0.85);
    --panel-border: rgba(255,255,255,0.08);
}


/* --------------------------------------------------
   GLOBAL + PAGE ENTRY ANIMATION
-------------------------------------------------- */
body {
    margin: 0;
    height: 100vh;
    overflow-y: auto;
    background: var(--bg-main);
    font-family: 'Orbitron', sans-serif;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    align-items: center;

    opacity: 0;
    filter: blur(12px);
    animation: pageEnter 1.2s ease forwards;
}

@keyframes pageEnter {
    0% {
        opacity: 0;
        filter: blur(12px);
        transform: translateY(20px);
    }
    60% {
        opacity: 0.7;
        filter: blur(4px);
    }
    100% {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0);
    }
}


/* --------------------------------------------------
   BACKGROUND GRID (3D cyber grid)
-------------------------------------------------- */
body::before {
    content: "";
    position: fixed;
    width: 200%;
    height: 200%;
    background:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 80px 80px;
    opacity: 0.22;
    transform: perspective(500px) rotateX(60deg);
    animation: gridMove 14s linear infinite;
    top: -50%;
    left: -50%;
    z-index: -2;
}

@keyframes gridMove {
    0% { transform: perspective(500px) rotateX(60deg) translateY(0); }
    100% { transform: perspective(500px) rotateX(60deg) translateY(80px); }
}


/* --------------------------------------------------
   SCANLINES OVERLAY
-------------------------------------------------- */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(
        to bottom,
        rgba(255,255,255,0.02),
        rgba(255,255,255,0.02) 1px,
        transparent 3px,
        transparent 5px
    );
    pointer-events: none;
    z-index: -1;
}


/* --------------------------------------------------
   MAIN CONTENT
-------------------------------------------------- */
.container {
    text-align: center;
    margin-top: 40px;
    animation: slideUp 1.2s ease forwards;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}


/* --------------------------------------------------
   CLEAN GLITCH TITLE (NO NEON)
-------------------------------------------------- */
h1 {
    font-size: 3.4rem;
    font-weight: 600;
    letter-spacing: 6px;
    color: var(--accent);
    text-transform: uppercase;

    text-shadow:
        0 0 4px rgba(0,0,0,0.9),
        0 0 12px rgba(0,0,0,0.7);

    position: relative;
    display: inline-block;
}

h1::before,
h1::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0.25;
}

h1::before {
    color: #ff4a4a;
    transform: translate(1px, -1px);
    animation: glitchBefore 2.8s infinite linear alternate-reverse;
}

h1::after {
    color: #4dcfff;
    transform: translate(-1px, 1px);
    animation: glitchAfter 2.8s infinite linear alternate-reverse;
}

@keyframes glitchBefore {
    0% { clip-path: inset(0 0 90% 0); }
    50% { clip-path: inset(30% 0 40% 0); }
    100% { clip-path: inset(0 0 90% 0); }
}

@keyframes glitchAfter {
    0% { clip-path: inset(90% 0 0 0); }
    50% { clip-path: inset(40% 0 30% 0); }
    100% { clip-path: inset(90% 0 0 0); }
}


/* --------------------------------------------------
   TEXT
-------------------------------------------------- */
p {
    color: var(--text-muted);
    margin-top: 10px;
}

.subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 5px;
    letter-spacing: 2px;
}


/* --------------------------------------------------
   CLEAN LINE UNDER TITLE
-------------------------------------------------- */
.glow-line {
    width: 240px;
    height: 2px;
    margin: 18px auto 10px auto;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.6;
}


/* --------------------------------------------------
   LOADER
-------------------------------------------------- */
.loader {
    margin: 30px auto;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.08);
    border-top: 3px solid var(--accent);
    animation: spin 1s linear infinite, fadeIn 1.5s ease forwards;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* --------------------------------------------------
   CONTACT PANEL
-------------------------------------------------- */
.contact-wrapper {
    margin-top: 40px;
    width: 90%;
    max-width: 600px;
    background: var(--panel-bg);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--panel-border);
    backdrop-filter: blur(8px);

    opacity: 0;
    animation: fadeUp 1.4s ease forwards;
    animation-delay: 0.6s;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

.contact-wrapper h2 {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--accent);
}


/* --------------------------------------------------
   FORM FIELDS
-------------------------------------------------- */
.field {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.field label {
    margin-bottom: 0.3rem;
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.field input,
.field textarea,
.field select {
    padding: 0.8rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(10,12,15,0.9);
    color: var(--text-main);
    font-family: inherit;
}

.field textarea {
    min-height: 120px;
}


/* --------------------------------------------------
   BUTTON (CLEAN, NO NEON)
-------------------------------------------------- */
.btn-primary {
    width: 100%;
    padding: 1rem;
    border-radius: 999px;
    border: none;
    background: var(--accent);
    color: #000;
    font-weight: bold;
    letter-spacing: 2px;
    cursor: pointer;
    transition: 0.2s ease;
}

.btn-primary:hover {
    background: var(--accent-soft);
    transform: translateY(-2px);
}


/* --------------------------------------------------
   MOBILE VERSION
-------------------------------------------------- */
@media (max-width: 768px) {

    h1 {
        font-size: 2.2rem;
        letter-spacing: 2px;
    }

    .container {
        margin-top: 20px;
        padding: 0 1rem;
    }

    .contact-wrapper {
        padding: 1.5rem;
        margin-top: 30px;
    }

    .field input,
    .field textarea,
    .field select {
        padding: 0.9rem;
        font-size: 1rem;
    }

    .btn-primary {
        padding: 1.1rem;
        font-size: 1rem;
    }
}
