:root {
    --black: #0a0a0a;
    --white: #ffffff;
    --whitesmoke: #f5f5f5;
    --transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
}

/* Gasimo obični kursor */

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--whitesmoke);
    color: var(--black);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* CUSTOM KURSOR */
#cursor {
    width: 15px;
    height: 15px;
    border: 1px solid var(--black);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.2s ease;
    transform: translate(-50%, -50%);
}

/* NAVIGACIJA */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 5%;
    background-color: var(--whitesmoke);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.logo a {
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 3px;
    text-decoration: none;
    color: var(--black);
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 35px;
}

.nav-links a {
    text-decoration: none;
    color: var(--black);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.nav-links a:hover {
    opacity: 1 !important;
}

.nav-links:hover a {
    opacity: 0.4;
}


/* HERO */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.badge {
    font-size: 9px;
    letter-spacing: 3px;
    text-transform: uppercase;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 6px 15px;
    border-radius: 30px;
    margin-bottom: 30px;
    display: inline-block;
}

.main-title {
    font-size: clamp(3rem, 9vw, 5.5rem);
    font-weight: 100;
    line-height: 1.1;
    margin-bottom: 30px;
    transition: 0.15s ease-out;
}

.accent {
    font-weight: 600;
    font-style: italic;
}

.hero-subtitle {
    max-width: 550px;
    margin: 0 auto 45px;
    color: #555;
    font-weight: 300;
    font-size: 1.1rem;
}

/* PORTFOLIO LAYOUT */
.portfolio-section {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    margin-bottom: 150px;
    align-items: center;
}

.portfolio-section.reverse {
    grid-template-columns: 0.8fr 1.2fr;
}

/* SLIKA */
.portfolio-image {
    position: relative;
    height: 550px;
    overflow: hidden;
    background-color: #eee;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-section:hover .portfolio-image img {
    transform: scale(1.08);
}

/* BROJ PROJEKTA */
.project-number {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 80px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.3);
    z-index: 1;
    line-height: 1;
}

/* TEKST PROJEKTA */
.project-tag {
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 15px;
}

.portfolio-text h2 {
    font-size: 2.5rem;
    font-weight: 200;
    margin-bottom: 25px;
    letter-spacing: -1px;
}

.project-description {
    color: #666;
    line-height: 1.8;
    margin-bottom: 35px;
    font-size: 1rem;
}

.view-link {
    text-decoration: none;
    color: var(--black);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    position: relative;
    padding-bottom: 5px;
}

.view-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--black);
    transition: width 0.4s ease;
}

.view-link:hover::after {
    width: 100%;
}

/* SHOWROOM GRID - MINIMAL */
.showroom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 50px;
}

.showroom-card {
    background: #fff;
    padding: 50px;
    border-radius: 2px;
    /* Skoro oštri rubovi za moderniji izgled */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 380px;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.showroom-card.wide {
    grid-column: span 2;
    position: relative;
}

.showroom-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.02);
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.num {
    font-size: 12px;
    font-weight: 600;
    color: #ccc;
}

.tag {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #999;
}

.card-body h3 {
    font-size: 2.2rem;
    font-weight: 200;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.card-body p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.8;
}

.mini-stat {
    margin-top: 40px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #aaa;
}

.showroom-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: 1s ease;
}

.showroom-card.wide:hover .showroom-img {
    filter: grayscale(0%);
}


.img-overlay {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background: #fff;
    padding: 10px 20px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* RESPONSIVE */
@media (max-width: 800px) {
    .showroom-grid {
        grid-template-columns: 1fr;
    }

    .showroom-card.wide {
        grid-column: span 1;
    }
}

/* RESPONSIVE ZA MOBITEL */
@media (max-width: 768px) {
    .showroom-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }

    .showroom-card.tall,
    .showroom-card.wide {
        grid-row: auto;
        grid-column: auto;
        height: 300px;
    }
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .showroom-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }

    .showroom-item.tall,
    .showroom-item.wide {
        grid-row: auto;
        grid-column: auto;
        height: 350px;
    }
}

/* RESPONSIVE */
@media (max-width: 1000px) {

    .portfolio-section,
    .portfolio-section.reverse {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 100px;
    }

    .portfolio-image {
        height: 400px;
    }
}

/* GUMBI */
.btn-primary,
.btn-secondary {
    padding: 20px 40px;
    text-decoration: none;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: var(--transition);
}

.btn-primary {
    background: var(--black);
    color: white;
}

.btn-secondary {
    border: 1px solid var(--black);
    color: var(--black);
}

.btn-primary:hover {
    letter-spacing: 4px;
}

/* SERVICES */
.container {
    padding: 120px 10%;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    padding: 50px;
    background: var(--white);
    transition: var(--transition);
}

