@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* CSS Variables for Design System */
:root {
    --primary-dark: #121214;
    --secondary-dark: #1e2022;
    --card-bg-dark: #25282b;
    --accent-orange: #ff9f1c;
    --accent-orange-hover: #e08510;
    --text-white: #ffffff;
    --text-light: #f8f9fa;
    --text-gray: #a0a8b3;
    --text-dark: #212529;
    --bg-light: #f4f6f8;
    --border-color: #343a40;
    --shadow-light: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-dark: 0 10px 20px rgba(0,0,0,0.3);
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Global resets and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--primary-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(18, 18, 20, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    object-fit: contain;
    transition: var(--transition-smooth);
}

.logo img:hover {
    transform: scale(1.03);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-gray);
    padding: 8px 4px;
    position: relative;
}

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

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-white);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Hamburger menu for mobile */
.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    outline: none;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-light);
    margin: 5px 0;
    transition: var(--transition-smooth);
}

/* Hero Section */
.hero {
    position: relative;
    height: 80vh;
    min-height: 500px;
    background-image: linear-gradient(rgba(18, 18, 20, 0.75), rgba(18, 18, 20, 0.85)), url('../../images/excavators-1383540_1920.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}

#home_hero {
    background-image: none !important;
    overflow: hidden;
}

#home_hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(18, 18, 20, 0.75), rgba(18, 18, 20, 0.85)), url('../../images/excavators-1383540_1920.jpg');
    background-size: cover;
    background-position: center;
    z-index: 1;
    animation: kenburns 25s ease-out infinite alternate;
    transform-origin: center;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    animation: fadeInUp 1s ease-out;
}

@keyframes kenburns {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.08);
    }
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-white);
    text-transform: uppercase;
}

.hero-content h1 span {
    color: var(--accent-orange);
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-gray);
    margin-bottom: 35px;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-primary {
    background-color: var(--accent-orange);
    color: var(--primary-dark);
}

.btn-primary:hover {
    background-color: var(--accent-orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 159, 28, 0.4);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--accent-orange);
    color: var(--accent-orange);
    margin-left: 15px;
}

.btn-outline:hover {
    background-color: var(--accent-orange);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

/* Sections Global Styling */
section {
    padding: 90px 20px;
}

.section-light {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.section-dark {
    background-color: var(--secondary-dark);
    color: var(--text-light);
    border-bottom: 1px solid var(--border-color);
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px auto;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--accent-orange);
    margin: 10px auto 0 auto;
    border-radius: 2px;
}

.section-header.light h2 {
    color: var(--text-dark);
}

.section-header.dark h2 {
    color: var(--text-white);
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-gray);
}

.section-light .section-header p {
    color: #5a626a;
}

/* Home Welcome text styling */
.welcome-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    background-color: rgba(37, 40, 43, 0.6);
    border: 1px solid var(--border-color);
    padding: 50px 40px;
    border-radius: 8px;
    box-shadow: var(--shadow-dark);
}

.welcome-container p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-light);
    font-weight: 400;
}

/* Three Core Pillars (Home boxes) */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.pillar-card {
    background-color: var(--card-bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-dark);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.pillar-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-orange);
}

.pillar-img-wrapper {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.pillar-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.pillar-card:hover .pillar-img-wrapper img {
    transform: scale(1.05);
}

.pillar-info {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pillar-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 15px;
}

.pillar-info p {
    font-size: 1rem;
    color: var(--text-gray);
    margin-bottom: 25px;
    flex-grow: 1;
}

.pillar-link {
    font-weight: 600;
    color: var(--accent-orange);
    display: flex;
    align-items: center;
    gap: 8px;
}

.pillar-link:hover {
    color: var(--accent-orange-hover);
}

/* Call to Action Section */
.cta-section {
    background-image: linear-gradient(rgba(255, 159, 28, 0.9), rgba(224, 133, 16, 0.95)), url('../../images/slide/slide.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--primary-dark);
    padding: 70px 20px;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.3rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 30px;
}

.cta-content .btn-primary {
    background-color: var(--primary-dark);
    color: var(--accent-orange);
}

.cta-content .btn-primary:hover {
    background-color: #000000;
    color: var(--text-white);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Shop (sklep.html) Grid */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.shop-card {
    background-color: var(--card-bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.shop-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-orange);
    box-shadow: var(--shadow-dark);
}

.shop-img-wrapper {
    height: 180px;
    overflow: hidden;
    position: relative;
    background-color: #121214;
}

.shop-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.shop-card:hover .shop-img-wrapper img {
    transform: scale(1.05);
}

.shop-info {
    padding: 20px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid var(--border-color);
}

.shop-info h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-light);
}

.shop-card:hover .shop-info h3 {
    color: var(--accent-orange);
}

/* Services (uslugi.html) layouts */
.services-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.service-row {
    display: flex;
    gap: 40px;
    align-items: center;
    background-color: var(--card-bg-dark);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 8px;
}

.service-row:nth-child(even) {
    flex-direction: row-reverse;
}

.service-img {
    flex: 1;
    min-width: 300px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--shadow-dark);
    border: 1px solid var(--border-color);
}

