/* ========================================
   O NAMA - KOMPLETAN CSS KOD
   ======================================== */

/* About Hero Section - SUPTILNE ANIMACIJE */
.about-hero {
    padding: 120px 5% 100px; /* ZADRŽANA ORIGINALNA VISINA */
    position: relative;
    overflow: hidden;
    /* Osnovni gradijent i pozadinska slika u jednom */
    background: linear-gradient(135deg, rgba(10, 15, 28, 0.8) 0%, rgba(0, 30, 60, 0.7) 50%, rgba(10, 15, 28, 0.8) 100%);
    background-image: 
        linear-gradient(135deg, rgba(10, 15, 28, 0.8) 0%, rgba(0, 30, 60, 0.7) 50%, rgba(10, 15, 28, 0.8) 100%),
        url('../images/slides/slide-1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    
    /* SUPTILNA animacija učitavanja */
    opacity: 0;
    animation: heroFadeInSubtle 2.5s ease-out forwards;
}

/* Suptilna animacija učitavanja */
@keyframes heroFadeInSubtle {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* SUPTILNI ANIMIRANI MJEHURIČI */
.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 3%),
        radial-gradient(circle at 80% 20%, rgba(0, 168, 255, 0.15) 0%, transparent 4%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.08) 0%, transparent 2%),
        radial-gradient(circle at 60% 70%, rgba(0, 168, 255, 0.12) 0%, transparent 3%),
        radial-gradient(circle at 90% 60%, rgba(255, 255, 255, 0.1) 0%, transparent 3%),
        radial-gradient(circle at 10% 30%, rgba(0, 168, 255, 0.08) 0%, transparent 2%);
    background-size: 
        150px 150px, 120px 120px, 80px 80px, 130px 130px,
        100px 100px, 110px 110px;
    animation: veryGentleBubbles 25s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    animation: veryGentleBubbles 25s ease-in-out infinite,
               bubblesAppearSubtle 3s ease-out 1s forwards;
}

/* Suptilno pojavljivanje mjehuriča */
@keyframes bubblesAppearSubtle {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 0.6; /* Manja opacity */
    }
}

/* Vrlo suptilna animacija mjehuriča */
@keyframes veryGentleBubbles {
    0%, 100% { 
        background-position: 
            20% 80%, 80% 20%, 40% 40%, 60% 70%, 
            90% 60%, 10% 30%;
        transform: translateY(0);
    }
    50% { 
        background-position: 
            25% 75%, 75% 25%, 45% 35%, 55% 75%, 
            85% 55%, 15% 35%;
        transform: translateY(-2px); /* Smanjeno sa -5px */
    }
}

/* Suptilni prijelaz prema dolje */
.about-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, 
        transparent 0%, 
        rgba(10, 15, 28, 0.2) 40%,
        rgba(10, 15, 28, 0.5) 70%,
        rgba(10, 15, 28, 0.8) 90%,
        #0a0f1c 100%
    );
    pointer-events: none;
    z-index: 10;
    opacity: 0;
    animation: transitionAppearSubtle 2s ease-out 1.5s forwards;
}

