/* Modern Reset & Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --orange: #e94e1a;
    --orange-dark: #d03e0e;
    --orange-light: #ff6b38;
    --black: #000000;
    --dark: #1a1a1a;
    --gray: #666666;
    --light-gray: #f5f5f5;
    --white: #ffffff;
    --shadow: 0 10px 40px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.12);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--black);
    line-height: 1.7;
    overflow-x: hidden;
    background: var(--white);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Modern Header */
.header {
    background: var(--white);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    backdrop-filter: blur(10px);
}

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

.header-content .nav {
    margin-left: auto;
    margin-right: 20px;
}

.logo {
    display: inline-block;
    transition: transform 0.4s ease;
}

.logo:hover {
    transform: rotate(-5deg) scale(1.05);
}

.logo img {
    height: 90px;
    width: auto;
    transition: all 0.4s ease;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 45px;
}

.nav a {
    color: var(--black);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s;
    padding: 8px 0;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--orange);
    transition: width 0.3s;
}

.nav a:hover::after {
    width: 100%;
}

.nav a:hover {
    color: var(--orange);
}

/* Mobile header right - hidden on desktop */
.mobile-header-right {
    display: none;
}

/* Header Right */
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.phone-button {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--black);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s;
}

.phone-button:hover {
    background: var(--light-gray);
    color: var(--orange);
}

.phone-button svg {
    flex-shrink: 0;
}

.btn-header {
    background: var(--orange);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(233,78,26,0.25);
}

