/* ============================================
   PODSTAWOWE STYLE
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    background-attachment: fixed;
    padding-top: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   HEADER SECTION - NAGŁÓWEK Z LOGO I KONTAKT
   ============================================ */

header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #7796cb 100%);
    color: white;
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    animation: gradientShift 15s ease infinite;
    background-size: 200% 200%;
    width: 100%;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.logo-link {
    display: block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.logo-image {
    height: 100px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
    cursor: pointer;
}

.logo-subtitle {
    font-size: 0;
    color: transparent;
    margin: 0;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    text-align: center;
}

.header-contact {
    text-align: right;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.95);
}

.header-contact p {
    margin: 2px 0;
}

.header-contact strong {
    color: white;
    font-weight: 600;
}

.header-contact a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    transition: color 0.3s;
}

.header-contact a:hover {
    color: #fff;
    text-decoration: underline;
}

.header-social {
    display: flex;
    gap: 10px;
    margin-top: 8px;
    justify-content: flex-end;
}

.header-social-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.header-social-icon svg {
    width: 16px;
    height: 16px;
    fill: white;
    transition: fill 0.3s;
}

.header-social-icon:hover {
    transform: scale(1.15) translateY(-2px);
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.header-social-icon.facebook:hover {
    background: #3b5998;
    border-color: #3b5998;
}

.header-social-icon.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: #bc1888;
}

/* ============================================
   NAVIGATION MENU - MENU NAWIGACYJNE
   ============================================ */

.main-nav {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    position: fixed;
    top: 130px;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 999;
}

.main-nav .container {
    display: flex;
    justify-content: center;
}

#menu-toggle {
    display: none;
}

.floating-menu-btn {
    display: none;
    position: fixed;
    top: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    z-index: 10000;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.6);
    transition: all 0.3s ease;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.floating-menu-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.8);
}

.floating-menu-btn:active {
    transform: scale(0.95);
}

.floating-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

#menu-toggle:checked ~ .floating-menu-btn span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

#menu-toggle:checked ~ .floating-menu-btn span:nth-child(2) {
    opacity: 0;
}

#menu-toggle:checked ~ .floating-menu-btn span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

.menu-close-btn {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
    line-height: 36px;
    text-align: center;
}

.menu-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.nav-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 0;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    position: relative;
    flex: 1;
    display: flex;
}

.nav-menu li:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 25%;
    height: 50%;
    width: 1px;
    background: rgba(52, 152, 219, 0.3);
}

.nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    padding: 19px 35px 11px 35px;
    transition: all 0.4s ease;
    background: transparent;
    font-size: 1rem;
    width: 100%;
    letter-spacing: 0.8px;
    white-space: nowrap;
    position: relative;
    overflow: visible;
}

/* EFEKT LINII - TUŻ POD NAPISEM */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 0;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, #1e3c72 0%, #2a5298 50%, #7796cb 100%);
    transition: width 0.4s ease;
    box-shadow: 0 2px 10px rgba(42, 82, 152, 0.6);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    background: rgba(52, 152, 219, 0.2);
    transform: translateY(-2px);
    color: #ffffff;
}

/* ============================================
   HERO SECTION - SEKCJA GŁÓWNA
   ============================================ */

