/* --- Zmienne Projektu --- */
:root {
    --bg: #050a15;
    --accent: #00d2ff;
    --accent-dark: #0077ff;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #ffffff;
    --text-dim: #a0a8b1;
    --osp-red: #ff4d4d;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset i Baza --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    -webkit-user-select: none;  /* Chrome, Safari */
    -moz-user-select: none;     /* Firefox */
    -ms-user-select: none;      /* IE/Edge */
    user-select: none;
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

img {
    -webkit-touch-callout: none;
    pointer-events: none;
}

/* Poświata w tle */
body::before {
    content: "";
    position: fixed;
    top: -10%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-dark) 0%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
    opacity: 0.3;
}

/* --- Nawigacja --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 10%;
    background: rgba(5, 10, 21, 0.85);
    backdrop-filter: blur(12px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -1px;
    background: linear-gradient(to right, #fff, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}

.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    margin-left: 2rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover { 
    color: var(--accent); 
}

/* --- Hero / Header --- */
header {
    height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 1rem;
    margin-top: 80px;
}

header h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

header h1 span {
    background: linear-gradient(90deg, var(--accent), #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

header p {
    color: var(--text-dim);
    max-width: 600px;
    font-size: 1.1rem;
}

/* --- Układ i Sekcje --- */
.container { 
    padding: 40px 10% 80px 10%; 
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3.5rem;
    position: relative;
    font-weight: 800;
}

.section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -12px;
    width: 60px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

/* --- Sekcja O Mnie --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 5rem;
    align-items: center;
}

/* Karta techniczna zamiast zdjęcia */
.tech-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    padding: 2rem;
    backdrop-filter: blur(12px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transition: var(--transition);
}

.tech-card:hover {
    border-color: var(--glass-border);
    transform: translateY(-4px);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10b981;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--glass-border);
    font-size: 0.95rem;
}

.spec-item:last-child {
    border-bottom: none;
}

.spec-label {
    color: var(--text-dim);
}

.spec-value {
    font-weight: 700;
    color: var(--text-main);
}

.highlight-text { 
    color: var(--text-main); 
    font-size: 1.4rem; 
    margin-bottom: 1.2rem; 
    font-weight: 700; 
}

.description { 
    color: var(--text-dim); 
    margin-bottom: 1.2rem; 
    font-size: 1.05rem; 
}

.accent-color { 
    color: var(--accent); 
}

.skills-mini { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 12px; 
    margin-top: 25px; 
}

.skill-tag {
    padding: 8px 18px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--accent);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
}

.skill-tag.osp {
    color: var(--osp-red);
    border-color: rgba(255, 77, 77, 0.3);
    background: rgba(255, 77, 77, 0.05);
}

/* --- Sekcja Usługi (Główna) --- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    padding: 3rem 2rem;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-12px);
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.05);
}

.card .icon { 
    font-size: 3rem; 
    margin-bottom: 1.5rem; 
    display: block; 
}

/* --- Sekcja Portfolio (Realizacje) --- */
.filter-buttons { 
    display: flex; 
    justify-content: center; 
    gap: 12px; 
    margin-bottom: 3rem; 
    flex-wrap: wrap; 
}

.filter-btn {
    background: var(--glass); 
    border: 1px solid var(--glass-border);
    color: white; 
    padding: 12px 28px; 
    border-radius: 50px; 
    cursor: pointer; 
    font-weight: 600;
    transition: var(--transition);
}

.filter-btn.active, 
.filter-btn:hover { 
    background: var(--accent); 
    color: #050a15; 
    border-color: var(--accent); 
}

.portfolio-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); 
    gap: 30px; 
}

.work-item { 
    background: var(--glass); 
    border: 1px solid var(--glass-border); 
    border-radius: 24px; 
    overflow: hidden; 
    transition: var(--transition); 
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.work-item:hover { 
    transform: translateY(-10px); 
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.work-img { 
    width: 100%; 
    height: 220px; 
    background: #101827; 
    background-size: cover; 
    background-position: center;
    border-bottom: 1px solid var(--glass-border);
}

.work-info {
    padding: 25px;
}

.work-category { 
    color: var(--accent); 
    font-size: 0.75rem; 
    font-weight: 700; 
    text-transform: uppercase; 
    margin-bottom: 5px; 
    letter-spacing: 1px; 
}

.work-title { 
    font-size: 1.25rem; 
    font-weight: 800; 
    color: var(--text-main); 
}

/* --- Kontakt --- */
#contact {
    background: var(--glass);
    margin: 50px 10% 100px 10%;
    border-radius: 40px;
    padding: 4rem;
    border: 1px solid var(--glass-border);
}

.contact-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 4rem; 
}

