/* ========================================
   SHARED STYLES - Lodipluj
   Universal styles used across all pages
   ======================================== */

/* ========================================
   CSS RESET & BASE
   ======================================== */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a0e27 0%, #1a2456 50%, #003d5c 100%);
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    font-size: 16px;
    line-height: 1.6;
}

/* ========================================
   ANIMATED WATER BACKGROUND
   ======================================== */

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 123, 191, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(41, 171, 226, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(0, 123, 191, 0.1) 0%, transparent 50%);
    animation: waterFlow 20s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes waterFlow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-20px, -30px) scale(1.1); }
    66% { transform: translate(20px, -20px) scale(0.9); }
}

/* ========================================
   FLOATING ELEMENTS BASE
   ======================================== */

.floating-elements,
.floating-ships {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.floating-element,
.ship {
    position: absolute;
    font-size: 2rem;
    opacity: 0.3;
    animation: float 8s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) translateX(0px) rotate(0deg); 
        opacity: 0.2;
    }
    25% { 
        transform: translateY(-15px) translateX(10px) rotate(5deg); 
        opacity: 0.4;
    }
    50% { 
        transform: translateY(-25px) translateX(-5px) rotate(-3deg); 
        opacity: 0.3;
    }
    75% { 
        transform: translateY(-10px) translateX(15px) rotate(8deg); 
        opacity: 0.4;
    }
}

/* Alternative floating animation for development pages */
@keyframes floatLinear {
    0% { transform: translateX(0) translateY(0) rotate(0deg); }
    50% { transform: translateX(50vw) translateY(-30px) rotate(180deg); }
    100% { transform: translateX(105vw) translateY(0) rotate(360deg); }
}

/* ========================================
   HEADER STYLES
   ======================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(41, 171, 226, 0.3);
    padding: 15px 0;
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #29abe2;
}

.logo::before {
    content: "🚢 ";
    margin-right: 8px;
}

/* Empty logo fallback for pages without ship icon */
.logo:empty::before {
    content: "🚢 Lodipluj";
    margin-right: 0;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.main-nav a {
    color: #fff;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
}

.main-nav a:hover,
.main-nav a.active {
    background: rgba(41, 171, 226, 0.2);
    color: #29abe2;
    transform: translateY(-2px);
}

/* ========================================
   CONTAINER & LAYOUT
   ======================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.content-wrapper {
    min-height: 100vh;
    position: relative;
    z-index: 10;
}

/* ========================================
   SECTION STYLES
   ======================================== */

.section {
    padding: 60px 0;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
    background: linear-gradient(45deg, #29abe2, #007bbf);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
}

/* ========================================
   BUTTON STYLES
   ======================================== */

.btn {
    display: inline-block;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn-primary,
.cta-button,
.submit-btn,
.back-button {
    background: linear-gradient(135deg, #007bbf 0%, #29abe2 100%);
    color: #fff;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(41, 171, 226, 0.4);
}

.btn-primary::before,
.cta-button::before,
.submit-btn::before,
.back-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before,
.cta-button:hover::before,
.submit-btn:hover::before,
.back-button:hover::before {
    left: 100%;
}

.btn-primary:hover,
.cta-button:hover,
.submit-btn:hover,
.back-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(41, 171, 226, 0.6);
}

.btn-primary:active,
.cta-button:active,
.submit-btn:active,
.back-button:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: #29abe2;
    border: 2px solid #29abe2;
}

.btn-secondary:hover {
    background: #29abe2;
    color: #0a0e27;
    transform: translateY(-3px);
}

/* ========================================
   CARD STYLES
   ======================================== */

.info-card {
    background: linear-gradient(135deg, rgba(0, 61, 92, 0.6) 0%, rgba(0, 85, 119, 0.6) 100%);
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(41, 171, 226, 0.3);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(41, 171, 226, 0.1) 50%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.info-card:hover::before {
    opacity: 1;
    animation: shimmer 1.5s ease-in-out;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(41, 171, 226, 0.4);
}

.info-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #29abe2;
}

.info-card h3 {
    color: #29abe2;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.info-card p {
    color: #e1f5fe;
    opacity: 0.9;
    line-height: 1.6;
}

/* ========================================
   FORM STYLES
   ======================================== */

.form-group {
    margin-bottom: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

label {
    display: block;
    color: #b3e5fc;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.95rem;
}

input,
textarea,
select {
    width: 100%;
    padding: 15px 20px;
    background: rgba(0, 61, 92, 0.3);
    border: 2px solid rgba(41, 171, 226, 0.3);
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #29abe2;
    background: rgba(0, 61, 92, 0.5);
    box-shadow: 0 0 20px rgba(41, 171, 226, 0.3);
}

input::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* ========================================
   MESSAGE STYLES
   ======================================== */

.success-message {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.2) 0%, rgba(139, 195, 74, 0.2) 100%);
    border: 2px solid rgba(76, 175, 80, 0.5);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: center;
    color: #4caf50;
    font-weight: bold;
    display: none;
}

.error-message {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.2) 0%, rgba(255, 87, 34, 0.2) 100%);
    border: 2px solid rgba(244, 67, 54, 0.5);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: center;
    color: #f44336;
    font-weight: bold;
    display: none;
}