.hero {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 50%, #1e3a8a 100%);
    color: white;
    padding: 0;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    margin-top: 185px;
    scroll-margin-top: 185px;
    min-height: calc(100vh - 185px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-content {
    padding: 60px 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.3);
    animation: fadeInDown 1s ease-out;
}

.hero-content > p:first-of-type {
    font-size: 1.6rem;
    margin-bottom: 20px;
    opacity: 0.95;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.hero-description {
    max-width: 800px;
    margin: 30px auto;
    font-size: 1.15rem;
    line-height: 1.8;
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    color: #1e40af;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    margin-top: 30px;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease-out 0.6s backwards;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.4);
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    cursor: pointer;
}

.scroll-indicator svg {
    width: 40px;
    height: 40px;
    fill: white;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.scroll-indicator:hover svg {
    opacity: 1;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ============================================
   OFFER SECTION - SEKCJA OFERTY (było Portfolio)
   ============================================ */

.offer,
.portfolio {
    padding: 80px 0;
    background: linear-gradient(135deg, #0f3460 0%, #16213e 50%, #1a1a2e 100%);
    scroll-margin-top: 185px;
}

.offer h2,
.portfolio h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.section-intro {
    text-align: center;
    font-size: 1.2rem;
    color: #b0b0b0;
    margin-bottom: 50px;
}

.offer-category,
.portfolio-category {
    margin-top: 60px;
    margin-bottom: 60px;
}

.category-title {
    text-align: center;
    font-size: 2rem;
    color: #3498db;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid rgba(52, 152, 219, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.offer-grid,
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.offer-item,
.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.3) 0%, rgba(15, 52, 96, 0.3) 100%);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.offer-item:hover,
.portfolio-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(52, 152, 219, 0.5);
}

.offer-image,
.portfolio-image {
    width: 100%;
    height: 350px;
    object-fit: contain;
    display: block;
    background: rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.offer-item:hover .offer-image,
.portfolio-item:hover .portfolio-image {
    transform: scale(1);
}

.offer-overlay,
.portfolio-overlay {
    position: relative;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 20px;
    border-top: none;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.offer-item:hover .offer-overlay,
.portfolio-item:hover .portfolio-overlay {
    background: rgba(0, 0, 0, 0.95);
}

.offer-overlay h4,
.portfolio-overlay h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: #3498db;
    font-weight: 700;
}

.offer-description-1,
.offer-description-2 {
    font-size: 0.9rem;
    color: #e0e0e0;
    line-height: 1.4;
    opacity: 0.95;
    margin-bottom: 4px;
}

.portfolio-overlay p {
    font-size: 0.9rem;
    color: #e0e0e0;
    line-height: 1.4;
    opacity: 0.95;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.offer-item,
.portfolio-item {
    animation: fadeInScale 0.6s ease-out backwards;
}

.offer-item:nth-child(1),
.portfolio-item:nth-child(1) { animation-delay: 0.1s; }
.offer-item:nth-child(2),
.portfolio-item:nth-child(2) { animation-delay: 0.2s; }
.offer-item:nth-child(3),
.portfolio-item:nth-child(3) { animation-delay: 0.3s; }
.offer-item:nth-child(4),
.portfolio-item:nth-child(4) { animation-delay: 0.4s; }
.offer-item:nth-child(5),
.portfolio-item:nth-child(5) { animation-delay: 0.5s; }
.offer-item:nth-child(6),
.portfolio-item:nth-child(6) { animation-delay: 0.6s; }
.offer-item:nth-child(7),
.portfolio-item:nth-child(7) { animation-delay: 0.7s; }
.offer-item:nth-child(8),
.portfolio-item:nth-child(8) { animation-delay: 0.8s; }

/* ============================================
   TECHNOLOGIES SECTION - SEKCJA TECHNOLOGII
   ============================================ */

.technologies {
    padding: 80px 0 200px 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    scroll-margin-top: 185px;
    min-height: 100vh;
}

.technologies h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

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

.tech-card {
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.4) 0%, rgba(15, 52, 96, 0.6) 100%);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.3);
    transition: all 0.3s;
    border: 1px solid rgba(52, 152, 219, 0.2);
}

.tech-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 35px rgba(52, 152, 219, 0.4);
    border-color: #3498db;
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.6) 0%, rgba(15, 52, 96, 0.8) 100%);
}

.tech-card h3 {
    color: #ffffff;
    margin-bottom: 20px;
    font-size: 1.6rem;
    border-bottom: 3px solid #3498db;
    padding-bottom: 10px;
}

.tech-card p {
    color: #d0d0d0;
    line-height: 1.8;
    font-size: 0.95rem;
}

/* ============================================
   ABOUT US SECTION - SEKCJA O NAS
   ============================================ */

