/* =============================================
   Elite Shipping & Logistics — Custom Styles
   Tailwind CSS 4 CDN + Custom Overrides
   ============================================= */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a1628;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #1e40af, #06b6d4);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #2563eb, #22d3ee);
}

/* Page transition overlay */
#page-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    pointer-events: none;
    display: flex;
    overflow: hidden;
}
#page-transition-overlay .transition-strip {
    flex: 1;
    background: #0a1628;
    transform: scaleY(0);
    transform-origin: top;
}

/* Hero canvas */
#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Animated gradient text */
.gradient-text {
    background: linear-gradient(135deg, #60a5fa, #22d3ee, #a78bfa, #60a5fa);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 6s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Floating animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}
.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* Pulse glow */
@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(6, 182, 212, 0.3); }
    50% { box-shadow: 0 0 40px rgba(6, 182, 212, 0.6), 0 0 80px rgba(6, 182, 212, 0.2); }
}
.pulse-glow {
    animation: pulseGlow 3s ease-in-out infinite;
}

/* Shimmer effect for cards */
.shimmer-card {
    position: relative;
    overflow: hidden;
}
.shimmer-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        transparent 40%,
        rgba(255, 255, 255, 0.05) 50%,
        transparent 60%
    );
    transform: rotate(30deg);
    transition: transform 0.6s;
    pointer-events: none;
}
.shimmer-card:hover::after {
    transform: rotate(30deg) translateY(-30%);
}

/* Magnetic button effect */
.magnetic-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.magnetic-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}
.magnetic-btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Reveal animations (controlled by GSAP) */
.reveal-up {
    opacity: 0;
    transform: translateY(60px);
}
.reveal-left {
    opacity: 0;
    transform: translateX(-80px);
}
.reveal-right {
    opacity: 0;
    transform: translateX(80px);
}
.reveal-scale {
    opacity: 0;
    transform: scale(0.85);
}

/* Service card initial state */
.service-card {
    opacity: 1 !important;
    transform: none !important;
    will-change: auto;
}

/* Service card image hover zoom */
.service-img-wrapper {
    overflow: hidden;
}
.service-img-wrapper img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.service-img-wrapper:hover img {
    transform: scale(1.1);
}

/* Glass morphism */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Navbar styles */
.navbar {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.navbar.scrolled {
    background: rgba(10, 22, 40, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile menu */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.mobile-menu.open {
    transform: translateX(0);
}

/* Hamburger animation */
.hamburger span {
    transition: all 0.3s;
}
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Tab active styles */
.tab-btn {
    position: relative;
    transition: all 0.3s;
}
.tab-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #06b6d4;
    transition: all 0.3s;
    transform: translateX(-50%);
}
.tab-btn.active::after {
    width: 100%;
}
.tab-btn.active {
    color: #06b6d4;
}

/* Counter styling */
.counter-value {
    font-variant-numeric: tabular-nums;
}

/* Marquee animation for affiliations */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.marquee-track {
    animation: marquee 20s linear infinite;
}
.marquee-track:hover {
    animation-play-state: paused;
}

/* Parallax image container */
.parallax-img {
    will-change: transform;
}

/* Loading screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a1628;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loader {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(6, 182, 212, 0.2);
    border-top-color: #06b6d4;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Section divider wave */
.wave-divider {
    position: relative;
    overflow: hidden;
}
.wave-divider::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 60px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60'%3E%3Cpath fill='%230f172a' d='M0,30 C360,60 720,0 1080,30 C1260,45 1380,40 1440,30 L1440,60 L0,60 Z'/%3E%3C/svg%3E") repeat-x;
    background-size: 1440px 60px;
}

/* Hero text shadow */
.hero-text-shadow {
    text-shadow: 0 2px 40px rgba(0, 0, 0, 0.5);
}

/* Contact form focus */
.form-input:focus {
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.3);
}

/* Map container */
.map-container {
    filter: grayscale(0.3) contrast(1.1);
    transition: filter 0.3s;
}
.map-container:hover {
    filter: grayscale(0) contrast(1);
}
