/* Hero Section with Full-Screen Moving Globe Background */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    /* margin-top removed to eliminate white space above hero section */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/globe.gif') center/cover no-repeat;
    z-index: 1;
    /* Remove rotation animation since GIF is already moving */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 188, 212, 0.25) 50%,
        rgba(0, 0, 0, 0.85) 100%
    );
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    color: var(--white);
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-buttons {
    animation: fadeInUp 1s ease-out 0.6s both;
}

/* Remove the rotation keyframes since we don't need them */
/* @keyframes globeRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
} */

/* Fade in up animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Optional: Add floating particles/ships effect */
.globe-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.particle {
    position: absolute;
    background: rgba(0, 188, 212, 0.6);
    border-radius: 50%;
    animation: floatParticle 15s linear infinite;
}

.particle:nth-child(1) {
    width: 6px;
    height: 6px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    width: 4px;
    height: 4px;
    top: 60%;
    left: 80%;
    animation-delay: 2s;
}

.particle:nth-child(3) {
    width: 8px;
    height: 8px;
    top: 40%;
    left: 20%;
    animation-delay: 4s;
}

.particle:nth-child(4) {
    width: 5px;
    height: 5px;
    top: 80%;
    left: 60%;
    animation-delay: 6s;
}

.particle:nth-child(5) {
    width: 7px;
    height: 7px;
    top: 30%;
    left: 90%;
    animation-delay: 8s;
}

@keyframes floatParticle {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(50px);
        opacity: 0;
    }
}

/* Shipping routes overlay */
.shipping-routes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.route {
    position: absolute;
    background: linear-gradient(90deg, transparent, var(--primary-cyan), transparent);
    height: 1px;
    animation: routeMove 12s linear infinite;
    opacity: 0.6;
}

.route-1 {
    top: 25%;
    left: -10%;
    width: 30%;
    animation-delay: 0s;
}

.route-2 {
    top: 65%;
    right: -10%;
    width: 25%;
    animation-delay: 3s;
}

.route-3 {
    bottom: 35%;
    left: -15%;
    width: 35%;
    animation-delay: 6s;
}

.route-4 {
    top: 45%;
    right: -12%;
    width: 28%;
    animation-delay: 9s;
}

@keyframes routeMove {
    0% {
        transform: translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateX(120%);
        opacity: 0;
    }
}

/* Enhanced button styles for better visibility */
.hero-buttons .btn {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 2px solid transparent;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-buttons .btn-cyan {
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-cyan-dark));
}

.hero-buttons .btn-cyan:hover {
    background: linear-gradient(135deg, var(--primary-cyan-dark), var(--primary-cyan));
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 188, 212, 0.4);
}

.hero-buttons .btn-outline-light:hover {
    background: var(--white);
    color: var(--secondary-black);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .hero-buttons .btn:last-child {
        margin-bottom: 0;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .route {
        display: none; /* Hide routes on very small screens */
    }
}

/* Performance optimization */
@media (prefers-reduced-motion: reduce) {
    .particle, .route {
        animation: none;
        display: none;
    }
    
    .hero-title, .hero-subtitle, .hero-buttons {
        animation: none;
    }
}

/* Ensure the GIF covers properly on all screens */
.hero-section::before {
    background-attachment: fixed; /* Creates parallax effect */
}

@media (max-width: 768px) {
    .hero-section::before {
        background-attachment: scroll; /* Better performance on mobile */
    }
}