/* === ULTIMATE PREMIUM AUTOMOTIVE THEME === */
:root {
    /* Boje - Ekstremno moćna paleta */
    --bg-dark: #030407; /* Skoro čista crna za luksuzan osjećaj */
    --bg-card: #0A0D14;
    --primary-blue: #1A56DB; /* Električno plava */
    --accent-yellow: #FFC000; /* Zlatno žuta */
    --text-white: #FFFFFF;
    --text-gray: #8A96AA;
    
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* Custom Cursor Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
}

body {
    font-family: var(--font-body);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}


/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loader-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

.l-sub { font-family: var(--font-heading); color: var(--text-gray); letter-spacing: 5px; font-size: 1rem; }
.l-main { font-family: var(--font-heading); color: var(--primary-blue); font-size: 3rem; font-weight: 900; }

.loader-line {
    width: 200px;
    height: 2px;
    background: rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
}

.loader-line::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 50%; height: 100%;
    background: var(--accent-yellow);
    animation: loading 1.5s infinite ease-in-out;
}

@keyframes loading {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
}

/* Floating WhatsApp */
.floating-wa {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: #FFF;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    z-index: 999;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.4);
    animation: pulse 2s infinite;
    transition: transform 0.3s ease;
}

.floating-wa:hover {
    transform: scale(1.1);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}


.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px;
}

/* === TYPOGRAPHY & BUTTONS === */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    text-transform: uppercase;
}

a {
    text-decoration: none;
}

/* Moćno dugme s glow efektom */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--accent-yellow) 0%, #D49D00 100%);
    color: #000;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.1rem;
    padding: 18px 40px;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    box-shadow: 0 10px 30px rgba(255, 192, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 192, 0, 0.5);
    background: linear-gradient(135deg, #FFF 0%, var(--accent-yellow) 100%);
}

.btn-primary i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.btn-primary:hover i {
    transform: translateX(5px) scale(1.1);
}

.btn-large {
    font-size: 1.2rem;
    padding: 22px 50px;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 2px solid rgba(255,255,255,0.2);
    color: var(--text-white);
    padding: 16px 30px;
    font-family: var(--font-heading);
    font-weight: 700;
    border-radius: 4px;
    transition: all 0.3s ease;
    background: transparent;
}

.btn-outline:hover {
    border-color: var(--primary-blue);
    background: rgba(26, 86, 219, 0.1);
    box-shadow: 0 0 20px rgba(26, 86, 219, 0.4);
}

/* WhatsApp solid button */
.btn-whatsapp, .btn-facebook, .btn-tiktok {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #FFF;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.1rem;
    padding: 18px 40px;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
}

.btn-whatsapp {
    background: #25D366;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.2);
}
.btn-whatsapp:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.5);
    background: #1EBE5D;
}

.btn-facebook {
    background: #1877F2;
    box-shadow: 0 10px 30px rgba(24, 119, 242, 0.2);
}
.btn-facebook:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(24, 119, 242, 0.5);
    background: #166FE5;
}

.btn-tiktok {
    background: #000000;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.btn-tiktok:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.2);
    border-color: #00f2fe;
}

.btn-whatsapp i, .btn-facebook i, .btn-tiktok i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}
.btn-whatsapp:hover i, .btn-facebook:hover i, .btn-tiktok:hover i {
    transform: translateX(5px) scale(1.1);
}

/* === NAVBAR (Glassmorphism) === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 25px 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(3, 4, 7, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo-sub {
    font-size: 0.85rem;
    letter-spacing: 5px;
    color: var(--text-gray);
    font-family: var(--font-heading);
    font-weight: 700;
}

.logo-main {
    font-size: 2.5rem;
    line-height: 0.9;
    color: var(--text-white);
    font-family: var(--font-heading);
    font-weight: 900;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    transition: color 0.3s ease;
}

.logo-main:hover {
    color: var(--primary-blue);
    text-shadow: 0 0 30px rgba(26, 86, 219, 0.6);
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-link {
    color: var(--text-gray);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease, transform 0.3s ease;
    text-transform: uppercase;
}

.nav-link:hover {
    color: var(--text-white);
    transform: translateY(-2px);
}

.btn-glow {
    color: var(--text-white);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background: rgba(26, 86, 219, 0.15);
    border: 1px solid rgba(26, 86, 219, 0.5);
    border-radius: 40px;
    box-shadow: 0 0 20px rgba(26, 86, 219, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-glow:hover {
    background: var(--primary-blue);
    box-shadow: 0 0 30px rgba(26, 86, 219, 0.8);
    transform: scale(1.05);
}

/* === HERO SECTION (Cinematic) === */
.hero {
    position: relative;
    height: 100vh;
    min-height: 650px; /* Smanjeno kako bi sve stalo na ekran */
    display: flex;
    align-items: center;
    padding-top: 100px; /* Smanjeno, ali dovoljno za navbar */
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
    transform: scale(1.02);
    /* Animacija disanja za sliku */
    animation: breathe 15s infinite alternate ease-in-out;
}

