/* =========================================
   1. IMPORT CZCIONEK I ZMIENNE
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Roboto:wght@300;400&display=swap');

:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --accent-color: #FF7043;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --white-color: #ffffff;
    --text-color: #333;
    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Roboto', sans-serif;
}

/* =========================================
   2. RESET I USTAWIENIA OGÓLNE
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

.section-padding {
    padding: 80px 0;
}

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

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

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

/* =========================================
   3. TYPOGRAFIA
   ========================================= */
h1, h2, h3, h4 {
    font-family: var(--heading-font);
    color: var(--dark-color);
    margin-bottom: 20px;
}

h1 {
    font-size: clamp(2.5em, 5vw, 3.5em);
    font-weight: 700;
}

h2 {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
}

h3 {
    font-size: 1.8em;
}

p {
    margin-bottom: 15px;
}

.bold-text {
    font-weight: 700;
}

/* =========================================
   4. NAWIGACJA I LOGO
   ========================================= */
.header {
    background-color: var(--dark-color);
    color: var(--white-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

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

.logo-image {
    max-height: 50px;
    width: auto;
    display: block;
}

.main-nav .nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
}

.main-nav .nav-menu li {
    margin-left: 30px;
}

.main-nav .nav-menu a {
    color: var(--white-color);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
}

.main-nav .nav-menu a:hover,
.main-nav .nav-menu a.active {
    color: var(--accent-color);
}

/* HAMBURGER */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--white-color);
    position: relative;
    transition: 0.3s;
}

.hamburger::before, .hamburger::after {
    content: '';
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--white-color);
    position: absolute;
    transition: 0.3s;
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

.nav-toggle.active .hamburger { background-color: transparent; }
.nav-toggle.active .hamburger::before { transform: translateY(8px) rotate(45deg); }
.nav-toggle.active .hamburger::after { transform: translateY(-8px) rotate(-45deg); }

/* =========================================
   5. PRZYCISKI
   ========================================= */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s ease;
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background-color: #e65220;
    transform: translateY(-2px);
}

.btn-dark {
    background-color: var(--dark-color);
    color: var(--white-color);
}

.btn-lg {
    padding: 15px 35px;
    font-size: 1.2em;
}

.btn-accent {
    background-color: var(--accent-color);
    color: white;
    box-shadow: 0 10px 20px rgba(255, 112, 67, 0.3);
}

/* =========================================
   6. HERO SECTION
   ========================================= */
.hero-section {
    position: relative;
    overflow: hidden;
    color: var(--white-color);
    text-align: center;
    padding: 150px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
}

.background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: -1;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1, .hero-section p {
    color: var(--white-color);
}

/* =========================================
   7. GENERATOR CTA
   ========================================= */
.generator-section {
    background: linear-gradient(135deg, #fdfdfd 0%, #f0f4f8 100%);
    border-bottom: 1px solid #e1e8ed;
}

.generator-card {
    display: flex;
    align-items: center;
    background: var(--white-color);
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    gap: 40px;
}

.generator-content { flex: 1; text-align: left; }
.generator-content h2 { text-align: left; }
.generator-content .badge {
    background: var(--accent-color);
    color: white; padding: 5px 12px; border-radius: 50px; font-size: 0.8em; font-weight: 700; text-transform: uppercase;
}

.generator-features { display: flex; gap: 20px; margin: 20px 0 30px; flex-wrap: wrap; }
.generator-features span { font-size: 0.9em; font-weight: 700; color: var(--secondary-color); }
.generator-features i { color: #28a745; margin-right: 5px; }

.generator-visual { flex: 1; display: flex; justify-content: center; }
.floating-img {
    max-width: 100%; height: auto; filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1));
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

/* =========================================
   8. USŁUGI I PORTFOLIO
   ========================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-item {
    background: var(--white-color);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: 0.3s;
}

.service-item:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.12); }
.service-item i { font-size: 3em; color: var(--primary-color); margin-bottom: 20px; }

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.portfolio-item, .portfolio-item-no-desc {
    background: var(--white-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: 0.3s;
}

.portfolio-item img {
    width: 100%; height: 250px; object-fit: cover; display: block;
}

.portfolio-item-no-desc img {
    width: 100%; height: 200px; object-fit: cover; display: block;
    transition: transform 0.5s ease;
}

.portfolio-item-no-desc:hover img { transform: scale(1.1); }
.portfolio-item h4 { padding: 15px; margin: 0; color: var(--primary-color); }
.portfolio-item p { padding: 0 15px 15px; font-size: 0.9em; color: var(--secondary-color); }

/* =========================================
   9. O NAS I FAQ
   ========================================= */
.about-section { line-height: 1.8; }
.about-section h2 { text-align: center; margin-bottom: 30px; }
.about-section p {
    text-align: center;
    max-width: 850px;
    margin: 0 auto 20px;
    font-size: 1.05em;
}

/* FAQ stylizacja została w HTML (inline), ale tu można dodać globalne poprawki jeśli trzeba */

/* =========================================
   10. YOUTUBE I KONTAKT
   ========================================= */
.youtube-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.youtube-video {
    background: var(--white-color); border-radius: 8px; overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.youtube-video iframe { width: 100%; aspect-ratio: 16/9; display: block; }

.quote-form {
    max-width: 600px; margin: 40px auto 0; display: flex; flex-direction: column; gap: 20px;
}

.quote-form input, .quote-form textarea {
    width: 100%; padding: 15px; border: none; border-radius: 5px; font-size: 1em;
}

.file-upload-label {
    display: block; background: var(--accent-color); color: white;
    padding: 15px; border-radius: 5px; cursor: pointer; font-weight: 700;
}

/* =========================================
   11. STOPKA (FOOTER)
   ========================================= */
.footer {
    background-color: var(--dark-color);
    color: var(--white-color);
    padding: 40px 0;
}

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

.footer p { margin: 0; }
.visit-counter { color: var(--secondary-color); white-space: nowrap; }
.visit-counter strong { color: var(--accent-color); }

.social-links a {
    color: var(--white-color); font-size: 1.5em; margin-left: 15px; transition: 0.3s;
}

.social-links a:hover { color: var(--accent-color); }

/* =========================================
   12. RESPONSYWNOŚĆ (MEDIA QUERIES)
   ========================================= */
@media (max-width: 992px) {
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
    .generator-card { flex-direction: column; text-align: center; padding: 30px; }
    .generator-content h2 { text-align: center; }
    .generator-features { justify-content: center; }
}

@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .main-nav .nav-menu {
        display: none; flex-direction: column; width: 100%;
        background: var(--dark-color); position: absolute; top: 70px; left: 0; padding: 20px 0;
    }
    .main-nav .nav-menu.active { display: flex; }
    .main-nav .nav-menu li { margin: 15px 0; margin-left: 0; text-align: center; }
    
    .portfolio-grid, .services-grid { grid-template-columns: 1fr; }
    .footer .container { flex-direction: column; text-align: center; }
    .social-links { margin-top: 10px; }
}

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