/**
 * Promet.css - Transport stranica stilovi
 * Apartmani Šimićev
 */

/* ========================================
   1. KEYFRAME ANIMACIJE
   ======================================== */

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

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

@keyframes slideInUp {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0) rotate(0deg); 
    }
    50% { 
        transform: translateY(-10px) rotate(5deg); 
    }
}

@keyframes spin360 {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes bounce-gentle {
    0%, 100% { 
        transform: translateY(0); 
    }
    50% { 
        transform: translateY(-5px); 
    }
}

@keyframes glow {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(0, 168, 255, 0.3);
    }
    50% { 
        box-shadow: 0 0 40px rgba(0, 168, 255, 0.6);
    }
}

@keyframes road-lines {
    0% { transform: translateX(0); }
    100% { transform: translateX(100px); }
}

/* ========================================
   2. TRANSPORT HERO SECTION
   ======================================== */

.transport-hero {
    padding: 120px 5% 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 500px;
    background: linear-gradient(
        135deg,
        rgba(0, 30, 60, 0.95) 0%,
        rgba(0, 102, 204, 0.8) 50%,
        rgba(0, 168, 255, 0.7) 100%
    );
    background-image: 
        linear-gradient(135deg, rgba(0, 30, 60, 0.95), rgba(0, 168, 255, 0.7)),
        url('../images/slides/slide-1.jpg'),
        url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHZpZXdCb3g9IjAgMCA2MCA2MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8ZGVmcz4KICAgIDxwYXR0ZXJuIGlkPSJncmlkIiB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiPgogICAgICA8cGF0aCBkPSJNIDYwIDAgTCAwIDAgMCA2MCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSJyZ2JhKDI1NSwyNTUsMjU1LDAuMDUpIiBzdHJva2Utd2lkdGg9IjEiLz4KICAgIDwvcGF0dGVybj4KICA8L2RlZnM+CiAgPHJlY3Qgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsbD0idXJsKCNncmlkKSIgLz4KPC9zdmc+');
    background-size: auto, cover, 60px 60px;
    background-position: center, center, center;
    background-attachment: scroll, fixed, scroll;
}

.transport-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        circle at 30% 70%, 
        rgba(0, 168, 255, 0.2) 0%, 
        transparent 50%
    ),
    radial-gradient(
        circle at 70% 30%, 
        rgba(255, 215, 0, 0.1) 0%, 
        transparent 50%
    );
    animation: pulse 6s ease-in-out infinite;
}

/* Animated road lines */
.transport-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: 
        repeating-linear-gradient(
            90deg,
            transparent 0px,
            transparent 40px,
            rgba(255, 255, 255, 0.1) 40px,
            rgba(255, 255, 255, 0.1) 50px,
            transparent 50px,
            transparent 90px
        );
    animation: road-lines 4s linear infinite;
    opacity: 0.6;
}

.transport-intro {
    max-width: 900px;
    margin: 0 auto 4rem;
    position: relative;
    z-index: 1;
}

.transport-intro h1 {
    font-size: 3.8rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, #fff, #00a8ff, #ffd700);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradient-shift 4s ease infinite;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    font-weight: 700;
    line-height: 1.2;
}

.transport-intro p {
    font-size: 1.3rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   3. QUICK NAVIGATION
   ======================================== */

.quick-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.quick-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: white;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    min-width: 140px;
    opacity: 0;
    transform: translateY(30px);
    animation: slideInUp 0.6s ease forwards;
}

.quick-nav-btn:nth-child(1) { animation-delay: 0.1s; }
.quick-nav-btn:nth-child(2) { animation-delay: 0.2s; }
.quick-nav-btn:nth-child(3) { animation-delay: 0.3s; }
.quick-nav-btn:nth-child(4) { animation-delay: 0.4s; }

.quick-nav-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(0, 168, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
    z-index: -1;
}

.quick-nav-btn:hover::before {
    width: 200px;
    height: 200px;
}

.quick-nav-btn:hover {
    transform: translateY(-5px) scale(1.05);
    border-color: #00a8ff;
    box-shadow: 
        0 15px 40px rgba(0, 168, 255, 0.4),
        0 0 30px rgba(255, 255, 255, 0.2);
}

