:root {
    --primary-red: #da251d; /* Brand color */
    --dark-black: #1a1a1a;
    --light-grey: #f4f4f4;
    --white: #ffffff;
    --transition-speed: 0.6s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    overflow: hidden; /* Prevent scrolling for the full split screen */
    background-color: var(--dark-black);
    color: var(--white);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-red);
}

/* Central Brand Info (White Circle) */
.center-brand {
    position: absolute;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    text-align: center;
    background: #f2f2f2; /* Malo tamnija bijela za bolji 3D efekt */
    width: 420px;
    height: 420px;
    border-radius: 50%;
    /* 3D Inset shadow (utisnuti efekt) + blagi outer shadow */
    box-shadow: 
        inset 0 0 50px rgba(0, 0, 0, 0.5),
        inset 15px 15px 30px rgba(0, 0, 0, 0.3),
        inset -15px -15px 30px rgba(255, 255, 255, 1),
        0 20px 50px rgba(0, 0, 0, 0.8);
    pointer-events: auto;
    transition: all var(--transition-speed) cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    /* overflow: hidden; Uklonjeno da se vidi zračenje */
}

.center-brand::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0);
    opacity: 0;
    pointer-events: none;
    z-index: -1;
}

body.split-hovered .center-brand::after {
    animation: pulse-radiate 1.8s infinite ease-out;
}

@keyframes pulse-radiate {
    0% {
        width: 100%;
        height: 100%;
        opacity: 0.8;
        border-width: 6px;
        border-color: rgba(255, 255, 255, 0.9);
    }
    100% {
        width: 250%;
        height: 250%;
        opacity: 0;
        border-width: 1px;
        border-color: rgba(255, 255, 255, 0);
    }
}

body.split-hovered .center-brand {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    pointer-events: none; /* Let hover pass through when it's just a logo */
}

/* Info Circle Content */
.info-circle-content {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--dark-black);
    transition: opacity 0.4s ease;
    padding: 2rem 2.5rem;
    width: 100%;
}

body.split-hovered .info-circle-content {
    opacity: 0;
    pointer-events: none;
}

.logo-content {
    position: absolute;
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.split-hovered .logo-content {
    opacity: 1;
    transition-delay: 0.1s;
}

.logo-content img {
    height: 80px;
    width: auto;
    object-fit: contain;
}

.brand-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.brand-title span {
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--primary-red);
    margin-top: 10px;
}

.brand-subtitle {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 5px;
}

.company-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
    margin-top: 0.8rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: 1.5rem;
    width: 100%;
}

.info-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    font-size: 0.95rem;
    color: #444;
}

.info-item i {
    color: var(--primary-red);
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

/* Split Container */
.split-container {
    display: flex;
    width: 100vw;
    height: 100vh;
}

.split-side {
    position: relative;
    width: 50%;
    height: 100%;
    overflow: hidden;
    text-decoration: none;
    color: var(--white);
    transition: width var(--transition-speed) cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 8vh;
}

/* Background Images */
.left-side {
    background: url('Images/instalacije_bg.png') center/cover no-repeat;
}

.right-side {
    background: url('Images/stikanje_bg.png') center/cover no-repeat;
}

/* Dark Overlays */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    transition: background var(--transition-speed) ease;
    z-index: 1;
}

.split-side:hover .overlay {
    background: rgba(0, 0, 0, 0.35);
}

/* Content Styling */
.content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 2rem;
    transform: translateY(40px);
    opacity: 0.85;
    transition: transform var(--transition-speed) cubic-bezier(0.25, 0.8, 0.25, 1), opacity var(--transition-speed) ease;
}

.split-side:hover .content {
    transform: translateY(0);
    opacity: 1;
}

.content .icon {
    font-size: 5rem;
    margin-bottom: 1.8rem;
    color: var(--white);
    text-shadow: 0 10px 20px rgba(0,0,0,0.6);
    transition: transform 0.4s ease;
}

.split-side:hover .icon {
    transform: scale(1.15);
    color: var(--primary-red);
}

.content h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 5px 15px rgba(0,0,0,0.6);
    min-height: 2.4em; /* Ensures 2 lines of space */
    display: flex;
    align-items: center;
    justify-content: center;
}

.content p {
    font-size: 1.3rem;
    font-weight: 300;
    margin-bottom: 3rem;
    text-shadow: 0 3px 8px rgba(0,0,0,0.6);
    color: #f0f0f0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 2px solid var(--white);
    border-radius: 50px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    background: rgba(255,255,255,0.05);
}

.btn i {
    margin-left: 12px;
    transition: transform 0.3s ease;
}

.btn:hover i {
    transform: translateX(8px);
}

.left-side .btn:hover {
    background: var(--white);
    color: var(--dark-black);
    border-color: var(--white);
}

.right-side .btn {
    border-color: var(--primary-red);
    background: rgba(218, 37, 29, 0.1);
}

.right-side .btn:hover {
    background: var(--primary-red);
    color: var(--white);
    border-color: var(--primary-red);
    box-shadow: 0 10px 20px rgba(218, 37, 29, 0.4);
}

/* Hover Width Adjustments via Script Class */
.hover-left .left-side { width: 65%; }
.hover-left .right-side { width: 35%; }

.hover-right .right-side { width: 65%; }
.hover-right .left-side { width: 35%; }

/* Mobile Responsiveness */
@media screen and (max-width: 900px) {
    .split-container {
        flex-direction: column;
        height: 100dvh; /* Dinamička visina sprječava problem s adresnom trakom preglednika */
    }
    .split-side {
        width: 100% !important;
        height: 50%;
        padding-bottom: 0 !important; /* Uklanjamo desktop padding */
        align-items: center; /* Sadržaj na sredinu panela */
    }
    
    .left-side .content {
        transform: translateY(-15px); /* Sasvim blago podignuto od kruga */
        padding: 0 1rem;
    }
    
    .right-side .content {
        transform: translateY(15px); /* Sasvim blago spušteno od kruga */
        padding: 0 1rem;
    }
    
    /* Kompaktniji središnji krug */
    .center-brand {
        top: 50%;
        left: 50%;
        width: 210px;
        height: 210px;
        transform: translate(-50%, -50%);
    }
    
    body.split-hovered .center-brand {
        width: 90px;
        height: 90px;
        top: 50%;
        transform: translate(-50%, -50%);
    }

    /* Najmanji mogući čitljivi fontovi u krugu */
    .info-circle-content {
        padding: 0.1rem;
    }
    .brand-title {
        font-size: 1.25rem;
    }
    .brand-title span {
        font-size: 0.65rem;
        margin-top: 2px;
    }
    .brand-subtitle {
        font-size: 0.55rem;
        margin-bottom: 0.1rem;
        letter-spacing: 2px;
    }
    .company-info {
        padding-top: 0.3rem;
        margin-top: 0.1rem;
        gap: 0.3rem;
        max-width: 190px;
    }
    .info-item {
        font-size: 0.6rem;
        gap: 0.3rem;
    }
    .info-item i {
        font-size: 0.7rem;
        width: 12px;
    }
    .logo-content img {
        height: 35px;
    }
    
    /* Veličine usluga */
    .content h2 {
        font-size: 1.7rem;
        min-height: auto;
        margin-bottom: 0.2rem;
    }
    .content .icon {
        font-size: 1.6rem;
        margin-bottom: 0.2rem;
    }
    .content p {
        font-size: 0.75rem;
        margin-bottom: 0.6rem;
    }
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.7rem;
    }
}