/* Suptilna animacija prijelaza */
@keyframes transitionAppearSubtle {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* SUPTILNI hover efekt */
.about-hero:hover {
    background-size: 102% auto; /* Smanjeno sa 105% */
    transition: background-size 1s ease; /* Sporiji prijelaz */
}

.about-hero:hover::before {
    animation-duration: 20s; /* Sporiji na hover umjesto 8s */
}

/* Alternativa s jačim overlay-om - SUPTILNA VERZIJA */
.about-hero.with-stronger-overlay {
    background-image: 
        linear-gradient(135deg, rgba(10, 15, 28, 0.85) 0%, rgba(0, 30, 60, 0.75) 50%, rgba(10, 15, 28, 0.85) 100%),
        url('../images/slides/slide-1.jpg');
}

.about-hero.with-stronger-overlay::before {
    opacity: 0;
    animation: veryGentleBubbles 30s ease-in-out infinite,
               bubblesAppearSubtle 4s ease-out 2s forwards;
}

/* Responsive prilagodbe - suptilnije */
@media (max-width: 768px) {
    .about-hero {
        padding: 80px 5% 60px;
        background-attachment: scroll;
        animation: heroFadeInMobileSubtle 2s ease-out forwards;
    }
    
    @keyframes heroFadeInMobileSubtle {
        0% {
            opacity: 0;
            transform: translateY(5px); /* Smanjeno sa 15px */
        }
        100% {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    /* Još suptilniji mjehuriči na mobilnom */
    .about-hero::before {
        background-size: 
            100px 100px, 80px 80px, 60px 60px, 90px 90px,
            70px 70px, 80px 80px;
        animation-duration: 30s; /* Još sporiji */
        opacity: 0;
        animation: veryGentleBubbles 30s ease-in-out infinite,
                   bubblesAppearSubtle 4s ease-out 2s forwards;
    }
    
    .about-hero::after {
        height: 80px;
    }
}

@media (max-width: 480px) {
    .about-hero {
        padding: 60px 5% 40px;
    }
    
    .about-hero::after {
        height: 60px;
    }
    
    /* Još manje mjehuriča na malim ekranima */
    .about-hero::before {
        background-size: 
            80px 80px, 60px 60px, 50px 50px, 70px 70px,
            60px 60px, 65px 65px;
    }
}

/* Za korisike koji preferiraju manje animacija */
@media (prefers-reduced-motion: reduce) {
    .about-hero,
    .about-hero::before,
    .about-hero::after {
        animation: none !important;
        transition: none !important;
    }
    
    .about-hero {
        opacity: 1;
        transform: none;
    }
    
    .about-hero::before {
        opacity: 0.3; /* Još manja opacity */
    }
    
    .about-hero::after {
        opacity: 1;
    }
}

/* Particles također trebaju biti iznad pozadine */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

/* Dodatni efekt za bolji kontrast teksta */
.welcome-section,
.story-grid,
.zadar-section,
.about-cta {
    position: relative;
    z-index: 5;
}

/* Opcija za parallax efekt na desktopu */
@media (min-width: 768px) {
    .about-hero::after {
        background-attachment: fixed;
    }
}

/* Za mobilne uređaje - bez parallax efekta */
@media (max-width: 767px) {
    .about-hero::after {
        background-attachment: scroll;
        opacity: 0.1; /* Još transparentniji na mobilnim uređajima */
    }
}

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

/* Particles */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(0, 168, 255, 0.4);
    border-radius: 50%;
    animation: float-up 15s linear infinite;
}

@keyframes float-up {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 13s; }
.particle:nth-child(2) { left: 20%; animation-delay: 2s; animation-duration: 15s; }
.particle:nth-child(3) { left: 35%; animation-delay: 4s; animation-duration: 17s; }
.particle:nth-child(4) { left: 50%; animation-delay: 6s; animation-duration: 14s; }
.particle:nth-child(5) { left: 65%; animation-delay: 8s; animation-duration: 16s; }
.particle:nth-child(6) { left: 80%; animation-delay: 10s; animation-duration: 12s; }
.particle:nth-child(7) { left: 90%; animation-delay: 12s; animation-duration: 18s; }

/* Welcome Section */
.welcome-section {
    text-align: center;
    margin-bottom: 5rem;
    opacity: 0;
    animation: fadeInDown 1s ease forwards;
    position: relative;
    z-index: 5;
}

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

.welcome-title {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.word-animate {
    display: inline-block;
    opacity: 0;
    animation: wordFadeIn 0.8s ease forwards;
}

.word-animate:nth-child(1) { animation-delay: 0.2s; }
.word-animate:nth-child(2) { animation-delay: 0.4s; }

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

.welcome-subtitle {
    font-size: 1.5rem;
    color: #00a8ff;
    font-weight: 300;
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    animation-delay: 0.8s;
}

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

/* ===== PROŠIRENE STORY CARDS - JEDAN RED ===== */

/* Story Grid - prilagođeno za jedan red */
.story-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Fiksno 3 kolone */
    gap: 2rem; /* Smanjen gap za bolji prikaz */
    margin-bottom: 5rem;
    position: relative;
    z-index: 2;
    max-width: 1350px;
    margin-left: auto;
    margin-right: auto;
}

/* Story Cards - optimizirane za jedan red */
.story-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2.5rem 2rem; /* Smanjen padding */
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: cardFadeIn 0.8s ease forwards;
    z-index: 3;
    backdrop-filter: blur(10px);
    min-height: 420px; /* Fiksna visina za ujednačenost */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.story-card:nth-child(1) { animation-delay: 0.2s; }
.story-card:nth-child(2) { animation-delay: 0.4s; }
.story-card:nth-child(3) { animation-delay: 0.6s; }

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

.story-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 168, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.story-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 168, 255, 0.3);
    border-color: rgba(0, 168, 255, 0.5);
}