.btn-header:hover {
    background: var(--orange-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233,78,26,0.35);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-toggle span {
    width: 28px;
    height: 3px;
    background: var(--black);
    transition: 0.3s;
}

/* Modern Hero */
.hero {
    background: linear-gradient(135deg, rgba(233,78,26,0.65) 0%, rgba(0,0,0,0.5) 100%),
                url('img/ogrodzenie-panelowe-montaz.webp') center/cover no-repeat;
    padding: 140px 30px 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.15);
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(233,78,26,0.15) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero-content {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 4.2em;
    font-weight: 700;
    margin-bottom: 28px;
    line-height: 1.15;
    color: var(--white);
    letter-spacing: -1px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.hero h1::after {
    content: '.';
    color: var(--orange);
}

.hero p {
    font-size: 1.35em;
    margin-bottom: 50px;
    color: var(--white);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Image Slider */
.slider-section {
    background: var(--white);
    padding: 0;
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.slider-track {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide {
    min-width: 33.333%;
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.slide:hover img {
    transform: scale(1.05);
}

.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    padding: 40px 30px;
    color: var(--white);
}

.slide-overlay h3 {
    font-size: 1.8em;
    font-weight: 700;
    margin: 0;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 30px 0;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s;
}

.slider-dot.active {
    background: var(--orange);
    width: 35px;
    border-radius: 6px;
}

/* Modern Buttons */
.btn {
    padding: 18px 50px;
    font-size: 1.05em;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    border: none;
    cursor: pointer;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: var(--orange);
    color: var(--white);
    box-shadow: 0 8px 25px rgba(233,78,26,0.3);
}

.btn-primary:hover {
    background: var(--orange-dark);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(233,78,26,0.4);
}

.btn-secondary {
    background: var(--white);
    color: var(--black);
    border: 2px solid var(--black);
}

.btn-secondary:hover {
    background: var(--black);
    color: var(--white);
    transform: translateY(-3px);
}

.btn-full {
    width: 100%;
}

/* Modern Sections */
.section {
    padding: 100px 30px;
}

.bg-light {
    background: var(--white);
}

.bg-dark {
    background: var(--light-gray);
}

.section-title {
    font-size: 3.2em;
    text-align: center;
    margin-bottom: 20px;
    color: var(--black);
    font-weight: 700;
    letter-spacing: -1px;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--orange);
    margin: 25px auto 0;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2em;
    color: var(--gray);
    margin-bottom: 70px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* About Section */
.about-content {
    max-width: 1000px;
    margin: 0 auto;
    font-size: 1.15em;
    line-height: 1.9;
    color: var(--gray);
}

.about-content p {
    margin-bottom: 25px;
}

/* Modern Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 35px;
    margin-top: 70px;
}

.product-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0,0,0,0.05);
}

.product-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg);
}

.product-header {
    background: linear-gradient(135deg, var(--orange) 0%, var(--orange-light) 100%);
    color: var(--white);
    padding: 40px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.product-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.product-header h3 {
    font-size: 1.8em;
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.product-body {
    padding: 38px 30px;
    background: var(--white);
}

.product-body p {
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 18px;
}

.product-body strong {
    color: var(--black);
}

.product-usage {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 2px solid var(--light-gray);
    font-size: 0.95em;
}

/* Modern Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 40px;
    margin-top: 70px;
}

.feature-card {
    text-align: center;
    padding: 45px 30px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--orange) 0%, var(--orange-light) 100%);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    margin: 0 auto 30px;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(233,78,26,0.25);
}

.feature-card h3 {
    font-size: 1.6em;
    margin-bottom: 18px;
    color: var(--black);
    font-weight: 700;
}

.feature-card p {
    color: var(--gray);
    line-height: 1.8;
}

/* Modern Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-top: 70px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img {
    transform: scale(1.15);
}

/* Modern Contact */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 70px;
}

.contact-info,
.contact-form {
    background: var(--white);
    padding: 50px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.contact-info h3,
.contact-form h3 {
    font-size: 2em;
    margin-bottom: 35px;
    color: var(--black);
    font-weight: 700;
}

.contact-item {
    margin-bottom: 30px;
}

.contact-item strong {
    display: block;
    color: var(--orange);
    margin-bottom: 12px;
    font-size: 1.1em;
    font-weight: 600;
}

.contact-item p {
    color: var(--gray);
}

.contact-item a {
    color: var(--black);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

.contact-item a:hover {
    color: var(--orange);
}

/* Modern Form */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--black);
    font-size: 0.95em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--light-gray);
    border-radius: 12px;
    font-size: 1em;
    font-family: inherit;
    transition: all 0.3s;
    background: var(--white);
    color: var(--black);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--orange);
    outline: none;
    box-shadow: 0 0 0 4px rgba(233,78,26,0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

/* Modern Footer */
.footer {
    background: var(--dark);
    color: #cccccc;
    padding: 80px 30px 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-col h3 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 1.4em;
    font-weight: 700;
}

.footer-col p {
    line-height: 1.8;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 14px;
}

.footer-col a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--orange);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #999999;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3.2em;
    }

    .section-title {
        font-size: 2.6em;
    }

    .slide {
        min-width: 50%;
    }

    .sample-card {
        width: 160px;
        height: 220px;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        padding: 20px 0;
    }

    .nav.active {
        display: block;
    }

    .nav ul {
        flex-direction: column;
        gap: 0;
    }

    .nav li {
        border-bottom: 1px solid var(--light-gray);
    }

    .nav a {
        display: block;
        padding: 15px 30px;
    }

    .header-right {
        display: none;
    }

    /* Show mobile header right */
    .mobile-header-right {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .mobile-phone-btn {
        color: var(--black);
        text-decoration: none;
        font-weight: 600;
        font-size: 13px;
        white-space: nowrap;
        transition: all 0.3s;
        padding: 8px 12px;
        border-radius: 6px;
        background: var(--light-gray);
    }

    .mobile-phone-btn:hover {
        background: var(--orange);
        color: var(--white);
    }

    .mobile-toggle {
        display: flex;
    }

    .logo img {
        height: 60px;
    }

    .samples-grid {
        gap: 15px;
    }

    .sample-card {
        width: 140px;
        height: 200px;
    }

    .samples-title {
        font-size: 1.5em;
    }

    .hero {
        padding: 100px 20px 80px;
    }

    .hero h1 {
        font-size: 1.8em;
        line-height: 1.3;
    }

    .hero p {
        font-size: 1em;
    }

    .slide {
        min-width: 100%;
    }

    .slide-overlay h3 {
        font-size: 1.3em;
    }

    .section {
        padding: 70px 20px;
    }

    .section-title {
        font-size: 2em;
    }

    .products-grid,
    .features-grid,
    .gallery-grid,
    .contact-wrapper,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

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

    .container {
        padding: 0 20px;
    }

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


/* Samples Showcase */
.samples-showcase {
    margin-top: 80px;
    padding: 50px 0;
}

.samples-title {
    text-align: center;
    font-size: 2em;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 40px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

.samples-grid {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    perspective: 1000px;
}

.sample-card {
    width: 180px;
    height: 240px;
    position: relative;
    transform-style: preserve-3d;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.sample-card:hover {
    transform: translateY(-25px) scale(1.15);
    z-index: 10;
    box-shadow: 0 25px 60px rgba(233,78,26,0.35);
}

.sample-image {
    width: 100%;
    height: 100%;
    position: absolute;
    border-radius: 15px;
    overflow: hidden;
    backface-visibility: hidden;
}

.sample-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

.sample-card:hover .sample-image img {
    transform: scale(1.1);
}

.sample-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.8) 100%);
    color: var(--white);
    padding: 20px 15px;
    border-radius: 0 0 15px 15px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.sample-card:hover .sample-info {
    opacity: 1;
    transform: translateY(0);
}

.sample-info h4 {
    font-size: 1.1em;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--orange);
}

.sample-info p {
    font-size: 0.85em;
    line-height: 1.5;
    margin: 0;
}

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

.product-card,
.feature-card,
.gallery-item {
    animation: fadeInUp 0.6s ease-out;
}
