* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

:root {
    --red: #ff3d3d;
    --red-dark: #cf2d28;
    --dark: #1a1d21;
    --dark-lighter: #2b2e32;
    --white: rgb(245, 245, 245);
    --accent: #00d4ff;
    --gradient-primary: linear-gradient(135deg, #ff3d3d 0%, #ff6b35 50%, #cf2d28 100%);
    --gradient-secondary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 30px rgba(255, 61, 61, 0.3);
    --border-radius: 16px;
}

html {
    scroll-behavior: smooth;
}

body {
    position: relative;
    background: linear-gradient(45deg, var(--dark) 0%, var(--dark-lighter) 50%, #1e2328 100%);
    overflow-x: hidden;
    min-height: 100vh;
}

#lang-switch {
    position: relative;
}

.language-menu {
    border: none;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.33);
    z-index: 1500;
    width: 120px;
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.08rem;
    padding: 8px 0;
    position: fixed;
    transition: background 0.23s;
    user-select: none;
    animation: fadeInScale .17s;
    top: 100%;
    right: 0;
    background: rgba(20, 22, 28, 0.95);
}

@media screen and (max-width:980px) {
    #lang-switch {
        width: 100%;
        border-radius: 8px;
    }

    .language-menu {
        top: auto;
        right: 0;
        width: 100%;
        transform: translateY(20px)
    }
}

.language-item {
    padding: 10px 28px 10px 18px;
    cursor: pointer;
    transition: background 0.18s, color 0.18s;
    color: var(--white);
    border: none;
    background: none;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 12px;
    margin: 0 6px;
    display: block;
}

.language-item:hover {
    background: rgba(255, 255, 255, 0.19);
    color: var(--red);
}

.language-item.active {
    background: var(--gradient-primary);
    color: var(--white);
    font-weight: 800;
    box-shadow: 0 0 18px rgba(255, 61, 61, 0.12);
}



#lang-switch:hover {
    opacity: 0.92;
}


/* Animated background particles */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 20px 30px, rgba(255, 61, 61, 0.1), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(0, 212, 255, 0.1), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255, 255, 255, 0.05), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255, 61, 61, 0.05), transparent);
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: float 20s ease-in-out infinite;
    z-index: -1;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    25% {
        transform: translateY(-10px) rotate(1deg);
    }

    50% {
        transform: translateY(-20px) rotate(0deg);
    }

    75% {
        transform: translateY(-10px) rotate(-1deg);
    }
}

.separator {
    width: 100%;
    min-height: 4px;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.separator::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* Navigation Styles */
nav {
    position: fixed;
    width: 80vw;
    display: flex;
    justify-content: space-between;
    left: 50%;
    transform: translateX(-50%);
    align-items: center;
    top: 20px;
    border-radius: var(--border-radius);
    max-width: 95%;
    z-index: 100;
    overflow: visible;
    /* Changed from hidden to visible */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    background: var(--navbar-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-lg);
    padding: 0 20px;
    min-height: 70px;
}

nav .logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--white);
    height: 50px;
    transition: transform 0.3s ease;
    z-index: 1001;
}

nav .logo:hover {
    transform: scale(1.05);
}

nav .logo img {
    object-fit: contain;
    height: 100%;
    border-radius: 8px;
    transition: all 0.3s ease;
    z-index: 2
}

/* Burger Button Styles */
.burger {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2000;
    padding: 8px;
    transition: all 0.3s ease;
}

.burger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-origin: center;
}

/* Burger Animation */
.burger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger.open span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.burger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Desktop Navigation Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

#lang-switch,
.nav-links a {
    text-decoration: none;
    color: var(--white);
    font-weight: 600;
    padding: 12px 20px;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer
}

#lang-switch:hover,
.nav-links a:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
    border-color: var(--red);
    background: rgba(255, 255, 255, 0.15);
}

/* Language Switch */
.mobile-lang-switch {
    display: none;
    position: relative;
    margin-top: 20px;
}

.mobile-lang-switch p {
    color: var(--white);
    padding-bottom: 3px;
    width: 100%;
    text-align: center;
}

.selected-lang {
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--white);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.lang-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(20, 22, 28, 0.95);
    border-radius: 8px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 5px;
}