.about {
    min-height: calc(100vh - 185px); /* desktop */
    display: flex;
    align-items: center;          /* pionowe wyśrodkowanie treści */
    padding: 80px 0;
    background: linear-gradient(180deg, #0f3460 0%, #16213e 100%);
    scroll-margin-top: 185px;

}

.about h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.about-content {
    max-width: 900px;
    margin: 40px auto;
}

.about-content p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #d0d0d0;
}

.advantages {
    list-style: none;
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.advantages li {
    padding: 15px;
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.4) 0%, rgba(42, 82, 152, 0.3) 100%);
    border-left: 4px solid #3498db;
    font-size: 1rem;
    color: #ffffff;
    transition: all 0.3s;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.advantages li:hover {
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.6) 0%, rgba(42, 82, 152, 0.5) 100%);
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

/* ============================================
   CONTACT SECTION - SEKCJA KONTAKTU
   ============================================ */

.contact {
    padding: 80px 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: white;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
    scroll-margin-top: 185px;
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 50px;
    margin-top: 40px;
}

.contact-info {
    background: rgba(30, 60, 114, 0.3);
    padding: 30px;
    border-radius: 10px;
    border-left: 4px solid #3498db;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.contact-form-info {
    background: rgba(52, 152, 219, 0.15);
    padding: 30px;
    border-radius: 10px;
    border-left: 4px solid #2ecc71;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.contact-info h3,
.contact-form-info h3 {
    margin-bottom: 25px;
    font-size: 1.5rem;
    color: #3498db;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-item {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.contact-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.contact-item strong {
    display: block;
    margin-bottom: 12px;
    font-size: 1.1rem;
    color: #3498db;
    font-weight: 700;
}

.contact-item p {
    line-height: 1.8;
    opacity: 0.9;
    font-size: 1rem;
    color: #e0e0e0;
}

.contact-item a {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.contact-item a:hover {
    color: #2ecc71;
    text-decoration: underline;
}

.contact-form-info p {
    margin-bottom: 20px;
    line-height: 1.8;
    opacity: 0.9;
    font-size: 1rem;
    color: #e0e0e0;
}

.contact-cta {
    display: flex;
    gap: 15px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.cta-phone,
.cta-email,
.cta-visit {
    flex: 1;
    min-width: 150px;
    padding: 15px 25px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    text-align: center;
    transition: all 0.3s;
    display: inline-block;
    border: 2px solid transparent;
}

.cta-phone {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
}

.cta-phone:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
    border-color: #ffffff;
}

.cta-email {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
}

.cta-email:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
    border-color: #ffffff;
}

.cta-visit {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
    margin-top: 20px;
    width: 100%;
}

.cta-visit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.4);
    border-color: #ffffff;
}

.contact-divider {
    border: none;
    border-top: 2px dashed rgba(255,255,255,0.2);
    margin: 30px 0;
}

/* ============================================
   MAP SECTION - SEKCJA MAPY
   ============================================ */

.map-section {
    margin-top: 60px;
    padding: 30px;
    background: rgba(30, 60, 114, 0.3);
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(52, 152, 219, 0.3);
}

.map-section h3 {
    color: #3498db;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.map-section p {
    margin: 10px 0 30px 0;
    line-height: 1.8;
    opacity: 0.9;
    font-size: 0.95rem;
}

.map-container {
    width: 100%;
    max-width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.4);
}

.map-container iframe {
    width: 100%;
    height: 450px;
    border: 0;
    display: block;
    filter: grayscale(20%) brightness(0.9);
}

/* ============================================
   FOOTER SECTION - STOPKA
   ============================================ */

footer {
    background: linear-gradient(135deg, #0a0a1a 0%, #16213e 100%);
    color: white;
    padding: 40px 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.footer-section {
    text-align: left;
}

.footer-section h4 {
    margin-bottom: 15px;
    color: #3498db;
    font-size: 1.2rem;
}

.footer-section p {
    line-height: 1.8;
    opacity: 0.8;
    margin: 5px 0;
    font-size: 0.9rem;
}

.footer-section a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #3498db;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
    opacity: 0.7;
    width: 100%;
    font-size: 0.85rem;
}

.social-media {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    justify-content: flex-start;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
}

.social-icon svg {
    width: 20px;
    height: 20px;
    fill: white;
}

.social-icon:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.2);
}

