/* --- CORE STYLES AND FONTS --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;700&display=swap');

@font-face {
    font-family: 'Sukari';
    src: url('../../fonts/SukariRegular-3lq96.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Parfumerie Script';
    src: url('../../fonts/parfumerie-script-regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --bg-color: #f8f8f8;
    --text-color: #1a1a1a;
    --accent-color: #028768; /* NEUM GREEN */
    --secondary-bg: #ffffff;
    --border-color: #e0e0e0;
    --paragraph-color: #4a4a4a;
    --font-serif: 'Sukari', serif;
    --font-sans: 'Poppins', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-sans); background-color: var(--bg-color); color: var(--text-color); }
.container { width: 90%; max-width: 1100px; margin: 0 auto; }

/* --- NAVIGATION --- */
header {
    position: fixed; top: 0; left: 0; width: 100%;
    display: flex; justify-content: space-between; align-items: center;
    padding: 40px 5%; z-index: 100; mix-blend-mode: difference;
}
header {
    position: fixed; top: 0; left: 0; width: 100%;
    display: flex; justify-content: space-between; align-items: center;
    padding: 40px 5%; z-index: 100; mix-blend-mode: difference;
}
header .logo, header nav a { font-weight: 400; color: white; text-decoration: none; }
header .logo { font-family: var(--font-serif); font-size: 2.5rem; }
header nav a { font-size: 1rem; margin-left: 40px; position: relative; padding-bottom: 5px; }
header nav a::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 100%; height: 1px; background-color: white;
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}
header nav a:hover::after { transform: scaleX(1); }

.header-logo-svg,
.footer-logo-svg { display: inline-block; vertical-align: middle; }

.header-logo-svg svg,
.footer-logo-svg svg { display: block; width: auto; height: 100%; transition: fill 0.7s ease-in-out; }

.header-logo-svg { height: 45px; }
.header-logo-svg svg { fill: var(--bg-color); }

.logo-text {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: white;
    text-decoration: none;
}
header nav a { 
    font-weight: 400; 
    color: white; 
    text-decoration: none;
    font-size: 1rem; 
    margin-left: 40px; 
    position: relative; 
    padding-bottom: 5px; 
}
header nav a::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 100%; height: 1px; background-color: white;
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}
header nav a:hover::after { transform: scaleX(1); }

/* --- HERO --- */
.detail-wrapper { height: 300vh; }
.project-hero { height: 100vh; width: 100%; position: sticky; top: 0; display: flex; justify-content: center; align-items: center; overflow: hidden; }
.hero-background { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: url(../../slike/placeholder-neum-bg.webp); background-size: cover; background-position: center; transform: scale(1.1); }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); }

