/* =========================================
   ART241 - ARCHITECTURAL EDITORIAL (MINIMAL WHITE & FLUID GRADIENTS)
   ========================================= */

:root {
    /* Boje */
    --color-rust: #81342f;    
    --color-slate: #2f3638;   
    --color-white: #ffffff;   
    
    /* Fontovi */
    --font-heading: 'Montserrat', sans-serif; 
    --font-body: 'Inter', sans-serif; 
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-white);
    font-family: var(--font-body);
    color: var(--color-slate);
    -webkit-font-smoothing: antialiased;
}

/* --- CUSTOM SELECTION --- */
::selection {
    background-color: var(--color-rust);
    color: var(--color-white);
}

::-moz-selection { 
    background-color: var(--color-rust);
    color: var(--color-white);
}

/* --- ČISTA NAVIGACIJA --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 4vw;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background-color: var(--color-white);
}

.logo-mask-wrapper {
    display: inline-block;
    background-color: var(--color-rust); 
    -webkit-mask: url('art241.png') no-repeat center;
    mask: url('art241.png') no-repeat center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.logo-mask-wrapper img {
    height: 30px; 
    width: auto;
    display: block;
    opacity: 0; 
}

.nav-container-right {
    display: flex;
    align-items: center;
    gap: 4vw;
}

.nav-links {
    display: flex;
    gap: 2.5vw;
    list-style: none;
}

.nav-links a, .lang-switcher a, .lang-switcher span {
    text-decoration: none;
    color: var(--color-slate);
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.nav-links a:hover, .lang-switcher a:hover {
    color: var(--color-rust);
}

.lang-switcher {
    display: flex;
    gap: 1rem; 
    align-items: center;
}

.active-lang {
    opacity: 0.4 !important; 
    cursor: default; 
}

/* --- HERO SEKCIJA --- */
.hero-full {
    height: 100vh; 
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px; 
}

.hero-media-full {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--color-slate);
}

.hero-media-full img, 
.hero-media-full video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-gradient-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(47, 54, 56, 0.2) 0%, rgba(47, 54, 56, 0.7) 100%);
}

.hero-title-overlay {
    position: relative;
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 5rem);
    font-weight: 700; 
    text-transform: uppercase; 
    color: var(--color-white); 
    line-height: 1.2;
    letter-spacing: 4px;
    text-align: center;
    text-shadow: 0 10px 40px rgba(0,0,0,0.6); 
    z-index: 10;
    padding: 0 4vw;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-heading);
    font-size: 10px;
    letter-spacing: 0.2em;
    color: #ffffff;
    text-transform: uppercase;
    opacity: 0.8;
    z-index: 10;
}

/* --- ISTAKNUTI RADOVI --- */
.featured-section {
    padding: 10vw 4vw;
    position: relative;
    background: 
        linear-gradient(to bottom, rgba(255,255,255,0) 80%, rgba(255,255,255,1) 100%),
        radial-gradient(circle at top center, rgba(255, 255, 255, 1) 0%, transparent 60%),
        radial-gradient(circle at right center, rgba(129, 52, 47, 0.04) 0%, transparent 50%),
        radial-gradient(circle at bottom left, rgba(47, 54, 56, 0.03) 0%, transparent 50%),
        linear-gradient(145deg, #f0efe9 0%, #e2e0d8 100%);
}

.section-heading-left {
    margin-bottom: 5vw;
}

.main-heading {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 2.8vw, 3.5rem);
    font-weight: 700; 
    text-transform: uppercase; 
    color: var(--color-rust);
    line-height: 1.25;
    position: relative; 
    z-index: 2;
}

.featured-grid-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2vw;
    position: relative; 
    z-index: 2;
}

.featured-item {
    text-decoration: none;
    color: inherit;
    display: block;
}

.feat-img {
    aspect-ratio: 3/4;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: 0 15px 35px -10px rgba(0,0,0,0.15); 
}

