/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* Body */
body {
    background: #0a0a0a;
    color: #f0f0f0;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: rgba(10, 10, 10, 0.9);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

header .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #00f5ff;
    letter-spacing: 1px;
}

header nav a {
    margin-left: 1.5rem;
    color: #f0f0f0;
    text-decoration: none;
    transition: color 0.3s;
}

header nav a:hover {
    color: #00f5ff;
}

/* Hero section */
#hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    background: linear-gradient(135deg, #0a0a0a 0%, #111 100%);
}

#hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 1s forwards 0.3s;
}

#hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    opacity: 0;
    animation: fadeInUp 1s forwards 0.6s;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    margin: 0.5rem;
    background: #00f5ff;
    color: #0a0a0a;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    background: #00c8d8;
    transform: translateY(-3px);
}

.btn::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 0%;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.1);
    transition: 0.3s;
}

.btn:hover::after {
    height: 100%;
}

/* Nowoczesny przycisk formularza */
.btn-form,
form button {
    padding: 12px 30px;
    border-radius: 25px;
    border: none;
    background: linear-gradient(135deg, #00ffff, #00cccc);
    color: #0f172a;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.3);
}

.btn-form:hover,
form button:hover {
    background: linear-gradient(135deg, #00cccc, #00aaaa);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 255, 255, 0.5);
}

.btn-form:active,
form button:active {
    transform: translateY(0);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.3);
}

/* Sections */
section {
    padding: 6rem 5%;
    text-align: center;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1s forwards;
}

section:nth-of-type(2) {
    animation-delay: 0.2s;
}

section:nth-of-type(3) {
    animation-delay: 0.4s;
}

section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #00f5ff;
}

section p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Forms */
form {
    display: flex;
    flex-direction: column;
    max-width: 500px;
    margin: 2rem auto;
    background: #111;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
}

form input,
form textarea,
form button {
    margin-bottom: 1rem;
    padding: 0.8rem;
    border-radius: 10px;
    border: none;
    font-size: 1rem;
}

form input,
form textarea {
    background: #222;
    color: #f0f0f0;
}

form textarea {
    resize: none;
    min-height: 120px;
}

form button {
    background: #00f5ff;
    color: #0a0a0a;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

form button:hover {
    background: #00c8d8;
    transform: translateY(-2px);
}

.success {
    color: #0ff;
    text-align: center;
    margin-bottom: 1rem;
}

.error {
    color: #ff4c4c;
    text-align: center;
    margin-bottom: 1rem;
}

/* Footer */
footer {
    background: #111;
    padding: 2rem 5%;
    text-align: center;
    color: #888;
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    #hero h1 {
        font-size: 2.2rem;
    }
    #hero p {
        font-size: 1rem;
    }
}

.service-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background: #111;
    padding: 2rem;
    border-radius: 15px;
    flex: 1 1 250px;
    max-width: 300px;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
    transition:
        transform 0.3s,
        box-shadow 0.3s;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1s forwards;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.4);
}

.service-card h3 {
    color: #00f5ff;
    margin-bottom: 0.8rem;
}

.service-card p {
    font-size: 1rem;
    color: #ccc;
}

.language-switch {
    font-size: 0.9rem;
}

.language-switch a {
    color: #f0f0f0;
    text-decoration: none;
    margin: 0 0.3rem;
    transition: color 0.3s;
}

.language-switch a.active {
    color: #00f5ff;
    font-weight: bold;
}

.language-switch a:hover {
    color: #00f5ff;
}

.language-switch-mobile {
    margin-top: 1rem;
    font-size: 0.9rem;
    text-align: center;
}

.language-switch-mobile a {
    color: #f0f0f0;
    text-decoration: none;
    margin: 0 0.3rem;
    transition: color 0.3s;
}

.language-switch-mobile a.active {
    color: #00f5ff;
    font-weight: bold;
}

.language-switch-mobile a:hover {
    color: #00f5ff;
}

.language-switch-mobile {
    display: none;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 25px;
    height: 20px;
    cursor: pointer;
}

.hamburger span {
    display: block;
    height: 3px;
    background: #00f5ff;
    border-radius: 2px;
    transition: 0.3s;
}

/* Mobile */
@media (max-width: 768px) {
    nav {
        position: absolute;
        top: 70px;
        right: 0;
        background: #111;
        flex-direction: column;
        width: 200px;
        padding: 1rem;
        display: none; /* ukryte domyślnie */
        border-radius: 0 0 0 10px;
    }

    nav.active {
        display: flex;
    }

    nav a {
        margin: 0.5rem 0;
    }

    .hamburger {
        display: flex;
    }

    .language-switch-mobile {
        display: block;
    }
    .language-switch {
        display: none; /* ukrywamy w header na mobile, można w menu wrzucić */
    }
}

/* Animacja hamburgera po kliknięciu (zamiana w X) */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}