.story-icon {
    margin-bottom: 1.5rem; /* Smanjen sa 2rem */
    display: inline-block;
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.story-icon svg {
    width: 70px; /* Smanjen sa 80px */
    height: 70px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.story-card:hover .story-icon svg {
    transform: scale(1.1);
}

.story-card:nth-child(odd) .story-icon {
    animation-delay: 0.5s;
}

.story-title {
    font-size: 1.6rem; /* Smanjen sa 1.8rem */
    color: #00d4ff;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.story-text {
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6; /* Smanjen sa 1.8 */
    font-size: 1rem; /* Smanjen sa 1.1rem */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    flex-grow: 1;
    display: flex;
    align-items: center;
}

/* Responsive adjustments za jako široke ekrane */
@media (min-width: 1600px) {
    .about-container {
        max-width: 1600px;
        padding-left: 3%;
        padding-right: 3%;
    }
    
    .story-grid {
        gap: 3rem;
        max-width: 1500px;
    }
    
    .story-card {
        padding: 3rem 2.5rem;
        min-height: 450px;
    }
    
    .story-text {
        font-size: 1.1rem;
        line-height: 1.7;
    }
    
    .story-title {
        font-size: 1.8rem;
    }
}

/* Tablet prikaz - održava jedan red */
@media (max-width: 1200px) and (min-width: 900px) {
    .story-grid {
        gap: 1.5rem;
    }
    
    .story-card {
        padding: 2rem 1.5rem;
        min-height: 400px;
    }
    
    .story-text {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .story-title {
        font-size: 1.5rem;
    }
}

/* Manja razlučivost - prelazi na 2+1 layout */
@media (max-width: 899px) {
    .story-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .story-card:last-child {
        grid-column: 1 / -1;
        max-width: 500px;
        justify-self: center;
    }
}

/* Mobilni prikaz - jedna kolona */
@media (max-width: 600px) {
    .story-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .story-card {
        min-height: 320px;
        padding: 2rem 1.5rem;
    }
    
    .story-card:last-child {
        grid-column: 1;
        max-width: none;
        justify-self: stretch;
    }
    
    .story-text {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .story-title {
        font-size: 1.6rem;
    }
}

/* ===== ZADAR SECTION - PROŠIRENO ===== */

/* Zadar Section - usklađeno sa story grid */
.zadar-section {
    background: linear-gradient(135deg, rgba(0, 168, 255, 0.1) 0%, rgba(0, 168, 255, 0.05) 100%);
    border-radius: 30px;
    padding: 4rem;
    margin-bottom: 5rem;
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: sectionFadeIn 1s ease forwards;
    animation-delay: 1s;
    z-index: 2;
    max-width: 1350px;
    margin-left: auto;
    margin-right: auto;
}

@keyframes sectionFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.section-title {
    font-size: 2.5rem;
    color: white;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #00a8ff, transparent);
}

.zadar-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem; /* Povećan gap */
    align-items: start; /* Promjenjeno sa center */
}

.zadar-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.hitchcock-quote {
    background: rgba(0, 0, 0, 0.3);
    border-left: 4px solid #00a8ff;
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 0 15px 15px 0;
    position: relative;
}

.quote-icon {
    position: absolute;
    top: -10px;
    left: 20px;
    opacity: 0.3;
}

.quote-text {
    font-size: 1.3rem;
    font-style: italic;
    color: #00a8ff;
    margin-bottom: 1rem;
}

.quote-author {
    color: rgba(255, 255, 255, 0.6);
    text-align: right;
}

/* Features Grid - optimiziran za široki prikaz */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem; /* Smanjen gap za bolji prikaz */
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem; /* Smanjen padding */
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(0, 168, 255, 0.1);
    transform: translateX(10px);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: rgba(0, 168, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-text {
    color: rgba(255, 255, 255, 0.9);
}

/* Responsive za zadar section */
@media (max-width: 1200px) {
    .zadar-content {
        gap: 3rem;
    }
    
    .zadar-section {
        padding: 3rem;
    }
}

@media (max-width: 900px) {
    .zadar-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* ===== CTA SECTION - PROŠIRENO ===== */

.about-cta {
    text-align: center;
    margin-top: 5rem;
    margin-bottom: 2rem;
    padding: 3rem;
    background: radial-gradient(circle at center, rgba(0, 168, 255, 0.1) 0%, transparent 70%);
    border-radius: 30px;
    position: relative;
    z-index: 2;
    max-width: 1350px;
    margin-left: auto;
    margin-right: auto;
}

.cta-title {
    font-size: 2rem;
    color: white;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: #00a8ff;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
}

.cta-button:hover::before {
    width: 300px;
    height: 300px;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 168, 255, 0.5);
}

/* Morski prijelaz */
/* ========================================
   POBOLJŠANI MORSKI PRIJELAZ
   ======================================== */

/* ========================================
   PRILAGOĐENI MORSKI PRIJELAZ
   ======================================== */

/* Elegantan prijelaz između sekcija */
.sea-horizon-transition {
    position: relative;
    height: 200px;
    margin-top: -20px;
    margin-bottom: -50px;
    overflow: hidden; /* Važno za desni efekt */
    z-index: 10;
    /* Blag prijelaz gore i dolje */
    background: linear-gradient(to bottom, 
        transparent 0%,
        rgba(10, 15, 28, 0.1) 10%,
        rgba(10, 15, 28, 0.3) 20%,
        rgba(10, 15, 28, 0.5) 40%,
        rgba(10, 15, 28, 0.7) 60%,
        rgba(10, 15, 28, 0.9) 80%,
        rgba(10, 15, 28, 0.95) 90%,
        #0a0f1c 100%
    );
    /* Desni "nedostajući" efekt */
    mask-image: linear-gradient(to right,
        black 0%,
        black 70%,
        rgba(0,0,0,0.8) 80%,
        rgba(0,0,0,0.4) 90%,
        transparent 100%
    );
    -webkit-mask-image: linear-gradient(to right,
        black 0%,
        black 70%,
        rgba(0,0,0,0.8) 80%,
        rgba(0,0,0,0.4) 90%,
        transparent 100%
    );
}

/* Dodatni overlay za dublji efekt */
.sea-horizon-transition::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: -10%;
    bottom: 0;
    background: linear-gradient(to right,
        transparent 0%,
        transparent 65%,
        rgba(10, 15, 28, 0.5) 75%,
        #0a0f1c 85%,
        #0a0f1c 100%
    );
    z-index: 20;
}

/* Animirane zvijezde - prilagođene pozicije */
.sea-horizon-transition .stars {
    position: absolute;
    width: 80%; /* Smanjena širina */
    height: 100%;
    left: 0;
    background-image: 
        radial-gradient(3px 3px at 20% 30%, rgba(255,255,255,0.8), transparent),
        radial-gradient(3px 3px at 40% 70%, rgba(255,255,255,0.8), transparent),
        radial-gradient(2px 2px at 50% 50%, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 60% 20%, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 10% 60%, rgba(255,255,255,0.7), transparent);
    background-size: 300px 300px;
    animation: twinkle 5s ease-in-out infinite;
    opacity: 0.7;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

/* Horizont linija sa sjajom - skraćena */
.sea-horizon-transition .horizon {
    position: absolute;
    bottom: 80px;
    left: 0;
    right: 20%; /* Završava prije desnog ruba */
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(0, 168, 255, 0.3) 5%,
        rgba(0, 168, 255, 0.8) 40%,
        rgba(0, 168, 255, 0.6) 80%,
        rgba(0, 168, 255, 0.2) 95%,
        transparent 100%
    );
    box-shadow: 
        0 0 20px rgba(0, 168, 255, 0.6),
        0 0 40px rgba(0, 168, 255, 0.3);
    animation: horizonGlow 4s ease-in-out infinite;
}

@keyframes horizonGlow {
    0%, 100% { 
        opacity: 0.4;
        transform: scaleX(0.95);
    }
    50% { 
        opacity: 0.8;
        transform: scaleX(1);
    }
}

/* Refleksija mjeseca na vodi - pomaknuta lijevo */
.sea-horizon-transition .moon-reflection {
    position: absolute;
    bottom: 40px;
    left: 35%; /* Pomaknuto lijevo */
    transform: translateX(-50%);
    width: 120px;
    height: 60px;
    background: radial-gradient(ellipse at center, 
        rgba(255, 255, 255, 0.2) 0%,
        rgba(0, 168, 255, 0.15) 30%,
        rgba(0, 168, 255, 0.05) 60%,
        transparent 80%
    );
    filter: blur(20px);
    animation: moonReflection 6s ease-in-out infinite;
    opacity: 0.6;
}

@keyframes moonReflection {
    0%, 100% { 
        transform: translateX(-50%) scaleX(1);
        opacity: 0.3;
    }
    50% { 
        transform: translateX(-50%) scaleX(1.2);
        opacity: 0.6;
    }
}

/* Animirani valovi - fade out na desnoj strani */
.sea-horizon-transition .waves {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' fill='rgba(0,168,255,0.2)'/%3E%3C/svg%3E");
    background-size: 120% 100%;
    animation: waveMotion 8s ease-in-out infinite;
    opacity: 0.5;
    mask-image: linear-gradient(to right,
        black 0%,
        black 60%,
        transparent 90%
    );
    -webkit-mask-image: linear-gradient(to right,
        black 0%,
        black 60%,
        transparent 90%
    );
}

@keyframes waveMotion {
    0%, 100% { transform: translateX(0) translateY(0); }
    50% { transform: translateX(-3%) translateY(-3px); }
}

/* Jedrilica koja plovi - završava ranije */
.sea-horizon-transition .sailboat {
    position: absolute;
    bottom: 90px;
    left: -60px;
    width: 50px;
    height: 50px;
    animation: sailing 20s linear infinite;
    filter: drop-shadow(0 0 8px rgba(0, 168, 255, 0.4));
    opacity: 0.8;
}

@keyframes sailing {
    0% { 
        left: -60px;
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    5% {
        opacity: 0.8;
    }
    25% {
        transform: translateY(-3px) rotate(2deg);
    }
    50% {
        transform: translateY(2px) rotate(-1deg);
    }
    70% {
        transform: translateY(-2px) rotate(1deg);
        opacity: 0.8;
    }
    80% { 
        left: 65%;
        opacity: 0;
    }
    100% { 
        left: 65%;
        opacity: 0;
    }
}

/* Svjetlucavi efekt na vodi - samo lijeva strana */
.sea-sparkles {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 40%; /* Završava ranije */
    height: 40px;
}

.sea-sparkles span {
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.6);
    animation: sparkle 3s linear infinite;
    opacity: 0.6;
}

.sea-sparkles span:nth-child(1) { left: 10%; animation-delay: 0s; bottom: 20px; }
.sea-sparkles span:nth-child(2) { left: 25%; animation-delay: 0.5s; bottom: 30px; }
.sea-sparkles span:nth-child(3) { left: 40%; animation-delay: 1s; bottom: 25px; }
.sea-sparkles span:nth-child(4) { left: 55%; animation-delay: 1.5s; bottom: 35px; }
.sea-sparkles span:nth-child(5) { left: 70%; animation-delay: 2s; bottom: 20px; opacity: 0.3; }

@keyframes sparkle {
    0%, 100% { 
        opacity: 0;
        transform: scale(0) translateY(0);
    }
    50% { 
        opacity: 0.6;
        transform: scale(1) translateY(-8px);
    }
}

/* Dodatni fade efekt za gore */
.sea-horizon-transition::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to bottom,
        transparent 0%,
        rgba(10, 15, 28, 0.05) 50%,
        rgba(10, 15, 28, 0.1) 100%
    );
    z-index: 1;
}

/* Responsive prilagodbe */
@media (max-width: 768px) {
    .sea-horizon-transition {
        height: 150px;
        margin-top: -10px;
    }
    
    .sea-horizon-transition .sailboat {
        width: 40px;
        height: 40px;
        bottom: 70px;
    }
    
    .sea-horizon-transition .horizon {
        bottom: 60px;
        right: 25%;
    }
    
    .sea-sparkles {
        right: 50%;
    }
}

/* Dodatni responsive za welcome section i naslov */
@media (max-width: 768px) {
    .welcome-title {
        font-size: 2.5rem;
    }
    
    .welcome-subtitle {
        font-size: 1.2rem;
    }
    
    .about-container {
        padding-left: 5%;
        padding-right: 5%;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cta-title {
        font-size: 1.5rem;
    }
}


/* ========================================
   12. FOOTER STILOVI (ako nedostaju u style.css)
   ======================================== */

/* Footer transition */
.footer-transition {
    position: relative;
    height: 100px;
    overflow: hidden;
    background: linear-gradient(to bottom, #0a0f1c 0%, transparent 100%);
}

.horizon-line {
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(0, 168, 255, 0.5), 
        transparent
    );
}

.horizon-glow {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 40px;
    background: radial-gradient(ellipse, 
        rgba(0, 168, 255, 0.2) 0%, 
        transparent 70%
    );
    filter: blur(20px);
}

/* Zvijezde */
.horizon-stars {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
}

.horizon-stars span {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    animation: twinkle 3s ease-in-out infinite;
}

.horizon-stars span:nth-child(1) { top: 20%; left: 20%; animation-delay: 0s; }
.horizon-stars span:nth-child(2) { top: 30%; left: 50%; animation-delay: 0.5s; }
.horizon-stars span:nth-child(3) { top: 15%; left: 70%; animation-delay: 1s; }
.horizon-stars span:nth-child(4) { top: 40%; left: 30%; animation-delay: 1.5s; }
.horizon-stars span:nth-child(5) { top: 25%; left: 80%; animation-delay: 2s; }

@keyframes twinkle {
    0%, 100% { 
        opacity: 0.3;
        transform: scale(1);
    }
    50% { 
        opacity: 1;
        transform: scale(1.5);
    }
}
/* Ako footer stilovi nedostaju */
footer {
    background: #0a0f1c;
    position: relative;
    overflow: hidden;
}

/* Lightbox mora biti iznad svega */
.lightbox {
    z-index: 99999 !important;
}

.lightbox-close,
.lightbox-nav,
.lightbox-info,
.image-counter {
    z-index: 100000 !important;
}

/* ========================================
   FOOTER OPTIMIZACIJA ZA NOVI PRIJELAZ
   ======================================== */

/* Ukloni stari footer-transition */
.footer-transition {
    display: none !important;
}

/* Optimiziraj footer pozadinu */
footer {
    background: #0a0f1c;
    position: relative;
    margin-top: -50px; /* Preklapanje sa prijelazom */
    padding-top: 80px; /* Kompenzacija za preklapanje */
}

/* Ukloni nepotrebne pseudo elemente koji mogu usporavati */
footer::before {
    display: none;
}

/* Pojednostavi footer hero animaciju */
.footer-hero {
    position: relative;
    z-index: 1;
}

/* Smanji broj animiranih elemenata */
.footer-decorations {
    opacity: 0.5; /* Smanji vidljivost za bolje performanse */
}

/* Optimizacija za mobilne uređaje */
@media (max-width: 768px) {
    /* Isključi složene animacije na mobilnim */
    .sea-horizon-transition .sailboat {
        animation: none;
        left: 20%;
    }
    
    .sea-sparkles {
        display: none;
    }
    
    footer {
        margin-top: -30px;
        padding-top: 50px;
    }
}

/* Dodatna optimizacija za spore uređaje */
@media (prefers-reduced-motion: reduce) {
    .sea-horizon-transition * {
        animation: none !important;
    }
    
    .waves {
        display: none;
    }
}

/* Promjena boje horizonta */
.horizon {
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 215, 0, 0.5), /* Zlatni zalazak */
        transparent
    );
}