.feat-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.featured-item:hover .feat-img img {
    transform: scale(1.03);
}

.featured-item h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem; 
    font-weight: 600; 
    color: var(--color-slate);
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.featured-item p {
    font-family: var(--font-body);
    font-size: 0.95rem; 
    color: var(--color-slate);
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- O NAMA (Naslovna) --- */
.about-split {
    display: flex;
    align-items: center;
    padding: 0 0 10vw 4vw; 
    gap: 6vw;
    background-color: var(--color-white); 
}

.about-left {
    flex: 1;
}

.about-text-content {
    margin-top: 3vw;
    max-width: 500px;
}

.about-text-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-slate);
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.btn-link {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-slate);
    text-decoration: none;
    display: inline-block;
    border-bottom: 1px solid var(--color-slate);
    padding-bottom: 4px;
    margin-top: 1rem;
    transition: color 0.3s, border-color 0.3s;
}

.btn-link:hover {
    color: var(--color-rust);
    border-color: var(--color-rust);
}

.about-right {
    flex: 1.2;
    height: 80vh; 
    display: flex;
}

.team-img-container {
    display: flex;
    width: 100%;
    height: 100%;
}

.team-img-container img {
    width: 50%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
}

/* =========================================
   FOTOGRAFIJA STRANICA 
   ========================================= */
.portfolio-header {
    padding: calc(80px + 6vw) 4vw 2vw 4vw; 
}

.portfolio-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 4vw, 4.5rem);
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-rust);
}

.project-row {
    padding: 0 4vw 14vw 4vw; 
}

.project-header {
    display: flex;
    justify-content: space-between; 
    gap: 4vw;
    margin-bottom: 4vw; 
    align-items: flex-start;
}

.project-category {
    flex: 0 0 35%; 
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    color: var(--color-rust);
    font-weight: 500;
}

.project-info {
    flex: 0 0 55%; 
}

.project-info h2 {
    font-family: var(--font-body);
    font-size: 1.15rem;
    color: var(--color-slate);
    margin-bottom: 1.5rem;
    font-weight: 500;
    letter-spacing: 0;
}

.project-info p {
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--color-slate);
    font-weight: 300;
    margin-bottom: 1.2rem;
}

.project-media {
    width: 100%;
}

.project-media img {
    width: 100%;
    height: auto;
    max-height: 85vh; 
    object-fit: cover;
    box-shadow: none; 
}

/* =========================================
   O NAMA STRANICA (STICKY LAYOUT)
   ========================================= */

.about-hero-header {
    width: 100%;
    height: 65vh;
    padding-top: 80px; 
    margin-bottom: 6vw;
}

.about-hero-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
}

.about-sticky-container {
    display: flex;
    gap: 6vw;
    padding: 0 4vw 10vw 4vw;
    max-width: 1400px;
    margin: 0 auto;
    align-items: flex-start; 
}

.about-scroll-images {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4vw;
}

.about-scroll-images img {
    width: 100%;
    height: auto;
    object-fit: cover;
    filter: grayscale(100%);
}

.about-sticky-text {
    flex: 1;
    position: -webkit-sticky; 
    position: sticky; 
    top: 150px; 
    padding-bottom: 5vw;
}

.about-sticky-text h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3vw, 3.2rem);
    font-weight: 600;
    color: var(--color-rust);
    line-height: 1.2;
    margin-bottom: 5vw;
    max-width: 90%;
}

.about-feature {
    margin-bottom: 3.5vw;
}

.about-feature hr {
    border: none;
    border-top: 1px solid rgba(47, 54, 56, 0.15); 
    margin-bottom: 2rem;
}

.about-feature h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-slate);
    margin-bottom: 1rem;
}

.about-feature p {
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--color-slate);
    font-weight: 300;
    opacity: 0.85;
}

/* =========================================
   CINE WORK STRANICA (RUST POZADINA)
   ========================================= */

