/* === ZMIENNE CSS === */
:root {
    --bg-color: #ffffff;
    --bg-secondary: #fdfbfd;
    --text-main: #1a1a1a;
    --text-muted: #666666;
    --primary: #a200ff;
    --secondary: #ff007f;
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
    --card-shadow: 0 10px 30px rgba(162, 0, 255, 0.08);
    --transition: all 0.3s ease;
}

/* === BAZA === */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }
body { background-color: var(--bg-color); color: var(--text-main); display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1; padding-top: 120px; } /* Miejsce pod odrobinę większy uwidoczniony header */
a { text-decoration: none; color: inherit; }
.gradient-text { background: var(--gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }

/* === NAWIGACJA === */
header { position: fixed; top: 0; width: 100%; background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px); display: flex; justify-content: space-between; align-items: center; padding: 20px 5%; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.logo { font-size: 28px; font-weight: 700; display: flex; align-items: center; gap: 10px; z-index: 1001; }
.logo img { height: 60px; width: auto; transition: var(--transition); }
.logo:hover img { transform: scale(1.05); }
nav ul { display: flex; gap: 30px; list-style: none; }
nav ul li a { font-weight: 600; color: var(--text-muted); transition: var(--transition); }
nav ul li a:hover, nav ul li a.active { color: var(--primary); }

/* === WSPÓLNE KOMPONENTY === */
.section-padding { padding: 120px 5% 80px; }
.text-center { text-align: center; }
.section-title { font-size: 2.5rem; margin-bottom: 20px; text-align: center; }
.subtitle { color: var(--text-muted); text-align: center; margin-bottom: 50px; font-size: 1.1rem; }

.btn-primary { background: var(--gradient); color: white; padding: 15px 30px; border-radius: 8px; font-weight: 600; transition: var(--transition); border: none; cursor: pointer; display: inline-block; }
.btn-primary:hover { box-shadow: 0 5px 20px rgba(255, 0, 127, 0.4); transform: translateY(-2px); }
.btn-primary.full-width { width: 100%; }
.btn-secondary { background: transparent; color: var(--primary); padding: 15px 30px; border-radius: 8px; font-weight: 600; border: 2px solid var(--primary); transition: var(--transition); cursor: pointer; display: inline-block; }
.btn-secondary:hover { background: var(--primary); color: white; }

/* === ANIMOWANE RAMKI ZDJĘĆ (BUBBLE EFFECT) === */
.bubble-frame {
    background: linear-gradient(135deg, rgba(162,0,255,0.05), rgba(255,0,127,0.05));
    border: 3px dashed rgba(162, 0, 255, 0.4);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    animation: morph 8s ease-in-out infinite;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    color: var(--primary);
    font-weight: 600;
    text-align: center;
    padding: 0; 
    transition: var(--transition);
    /* fix dla animowanego border-radius na tagu wideo w WebKit/Chromium */
    -webkit-mask-image: linear-gradient(#fff, #fff);
    mask-image: linear-gradient(#fff, #fff);
    transform: translateZ(0);
    will-change: border-radius, transform;
}
.bubble-frame:hover { border: 3px solid rgba(162, 0, 255, 0.8); background: var(--gradient); color: white; transform: translateY(-5px); }
.bubble-frame img, .bubble-frame video { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
@keyframes morph {
    0%, 100% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
    34% { border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%; }
    67% { border-radius: 100% 60% 60% 100% / 100% 100% 60% 60%; }
}

/* === STRONA GŁÓWNA (HERO) === */
.hero { display: flex; align-items: center; justify-content: space-between; min-height: 80vh; padding: 170px 5% 50px; margin-top: -120px; background: radial-gradient(circle at top left, rgba(162,0,255,0.05), transparent 40%), radial-gradient(circle at bottom right, rgba(255,0,127,0.05), transparent 40%); }
.hero-text { flex: 1; max-width: 600px; }
.badge-top { background: var(--bg-secondary); border: 1px solid #eee; padding: 5px 15px; border-radius: 20px; font-size: 0.9rem; margin-bottom: 20px; display: inline-block; }
.hero-text h1 { font-size: 4rem; line-height: 1.1; margin-bottom: 20px; }
.hero-text p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 40px; }
.hero-image { flex: 1; position: relative; display: flex; justify-content: center; height: 500px; }
.hero-image .bubble-frame { width: 80%; height: 100%; }

/* === USŁUGI & CENNIK === */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.card { background: white; padding: 40px 30px; border-radius: 20px; box-shadow: var(--card-shadow); text-align: left; transition: var(--transition); border: 1px solid rgba(0,0,0,0.02); position: relative; overflow: hidden; }
.card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: var(--gradient); opacity: 0; transition: var(--transition); }
.card:hover { transform: translateY(-10px); }
.card:hover::before { opacity: 1; }
.card-icon { width: 60px; height: 60px; background: var(--gradient); border-radius: 15px; margin-bottom: 20px; }

/* Tabela Cennika */
.pricing-section { background: var(--bg-secondary); border-radius: 20px; padding: 40px; margin-top: 50px; box-shadow: var(--card-shadow); }
.pricing-table { width: 100%; border-collapse: collapse; text-align: left; margin-top: 20px; }
.pricing-table th { color: var(--primary); padding: 20px 15px; border-bottom: 2px solid rgba(162,0,255,0.2); font-size: 1.1rem; }
.pricing-table td { padding: 20px 15px; border-bottom: 1px solid #eee; color: var(--text-muted); }
.pricing-table tr:hover td { background: rgba(162,0,255,0.02); color: var(--text-main); }
.pricing-table td:first-child { font-weight: 600; color: var(--text-main); }

/* Opis SMM */
.smm-details { margin-top: 50px; padding: 40px; background: white; border-radius: 20px; border-left: 5px solid var(--primary); box-shadow: var(--card-shadow); }
.smm-details p { margin-bottom: 15px; color: var(--text-muted); line-height: 1.6; }
.smm-details strong { color: var(--text-main); }

/* === PORTFOLIO === */
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }

.square-frame {
    background: linear-gradient(135deg, rgba(162,0,255,0.03), rgba(255,0,127,0.03));
    border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    padding: 30px;
    transition: var(--transition);
    border: 1px solid rgba(162, 0, 255, 0.1);
    aspect-ratio: 1 / 1;
    position: relative;
}
.square-frame::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: var(--gradient); opacity: 0; transition: var(--transition); z-index: 1; pointer-events: none;}
.square-frame:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(162, 0, 255, 0.15); border-color: transparent; }
.square-frame:hover::before { opacity: 0.05; }
.square-frame img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; z-index: 2; position: relative; filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1)); transition: var(--transition); }
.square-frame:hover img { transform: scale(1.03); }