.quick-nav-icon {
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.quick-nav-btn:hover .quick-nav-icon {
    animation: bounce-gentle 1s ease infinite;
}

.quick-nav-btn:hover .quick-nav-icon svg {
    filter: drop-shadow(0 0 10px rgba(0, 168, 255, 0.8));
}

.quick-nav-btn span {
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========================================
   4. TRANSPORT OPTIONS LAYOUT
   ======================================== */

.transport-options {
    padding: 80px 5%;
    min-height: 100vh;
    position: relative;
    background: 
        linear-gradient(180deg, #0a0f1c 0%, #001e3c 50%, #0a0f1c 100%),
        radial-gradient(ellipse at top, rgba(0, 102, 204, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at bottom, rgba(0, 168, 255, 0.1) 0%, transparent 50%);
    background-size: 100% 100%, 100% 50%, 100% 50%;
    background-position: center, top, bottom;
    background-repeat: no-repeat;
}

.transport-options::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(0, 168, 255, 0.05) 0%, transparent 3%),
        radial-gradient(circle at 80% 20%, rgba(255, 215, 0, 0.05) 0%, transparent 3%),
        radial-gradient(circle at 40% 40%, rgba(0, 168, 255, 0.05) 0%, transparent 3%);
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
}

.transport-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ========================================
   5. TRANSPORT CARDS
   ======================================== */

.transport-card {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    margin-bottom: 4rem;
    overflow: hidden;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    transform: translateY(50px);
    animation: slideInUp 0.8s ease forwards;
    position: relative;
}

.transport-card:nth-child(1) { animation-delay: 0.1s; }
.transport-card:nth-child(2) { animation-delay: 0.3s; }
.transport-card:nth-child(3) { animation-delay: 0.5s; }
.transport-card:nth-child(4) { animation-delay: 0.7s; }

.transport-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #00a8ff, transparent);
    transition: left 0.8s ease;
}

.transport-card:hover::before {
    left: 100%;
}

.transport-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 30px 60px rgba(0, 168, 255, 0.2),
        0 0 80px rgba(0, 168, 255, 0.1);
    border-color: rgba(0, 168, 255, 0.3);
}

/* Transport Header */
.transport-header {
    background: linear-gradient(
        135deg,
        rgba(0, 168, 255, 0.1) 0%,
        rgba(0, 102, 204, 0.1) 100%
    );
    padding: 3rem 3rem 2rem;
    text-align: center;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.transport-icon {
    margin-bottom: 1.5rem;
    transition: all 0.4s ease;
}

.transport-card:hover .transport-icon {
    animation: float 2s ease-in-out infinite;
}

.transport-icon svg {
    color: #00a8ff;
    filter: drop-shadow(0 0 20px rgba(0, 168, 255, 0.5));
    transition: all 0.3s ease;
}

.transport-card:hover .transport-icon svg {
    color: #fff;
    filter: drop-shadow(0 0 30px rgba(0, 168, 255, 0.8));
}

.transport-header h2 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.transport-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
}