.social-icon.facebook:hover {
    background: #3b5998;
}

.social-icon.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

/* ============================================
   RESPONSIVE DESIGN - MAŁE TELEFONY (≤480px)
   ============================================ */

@media (max-width: 480px) {
    header {
        padding: 0.5rem 0;
    }

    .logo {
        flex-direction: column;
        gap: 5px;
    }

    .logo-image {
        height: 50px;
    }

    .header-contact {
        display: none;
    }

    .header-social {
        display: none;
    }

    .main-nav {
        top: 80px;
    }

    .nav-link {
        padding: 14px 12px;
        font-size: 0.85rem;
    }

    .hero {
        margin-top: 100px;
        min-height: calc(100vh - 100px);
    }

    .hero-content {
        padding: 40px 15px;
    }

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

    .hero-content > p:first-of-type {
        font-size: 1.1rem;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .scroll-indicator {
        bottom: 15px;
    }

    .scroll-indicator svg {
        width: 30px;
        height: 30px;
    }
    .about {
        min-height: calc(100vh - 70px);
    }
    .technologies h2,
    .about h2,
    .contact h2,
    .offer h2,
    .portfolio h2 {
        font-size: 1.8rem;
    }

    .section-intro {
        font-size: 1rem;
    }

    .offer-image,
    .portfolio-image {
        height: 200px;
    }

    .tech-card {
        padding: 25px;
    }

    .tech-card h3 {
        font-size: 1.3rem;
    }

    .technologies {
        padding: 60px 0 150px 0;
        min-height: auto;
    }

    .map-container iframe {
        height: 300px;
    }

    .map-section {
        padding: 20px;
    }

    .map-section h3 {
        font-size: 1.4rem;
    }

    .floating-menu-btn {
        display: flex;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-cta {
        flex-direction: column;
    }

    .cta-phone,
    .cta-email,
    .cta-visit {
        width: 100%;
    }

    .offer,
    .portfolio {
        padding: 60px 0;
    }

    .category-title {
        font-size: 1.4rem;
    }

    .offer-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .offer-overlay h4,
    .portfolio-overlay h4 {
        font-size: 1.1rem;
    }

    .offer-description-1,
    .offer-description-2,
    .portfolio-overlay p {
        font-size: 0.85rem;
    }

    .offer,
    .portfolio,
    .technologies,
    .about,
    .contact {
        scroll-margin-top: 100px;
    }
}

/* ============================================
   RESPONSIVE DESIGN - ŚREDNIE URZĄDZENIA (≤768px)
   ============================================ */

@media (max-width: 768px) {
    header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .header-content {
        width: 100%;
    }

    .logo {
        flex-direction: row;
        gap: 15px;
    }

    .logo-image {
        height: 60px;
    }

    .header-contact {
        display: none;
    }

    .header-social {
        display: none;
    }

    .floating-menu-btn {
        display: flex;
    }

    .main-nav {
        display: none;
        top: 70px;
    }

    #menu-toggle:checked ~ .main-nav {
        display: block;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(26, 26, 46, 0.98);
        z-index: 9998;
        overflow-y: auto;
    }

    #menu-toggle:checked ~ .main-nav .container {
        position: relative;
    }

    #menu-toggle:checked ~ .main-nav .menu-close-btn {
        display: flex;
    }

    #menu-toggle:checked ~ .main-nav .nav-menu {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding-top: 20px;
        gap: 0;
    }

    .nav-menu {
        display: none;
    }

    .nav-menu li {
        flex: auto;
    }

    .nav-menu a {
        padding: 20px 40px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        text-align: center;
        font-size: 1.3rem;
        width: 100%;
        font-weight: 700;
        background: rgba(30, 60, 114, 0.5);
    }

    .nav-menu li::after {
        display: none;
    }

    .nav-menu li:last-child a {
        border-bottom: none;
    }

    .hero {
        margin-top: 70px;
        min-height: calc(100vh - 70px);
    }

    .hero-content {
        padding: 50px 20px;
    }

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

    .hero-content > p:first-of-type {
        font-size: 1.2rem;
    }

    .scroll-indicator {
        bottom: 20px;
    }

    .scroll-indicator svg {
        width: 35px;
        height: 35px;
    }

    .technologies,
        .about {
        min-height: calc(100vh - 100px);
    }
    .contact,
    .offer,
    .portfolio {
        padding: 60px 0;
        scroll-margin-top: 70px;
    }

    .technologies {
        padding: 60px 0 150px 0;
        min-height: auto;
    }

    .tech-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .advantages {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-info,
    .contact-form-info {
        padding: 25px;
    }

    .contact-info h3,
    .contact-form-info h3 {
        font-size: 1.3rem;
    }

    .contact-cta {
        flex-direction: column;
    }

    .cta-phone,
    .cta-email,
    .cta-visit {
        width: 100%;
    }

    .map-container iframe {
        height: 350px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-section {
        text-align: center;
    }

    .social-media {
        justify-content: center;
    }

    .category-title {
        font-size: 1.6rem;
    }

    .offer-grid,
    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }

    .offer-overlay h4,
    .portfolio-overlay h4 {
        font-size: 1.1rem;
    }

    .offer-description-1,
    .offer-description-2,
    .portfolio-overlay p {
        font-size: 0.85rem;
    }
}