.lang-options.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-options div {
    padding: 10px 15px;
    color: var(--white);
    cursor: pointer;
    transition: background 0.2s ease;
}

.lang-options div:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Mobile Styles */
@media (max-width: 980px) {
    nav {
        width: 95vw;
        padding: 0 15px;
    }

    .burger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: -20px;
        right: -100vw;
        width: 80vw;
        max-width: 350px;
        height: 100vh;
        background: rgba(20, 22, 28, 0.98);
        backdrop-filter: blur(20px);
        box-shadow: -2px 0 20px rgba(0, 0, 0, 0.3);
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 25px 25px 25px;
        gap: 20px;
        transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        z-index: 1500;
        overflow-y: auto;
    }

    .nav-links.open {
        right: -2.5%;
    }

    #lang-switch,
    .nav-links a {
        width: 100%;
        padding: 15px 20px;
        font-size: 16px;
        border-radius: 10px;
        text-align: left;
    }

    .mobile-lang-switch {
        display: block;
        width: 100%;
    }

    /* Hide desktop elements on mobile if needed */
    .lang-dropdown:not(.mobile-lang-switch) {
        display: none !important;
    }
}


.hero-content {
    color: var(--white);
    max-width: 95%;
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
    height: 100%;
}

.hero-content p {
    font-size: min(8vw, 7rem);
    font-weight: 700;
    left: 50%;
    line-height: 1em;
    position: absolute;
    text-align: center;
    text-transform: uppercase;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
}

@keyframes textGlow {
    0% {
        filter: drop-shadow(0 0 20px rgba(255, 61, 61, 0.7));
        transform: translate(-50%, -50%) scale(1);
    }

    100% {
        filter: drop-shadow(0 0 30px rgba(255, 61, 61, 0.9));
        transform: translate(-50%, -50%) scale(1.02);
    }
}

.container {
    margin: 0vh auto 0;
    gap: 10px;
    padding-top: 20px;
    width: 80vw;
    max-width: 95%;
    display: flex;
    flex-direction: column;
    margin-bottom: 100px;
}

.box {
    background: rgba(245, 245, 245, 0.95);
    backdrop-filter: blur(20px);
    padding: 1.4rem;
    border-radius: var(--border-radius);
    display: flex;
    color: var(--dark);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(255, 61, 61, 0.05), transparent);
    animation: rotate 6s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.box:hover::before {
    opacity: 1;
}


@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

.offer {
    grid-row: span 2;
    background: var(--gradient-primary);
    color: var(--white);
}

.hero {
    background-color: var(--dark);
    background-size: cover;
    position: relative;
    overflow: hidden;
    height: 100vh
}


.hero-img {
    position: absolute;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: var(--border-radius);
    animation: scaleDown 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    overflow: hidden;
    animation-delay: 0.6s;
    box-shadow: var(--shadow-lg);
}

.hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
    transition: transform 0.3s ease;
}


div.hero-img:before {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(0, 0, 0, 0.3) 20%, rgba(255, 255, 255, 0) 100%);
    z-index: 2;
}

@keyframes scaleDown {
    from {
        width: 100vw;
        height: 100vh;
    }

    to {
        width: 80vw;
        height: 80vh;
    }
}

.container h2 {
    color: var(--white);
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-align: left;
    margin-bottom: 0px;
    position: relative;
    animation: fadeInUp 0.8s ease-out;
}

#form-title{
    color: var(--dark)
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.about-wrapper {
    gap: 20px;
    display: flex;
    min-height: fit-content;
    height: 100%
}

@media screen and (max-width:969px) {
    .about-wrapper {
        flex-direction: column
    }

    .container {
        width: 100%
    }
}

.about {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-lighter) 100%);
    color: var(--white);
    border: 2px solid rgba(255, 61, 61, 0.3);
    border-radius: var(--border-radius);
    height: fit-content;

    transition: all 0.4s ease;
    position: relative;
    overflow-wrap: anywhere;
    justify-content: center
}

.about p{
    flex:1;
    line-height: 17px
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: var(--gradient-primary);
    transition: left 0.6s ease;
}

.about:hover::before {
    left: 100%;
}


