/* Maritime Crewing Agency CSS */
/* Color Palette: Dark Blue (#1a365d), Gold (#FFC900), Grey (#718096) */

:root {
    /* Maritime Color Palette */
    --primary-dark-blue: #1a365d;
    --primary-blue: #2d4a64;
    --light-blue: #4a90a4;
    --accent-gold: #FFC900;
    --dark-gold: #e6b300;
    --grey-dark: #2d3748;
    --grey-medium: #718096;
    --grey-light: #a0aec0;
    --white: #ffffff;
    --black: #000000;
    
    /* Gradients */
    --maritime-gradient: linear-gradient(135deg, var(--primary-dark-blue) 0%, var(--primary-blue) 100%);
    --gold-gradient: linear-gradient(135deg, var(--accent-gold) 0%, var(--dark-gold) 100%);
    
    /* Typography */
    --font-primary: 'Roboto', sans-serif;
    --font-heading: 'Oswald', sans-serif;
    
    /* Spacing */
    --section-padding: 80px 0;
    --container-max-width: 1200px;
    
    /* Transitions */
    --transition-smooth: all 0.3s ease;
    --transition-fast: all 0.2s ease;
}

/* ===== Ship Wheel Animations (Defined Early) ===== */
@-webkit-keyframes spin-wheel {
    0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); }
}

@-moz-keyframes spin-wheel {
    0% { -moz-transform: rotate(0deg); transform: rotate(0deg); }
    100% { -moz-transform: rotate(360deg); transform: rotate(360deg); }
}

@keyframes spin-wheel {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@-webkit-keyframes spin-wheel-fast {
    0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); }
}

@-moz-keyframes spin-wheel-fast {
    0% { -moz-transform: rotate(0deg); transform: rotate(0deg); }
    100% { -moz-transform: rotate(360deg); transform: rotate(360deg); }
}

@keyframes spin-wheel-fast {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Force animation to work on all browsers */
.ship-wheel-logo {
    -webkit-animation: spin-wheel 8s linear infinite !important;
    -moz-animation: spin-wheel 8s linear infinite !important;
    -o-animation: spin-wheel 8s linear infinite !important;
    animation: spin-wheel 8s linear infinite !important;
    -webkit-transform-origin: center center !important;
    -moz-transform-origin: center center !important;
    -o-transform-origin: center center !important;
    transform-origin: center center !important;
    display: inline-block !important;
    will-change: transform !important;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--grey-dark);
    overflow-x: hidden;
    max-width: 100vw;
    box-sizing: border-box;
}

* {
    box-sizing: border-box;
}

*,
*::before,
*::after {
    max-width: 100%;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--maritime-gradient);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
    color: var(--white);
}

.ship-loader {
    font-size: 4rem;
    animation: float 2s ease-in-out infinite;
    margin-bottom: 20px;
}

.loading-text {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 30px;
}

.loading-waves {
    display: flex;
    justify-content: center;
    gap: 5px;
}

.wave {
    width: 10px;
    height: 10px;
    background: var(--accent-gold);
    border-radius: 50%;
    animation: wave 1.5s ease-in-out infinite;
}

