@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

:root {
    --color-primary: #2d5a27;
    --color-primary-dark: #1e3d1a;
    --color-primary-light: #3d8b40;
    --color-secondary: #4a7c59;
    --color-secondary-light: #8fb996;
    --color-accent: #3d8b40;
    --color-white: #ffffff;
    --color-off-white: #f8faf8;
    --color-light-gray: #f0f4f0;
    --color-gray: #6b7280;
    --color-dark-gray: #374151;
    --color-text: #1a1a1a;
    --color-text-light: #ffffff;
    --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    --gradient-accent: linear-gradient(135deg, #3d8b40 0%, #2d5a27 100%);
    --gradient-hero: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.6) 100%);
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.05);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.1), 0 10px 20px rgba(0,0,0,0.05);
    --shadow-glass: 0 8px 32px rgba(0,0,0,0.1);
    --radius: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease;
}

[data-theme="dark"] {
    --color-off-white: #0f0f0f;
    --color-light-gray: #1a1a1a;
    --color-text: #f0f0f0;
    --color-gray: #a0a0a0;
    --color-dark-gray: #d0d0d0;
    --color-white: #1a1a1a;
    --shadow: 0 4px 6px rgba(0,0,0,0.3), 0 2px 4px rgba(0,0,0,0.2);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.4), 0 10px 20px rgba(0,0,0,0.2);
    --shadow-glass: 0 8px 32px rgba(0,0,0,0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-off-white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(45, 90, 39, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: var(--transition);
}

nav.scrolled {
    background: rgba(30, 61, 26, 0.95);
    box-shadow: var(--shadow-lg);
}

nav .nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .logo-link {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    text-decoration: none;
    transition: var(--transition);
}

nav .logo-link:hover {
    transform: scale(1.02);
}

nav .logo-img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.3);
    transition: var(--transition);
}

nav .logo-link:hover .logo-img {
    border-color: rgba(255,255,255,0.6);
    box-shadow: 0 0 20px rgba(143, 185, 150, 0.4);
}

nav .logo-text {
    display: flex;
    flex-direction: column;
}

nav .logo-text-main {
    color: var(--color-white);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.5px;
}

nav .logo-text-sub {
    color: rgba(255,255,255,0.75);
    font-size: 0.8rem;
    font-weight: 400;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 0.5rem;
}

nav ul li a {
    text-decoration: none;
    color: rgba(255,255,255,0.85);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    position: relative;
    padding: 0.6rem 1rem;
    border-radius: var(--radius);
}

nav ul li a:hover {
    color: var(--color-white);
    background: rgba(255,255,255,0.1);
}

nav ul li a.active {
    color: var(--color-white);
    background: rgba(255,255,255,0.15);
}

/* Dropdown menu styles */
nav ul li.dropdown {
    position: relative;
}

nav ul li.dropdown .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(30, 61, 26, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius);
    padding: 0.5rem 0;
    min-width: 200px;
    box-shadow: var(--shadow-lg);
    z-index: 1001;
}

nav ul li.dropdown .dropdown-menu li {
    display: block;
}

nav ul li.dropdown .dropdown-menu li a {
    display: block;
    padding: 0.75rem 1.25rem;
    white-space: nowrap;
    font-size: 0.85rem;
}

nav ul li.dropdown:hover .dropdown-menu {
    display: block;
}

/* Theme toggle in navigation */
.nav-theme-toggle {
    background: rgba(255,255,255,0.1);
    border: none;
    color: var(--color-white);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.6rem 1rem;
    border-radius: var(--radius);
    transition: var(--transition);
    font-family: inherit;
}

.nav-theme-toggle:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.05);
}

.hero {
    margin-top: 0;
    position: relative;
    height: 110vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-bg iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    min-height: 100vh;
    min-width: 177.78vh;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-hero);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    max-width: 900px;
    animation: fadeInUp 1s ease-out;
}

.hero-content h1 {
    font-size: clamp(3rem, 10vw, 6rem);
    color: var(--color-white);
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 30px rgba(0,0,0,0.3);
    font-weight: 700;
    line-height: 1.1;
}

.hero-content h1 span {
    display: block;
    background: linear-gradient(135deg, #8fb996 0%, #3d8b40 50%, #8fb996 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.hero-subtitle {
    font-size: 1.35rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.page-header {
    margin-top: 0;
    position: relative;
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.page-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.page-header-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-hero);
    z-index: 1;
}

.page-header-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--color-white);
    padding: 2rem;
    animation: fadeInUp 0.8s ease-out;
}

.page-header-content h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    margin-bottom: 1rem;
    font-weight: 700;
}

.page-header-content p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.85);
    font-weight: 300;
}

