/* --- ZMIENNE --- */
:root {
    --bg-main: #ffffff;
    --bg-alt: #f8fafc;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --accent: #4f46e5;
    --accent-hover: #4338ca;
    --border-color: #e2e8f0;
    --font-main: 'Plus Jakarta Sans', sans-serif;
}

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

body {
    font-family: var(--font-main);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
    position: relative;
    overflow-x: hidden;
}

/* DEKORACYJNE TŁA (BLOBS) */
.blob {
    position: absolute;
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.6;
}
.blob-1 {
    top: -10%; left: -10%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.15) 0%, transparent 70%);
    filter: blur(80px);
}
.blob-2 {
    top: 40%; right: -20%;
    width: 800px; height: 800px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.1) 0%, transparent 70%);
    filter: blur(100px);
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; position: relative; }

h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.03em; line-height: 1.2; }
.section-title { font-size: 2.8rem; margin-bottom: 1.5rem; }
.section-subtitle { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 3rem; }
.section-header.center { text-align: center; max-width: 700px; margin: 0 auto 3rem; }

/* ANIMACJE FADE-IN */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* PRZYCISKI */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 24px; border-radius: 999px; font-weight: 600; font-size: 0.95rem; text-decoration: none; transition: all 0.2s ease; cursor: pointer; border: none; }
.btn-large { padding: 16px 32px; font-size: 1.05rem; }
.btn-primary { background-color: var(--accent); color: white; border: 2px solid var(--accent); }
.btn-primary:hover { background-color: var(--accent-hover); border-color: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 10px 20px rgba(79, 70, 229, 0.2); }
.btn-outline { background-color: transparent; color: var(--text-main); border: 2px solid var(--border-color); }
.btn-outline:hover { border-color: var(--text-main); }

/* HEADER / NAWIGACJA */
.navbar { padding: 24px 0; background-color: rgba(255, 255, 255, 0.85); backdrop-filter: blur(12px); position: fixed; width: 100%; top: 0; z-index: 100; border-bottom: 1px solid rgba(226, 232, 240, 0.6); }
.nav-inner { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.05em; color: var(--text-main); }
.logo .dot { color: var(--accent); }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--text-main); text-decoration: none; font-weight: 500; font-size: 0.95rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--accent); }

/* Wyróżnione elementy w Navbar */
.nav-links a.nav-highlight { font-weight: 700; color: var(--accent); }
.nav-links a.nav-contact-btn { color: white; padding: 10px 24px; border: none; }
.nav-links a.nav-contact-btn:hover { color: white; }

/* HERO */
.hero { padding: 140px 0 100px; }
.hero-inner { display: flex; align-items: center; gap: 60px; }
.hero-content { flex: 1; }
.badge { display: inline-block; padding: 6px 16px; background-color: var(--bg-alt); color: var(--accent); border: 1px solid var(--border-color); border-radius: 999px; font-weight: 600; font-size: 0.85rem; margin-bottom: 24px; }
.hero h1 { font-size: 4.5rem; font-weight: 800; margin-bottom: 24px; }
.hero h1 span { color: var(--accent); }
.hero-description { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 40px; max-width: 500px; }
.hero-actions { display: flex; gap: 16px; margin-bottom: 48px; }
.hero-stats { display: flex; align-items: center; gap: 20px; color: var(--text-muted); font-size: 0.9rem; }
.hero-stats strong { color: var(--text-main); font-weight: 700; }
.h-divider { width: 1px; height: 24px; background-color: var(--border-color); }
.hero-visual { flex: 1; display: flex; justify-content: flex-end; }
.hero-img-wrapper { border-radius: 30px; overflow: hidden; max-width: 500px; width: 100%; box-shadow: 0 20px 40px rgba(0,0,0,0.08); background: #e2e8f0; }
.hero-main-img { width: 100%; height: auto; display: block; aspect-ratio: 4/5; object-fit: cover; transition: transform 0.6s ease; }
.hero-img-wrapper:hover .hero-main-img { transform: scale(1.03); }

/* ABOUT */
.about { padding: 80px 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-text p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 20px; }

/* ZIG-ZAG / HOBBIES */
.hobbies { padding: 60px 0; }
.zig-zag { display: flex; flex-direction: column; gap: 100px; }
.zz-row { display: flex; align-items: center; gap: 80px; }
.zz-row.reverse { flex-direction: row-reverse; }
.zz-image { flex: 1; min-width: 0; }
.zz-text { flex: 1; min-width: 0; }
.zz-text h3 { font-size: 2rem; margin-bottom: 20px; color: var(--text-main); }
.zz-text p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 20px; }

/* REKOMENDACJE / SLIDER */
.testimonials { padding: 60px 0; overflow: hidden; }
.slider-container { position: relative; padding: 0 50px; }
.testi-track {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    padding: 20px 0;
}
.testi-track::-webkit-scrollbar { display: none; }
.testi-card {
    background: var(--bg-main); 
    padding: 40px; 
    border-radius: 24px; 
    border: 1px solid var(--border-color); 
    position: relative; 
    display: flex; 
    flex-direction: column;
    flex: 0 0 calc(33.333% - 20px);
    scroll-snap-align: start;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}