.project-title {
    font-family: var(--font-serif);
    font-size: clamp(4rem, 15vw, 12rem);
    color: white;
    text-align: center;
    line-height: 1;
    position: absolute;
    white-space: nowrap;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.project-content-wrapper { position: absolute; top: 100%; left: 0; width: 100%; color: white; opacity: 0; }
.project-content-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 10%; padding: 10vh 0; align-items: start; }
.project-content-grid .description p { font-size: 1.1rem; line-height: 1.7; margin-bottom: 1.5rem; color: #EAE8E1; max-width: 65ch; text-align: left; }
.description h4 { font-family: var(--font-sans); font-weight: 600; font-size: 1.2rem; margin-top: 1rem; color: var(--accent-color); text-transform: uppercase; }

.project-content-grid .meta div { margin-bottom: 2rem; }
.project-content-grid .meta h4 { font-family: var(--font-sans); font-weight: 600; font-size: 1rem; margin-bottom: 0.5rem; color: var(--accent-color); text-transform: uppercase; }
.project-content-grid .meta span { font-size: 1rem; color: #ccc; }

/* --- CONTENT AFTER HERO --- */
.main-content-after-hero { background-color: var(--bg-color); position: relative; }
.content-section { padding: 15vh 0; border-bottom: 1px solid var(--border-color); }
.content-section:last-of-type { border-bottom: none; }
.section-title { font-family: var(--font-serif); font-size: clamp(3rem, 8vw, 5rem); margin-bottom: 8vh; text-align: center; line-height: 1.1; font-weight: normal; }
.section-subtitle { font-family: var(--font-serif); font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 2rem; color: var(--text-color); font-weight: normal; text-align: center; }
p { font-size: 1.1rem; line-height: 1.8; color: var(--paragraph-color); margin-bottom: 1rem; max-width: 75ch; margin-left: auto; margin-right: auto; text-align: center; }
.centered-text { text-align: center; max-width: 700px; margin: -4vh auto 8vh auto; }

.image-placeholder {
    width: 100%;
    max-width: 1100px; /* Or your preferred max-width */
    margin: 4vh auto;
   
}
.image-placeholder img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
}

/* --- PROJECT NAVIGATION --- */
.project-nav { display: flex; justify-content: space-between; border-top: 1px solid var(--border-color); }
.project-nav .nav-link { text-decoration: none; color: var(--text-color); padding: 5vh 5%; flex-basis: 50%; transition: background-color 0.3s ease; }
.project-nav .nav-link:hover { background-color: var(--secondary-bg); }
.project-nav .nav-link.prev { text-align: left; border-right: 1px solid var(--border-color); }
.project-nav .nav-link.next { text-align: right; }
.project-nav .nav-link span { font-size: 0.9rem; text-transform: uppercase; color: var(--paragraph-color); letter-spacing: 1px; }
.project-nav .nav-link h3 { font-family: var(--font-serif); font-size: clamp(1.5rem, 4vw, 2.5rem); margin-top: 0.5rem; font-weight: normal; color: var(--accent-color); }

/* Title animation */
.script-letter { font-family: 'Parfumerie Script', cursive; text-transform: capitalize; font-weight: normal; font-size: 1.4em; margin-right: 0.1em; display: inline-block; transform: translateY(0.06em); }
.title-animation-wrapper { position: relative; overflow: hidden; margin-bottom: 20px; }
.anim-title { transform: translateY(50%); transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1); font-family: var(--font-serif); font-size: clamp(3rem, 10vw, 7rem); line-height: 1.1; text-align: center; }
.title-animation-wrapper.is-visible .anim-title { transform: translateY(0); }
.no-wrap { display: inline-block; }
/* --- CTA Section for Live Website Link --- */
.cta-section {
    text-align: center;
    background-color: var(--secondary-bg); /* Or use var(--bg-color) if you prefer */
}

.cta-section .section-subtitle {
    margin-bottom: 1rem;
}

.cta-section p {
    margin-bottom: 2.5rem;
}

.cta-button {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    padding: 15px 40px;
    border: 1px solid var(--text-color);
    background: var(--text-color);
    color: var(--bg-color);
    cursor: pointer;
    transition: all 0.4s ease;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block; /* Use inline-block instead of block to fit content */
}

.cta-button:hover {
    background: transparent;
    color: var(--text-color);
    text-decoration: none;
}
/* Contact */
.contact-section { padding: 20vh 0; }
#contact-form { max-width: 700px; margin: 0 auto; text-align: left; }
.form-group { position: relative; margin-bottom: 45px; }
.form-input { width: 100%; border: 0; outline: 0; padding: 10px 0; background: transparent; border-bottom: 1px solid var(--text-color); font-family: var(--font-sans); font-size: 1.1rem; color: inherit; }
.form-label { position: absolute; top: 10px; left: 0; transition: all 0.3s ease; pointer-events: none; color: var(--paragraph-color); }
.form-input:focus~.form-label, .form-input:not(:placeholder-shown)~.form-label { top: -20px; font-size: 0.9rem; color: var(--accent-color); }
.form-input:focus { outline: none; border-bottom-color: var(--accent-color); border-bottom-width: 2px; }
textarea.form-input { resize: vertical; min-height: 100px; }
.submit-btn { font-family: var(--font-sans); font-size: 1.1rem; padding: 15px 40px; border: 1px solid var(--text-color); background: var(--text-color); color: var(--bg-color); cursor: pointer; transition: all 0.4s ease; border-radius: 50px; display: block; margin: 0 auto; }
.submit-btn:hover { background: transparent; color: var(--text-color); }
#form-status { margin-top: 20px; font-size: 1rem; text-align: center; }

/* Responsive */
@media (max-width: 900px) {
    .two-column-grid, .project-content-grid { grid-template-columns: 1fr; gap: 2.5rem; padding: 0; }
    .project-content-grid .description p, .project-content-grid .meta span { color: white; }
    p, .centered-text { max-width: 100%; }
}
@media (max-width: 768px) {
    .project-nav { flex-direction: column; }
    .project-nav .nav-link.prev { border-right: none; border-bottom: 1px solid var(--border-color); text-align: center; }
    .project-nav .nav-link.next { text-align: center; }
}