/* === KONTAKT (FULL PAGE) === */
.contact-fullpage { min-height: 100vh; display: flex; padding: 140px 5% 60px; background: var(--bg-secondary); }
.contact-container { max-width: 1300px; width: 100%; margin: auto; background: white; border-radius: 30px; box-shadow: 0 20px 50px rgba(162, 0, 255, 0.1); display: flex; flex-wrap: wrap; overflow: hidden; }
.contact-info { flex: 1; min-width: 350px; background: var(--gradient); color: white; padding: 60px; display: flex; flex-direction: column; justify-content: center; }
.contact-form { flex: 1.2; min-width: 350px; padding: 60px; display: flex; flex-direction: column; justify-content: center; }
.form-group { margin-bottom: 20px; }
.form-group input, .form-group textarea { width: 100%; padding: 15px; border: 1px solid #ddd; border-radius: 8px; font-family: inherit; transition: var(--transition); background: #fafafa; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--primary); background: white; outline: none; box-shadow: 0 0 0 4px rgba(162,0,255,0.1); }
.form-group textarea { height: 150px; resize: none; }

/* === STOPKA === */
footer { background: #f2f3f7; color: var(--text-main); padding: 60px 5% 20px; margin-top: auto; border-top: 1px solid rgba(0,0,0,0.05); }
.footer-content { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; margin-bottom: 40px; }
.footer-links { flex: 1; min-width: 250px; }
.footer-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 15px; }
.btn-footer { background: white; border: 1px solid rgba(0,0,0,0.1); padding: 10px 20px; border-radius: 8px; font-size: 0.9rem; transition: var(--transition); color: var(--text-muted); font-weight: 600; box-shadow: 0 2px 10px rgba(0,0,0,0.02); }
.btn-footer:hover { background: var(--gradient); color: white; border-color: transparent; transform: translateY(-3px); box-shadow: 0 5px 15px rgba(162,0,255,0.2); }
.footer-bottom { text-align: center; border-top: 1px solid rgba(0,0,0,0.05); padding-top: 20px; font-size: 0.8rem; color: var(--text-muted); }
.footer-cta { display: flex; align-items: flex-start; justify-content: flex-end; }
.btn-pill { border-radius: 30px !important; padding: 15px 35px; font-weight: 700; letter-spacing: 0.5px; }

/* === ZASTĄPIENIE INLINE STYLÓW I DOSTĘPNOŚĆ === */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.hero-actions { display: flex; gap: 20px; }
.footer-logo-link { margin-bottom: 15px; display: inline-flex; }
.footer-logo-link img { height: 50px; width: auto; }
.card-icon-center { display: flex; align-items: center; justify-content: center; }
.bg-grad-1 { background: linear-gradient(135deg, #a200ff, #ff007f); }
.bg-grad-2 { background: linear-gradient(135deg, #ff007f, #ff7b00); }
.bg-grad-3 { background: linear-gradient(135deg, #00d2ff, #3a7bd5); }
.smm-title { margin-bottom: 20px; font-size: 1.8rem; color: var(--primary); }
.contact-title { font-size: 3rem; margin-bottom: 20px; }
.contact-desc { font-size: 1.1rem; opacity: 0.9; margin-bottom: 40px; }
.contact-subtitle { margin-bottom: 10px; font-size: 1.2rem; }
.contact-item { margin-bottom: 15px; display: flex; align-items: center; gap: 10px; }
.contact-item span { font-size: 1.5rem; }
.footer-minimal { padding-top: 30px; padding-bottom: 30px; }
.footer-minimal .footer-bottom { border: none; padding: 0; }
.hero-about { min-height: auto; padding: 20px 0; background: none; }
.hero-about-text { padding-right: 40px; }
.about-title { font-size: 2.5rem; margin-bottom: 20px; }
.about-desc { font-size: 1.1rem; line-height: 1.8; color: var(--text-muted); margin-bottom: 20px; }

/* === ANIMACJE JS === */
.hidden { opacity: 0; transform: translateY(40px); will-change: opacity, transform; }
.show { opacity: 1; transform: translateY(0); transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }

/* === HAMBURGER MENU === */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; z-index: 1001; }
.hamburger span { width: 30px; height: 3px; background: var(--text-main); border-radius: 3px; transition: var(--transition); }
.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* === RWD === */
@media (max-width: 768px) {
    .hamburger { display: flex; }
    nav { position: fixed; top: 0; right: -100%; width: 70vw; height: 100vh; background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(15px); display: flex; align-items: center; justify-content: center; transition: 0.4s ease-in-out; box-shadow: -10px 0 30px rgba(0,0,0,0.1); }
    nav.active { right: 0; }
    nav ul { flex-direction: column; text-align: center; gap: 40px; font-size: 1.5rem; }
    .hero { flex-direction: column; text-align: center; margin-top: 20px; }
    .hero-text h1 { font-size: 2.8rem; }
    .hero-image { width: 100%; margin-top: 40px; height: auto; min-height: 300px; }
    .pricing-table th, .pricing-table td { padding: 15px 10px; font-size: 0.9rem; }
    .footer-cta { justify-content: flex-start; margin-top: 10px; }
}