:root {
    --dark-bg:       #0b1616;
    --navy-blue:     #162626;
    --light-blue:    #a3b18a;
    --gold:          #d4a373;
    --text-white:    #f1faee;
    --text-gray:     #adc1c1;
    --text-muted:    #718080;
    --accent-line:   rgba(163, 177, 138, 0.15);
    --accent-line-h: rgba(212, 163, 115, 0.4);
    --transition:    0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 17px;
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-white);
    font-family: 'Inter', sans-serif;
    line-height: 1.65;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.15;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

ul { list-style: none; }

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
    border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}

.container {
    max-width: 80rem;
    margin-inline: auto;
    padding-inline: 2rem;
}

.main-content {
    flex: 1;
}

header {
    height: 8rem;
    display: flex;
    align-items: center;
    position: fixed;
    inset-block-start: 0;
    width: 100%;
    z-index: 100;
    background: rgba(11, 22, 22, 0.92);
    backdrop-filter: blur(1rem);
    -webkit-backdrop-filter: blur(1rem);
    border-bottom: 0.0625rem solid var(--accent-line);
    transition: height var(--transition), background var(--transition), box-shadow var(--transition);
}

header.scrolled {
    height: 4.5rem;
    background: rgba(11, 22, 22, 0.99);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.55);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 100%;
    padding-inline: 6%;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo img {
    height: 7.5rem;
    width: auto;
    object-fit: contain;
    margin-inline-start: -0.5rem;
    transition: height var(--transition);
}

header.scrolled .logo img {
    height: 4rem;
}

.hamburger {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-white);
    font-size: 2.2rem;
    cursor: pointer;
    padding: 0.5rem;
    position: absolute;
    inset-inline-end: 2rem;
    top: 50%;
    translate: 0 -50%;
    transition: color var(--transition);
    z-index: 101;
}

.hamburger:hover,
.hamburger[aria-expanded="true"] { color: var(--light-blue); }

nav { margin-inline-end: 11vw; }

nav ul {
    display: flex;
    gap: 3rem;
    align-items: center;
}

nav ul li a {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.08rem;
    text-transform: uppercase;
    white-space: nowrap;
    position: relative;
    padding-block-end: 0.25rem;
    transition: color var(--transition);
}

nav ul li a::after {
    content: '';
    position: absolute;
    inset-block-end: 0;
    inset-inline-start: 0;
    width: 0;
    height: 0.125rem;
    background: var(--gold);
    transition: width var(--transition);
    border-radius: 1rem;
}

nav ul li a:hover,
nav ul li a.active-link { color: var(--light-blue); }

nav ul li a:hover::after,
nav ul li a.active-link::after { width: 100%; }

.hero {
    position: relative;
    padding-block: 14rem 8rem;
    min-height: 88dvh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--dark-bg);
}

.hero::before {
    content: '';
    position: absolute;
    inset: -3%;
    background: linear-gradient(
        to bottom,
        rgba(11, 22, 22, 0.8),
        rgba(11, 22, 22, 0.92)
    ), url('Bg1.jpg') center / cover no-repeat;
    filter: blur(2px);
    z-index: 0;
    will-change: transform; 
}

.hero-botanical {
    position: absolute;
    inset-inline-end: 3%;
    top: 50%;
    translate: 0 -50%;
    width: clamp(260px, 35vw, 480px);
    opacity: 0.85;
    pointer-events: none;
    z-index: 1;
    animation: floatLeaf 8s ease-in-out infinite;
}

@keyframes floatLeaf {
    0%, 100% { translate: 0 -50%; }
    50%      { translate: 0 calc(-50% - 12px); }
}

.hero .container { position: relative; z-index: 2; }

.hero-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.18rem;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.1rem;
    opacity: 0.9;
}

.hero-text h1 {
    font-size: clamp(2.6rem, 5vw, 4.2rem);
    margin-bottom: 1.4rem;
}

