/* 
    Witch House Studio - Core Styles
    Extracted from index.html to improve maintenance and caching.
*/

p {
    line-height: 1.7;
}

.modal-content p {
    line-height: 1.8;
}

.grunge-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://www.transparenttextures.com/patterns/stardust.png');
    opacity: 0.1;
    pointer-events: none;
    z-index: 50
}

.bg-pattern {
    position: fixed;
    inset: 0;
    background-image: linear-gradient(to bottom, rgba(2, 8, 10, 0.8), var(--color-dark) 100%), url('https://images.unsplash.com/photo-1448375240586-882707db888b?auto=format&fit=crop&q=80&w=2000');
    background-size: cover;
    background-position: center;
    z-index: -1;
    opacity: 0.3
}

.rough-box {
    background: rgba(10, 20, 25, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    clip-path: polygon(2% 0%, 98% 1%, 100% 4%, 99% 95%, 97% 100%, 3% 98%, 0% 96%, 1% 5%);
    transition: all 0.3s ease
}

.rough-box:hover {
    background: rgba(15, 30, 35, 0.9);
    transform: translateY(-2px)
}

/* PULSE EFFECT & BUTTON ENHANCEMENT */
@keyframes btn-pulse {
    0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(220, 38, 38, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

.btn-pulse {
    animation: btn-pulse 2s infinite;
}

.btn-torn-bright,
.btn-primary,
.btn-tactical-call {
    position: relative;
    padding: 12px 36px;
    text-transform: uppercase;
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 3px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.5rem;
    border: none;
}

/* Tactical Shape for Primary */
.btn-torn-bright,
.btn-primary {
    background-color: var(--color-blood);
    color: white;
    clip-path: polygon(5% 0, 100% 0, 100% 70%, 95% 100%, 0 100%, 0 30%);
    transform: rotate(-1.5deg);
}

.btn-torn-bright:hover,
.btn-primary:hover {
    background-color: #FF081C;
    box-shadow: 0 0 20px rgba(255, 8, 28, 0.4);
    transform: scale(1.05) rotate(0deg);
}

/* Tactical Style for Secondary */
.btn-tactical-call {
    background: transparent;
    color: white;
    transform: rotate(-1.5deg);
}

.btn-tactical-call::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255,255,255,0.3);
    /* Specifičan taktički rez okvira */
    clip-path: polygon(5% 0, 100% 0, 100% 70%, 95% 100%, 0 100%, 0 30%);
    transition: 0.3s;
}

.btn-tactical-call:hover { 
    color: #fff;
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
    transform: scale(1.05) rotate(0deg);
}

.btn-tactical-call:hover::before {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1); 
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: transparent;
    backdrop-filter: blur(0px);
    border-bottom: 1px solid transparent;
    transition: all 0.4s ease-in-out;
}
.glass-nav.scrolled {
    background: rgb(7 17 21 / 10%) !important;
    backdrop-filter: blur(30px) !important;
    -webkit-backdrop-filter: blur(50px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.7) !important;
    padding-top: 2px !important;
    padding-bottom: 2px !important;
}

#search-modal {
    z-index: 2000;
    background: rgb(0 0 0 / 20%) !important;
}

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1), transform 1.5s cubic-bezier(0.16, 1, 0.3, 1)
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0)
}

/* FOCUS BLUR & SPACING */
section {
    padding-top: 25px;
    padding-bottom: 25px;
    transition: filter 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                opacity 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: filter, opacity, transform;
    content-visibility: auto;
    contain-intrinsic-size: 1px 500px;
}

@media (min-width: 768px) {
    section {
        padding-top: 8rem;
        padding-bottom: 8rem;
        transform: scale(0.98);
    }
    body.has-focused-section section:not(.section-focused) {
        filter: blur(8px);
        opacity: 0.25;
        transform: scale(0.95);
    }
    section.section-focused {
        filter: blur(0);
        opacity: 1;
        transform: scale(1.02);
        z-index: 5;
    }
}

.custom-scrollbar::-webkit-scrollbar { width: 4px; }
.custom-scrollbar::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.05); }
.custom-scrollbar::-webkit-scrollbar-thumb { background: #dc2626; border-radius: 10px; }

.acc-item {
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1)
}

.acc-item:last-child {
    border-bottom: none
}

.acc-item:hover {
    background: rgba(255, 255, 255, 0.02)
}

.acc-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s;
    opacity: 0
}

.acc-body.open {
    max-height: 500px;
    opacity: 1
}

