/**
 * © 2026 KR-IT.PL - Firma IT w Krakowie. Wszystkie prawa zastrzeżone.
 * Kod chroniony prawem autorskim.
 * Wariant 3 - Dark Mode with Graphic Background
 */

.glass-morphism {
    background: rgba(20, 10, 30, 0.4);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.text-gradient {
    background: linear-gradient(to right, #ffffff, #ff00ff, #00ffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease-in-out;
}
.nav-link:hover::after {
    width: 100%;
}

.mobile-nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.mobile-nav-link:hover {
    color: var(--accent-color);
}

.hero-bg {
    background: url('../files/bg-variant3.png') no-repeat center center fixed;
    background-size: cover;
}

/* Custom styles for Variant 3 based on image */
body {
    background-color: #0d021f;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(120, 0, 255, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(255, 0, 150, 0.1) 0%, transparent 40%);
}

.section-bg-v3 {
    background-image: url('../files/bg-variant3.png');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    position: relative;
}

.section-bg-v3::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(13, 2, 31, 0.85);
    z-index: 0;
}

.section-bg-v3 > div {
    position: relative;
    z-index: 1;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0d021f;
}

::-webkit-scrollbar-thumb {
    background: #2a0a4a;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

* {
    scrollbar-width: thin;
    scrollbar-color: #2a0a4a #0d021f;
}

.portfolio-container {
    overflow: hidden;
    position: relative;
}

.portfolio-slider {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.portfolio-item {
    flex: 0 0 100%;
    padding: 0 10px;
}

@media (min-width: 640px) {
    .portfolio-item {
        flex: 0 0 50%;
    }
}

@media (min-width: 1024px) {
    .portfolio-item {
        flex: 0 0 33.333%;
    }
}

@media (min-width: 1536px) {
    .portfolio-item {
        flex: 0 0 25%;
    }
}

.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(13, 2, 31, 0.9);
    backdrop-filter: blur(20px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox-overlay.active .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 30px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
}

.lightbox-img, .lightbox-video {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    border: 2px solid rgba(255, 0, 255, 0.3);
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.2);
}

.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    width: calc(100% - 40px);
    max-width: 450px;
    z-index: 2000;
    display: none;
    flex-direction: column;
    animation: slideUp 0.5s ease-out forwards;
}

@media (max-width: 640px) {
    .cookie-banner {
        bottom: 10px;
        left: 10px;
        right: 10px;
        width: calc(100% - 20px);
        padding: 1.5rem !important;
    }
}

@keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

#intro {
    background: #0d021f;
    transition: opacity 0.8s ease-in-out, visibility 0.8s;
}

#intro.hide {
    opacity: 0;
    visibility: hidden;
}

#intro-progress {
    background: linear-gradient(to right, #ff00ff, #00ffff) !important;
}

/* Global Responsive Adjustments */
@media (min-width: 2000px) {
    .max-w-7xl {
        max-width: 1600px;
    }
    html {
        font-size: 18px;
    }
}

.section-bg-v3 {
    background-image: url('../files/bg-variant3.png');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    position: relative;
}
