* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    font-weight: 400;
    background-color: #111;
    color: #f0f0f0;
    line-height: 1.6;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 40px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: transparent;
    z-index: 100;
    transition: background-color 0.3s ease;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    z-index: 101;
}

.logo img {
    height: 40px;
    width: auto;
    display: block;
    margin-top: 10px;
}

/* Nawigacja desktop */
.nav {
    display: flex;
    gap: 30px;
}

.nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav a:hover {
    color: #fff;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 101;
    padding: 5px;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 2px;
    background-color: #f0f0f0;
    transition: all 0.3s ease;
}

/* Animacja X */
.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Main */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Hero */
.hero {
    position: relative;
    width: 100%;
    height: 100vw;
    max-height: 100vh;
    display: flex;
    align-items: flex-end;      /* tekst bliżej dołu */
    justify-content: flex-end;  /* tekst przy prawej krawędzi */
    overflow: hidden;
    padding: 0 40px 0px 40px;  /* prawa, dół — tym regulujesz odstęp */
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0);
    transition: background-color 0.1s linear;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: right;
    color: #fff;
    max-width: 900px;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 600;
    letter-spacing: 2px;
    line-height: 1.05;
    margin-bottom: 20px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
    white-space: nowrap;
}

.hero-content p {
    font-size: 1.2rem;
    color: #ffffff;
    text-shadow: 0 2px 15px rgba(0,0,0,0.5);
    white-space: nowrap;
}

.hero-slides {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    animation: heroFade 45s infinite;
}

.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 5s; }
.hero-slide:nth-child(3) { animation-delay: 10s; }
.hero-slide:nth-child(4) { animation-delay: 15s; }
.hero-slide:nth-child(5) { animation-delay: 20s; }
.hero-slide:nth-child(6) { animation-delay: 25s; }
.hero-slide:nth-child(7) { animation-delay: 30s; }
.hero-slide:nth-child(8) { animation-delay: 35s; }
.hero-slide:nth-child(9) { animation-delay: 40s; }

@keyframes heroFade {
    0% { opacity: 0; }
    4% { opacity: 1; }
    11% { opacity: 1; }
    15% { opacity: 0; }
    100% { opacity: 0; }
}

/* Services */
.services {
    padding: 80px 0;
    }

.services h2 {
    font-size: 4.5rem;
    font-weight: 600;
    margin-bottom: 50px;
    text-align: left;
}

.services {
    padding: 80px 0;
}

.services h2 {
    font-size: 5rem;
    font-weight: 600;
    margin-bottom: 50px;
}

.services-intro {
    max-width: none;
    color: #ccc;
    font-size: 1.05rem;
    margin-bottom: 60px;
}

.service {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    padding: 32px 0;
    border-top: 1px solid #222;
}

.service h3 {
    font-size: 1.35rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.service p {
    max-width: none;
    color: #999;
    font-size: 0.95rem;
}

/* Projects */
.projects {
    padding: 80px 0;
}

.projects h2 {
    font-size: 4.5rem;
    font-weight: 600;
    margin-bottom: 50px;
    text-align: left;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.project-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
}

.project-card:hover img {
    transform: scale(1.08);
}

.project-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.project-card h3 {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 10px;
    margin: 0;
    z-index: 1;
    font-size: 1.25rem;
    font-weight: 500;
}

/* About */
.about {
    padding: 80px 0;
}

.about h2 {
    font-size: 5rem;
    font-weight: 600;
    margin-bottom: 50px;
}

.about p {
    font-size: 1.05rem;
    color: #ccc;
    max-width: none;
}

/* Contact */
.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact {
    padding: 100px 0px;
}

.contact-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 80px;
    align-items: flex-start;
}

.contact-left h2 {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    letter-spacing: -1px;
}

.contact-left p {
    font-size: 1.2rem;
    color: #ccc;
    line-height: 1.3;
}

.contact-right {
    flex: 1;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    background-color: #1a1a1a;
    border: none;
    border-radius: 12px;
    padding: 18px 22px;
    color: #f0f0f0;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: background-color 0.3s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #777;
}

.contact-form select {
    color: #777;
    cursor: pointer;
}

.contact-form select:valid {
    color: #f0f0f0;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    background-color: #222;
}

.contact-form button {
    background-color: #f0f0f0;
    color: #111;
    border: none;
    border-radius: 50px;
    padding: 18px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    margin-top: 10px;
}

.contact-form button:hover {
    background-color: #fff;
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background-color: #0a0a0a;
    width: 100%;
    padding: 40px 80px 30px;
    border-top: 1px solid #222;
    margin-top: 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-logo img {
    height: 40px;
    width: auto;
    display: block;
}

.footer-social {
    display: flex;
    gap: 22px;
}

.footer-social a {
    display: flex;
}

.footer-social img {
    width: 80px;
    height: 30px;
    display: block;
}

.footer-social a {
    display: flex;
    transition: transform 0.25s ease;
}

.footer-social a:hover {
    transform: translateY(-3px);
}

.footer-contact a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.footer-contact a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid #1a1a1a;
    margin-left: -80px;
    margin-right: -80px;
    padding-left: 80px;
    padding-right: 80px;
}

.footer-bottom p {
    color: #666;
    font-size: 0.85rem;
}

/* Responsywność */
@media (max-width: 900px) {
    .contact-wrapper {
        flex-direction: column;
        gap: 50px;
    }

    .contact-left h2 {
        font-size: 3.2rem;
    }

    .contact-right {
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 1000px) {
    .hero-content h1,
    .hero-content p {
        white-space: normal;
    }

    .hero-content h1 {
        font-size: 2.6rem;
    }

    .hero-content p {
        font-size: 0.63rem;
    }

    .services h2 {
    font-size: 3.2rem;
    }

    .projects h2 {
    font-size: 3.2rem;
    }
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
 .hamburger {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: #111;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transition: right 0.35s ease;
        z-index: 100;
    }

    .nav.active {
        right: 0;
    }

    .nav a {
        font-size: 1.6rem;
        color: #f0f0f0;
    }

    .service {
    grid-template-columns: 1fr;
    gap: 8px;
    }
}
p {
    margin-bottom: 1.2em;
}