/* ========================================
   FOOTER STYLES
   ======================================== */

.footer {
    background: linear-gradient(135deg, #001a2e 0%, #003d5c 100%);
    padding: 40px 0 20px;
    border-top: 1px solid rgba(41, 171, 226, 0.3);
    text-align: center;
}

.partners {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    color: #b3e5fc;
    font-size: 0.9rem;
}

/* ========================================
   ANIMATIONS
   ======================================== */

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

@keyframes oceanGlow {
    0% {
        text-shadow: 0 0 20px rgba(41, 171, 226, 0.5);
    }
    100% {
        text-shadow: 0 0 30px rgba(41, 171, 226, 0.8), 0 0 40px rgba(0, 123, 191, 0.6);
    }
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes sparkle {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: scale(1) rotate(180deg);
        opacity: 0;
    }
}

@keyframes bubbleFloat {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0.6;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-100vh) translateX(var(--random-x, 0px));
        opacity: 0;
    }
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@keyframes ripple {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(180deg); }
}

/* ========================================
   RESPONSIVE BASE STYLES
   ======================================== */

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }

    .main-nav ul {
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .main-nav a {
        padding: 8px 12px;
        font-size: 0.9rem;
    }

    .container {
        padding: 0 15px;
    }

    .section-title {
        font-size: 2rem;
    }

    .floating-element,
    .ship {
        font-size: 1.5rem;
    }

    .partners {
        gap: 20px;
        font-size: 0.8rem;
    }

    .logo {
        font-size: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .main-nav a {
        padding: 6px 10px;
        font-size: 0.8rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .partners {
        flex-direction: column;
        gap: 10px;
    }

    .btn {
        width: 100%;
        max-width: 280px;
    }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

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

    .floating-elements,
    .floating-ships {
        display: none;
    }
}

@media (prefers-contrast: high) {
    .section-title {
        -webkit-text-fill-color: #fff;
        color: #fff;
    }
}

/* Touch optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn:hover,
    .main-nav a:hover,
    .info-card:hover {
        transform: none;
    }

    .btn,
    .main-nav a {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .main-nav a {
        padding: 6px 10px;
        font-size: 0.8rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .partners {
        flex-direction: column;
        gap: 10px;
    }

    .btn {
        width: 100%;
        max-width: 280px;
    }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

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

    .floating-elements,
    .floating-ships {
        display: none;
    }
}

@media (prefers-contrast: high) {
    .section-title {
        -webkit-text-fill-color: #fff;
        color: #fff;
    }
}

/* Touch optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn:hover,
    .main-nav a:hover,
    .info-card:hover {
        transform: none;
    }

    .btn,
    .main-nav a {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}