.hero-text h1 em {
    color: var(--light-blue);
    font-style: italic;
}

.hero-text > p {
    color: var(--text-gray);
    font-size: 1.15rem;
    max-width: 34rem;
    margin-bottom: 3rem;
}

.hero-cards {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.card {
    display: block;
    background: rgba(22, 38, 38, 0.45);
    backdrop-filter: blur(0.6rem);
    -webkit-backdrop-filter: blur(0.6rem);
    padding: 2rem 2.2rem;
    border-radius: 1.1rem;
    border: 0.0625rem solid var(--accent-line);
    max-width: 28rem;
    transition: transform var(--transition), border-color var(--transition), background var(--transition);
    cursor: pointer;
    will-change: transform;
}

.card:hover {
    transform: translateY(-2%);
    border-color: var(--gold);
    background: rgba(22, 38, 38, 0.65);
    transition: transform 0.3s ease-in-out, border-color 0.5s ease-in-out, background 0.3s ease-in-out;
}

.card:active { transform: translateY(-2px) scale(0.99); }

.card i {
    font-size: 1.8rem;
    color: var(--gold);
    margin-bottom: 0.8rem;
}

.card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.4rem;
}

.card p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

.info-section {
    padding-block: 7rem;
    background: var(--dark-bg);
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 4rem;
}

.section-title::after {
    content: '';
    display: block;
    width: min(50%, 20rem);
    height: 0.18rem;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
    margin: 0.9rem auto 0;
    border-radius: 1rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
    gap: 2rem;
}

.info-box {
    background: var(--navy-blue);
    padding: 2.8rem 2.4rem;
    border-radius: 1.1rem;
    border: 0.0625rem solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: border-color var(--transition), transform var(--transition);
}

