/* KuBros Theme Styles */

body { 
    font-family: 'Manrope', sans-serif; 
    background-color: #050505; 
    color: white; 
    overflow-x: hidden; 
}

h1, h2, h3, .font-headline { 
    font-family: 'Plus Jakarta Sans', sans-serif; 
}

.glass { 
    background: rgba(255, 255, 255, 0.03); 
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05); 
}

.brand-gradient { 
    background: linear-gradient(135deg, #1A365D 0%, #5BBA47 100%); 
}

/* 3D KOSTKY KONTEJNER */
#canvas-container {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1; pointer-events: none;
    perspective: 1500px;
}

.cube {
    position: absolute;
    transform-style: preserve-3d;
    will-change: transform;
}

.side {
    position: absolute;
    width: 100%; height: 100%;
    border: 1px solid rgba(91, 186, 71, 0.3);
    box-shadow: 0 0 15px rgba(91, 186, 71, 0.05);
}

/* Positions for sides */
.s-front  { transform: rotateY(0deg) translateZ(var(--tz)); }
.s-back   { transform: rotateY(180deg) translateZ(var(--tz)); }
.s-right  { transform: rotateY(90deg) translateZ(var(--tz)); }
.s-left   { transform: rotateY(-90deg) translateZ(var(--tz)); }
.s-top    { transform: rotateX(90deg) translateZ(var(--tz)); }
.s-bottom { transform: rotateX(-90deg) translateZ(var(--tz)); }

.text-gradient {
    background: linear-gradient(to right, #5BBA47, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* No-scrollbar utility */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Modal Typography */
#modal-body h1 {
    font-size: 2.25rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 2rem;
    color: white;
    letter-spacing: -0.025em;
    text-transform: uppercase;
}

#modal-body h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    color: #5BBA47; /* brand-green */
    letter-spacing: -0.01em;
}

#modal-body h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: white;
}

#modal-body p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    opacity: 0.8;
}

#modal-body ul, #modal-body ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

#modal-body li {
    margin-bottom: 0.5rem;
    position: relative;
    list-style-type: disc;
}

#modal-body strong, #modal-body b {
    color: white;
    font-weight: 700;
}

#modal-body section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

#modal-body section:last-child {
    border-bottom: none;
}

#modal-body .text-brand-green {
    color: #5BBA47;
}

/* Custom Scrollbar for Modal */
#modal-body::-webkit-scrollbar {
    width: 6px;
}
#modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}
#modal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}
#modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(91, 186, 71, 0.3);
}

/* Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered Delays */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

/* Cookie Bar Styles */
#cookie-bar.show {
    opacity: 1;
    transform: translateY(0);
}

#cookie-bar.hide {
    opacity: 0;
    transform: translateY(100%);
    pointer-events: none;
}

/* Portfolio & Images */
.aspect-video-square {
    aspect-ratio: 16 / 10;
}

/* Review Text Clamp fallback */
.line-clamp-6 {
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;  
    overflow: hidden;
}

/* Transitions */
.grayscale { filter: grayscale(100%); transition: filter 0.5s ease, opacity 0.5s ease; }
.grayscale-0 { filter: grayscale(0%); }

/* Portfolio Carousel */
.portfolio-container {
    position: relative;
    max-width: 80rem; /* 7xl */
    margin: 3rem auto 0;
}

.portfolio-mask {
    position: relative;
    padding: 1rem 0;
}

.portfolio-mask.is-animated {
    overflow: hidden;
}

/* Gradient Fades - Only visible on animate */
.portfolio-mask.is-animated::before,
.portfolio-mask.is-animated::after {
    content: "";
    position: absolute;
    top: 0;
    width: 10%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}

.portfolio-mask.is-animated::before {
    left: -1px;
    background: linear-gradient(to right, #050505 10%, rgba(5, 5, 5, 0) 100%);
}

.portfolio-mask.is-animated::after {
    right: -1px;
    background: linear-gradient(to left, #050505 10%, rgba(5, 5, 5, 0) 100%);
}

.portfolio-track {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    transition: all 0.5s ease;
}

.portfolio-track.is-animated {
    width: max-content;
    animation: marquee-scroll 60s linear infinite;
    justify-content: flex-start;
}

.portfolio-track:hover {
    animation-play-state: paused;
}

.portfolio-card-wrapper {
    flex: 1 1 300px;
    max-width: 420px;
}

.is-animated .portfolio-card-wrapper {
    flex: 0 0 320px;
}

@media (min-width: 1024px) {
    .is-animated .portfolio-card-wrapper {
        flex: 0 0 420px;
    }
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 0.75rem)); }
}

@media (max-width: 768px) {
    .portfolio-card-wrapper {
        flex: 0 0 300px;
    }
    .portfolio-track {
        flex-wrap: wrap;
    }
    .portfolio-track.is-animated {
        animation-duration: 40s;
        flex-wrap: nowrap;
    }
}

/* Selection and Prose */
::selection {
    background: #5BBA47;
    color: #000;
}

.prose-emerald {
    --tw-prose-links: #5BBA47;
    --tw-prose-bullets: #5BBA47;
}