/* Transport Content */
.transport-content {
    padding: 3rem;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.transport-info h3 {
    font-size: 2rem;
    color: #00a8ff;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.transport-info p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.info-item:hover {
    background: rgba(0, 168, 255, 0.1);
    border-color: rgba(0, 168, 255, 0.3);
    transform: translateY(-2px);
}

.info-icon {
    flex-shrink: 0;
}

.info-icon svg {
    color: #00a8ff;
}

.info-text h4 {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.info-text p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* Transport Options List */
.transport-options-list {
    margin: 2rem 0;
}

.transport-options-list h4 {
    font-size: 1.3rem;
    color: #ffd700;
    margin-bottom: 1rem;
    font-weight: 600;
}

.transport-options-list ul {
    list-style: none;
    padding: 0;
}

.transport-options-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.6;
    transition: all 0.3s ease;
}

.transport-options-list li:hover {
    color: #00a8ff;
    padding-left: 1rem;
}

.transport-options-list li:last-child {
    border-bottom: none;
}

.transport-options-list strong {
    color: #00a8ff;
    font-weight: 600;
}

/* Routes */
.popular-routes,
.driving-routes,
.ferry-routes {
    margin: 2rem 0;
}

.popular-routes h4,
.driving-routes h4,
.ferry-routes h4 {
    font-size: 1.3rem;
    color: #ffd700;
    margin-bottom: 1rem;
    font-weight: 600;
}

.routes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.route-item {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    background: rgba(0, 168, 255, 0.1);
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.route-item:hover {
    background: rgba(0, 168, 255, 0.2);
    transform: scale(1.05);
}

.route-from {
    font-weight: 600;
    color: #fff;
    font-size: 1.1rem;
}

.route-duration {
    color: #00a8ff;
    font-size: 0.9rem;
    margin-top: 0.3rem;
}

/* Route Details */
.route-details {
    display: grid;
    gap: 1.5rem;
}

.route-detail {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border-left: 4px solid #00a8ff;
}

.route-detail h5 {
    color: #ffd700;
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.route-detail p {
    margin: 0;
    line-height: 1.6;
}

/* Ferry Grid */
.ferry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.ferry-route {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ferry-route h5 {
    color: #00a8ff;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.ferry-route ul {
    list-style: none;
    padding: 0;
}

.ferry-route li {
    padding: 0.5rem 0;
    color: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ferry-route li:last-child {
    border-bottom: none;
}

/* Driving Tips */
.driving-tips {
    margin: 2rem 0;
}

.driving-tips h4 {
    font-size: 1.3rem;
    color: #ffd700;
    margin-bottom: 1rem;
    font-weight: 600;
}

.driving-tips ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.driving-tips li {
    padding: 1rem;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.9);
    border-left: 3px solid #ffd700;
    transition: all 0.3s ease;
}

.driving-tips li:hover {
    background: rgba(255, 215, 0, 0.2);
    transform: translateX(5px);
}

/* Transport Links */
.transport-links {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 2rem;
}

.transport-links h4 {
    font-size: 1.3rem;
    color: #ffd700;
    margin-bottom: 1.5rem;
    font-weight: 600;
    text-align: center;
}

.transport-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(0, 168, 255, 0.1);
    border: 1px solid rgba(0, 168, 255, 0.2);
    border-radius: 12px;
    color: #fff;
    text-decoration: none;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.transport-link:hover {
    background: rgba(0, 168, 255, 0.2);
    border-color: #00a8ff;
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 168, 255, 0.3);
}

.transport-link:last-child {
    margin-bottom: 0;
}

.transport-link svg {
    color: #00a8ff;
    flex-shrink: 0;
}

/* ========================================
   6. TRANSPORT CONTACT SECTION
   ======================================== */

.transport-contact {
    padding: 80px 5%;
    background: linear-gradient(
        135deg,
        rgba(0, 30, 60, 0.9) 0%,
        rgba(0, 102, 204, 0.8) 50%,
        rgba(0, 168, 255, 0.7) 100%
    );
    position: relative;
    overflow: hidden;
}

.transport-contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwIiBoZWlnaHQ9IjEwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8ZGVmcz4KICAgIDxwYXR0ZXJuIGlkPSJkb3RzIiB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiPgogICAgICA8Y2lyY2xlIGN4PSIxMCIgY3k9IjEwIiByPSIxIiBmaWxsPSJyZ2JhKDI1NSwyNTUsMjU1LDAuMSkiLz4KICAgIDwvcGF0dGVybj4KICA8L2RlZnM+CiAgPHJlY3Qgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsbD0idXJsKCNkb3RzKSIvPgo8L3N2Zz4=');
    opacity: 0.3;
    animation: float 30s ease-in-out infinite;
}

.contact-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.contact-header {
    text-align: center;
    margin-bottom: 4rem;
}

.contact-header h2 {
    font-size: 2.8rem;
    color: #fff;
    margin-bottom: 1rem;
    font-weight: 700;
}

.contact-header p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

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

.contact-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
    animation: slideInUp 0.6s ease forwards;
}

.contact-card:nth-child(1) { animation-delay: 0.1s; }
.contact-card:nth-child(2) { animation-delay: 0.3s; }
.contact-card:nth-child(3) { animation-delay: 0.5s; }

.contact-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    border-color: #00a8ff;
    box-shadow: 0 15px 40px rgba(0, 168, 255, 0.3);
}

