:root {
    /* Color Palette - Refined */
    --primary: #0a192f;
    --primary-light: #172a45;
    --accent: #f57c00;
    --accent-hover: #e65100;
    --accent-glow: rgba(245, 124, 0, 0.4);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --text-dark: #1a1a1a;
    --text-light: #ccd6f6;
    --white: #ffffff;
    --bg-light: #f4f7fa;
    --black: #020c1b;

    /* Typography */
    --font-main: 'Inter', sans-serif;

    /* Transitions */
    --transition: cubic-bezier(0.4, 0, 0.2, 1) 0.4s;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

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

/* Scroll Reveal Base */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

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

/* Typography Helpers */
h1,
h2,
h3,
h4 {
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h3 {
    font-size: 2.8rem;
    margin-bottom: 2rem;
}

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

.mb-4 {
    margin-bottom: 5rem;
}

.mt-2 {
    margin-top: 2rem;
}

/* Header & Nav */
header {
    background: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(15px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: 1px;
}

.logo-sub {
    font-size: 0.7rem;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

nav a:hover {
    color: var(--accent);
    text-shadow: 0 0 10px var(--accent-glow);
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-small {
    padding: 1rem 2.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    display: inline-block;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--white);
    border: none;
    box-shadow: 0 4px 15px rgba(245, 124, 0, 0.2);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(245, 124, 0, 0.4);
}

.btn-secondary {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    backdrop-filter: blur(5px);
}

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

.btn-small {
    padding: 0.6rem 1.5rem;
    background-color: var(--accent);
    color: var(--white);
}

/* Hero Section */
#hero {
    height: 100vh;
    background: linear-gradient(135deg, var(--black) 0%, var(--primary) 100%);
    position: relative;
    display: flex;
    align-items: center;
    color: var(--white);
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Modern Mesh Gradient or Image fallback */
    background-image:
        radial-gradient(at 0% 0%, rgba(245, 124, 0, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(10, 25, 47, 0.4) 0px, transparent 50%),
        url('assets/hero_workshop.png');
    background-size: cover;
    background-position: center;
    filter: brightness(0.5) contrast(1.1);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to top, var(--white), transparent);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
}

#hero h1 {
    font-size: 5rem;
    margin-bottom: 2rem;
    line-height: 1;
}

#hero h1 span {
    color: var(--accent);
    display: block;
    font-size: 0.8em;
}

#hero p {
    font-size: 1.4rem;
    margin-bottom: 3rem;
    color: var(--text-light);
    max-width: 650px;
    opacity: 0.9;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

/* Sections */
section {
    padding: 140px 0;
}

.section-tag {
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 1.5rem;
    display: block;
}

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

/* O Nas */
#o-nas {
    padding: 240px 0;
    overflow: visible;
}

.section-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 5rem;
    align-items: center;
}

.section-image {
    position: relative;
    padding-right: 60px;
    padding-bottom: 60px;
}

.section-image::after {
    content: '';
    position: absolute;
    top: 60px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--accent);
    border-radius: 12px;
    z-index: -1;
}

.section-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 40px 40px 100px rgba(0, 0, 0, 0.2);
}

/* Oferta Cards - Ultra Modern Glassmorphism */
#oferta {
    position: relative;
    overflow: hidden;
}

.blob-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    filter: blur(80px);
    opacity: 0.5;
    border-radius: 50%;
}

.blob-1 {
    top: -10%;
    left: -10%;
    animation: float 20s infinite alternate;
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    animation: float 25s infinite alternate-reverse;
}

@keyframes float {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(100px, 50px) scale(1.1);
    }
}

#oferta .container {
    position: relative;
    z-index: 1;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.service-card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    padding: 3rem 1.5rem;
    border-radius: 20px;
    transition: var(--transition);
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transform-style: preserve-3d;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--primary);
    color: var(--accent);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    box-shadow: 0 10px 20px rgba(10, 25, 47, 0.2);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: translateZ(20px) scale(1.1);
    background: var(--accent);
    color: var(--white);
    box-shadow: 0 10px 20px var(--accent-glow);
}

.service-card h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    transform: translateZ(10px);
}

.service-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    transform: translateZ(5px);
}

/* Dlaczego My? */
/* Dlaczego My? - Modernized */
#dlaczego-my {
    padding: 140px 0;
    text-align: center;
}

#dlaczego-my .section-tag {
    margin-left: auto;
    margin-right: auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    justify-content: center;
}

.feature-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 20px;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: rgba(245, 124, 0, 0.05);
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: var(--accent);
    color: var(--white);
    transform: rotate(10deg);
}

.feature-card h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #666;
    font-size: 0.95rem;
}

/* Kontakt & Map */
/* Kontakt - Modern Glassmorphism */
#kontakt {
    background: var(--bg-light);
    position: relative;
    overflow: hidden;
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 4rem;
    position: relative;
    z-index: 1;
}

.contact-card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    padding: 3.5rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-item .icon {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item .text h5 {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 0.2rem;
    letter-spacing: 1px;
}

.contact-item .text p,
.contact-item .text a {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
}

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

.hours-card {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.hours-card h4 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.hour-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    font-size: 1rem;
    color: #555;
}

.hour-row span:last-child {
    font-weight: 700;
    color: var(--primary);
}

.map-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    height: 100%;
    min-height: 500px;
    border: 1px solid var(--glass-border);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: grayscale(0.2) contrast(1.1);
}

/* Responsive */
@media (max-width: 1024px) {
    #hero h1 {
        font-size: 4rem;
    }

    .section-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
}

@media (max-width: 768px) {
    #hero h1 {
        font-size: 3rem;
    }

    nav ul {
        display: none;
    }

    header nav {
        height: 70px;
    }
}

/* Footer - Ultra Premium */
footer {
    background: #020c1b;
    color: var(--white);
    padding: 100px 0 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4rem;
}

.footer-logo {
    font-size: 2.22rem;
    font-weight: 900;
    color: var(--white);
    letter-spacing: 5px;
    text-transform: uppercase;
}

.footer-logo span {
    color: var(--accent);
}

.footer-nav {
    display: flex;
    gap: 4rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-nav a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding-bottom: 8px;
}

.footer-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
    transform: translateX(-50%);
}

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

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

.footer-socials {
    display: flex;
    gap: 2rem;
}

.social-icon {
    width: 55px;
    height: 55px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--text-light);
}

.social-icon:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
    transform: translateY(-8px);
    box-shadow: 0 15px 30px var(--accent-glow);
}

.footer-bottom {
    width: 100%;
    margin-top: 5rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.95rem;
}

.footer-bottom .realizacja {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.footer-bottom .realizacja:hover {
    text-shadow: 0 0 10px var(--accent-glow);
}

@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .footer-nav {
        gap: 2rem;
    }

    #o-nas {
        padding: 80px 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}