.about h3 {
    letter-spacing: 0.05em;
    font-size: 24px;
    font-weight: 700;
}

.onas {
    flex: 3;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-height: 100%;
}

.map {
    flex: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100%;
    padding: 20px;
}

.map svg {
    max-width: 100%;
    max-height: 100%;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}


.list {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.list .nations {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
}

.list .nations>div {
    flex: 1;
    min-width: 40%;
    border-bottom: 2px solid rgba(255, 61, 61, 0.3);
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 10px;
    transition: all 0.3s ease;
}

.list .nations>div:hover {
    border-bottom-color: var(--red);
}

.top {
    animation: widen 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.scrolled {
    top: 20px;
    animation-delay: 500ms;
    animation: shorten 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;

}

@keyframes shorten {
    from {
        width: 80vw
    }

    to {
        width: 60vw;
    }
}

@keyframes widen {
    from {
        width: 60vw;
    }

    to {
        width: 80vw;
    }
}

#POLSKA,
#AUSTRIA,
#NIEMCY,
#SLOWACJA {
    transition: all 0.3s ease;
}

#POLSKA:hover,
#AUSTRIA:hover,
#NIEMCY:hover,
#SLOWACJA:hover {
    fill: var(--red);
    filter: drop-shadow(0 0 10px rgba(255, 61, 61, 0.8));
}

.inner-oferta {
    display: flex;
    gap: 15px;
    perspective: 1000px;
}

.inner-oferta .tile {
    border: 2px solid var(--white);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    aspect-ratio: 1 / 1.3;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    text-decoration: none;
}

.inner-oferta .tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 61, 61, 0.1), rgba(0, 212, 255, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.inner-oferta .tile:hover::before {
    opacity: 1;
}

.inner-oferta .tile:hover {
    transform: translateY(-10px) rotateX(2deg);
    box-shadow: var(--shadow-lg);
    border-color: var(--red);
}

.inner-oferta .tile h3 {
    width: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent);
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    text-align: left;
    padding: 15px 40px 15px 15px;
    letter-spacing: 0.05em;
    z-index: 2;
    position: relative;
}

.inner-oferta .tile p {
    width: 100%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.9), transparent);
    color: var(--white);
    font-size: 18px;
    font-weight: 500;
    text-align: right;
    padding: 40px 15px 15px 15px;
    letter-spacing: 0.05em;
    z-index: 2;
    position: relative;

}

.inner-oferta .tile:nth-child(1) {
    background-image: url('https://serwer2522289.home.pl/daxal_eu/public/produkty/okna.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
}

.inner-oferta .tile:nth-child(2) {
    background-image: url('https://serwer2522289.home.pl/daxal_eu/public/produkty/fasady.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.inner-oferta .tile:nth-child(3) {
    background-image: url('https://serwer2522289.home.pl/daxal_eu/public/produkty/fire.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.inner-oferta .tile:nth-child(4) {
    background-image: url('https://serwer2522289.home.pl/daxal_eu/public/produkty/indywidualne.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.realizacje {
    width: 90vw;
    max-width: 90vw;
}



.inner-realizacje {
    display: flex;
    gap: 20px;
    perspective: 1200px;
}


.inner-realizacje .tile {
    border-radius: var(--border-radius);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}




.inner-realizacje .tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 61, 61, 0.2), rgba(0, 212, 255, 0.2));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.inner-realizacje .tile img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
}

.inner-realizacje .tile:hover {
    transform: translateY(-2px) rotateX(2deg) rotateY(1deg);
    box-shadow: var(--shadow-lg);
}

.inner-realizacje .tile:hover::before {
    opacity: 1;
}

.inner-realizacje .tile:hover img {
    transform: scale(1.1);
}

.inner-realizacje:has(.tile:hover) .tile:not(:hover) {
    transform: scale(0.95);
    opacity: 0.7;
}

.inner-realizacje:has(.tile:hover) .tile:not(:hover) img {
    filter: grayscale(0.8) blur(3px);
}

.inner-realizacje .tile .realizacja-details {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.8), transparent);
    color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 50px 20px 20px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 3;
}

.inner-realizacje .tile .realizacja-details h3 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.inner-realizacje .tile .realizacja-details a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    background-color: var(--dark-lighter);
    width: fit-content;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all .2s;
    font-size: 14px;
    text-wrap: nowrap
}


