/* GLOBAL  */
body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: #0c0c0c;
    color: #ddd;
}

a {
    text-decoration: none;
    color: inherit;
}

/* NAVBAR  */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background: #101010;
    border-bottom: 2px solid #1f1f1f;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #05d9e8;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-links a {
    color: #ccc;
    font-size: 1rem;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #05d9e8;
}

/* HERO SECTION  */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('https://images.unsplash.com/photo-1511512578047-dfb367046420?q=80') center/cover;
    position: relative;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
}

.hero-content {
    position: relative;
    text-align: center;
    z-index: 2;
}

.hero h1 {
    font-size: 4rem;
    color: #05d9e8;
}

.hero p {
    font-size: 1.4rem;
}
.hero-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 24px;
    color: #000;
    background: #05d9e8;
    font-weight: bold;
    border-radius: 8px;
    transition: 0.3s;
}

.hero-btn:hover {
    background: #03b4be;
}

/* PODSTRONY OGÓLNE  */
.page {
    max-width: 900px;
    margin: 100px auto;
    padding: 20px;
}

.page-title {
    text-align: center;
    color: #05d9e8;
    margin-bottom: 40px;
    font-size: 3rem;
}

.card {
    background: #111;
    border: 1px solid #1f1f1f;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 0 15px rgba(0,255,255,0.05);
}

.card h2 {
    color: #05d9e8;
}

/*  FORMULARZ KONTAKTOWY  */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 10px;
    font-family: 'Segoe UI', sans-serif;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* INPUTY I TEXTAREA */
#name,
#email,
#message {
    width: 100%;
    padding: 14px;
    background: #0c0c0c;      
    color: #b200ff;             
    border: 2px solid #1f1f1f;  
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
}

/* Placeholdery */
#name::placeholder,
#email::placeholder,
#message::placeholder {
    color: #b200ff80;
}

/* większe pole textarea */
#message {
    height: 200px;
    resize: none;
}

/* Efekty walidacji */
.input-ok {
    border-color: #00ff7f !important;          
    box-shadow: 0 0 10px #00ff7f80, 0 0 20px #00ff7f50;
}

.input-error {
    border-color: #ff0033 !important;          
    box-shadow: 0 0 10px #ff0033aa, 0 0 20px #ff003380;
}

.input-ok::placeholder,
.input-error::placeholder {
    color: #b200ff80;
}

/* Teksty walidacji */
.error-text,
.error-msg {
    color: #ff0033;
    font-size: 0.9rem;
    height: 18px;
    opacity: 0;
    transition: 0.3s;
}

.success-text {
    color: #b200ff;
    font-size: 1.1rem;
    margin-top: 15px;
    text-align: center;
    opacity: 0;
    transition: 0.3s;
}

/* PRZYCISK WYŚLIJ */
.btn-send {
    padding: 14px 30px;
    background: #b200ff;
    color: #000;
    border: none;
    border-radius: 10px;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
    align-self: center;
    min-width: 200px;
}

.btn-send:hover {
    background: #d100ff;
    box-shadow: 0 0 15px #d100ff70, 0 0 30px #d100ff40;
}

/* Animacja <33*/
.intro {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: introFadeOut 1s ease forwards;
    animation-delay: 3s;
}
.intro-content {
    text-align: center;
    color: #05d9e8;
    font-family: 'Segoe UI', sans-serif;
    animation: glitchIn 1.5s ease forwards;
}

.intro-content h1 {
    font-size: 4rem;
    letter-spacing: 6px;
}

.intro-content p {
    margin-top: 10px;
    font-size: 1.1rem;
    opacity: 0.7;
}

.scanline {
    position: absolute;
    top: -10%;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(
        to right,
        transparent,
        #05d9e8,
        transparent
    );
    animation: scan 2s linear infinite;
    opacity: 0.8;
}

@keyframes scan {
    0% { top: -10%; }
    100% { top: 110%; }
}

@keyframes glitchIn {
    0% {
        opacity: 0;
        transform: scale(1.2);
        filter: blur(10px);
    }
    100% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}

@keyframes introFadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

.hero-content {
    animation: heroReveal 1.2s ease forwards;
    animation-delay: 3.2s;
    opacity: 0;
}

@keyframes heroReveal {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.page-transition {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
}
.error-box {
    text-align: center;
    color: #ff0033;
    animation: glitchRed 0.2s infinite;
}

.error-box h1 {
    font-size: 3rem;
    letter-spacing: 3px;
}

.error-box p {
    opacity: 0.8;
    margin-bottom: 30px;
}
.progress-container {
    width: 400px;
    height: 14px;
    border: 2px solid #ff0033;
    margin: 0 auto 10px;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: #ff0033;
    transition: width 0.1s linear;
}

.progress-text {
    font-size: 1.1rem;
}
@keyframes glitchRed {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(2px, -2px); }
    60% { transform: translate(-1px, 1px); }
    80% { transform: translate(1px, -1px); }
    100% { transform: translate(0); }
}

.page-transition.active {
    opacity: 1;
    pointer-events: all;
    animation: fadeInRed 0.3s ease forwards;
}

@keyframes fadeInRed {
    from { opacity: 0; }
    to { opacity: 1; }
}
.pixel-layer {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(#ff0033 1px, transparent 1px),
        linear-gradient(90deg, #ff0033 1px, transparent 1px);
    background-size: 8px 8px;
    opacity: 0;
    transform: scale(1);
    animation: none;
}
.page-transition.active {
    opacity: 1;
    pointer-events: all;
}
.page-transition.active .pixel-layer {
    opacity: 1;
    animation: pixelBreak 0.8s steps(8) forwards;
}
@keyframes pixelBreak {
    0% {
        transform: scale(1);
        filter: blur(0);
        opacity: 0.2;
    }
    100% {
        transform: scale(1.4);
        filter: blur(6px);
        opacity: 1;
    }
}
.error-box {
    text-align: center;
    color: #ff0033;
    opacity: 0;
    animation: glitchRed 0.2s infinite;
}

.page-transition.active .error-box {
    animation:
        glitchRed 0.2s infinite,
        crashIn 0.3s ease forwards;
    animation-delay: 0.7s;
}
@keyframes crashIn {
    from {
        opacity: 0;
        transform: scale(1.4);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
.progress-container {
    width: 420px;
    height: 14px;
    border: 2px solid #ff0033;
    margin: 20px auto 10px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(
        90deg,
        #ff0033,
        #ff6699,
        #ff0033
    );
    transition: width 0.12s steps(6);
}
