/* Nowoczesne Zmienne (Design System) */
:root {
    --primary-color: #0ea5e9; 
    --primary-dark: #0284c7;
    --primary-light: #e0f2fe;
    --accent-color: #88d629; 
    --text-main: #0f172a; 
    --text-muted: #64748b;
    --bg-main: #ffffff;
    --bg-light: #f8fafc;
    --bg-card: #ffffff;
    --border-color: #e2e8f0;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-pill: 100px;
    
    --shadow-soft: 0 10px 40px -10px rgba(15, 23, 42, 0.08);
    --shadow-hover: 0 20px 40px -10px rgba(14, 165, 233, 0.2);
    --shadow-glow: 0 0 25px rgba(14, 165, 233, 0.4);
    
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* overflow-x: hidden; */
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--text-main);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 90%;
    max-width: 1280px;
    margin: 0 auto;
}

.section {
    padding: 10rem 0;
}

.text-center { text-align: center; }
.bg-light { background-color: var(--bg-light); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 36px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.05rem;
    border-radius: var(--radius-pill);
    transition: var(--transition);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff;
    box-shadow: 0 8px 20px -6px rgba(14, 165, 233, 0.5);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: #fff;
    color: var(--text-main);
    transform: translateY(-3px);
}

.btn-full { width: 100%; }

/* === SPLIT FLOATING NAVBAR (Wyspowa Nawigacja) === */

/* Główny kontener - jest niewidzialny, jedynie trzyma elementy */
.floating-nav {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1280px;
    z-index: 1000;
    transition: var(--transition);
    /* Usuwamy stary pasek! */
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    padding: 0;
    height: auto;
    pointer-events: none; /* Pozwala klikać w tło pomiędzy wyspami */
}

.floating-nav.scrolled {
    top: 15px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Pozwala logo rosnąć niezależnie od menu */
    width: 100%;
    position: relative;
    pointer-events: auto; /* Przywraca klikalność elementom menu */
}

/* === LEWA WYSPA: OSOBNA KAPSULA NA LOGO === */
.logo {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 15px 25px; /* Dużo miejsca wokół logo */
    border-radius: var(--radius-lg); /* Elegancki zaokrąglony prostokąt */
    border: 1px solid rgba(255,255,255,0.6);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.logo img {
    height: 90px; /* LOGO JEST TERAZ OGROMNE I CZYTELNE! */
    width: auto;
    transition: var(--transition);
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.05));
}

.floating-nav.scrolled .logo {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.95);
}

.floating-nav.scrolled .logo img {
    height: 60px; /* Po zescrollowaniu nieco maleje */
}

/* === PRAWA WYSPA: KAPSULA NA MENU LINKI === */
.nav-links {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    list-style: none;
    gap: 2.5rem;
    margin-left: auto; /* Dopycha do prawej krawędzi */
    padding: 0 30px;
    height: 70px; /* Standardowa wysokość strefy linków */
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255,255,255,0.6);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.floating-nav.scrolled .nav-links {
    height: 60px;
    background: rgba(255, 255, 255, 0.95);
}

/* Style samych tekstów linków (bez zmian) */
.nav-links a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0; height: 2px;
    bottom: -4px; left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: var(--primary-color); }

.btn-nav {
    background: var(--text-main);
    color: #fff !important;
    padding: 12px 28px;
    border-radius: var(--radius-pill);
}

.btn-nav::after { display: none; }
.btn-nav:hover {
    background: var(--primary-color);
    box-shadow: 0 5px 15px rgba(14, 165, 233, 0.3);
    transform: translateY(-2px);
}

/* === PRZYCISK MOBILNY (Okrągła Kapsuła) === */
.hamburger {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    height: 60px;
    width: 60px;
    border-radius: 50%; /* Idealne koło */
    border: 1px solid rgba(255,255,255,0.6);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    align-items: center;
    justify-content: center;
    margin-left: auto;
    transition: var(--transition);
}

.floating-nav.scrolled .hamburger {
    height: 55px; width: 55px;
    background: rgba(255, 255, 255, 0.95);
}

/* === Hero Section === */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background-color: #0f172a;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('https://images.unsplash.com/photo-1513694203232-719a280e022f?q=80&w=1920&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    z-index: 1;
    animation: slowZoom 20s infinite alternate linear;
}

@keyframes slowZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 80% 20%, rgba(14, 165, 233, 0.25) 0%, transparent 50%),
                radial-gradient(circle at 20% 80%, rgba(136, 214, 41, 0.15) 0%, transparent 50%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    color: #fff;
    max-width: 850px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-color);
}