.info-icon {
    width: 3.5rem;
    height: 3.5rem;
    background: rgba(212, 163, 115, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    transition: background var(--transition);
}

.info-icon i {
    font-size: 1.5rem;
    color: var(--gold);
}

.naslov {
    font-size: 1.3rem;
    margin-bottom: 0.85rem;
}

.opravdanje {
    font-size: 1rem;
    color: var(--text-gray);
    line-height: 1.7;
}

.info-box, .card, .fact-box, .feature-item, .img-box {
    opacity: 0;
    translate: 0 22px;
    transition: opacity 0.55s ease, translate 0.55s ease;
}

.info-box.visible, .card.visible, .fact-box.visible, .feature-item.visible, .img-box.visible {
    opacity: 1;
    translate: 0 0;
}

.info-box:nth-child(2) { transition-delay: 0.1s; }
.info-box:nth-child(3) { transition-delay: 0.2s; }

.gallery-item:nth-child(4n+1) { transition-delay: 0s; }
.gallery-item:nth-child(4n+2) { transition-delay: 0.02s; }
.gallery-item:nth-child(4n+3) { transition-delay: 0.06s; }
.gallery-item:nth-child(4n+4) { transition-delay: 0.1s; }
.gallery-item:nth-child(4n+5) { transition-delay: 0.13s; }
.gallery-item:nth-child(4n+6) { transition-delay: 0.17s; }
.gallery-item:nth-child(4n+7) { transition-delay: 0.21s; }
.gallery-item:nth-child(4n+8) { transition-delay: 0.24s; }

footer {
    background: #060808;
    padding: 5rem 0 2rem;
    border-top: 0.0625rem solid rgba(255, 255, 255, 0.05);
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand h4 {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 0.6rem;
}

.footer-brand > p {
    font-size: 1.1rem;
    color: var(--gold);
    opacity: 0.8;
}

.social-icons {
    display: flex;
    gap: 1.2rem;
    margin-top: 1.2rem;
}

.social-icons a {
    font-size: 1.9rem;
    transition: color var(--transition), transform var(--transition);
}

.social-icons a:hover {
    color: var(--gold);
    transform: scale(1.25);
}

.footer-contact { display: flex; flex-direction: column; gap: 0.8rem; }

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1rem;
}

.footer-contact i { color: var(--gold); flex-shrink: 0; }

.footer-contact a {
    color: var(--text-gray);
    transition: color var(--transition);
}

.footer-contact a:hover { color: var(--gold); }

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 0.0625rem solid rgba(255, 255, 255, 0.05);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.about-hero {
    position: relative;
    padding-block: 14rem 6rem;
    background-color: var(--dark-bg);
    text-align: center;
    border-bottom: 0.0625rem solid var(--accent-line);
    overflow: hidden;
}

.about-hero::before {
    content: '';    
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: -1%; 
    background: 
        linear-gradient(to bottom, rgba(11, 22, 22, 0.72) 0%, rgba(11, 22, 22, 0.80) 100%),
        url('Bg1.jpg') center / cover no-repeat;
    z-index: 0;
    filter: blur(2px);
}

.about-hero-content {
    position: relative;
    z-index: 1;
}

.about-hero-content .hero-eyebrow {
    display: block;
    margin-bottom: 0.8rem;
}

.about-hero-content h1 {
    font-size: clamp(2.6rem, 5vw, 3.6rem);
    margin-bottom: 1rem;
}

.about-hero-content h1 em {
    color: var(--light-blue);
    font-style: italic;
}

.about-hero-content > p {
    color: var(--text-gray);
    font-size: 1.15rem;
    max-width: 38rem;
    margin-inline: auto;
}

.about-me-section {
    padding-block: 6rem;
    background: var(--dark-bg);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 1rem;
    align-items: center;
}

.about-image-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.profile-gallery {
    display: block;
    width: 100%;
    max-width: 70%;
}

.single-profile-img {
    width: 100%;
    aspect-ratio: 9 / 16;
    height: auto;
}

.img-box {
    border-radius: 1.1rem;
    overflow: hidden;
    border: 0.0625rem solid var(--accent-line);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    transition: transform var(--transition), border-color var(--transition), opacity 0.55s ease, translate 0.55s ease;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-text-side { color: var(--text-gray); }

.text-badge {
    display: inline-block;
    color: var(--light-blue);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.16rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.about-subtitle {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    color: var(--text-white);
    margin-bottom: 1.4rem;
}

.lead-text {
    font-size: 1.15rem;
    color: var(--text-white);
    line-height: 1.75;
    margin-bottom: 1.6rem;
}

.about-blockquote {
    border-inline-start: 3px solid var(--gold);
    padding-inline-start: 1.5rem;
    margin-block: 1.8rem;
    font-style: italic;
    color: var(--text-gray);
}

.about-blockquote p { font-size: 1.1rem; line-height: 1.65; }

.about-text-side > p { font-size: 1.02rem; margin-bottom: 1.4rem; }

.about-mini-title {
    font-size: 1.5rem;
    margin-block: 2rem 1rem;
    color: var(--gold);
}

.about-mini-title i { margin-inline-end: 0.5rem; }

.features-list {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    margin-top: 1.2rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
}

.feature-item i {
    color: var(--light-blue);
    font-size: 1.15rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.feature-item p { margin-bottom: 0; font-size: 1rem; }

@media (max-width: 1200px) {
    html { font-size: 16px; }
    .container { padding-inline: 4%; }
}

@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .about-text-side {
        order: 1; 
    }
    
    .about-image-side {
        display: none !important;
        order: 2;
        max-width: 260px;
        margin-inline: auto;
        margin-top: 1.5rem;
    }
    .main-img   { height: 20rem; }
    .sub-img-1,
    .sub-img-2  { height: 11rem; }
    .about-subtitle { font-size: 2.1rem; }
    nav ul { gap: 2rem; }
}

@media (max-width: 892px) {
    .hamburger { display: block; }
    nav { margin-inline-end: 0; }
    
    nav ul {
        position: absolute;
        top: 100%;
        inset-inline-end: 5%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: rgba(16, 30, 30, 0.98);
        border: 0.0625rem solid var(--accent-line);
        border-radius: 1rem;
        box-shadow: 0 16px 44px rgba(0, 0, 0, 0.65);
        width: 15rem;
        padding-block: 0.6rem;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-0.8rem) scale(0.96);
        transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.175, 0.885, 0.32, 1.275), visibility 0.28s;
        z-index: 100;
        pointer-events: none;
    }

    nav ul::before {
        content: '';
        position: absolute;
        bottom: 100%;
        inset-inline-end: 1.2rem;
        border: 0.5rem solid transparent;
        border-bottom-color: rgba(16, 30, 30, 0.98);
    }

    nav ul.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0.4rem) scale(1);
        pointer-events: auto;
    }

    nav ul li a {
        display: block;
        padding: 0.9rem 2rem;
        font-size: 1rem;
        text-align: right;
        border-bottom: 0.0625rem solid var(--accent-line);
        transition: background 0.2s, color 0.2s;
    }

    nav ul li a::after { display: none; }
    nav ul li:last-child a { border-bottom: none; }

    nav ul li a:hover {
        background: rgba(163, 177, 138, 0.08);
        color: var(--gold);
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
    }

    .hero-text > p { margin-inline: auto; }
    .hero-cards { align-items: center; }
    .hero-botanical { display: none; }
}