.wave:nth-child(2) { animation-delay: 0.2s; }
.wave:nth-child(3) { animation-delay: 0.4s; }

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes wave {
    0%, 60%, 100% { transform: scale(1); opacity: 1; }
    30% { transform: scale(1.3); opacity: 0.7; }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(26, 54, 93, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    z-index: 1000;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    background: var(--primary-dark-blue);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    padding: 10px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    text-decoration: none;
}

.nav-brand i {
    font-size: 2rem;
    color: var(--accent-gold);
    transition: var(--transition-smooth);
}

.nav-brand .ship-wheel-logo {
    -webkit-animation: spin-wheel 8s linear infinite !important;
    -moz-animation: spin-wheel 8s linear infinite !important;
    -o-animation: spin-wheel 8s linear infinite !important;
    animation: spin-wheel 8s linear infinite !important;
    -webkit-transform-origin: center center !important;
    -moz-transform-origin: center center !important;
    -o-transform-origin: center center !important;
    transform-origin: center center !important;
    display: inline-block !important;
    will-change: transform !important;
}

.nav-brand:hover .ship-wheel-logo {
    -webkit-animation: spin-wheel-fast 2s linear infinite !important;
    -moz-animation: spin-wheel-fast 2s linear infinite !important;
    -o-animation: spin-wheel-fast 2s linear infinite !important;
    animation: spin-wheel-fast 2s linear infinite !important;
    color: #ffed4e;
    filter: drop-shadow(0 0 10px rgba(255, 201, 0, 0.5));
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: var(--accent-gold);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-languages {
    display: flex;
    gap: 10px;
    margin-left: 20px;
}

.lang {
    padding: 5px 10px;
    background: transparent;
    color: var(--grey-light);
    border: 1px solid var(--grey-light);
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.lang.active,
.lang:hover {
    background: var(--accent-gold);
    color: var(--primary-dark-blue);
    border-color: var(--accent-gold);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--white);
    transition: var(--transition-smooth);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

/* Ensure video is properly positioned */
.hero-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -2;
}

/* Mobile video optimizations */
@media (max-width: 768px) {
    .hero-bg-video {
        object-fit: cover;
        width: 100%;
        height: 100%;
    }
    
    .hero-background video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transform: none;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(26, 54, 93, 0.8) 0%, 
        rgba(45, 74, 100, 0.7) 50%, 
        rgba(74, 144, 164, 0.6) 100%);
    z-index: -1;
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-anchor,
.floating-wheel,
.floating-compass {
    position: absolute;
    font-size: 2rem;
    color: rgba(255, 201, 0, 0.3);
    animation: floatSlow 6s ease-in-out infinite;
}

.floating-anchor {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-wheel {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
    animation: floatSlow 6s ease-in-out infinite, spin-wheel 10s linear infinite;
}

.floating-compass {
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes floatSlow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(5deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.typewriter-text {
    display: inline-block;
    border-right: 3px solid var(--accent-gold);
    animation: typewriter 4s steps(40) 1s forwards, blink 1s infinite;
    white-space: nowrap;
    overflow: hidden;
    width: 0;
}

/* Two-line title styling */
.title-line-1 {
    color: var(--white);
    display: block;
    line-height: 1.1;
}

.title-line-2 {
    color: var(--accent-gold);
    display: block;
    line-height: 1.1;
    font-weight: 800;
}

@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    0%, 50% { border-color: var(--accent-gold); }
    51%, 100% { border-color: transparent; }
}

.highlight {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.3rem;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin: 50px 0;
}

.stat {
    text-align: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

/* Mobile scroll to vacancies indicator */
.mobile-scroll-to-vacancies {
    display: none;
    justify-content: center;
    margin-top: 30px;
}

.scroll-to-vacancies-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--white);
    transition: var(--transition-smooth);
}

.scroll-to-vacancies-btn:hover {
    color: var(--accent-gold);
    transform: translateY(-2px);
}

.scroll-text {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.scroll-arrow-down {
    width: 50px;
    height: 50px;
    border: 2px solid var(--accent-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-gold);
    font-size: 1.5rem;
    animation: bounceDown 2s infinite;
    transition: var(--transition-smooth);
}

.scroll-to-vacancies-btn:hover .scroll-arrow-down {
    background: var(--accent-gold);
    color: var(--primary-dark-blue);
    box-shadow: 0 0 20px rgba(255, 201, 0, 0.5);
}

@keyframes bounceDown {
    0%, 20%, 50%, 80%, 100% { 
        transform: translateY(0);
    }
    40% { 
        transform: translateY(-10px);
    }
    60% { 
        transform: translateY(-5px);
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gold-gradient);
    color: var(--primary-dark-blue);
    box-shadow: 0 4px 15px rgba(255, 201, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 201, 0, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-dark-blue);
    transform: translateY(-2px);
}

/* Section Styles */
section {
    padding: var(--section-padding);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary-dark-blue);
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--grey-medium);
    max-width: 600px;
    margin: 0 auto;
}

/* Services Section */
.services {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gold-gradient);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--maritime-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: var(--white);
    font-size: 2rem;
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary-dark-blue);
    margin-bottom: 15px;
}

.service-card p {
    color: var(--grey-medium);
    margin-bottom: 20px;
    line-height: 1.6;
}

.service-card ul {
    list-style: none;
    text-align: left;
}

.service-card li {
    padding: 5px 0;
    color: var(--grey-dark);
    position: relative;
    padding-left: 20px;
}

.service-card li::before {
    content: '⚓';
    position: absolute;
    left: 0;
    color: var(--accent-gold);
}

/* Vacancies Section */
.vacancies {
    background: var(--primary-dark-blue);
    color: var(--white);
    overflow-x: hidden;
}

.vacancies .section-title {
    color: var(--white);
}

