/* ============================================= */
/* 🔧 RESET & BASE STYLES                         */
/* ============================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Press Start 2P', cursive;
    color: #fff;
    line-height: 1.6;
    scroll-behavior: smooth;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #0b0c10;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* ============================================= */
/* 🎥 BACKGROUND VIDEO                            */
/* ============================================= */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(5px) brightness(0.35);
    animation: pulseBlur 10s infinite alternate;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
}

@keyframes pulseBlur {
    0% { filter: blur(5px) brightness(0.35); }
    50% { filter: blur(7px) brightness(0.32); }
    100% { filter: blur(5px) brightness(0.35); }
}

/* ============================================= */
/* 🃏 MAIN CARD & SHADOW                          */
/* ============================================= */
.main-card-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-card-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60%;
    height: 60%;
    background: conic-gradient(#8a2be2, #9b30ff, #ba55d3, #8a2be2);
    filter: blur(100px);
    opacity: 0.4;
    animation: rotateShadow 5s linear infinite;
    z-index: 0;
    border-radius: 70%;

    /* 🔽 DODANE – zmniejsza cień o połowę */
    transform: translate(-50%, -50%) scale(0.5);
    transform-origin: center center;
}


@keyframes rotateShadow {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.main-card {
    position: relative;
    display: inline-block;
    background: rgba(31, 40, 51, 0.25);
    padding: 40px 60px;
    border-radius: 55px;
    text-align: center;
    min-width: 400px;
    max-width: 90%;
    color: #fff;
    box-shadow: 0 0 15px rgba(155, 89, 182, 0.3);
    box-sizing: border-box;
    overflow: hidden;

    /* 🔽 DODANE – zmniejsza całą kartę o 50% */
    transform: scale(0.5);
    transform-origin: center center; /* skaluje od środka */
}


/* ============================================= */
/* 🌍 LANGUAGE SWITCH                             */
/* ============================================= */
.lang-switch {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 5px;
}

.lang-switch button {
    background: rgba(31, 40, 51, 0.7);
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 4px;
    color: #fff;
    transition: 0.3s;
}

.lang-switch button:hover {
    box-shadow: 0 0 15px rgba(176, 133, 245, 0.4);
}

/* ============================================= */
/* 🏷️ HEADERS                                    */
/* ============================================= */
.main-card h1 {
    font-size: 6rem;
    color: #9b59b6;
    margin-bottom: 40px;
    text-shadow: 0 0 10px rgba(176, 133, 245, 0.5);
}

.card-section h2 {
    font-size: 2.5rem;
    color: #9b59b6;
    margin-bottom: 25px;
    text-shadow: 0 0 5px rgba(176, 133, 245, 0.3);
}

/* ============================================= */
/* 📑 SUBCARDS & CONTENT LAYOUT                   */
/* ============================================= */
.subcards {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

/* ============================================= */
/* ✨ FADE-IN ANIMATIONS                          */
/* ============================================= */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards;
}

.fade-in.delay-1 { animation-delay: 0.3s; }
.fade-in.delay-2 { animation-delay: 0.6s; }
.fade-in.delay-3 { animation-delay: 0.9s; }

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================= */
/* 🛠️ SKILLS                                     */
/* ============================================= */
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.skill {
    background: rgba(31, 40, 51, 0.7);
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 0 8px rgba(155, 89, 182, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
    color: #fff;
    font-size: 1.2rem;
}

.skill:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(176, 133, 245, 0.5);
}

/* ============================================= */
/* 📂 PROJECTS                                   */
/* ============================================= */
.projects-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.project-card {
    background: rgba(31, 40, 51, 0.7);
    padding: 20px;
    border-radius: 15px;
    width: 180px;
    box-shadow: 0 0 8px rgba(155, 89, 182, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.project-card h3 {
    color: inherit;
    margin: 0;
    font-size: 1.4rem;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(176, 133, 245, 0.5);
}

/* ============================================= */
/* 📞 CONTACT BOX                                */
/* ============================================= */
.contact-box {
    background: rgba(31, 40, 51, 0.6);
    padding: 25px;
    border-radius: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-box p {
    font-size: 1.8rem;
    color: #fff;
}

.neon-text {
    color: #9b59b6;
    font-weight: 600;
    transition: 0.3s;
}

.contact-box:hover .neon-text {
    text-shadow: 0 0 15px rgba(176, 133, 245, 0.5);
}

/* ============================================= */
/* 🔊 VOLUME SLIDER                              */
/* ============================================= */
.volume-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    opacity: 1;
    transition: opacity 0.3s ease;
}

#volume {
    width: 150px;
    -webkit-appearance: none;
    height: 8px;
    border-radius: 4px;
    outline: none;
    background: #413f3f;
}

#volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    margin-top: -5px;
    box-shadow: 0 0 6px #9b59b6;
}

#volume::-moz-range-thumb {
    background: #fff;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 6px #9b59b6;
}

#volume::-moz-range-track {
    height: 8px;
    border-radius: 4px;
    background: #413f3f;
}

#volume::-moz-range-progress {
    background: #fff;
    height: 8px;
    border-radius: 4px;
}

/* ============================================= */
/* 🖱️ START OVERLAY                              */
/* ============================================= */
#start-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    cursor: pointer;
}

.start-message {
    font-size: 2.5rem;
    color: #9b59b6;
    text-shadow: 0 0 10px rgba(176, 133, 245, 0.5);
    user-select: none;
    animation: pulseText 1.5s infinite alternate;
}

@keyframes pulseText {
    0% { transform: scale(1); color: #9b59b6; text-shadow: 0 0 10px rgba(176, 133, 245, 0.5); }
    50% { transform: scale(1.05); color: #b085f5; text-shadow: 0 0 20px rgba(176, 133, 245, 0.5); }
    100% { transform: scale(1); color: #9b59b6; text-shadow: 0 0 10px rgba(176, 133, 245, 0.5); }
}

/* ============================================= */
/* 📱 RESPONSIVE                                 */
/* ============================================= */
@media (max-width: 768px) {
    .projects-grid,
    .skills-grid,
    .subcards {
        flex-direction: column;
        align-items: center;
    }

    .project-card { width: 80%; }
    .main-card h1 { font-size: 4rem; }
    .card-section h2 { font-size: 2rem; }
    .skill { font-size: 1rem; padding: 10px 15px; }
    .project-card h3 { font-size: 1.2rem; }
    .contact-box p { font-size: 1.4rem; }
}







/* ============================================= */
/* 🛑 UTILITIES                                  */
/* ============================================= */
.hidden { display: none; }
