/* --- CORE STYLES AND FONTS --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Roboto+Mono:wght@400;500&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: #FF00C1; /* Neon Pink */
    --font-serif: 'Sukari', serif;
    --font-sans: 'Poppins', sans-serif;
    --font-display: 'Orbitron', sans-serif;
    --font-mono: 'Roboto Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-sans); background-color: var(--bg-color); color: var(--text-color); overflow-x: hidden; }
.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; }
header .logo, header nav a { font-weight: 400; color: white; text-decoration: none; mix-blend-mode: difference; }
header nav a { font-size: 1rem; margin-left: 40px; }
.header-logo-svg { height: 45px; }
.header-logo-svg svg { height: 100%; width: auto; fill: white; }

/* --- PROJECT HERO STYLES --- */
.hero-section { height: 100vh; width: 100%; position: sticky; top: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-background { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: url(../../slike/neon-nexus.webp); background-size: cover; background-position: center; z-index: 1; transform: scale(1.1); }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.3); z-index: 2; }
.project-title { font-family: var(--font-display); font-size: clamp(4rem, 15vw, 10rem); color: white; text-align: center; line-height: 1; z-index: 3; text-shadow: 0 0 15px var(--accent-color); font-weight: 700; }

/* --- GENERAL CONTENT STYLING --- */
.main-content-after-hero { background-color: var(--bg-color); position: relative; z-index: 5; }
.content-section { padding: 15vh 0; border-bottom: 1px solid #e0e0e0; }
.content-section:last-of-type { border-bottom: none; }
.section-title, .section-subtitle, .feature-card h4, .font-display h4, .color-palette h4 { font-weight: normal; }
.section-title { font-family: var(--font-serif); font-size: clamp(3rem, 8vw, 6rem); margin-bottom: 8vh; text-align: center; line-height: 1.1; }
.section-subtitle { font-family: var(--font-serif); font-size: 2.5rem; margin-bottom: 2rem; color: var(--text-color); }
.centered-text { text-align: center; max-width: 700px; margin: -4vh auto 8vh auto; }
p, li { font-size: 1.1rem; line-height: 1.8; color: #4a4a4a; margin-bottom: 1rem; }

/* --- PROJECT OVERVIEW & META SECTION --- */
.overview-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 10%; }
.project-meta { padding-top: 0.5rem; }
.meta-item { margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid #e0e0e0; }
.meta-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.meta-label { font-family: var(--font-sans); font-size: 0.9rem; font-weight: 600; margin-bottom: 0.5rem; color: #333; }
.meta-value, .meta-value a { font-family: var(--font-sans); font-size: 1.1rem; color: #555; text-decoration: none; }
.meta-value a { text-decoration: underline; text-underline-offset: 4px; transition: color 0.3s ease; }
.meta-value a:hover { color: var(--accent-color); }

/* --- FEATURES, DESIGN SYSTEM, GALLERY --- */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 4rem; text-align: center; }
.feature-card h4 { font-family: var(--font-serif); font-size: 1.8rem; margin-bottom: 1rem; }
/* .design-system-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10%; align-items: center; } */
/* --- [NOVO] AŽURIRAN STIL ZA DESIGN SYSTEM SEKCIJU --- */

.design-system-container {
    background-color: #fff;
    padding: 4rem;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
}

.design-system-container h3 {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: normal;
    margin-bottom: 2.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.typography-showcase {
    margin-bottom: 4rem;
}

.font-spec {
    margin-bottom: 2.5rem;
}

.font-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1rem;
}

.font-header h4 {
    font-family: var(--font-sans);
    font-size: 1.5rem;
    font-weight: 500;
}

.font-header span {
    font-family: var(--font-mono);
    color: #888;
}

.font-preview {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.font-example {
    background-color: #f8f8f8;
    padding: 1.5rem;
    border-radius: 8px;
}

.font-example-heading {
    font-size: 1.5rem;
    font-weight: 700; /* Primer za bold heading */
}
.font-example-body {
    font-size: 1rem;
    line-height: 1.6;
}

/* Stari stilovi za color palette, malo prilagođeni */
.color-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    align-items: start;
}
.color-card {
    text-align: center;
}
.color-swatch {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 1.5rem auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.color-info h5 {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}
.color-info .color-hex {
    font-family: var(--font-mono);
    color: #888;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}
.color-info .color-rationale {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
}
.font-display h4, .color-palette h4 { font-family: var(--font-serif); font-size: 1.8rem; margin-bottom: 2rem; }
.font-showcase { font-size: 4rem; line-height: 1.2; margin-bottom: 1rem; }
.font-showcase.display { font-family: var(--font-display); }
.font-showcase.mono { font-family: var(--font-mono); }

.gallery-grid { display: grid; grid-template-columns: 1fr; gap: 4rem; align-items: center; }
.gallery-item img { width: 100%; height: auto; display: block; border-radius: 12px; box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1); }
.gallery-item p { text-align: center; margin-top: 1.5rem; font-size: 1rem; color: #777; }
.desktop-mockup { height: 520px; overflow-y: scroll; border-radius: 12px; border: 1px solid #e0e0e0; box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1); }

/* --- RESULTS GRID --- */
.results-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; text-align: center; }
.stat-item .stat-number { font-family: var(--font-display); font-size: clamp(3rem, 8vw, 5rem); line-height: 1; color: var(--accent-color); }
.stat-item .stat-label { font-size: 1rem; color: var(--paragraph-color); margin-top: 0.5rem; font-family: var(--font-mono); }


.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);
}

/* Stilovi za animaciju naslova */
.title-animation-wrapper {
    position: relative;
    overflow: hidden; 
    margin-bottom: 20px; /* Zamenjuje margin-bottom sa h1 */
}

.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;
    /* white-space: nowrap; */
}

.title-animation-wrapper.is-visible .anim-title {
    transform: translateY(0);
}
/* U /projects/healthline/style.css */

.no-wrap {
    display: inline-block;
}

/* --- CONTACT FORM --- */
.contact-section { padding: 20vh 0; text-align: center; }
#contact-form { max-width: 700px; margin: 0 auto; }
.form-group { position: relative; margin-bottom: 45px; }
.form-input { width: 100%; border: 0; outline: 0; padding: 10px 0; background: transparent; border-bottom: 1px solid; font-family: var(--font-sans); font-size: 1.1rem; color: inherit; border-color: inherit; }
.form-label { position: absolute; top: 10px; left: 0; transition: all 0.3s ease; pointer-events: none; }
.form-input:focus~.form-label, .form-input:not(:placeholder-shown)~.form-label { top: -20px; font-size: 0.9rem; }
.form-input:focus { outline: none; border-bottom-width: 2px; }
body.dark-mode .form-input:focus { border-bottom-color: var(--bg-color); }
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(--bg-color); color: var(--light-text); cursor: pointer; transition: all 0.4s ease; border-radius: 50px; }
.submit-btn:hover { background: var(--bg-color); color: var(--text-color); }
body.dark-mode .submit-btn { background: var(--bg-color); color: var(--text-color); border-color: var(--bg-color); }
body.dark-mode .submit-btn:hover { background: transparent; color: var(--bg-color); }
#form-status { margin-top: 20px; font-size: 1rem; }

/* --- PROJECT NAVIGATION --- */
.project-nav { display: flex; justify-content: space-between; border-top: 1px solid #e0e0e0; }
.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: #fff; }
.project-nav .nav-link.prev { text-align: left; border-right: 1px solid #e0e0e0; }
.project-nav .nav-link.next { text-align: right; }
.project-nav .nav-link span { font-size: 0.9rem; text-transform: uppercase; color: #4a4a4a; 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; }

@media (max-width: 900px) {
    .overview-grid, .results-grid { grid-template-columns: 1fr; gap: 4rem; }
}
@media (max-width: 768px) {
    .design-system-grid, .features-grid { grid-template-columns: 1fr; }
    .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; }
}