/* ============================================================
   SMART Innovation Centre — главни стилови
   Модерна university/startup тема · црвена + бијела · glassmorphism
   ============================================================ */

:root {
    --smart-red:        #C8102E;
    --smart-red-dark:   #9E0B23;
    --smart-red-light:  #E8455F;
    --smart-red-soft:   #fdeef0;
    --ink:              #1a1d23;
    --muted:            #6b7280;
    --line:             #eceef1;
    --bg:               #ffffff;
    --bg-soft:          #fafbfc;
    --radius:           18px;
    --radius-sm:        12px;
    --shadow:           0 10px 40px rgba(20,23,35,.08);
    --shadow-lg:        0 24px 60px rgba(200,16,46,.16);
    --glass:            rgba(255,255,255,.65);
    --glass-border:     rgba(255,255,255,.55);
    --t:                .35s cubic-bezier(.2,.7,.3,1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--bg);
    margin: 0;
    line-height: 1.65;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .navbar-brand { font-family: 'Poppins', sans-serif; }

a { color: var(--smart-red); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--smart-red-dark); }

main { min-height: 60vh; }

.section { padding: 90px 0; }
.section-soft { background: var(--bg-soft); }

.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head .eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: .78rem;
    font-weight: 700;
    color: var(--smart-red);
    background: var(--smart-red-soft);
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 16px;
}
.section-head h2 { font-weight: 800; font-size: clamp(1.8rem, 3.2vw, 2.7rem); margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* ---------- Дугмад ---------- */
.btn-smart {
    background: linear-gradient(135deg, var(--smart-red), var(--smart-red-dark));
    border: none; color: #fff; font-weight: 600;
    border-radius: 100px; padding: 11px 26px;
    box-shadow: 0 8px 22px rgba(200,16,46,.28);
    transition: transform var(--t), box-shadow var(--t), filter var(--t);
}
.btn-smart:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(200,16,46,.4); filter: brightness(1.05); }
.btn-outline-smart {
    border: 2px solid var(--smart-red); color: var(--smart-red);
    background: transparent; font-weight: 600; border-radius: 100px; padding: 9px 24px;
    transition: all var(--t);
}
.btn-outline-smart:hover { background: var(--smart-red); color: #fff; transform: translateY(-2px); }

/* ============================================================
   NAVBAR (sticky + glass)
   ============================================================ */
.smart-navbar {
    background: rgba(255,255,255,.78);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    border-bottom: 1px solid var(--line);
    padding: 14px 0;
    transition: padding var(--t), box-shadow var(--t), background var(--t);
}
.smart-navbar.scrolled { padding: 8px 0; box-shadow: 0 6px 28px rgba(20,23,35,.09); background: rgba(255,255,255,.92); }
.brand-logo { height: 34px; width: auto; }
.brand-text { font-weight: 700; font-size: 1.05rem; color: var(--ink); letter-spacing: -.01em; }
.smart-navbar .nav-link {
    color: var(--ink); font-weight: 500; font-size: .96rem;
    padding: 8px 14px !important; border-radius: 10px; position: relative;
}
.smart-navbar .nav-link::after {
    content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
    background: var(--smart-red); transform: scaleX(0); transform-origin: left; transition: transform var(--t);
}
.smart-navbar .nav-link:hover { color: var(--smart-red); }
.smart-navbar .nav-link:hover::after,
.smart-navbar .nav-link.active::after { transform: scaleX(1); }
.smart-navbar .nav-link.active { color: var(--smart-red); }

/* ============================================================
   HERO + SLIDER
   ============================================================ */
.hero { position: relative; overflow: hidden; }
.hero-slide {
    min-height: 90vh;
    display: flex; align-items: center;
    position: relative;
    background-size: cover; background-position: center;
}
.hero-slide::before {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(1200px 600px at 80% -10%, rgba(200,16,46,.20), transparent 60%),
        linear-gradient(120deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.86) 45%, rgba(253,238,240,.7) 100%);
}
.hero-bg-1 { background: linear-gradient(135deg,#fff 0%, #fdeef0 100%); }
.hero-bg-2 { background: linear-gradient(135deg,#fff 0%, #f4f6fb 100%); }
.hero-bg-3 { background: linear-gradient(135deg,#fff 0%, #fbeef0 100%); }

.hero-content { position: relative; z-index: 2; max-width: 760px; padding: 60px 0; }
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--glass); border: 1px solid var(--glass-border);
    backdrop-filter: blur(8px);
    padding: 7px 16px; border-radius: 100px; font-weight: 600; font-size: .85rem;
    color: var(--smart-red-dark); margin-bottom: 22px;
}
.hero h1 {
    font-weight: 800; font-size: clamp(2.2rem, 5vw, 3.7rem); line-height: 1.1;
    letter-spacing: -.02em; margin-bottom: 20px;
}
.hero h1 .grad { background: linear-gradient(120deg,var(--smart-red),var(--smart-red-light)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 1.18rem; color: #3a3f4a; max-width: 600px; margin-bottom: 32px; }

/* плутајуће стат картице у херо-у */
.hero-stats { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.hero-stat {
    background: var(--glass); border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-sm); padding: 16px 22px; min-width: 130px;
    box-shadow: var(--shadow);
}
.hero-stat .num { font-family: 'Poppins'; font-weight: 800; font-size: 1.9rem; color: var(--smart-red); line-height: 1; }
.hero-stat .label { font-size: .82rem; color: var(--muted); margin-top: 4px; }

.carousel-indicators [data-bs-target] { width: 36px; height: 5px; border-radius: 4px; background: var(--smart-red); }
.carousel-control-prev, .carousel-control-next { width: 6%; opacity: .55; }
.carousel-control-prev-icon, .carousel-control-next-icon { filter: invert(18%) sepia(86%) saturate(3000%) hue-rotate(335deg); }

/* ============================================================
   КАРТИЦЕ (glass + hover)
   ============================================================ */
.glass-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(14px) saturate(150%);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform var(--t), box-shadow var(--t);
}
.card-modern {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow); overflow: hidden; height: 100%;
    transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.card-modern:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: rgba(200,16,46,.25); }

/* feature/service картице */
.feature-card { padding: 32px 28px; height: 100%; }
.feature-icon {
    width: 58px; height: 58px; border-radius: 16px;
    display: grid; place-items: center; font-size: 1.6rem; color: #fff;
    background: linear-gradient(135deg, var(--smart-red), var(--smart-red-dark));
    box-shadow: 0 10px 24px rgba(200,16,46,.3); margin-bottom: 20px;
    transition: transform var(--t);
}
.card-modern:hover .feature-icon { transform: scale(1.08) rotate(-4deg); }
.feature-card h4 { font-weight: 700; font-size: 1.18rem; margin-bottom: 10px; }
.feature-card p { color: var(--muted); margin: 0; font-size: .96rem; }

/* ---------- Вијести ---------- */
.news-card .news-thumb { height: 210px; overflow: hidden; position: relative; background: var(--smart-red-soft); }
.news-card .news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.news-card:hover .news-thumb img { transform: scale(1.07); }
.news-card .news-date {
    position: absolute; top: 14px; left: 14px;
    background: var(--glass); backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border); border-radius: 10px;
    padding: 5px 12px; font-size: .8rem; font-weight: 600; color: var(--smart-red-dark);
}
.news-card .news-body { padding: 22px 24px 26px; }
.news-card h3 { font-size: 1.12rem; font-weight: 700; line-height: 1.4; margin-bottom: 10px; }
.news-card h3 a { color: var(--ink); }
.news-card h3 a:hover { color: var(--smart-red); }
.news-card .excerpt { color: var(--muted); font-size: .94rem; margin-bottom: 16px; }
.read-more { font-weight: 600; font-size: .9rem; display: inline-flex; align-items: center; gap: 6px; }
.read-more i { transition: transform var(--t); }
.read-more:hover i { transform: translateX(4px); }

/* ---------- Тим ---------- */
.team-card { text-align: center; padding: 30px 22px; }
.team-avatar {
    width: 104px; height: 104px; border-radius: 50%; margin: 0 auto 18px;
    display: grid; place-items: center; font-family: 'Poppins'; font-weight: 700; font-size: 2rem;
    color: #fff; background: linear-gradient(135deg, var(--smart-red), var(--smart-red-dark));
    box-shadow: 0 10px 26px rgba(200,16,46,.32); overflow: hidden;
}
.team-avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-card h5 { font-weight: 700; margin-bottom: 4px; }
.team-card .role { color: var(--smart-red); font-weight: 600; font-size: .9rem; margin-bottom: 12px; }
.team-card .bio { color: var(--muted); font-size: .9rem; }

/* ---------- Партнери ---------- */
.partner-card {
    display: flex; align-items: center; gap: 16px; padding: 20px 22px; height: 100%;
}
.partner-flag {
    flex: 0 0 auto; width: 48px; height: 48px; border-radius: 12px;
    background: var(--smart-red-soft); color: var(--smart-red);
    display: grid; place-items: center; font-size: 1.4rem;
}
.partner-card h6 { font-weight: 700; font-size: .98rem; margin: 0 0 2px; line-height: 1.35; }
.partner-card .country { color: var(--muted); font-size: .85rem; }
.region-badge {
    display: inline-block; background: var(--ink); color: #fff; border-radius: 100px;
    padding: 5px 16px; font-size: .8rem; font-weight: 600; margin-bottom: 18px;
}

/* ---------- Догађаји (timeline) ---------- */
.timeline { position: relative; padding-left: 0; }
.event-card { display: flex; gap: 20px; margin-bottom: 22px; }
.event-thumb { flex: 0 0 200px; height: 150px; border-radius: var(--radius-sm); overflow: hidden; background: var(--smart-red-soft); }
.event-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.event-card:hover .event-thumb img { transform: scale(1.06); }
.event-card .event-body { flex: 1; }
.event-date-pill {
    display: inline-block; background: var(--smart-red-soft); color: var(--smart-red-dark);
    border-radius: 100px; padding: 4px 14px; font-size: .82rem; font-weight: 600; margin-bottom: 8px;
}
.event-card h4 { font-weight: 700; font-size: 1.15rem; margin-bottom: 6px; }
.event-card .loc { color: var(--muted); font-size: .88rem; }

/* ---------- Галерија ---------- */
.gallery-item {
    position: relative; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer;
    box-shadow: var(--shadow); aspect-ratio: 4/3; background: var(--smart-red-soft);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item .overlay {
    position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 16px;
    background: linear-gradient(transparent 40%, rgba(158,11,35,.85)); color: #fff;
    opacity: 0; transition: opacity var(--t); font-weight: 600; font-size: .92rem;
}
.gallery-item:hover .overlay { opacity: 1; }

/* ---------- Документи ---------- */
.doc-card { display: flex; align-items: flex-start; gap: 18px; padding: 24px; }
.doc-icon {
    flex: 0 0 auto; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
    font-size: 1.5rem; color: #fff; background: linear-gradient(135deg,var(--smart-red),var(--smart-red-dark));
}
.doc-card h5 { font-weight: 700; font-size: 1.05rem; margin-bottom: 4px; }
.doc-card .doc-date { color: var(--smart-red); font-size: .82rem; font-weight: 600; }
.doc-card p { color: var(--muted); font-size: .9rem; margin: 6px 0 0; }

/* ============================================================
   PAGE HERO (унутрашње странице)
   ============================================================ */
.page-hero {
    padding: 130px 0 70px;
    background:
        radial-gradient(900px 400px at 90% 0%, rgba(200,16,46,.14), transparent 60%),
        linear-gradient(135deg, #fff, #fdeef0);
    text-align: center; position: relative;
}
.page-hero h1 { font-weight: 800; font-size: clamp(2rem,4vw,3rem); margin-bottom: 12px; }
.page-hero p { color: var(--muted); font-size: 1.1rem; max-width: 680px; margin: 0 auto; }
.breadcrumb-smart { display: inline-flex; gap: 8px; font-size: .88rem; color: var(--muted); margin-top: 16px; }

/* ---------- CTA трака ---------- */
.cta-band {
    background: linear-gradient(135deg, var(--smart-red), var(--smart-red-dark));
    border-radius: var(--radius); padding: 56px; color: #fff; position: relative; overflow: hidden;
}
.cta-band::after {
    content: ''; position: absolute; right: -60px; top: -60px; width: 280px; height: 280px;
    background: radial-gradient(circle, rgba(255,255,255,.18), transparent 70%); border-radius: 50%;
}
.cta-band h2 { font-weight: 800; color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); }

/* ---------- Misija/Vizija ---------- */
.mv-card { padding: 36px 32px; height: 100%; }
.mv-card .mv-icon { font-size: 2rem; color: var(--smart-red); margin-bottom: 14px; }
.mv-card h3 { font-weight: 700; margin-bottom: 12px; }
.mv-card p { color: var(--muted); margin: 0; }

/* листа циљева */
.goal-list { list-style: none; padding: 0; margin: 0; }
.goal-list li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.goal-list li:last-child { border-bottom: none; }
.goal-list .check { color: var(--smart-red); font-size: 1.25rem; flex: 0 0 auto; }

/* ============================================================
   ФУТЕР
   ============================================================ */
.smart-footer { background: #14161c; color: #c7ccd6; padding: 70px 0 34px; margin-top: 0; }
.footer-logo { height: 40px; filter: brightness(0) invert(1); }
.footer-text { color: #9aa1ad; font-size: .92rem; max-width: 320px; }
.footer-heading { color: #fff; font-weight: 700; font-size: 1rem; margin-bottom: 18px; }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #9aa1ad; font-size: .92rem; }
.footer-links a:hover { color: #fff; padding-left: 4px; }
.footer-contact li { color: #9aa1ad; font-size: .9rem; margin-bottom: 12px; display: flex; gap: 10px; }
.footer-contact i { color: var(--smart-red-light); }
.footer-contact a { color: #9aa1ad; }
.footer-contact a:hover { color: #fff; }
.footer-social a {
    width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
    background: rgba(255,255,255,.08); color: #fff; font-size: 1.1rem; transition: all var(--t);
}
.footer-social a:hover { background: var(--smart-red); transform: translateY(-3px); }
.footer-divider { border-color: rgba(255,255,255,.1); margin: 40px 0 24px; }
.footer-copy { color: #7e8694; font-size: .85rem; }
.footer-eu { height: 46px; background: transparent; }
.footer-disclaimer { color: #6a7280; font-size: .76rem; line-height: 1.5; }

/* ---------- Back to top ---------- */
.back-to-top {
    position: fixed; right: 24px; bottom: 24px; width: 48px; height: 48px; border-radius: 50%;
    border: none; background: linear-gradient(135deg,var(--smart-red),var(--smart-red-dark)); color: #fff;
    font-size: 1.2rem; box-shadow: var(--shadow-lg); cursor: pointer; opacity: 0; visibility: hidden;
    transform: translateY(16px); transition: all var(--t); z-index: 999;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { filter: brightness(1.1); transform: translateY(-3px); }

/* ---------- Контакт форма ---------- */
.contact-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.contact-info-side {
    background: linear-gradient(150deg, var(--smart-red), var(--smart-red-dark)); color: #fff; padding: 44px 38px; height: 100%;
}
.contact-info-side h3 { color: #fff; font-weight: 700; }
.contact-info-side .ci-item { display: flex; gap: 14px; margin-top: 24px; }
.contact-info-side .ci-item i { font-size: 1.3rem; margin-top: 2px; }
.contact-info-side a { color: #fff; text-decoration: underline; }
.form-control, .form-select {
    border-radius: var(--radius-sm); border: 1px solid var(--line); padding: 12px 16px; font-size: .96rem;
}
.form-control:focus { border-color: var(--smart-red); box-shadow: 0 0 0 .2rem rgba(200,16,46,.12); }
.form-label { font-weight: 600; font-size: .9rem; }

/* ---------- Ревеал анимација ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .smart-navbar { background: rgba(255,255,255,.96); }
    .navbar-collapse { background: #fff; border-radius: var(--radius-sm); padding: 16px; margin-top: 12px; box-shadow: var(--shadow); }
    .hero-slide { min-height: auto; padding: 120px 0 70px; }
    .event-card { flex-direction: column; }
    .event-thumb { flex: 0 0 auto; width: 100%; height: 200px; }
    .section { padding: 64px 0; }
    .cta-band { padding: 36px 24px; }
}
@media (max-width: 575px) {
    .hero h1 { font-size: 2rem; }
    .brand-text { display: none; }
}