.service-img img {
    width: 100%;
    object-fit: cover;
}

.service-text {
    flex: 1.2;
}

.service-text h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.service-text h3::before {
    content: '';
    display: block;
    width: 12px;
    height: 24px;
    background-color: var(--accent-orange);
    border-radius: 2px;
}

.service-text p {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 25px;
}

.service-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.service-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    color: var(--text-light);
}

.service-list li::before {
    content: '➔';
    color: var(--accent-orange);
    font-weight: bold;
}

/* Material tags styling (for transport) */
.materials-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}

.material-tag {
    background-color: var(--border-color);
    color: var(--text-white);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 500;
    border: 1px solid transparent;
    transition: var(--transition-smooth);
}

.material-tag:hover {
    border-color: var(--accent-orange);
    color: var(--accent-orange);
    background-color: rgba(255, 159, 28, 0.1);
}

/* Gallery (galeria.html) Layout */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    height: 220px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(18, 18, 20, 0.4);
    opacity: 0;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-overlay::after {
    content: '+';
    font-size: 3rem;
    color: var(--accent-orange);
    font-weight: 300;
    transform: scale(0.8);
    transition: var(--transition-smooth);
}

.gallery-item:hover {
    transform: scale(1.02);
    border-color: var(--accent-orange);
}

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

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-overlay::after {
    transform: scale(1);
}

/* Lightbox Modal */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 12, 0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80vh;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    border: 2px solid var(--border-color);
    border-radius: 4px;
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;
    color: var(--text-light);
    font-size: 2.5rem;
    cursor: pointer;
    font-weight: 300;
    transition: var(--transition-smooth);
}

.lightbox-close:hover {
    color: var(--accent-orange);
    transform: rotate(90deg);
}

/* Contact (kontakt.html) styling */
.contact-layout {
    display: flex;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info-panel {
    flex: 1;
}

.contact-card-wrapper {
    background-color: var(--card-bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 40px;
    box-shadow: var(--shadow-dark);
}

.contact-card-wrapper h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 25px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--accent-orange);
    margin-top: 3px;
}

.contact-details h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 5px;
}

.contact-details p {
    font-size: 1rem;
    color: var(--text-gray);
}

.contact-form-panel {
    flex: 1.2;
    background-color: var(--card-bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 40px;
    box-shadow: var(--shadow-dark);
}

.contact-form-panel h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    background-color: var(--primary-dark);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 12px 15px;
    color: var(--text-white);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.form-control:focus {
    border-color: var(--accent-orange);
    outline: none;
    box-shadow: 0 0 8px rgba(255, 159, 28, 0.25);
}

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

.contact-form-panel .btn {
    width: 100%;
    border: none;
}

/* Map Section */
.map-container {
    max-width: 1200px;
    margin: 40px auto 0 auto;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-dark);
    height: 400px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Footer Section */
footer {
    background-color: var(--primary-dark);
    border-top: 1px solid var(--border-color);
    padding: 50px 20px 25px 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    max-width: 400px;
}

.footer-brand img {
    height: 55px;
    margin-bottom: 20px;
}

.footer-brand p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

.footer-links-col h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.footer-links-col ul li a {
    color: var(--text-gray);
    font-size: 0.95rem;
}

.footer-links-col ul li a:hover {
    color: var(--accent-orange);
    padding-left: 5px;
}

.copyright {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.copyright span {
    color: var(--accent-orange);
}

/* Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 991px) {
    section {
        padding: 60px 20px;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .service-row, .service-row:nth-child(even) {
        flex-direction: column;
        padding: 30px;
        gap: 30px;
    }
    
    .contact-layout {
        flex-direction: column;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--primary-dark);
        flex-direction: column;
        align-items: center;
        gap: 25px;
        padding-top: 40px;
        transition: var(--transition-smooth);
        border-top: 1px solid var(--border-color);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .btn {
        width: 100%;
        margin-left: 0 !important;
        margin-bottom: 15px;
    }
    
    .welcome-container {
        padding: 30px 20px;
    }
}

/* Why Us Section Styles */
.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.why-us-item {
    text-align: center;
    background-color: var(--card-bg-dark);
    border: 1px solid var(--border-color);
    padding: 35px 25px;
    border-radius: 8px;
    box-shadow: var(--shadow-dark);
    transition: var(--transition-smooth);
}

.why-us-item:hover {
    border-color: var(--accent-orange);
    transform: translateY(-5px);
}

.why-us-icon {
    font-size: 2.5rem;
    color: var(--accent-orange);
    margin-bottom: 20px;
}

.why-us-item h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 12px;
}

.why-us-item p {
    font-size: 0.95rem;
    color: var(--text-gray);
}

/* Header Social Links */
.header-social-link:hover {
    color: #1877f2 !important;
    transform: scale(1.1);
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