.inner-realizacje .tile .realizacja-details a:hover {
    transform: translateX(5px);
    background: var(--red);
    box-shadow: 0 5px 15px rgba(255, 61, 61, 0.4);
}

.inner-realizacje .tile .realizacja-details a:hover::after {
    transform: translateX(3px);
}

.inner-realizacje .tile:hover .realizacja-details {
    bottom: 0;
}

/* Enhanced responsive design */
@media screen and (max-width: 768px) {
    .hero-content p {
        font-size: 12vw;
    }

    .container h2 {
        font-size: 1.4rem;
    }

    .inner-oferta {
        flex-wrap: wrap;
    }

    .inner-oferta .tile {
        min-width: 48%;
    }

    .inner-realizacje {
        flex-wrap: wrap;
    }

    .inner-realizacje .tile {
        min-width: 48%;
    }

    nav {
        width: 95vw;
    }

    nav .nav-links {
        gap: 10px;
        padding-right: 5px;
    }

    #lang-switch,
    nav .nav-links a {
        padding: 8px 10px;
        font-size: 0.9rem;
    }
}

/* Scroll-triggered animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.about {
    animation: slideInLeft 0.8s ease-out;
}

.map {
    animation: slideInRight 0.8s ease-out;
}

.inner-oferta .tile:nth-child(odd) {
    animation: slideInLeft 0.6s ease-out;
}

.inner-oferta .tile:nth-child(even) {
    animation: slideInRight 0.6s ease-out;
}

.inner-realizacje .tile {
    animation: fadeInScale 0.6s ease-out;
}


@media screen and (max-width: 1300px) {

    .inner-oferta,
    .inner-realizacje {
        flex-wrap: wrap;
    }

    .inner-oferta .tile,
    .inner-realizacje .tile {
        min-width: 45%;
    }

    .inner-oferta .tile:hover,
    .inner-realizacje .tile:hover {
        transform: none;
    }

    .inner-oferta .tile:nth-child(1) {
        border-radius: 12px 0 0 0
    }

    .inner-oferta .tile:nth-child(2) {
        border-radius: 0 12px 0 0
    }

    .inner-oferta .tile:nth-child(3) {
        border-radius: 0 0 0 12px
    }

    .inner-oferta .tile:nth-child(4) {
        border-radius: 0 0 12px 0
    }

    .inner-realizacje .tile .realizacja-details {
        bottom: 0px !important;
    }


    .inner-oferta .tile h3 {
        font-size: 1.1rem
    }

}




.partnerzy {
    width: 1400px
}

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

.inner-partnerzy a {
    height: 100px;
    opacity: .5;
    filter: grayscale(0.8);
    transition: all 0.3s ease;
    border-radius: 3px;
    overflow: hidden;
}

.inner-partnerzy a:hover {
    opacity: 1;
    filter: grayscale(0);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.inner-partnerzy a img {
    height: 100%;
    width: 100%;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.19);
    padding: 1px;
}

/* Footer Styles */
footer {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-lighter) 50%, #1e2328 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
    margin-top: 100px;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-primary);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px 40px;
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr 1fr;
    gap: 60px;
    position: relative;
}

.footer-column {
    animation: fadeInUp 0.8s ease-out;
}

.footer-column:nth-child(2) {
    animation-delay: 0.1s;
}

.footer-column:nth-child(3) {
    animation-delay: 0.2s;
}

.footer-column:nth-child(4) {
    animation-delay: 0.3s;
}

.footer-logo .logo {
    margin-bottom: 20px;
    display: flex;
    justify-content: center
}

.footer-logo .logo img {
    height: 90px;
    object-fit: contain;
    filter: brightness(1.2);
    border-radius: 10px;

}

.footer-description {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(245, 245, 245, 0.8);
    margin-bottom: 30px;
}

.footer-column h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
    position: relative;
    padding-bottom: 5px;
}

@media screen and (min-width:769px) {
    .toggle-icon {
        display: none
    }
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 1px;
}

.company-info {
    list-style: none;
    padding: 0;
}