.service-card h3 {
    color: #ccc;
    transition: 0.5s;
}

.reveal.active .service-card h3 {
    color: var(--black);
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.05);
}

/* PROCESS STEP */
.process-step {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    align-items: flex-start;
}

.process-step span {
    font-size: 12px;
    font-weight: 600;
    color: #ccc;
    margin-top: 5px;
}

.process-step h4 {
    font-weight: 400;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

/* ANIMACIJE */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: var(--transition);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    animation: fadeInIntro 1.5s forwards;
}

@keyframes fadeInIntro {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* FOOTER */
footer {
    padding: 100px 5% 50px;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-logo {
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-size: 12px;
    margin-bottom: 20px;
    display: block;
}

.copyright {
    font-size: 9px;
    color: #aaa;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    * {
        cursor: auto;
    }

    #cursor {
        display: none;
    }

    .nav-links {
        display: none;
    }

    .main-title {
        font-size: 3rem;
    }
}

/* --- SHOWROOM KARTICE --- */

.showroom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 50px;
}

.showroom-card {
    background: #fff;
    padding: 50px;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
    /* Koristi tvoj transition od 0.6s */
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

/* Wide kartica za sliku */
.showroom-card.wide {
    grid-column: span 2;
    padding: 0;
    min-height: 450px;
}

/* Zajednički elementi unutar kartica */
.card-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.num {
    font-size: 12px;
    font-weight: 600;
    color: #ccc;
    transition: var(--transition);
}

.tag {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #999;
}

.card-body h3 {
    font-size: 2.2rem;
    font-weight: 200;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.card-body p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.8;
    transition: var(--transition);
}

.mini-stat {
    margin-top: 40px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #aaa;
}

/* --- SPECIFIČNI HOVERI --- */

/* 1. BEPO KARTICA (Dark Mode Effect) */
.bepo-card:hover {
    background: var(--black) !important;
    /* Postaje crna */
    color: #fff !important;
    border-color: var(--black);
}

.bepo-card:hover p,
.bepo-card:hover .tag,
.bepo-card:hover .num {
    color: #555 !important;
    /* Tekstovi lagano izblijede da naslov iskoči */
}

/* 2. BRUNO KARTICA (Design Depth Effect) */
.bruno-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.08);
    border-color: var(--black);
}

.specimen {
    position: absolute;
    bottom: -30px;
    right: -10px;
    font-size: 12rem;
    font-weight: 700;
    opacity: 0.03;
    transition: var(--transition);
    pointer-events: none;
}

.bruno-card:hover .specimen {
    opacity: 0.1;
    /* Aa se jače vidi */
    transform: scale(1.1) rotate(-5deg);
}

/* 3. SLIKA HOVER */
.showroom-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.showroom-card.wide:hover .showroom-img {
    filter: grayscale(0%);
    transform: scale(1.03);
}


/* Mobile Adjustments */
@media (max-width: 800px) {
    .showroom-grid {
        grid-template-columns: 1fr;
    }

    .showroom-card.wide {
        grid-column: span 1;
    }
}

/* CONTACT SECTION STYLES */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 100px;
    margin-top: 50px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.input-group label {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #aaa;
}

.input-group input,
.input-group textarea {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: var(--black);
    outline: none;
    transition: var(--transition);
}

.input-group input:focus,
.input-group textarea:focus {
    border-bottom: 1px solid var(--black);
}

.send-btn {
    align-self: flex-start;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--black);
    padding: 10px 0;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: var(--transition);
    margin-top: 20px;
}

.send-btn:hover {
    padding-left: 15px;
    background: var(--black);
    color: var(--white);
    padding-right: 15px;
}

/* INFO STRANA */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding-top: 10px;
}

.info-item span {
    display: block;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #aaa;
    margin-bottom: 10px;
}

.info-item p {
    font-size: 1.2rem;
    font-weight: 200;
}

/* RESPONSIVE */
@media (max-width: 800px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .input-row {
        grid-template-columns: 1fr;
    }
}

.reveal-text {
    display: block;
    overflow: hidden;
    line-height: 1.2;
}

.reveal-text span {
    display: block;
    transform: translateY(110%);
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Aktiviranje teksta kad sekcija uđe u vidno polje */
.active .reveal-text span,
header .reveal-text span {
    transform: translateY(0);
}

/* Staggered delay za service kartice - da se otvaraju jedna za drugom */
.services-grid .service-card:nth-child(1) {
    transition-delay: 0.1s;
}

.services-grid .service-card:nth-child(2) {
    transition-delay: 0.2s;
}

.services-grid .service-card:nth-child(3) {
    transition-delay: 0.3s;
}

/* Staggered delay za hero elemente */
.hero .badge {
    animation-delay: 0.2s;
}

.hero .hero-subtitle {
    animation-delay: 0.4s;
}

.hero .hero-btns {
    animation-delay: 0.6s;
}

/* Poboljšanje kursora na hoverima */
#cursor {
    background: transparent;
    transition: width 0.3s, height 0.3s, transform 0.3s, background 0.3s;
}