@keyframes breathe {
    0% { transform: scale(1.02); }
    100% { transform: scale(1.08); }
}

/* Tamni i plavi gradient overlay za taj 'Luxury Scrapyard' osjećaj */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(3,4,7,0.95) 0%, rgba(3,4,7,0.4) 50%, rgba(26,86,219,0.1) 100%);
    z-index: -1;
}

.hero-content {
    width: 100%;
    position: relative;
    z-index: 10;
}

.hero-text-box {
    max-width: 850px;
    transform-style: preserve-3d; /* Za tilt efekt */
}

.badge {
    display: inline-block;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    letter-spacing: 3px;
    font-weight: 700;
    color: var(--accent-yellow);
    margin-bottom: 15px;
    backdrop-filter: blur(10px);
    transform: translateZ(20px);
    box-shadow: 0 0 20px rgba(255, 192, 0, 0.2);
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.05;
    margin-bottom: 15px;
    letter-spacing: -2px;
    transform: translateZ(40px);
    text-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.text-gradient {
    background: linear-gradient(to right, #FFF 0%, #A0ABC0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.25rem;
    color: #CBD5E1;
    max-width: 650px;
    margin-bottom: 30px;
    font-weight: 300;
    transform: translateZ(30px);
    line-height: 1.6;
}

.supported-brands {
    margin-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    transform: translateZ(10px);
}

.supported-brands p {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--text-gray);
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.brand-icons {
    display: flex;
    gap: 40px;
}

.brand-icons img {
    height: 40px;
    opacity: 0.5;
    filter: brightness(0) invert(1);
    transition: all 0.4s ease;
}

.brand-icons img:hover {
    opacity: 1;
    transform: translateY(-8px) scale(1.1);
    filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(255,255,255,0.5));
}

/* Uklonjena kosa linija po zahtjevu */

/* === BENTO GRID (Usluge) === */
.services-bento {
    padding: 150px 0;
    position: relative;
}

.section-title {
    margin-bottom: 80px;
    text-align: left;
}

.section-title h2 {
    font-size: 3.5rem;
    color: var(--text-white);
    margin-bottom: 15px;
    letter-spacing: -2px;
}

.section-title p {
    color: var(--text-gray);
    font-size: 1.3rem;
    max-width: 600px;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 300px);
    gap: 30px;
}

.bento-card {
    border-radius: 24px;
    padding: 50px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transform-style: preserve-3d;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 25px;
    color: var(--primary-blue);
    transform: translateZ(30px);
}

.text-yellow { color: var(--accent-yellow); }

.bento-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    z-index: 2;
    position: relative;
    transform: translateZ(20px);
}

.bento-card p {
    color: var(--text-gray);
    z-index: 2;
    position: relative;
    transform: translateZ(10px);
    font-size: 1.1rem;
}

/* Specifične kartice */
.card-large {
    grid-column: span 2;
    grid-row: span 2;
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(255,255,255,0.03);
}

.gradient-border::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-yellow));
    z-index: 10;
}

.card-bg-icon {
    position: absolute;
    bottom: -30px;
    right: -30px;
    font-size: 20rem;
    color: rgba(255,255,255,0.015);
    z-index: 1;
    transform: rotate(-15deg) translateZ(0px);
}

.card-small {
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(255,255,255,0.03);
}

.card-blue {
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 15px 35px rgba(10, 54, 143, 0.3);
}.card-medium.blue-card p,
.card-medium.blue-card .card-icon {
    color: #FFF;
}

.card-wide {
    grid-column: span 3;
    grid-row: span 1;
    height: auto;
    padding: 60px 80px;
    /* Slika motora */
    background-size: cover;
    background-position: center;
}

.card-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, rgba(3,4,7,0.95) 0%, rgba(3,4,7,0.7) 100%);
    z-index: 1;
}

.card-overlay-blue {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(10,54,143,0.85) 0%, rgba(4,27,77,0.95) 100%);
    z-index: 1;
}

.row-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2;
    position: relative;
    width: 100%;
}

.row-content .text-part { max-width: 50%; transform: translateZ(20px); }
.row-content h3 { font-size: 2.2rem; margin-bottom: 15px; }
.row-content .action-part { transform: translateZ(30px); }

/* === PREMIUM GALERIJA === */
.premium-gallery {
    padding: 80px 0 150px;
}

.text-center {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gallery-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 500px; /* Povećano za okomite slike s mobitela */
    gap: 20px;
    margin-top: 60px;
}