@media (max-width: 768px) {
    .hero-text h1 { font-size: 2.6rem; }
    .section-title { font-size: 2rem; }
    .info-section { padding-block: 5rem; }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }
    .social-icons  { justify-content: center; }
    .footer-contact p { justify-content: center; }
}

@media (max-width: 576px) {
    .hero { padding-block: 12rem 6rem; }
    .about-hero { padding-block: 12rem 5rem; }
    .hero-cards .card { width: 100%; }

     .about-image-side {
        max-width: 220px;
        margin-top: 1rem;
    }
    
    .lead-text {
        font-size: 1.05rem;
    }
}

@media (max-width: 480px) {
    .container { padding-inline: 1.2rem; }
    .logo img { height: 5.5rem; }
    header { height: 6.5rem; }
    
    .main-img   { height: 15rem; }
    .sub-img-1,
    .sub-img-2  { height: 8.5rem; }
    .fact-box { padding: 0.9rem 1.1rem; }
    .hero { padding-block: 10rem 5rem; }
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
    gap: 2rem;
    padding-bottom: 2rem;
}

.gallery-item {
    cursor: pointer;
    height: 16rem;
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(11, 22, 22, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-img {
    max-width: 85vw;
    max-height: 85vh;
    border-radius: 0.8rem;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6);
    border: 0.125rem solid var(--gold);
    object-fit: contain;
    transform: scale(0.95);
    transition: transform var(--transition);
}

.lightbox.active .lightbox-img {
    transform: scale(1);
}

.lightbox-btn {
    position: absolute;
    background: rgba(22, 38, 38, 0.6);
    border: 0.0625rem solid var(--accent-line);
    color: var(--text-white);
    font-size: 1.8rem;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition);
    z-index: 101;
}

.lightbox-btn:hover {
    background: var(--navy-blue);
    border-color: var(--gold);
    color: var(--gold);
    transform: scale(1.1);
}

.lightbox-prev { left: 4%; }
.lightbox-next { right: 4%; }
.lightbox-close { 
    top: 3%; 
    right: 4%; 
    background: transparent; 
    border-color: transparent; 
    font-size: 2.2rem;
}
.lightbox-close:hover {
    background: transparent;
    border-color: transparent;
}

@media (max-width: 768px) {
    .lightbox-btn { width: 2.8rem; height: 2.8rem; font-size: 1.2rem; }
    .lightbox-prev { left: 2%; }
    .lightbox-next { right: 2%; }
    .lightbox-img { max-width: 95vw; }
}

@media (max-width: 892px) {
    .gallery-item {
        cursor: default;
        pointer-events: none;
    }
}