.hero h1 {
    font-size: clamp(3.5rem, 7vw, 6rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    color: #fff;
    letter-spacing: -2px;
    line-height: 1.1;
}

/* Animowany tekst z gradientem */
.text-gradient {
    background: linear-gradient(to right, #4bd1f5, #0ea5e9, #88d629);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: gradientText 5s linear infinite;
}

@keyframes gradientText {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.hero p {
    font-size: 1.25rem;
    color: #cbd5e1;
    margin-bottom: 3rem;
    max-width: 650px;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

/* === Typography elements === */
.section-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* === About Section === */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 6rem;
    align-items: center;
}

.about-text p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-top: 1.5rem;
}

.about-text strong {
    color: var(--primary-color);
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat-box {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.stat-box:hover {
    transform: translateX(-10px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-hover);
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.stat-box h3 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

/* === Bento Grid Services === */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    grid-auto-rows: minmax(300px, auto);
}

.bento-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 3rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.bento-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, transparent, rgba(14, 165, 233, 0.03));
    z-index: -1;
    transition: var(--transition);
    opacity: 0;
}

.bento-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: var(--shadow-hover);
    border-color: rgba(14, 165, 233, 0.4);
}

.bento-card:hover::before {
    opacity: 1;
}

.span-2 { grid-column: span 2; }

.card-icon {
    height: 60px;
    width: 60px;
    background: var(--primary-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    transition: var(--transition);
}

.bento-card:hover .card-icon {
    background: var(--primary-color);
    color: #fff;
    transform: scale(1.1) rotate(-5deg);
}

.bento-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.bento-card p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 2rem;
    flex-grow: 1;
}

/* Tags / Chips */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background: var(--bg-light);
    color: var(--text-main);
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.tag:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.tag-outline { background: transparent; border-style: dashed; }
.tag-special { background: #111827; color: #88d629; border-color: #111827; }
.tag-special:hover { background: #88d629; color: #111827; }

/* === Contact Section === */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.contact-info {
    padding: 5rem;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #fff;
    position: relative;
}

/* Wzorek w tle kontaktu */
.contact-info::after {
    content: '';
    position: absolute;
    bottom: -50px; right: -50px;
    width: 200px; height: 200px;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    opacity: 0.3;
    filter: blur(30px);
}

.contact-info h2 { color: #fff; margin-bottom: 1rem; }
.contact-info p { color: #94a3b8; margin-bottom: 3rem; font-size: 1.1rem; }

.info-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-item .icon {
    height: 55px; width: 55px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
    color: var(--accent-color);
}

.info-item h4 { color: #fff; font-size: 1.2rem; margin-bottom: 0.2rem; }
.info-item p { color: #94a3b8; font-size: 1rem; margin-bottom: 0; }

/* Modern Form */
.contact-form-box {
    padding: 5rem;
    background: #fff;
}

.modern-form .input-group {
    position: relative;
    margin-bottom: 2.5rem;
}

.modern-form input,
.modern-form textarea {
    width: 100%;
    padding: 10px 0;
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--text-main);
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--border-color);
    outline: none;
    transition: var(--transition);
    resize: none;
}

.modern-form label {
    position: absolute;
    top: 10px;
    left: 0;
    color: var(--text-muted);
    font-size: 1.1rem;
    pointer-events: none;
    transition: var(--transition);
}

.modern-form input:focus,
.modern-form textarea:focus {
    border-bottom-color: var(--primary-color);
}

.modern-form input:focus ~ label,
.modern-form input:not(:placeholder-shown) ~ label,
.modern-form textarea:focus ~ label,
.modern-form textarea:not(:placeholder-shown) ~ label {
    top: -20px;
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 600;
}

.alert {
    padding: 16px; border-radius: var(--radius-md);
    margin-bottom: 2rem; font-weight: 500;
}
.alert.success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0;}
.alert.error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca;}

/* === Footer === */
.footer {
    background: #0f172a;
    padding: 4rem 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #64748b;
    font-size: 0.95rem;
}

.footer-logo {
    height: 45px;
    filter: brightness(0) invert(1);
    opacity: 0.6;
    transition: var(--transition);
}
.footer-logo:hover { opacity: 1; }

/* === RWD === */
@media (max-width: 1024px) {
    .bento-grid { grid-template-columns: repeat(2, 1fr); }
    .span-2 { grid-column: span 2; }
    .about-grid { grid-template-columns: 1fr; gap: 4rem; }
    .contact-container { grid-template-columns: 1fr; }
    .contact-form-box, .contact-info { padding: 4rem; }
}

@media (max-width: 768px) {
    /* Ustawienia kontenerów */
    .floating-nav { 
        width: 95%; 
        top: 20px; 
    }
    .floating-nav.scrolled { top: 10px; }
    
    /* Mobilna lewa wyspa (Logo) */
    .logo { padding: 10px 15px; }
    .logo img { height: 60px; } /* Na telefonie logo wciąż wyraźne */
    .floating-nav.scrolled .logo img { height: 45px; }
    
    /* Prawa wyspa uruchamia się w hamburgerze */
    .hamburger { display: flex; }
    
    /* Menu wysuwane (Dropdown z własnym tłem) */
    .nav-links {
        position: absolute; 
        top: calc(100% + 20px); /* Odsunięcie od góry (pod logo) */
        left: 0; 
        width: 100%;
        height: auto; 
        flex-direction: column; 
        padding: 30px;
        border-radius: var(--radius-xl);
        background: rgba(255, 255, 255, 0.98); /* Gęste białe tło dla czytelności na ciemnym */
        opacity: 0; 
        visibility: hidden;
        gap: 2rem; 
    }
    
    .nav-links.active { 
        opacity: 1; 
        visibility: visible; 
    }

    /* Zabezpieczenie dla reszty strony na telefonach: */
    .bento-grid { grid-template-columns: 1fr; }
    .span-2 { grid-column: span 1; }
    .hero h1 { font-size: 3rem; }
    .hero-actions { flex-direction: column; }
    .contact-info, .contact-form-box { padding: 2.5rem; }
    .footer-bottom { flex-direction: column; gap: 1.5rem; text-align: center; }
}