.page-rust {
    background: 
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at bottom left, rgba(0, 0, 0, 0.25) 0%, transparent 60%),
        linear-gradient(145deg, var(--color-rust) 0%, #4a1d1a 100%);
    color: var(--color-white);
}

.page-rust ::selection {
    background-color: var(--color-white);
    color: var(--color-rust);
}
.page-rust ::-moz-selection {
    background-color: var(--color-white);
    color: var(--color-rust);
}

/* EDGE-TO-EDGE VIDEO GRID */
.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 0; 
    row-gap: 6vw;  
    padding: 0 0 10vw 0; 
    width: 100%;
}

/* POPRAVLJENO: Video item pretvoren u link koji nema podvlake i ima kursor ruke */
.video-item {
    display: flex;
    flex-direction: column;
    text-decoration: none; /* Uklanja podvlačenje s linka */
    cursor: pointer;
}

.video-media {
    width: 100%;
    aspect-ratio: 16/9; 
    overflow: hidden;
    background-color: rgba(0,0,0,0.2); 
}

.video-media video,
.video-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s ease;
}

.video-item:hover .video-media video,
.video-item:hover .video-media img {
    transform: scale(1.02);
}

.video-info {
    padding: 1.5rem 4vw 0 4vw; 
}

.video-info h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

/* =========================================
   NETAKNUTI DONJI DIO (KONTAKT & FOOTER ZA 3 STRANICE)
   ========================================= */