/* Language Switcher Styles */
.lang-switch {
    width: 50px;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.lang-indicator {
    position: absolute;
    width: 20px;
    height: 20px;
    background: #dc2626;
    border-radius: 50%;
    left: 2px;
    transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.lang-switch[data-lang="RS"] .lang-indicator {
    transform: translateX(24px);
}

.lang-option {
    font-size: 9px;
    font-weight: 700;
    z-index: 10;
    user-select: none;
    transition: color 0.3s;
}

.lang-option.en {
    color: #fff;
}

.lang-option.rs {
    color: rgba(255, 255, 255, 0.5);
}

.lang-switch[data-lang="RS"] .lang-option.en {
    color: rgba(255, 255, 255, 0.5);
}

.lang-switch[data-lang="RS"] .lang-option.rs {
    color: #fff;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.custom-scrollbar::-webkit-scrollbar {
    height: 4px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(220, 38, 38, 0.2);
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(220, 38, 38, 0.5);
}

.acc-icon {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1)
}

.acc-open .acc-icon {
    transform: rotate(45deg)
}

.acc-icon-container {
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1)
}

.acc-item:hover .acc-icon-container {
    transform: rotate(90deg);
    border-color: rgba(200, 3, 1, 0.4)
}

.acc-open .acc-icon-container {
    border-color: var(--color-blood);
    background: rgba(200, 3, 1, 0.1)
}

.acc-open .question-title {
    color: #dc2626 !important
}

.tl-line {
    position: absolute;
    left: 23px;
    top: 48px;
    bottom: -48px;
    width: 2px;
    background: rgba(220, 38, 38, .15);
    z-index: 0
}

.tl-item:last-child .tl-line {
    display: none
}

/* SVG INTERACTIVE ANIMATIONS (RED & GRAY) */
@keyframes float-continuous {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

.anim-float {
    animation: float-continuous 4s ease-in-out infinite;
}

.anim-float-delay {
    animation: float-continuous 4s ease-in-out infinite 2s;
}

@keyframes wave-move {

    0%,
    100% {
        transform: translateX(0) translateY(0);
    }

    50% {
        transform: translateX(3px) translateY(-3px);
    }
}

.anim-wave {
    animation: wave-move 3s ease-in-out infinite;
}

.anim-wave-delay {
    animation: wave-move 3s ease-in-out infinite 1.5s;
}

@keyframes eq-bounce {

    0%,
    100% {
        transform: scaleY(1);
    }

    50% {
        transform: scaleY(1.5);
    }
}

.group:hover .anim-eq {
    animation: eq-bounce 0.5s ease-in-out infinite;
    transform-origin: bottom;
}

.group:hover .anim-eq-delay {
    animation: eq-bounce 0.7s ease-in-out infinite 0.2s;
    transform-origin: bottom;
}

@keyframes flash-burst {

    0%,
    100% {
        opacity: 0;
        fill: #dc2626;
    }

    50% {
        opacity: 1;
        fill: #ffffff;
        filter: drop-shadow(0 0 10px #dc2626);
    }
}

.group:hover .anim-flash {
    animation: flash-burst 1.5s infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

.group:hover .anim-pulse-ring {
    animation: pulse-ring 1.5s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
    transform-origin: center;
}

@keyframes coin-drop {
    0% {
        transform: translateY(-15px);
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    100% {
        transform: translateY(15px);
        opacity: 0;
    }
}

.group:hover .anim-coin-drop {
    animation: coin-drop 1s ease-in infinite;
}

@keyframes spin-linear {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.anim-spin-slow {
    animation: spin-linear 30s linear infinite;
}

.anim-spin-reverse {
    animation: spin-linear 20s linear infinite reverse;
}

.anim-flash {
    animation: flash-burst 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% { filter: drop-shadow(0 0 15px rgba(220, 38, 38, 0.7)); }
    50% { filter: drop-shadow(0 0 30px rgba(220, 38, 38, 1)); }
}

.anim-pulse-glow {
    animation: pulse-glow 3s ease-in-out infinite;
}

.origin-center {
    transform-origin: center;
}

.progress-container {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: none
}

@media(min-width:768px) {
    .progress-container {
        display: flex
    }
}

.progress-svg {
    width: 40px;
    height: 440px
}

.progress-path-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 4;
    stroke-linecap: round
}

.progress-path-main {
    fill: none;
    stroke: #dc2626;
    stroke-width: 4;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.1s linear
}

.progress-glow {
    stroke: #dc2626;
    stroke-width: 8;
    filter: blur(4px);
    opacity: 0.5
}

.rose-bloom,
.bud-marker {
    opacity: 0.2;
    transition: all 0.5s ease
}

.thorn-marker {
    fill: #dc2626;
    stroke: #dc2626;
    stroke-width: 1.5;
    opacity: 0.2;
    transition: all 0.5s ease
}

.rose-bloom.active,
.bud-marker.active,
.thorn-marker.active {
    opacity: 1
}

.selection\:bg-red-600::selection {
    background-color: var(--color-blood);
    color: white
}

.logo-wrapper {
    position: relative;
    display: inline-block;
}

@keyframes fill-bar {
    0% {
        transform: scaleX(0);
    }

    100% {
        transform: scaleX(1);
    }
}

.animate-bar {
    transform: scaleX(0);
    transform-origin: left;
}

.fade-up.visible .animate-bar {
    animation: fill-bar 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* PORTFOLIO FILTER HOVER REVEAL */
#portfolio-filters .extra-filter {
    opacity: 0;
    max-width: 0;
    padding-left: 0;
    padding-right: 0;
    margin-left: -0.5rem;
    border-width: 0;
    overflow: hidden;
    white-space: nowrap;
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.group\/filters:hover #portfolio-filters .extra-filter {
    opacity: 1;
    max-width: 200px;
    padding-left: 1rem;
    padding-right: 1rem;
    margin-left: 0;
    border-width: 1px;
    pointer-events: auto;
}

.filter-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.group\/filters:hover .filter-arrow {
    max-width: 0;
    margin-left: -1rem;
    opacity: 0;
    overflow: hidden;
}

#portfolio-filters button.bg-black\/50 {
    background-color: rgb(0 0 0 / 10%) !important;
}

#contact input.bg-black\/50, 
#contact select.bg-black\/50, 
#contact textarea.bg-black\/50,
#support-modal input.bg-black\/50,
#support-modal select.bg-black\/50,
#support-modal textarea.bg-black\/50 {
    background-color: rgb(0 0 0 / 31%) !important;
}

#support-modal.bg-black\/80 {
    background-color: rgb(0 0 0 / 5%) !important;
}

/* CUSTOM CURSOR */
body {
    cursor: none;
}

a,
button {
    cursor: none;
}

#cur-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--color-blood);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 12px var(--color-blood), 0 0 30px rgba(220, 38, 38, 0.4);
    transition: transform 0.08s;
}