.contact-icon {
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.contact-card:hover .contact-icon {
    animation: bounce-gentle 1s ease infinite;
}

.contact-icon svg {
    color: #00a8ff;
    filter: drop-shadow(0 0 10px rgba(0, 168, 255, 0.5));
}

.contact-card h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 1rem;
    font-weight: 600;
}

.contact-card p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.contact-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(45deg, #00a8ff, #0066cc);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 168, 255, 0.3);
}

.contact-btn:hover {
    background: linear-gradient(45deg, #0066cc, #003d7a);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 168, 255, 0.4);
}

/* Emergency Info */
.emergency-info {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
}

.emergency-info h3 {
    font-size: 1.8rem;
    color: #ffd700;
    margin-bottom: 2rem;
    font-weight: 600;
}

.emergency-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.emergency-item {
    padding: 1rem;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.emergency-item:hover {
    background: rgba(255, 215, 0, 0.2);
    transform: scale(1.02);
}

.emergency-item strong {
    color: #ffd700;
}

/* ========================================
   7. RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1200px) {
    .transport-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .transport-links {
        position: static;
    }
}

@media (max-width: 768px) {
    .transport-hero {
        padding: 100px 5% 60px;
        min-height: 400px;
        background-attachment: scroll;
    }
    
    .transport-intro h1 {
        font-size: 2.5rem;
    }
    
    .transport-intro p {
        font-size: 1.1rem;
    }
    
    .quick-nav {
        gap: 1rem;
    }
    
    .quick-nav-btn {
        padding: 1rem 1.5rem;
        min-width: 120px;
    }
    
    .quick-nav-btn span {
        font-size: 1rem;
    }
    
    .transport-options {
        padding: 60px 5%;
    }
    
    .transport-card {
        margin-bottom: 3rem;
    }
    
    .transport-header {
        padding: 2rem 2rem 1.5rem;
    }
    
    .transport-header h2 {
        font-size: 2rem;
    }
    
    .transport-content {
        padding: 2rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .routes-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    
    .ferry-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-options {
        grid-template-columns: 1fr;
    }
    
    .emergency-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .transport-hero {
        padding: 80px 5% 40px;
        min-height: 350px;
    }
    
    .transport-intro h1 {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .transport-intro p {
        font-size: 1rem;
    }
    
    .quick-nav {
        gap: 0.8rem;
    }
    
    .quick-nav-btn {
        padding: 0.8rem 1rem;
        min-width: 100px;
    }
    
    .quick-nav-icon {
        margin-bottom: 0.5rem;
    }
    
    .quick-nav-icon svg {
        width: 30px;
        height: 30px;
    }
    
    .quick-nav-btn span {
        font-size: 0.9rem;
    }
    
    .transport-header {
        padding: 1.5rem 1.5rem 1rem;
    }
    
    .transport-header h2 {
        font-size: 1.8rem;
    }
    
    .transport-subtitle {
        font-size: 1rem;
    }
    
    .transport-content {
        padding: 1.5rem;
    }
    
    .info-item {
        padding: 1rem;
    }
    
    .route-detail {
        padding: 1rem;
    }
    
    .transport-links {
        padding: 1.5rem;
    }
    
    .contact-card {
        padding: 2rem 1.5rem;
    }
    
    .emergency-info {
        padding: 2rem 1.5rem;
    }
}

/* ========================================
   8. ACCESSIBILITY & PERFORMANCE
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus indicators */
.transport-card:focus-within,
.quick-nav-btn:focus,
.transport-link:focus,
.contact-btn:focus {
    outline: 2px solid #00a8ff;
    outline-offset: 2px;
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .transport-card {
        border: 2px solid #00a8ff;
    }
    
    .transport-header {
        border-bottom: 2px solid #00a8ff;
    }
}

/* Improved focus indicators */
.quick-nav-btn:focus-visible,
.transport-link:focus-visible,
.contact-btn:focus-visible {
    outline: 3px solid #ffd700;
    outline-offset: 2px;
}

/* Screen reader */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Toast notifications */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(0, 168, 255, 0.9);
    color: white;
    padding: 1rem 2rem;
    border-radius: 10px;
    z-index: 10000;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}


/* ========================================
   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);
    }
}