.company-info li {
    margin-bottom: 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 14px;
}
.info-label {
    font-weight: 600;
    color: var(--red);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


.company-info li a,
.company-info li span:last-child {
    color: rgba(245, 245, 245, 0.9);
    line-height: 1.4;
    text-decoration: none;
}

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

.footer-links-list li {
    margin-bottom: 8px;
}

.footer-links-list a {
    color: rgba(245, 245, 245, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
    padding: 5px 0;
}

.footer-links-list a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.footer-links-list a:hover {
    color: var(--white);
    transform: translateX(5px);
}

.footer-links-list a:hover::before {
    width: 100%;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 25px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.copyright {
    color: rgba(245, 245, 245, 0.7);
    font-size: 14px;
}

.creator-wrap {
    display: flex;
    align-items: center;
    gap: 3px;
}

.creator,
.creator-link {
    color: rgba(245, 245, 245, 0.7);
    font-size: 14px;
}

.creator-link {
    color: var(--red);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.creator-link:hover {
    color: var(--white);
    text-shadow: 0 0 10px rgba(255, 61, 61, 0.5);
}

/* Responsive Footer */
@media screen and (max-width: 1024px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        padding: 60px 20px 30px;
    }

    .footer-logo {
        grid-column: 1 / -1;
    }
}

@media screen and (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 50px 20px 30px;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .company-info li {
        flex-direction: row;
        gap: 10px;
    }

    .info-label {
        min-width: 80px;
    }
}


/* Mobile Footer Collapse Styles */
@media screen and (max-width: 768px) {
    .footer-column.mobile-toggle h3 {
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        transition: all 0.3s ease;
        user-select: none;
    }

    .inner-partnerzy {
        justify-content: center
    }

    .inner-partnerzy a {
        height: 80px;
    }

    .footer-column.mobile-toggle h3:hover {
        color: var(--red);
    }

    .footer-column.mobile-toggle h3::after {
        display: none;
        /* Hide the decorative line on mobile */
    }

    .toggle-icon {
        font-size: 16px;
        transition: transform 0.3s ease;
        color: var(--red);
        margin-left: 10px;
    }

    .footer-column.mobile-toggle ul {
        transition: max-height 0.3s ease-out, padding 0.3s ease-out;
        overflow: hidden;
    }

    .footer-column.collapsed ul {
        max-height: 0 !important;
        padding-top: 0;
        padding-bottom: 0;
    }

    .footer-column:not(.collapsed) ul {
        padding-top: 15px;
        padding-bottom: 15px;
    }

    /* Add subtle animation to links when expanding */
    .footer-column:not(.collapsed) .footer-links-list li {
        animation: fadeInMobile 0.4s ease-out forwards;
        opacity: 0;
    }

    .footer-column:not(.collapsed) .footer-links-list li:nth-child(1) {
        animation-delay: 0.1s;
    }

    .footer-column:not(.collapsed) .footer-links-list li:nth-child(2) {
        animation-delay: 0.15s;
    }

    .footer-column:not(.collapsed) .footer-links-list li:nth-child(3) {
        animation-delay: 0.2s;
    }

    .footer-column:not(.collapsed) .footer-links-list li:nth-child(4) {
        animation-delay: 0.25s;
    }

    .footer-column:not(.collapsed) .footer-links-list li:nth-child(5) {
        animation-delay: 0.3s;
    }

    .footer-column:not(.collapsed) .footer-links-list li:nth-child(6) {
        animation-delay: 0.35s;
    }

    .footer-column:not(.collapsed) .footer-links-list li:nth-child(7) {
        animation-delay: 0.4s;
    }

    /* Company info mobile styles */
    .footer-column:not(.collapsed) .company-info li {
        animation: fadeInMobile 0.4s ease-out forwards;
        opacity: 0;
    }

    .footer-column:not(.collapsed) .company-info li:nth-child(1) {
        animation-delay: 0.1s;
    }

    .footer-column:not(.collapsed) .company-info li:nth-child(2) {
        animation-delay: 0.15s;
    }

    .footer-column:not(.collapsed) .company-info li:nth-child(3) {
        animation-delay: 0.2s;
    }

    .footer-column:not(.collapsed) .company-info li:nth-child(4) {
        animation-delay: 0.25s;
    }

    .footer-column:not(.collapsed) .company-info li:nth-child(5) {
        animation-delay: 0.3s;
    }

    .footer-column:not(.collapsed) .company-info li:nth-child(6) {
        animation-delay: 0.35s;
    }

    .footer-column:not(.collapsed) .company-info li:nth-child(7) {
        animation-delay: 0.4s;
    }
}

@keyframes fadeInMobile {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--red);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 1000;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--shadow-glow);
}

.scroll-to-top:active {
    transform: translateY(-2px) scale(1.05);
}

/* Enhanced mobile footer spacing */
@media screen and (max-width: 768px) {
    .footer-container {
        padding: 40px 20px 20px;
        gap: 0;
    }

    .footer-column:not(.footer-logo) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        margin-bottom: 0;
        padding-bottom: 11px;
    }

    .footer-column:last-child {
        border-bottom: none;
    }

    .footer-logo {
        margin-bottom: 30px;
        padding-bottom: 20px;
        border-bottom: 2px solid rgba(255, 61, 61, 0.3);
    }

    .footer-description {
        margin-bottom: 0;
    }

    nav .logo {
        height: 50px;
    }
}