#cur-ring {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(220, 38, 38, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, border-color 0.3s, background 0.3s;
}

#cur-ring.big {
    width: 70px;
    height: 70px;
    border-color: var(--color-blood);
    background: rgba(220, 38, 38, 0.05);
}

@media (max-width: 768px) {

    body,
    a,
    button {
        cursor: auto !important;
    }

    #cur-dot,
    #cur-ring {
        display: none;
    }
}

/* RECAPTCHA BADGE VISIBILITY */
.grecaptcha-badge {
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
}

body.show-recaptcha .grecaptcha-badge {
    visibility: visible !important;
    opacity: 1 !important;
}

.liquid-glass-logo {
    filter: url(#glass-refraction); /* Povezivanje sa SVG filterom */
    transition: filter 0.2s ease-out;
}

/* Efekat prelamanja koji reaguje na tvoju JS logiku za kursor */
.ares-core-visual {
    transition: transform 0.1s ease-out; /* Removed filter transition for snappier glitch */
    transform-origin: center;
    pointer-events: none;
}

.glass-distort {
    filter: url(#liquid-glass-filter) drop-shadow(0 0 30px rgba(220, 38, 38, 0.8)) !important;
}

@keyframes oxenfree-shake {
    0% { transform: translate(0); }
    10% { transform: translate(-4px, 2px); }
    20% { transform: translate(4px, -2px); }
    30% { transform: translate(-2px, 4px) scaleY(1.05); }
    40% { transform: translate(2px, -4px); }
    50% { transform: translate(-6px, 0); }
    60% { transform: translate(6px, 2px) scaleX(1.1); }
    70% { transform: translate(-2px, -2px); }
    80% { transform: translate(4px, 4px); }
    90% { transform: translate(-4px, -4px); }
    100% { transform: translate(0); }
}

.glitch-active {
    filter: url(#oxenfree-glitch) drop-shadow(0 0 20px rgba(220, 38, 38, 0.7)) !important;
    animation: oxenfree-shake 0.1s infinite !important; /* Faster and more aggressive */
}