/* Dodavanje više jedrilica */
.sailboat:nth-child(2) {
    animation-delay: 15s;
    bottom: 70px;
}



/* ========================================
   POPRAVKA ZA VIDLJIVOST PRIJELAZA
   ======================================== */

/* Osiguraj da je prijelaz vidljiv */
.sea-horizon-transition {
    position: relative;
    height: 200px; /* Povećaj visinu */
    margin-top: 0; /* Ukloni negativnu marginu */
    margin-bottom: -50px; /* Samo malo preklapanje s footerom */
    overflow: visible; /* Promijeni na visible */
    z-index: 10;
    background: linear-gradient(to bottom, 
        #0a0f1c 0%, 
        rgba(10, 15, 28, 0.9) 50%,
        rgba(10, 15, 28, 0.7) 100%
    );
}

/* Osiguraj da su elementi vidljivi */
.sea-horizon-transition * {
    position: absolute;
}

/* Povećaj kontrast za zvijezde */
.sea-horizon-transition .stars {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(3px 3px at 20% 30%, rgba(255,255,255,0.8), transparent),
        radial-gradient(3px 3px at 40% 70%, rgba(255,255,255,0.8), transparent),
        radial-gradient(2px 2px at 50% 50%, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 80% 20%, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 10% 60%, rgba(255,255,255,0.7), transparent),
        radial-gradient(3px 3px at 90% 40%, rgba(255,255,255,0.8), transparent);
    background-size: 300px 300px;
    animation: twinkle 5s ease-in-out infinite;
}