.vacancies .section-subtitle {
    color: var(--grey-light);
}

.vacancies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 400px) {
    .vacancies-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0;
        margin: 0;
    }
    
    .vacancies .container {
        padding: 0 10px;
    }
}

.vacancy-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: var(--transition-smooth);
}

.vacancy-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.vacancy-header {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.ship-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: var(--transition-smooth);
    background: var(--grey-light);
    min-height: 200px;
}

.ship-image:hover {
    transform: scale(1.05);
}

/* Fallback pentru imagini care nu se încarcă */
.ship-image[src=""],
.ship-image:not([src]),
.ship-image[src="#"] {
    background: linear-gradient(135deg, var(--primary-dark-blue) 0%, var(--primary-blue) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
}

.ship-image[src=""]:before,
.ship-image:not([src]):before,
.ship-image[src="#"]:before {
    content: '🚢';
    font-size: 3rem;
}

.ship-type {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--maritime-gradient);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.urgent-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-gold);
    color: var(--primary-dark-blue);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.vacancy-content {
    padding: 25px;
    color: var(--grey-dark);
}

.vacancy-content h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--primary-dark-blue);
    margin-bottom: 15px;
}

.ship-details {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: var(--grey-medium);
}

.positions {
    margin-bottom: 25px;
}

.position {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #edf2f7;
}

.position:last-child {
    border-bottom: none;
}

.role {
    font-weight: 600;
    color: var(--grey-dark);
}

.salary {
    font-weight: 700;
    color: var(--accent-gold);
    font-size: 1.1rem;
}

.btn-apply {
    width: 100%;
    justify-content: center;
}

/* Vacancies Footer */
.vacancies-footer {
    text-align: center;
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.vacancies-note {
    color: var(--grey-light);
    font-size: 1rem;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    line-height: 1.6;
}

.vacancies-note i {
    color: var(--accent-gold);
    font-size: 1.1rem;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent-gold);
    color: var(--accent-gold);
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-outline:hover {
    background: var(--accent-gold);
    color: var(--primary-dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 201, 0, 0.3);
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text .section-header {
    text-align: left;
    margin-bottom: 30px;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--grey-medium);
    margin-bottom: 30px;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.feature {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: var(--gold-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark-blue);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.feature-content h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--primary-dark-blue);
    margin-bottom: 8px;
}

.feature-content p {
    color: var(--grey-medium);
    margin: 0;
}

.about-image {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 54, 93, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-smooth);
}

.about-image:hover .image-overlay {
    opacity: 1;
}

.play-button {
    width: 80px;
    height: 80px;
    background: var(--accent-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark-blue);
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.play-button:hover {
    transform: scale(1.1);
}

/* Contact Section */
.contact {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.office {
    margin-bottom: 40px;
}

.office h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--primary-dark-blue);
    margin-bottom: 25px;
}

.office-item {
    background: var(--white);
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.office-item h4 {
    font-weight: 600;
    color: var(--primary-dark-blue);
    margin-bottom: 10px;
}

.office-item p {
    color: var(--grey-medium);
    margin-bottom: 5px;
}

.social-links h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--primary-dark-blue);
    margin-bottom: 25px;
}

.social-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: var(--white);
    border-radius: 10px;
    text-decoration: none;
    color: var(--grey-dark);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition-smooth);
}

.social-link.telegram:hover { background: #0088cc; color: var(--white); }
.social-link.whatsapp:hover { background: #25D366; color: var(--white); }
.social-link.viber:hover { background: #665CAC; color: var(--white); }
.social-link.instagram:hover { background: #E4405F; color: var(--white); }

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--grey-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(255, 201, 0, 0.1);
}

.btn-submit {
    width: 100%;
    justify-content: center;
}

/* Footer */
.footer {
    background: var(--primary-dark-blue);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo-icon {
    font-size: 3rem;
    color: var(--accent-gold);
    margin-bottom: 15px;
    display: block;
}

.footer-brand h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--accent-gold);
}

.footer-brand p {
    color: var(--grey-light);
    line-height: 1.6;
}

.footer-links h4,
.footer-services h4,
.footer-contact h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--accent-gold);
}

.footer-links ul,
.footer-services ul {
    list-style: none;
}

.footer-links li,
.footer-services li {
    margin-bottom: 10px;
}