.quote-icon { font-size: 5rem; color: var(--accent); opacity: 0.1; position: absolute; top: 20px; right: 30px; font-family: serif; line-height: 1; }
.quote-text { font-style: italic; font-size: 1.05rem; color: var(--text-main); margin-bottom: 30px; position: relative; z-index: 2; flex-grow: 1; }
.testi-author { display: flex; align-items: center; gap: 16px; border-top: 1px solid var(--border-color); padding-top: 20px; }
.testi-author strong { display: block; color: var(--text-main); font-weight: 700; }
.testi-author span { font-size: 0.85rem; color: var(--text-muted); }

/* SLIDER BUTTONS */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    color: var(--accent);
    font-size: 1.2rem;
    transition: all 0.2s;
}
.slider-btn:hover { background: var(--accent); color: white; border-color: var(--accent); }
.prev-btn { left: 0; }
.next-btn { right: 0; }

/* FOOTER */
footer { border-top: 1px solid var(--border-color); padding: 40px 0; background-color: var(--bg-main); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; }
.footer-left p { color: var(--text-muted); font-size: 0.9rem; margin-top: 8px; }
.footer-right { display: flex; gap: 24px; }
.footer-right a { color: var(--text-muted); text-decoration: none; font-weight: 500; font-size: 0.95rem; transition: color 0.2s; }
.footer-right a:hover { color: var(--text-main); }

/* DODATKI DLA NOWYCH PODSTRON */
.page-content { padding: 60px 0 100px; }
.content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; margin-bottom: 60px; }
.content-grid.reverse { direction: rtl; }
.content-grid.reverse > * { direction: ltr; }

.text-block, .image-block { min-width: 0; width: 100%; }
.text-block p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 20px; line-height: 1.7; }
.text-block h3 { font-size: 1.8rem; margin-top: 40px; margin-bottom: 20px; color: var(--text-main); }
.text-block strong { color: var(--text-main); }

.styled-list { list-style: none; margin-bottom: 30px; }
.styled-list li { position: relative; padding-left: 30px; margin-bottom: 15px; font-size: 1.1rem; color: var(--text-muted); }
.styled-list li::before { content: "→"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: bold; }

/* NOWE ZDJĘCIA Z EFEKTEM HOVER (ZOOM) */
.img-wrapper {
    width: 100%;
    height: auto;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    position: relative;
    background: #e2e8f0;
}
.content-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4/5;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.img-wrapper:hover .content-img {
    transform: scale(1.05);
}

.about-visuals-collage { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.collage-img-1 { border-radius: 24px 8px 24px 24px; }
.collage-img-2 { margin-top: 60px; border-radius: 8px 24px 24px 24px; }

/* SERVICES GRID DLA "W CZYM POMAGAM" Z IKONAMI SVG */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.service-card { background: var(--bg-main); padding: 30px; border-radius: 24px; border: 1px solid var(--border-color); box-shadow: 0 4px 6px rgba(0,0,0,0.02); transition: all 0.3s; display: block; }
.service-card:hover { border-color: var(--accent); transform: translateY(-5px); box-shadow: 0 15px 30px rgba(79, 70, 229, 0.08); }
.service-card .icon-box { color: var(--accent); margin-bottom: 20px; display: inline-block; padding: 12px; background: var(--bg-alt); border-radius: 16px; }
.service-card h3 { font-size: 1.3rem; margin-bottom: 10px; color: var(--text-main); }
.service-card p { color: var(--text-muted); font-size: 0.95rem; }

/* CONTACT FORM */
.clean-form .form-group { margin-bottom: 30px; position: relative; }
.clean-form .form-control {
    width: 100%;
    padding: 15px 0;
    font-size: 1.05rem;
    color: var(--text-main);
    border: none;
    border-bottom: 1px solid #cbd5e1;
    background-color: transparent;
    font-family: inherit;
    transition: all 0.3s;
}
.clean-form .form-control:focus { outline: none; border-bottom-color: var(--accent); }
.clean-form .form-control::placeholder { color: #94a3b8; }
.clean-form select.form-control {
    color: #94a3b8;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0 center;
    background-size: 1.2em;
    padding-right: 20px;
    cursor: pointer;
}
.clean-form select.form-control:not(:invalid) { color: var(--text-main); }
.clean-form .textarea-box {
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 15px;
    resize: vertical;
}
.clean-form .textarea-box:focus { border-color: var(--accent); border-bottom-color: var(--accent); }

/* RESPONSIVE */
@media (max-width: 1050px) {
    .nav-links { gap: 15px; }
    .nav-links a { font-size: 0.85rem; }
}
@media (max-width: 992px) {
    .hero-inner { flex-direction: column; text-align: center; }
    .hero-actions { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero h1 { font-size: 3.5rem; }
    .hero-description { margin: 0 auto 40px; }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .content-grid { grid-template-columns: 1fr; gap: 40px; }
    .content-grid.reverse { direction: ltr; }
    .zz-row, .zz-row.reverse { flex-direction: column; text-align: center; gap: 40px; }
    .testi-card { flex: 0 0 calc(50% - 15px); }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .nav-links { display: none; }
    .about-visuals-collage { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .hero { padding: 120px 0 60px; }
    .hero h1 { font-size: 2.5rem; }
    .cta-buttons { flex-direction: column; }
    .footer-inner { flex-direction: column; gap: 20px; text-align: center; }
    .section-title { font-size: 2.2rem; }
    .testi-card { flex: 0 0 100%; }
    .slider-container { padding: 0; }
    .slider-btn { display: none; } /* Hide arrows on mobile */
    .services-grid { grid-template-columns: 1fr; }
    .about-visuals-collage { grid-template-columns: 1fr; gap: 20px; }
    .collage-img-2 { margin-top: 0; }
}