/* Tablet adjustments */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .footer-column h3 {
        cursor: default;
    }

    .toggle-icon {
        display: none;
    }
}

@media screen and (max-width:1200px) {
    nav {
        width: 100% !important;
        max-width: 95% !important;
    }
}

@media screen and (max-width:686px) {
    .inner-realizacje .tile .realizacja-details {
        position: absolute;
        bottom: -90px !important;
        color: var(--white);
        display: flex;
        align-items: flex-start;
        flex-direction: column;
        border-radius: 0 0 12px 12px;
        gap: 5px;
        padding: 10px 10px;
    }

    .inner-realizacje .tile .realizacja-details h3 {
        font-size: 1.2rem;
    }

    .inner-realizacje .tile .realizacja-details a {
        padding: 0px 5px;
        width: 100%;
        justify-content: center;
        font-size: 1rem
    }


    .inner-realizacje .tile {
        overflow: visible;

    }

    .inner-realizacje .tile:hover img {
        transform: none
    }

    .inner-realizacje .tile img {
        border-radius: 12px 12px 0 0
    }

    .inner-realizacje {
        gap: 120px 10px;
    }

    .inner-oferta .tile p {
        font-size: 14px;
        padding: 3px
    }

    .inner-oferta .tile {
        height: 300px
    }

    .inner-oferta .tile h3 {
        font-size: 14px;
        padding: 3px;
    }
}


@media screen and (max-width:500px) {
    .inner-realizacje .tile .realizacja-details {
        position: absolute;
        bottom: -90px !important;
        color: var(--white);
        display: flex;
        align-items: flex-start;
        flex-direction: column;
        border-radius: 0 0 12px 12px;
        gap: 5px;
        padding: 10px 10px;
    }

    .inner-realizacje .tile .realizacja-details h3 {
        font-size: 1.2rem;
    }

    .inner-realizacje .tile .realizacja-details a {
        padding: 0px 5px;
        width: 100%;
        justify-content: center;
        font-size: 1rem
    }


    .inner-realizacje .tile {
        overflow: visible;
        min-width: 100%;

    }

    .inner-realizacje .tile:hover img {
        transform: none
    }

    .inner-realizacje .tile img {
        border-radius: 12px 12px 0 0
    }

    .inner-realizacje {
        gap: 120px 10px;
    }

    .inner-oferta .tile p {
        font-size: 14px;
        padding: 3px
    }

    .inner-oferta .tile {
        height: 300px
    }

    .inner-oferta .tile h3 {
        font-size: 14px;
        padding: 3px;
    }
}


