:root {
    --bg-dark: #000000;
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.12);
    --primary: #a855f7;
    --secondary: #6366f1;
    --text-white: #ffffff;
    --text-dim: #a1a1aa;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
html, body { height: 100%; scroll-behavior: smooth; }

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.main-wrapper { flex: 1 0 auto; }

/* --- SPA LOGIC --- */
.page-view { display: none; }
.page-view.active { display: block; animation: fadeIn 0.6s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }

.glow-bg { 
    position: fixed; 
    width: 800px; 
    height: 800px; 
    border-radius: 50%; 
    filter: blur(150px); 
    z-index: -1; 
    opacity: 0.25; 
    pointer-events: none;
    /* DODAJ TĘ LINIĘ PONIŻEJ */
    animation: floatGlow 20s infinite alternate ease-in-out;
}

.glow-purple { 
    top: -200px; 
    left: -100px; 
    background: var(--primary); 
}

.glow-blue { 
    bottom: -100px; 
    right: -100px; 
    background: var(--secondary); 
    opacity: 0.2; 
    /* Opcjonalnie: inna prędkość dla drugiej kuli, żeby ruch był ciekawszy */
    animation-duration: 25s;
    animation-delay: -5s;
}

/* --- HEADER --- */
header {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}
.container-nav { max-width: 1200px; margin: 0 auto; padding: 15px 5%; display: flex; justify-content: space-between; align-items: center; }
.logo { font-weight: 800; font-size: 1.4rem; letter-spacing: 1px; }
.logo span { color: var(--primary); }
nav a { color: var(--text-dim); text-decoration: none; margin-left: 25px; font-size: 0.85rem; font-weight: 500; transition: 0.3s; }
nav a:hover, nav a.active { color: white; }

.btn-quote { 
    background: var(--glass-bg); border: 1px solid var(--glass-border); 
    padding: 8px 18px; border-radius: 10px; color: white; text-decoration: none; font-size: 0.8rem;
    transition: 0.3s;
}
.btn-quote:hover { background: rgba(255,255,255,0.1); border-color: white; }

/* --- HERO SECTION --- */
.container { max-width: 1200px; margin: 0 auto; padding: 80px 5%; }
.hero { display: flex; align-items: center; gap: 40px; min-height: 85vh; padding-top: 40px; }
.hero-content { flex: 1.2; }

