/* ============================================
   LAGFREE STUDIO - PREMIUM DARK THEME
   ============================================ */

:root {
    /* Colors */
    --bg-dark: #050507;
    --bg-secondary: #0a0a0f;
    --bg-card: #111118;

    --primary: #00f2ff;
    /* Cyan/Electric Blue */
    --primary-dark: #00c8d4;
    --secondary: #2d5af0;
    /* Deep Blue */

    --text-main: #ffffff;
    --text-muted: #a0a0b0;

    --gradient-main: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    --gradient-glow: linear-gradient(135deg, rgba(45, 90, 240, 0.5) 0%, rgba(0, 242, 255, 0.5) 100%);

    /* Spacing */
    --container-width: 1200px;
    --header-height: 80px;

    /* Effects */
    --glass-bg: rgba(10, 10, 15, 0.7);
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --blur: blur(12px);
    --shadow-glow: 0 0 20px rgba(0, 242, 255, 0.3);

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -1px;
}

h2 {
    font-size: 2.5rem;
}

p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.text-gradient {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.highlight {
    color: var(--primary);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--gradient-main);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 242, 255, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 242, 255, 0.5);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: rgba(0, 242, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.2);
}

.btn-lg {
    padding: 16px 40px;
    font-size: 1.1rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    /* Gradient: Jasny start pod logo -> Niebieski -> Czerń pod linkami */
    background: linear-gradient(90deg, 
        #ffffff 0%, 
        #ffffff 10%, 
        #004494 35%, 
        #050507 60%, 
        #050507 100%);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.logo {
    display: flex;
    align-items: center;
    height: 100%;
    text-decoration: none;
    /* Przesunięcie, by zniwelować puste miejsce w kwadratowym PNG */
    margin-left: -35px; 
}

.logo-wrapper {
    display: flex;
    align-items: center;
    /* Pozwalamy logo być nieco wyższym niż navbar, jeśli ma marginesy w pliku */
    height: calc(var(--header-height) + 20px); 
}

.logo img {
    /* Jeszcze większe logo */
    width: 280px; 
    height: auto;
    display: block;
    object-fit: contain;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 10px rgba(0,0,0,0.1));
}

.logo:hover img {
    transform: scale(1.02);
}


/* ============================================
   MOBILE FIX - Spójny gradient i logo
   ============================================ */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 10px;
    }

    .navbar {
        /* Usuwamy biel na mobile - startujemy od brandowego niebieskiego */
        background: linear-gradient(90deg, 
            #004494 0%, 
            #004494 20%, 
            #050507 80%, 
            #050507 100%);
        height: 70px; /* Lekko niższy navbar na mobile, żeby był zgrabniejszy */
    }

    .logo {
        /* Logo maksymalnie do lewej krawędzi */
        margin-left: -55px; 
    }

    .logo img {
        /* Rozmiar dopasowany do mniejszego ekranu */
        width: 190px; 
        filter: brightness(1.2) drop-shadow(0 0 10px rgba(0,0,0,0.5));
    }

    /* Upewniamy się, że po przewinięciu na mobile też nie wskoczy biel */
    .navbar.scrolled {
        background: linear-gradient(90deg, #003370 0%, #050507 70%);
    }
}
/* Opcjonalnie: gdy strona jest przewinięta, gradient może stać się ciemniejszy */
.navbar.scrolled {
    background: linear-gradient(90deg, #004494 0%, #050507 40%, #050507 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* Utrzymanie układu menu */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

/* Dostosowanie linków, żeby na 50% gradientu były już idealnie białe na czarnym */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    z-index: 10;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-muted);
    position: relative;
}

.nav-link:hover {
    color: #fff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    padding: 10px 24px;
    font-size: 0.9rem;
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background-color: #fff;
    transition: var(--transition);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--header-height);
    overflow: hidden;
}