/* Mobile Footer Collapse Styles */
@media screen and (max-width: 768px) {
    .footer-column.mobile-toggle h3 {
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        transition: all 0.3s ease;
        user-select: none;
    }

    .footer-column.mobile-toggle h3:hover {
        color: var(--red);
    }

    .footer-column.mobile-toggle h3::after {
        display: none;
        /* Hide the decorative line on mobile */
    }

    .toggle-icon {
        font-size: 16px;
        transition: transform 0.3s ease;
        color: var(--red);
        margin-left: 10px;
    }

    .footer-column.mobile-toggle ul {
        transition: max-height 0.3s ease-out, padding 0.3s ease-out;
        overflow: hidden;
    }

    .footer-column.collapsed ul {
        max-height: 0 !important;
        padding-top: 0;
        padding-bottom: 0;
    }

    .footer-column:not(.collapsed) ul {
        padding-top: 15px;
        padding-bottom: 15px;
    }

    /* Add subtle animation to links when expanding */
    .footer-column:not(.collapsed) .footer-links-list li {
        animation: fadeInMobile 0.4s ease-out forwards;
        opacity: 0;
    }

    .footer-column:not(.collapsed) .footer-links-list li:nth-child(1) {
        animation-delay: 0.1s;
    }

    .footer-column:not(.collapsed) .footer-links-list li:nth-child(2) {
        animation-delay: 0.15s;
    }

    .footer-column:not(.collapsed) .footer-links-list li:nth-child(3) {
        animation-delay: 0.2s;
    }

    .footer-column:not(.collapsed) .footer-links-list li:nth-child(4) {
        animation-delay: 0.25s;
    }

    .footer-column:not(.collapsed) .footer-links-list li:nth-child(5) {
        animation-delay: 0.3s;
    }

    .footer-column:not(.collapsed) .footer-links-list li:nth-child(6) {
        animation-delay: 0.35s;
    }

    .footer-column:not(.collapsed) .footer-links-list li:nth-child(7) {
        animation-delay: 0.4s;
    }

    /* Company info mobile styles */
    .footer-column:not(.collapsed) .company-info li {
        animation: fadeInMobile 0.4s ease-out forwards;
        opacity: 0;
    }

    .footer-column:not(.collapsed) .company-info li:nth-child(1) {
        animation-delay: 0.1s;
    }

    .footer-column:not(.collapsed) .company-info li:nth-child(2) {
        animation-delay: 0.15s;
    }

    .footer-column:not(.collapsed) .company-info li:nth-child(3) {
        animation-delay: 0.2s;
    }

    .footer-column:not(.collapsed) .company-info li:nth-child(4) {
        animation-delay: 0.25s;
    }

    .footer-column:not(.collapsed) .company-info li:nth-child(5) {
        animation-delay: 0.3s;
    }

    .footer-column:not(.collapsed) .company-info li:nth-child(6) {
        animation-delay: 0.35s;
    }

    .footer-column:not(.collapsed) .company-info li:nth-child(7) {
        animation-delay: 0.4s;
    }
}

@keyframes fadeInMobile {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced mobile footer spacing */
@media screen and (max-width: 768px) {
    .footer-container {
        padding: 40px 20px 20px;
        gap: 0;
    }

    .footer-column:not(.footer-logo) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        margin-bottom: 0;
    }

    .footer-column:last-child {
        border-bottom: none;
    }

    .footer-logo {
        margin-bottom: 30px;
        padding-bottom: 20px;
        border-bottom: 2px solid rgba(255, 61, 61, 0.3);
    }

    .footer-description {
        margin-bottom: 0;
    }
}

/* Tablet adjustments */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .footer-column h3 {
        cursor: default;
    }

    .toggle-icon {
        display: none;
    }
}


/* Image Modal Styles */
.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.image-modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: relative;
    max-width: 80%;
    max-height: 80%;
    height: 80%;
    animation: zoomIn 0.3s ease;
}

.modal-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.close-btn {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
    transition: color 0.3s ease;
    user-select: none;
}

.close-btn:hover {
    color: #ccc;
}

.close-btn:focus {
    outline: 2px solid white;
    outline-offset: 2px;
}

/* Loading state */
.modal-image.loading {
    opacity: 0.7;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Mobile responsiveness */
@media (max-width: 768px) {
    .close-btn {
        top: -30px;
        font-size: 28px;
    }
    
    .modal-content {
        max-width: 95%;
        max-height: 95%;
    }
}

@media (max-width: 480px) {
    .close-btn {
        top: -25px;
        right: -5px;
        font-size: 24px;
    }
    
    .modal-content {
        max-width: 98%;
        max-height: 98%;
    }
}