.footer-links a,
.footer-services a {
    color: var(--grey-light);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-links a:hover,
.footer-services a:hover {
    color: var(--accent-gold);
}

.footer-contact .contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--grey-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright p {
    color: var(--grey-light);
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.social-icon:hover {
    background: var(--accent-gold);
    color: var(--primary-dark-blue);
    transform: translateY(-3px);
}

/* Back to Top Button - Futuristic Anchor */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 120px;
    background: transparent;
    border: none;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-10px);
}

.anchor-chain {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin-bottom: 5px;
    height: 60px;
    justify-content: flex-end;
}

.chain-link {
    width: 8px;
    height: 12px;
    border: 2px solid var(--accent-gold);
    border-radius: 50%;
    background: transparent;
    position: relative;
    animation: chainPull 2s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(255, 201, 0, 0.3);
}

.chain-link:nth-child(1) { animation-delay: 0s; }
.chain-link:nth-child(2) { animation-delay: 0.2s; }
.chain-link:nth-child(3) { animation-delay: 0.4s; }
.chain-link:nth-child(4) { animation-delay: 0.6s; }

.chain-link::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 6px;
    background: var(--accent-gold);
    border-radius: 2px;
    box-shadow: 0 0 5px rgba(255, 201, 0, 0.5);
}

.anchor-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-gold) 0%, #ffed4e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark-blue);
    font-size: 1.5rem;
    box-shadow: 
        0 0 20px rgba(255, 201, 0, 0.4),
        0 0 40px rgba(255, 201, 0, 0.2),
        inset 0 2px 10px rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.anchor-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    animation: shine 3s linear infinite;
}

.back-to-top:hover .anchor-icon {
    transform: scale(1.1);
    box-shadow: 
        0 0 30px rgba(255, 201, 0, 0.6),
        0 0 60px rgba(255, 201, 0, 0.3),
        inset 0 2px 15px rgba(255, 255, 255, 0.4);
}

.back-to-top:hover .chain-link {
    animation-duration: 1s;
    border-color: #ffed4e;
    box-shadow: 0 0 15px rgba(255, 237, 78, 0.5);
}

.back-to-top:hover .chain-link::before {
    background: #ffed4e;
    box-shadow: 0 0 8px rgba(255, 237, 78, 0.7);
}

@-webkit-keyframes chainPull {
    0%, 100% { 
        -webkit-transform: translateY(0) scale(1);
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    50% { 
        -webkit-transform: translateY(-5px) scale(1.1);
        transform: translateY(-5px) scale(1.1);
        opacity: 0.8;
    }
}

@keyframes chainPull {
    0%, 100% { 
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    50% { 
        transform: translateY(-5px) scale(1.1);
        opacity: 0.8;
    }
}

@-webkit-keyframes anchorWave {
    0% { -webkit-transform: scale(1) rotate(0deg); transform: scale(1) rotate(0deg); }
    25% { -webkit-transform: scale(1.1) rotate(-5deg); transform: scale(1.1) rotate(-5deg); }
    50% { -webkit-transform: scale(1.05) rotate(5deg); transform: scale(1.05) rotate(5deg); }
    75% { -webkit-transform: scale(1.1) rotate(-3deg); transform: scale(1.1) rotate(-3deg); }
    100% { -webkit-transform: scale(1) rotate(0deg); transform: scale(1) rotate(0deg); }
}

@keyframes anchorWave {
    0% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.1) rotate(-5deg); }
    50% { transform: scale(1.05) rotate(5deg); }
    75% { transform: scale(1.1) rotate(-3deg); }
    100% { transform: scale(1) rotate(0deg); }
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* Futuristic glow effect */
.back-to-top:hover::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 140px;
    background: radial-gradient(ellipse, rgba(255, 201, 0, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.8;
    }
}

@keyframes anchorWave {
    0% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.1) rotate(-5deg); }
    50% { transform: scale(1.05) rotate(5deg); }
    75% { transform: scale(1.1) rotate(-3deg); }
    100% { transform: scale(1) rotate(0deg); }
}

