body {
    margin: 0;
    padding: 0;
    background: #050505;
    color: #eee;
    font-family: 'Segoe UI', sans-serif;
    overflow-x: hidden;
}

/* HERO */
.hero {
    text-align: center;
    padding-top: 10vh;
}

.title {
    font-family: 'Bruno Ace SC', sans-serif;
    font-size: 5rem;
    letter-spacing: 5px;
    color: #cfffff;
    -webkit-text-stroke: 0.3px #cfffff;
    text-shadow:
        0 0 6px rgba(200,255,255,0.5),
        0 0 12px rgba(200,255,255,0.3);
}

@keyframes glow {
    from { text-shadow: 0 0 10px cyan; }
    to { text-shadow: 0 0 30px cyan; }
}

.subtitle {
    font-size: 1.4rem;
    margin-top: -10px;
    opacity: 0.8;
}

.cta {
    display: inline-block;
    margin-top: 30px;
    padding: 12px 30px;
    border: 2px solid cyan;
    color: cyan;
    text-decoration: none;
    font-size: 1.2rem;
    transition: 0.3s;
}

.cta:hover {
    background: cyan;
    color: #000;
    box-shadow: 0 0 20px cyan;
}

/* SECTIONS */
section {
    max-width: 1100px;
    margin: 120px auto;
    padding: 0 20px;
}

h2 {
    font-family: 'Bruno Ace SC', sans-serif;
    letter-spacing: 3px;
    color: #bffcff;

    /* neon core */
    -webkit-text-stroke: 0.4px #bffcff;

    /* glow warstwowy */
    text-shadow:
        0 0 6px rgba(0,255,255,0.6),
        0 0 14px rgba(0,255,255,0.35),
        0 0 28px rgba(0,255,255,0.25);

    /* linia pod nagłówkiem – jak w systemach UI */
    position: relative;
    padding-bottom: 12px;
}

h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 80px;
    height: 2px;
    background: cyan;
    box-shadow: 0 0 12px cyan;
}

h2, h3, .subtitle {
    font-family: 'Bruno Ace SC', sans-serif;
    letter-spacing: 2px;
}

/* CARDS */
/* POZIOMY UKŁAD USŁUG — FINALNA, ODCHUDZONA WERSJA */
.services .cards {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.services .card {
    flex: 1;
    min-width: 280px;
    padding: 20px;
    border: 1px solid rgba(0,255,255,0.45);
    background: rgba(0, 20, 20, 0.15);
    box-shadow: 0 0 10px rgba(0,255,255,0.15);
    transition: 0.3s;
    backdrop-filter: blur(3px);
    border-radius: 6px;
}

.services .card:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 0 18px rgba(0,255,255,0.35);
}

.services .card h3 {
    color: cyan;
    margin-bottom: 8px;
    text-shadow: 0 0 4px rgba(0,255,255,0.35);
    letter-spacing: 1px;
}

.lang-switch {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10;
}

.lang-switch button {
    background: transparent;
    border: 2px solid cyan;
    color: cyan;
    padding: 6px 12px;
    margin-left: 10px;
    cursor: pointer;
    transition: 0.3s;
}

.lang-switch button:hover {
    background: cyan;
    color: #000;
    box-shadow: 0 0 15px cyan;
}

/* PORTFOLIO */
.portfolio {
    max-width: 1100px;
    margin: 120px auto;
    padding: 0 20px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.portfolio-item {
    cursor: pointer;
    background: rgba(0, 20, 20, 0.25);
    border: 2px solid cyan;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 0 15px rgba(0,255,255,0.2);
    transition: 0.3s;
    backdrop-filter: blur(4px);
}

.portfolio-item:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 0 25px cyan;
}

.portfolio-item h3 {
    color: cyan;
    margin-bottom: 10px;
}

.portfolio-item .thumb {
    width: 100%;
    height: 160px;
    background: rgba(0,255,255,0.1);
    border: 1px solid rgba(0,255,255,0.4);
    margin-bottom: 15px;
    border-radius: 4px;
    box-shadow: inset 0 0 20px rgba(0,255,255,0.2);
}

.portfolio-item p {
    color: white !important;
}

/* MATRIX BACKGROUND */
#matrix {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -30;
    pointer-events: none;
}

/* 3D GRID BACKGROUND */
#grid {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background: repeating-linear-gradient(
        to right,
        rgba(0,255,255,0.1) 0px,
        rgba(0,255,255,0.1) 1px,
        transparent 1px,
        transparent 40px
    ),
    repeating-linear-gradient(
        to bottom,
        rgba(0,255,255,0.1) 0px,
        rgba(0,255,255,0.1) 1px,
        transparent 1px,
        transparent 40px
    );
    transform: perspective(600px) rotateX(60deg);
    transform-origin: top;
    z-index: -1;
}