.panel-rust {
    background: radial-gradient(circle at top center, rgba(47, 54, 56, 0.4), transparent 70%),
                linear-gradient(145deg, var(--color-rust) 0%, #4a1d1a 100%);
    color: var(--color-white);
}

.contact-form-section {
    padding: 10rem 4rem;
    max-width: 100%;
}

.section-title.title-light {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 4px;
    margin-bottom: 8rem;
    text-transform: uppercase;
    text-align: center;
    color: var(--color-white);
}

.architect-form {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    max-width: 800px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.architect-form label {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
}

.architect-form input,
.architect-form textarea {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 300;
    color: var(--color-white);
    padding: 0.8rem 0;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    background-color: transparent;
    outline: none;
    transition: all 0.4s ease;
}

.architect-form input::placeholder,
.architect-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.architect-form input:focus,
.architect-form textarea:focus {
    border-bottom-color: var(--color-white);
}

.submit-btn {
    background-color: transparent;
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    padding: 1rem 0;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.4);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 1rem;
    transition: all 0.4s ease;
    align-self: flex-start;
}

.submit-btn:hover {
    border-bottom-color: #ffffff;
    text-shadow: 0 0 10px rgba(255,255,255,0.3); 
}

footer {
    padding: 2rem 4rem 6rem 4rem;
    text-align: center;
}

.footer-logo-container {
    margin-bottom: 3rem; 
    display: flex;
    justify-content: center;
}

.footer-logo-container img {
    height: 80px; 
    width: auto; 
    filter: brightness(0) invert(1);
}

.contact-email {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    color: var(--color-white);
    margin-bottom: 4rem;
    letter-spacing: 2px;
}

.copyright {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

/* =========================================
   INVERTIRANI KONTAKT & FOOTER (Zasebno samo za video.html)
   ========================================= */

.panel-white-rust {
    background: radial-gradient(circle at top center, rgba(129, 52, 47, 0.05), transparent 70%),
                linear-gradient(145deg, #ffffff 0%, #f4f3ee 100%);
    color: var(--color-rust);
}

.panel-white-rust .title-light {
    color: var(--color-rust);
}

.panel-white-rust .architect-form label {
    color: rgba(129, 52, 47, 0.8);
}

.panel-white-rust .architect-form input,
.panel-white-rust .architect-form textarea {
    color: var(--color-rust);
    border-bottom: 1px solid rgba(129, 52, 47, 0.3);
}

.panel-white-rust .architect-form input::placeholder,
.panel-white-rust .architect-form textarea::placeholder {
    color: rgba(129, 52, 47, 0.4);
}

.panel-white-rust .architect-form input:focus,
.panel-white-rust .architect-form textarea:focus {
    border-bottom-color: var(--color-rust);
}

.panel-white-rust .submit-btn {
    color: var(--color-rust);
    border-bottom-color: rgba(129, 52, 47, 0.4);
}

.panel-white-rust .submit-btn:hover {
    border-bottom-color: var(--color-rust);
    text-shadow: 0 0 10px rgba(129, 52, 47, 0.2); 
}

.panel-white-rust .contact-email {
    color: var(--color-rust);
}

.panel-white-rust .copyright {
    color: rgba(129, 52, 47, 0.6);
}

.panel-white-rust .footer-logo-container img {
    filter: invert(19%) sepia(50%) saturate(3148%) hue-rotate(338deg) brightness(92%) contrast(93%);
}

/* --- ANIMACIJE NA SCROLL --- */
.fade-in-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

.fade-in-scroll.appear {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   RESPONZIVNOST
   ========================================= */

@media (max-width: 1024px) {
    .about-split { flex-direction: column; height: auto; padding-top: 10vw;}
    .about-right { padding: 4vw; height: 50vh; }
    .featured-grid-row { grid-template-columns: repeat(2, 1fr); }
    
    .project-header { flex-direction: column; gap: 2vw; }
    .project-category, .project-info { flex: 1 1 100%; width: 100%; }

    .about-sticky-container { flex-direction: column-reverse; }
    .about-sticky-text { position: relative; top: 0; margin-bottom: 10vw; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .featured-grid-row { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .hero-split { flex-direction: column; }
    .hero-left, .hero-right { width: 100%; height: 50vh; padding: 4vw; }
    
    .video-grid { grid-template-columns: 1fr; gap: 8vw; }
}

/* --- CUSTOM CURSOR TOČKICA --- */
.custom-cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background-color: #8a3324;
    border: 2px solid transparent; /* Priprema za glatki prijelaz ruba */
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    will-change: transform, width, height, background-color, border-color;
    transform: translate3d(-50%, -50%, 0);
    
    /* Povećano na 0.4s za još glađi i mekaniji fade in/out */
    transition: background-color 0.4s ease, border-color 0.4s ease, width 0.4s ease, height 0.4s ease; 
}

/* Stanje kada miš prijeđe preko teksta, slika ili linkova */
.custom-cursor-dot.cursor-hover {
    background-color: transparent; /* Zadržavamo šupljinu u sredini */
    
    /* OVDJE MIJENJAŠ BOJU OUTLINEA. 
       #f5f5f5 je vrlo svijetlo siva, slična slici koju si poslao. 
       Možeš staviti i #d1d1c7 ako želiš malo tamniju. */
    border-color: #f5f5f5; 
    
    /* OVDJE SMANJUJEMO VELIČINU. 
       Prije je bilo 30px, sada stavljamo npr. 22px za manji krug. */
    width: 22px; 
    height: 22px;
}

/* --- IKONE ZA DRUŠTVENE MREŽE --- */
.social-icons {
    display: flex;
    justify-content: center; /* Centrira ikone na sredinu ekrana */
    align-items: center;
    gap: 25px; /* Razmak između Instagram i Flickr ikone */
    margin-top: 50px; /* Odmak od gornjeg sadržaja (povećaj ili smanji po želji) */
    padding-bottom: 30px;
}

.social-icons a {
    color: #ffffff; /* Čista bijela boja, ista kao i mail adresa */
    display: inline-block;
    transition: color 0.3s ease, transform 0.3s ease;
}

/* Efekt kada se mišem prijeđe preko ikone */
.social-icons a:hover {
    color: rgba(255, 255, 255, 0.6); /* Ikona postaje blago prozirna */
    transform: translateY(-4px); /* Zadržavamo onaj skok prema gore */
}