h1 { font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 800; line-height: 1.1; margin-bottom: 20px; }
h1 span { background: linear-gradient(to right, var(--primary), var(--secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.badge-ios { 
    background: var(--glass-bg); border: 1px solid var(--glass-border); 
    padding: 6px 14px; border-radius: 50px; font-size: 0.75rem; color: var(--text-dim);
    display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px;
}
.dot-green { width: 7px; height: 7px; background: #4ade80; border-radius: 50%; box-shadow: 0 0 10px #4ade80; }

.hero-desc { color: var(--text-dim); font-size: 1.05rem; line-height: 1.6; margin-bottom: 35px; max-width: 500px; }
.hero-btns { display: flex; gap: 15px; }

/* --- BUTTONS --- */
.btn-primary { background: white; color: black; padding: 14px 30px; border-radius: 12px; font-weight: 700; border: none; cursor: pointer; transition: 0.3s; }
.btn-primary:hover { transform: scale(1.03); box-shadow: 0 0 20px rgba(255,255,255,0.2); }
.btn-glass { background: var(--glass-bg); border: 1px solid var(--glass-border); color: white; padding: 14px 30px; border-radius: 12px; cursor: pointer; font-weight: 600; transition: 0.3s; }
.btn-glass:hover { background: rgba(255,255,255,0.1); }

/* --- STATS CARD --- */
.hero-stats { flex: 0.8; }
.stat-glass-card { 
    background: var(--glass-bg); border: 1px solid var(--glass-border); 
    backdrop-filter: blur(25px); border-radius: 32px; padding: 35px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}
.card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; color: var(--text-dim); font-size: 0.85rem; }
.icon-w { width: 40px; height: 40px; background: var(--primary); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 800; color: white; }
.stat-main { font-size: 4rem; font-weight: 800; margin-bottom: 10px; }
.stat-bar { height: 6px; background: rgba(255,255,255,0.1); border-radius: 10px; margin-top: 8px; }
.stat-fill { width: 99%; height: 100%; background: white; border-radius: 10px; }
.stat-label { font-size: 0.75rem; color: var(--text-dim); }
.mini-stats { display: flex; gap: 15px; margin-top: 30px; }
.ms-box { flex: 1; background: rgba(255,255,255,0.03); border: 1px solid var(--glass-border); border-radius: 16px; padding: 15px; text-align: center; }
.ms-box span { display: block; font-size: 0.65rem; color: var(--text-dim); margin-bottom: 5px; }

/* --- SERVICES --- */
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 10px; }
.section-header span { color: var(--primary); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; }
.service-ios-card { 
    background: var(--glass-bg); border: 1px solid var(--glass-border); 
    padding: 40px; border-radius: 28px; backdrop-filter: blur(20px);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.service-ios-card:hover { transform: scale(1.05); border-color: rgba(255,255,255,0.3); }
.s-number { width: 35px; height: 35px; background: rgba(168, 85, 247, 0.15); color: var(--primary); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.8rem; margin-bottom: 20px; }

/* --- PORTFOLIO --- */
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.port-ios-card { height: 220px; border-radius: 24px; overflow: hidden; position: relative; cursor: pointer; border: 1px solid var(--glass-border); }
.port-img-bg { width: 100%; height: 100%; background-size: cover; background-position: center; transition: 0.5s; }
.port-ios-card:hover .port-img-bg { transform: scale(1.1); }
.port-overlay { position: absolute; bottom: 0; left: 0; width: 100%; padding: 25px; background: linear-gradient(transparent, rgba(0,0,0,0.8)); }

/* --- KONTAKT --- */
.contact-glass-card { max-width: 600px; margin: 0 auto; background: var(--glass-bg); border: 1px solid var(--glass-border); padding: 40px; border-radius: 30px; backdrop-filter: blur(25px); }
.ios-input { width: 100%; background: rgba(255,255,255,0.03); border: 1px solid var(--glass-border); padding: 16px; border-radius: 12px; color: white; margin-bottom: 20px; outline: none; transition: 0.3s; }
.ios-input:focus { border-color: white; background: rgba(255,255,255,0.06); }

/* --- INSTAGRAM FLOAT --- */
.insta-float-glass {
    position: fixed; bottom: 85px; right: 30px;
    width: 50px; height: 50px; border-radius: 50%;
    background: var(--glass-bg); backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 1.4rem; z-index: 999;
    transition: 0.3s; text-decoration: none;
}
.insta-float-glass:hover { transform: scale(1.1); background: rgba(255,255,255,0.15); border-color: var(--primary); }

/* --- FOOTER --- */
.footer-ios { flex-shrink: 0; padding: 25px 0; border-top: 1px solid var(--glass-border); background: rgba(0,0,0,0.6); text-align: center; color: var(--text-dim); font-size: 0.8rem; }

/* --- MOBILE --- */
.mobile-btn { display: none; cursor: pointer; font-size: 1.3rem; }
@media (max-width: 1024px) { 
    .hero { flex-direction: column; text-align: center; padding-top: 20px; } 
    .hero-stats { width: 100%; max-width: 450px; }
    .hero-desc { margin: 0 auto 35px; }
    .hero-btns { justify-content: center; }
}
@media (max-width: 768px) {
    .desktop-only { display: none; } .mobile-btn { display: block; }
    nav { position: absolute; top: 100%; left: 0; width: 100%; background: rgba(0,0,0,0.95); backdrop-filter: blur(20px); display: none; flex-direction: column; padding: 30px; border-bottom: 1px solid var(--ios-border); }
    nav.active { display: flex; } nav a { margin: 15px 0; margin-left: 0; font-size: 1.1rem; }
    .insta-float-glass { bottom: 80px; right: 20px; width: 45px; height: 45px; }
}

/* MODAL */
.gallery-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); z-index: 3000; justify-content: center; align-items: center; }
#imgFull { max-width: 90%; max-height: 80%; border-radius: 15px; border: 1px solid var(--glass-border); }

@keyframes floatGlow {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(10%, 15%) scale(1.1);
    }
    100% {
        transform: translate(-5%, -10%) scale(1);
    }
}