/* ============================================
   RESPONSIVE DESIGN - DESKTOP (≥769px)
   ============================================ */

@media (min-width: 769px) {
    .floating-menu-btn {
        display: none !important;
    }

    .main-nav {
        display: block !important;
        position: fixed;
    }

    .nav-menu {
        display: flex;
    }

    .nav-menu li {
        flex: 1;
    }

    .nav-menu a {
        padding: 19px 35px 11px 35px;
        font-size: 1rem;
        background: transparent;
    }

    .nav-menu li::after {
        display: block;
    }

    .header-contact {
        display: block;
    }

    .header-social {
        display: flex;
    }

    .hero {
        margin-top: 185px;
        min-height: calc(100vh - 185px);
    }

    .hero-content {
        padding: 60px 20px;
    }

    .contact-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }

    .offer,
    .portfolio,
    .technologies,
    .about,
    .contact {
        scroll-margin-top: 185px;
    }
}

/* ============================================
   RESPONSIVE DESIGN - TABLETY (769px-1024px)
   ============================================ */

@media (min-width: 769px) and (max-width: 1024px) {
    .logo-image {
        height: 70px;
    }

    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .offer-grid,
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   RESPONSIVE DESIGN - DUŻE EKRANY (≥1400px)
   ============================================ */

@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }

    .offer-grid,
    .portfolio-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}


/* ============================================
   MODAL POLITYKI PRYWATNOŚCI
   ============================================ */

.privacy-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.85);
}

.privacy-modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    margin: 3% auto;
    padding: 0;
    border: 2px solid #3498db;
    border-radius: 15px;
    width: 90%;
    max-width: 900px;
    box-shadow: 0 10px 50px rgba(52, 152, 219, 0.5);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.privacy-close {
    position: absolute;
    top: 15px;
    right: 25px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 11;
    line-height: 1;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.privacy-close:hover,
.privacy-close:focus {
    background: rgba(231, 76, 60, 0.8);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 15px rgba(231, 76, 60, 0.6);
}

.privacy-modal-content h2 {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
    padding: 25px 30px;
    margin: 0;
    border-radius: 13px 13px 0 0;
    font-size: 2rem;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 10;
}

.privacy-content {
    padding: 40px 50px;
    color: #e0e0e0;
    line-height: 1.8;
}

.privacy-content h3 {
    color: #3498db;
    font-size: 1.5rem;
    margin-top: 30px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(52, 152, 219, 0.3);
}

.privacy-content h3:first-child {
    margin-top: 0;
}

.privacy-content p {
    margin-bottom: 15px;
    font-size: 1.05rem;
    color: #e0e0e0;
}

.privacy-content ul {
    margin: 15px 0 25px 25px;
    padding-left: 20px;
}

.privacy-content ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 10px;
    color: #e0e0e0;
}