.particles-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at center, #1a1a2e 0%, var(--bg-dark) 70%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-top: 1.5rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Scroll Down Indicator */
.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.7;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid var(--text-muted);
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background-color: var(--primary);
    border-radius: 50%;
    animation: scrollMouse 2s infinite;
}

@keyframes scrollMouse {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 15px);
        opacity: 0;
    }
}

/* ============================================
   SECTIONS GENERAL
   ============================================ */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--gradient-main);
    margin: 10px auto 0;
    border-radius: 2px;
}

.section-desc {
    font-size: 1.1rem;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-card);
    padding: 40px 30px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 242, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-main);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.icon-box {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #fff;
}

/* ============================================
   PORTFOLIO SECTION
   ============================================ */
.portfolio-items {
    display: flex;
    flex-direction: column;
    gap: 100px;
}

.portfolio-item {
    display: flex;
    align-items: center;
    gap: 60px;
}

.portfolio-item.reverse {
    flex-direction: row-reverse;
}

.portfolio-image {
    flex: 1;
    position: relative;
}

.mockup-frame {
    background: #1a1a24;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mockup-content {
    width: 100%;
    aspect-ratio: 16/9;
    background-color: #2a2a35;
    border-radius: 8px;
    overflow: hidden;
}

.placeholder-gradient-1 {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
}

.placeholder-gradient-2 {
    background: linear-gradient(135deg, #4b6cb7 0%, #182848 100%);
}

.portfolio-text {
    flex: 1;
}

.portfolio-text h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #fff;
}

.tech-stack {
    display: flex;
    gap: 15px;
    margin: 1.5rem 0 2rem;
}

.tech-stack li {
    font-size: 0.9rem;
    color: var(--primary);
    background: rgba(0, 242, 255, 0.1);
    padding: 5px 12px;
    border-radius: 20px;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section {
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-secondary) 100%);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 1.5rem;
    font-size: 1.1rem;
    color: #fff;
}

.info-item i {
    color: var(--primary);
}

.contact-form-container {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}

.form-group textarea {
    resize: vertical;
}