/* Particle effect for extra futurism */
.back-to-top::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 20px;
    background: linear-gradient(to top, var(--accent-gold), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.back-to-top:hover::before {
    opacity: 1;
    animation: sparkle 1.5s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { 
        transform: translateX(-50%) scale(1);
        opacity: 0;
    }
    50% { 
        transform: translateX(-50%) scale(1.5);
        opacity: 1;
    }
}

/* Ship Wheel Rotation Animations */
@keyframes spin-wheel {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes spin-wheel-fast {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Notification */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    padding: 20px;
    z-index: 10000;
    transform: translateX(400px);
    transition: var(--transition-smooth);
}

.notification.show {
    transform: translateX(0);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.notification-icon {
    font-size: 1.5rem;
}

.notification.success .notification-icon {
    color: #10b981;
}

.notification.error .notification-icon {
    color: #ef4444;
}

.notification-text {
    color: var(--grey-dark);
    font-weight: 500;
}

.notification-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--grey-medium);
    cursor: pointer;
    margin-left: auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-stats {
        gap: 40px;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--primary-dark-blue);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 50px;
        transition: var(--transition-smooth);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-languages {
        margin-left: 0;
        margin-top: 30px;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .nav-brand {
        font-size: 1.3rem;
    }
    
    .nav-brand i {
        font-size: 1.8rem;
    }
    
    .ship-wheel-logo {
        animation: spin-wheel 6s linear infinite !important; /* Slower rotation on mobile to save battery */
    }
    
    .hero-title {
        font-size: 2.5rem;
        text-align: center;
    }
    
    .hero {
        min-height: 100vh;
        height: auto;
        padding: 120px 0 50px 0;
    }
    
    .hero-content {
        position: relative;
        z-index: 10;
        width: 100%;
        padding: 20px 0;
    }
    
    .typewriter-text {
        font-size: inherit;
        white-space: normal !important;
        width: auto !important;
        border-right: none !important;
        animation: none !important;
        overflow: visible !important;
        display: block !important;
    }
    
    .title-line-1,
    .title-line-2 {
        display: block;
        width: 100%;
        text-align: center;
        font-size: 2.5rem;
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        display: none !important;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        margin-top: 20px !important;
        width: 100%;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Show mobile scroll indicator */
    .mobile-scroll-to-vacancies {
        display: flex;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 14px 20px;
        font-size: 1rem;
        border-radius: 25px;
    }
    
    .btn i {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .vacancies-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10px;
    }
    
    .vacancy-card {
        max-width: 100%;
        margin: 0 auto;
        overflow: hidden;
    }
    
    .vacancy-header {
        height: 180px;
    }
    
    .ship-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
    
    .ship-type,
    .urgent-badge {
        font-size: 0.8rem;
        padding: 4px 12px;
    }
    
    .vacancy-content {
        padding: 15px;
    }
    
    .positions {
        gap: 8px;
    }
    
    .position {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    .vacancies-note {
        flex-direction: column;
        text-align: center;
        font-size: 0.9rem;
    }
    
    .btn-outline {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
    
    .social-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    body {
        overflow-x: hidden;
    }
    
    .hero-title {
        font-size: 2rem;
        text-align: center;
        line-height: 1.2;
        margin-bottom: 15px;
    }
    
    .hero {
        min-height: 100vh;
        height: auto;
        padding: 100px 0 40px 0;
        display: flex;
        align-items: stretch;
    }
    
    .hero-content {
        position: relative;
        z-index: 15;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        padding: 30px 0;
    }
    
    .hero-text {
        width: 100%;
    }
    
    .hero-stats {
        display: none !important;
    }
    
    .title-line-1,
    .title-line-2 {
        font-size: 2rem;
        line-height: 1.1;
    }
    
    .hero-buttons {
        margin-top: 15px !important;
        gap: 12px;
        max-width: 100%;
    }
    
    .btn {
        width: 100%;
        max-width: 100%;
        padding: 12px 16px;
        font-size: 0.9rem;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
    }
    
    .typewriter-text {
        font-size: inherit;
        white-space: normal;
        width: auto !important;
        border-right: none;
        animation: none;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .service-card,
    .vacancy-card {
        margin: 0 auto;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .vacancy-header {
        height: 160px;
    }
    
    .vacancy-content {
        padding: 12px;
    }
    
    .ship-details {
        flex-direction: column;
        gap: 8px;
    }
    
    .ship-details span {
        font-size: 0.85rem;
    }
    
    .position {
        padding: 6px 10px;
        font-size: 0.85rem;
    }
    
    .role {
        font-size: 0.9rem;
    }
    
    .salary {
        font-size: 1rem;
        font-weight: 600;
    }
    
    .contact-form {
        padding: 25px;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 100px;
    }
    
    .anchor-chain {
        height: 50px;
    }
    
    .chain-link {
        width: 6px;
        height: 10px;
    }
    
    .anchor-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .loading-screen,
    .scroll-indicator,
    .back-to-top,
    .notification {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .hero {
        height: auto;
        page-break-after: always;
    }
}