.g-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}

.g-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center; /* Zadržava fokus u sredini slike */
    transition: transform 1s cubic-bezier(0.19, 1, 0.22, 1);
    filter: brightness(0.9) contrast(1.1); /* Malo bolji kontrast za prave fotografije */
}

.g-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(3, 4, 7, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.5s ease;
    backdrop-filter: blur(5px);
}

.g-overlay span {
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: 4px;
    color: var(--text-white);
    font-size: 1.2rem;
    padding: 12px 30px;
    border: 2px solid var(--accent-yellow);
    transform: translateY(30px);
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.g-item:hover img { 
    transform: scale(1.1); 
    filter: brightness(1) grayscale(0);
}
.g-item:hover .g-overlay { opacity: 1; }
.g-item:hover .g-overlay span { 
    transform: translateY(0); 
    background: var(--accent-yellow);
    color: #000;
}

.g-tall { grid-row: span 2; }
.g-wide { grid-column: span 2; }

/* === PREMIUM FOOTER === */
.premium-footer {
    background: #010203;
    padding-top: 100px;
}

.footer-cta {
    background: url('hero-bg.png') center/115% no-repeat;
    position: relative;
    border-radius: 30px;
    padding: 80px;
    text-align: center;
    margin-bottom: 100px;
    overflow: hidden;
    border: none;
}

.footer-cta::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(26,86,219,0.9) 0%, rgba(3,4,7,0.95) 100%);
    z-index: 1;
}

.footer-cta h2, .footer-cta p, .footer-cta div {
    position: relative;
    z-index: 2;
}

.footer-cta h2 { font-size: 3.5rem; margin-bottom: 20px; }
.footer-cta p { color: #E2E8F0; font-size: 1.3rem; margin-bottom: 40px; }

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 80px;
    margin-bottom: 80px;
}

.f-brand .logo-main.text-white { color: #FFF; text-shadow: none; font-size: 3rem; }
.f-desc { color: var(--text-gray); margin-top: 25px; max-width: 450px; font-size: 1.1rem; }

.f-contact h4 {
    font-size: 1.4rem;
    margin-bottom: 30px;
    color: var(--text-white);
    letter-spacing: 2px;
}

.f-contact ul { list-style: none; }
.f-contact li {
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--text-gray);
    margin-bottom: 20px;
    font-size: 1.1rem;
}
.f-contact i { 
    color: var(--accent-yellow); 
    font-size: 1.5rem; 
    width: 30px;
    text-align: center;
}

.f-bottom {
    text-align: center;
    padding: 35px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: #4A5568;
    font-weight: 500;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 1024px) {
    .cursor-dot, .cursor-outline { display: none; } /* Disable custom cursor on smaller screens */
    * { cursor: auto !important; }
    
    .hero-title { font-size: 4rem; }
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
    .card-large { grid-column: span 2; grid-row: span 1; }
    .card-wide { grid-column: span 2; }
    .row-content { flex-direction: column; text-align: left; gap: 30px; align-items: flex-start; }
    .row-content .text-part { max-width: 100%; }
    .gallery-wrapper { grid-template-columns: repeat(2, 1fr); }
    .g-wide { grid-column: span 1; }
}

@media (max-width: 768px) {
    .nav-links, .btn-glow { display: none; }
    .hero-title { font-size: 3rem; }
    .badge { font-size: 0.8rem; }
    .bento-grid { grid-template-columns: 1fr; }
    .card-large, .card-wide { grid-column: span 1; }
    .gallery-wrapper { grid-template-columns: 1fr; }
    .g-tall { grid-row: span 1; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-cta { padding: 40px 20px; }
    .footer-cta h2 { font-size: 2.2rem; }
    .btn-large { padding: 15px 30px; font-size: 1rem; width: 100%; justify-content: center; }
}

/* === GALERIJA === */
.gallery {
    padding: 100px 10%;
    background-color: var(--bg-dark);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}

.gallery-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(3, 4, 7, 0.85);
    z-index: 1;
}

.gallery .section-title {
    position: relative;
    z-index: 2;
    margin-bottom: 150px; /* Veliki razmak kako bi watermark stao ispod naslova */
}

.watermark-text {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translate(-50%, 10px); /* Pozicionirano točno ispod p taga */
    font-size: 7rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.04);
    white-space: nowrap;
    z-index: 0;
    pointer-events: none;
    letter-spacing: 5px;
}

.gallery-wrapper {
    position: relative;
    z-index: 2;
}

.card-bg-img {
    position: absolute;
    top: -8%;
    left: -8%;
    width: 116%;
    height: 116%;
    background-size: cover;
    background-position: center;
    z-index: 0;
}
