/* =====================================================
   GJ International - Global Automotive Business Platform
   styles.css
   ===================================================== */

/* Base */
html {
    scroll-behavior: smooth;
}

/* Background Grid Pattern */
.bg-grid {
    background-image: radial-gradient(circle at 1px 1px, rgba(148, 163, 184, 0.25) 1px, transparent 0);
    background-size: 20px 20px;
}

/* =====================================================
   Scroll-triggered Animations
   ===================================================== */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =====================================================
   Card Hover Effects
   ===================================================== */
.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.3);
    border-color: rgba(37, 99, 235, 0.6);
}

/* =====================================================
   Gradient Text Animation
   ===================================================== */
.gradient-text {
    background: linear-gradient(90deg, #2563eb, #60a5fa, #2563eb);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

/* =====================================================
   Shine Effect
   ===================================================== */
.shine-effect {
    position: relative;
    overflow: hidden;
}

.shine-effect::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;
}

.shine-effect:hover::before {
    left: 100%;
}

/* =====================================================
   Pulsing Dot Animation
   ===================================================== */
@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.pulse-dot::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: inherit;
    animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* =====================================================
   Floating Animations
   ===================================================== */
.float-slow {
    animation: float 8s ease-in-out infinite;
}

.float-medium {
    animation: float 6s ease-in-out infinite;
    animation-delay: 1s;
}

.float-fast {
    animation: float 4s ease-in-out infinite;
    animation-delay: 0.5s;
}

/* =====================================================
   Button Glow Effect
   ===================================================== */
.btn-glow {
    position: relative;
    transition: all 0.3s ease;
}

.btn-glow::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(45deg, #2563eb, #60a5fa, #2563eb);
    background-size: 200% 200%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s;
    animation: shimmer 3s linear infinite;
}

.btn-glow:hover::before {
    opacity: 1;
}

.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.4);
}

/* =====================================================
   Number Counter
   ===================================================== */
.counter {
    font-variant-numeric: tabular-nums;
}

/* =====================================================
   Staggered Animation Delays
   ===================================================== */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }

/* =====================================================
   Language Toggle Button
   ===================================================== */
.lang-toggle {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 9999px;
    border: 1px solid rgba(100, 116, 139, 0.4);
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    font-size: 12px;
    font-weight: 500;
    color: #e2e8f0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-toggle:hover {
    border-color: rgba(37, 99, 235, 0.6);
    background: rgba(37, 99, 235, 0.1);
}

.lang-toggle svg {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

.lang-toggle .lang-text {
    transition: opacity 0.2s ease;
}

/* =====================================================
   Language Switching Animation
   ===================================================== */
[data-i18n] {
    transition: opacity 0.15s ease;
}

.lang-switching [data-i18n] {
    opacity: 0.7;
}