/* Pojačaj horizont liniju */
.sea-horizon-transition .horizon {
    position: absolute;
    bottom: 80px;
    left: 0;
    right: 0;
    height: 2px; /* Deblja linija */
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(0, 168, 255, 0.5) 10%,
        rgba(0, 168, 255, 1) 50%,
        rgba(0, 168, 255, 0.5) 90%,
        transparent 100%
    );
    box-shadow: 
        0 0 30px rgba(0, 168, 255, 0.8),
        0 0 60px rgba(0, 168, 255, 0.4);
    animation: horizonGlow 4s ease-in-out infinite;
}

/* Pojačaj refleksiju mjeseca */
.sea-horizon-transition .moon-reflection {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 80px;
    background: radial-gradient(ellipse at center, 
        rgba(255, 255, 255, 0.3) 0%,
        rgba(0, 168, 255, 0.2) 30%,
        rgba(0, 168, 255, 0.1) 60%,
        transparent 80%
    );
    filter: blur(15px);
    animation: moonReflection 6s ease-in-out infinite;
}

/* Vidljiviji valovi */
.sea-horizon-transition .waves {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' fill='rgba(0,168,255,0.2)'/%3E%3C/svg%3E");
    background-size: 120% 100%;
    animation: waveMotion 8s ease-in-out infinite;
    opacity: 0.8;
}