form { 
    display: flex; 
    flex-direction: column; 
    gap: 1.2rem; 
}

input, textarea {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 1.2rem; 
    border-radius: 16px; 
    color: #fff;
    font-family: inherit; 
    font-size: 1rem;
    transition: var(--transition);
}

input:focus, textarea:focus { 
    outline: none; 
    border-color: var(--accent); 
    background: rgba(255, 255, 255, 0.08); 
}

.submit-btn {
    background: var(--accent); 
    color: #050a15; 
    border: none;
    padding: 1.2rem; 
    border-radius: 16px; 
    font-weight: 800; 
    cursor: pointer;
    text-transform: uppercase; 
    letter-spacing: 1px; 
    transition: var(--transition);
}

.submit-btn:hover { 
    transform: scale(1.02); 
    box-shadow: 0 10px 20px rgba(0, 210, 255, 0.2); 
}

/* --- Modal & Slider --- */
.modal {
    display: none; 
    position: fixed; 
    z-index: 2000; 
    left: 0; 
    top: 0;
    width: 100%; 
    height: 100%; 
    background: rgba(5, 10, 21, 0.9); 
    backdrop-filter: blur(15px);
}

.modal-content {
    background: #0a1120; 
    border: 1px solid var(--glass-border);
    margin: 5vh auto; 
    padding: 40px; 
    width: 90%; 
    max-width: 1000px; 
    border-radius: 30px; 
    position: relative; 
    animation: slideUp 0.3s ease;
}

.close { 
    position: absolute; 
    right: 25px; 
    top: 15px; 
    color: var(--text-dim); 
    font-size: 35px; 
    cursor: pointer; 
    z-index: 10; 
}

.close:hover { 
    color: var(--accent); 
}

.modal-body { 
    display: grid; 
    grid-template-columns: 1.2fr 1fr; 
    gap: 30px; 
    align-items: start; 
}

/* Stylizacja Slidera */
.slider-wrapper { 
    position: relative; 
    width: 100%; 
    border-radius: 20px; 
    overflow: hidden; 
    background: #000; 
}

#modalImg { 
    width: 100%; 
    display: block; 
    object-fit: contain; 
    max-height: 60vh; 
}

.slider-btn {
    position: absolute; 
    top: 50%; 
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5); 
    color: white; 
    border: none; 
    padding: 15px 12px; 
    cursor: pointer; 
    font-size: 1.5rem; 
    transition: 0.2s;
}

.slider-btn:hover { 
    background: var(--accent); 
    color: #000; 
}

.prev { 
    left: 0; 
    border-radius: 0 5px 5px 0; 
}

.next { 
    right: 0; 
    border-radius: 5px 0 0 5px; 
}

.modal-text h2 { 
    font-size: 2rem; 
    margin-bottom: 15px; 
    background: linear-gradient(to right, #fff, var(--accent)); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
}

.spec-box { 
    background: rgba(255, 255, 255, 0.05); 
    padding: 20px; 
    border-radius: 15px; 
    margin-top: 20px; 
    border-left: 4px solid var(--accent); 
}

@keyframes slideUp { 
    from { 
        transform: translateY(30px); 
        opacity: 0; 
    } 
    to { 
        transform: translateY(0); 
        opacity: 1; 
    } 
}

/* --- Stopka --- */
footer { 
    text-align: center; 
    padding: 4rem; 
    border-top: 1px solid var(--glass-border); 
    color: var(--text-dim); 
    font-size: 0.9rem; 
}

/* --- Mobile --- */
@media (max-width: 960px) {
    .about-grid, 
    .contact-grid, 
    .modal-body { 
        grid-template-columns: 1fr; 
        gap: 2rem; 
    }

    .container { 
        padding: 40px 5%; 
    }

    .section-title::after { 
        left: 50%; 
        transform: translateX(-50%); 
    }

    .section-title { 
        text-align: center; 
    }

    #contact { 
        padding: 2.5rem; 
        margin: 20px 5%; 
    }

    .modal-content { 
        margin: 0; 
        width: 100%; 
        height: 100%; 
        border-radius: 0; 
        overflow-y: auto; 
        padding: 60px 20px 20px 20px; 
    }
}