/* Footer linkovi sitni popravak */
.footer-link {
    text-decoration: none;
    color: var(--black);
    font-size: 12px;
    letter-spacing: 1px;
    transition: opacity 0.3s;
}

.footer-link:hover {
    opacity: 0.6;
}

/* Isključi parallax na mobitelu da ne trza */
@media (max-width: 768px) {
    .main-title {
        transform: none !important;
    }
}

@media (max-width: 768px) {

    /* 1. Općenito & Kursor */
    * {
        cursor: auto !important;
    }

    #cursor {
        display: none !important;
    }

    .container {
        padding: 80px 6%;
        /* Smanjen padding na mobitelu */
    }

    /* 2. Navigacija & Hamburger */
    nav {
        padding: 20px 6%;
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 6px;
        z-index: 1001;
    }

    .menu-toggle span {
        display: block;
        width: 25px;
        height: 1px;
        background: var(--black);
        transition: 0.3s;
    }

    /* Animacija hamburgera u X kad je otvoren */
    .menu-toggle.open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .menu-toggle.open span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .nav-links {
        display: flex;
        position: fixed;
        top: 0;
        right: -100%;
        /* Sakriveno */
        width: 100%;
        height: 100vh;
        background: var(--whitesmoke);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 20px 0;
    }

    .nav-links a {
        font-size: 18px;
        /* Veći linkovi za lakši dodir */
    }

    /* 3. Hero Sekcija */
    .main-title {
        font-size: 2.8rem !important;
        /* clamp zamjenjujemo fiksnom veličinom */
        margin-bottom: 20px;
    }

    .hero-subtitle {
        font-size: 1rem;
        padding: 0 5%;
    }

    .hero-btns {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
        width: 100%;
    }

    .btn-primary,
    .btn-secondary {
        width: 90%;
        text-align: center;
        padding: 18px;
    }

    /* 4. Portfolio Sekcija */
    .portfolio-section,
    .portfolio-section.reverse {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 80px;
    }

    .portfolio-image {
        height: 350px;
    }

    .portfolio-text h2 {
        font-size: 1.8rem;
    }

    /* 5. Showroom & Services */
    .showroom-card {
        padding: 30px;
        min-height: auto;
    }

    .card-body h3 {
        font-size: 1.6rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    /* 6. Kontakt Forma */
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .input-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .info-item p {
        font-size: 1rem;
    }

    /* 7. Proces & Footer */
    .process-step {
        gap: 20px;
    }

    footer {
        padding: 60px 6% 30px;
    }
}

/* Fix za jako male mobitele (iPhone SE i slično) */
@media (max-width: 380px) {
    .main-title {
        font-size: 2.2rem !important;
    }
}
.about-page-main {
    margin-top: 100px;
    padding-bottom: 80px;
}

.about-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.main-title {
    font-size: 3.5rem;
    line-height: 1.1;
}

.lead-text {
    color: #555;
    line-height: 1.8;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.team-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 60px;
}

.team-member h4 {
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.team-member .role {
    font-size: 10px;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.team-member .description {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

/* Pristup sekcija */
.approach-section {
    background-color: #fff;
    padding: 80px 0;
}

.approach-content {
    max-width: 800px;
}

.approach-content h2 {
    font-weight: 200;
    font-size: 2rem;
    margin-bottom: 30px;
}

.approach-content p {
    color: #666;
    line-height: 1.8;
}

/* Footer stilizacija */
.footer-top {
    margin-bottom: 40px;
}

.footer-location {
    font-size: 10px;
    color: #888;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 10px;
}

.footer-contact {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.footer-contact a {
    text-decoration: none;
    color: #000; /* ili var(--black) */
    font-size: 12px;
    letter-spacing: 1px;
}

.copyright {
    font-size: 9px;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- RESPONZIVNOST (Media Queries) --- */

@media (max-width: 1024px) {
    .about-hero {
        gap: 40px;
    }
    .main-title {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .about-hero {
        grid-template-columns: 1fr; /* Hero ide u jedan stupac */
    }

    .hero-text-box {
        padding-top: 0;
    }

    .team-grid {
        grid-template-columns: 1fr; /* Članovi tima jedan ispod drugog */
        gap: 30px;
    }

    .footer-contact {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .about-page-main {
        margin-top: 60px;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2.2rem;
    }
    
    .approach-content h2 {
        font-size: 1.6rem;
    }
}