/* Dodatni val za dubinu */
.sea-horizon-transition::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' fill='rgba(255,255,255,0.05)'/%3E%3C/svg%3E");
    background-size: 150% 100%;
    animation: waveMotion 12s ease-in-out infinite reverse;
    opacity: 0.5;
}

/* Veća jedrilica */
.sea-horizon-transition .sailboat {
    position: absolute;
    bottom: 90px;
    left: -60px;
    width: 50px;
    height: 50px;
    animation: sailing 25s linear infinite;
    filter: drop-shadow(0 0 10px rgba(0, 168, 255, 0.5));
}

/* Svjetlucanje vidljivije */
.sea-sparkles span {
    position: absolute;
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    animation: sparkle 3s linear infinite;
}

/* Dodatni sjaj */
.sea-horizon-transition::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(to bottom,
        transparent 0%,
        transparent 60%,
        rgba(0, 168, 255, 0.05) 80%,
        rgba(0, 168, 255, 0.1) 100%
    );
    pointer-events: none;
}

/* Ukloni suvišne stilove koji mogu sakriti prijelaz */
.gallery-page {
    padding-bottom: 60px !important; /* Smanji padding */
}

.gallery-page::after {
    display: none !important; /* Privremeno ugasi */
}

/* Osiguraj vidljivost footera */
footer {
    position: relative;
    z-index: 5;
    background: #0a0f1c !important;
}