.privacy-content ul li::marker {
    color: #3498db;
}

.privacy-date {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid rgba(52, 152, 219, 0.3);
    text-align: center;
    font-size: 1rem;
    color: #3498db;
}

.privacy-modal-content::-webkit-scrollbar {
    width: 12px;
}

.privacy-modal-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 0 15px 15px 0;
}

.privacy-modal-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3498db 0%, #2563eb 100%);
    border-radius: 10px;
    border: 2px solid rgba(0, 0, 0, 0.3);
}

.privacy-modal-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
}

@media (max-width: 768px) {
    .privacy-modal-content {
        width: 95%;
        margin: 5% auto;
        max-height: 85vh;
    }

    .privacy-modal-content h2 {
        font-size: 1.5rem;
        padding: 20px 50px 20px 20px;
    }

    .privacy-close {
        right: 15px;
        top: 12px;
        font-size: 35px;
        width: 40px;
        height: 40px;
    }

    .privacy-content {
        padding: 30px 25px;
    }

    .privacy-content h3 {
        font-size: 1.3rem;
    }

    .privacy-content p {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .privacy-modal-content {
        width: 98%;
        margin: 2% auto;
        border-radius: 10px;
    }

    .privacy-modal-content h2 {
        font-size: 1.3rem;
        padding: 15px 45px 15px 15px;
        border-radius: 8px 8px 0 0;
    }

    .privacy-close {
        font-size: 30px;
        width: 35px;
        height: 35px;
        right: 10px;
        top: 10px;
    }

    .privacy-content {
        padding: 20px 15px;
    }

    .privacy-content h3 {
        font-size: 1.2rem;
        margin-top: 25px;
    }

    .privacy-content p {
        font-size: 0.9rem;
    }

    .privacy-content ul {
        margin-left: 15px;
        padding-left: 15px;
    }
}
/* ============================================
   LIGHTBOX - PEŁNOEKRANOWY PODGLĄD ZDJĘĆ
   ============================================ */

.lightbox {
    display: none;
    position: fixed;
    z-index: 10001;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    animation: zoomIn 0.3s ease;
    border-radius: 5px;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 50px;
    color: #fff;
    cursor: pointer;
    font-weight: 300;
    transition: color 0.3s, transform 0.3s;
    z-index: 10002;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    color: #e74c3c;
    transform: rotate(90deg);
    background: rgba(231, 76, 60, 0.8);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 50px;
    color: #fff;
    cursor: pointer;
    padding: 20px;
    user-select: none;
    transition: all 0.3s;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(52, 152, 219, 0.8);
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.portfolio-image {
    cursor: pointer;
    transition: transform 0.3s, opacity 0.3s;
}

.portfolio-image:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* ============================================
   DODATKOWE STYLE DLA LEPSZEJ SEMANTYKI
   ============================================ */

.footer-logo {
    height: 80px;
    width: auto;
    margin-bottom: 15px;
    filter: brightness(1) invert(0);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin: 5px 0;
}

.privacy-btn {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
    font: inherit;
    text-align: left;
}

.privacy-btn:hover {
    color: #3498db;
}

.privacy-logo {
    text-align: center;
    margin-bottom: 20px;
}

.privacy-logo img {
    height: 80px;
    width: auto;
    filter: brightness(1) invert(0);
}

/* Responsive dla lightbox */
@media (max-width: 768px) {
    .lightbox-close {
        top: 10px;
        right: 10px;
        font-size: 40px;
        width: 50px;
        height: 50px;
    }

    .lightbox-prev,
    .lightbox-next {
        font-size: 40px;
        width: 50px;
        height: 50px;
        padding: 15px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-content {
        max-width: 95%;
        max-height: 80%;
    }
}

@media (max-width: 480px) {
    .lightbox-close,
    .lightbox-prev,
    .lightbox-next {
        font-size: 35px;
        width: 45px;
        height: 45px;
    }

    .lightbox-content {
        max-width: 98%;
        max-height: 75%;
    }
}