.form-group label {
    position: absolute;
    top: 12px;
    left: 0;
    color: var(--text-muted);
    pointer-events: none;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group input:not(:placeholder-shown),
.form-group textarea:not(:placeholder-shown) {
    border-bottom-color: var(--primary);
}

.form-group input:focus~label,
.form-group textarea:focus~label,
.form-group input:not(:placeholder-shown)~label,
.form-group textarea:not(:placeholder-shown)~label {
    top: -10px;
    font-size: 0.8rem;
    color: var(--primary);
}

.form-success {
    display: none;
    margin-top: 1rem;
    color: #00ff88;
    text-align: center;
    font-weight: 500;
}

.form-success.show {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: #000;
    padding: 50px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.footer-links a {
    margin: 0 15px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-socials a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    margin-left: 10px;
    transition: var(--transition);
}

.footer-socials a:hover {
    background: var(--primary);
    color: #000;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.85rem;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    h1 {
        font-size: 2.8rem;
    }

    .portfolio-item,
    .portfolio-item.reverse {
        flex-direction: column;
        gap: 30px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: var(--bg-dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-menu li {
        margin: 15px 0;
    }

    .nav-link {
        font-size: 1.2rem;
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 2rem;
    }

    .section {
        padding: 60px 0;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* ============================================
   PRIVACY POLICY PAGE
   ============================================ */
.privacy-section {
    padding-top: calc(var(--header-height) + 60px);
    min-height: 100vh;
}

.privacy-container {
    max-width: 900px;
}

.privacy-intro {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    text-align: center;
    line-height: 1.8;
}

.policy-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 20px;
    transition: var(--transition);
}

.policy-card:hover {
    border-color: rgba(0, 242, 255, 0.2);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.policy-card h3 {
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 10px;
}

.policy-card p {
    margin-bottom: 0;
    color: #ccc;
}

.privacy-footer {
    margin-top: 40px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-style: italic;
}

/* ============================================
   PORTFOLIO VISUALS UPDATE
   ============================================ */
.mockup-frame {
    background: #050507;
    /* Very dark, almost black */
    border: 1px solid #00ccff;
    /* Glowing blue border */
    box-shadow: 0 0 15px rgba(0, 204, 255, 0.2);
    transition: all 0.5s ease;
}

.mockup-frame:hover {
    box-shadow: 0 0 25px rgba(0, 204, 255, 0.4);
    border-color: #00f2ff;
}

.mockup-content {
    background-color: #0a0a0f;
    position: relative;
    overflow: hidden;
}

/* Abstract Tech Backgrounds */
.abstract-tech-1,
.abstract-tech-2 {
    background: radial-gradient(circle at center, #111118 0%, #050507 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Tech Grid Animation */
.tech-grid {
    position: absolute;
    width: 200%;
    height: 200%;
    background-image:
        linear-gradient(rgba(0, 204, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 204, 255, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    transform: perspective(500px) rotateX(60deg) translateY(-100px) translateZ(-200px);
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: perspective(500px) rotateX(60deg) translateY(0) translateZ(-200px);
    }

    100% {
        transform: perspective(500px) rotateX(60deg) translateY(40px) translateZ(-200px);
    }
}

/* Speed Lines Animation */
.speed-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(90deg,
            transparent 0,
            transparent 40px,
            rgba(0, 242, 255, 0.05) 40px,
            rgba(0, 242, 255, 0.05) 41px);
    animation: speedLines 2s linear infinite;
}

@keyframes speedLines {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-41px);
    }
}

/* Glow Effect */
.glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(0, 242, 255, 0.2) 0%, transparent 70%);
    filter: blur(20px);
    animation: pulseGlow 4s ease-in-out infinite;
}

@keyframes pulseGlow {

    0%,
    100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

/* Floating Animation */
.floating-card {
    animation: floatCard 6s ease-in-out infinite;
}

.delay-float {
    animation-delay: 3s;
}

@keyframes floatCard {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* ============================================
   LAPTOP MOCKUP & ABSTRACT VISUALS
   ============================================ */
.laptop-mockup {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    perspective: 1000px;
}

.laptop-screen {
    background: #050507;
    border-radius: 12px 12px 0 0;
    border: 2px solid #333;
    border-bottom: none;
    padding: 10px 10px 0 10px;
    position: relative;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.1);
}

.laptop-screen::after {
    content: '';
    display: block;
    padding-bottom: 62.5%;
    /* 16:10 Aspect Ratio */
}

.screen-content {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 0;
    background: #000;
    overflow: hidden;
    border-radius: 4px 4px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.laptop-base {
    height: 12px;
    background: #222;
    border-radius: 0 0 10px 10px;
    position: relative;
    width: 110%;
    left: -5%;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.laptop-base::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 15%;
    height: 4px;
    background: #333;
    border-radius: 0 0 4px 4px;
}

/* Floating Animation */
.floating {
    animation: floatLaptop 6s ease-in-out infinite;
}

.delay-float {
    animation-delay: 3s;
}

@keyframes floatLaptop {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Abstract Tech 1 - Glowing Code */
.abstract-tech-1 {
    background: radial-gradient(circle at center, #0a1020 0%, #000 100%);
}

.neon-grid {
    position: absolute;
    width: 200%;
    height: 200%;
    background-image:
        linear-gradient(rgba(0, 242, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 242, 255, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    transform: perspective(300px) rotateX(60deg) translateY(-50px) translateZ(-100px);
    animation: gridScroll 10s linear infinite;
}

@keyframes gridScroll {
    0% {
        transform: perspective(300px) rotateX(60deg) translateY(0) translateZ(-100px);
    }

    100% {
        transform: perspective(300px) rotateX(60deg) translateY(30px) translateZ(-100px);
    }
}

.glowing-code {
    font-family: 'Courier New', monospace;
    color: var(--primary);
    font-size: 0.9rem;
    text-shadow: 0 0 5px var(--primary);
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 5px;
    opacity: 0.8;
}

/* Abstract Tech 2 - Cyber Lines */
.abstract-tech-2 {
    background: #020205;
}

.cyber-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(45deg,
            transparent 0,
            transparent 20px,
            rgba(0, 242, 255, 0.05) 20px,
            rgba(0, 242, 255, 0.05) 22px);
}

.central-glow {
    width: 100px;
    height: 100px;
    background: var(--primary);
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.4;
    animation: pulseGlow 4s ease-in-out infinite;
}

@keyframes pulseGlow {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.2);
    }
}

/* ============================================
   E-COMMERCE UI DASHBOARD (LAPTOP SCREEN)
   ============================================ */
.e-commerce-ui {
    background: radial-gradient(circle at center, #111118 0%, #050507 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ui-glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 12px;
    width: 70%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.cart-icon-wrapper {
    position: relative;
    font-size: 2.5rem;
    color: var(--primary);
    filter: drop-shadow(0 0 15px rgba(0, 242, 255, 0.5));
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -10px;
    background: #ff0055;
    color: #fff;
    font-size: 0.7rem;
    font-weight: bold;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(255, 0, 85, 0.5);
}

.ui-skeleton-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ui-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    padding: 8px;
    border-radius: 6px;
}

.ui-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.ui-bar.long {
    width: 60%;
}

.ui-bar.medium {
    width: 40%;
}

.ui-bar.short {
    width: 20%;
}

.ui-checkout-btn {
    background: linear-gradient(90deg, var(--secondary) 0%, var(--primary) 100%);
    color: #fff;
    padding: 8px 25px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: default;
    transition: transform 0.3s ease;
}

.ui-checkout-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.5);
}

/* --- EXTRA BAJERY DLA USŁUG --- */
.services-hero {
    padding: 160px 0 100px;
    background: radial-gradient(circle at top right, rgba(0, 242, 255, 0.05), transparent), var(--bg-dark);
    text-align: center;
}

/* Szklane Karty Usług */
.service-detail-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 40px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-detail-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
    transform: translateY(-12px) scale(1.02);
}

/* Statystyki / Liczniki */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.stat-item {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 20px;
    border-bottom: 3px solid var(--primary);
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-main);
    display: block;
}

/* Sekcja Procesu (Step-by-Step) */
.process-step {
    position: relative;
    padding-left: 50px;
    margin-bottom: 40px;
    border-left: 2px dashed rgba(0, 242, 255, 0.3);
}

.step-number {
    position: absolute;
    left: -16px;
    top: 0;
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: var(--bg-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 0 15px var(--primary);
}

/* FAQ Upgrade */
.faq-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 15px;
    border-radius: 12px;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* 1. Globalne zabezpieczenie przed wyciekiem treści */
html,
body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* 2. Fix dla obrazków i wideo */
img,
video,
canvas {
    max-width: 100%;
    height: auto;
}

/* 3. Naprawa siatek (Grid) na mobilkach */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
        /* Bezpieczny margines od krawędzi */
        overflow: hidden;
    }

    /* Zmuszamy gridy do jednej kolumny */
    .services-grid,
    .stats-grid,
    .footer-content,
    .form-grid {
        grid-template-columns: 1fr !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
    }

    /* Fix dla sekcji Hero i dużych nagłówków */
    h1 {
        font-size: 2rem !important;
        /* Zmniejszamy, żeby nie rozpychało ekranu */
        word-wrap: break-word;
    }

    /* Usuwamy ewentualne stałe szerokości kart */
    .service-detail-card,
    .stat-item {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box;
    }
}

/* ======================================================
   FINALNY FIX RESPONSIVE - LAGFREE STUDIO 
   ====================================================== */

@media screen and (max-width: 768px) {

    /* 1. Reset globalny - blokujemy przesuwanie na boki */
    html,
    body {
        overflow-x: hidden !important;
        width: 100% !important;
        position: relative !important;
    }

    /* 2. Hero Section - KONIEC Z NAKŁADANIEM SIĘ */
    /* Usuwamy flexa i sztywne wysokości, które powodują najeżdżanie licznika */
    .services-hero,
    .hero {
        height: auto !important;
        min-height: 100vh !important;
        display: block !important;
        /* Wyłączamy flexa na mobilkach */
        padding-top: 140px !important;
        /* Odstęp od navbara */
        padding-bottom: 60px !important;
        overflow: visible !important;
    }

    /* 3. Naprawa nagłówka High-Conversion */
    .services-hero h1,
    .hero h1 {
        font-size: 1.6rem !important;
        /* Musi być mały, żeby się zmieścił */
        line-height: 1.3 !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        white-space: normal !important;
        width: 100% !important;
        margin-bottom: 30px !important;
        display: block !important;
    }

    /* 4. SEKCJA LICZNIKA - WYMUSZONA SEPARACJA */
    /* Jeśli licznik wchodzi na hero, to mu dajemy twardy margines i czyścimy floaty */
    .stats-section,
    .counter-section,
    section[id*="stats"] {
        margin-top: 50px !important;
        position: relative !important;
        display: block !important;
        clear: both !important;
        background: #0a0a0a !important;
        /* Tło, żeby nie było prześwitów */
        padding: 60px 0 !important;
        z-index: 20 !important;
    }

    /* 5. KAFELKI W THE STACK - CZYTELNOŚĆ */
    .services-grid {
        display: flex !important;
        flex-direction: column !important;
        /* Jeden pod drugim */
        gap: 30px !important;
        padding: 0 15px !important;
    }

    .service-detail-card {
        width: 100% !important;
        height: auto !important;
        padding: 30px 20px !important;
        margin: 0 !important;
    }

    /* 6. LISTA TECHNOLOGII (HTML5, CSS3 itd.) */
    /* Zmiana w pionową listę z odstępami */
    .service-detail-card p,
    .service-detail-card ul {
        text-align: left !important;
        display: block !important;
        line-height: 2 !important;
        /* Większy odstęp między liniami - to Twoje "entery" */
        white-space: pre-line !important;
    }

    /* Jeśli używasz <li> dla technologii */
    .service-detail-card li {
        display: block !important;
        margin-bottom: 15px !important;
        font-weight: 500 !important;
    }

    /* 7. Naprawa kontenerów */
    .container {
        width: 100% !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
        box-sizing: border-box !important;
    }
}

.tech-box {
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.tech-tooltip {
    visibility: hidden;
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    background: #0a0a0a;
    color: #fff;
    text-align: center;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid var(--primary);
    box-shadow: 0 10px 25px rgba(0, 242, 255, 0.2);
    font-size: 0.85rem;
    line-height: 1.4;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.3s, bottom 0.3s;
    pointer-events: none;
    /* Żeby tooltip nie blokował kliknięć */
}

/* Strzałka pod chmurką */
.tech-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -8px;
    border-width: 8px;
    border-style: solid;
    border-color: var(--primary) transparent transparent transparent;
}

/* Pokazywanie po kliknięciu (klasa dodawana przez JS) */
.tech-box.active .tech-tooltip {
    visibility: visible;
    opacity: 1;
    bottom: 120%;
}

/* Opcjonalnie: pokazywanie na hover na komputerach */
@media (min-width: 1024px) {
    .tech-box:hover .tech-tooltip {
        visibility: visible;
        opacity: 1;
        bottom: 120%;
    }
}

.tech-box {
    min-height: 220px;
    /* Rezerwuje miejsce, żeby strona nie skakała gdy ikona się wczyta */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.tech-box i {
    width: 48px;
    /* Stała szerokość ikony */
    height: 48px;
    /* Stała wysokość ikony */
    display: block;
}

@media (max-width: 768px) {

    /* Wyłączamy ukrywanie elementów przed startem AOS na telefonach */
    [data-aos] {
        opacity: 1 !important;
        transform: none !important;
        transition-duration: 0s !important;
    }
}