.features {
    padding: 6rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: -200px;
    left: -200px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(143,185,150,0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-decoration: none;
    color: var(--color-text);
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
.feature-card:nth-child(5) { animation-delay: 0.5s; }
.feature-card:nth-child(6) { animation-delay: 0.6s; }

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    padding: 2px;
    background: linear-gradient(135deg, rgba(61,139,64,0.3), rgba(143,185,150,0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: var(--transition);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.feature-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.feature-card:hover .feature-card-image img {
    transform: scale(1.08);
}

.feature-card-content {
    padding: 1.75rem;
}

.feature-card-content h3 {
    color: var(--color-primary);
    margin-bottom: 0.75rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.feature-card-content p {
    color: var(--color-gray);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.feature-card-link {
    color: var(--color-accent);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.feature-card-link::after {
    content: '→';
    transition: var(--transition);
}

.feature-card:hover .feature-card-link::after {
    transform: translateX(5px);
}

.content-section {
    padding: 5rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.content-intro {
    max-width: 800px;
    margin: 0 auto 4rem;
    text-align: center;
}

.content-intro p {
    font-size: 1.15rem;
    color: var(--color-dark-gray);
    line-height: 1.9;
}

.section-subtitle {
    text-align: center;
    color: var(--color-primary);
    font-size: 2rem;
    margin-bottom: 3rem;
    font-weight: 600;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.info-card {
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-glass);
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.3);
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
}

.info-card:hover::before {
    opacity: 1;
}

.info-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.info-card-icon {
    font-size: 3rem;
    margin-bottom: 1.25rem;
    display: block;
}

.info-card h4 {
    color: var(--color-primary);
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.info-card p {
    color: var(--color-gray);
    font-size: 0.95rem;
    line-height: 1.7;
}

.highlight-box {
    background: var(--gradient-primary);
    color: var(--color-white);
    padding: 4rem 3rem;
    border-radius: var(--radius-xl);
    text-align: center;
    max-width: 900px;
    margin: 4rem auto;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.highlight-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 1; }
}

.highlight-box h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.highlight-box p {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    background: var(--color-light-gray);
    aspect-ratio: 4/3;
    transition: var(--transition);
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item::after {
    content: '🔍';
    position: absolute;
    inset: 0;
    background: rgba(45,90,39,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover::after {
    opacity: 1;
}

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.lightbox.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    color: var(--color-white);
    font-size: 2rem;
    line-height: 1;
    border: 1px solid rgba(255,255,255,0.2);
}

.lightbox-close:hover {
    background: rgba(255,255,255,0.2);
    transform: rotate(90deg) scale(1.1);
}

footer {
    background: var(--color-primary-dark);
    color: var(--color-white);
    padding: 0;
    margin-top: 6rem;
    position: relative;
}

.footer-panorama {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: cover;
    opacity: 0.5;
    display: block;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
    text-align: center;
}

.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    color: rgba(255,255,255,0.7);
    margin-bottom: 2rem;
}

.footer-copy {
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-copy p {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

.floating-cta {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.floating-cta a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: var(--gradient-primary);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(45,90,39,0.4);
    transition: var(--transition);
    font-size: 1.5rem;
}

.floating-cta a:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 8px 30px rgba(45,90,39,0.5);
}

.floating-cta .cta-book {
    width: auto;
    padding: 0 1.5rem;
    border-radius: 28px;
    font-size: 0.9rem;
    font-weight: 600;
    gap: 0.5rem;
}

.theme-toggle {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 999;
    width: 50px;
    height: 50px;
    background: var(--color-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].animated {
    opacity: 1;
    transform: translateY(0);
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    cursor: pointer;
    gap: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius);
    transition: var(--transition);
}

.hamburger:hover {
    background: rgba(255,255,255,0.2);
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-white);
    transition: var(--transition);
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center {
    text-align: center;
}

::selection {
    background: var(--color-secondary);
    color: var(--color-white);
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--color-secondary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero {
        height: 100vh;
    }
}

@media (max-width: 768px) {
    nav .nav-container {
        padding: 0.875rem 1.25rem;
    }
    
    nav .logo-img {
        width: 44px;
        height: 44px;
    }
    
    nav .logo-text-main {
        font-size: 1rem;
    }
    
    nav .logo-text-sub {
        font-size: 0.7rem;
    }
    
    nav ul {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(30, 61, 26, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        transform: translateX(-100%);
        transition: var(--transition);
    }
    
    nav ul.active {
        transform: translateX(0);
    }
    
    nav ul li {
        width: 100%;
        text-align: center;
    }
    
    nav ul li a {
        display: block;
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }
    
    /* Mobile dropdown styles */
    nav ul li.dropdown {
        width: 100%;
    }
    
    nav ul li.dropdown > a {
        pointer-events: none; /* Onemogući klik na glavni link */
    }
    
    nav ul li.dropdown .dropdown-menu {
        display: block;
        position: static;
        background: rgba(0, 0, 0, 0.2);
        backdrop-filter: none;
        box-shadow: none;
        padding: 0.5rem 0;
        margin-top: 0.5rem;
        min-width: auto;
    }
    
    nav ul li.dropdown .dropdown-menu li a {
        padding: 0.75rem 2rem 0.75rem 3rem;
        font-size: 1rem;
        background: transparent;
    }
    
    nav ul li.dropdown .dropdown-menu li a:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .nav-theme-toggle {
        margin: 1rem auto;
        display: block;
    }
    
    .hamburger {
        display: flex;
        z-index: 1001;
    }
    
    .hero,
    .page-header {
        margin-top: 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-panorama {
        height: 150px;
    }
    
    .floating-cta {
        bottom: 1.5rem;
        right: 1.5rem;
    }
    
    .floating-cta a {
        width: 50px;
        height: 50px;
    }
    
    .floating-cta .cta-book {
        width: auto;
        padding: 0 1.25rem;
        font-size: 0.85rem;
    }
    
    .theme-toggle {
        bottom: 1.5rem;
        left: 1.5rem;
        width: 44px;
        height: 44px;
    }
    
    .highlight-box {
        padding: 2.5rem 1.5rem;
        margin: 3rem 1rem;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .section-subtitle {
        font-size: 1.5rem;
    }
    
    .features {
        padding: 3rem 1rem;
    }
}