/* Debug - privremeno dodaj border da vidiš gdje je prijelaz */
.sea-horizon-transition {
    /* border: 2px solid red; */ /* Ukloni ovo nakon testiranja */
}

/* Animacije */
@keyframes sparkle {
    0%, 100% { 
        opacity: 0;
        transform: scale(0) translateY(0);
    }
    50% { 
        opacity: 1;
        transform: scale(1) translateY(-10px);
    }
}

@keyframes sailing {
    0% { 
        left: -60px;
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-5px) rotate(3deg);
    }
    50% {
        transform: translateY(3px) rotate(-2deg);
    }
    75% {
        transform: translateY(-3px) rotate(1deg);
    }
    100% { 
        left: calc(100% + 60px);
        transform: translateY(0) rotate(0deg);
    }
}

/* Dodajte ovo u o_nama.css */

/* Story Cards sa pozadinskim slikama */
.story-card {
    background: linear-gradient(
        rgba(10, 15, 28, 0.85), 
        rgba(0, 30, 60, 0.8)
    ), url('../images/o_nama/default-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: cardFadeIn 0.8s ease forwards;
    z-index: 3;
    backdrop-filter: blur(10px);
    min-height: 420px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer; /* Dodano za clickable */
}

/* Specifične pozadinske slike za svaku karticu */
.story-card[data-src*="stara_kuca"] {
    background-image: linear-gradient(
        rgba(10, 15, 28, 0.85), 
        rgba(0, 30, 60, 0.8)
    ), url('../images/o_nama/stara_kuca.jpg');
}

.story-card[data-src*="lokacija"] {
    background-image: linear-gradient(
        rgba(10, 15, 28, 0.85), 
        rgba(0, 30, 60, 0.8)
    ), url('../images/o_nama/lokacija.jpg');
}

.story-card[data-src*="komfor"] {
    background-image: linear-gradient(
        rgba(10, 15, 28, 0.85), 
        rgba(0, 30, 60, 0.8)
    ), url('../images/o_nama/komfor.jpg');
}

/* Hover efekt za pozadinske slike */
.story-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 168, 255, 0.3);
    border-color: rgba(0, 168, 255, 0.5);
    background-size: 110%; /* Zoom efekt */
}

/* Overlay za bolju čitljivost teksta */
.story-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 168, 255, 0.1) 50%,
        rgba(0, 0, 0, 0.3) 100%
    );
    transition: opacity 0.3s ease;
    z-index: -1;
}

.story-card:hover::after {
    opacity: 0.7;
}

/* Osiguraj da je tekst iznad pozadine */
.story-icon,
.story-title,
.story-text {
    position: relative;
    z-index: 2;
}

/* Poboljšaj kontrast teksta */
.story-title {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.story-text {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    border-radius: 10px;
    backdrop-filter: blur(5px);
}