/* ============================================
   Termosisgift - Custom Animations & Effects
   ============================================ */

/* Smooth scrolling */
html { scroll-behavior: smooth; }

/* Selection color */
::selection { background: #f59e0b; color: white; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: linear-gradient(to bottom, #f59e0b, #ea580c); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(to bottom, #d97706, #c2410c); }

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

/* Float animation */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(3deg); }
}
.animate-float { animation: float 6s ease-in-out infinite; }
.animate-float-delayed { animation: float 6s ease-in-out infinite; animation-delay: 3s; }

/* Slide in from right */
@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
.animate-slide-in-right { animation: slideInRight 0.5s ease-out; }

/* Scroll indicator */
@keyframes scrollIndicator {
    0% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(6px); opacity: 0.5; }
    100% { transform: translateY(0); opacity: 1; }
}
.animate-scroll-indicator { animation: scrollIndicator 1.5s ease-in-out infinite; }

/* Slider text animate */
@keyframes sliderTextIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.swiper-slide-active .slider-text-animate {
    animation: sliderTextIn 0.8s ease-out forwards;
}

/* Slider zoom */
.swiper-slide-active .slider-zoom {
    animation: sliderZoom 8s ease-out forwards;
}
@keyframes sliderZoom {
    from { transform: scale(1.05); }
    to { transform: scale(1.15); }
}

/* Pulse glow */
@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
    50% { box-shadow: 0 0 0 15px rgba(245, 158, 11, 0); }
}
.animate-pulse-glow { animation: pulseGlow 2s infinite; }

/* Shimmer loading effect */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.shimmer {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}


/* ============================================
   HERO ORBIT SECTION
   ============================================ */

.hero-orbit-section {
    position: relative;
}

/* ===== ORBIT CONTAINER ===== */
.orbit-container {
    width: 420px;
    height: 420px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
    .orbit-container {
        width: 520px;
        height: 520px;
    }
}

@media (min-width: 1024px) {
    .orbit-container {
        width: 580px;
        height: 580px;
    }
}

/* ===== ORBIT RINGS ===== */
.orbit-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.04);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.orbit-ring-1 {
    width: 75%;
    height: 75%;
    border-color: rgba(245, 158, 11, 0.08);
}

.orbit-ring-2 {
    width: 100%;
    height: 100%;
    border-color: rgba(124, 58, 237, 0.06);
}

.orbit-ring-3 {
    width: 55%;
    height: 55%;
    border-color: rgba(255, 255, 255, 0.03);
}

/* ===== CENTER LOGO ===== */
.orbit-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    text-align: center;
}

.orbit-center-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.orbit-logo {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #f59e0b, #ea580c, #f59e0b);
    background-size: 200% 200%;
    animation: logoGradient 4s ease infinite;
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 0 60px rgba(245, 158, 11, 0.3), 0 0 120px rgba(245, 158, 11, 0.1);
}

@media (min-width: 768px) {
    .orbit-logo {
        width: 120px;
        height: 120px;
        border-radius: 34px;
    }
}

.orbit-logo-glow {
    position: absolute;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.25), transparent 70%);
    border-radius: 50%;
    animation: glowPulse 3s ease-in-out infinite;
}

@media (min-width: 768px) {
    .orbit-logo-glow {
        width: 180px;
        height: 180px;
    }
}

@keyframes logoGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes glowPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.3); opacity: 1; }
}

/* ===== ORBIT TRACKS ===== */
.orbit-track {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.orbit-track-1 {
    animation: orbitSpin 30s linear infinite;
}

.orbit-track-2 {
    animation: orbitSpinReverse 35s linear infinite;
}

@keyframes orbitSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes orbitSpinReverse {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

/* ===== ORBIT ITEMS ===== */
.orbit-item {
    position: absolute;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 20px rgba(245, 158, 11, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

@media (min-width: 768px) {
    .orbit-item {
        width: 85px;
        height: 85px;
    }
}

@media (min-width: 1024px) {
    .orbit-item {
        width: 95px;
        height: 95px;
    }
}

.orbit-item:hover {
    transform: scale(1.3) !important;
    border-color: rgba(245, 158, 11, 0.5);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 40px rgba(245, 158, 11, 0.3);
    z-index: 30;
}

.orbit-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Counter-rotate items so they stay upright */
.orbit-track-1 .orbit-item {
    animation: counterSpin 30s linear infinite;
}

.orbit-track-2 .orbit-item {
    animation: counterSpinReverse 35s linear infinite;
}

@keyframes counterSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

@keyframes counterSpinReverse {
    from { transform: rotate(-360deg); }
    to { transform: rotate(0deg); }
}

/* Position orbit items in a circle */
/* Track 1 - 4 items on outer ring (100% radius) */
.orbit-item-1 {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.orbit-item-2 {
    top: 50%;
    right: 0;
    transform: translateY(-50%);
}

.orbit-item-3 {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.orbit-item-4 {
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

/* Track 2 - 3 items on inner ring (75% radius) */
.orbit-item-5 {
    top: -2%;
    left: 50%;
    margin-left: -35px;
}

@media (min-width: 768px) {
    .orbit-item-5 { margin-left: -42px; }
}

.orbit-item-6 {
    bottom: 12%;
    right: 2%;
}

.orbit-item-7 {
    bottom: 12%;
    left: 2%;
}


/* ===== FLOATING PARTICLES ===== */
.particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

@keyframes particleFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.3; }
    25% { transform: translate(80px, -60px) scale(1.2); opacity: 0.6; }
    50% { transform: translate(40px, -120px) scale(0.8); opacity: 0.4; }
    75% { transform: translate(-30px, -80px) scale(1.1); opacity: 0.5; }
}

@keyframes particleFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.2; }
    33% { transform: translate(-60px, 80px) scale(1.3); opacity: 0.5; }
    66% { transform: translate(40px, 40px) scale(0.7); opacity: 0.3; }
}

@keyframes particleFloat3 {
    0%, 100% { transform: translate(0, 0); opacity: 0.4; }
    50% { transform: translate(-100px, -50px); opacity: 0.7; }
}

.particle-1 {
    top: 15%;
    left: 10%;
    width: 4px;
    height: 4px;
    background: #f59e0b;
    animation: particleFloat1 8s ease-in-out infinite;
}

.particle-2 {
    top: 25%;
    right: 15%;
    width: 3px;
    height: 3px;
    background: #8b5cf6;
    animation: particleFloat2 10s ease-in-out infinite;
}

.particle-3 {
    bottom: 30%;
    left: 20%;
    width: 5px;
    height: 5px;
    background: #38bdf8;
    animation: particleFloat3 12s ease-in-out infinite;
}

.particle-4 {
    top: 60%;
    right: 25%;
    width: 3px;
    height: 3px;
    background: #f59e0b;
    animation: particleFloat1 9s ease-in-out infinite;
    animation-delay: 2s;
}

.particle-5 {
    top: 40%;
    left: 30%;
    width: 2px;
    height: 2px;
    background: #fbbf24;
    animation: particleFloat2 7s ease-in-out infinite;
    animation-delay: 1s;
}

.particle-6 {
    bottom: 20%;
    right: 10%;
    width: 4px;
    height: 4px;
    background: #a78bfa;
    animation: particleFloat3 11s ease-in-out infinite;
    animation-delay: 3s;
}

.particle-7 {
    top: 10%;
    left: 50%;
    width: 2px;
    height: 2px;
    background: #fcd34d;
    animation: particleFloat1 13s ease-in-out infinite;
    animation-delay: 4s;
}

.particle-8 {
    bottom: 40%;
    left: 5%;
    width: 3px;
    height: 3px;
    background: #f97316;
    animation: particleFloat2 8s ease-in-out infinite;
    animation-delay: 5s;
}


/* ===== HERO GRADIENT TEXT ===== */
.hero-gradient-text {
    background: linear-gradient(135deg, #f59e0b, #fbbf24, #f97316, #f59e0b);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 5s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}


/* ===== HERO BUTTONS ===== */
.hero-btn-primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 16px 36px;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    color: white;
    font-weight: 700;
    border-radius: 9999px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px rgba(245, 158, 11, 0.3);
}

.hero-btn-primary::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.6s ease;
}

.hero-btn-primary:hover::before {
    left: 100%;
}

.hero-btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 60px rgba(245, 158, 11, 0.4);
}

.hero-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 36px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    color: white;
    font-weight: 600;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.4s ease;
}

.hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}


/* ===== SWIPER CUSTOM ===== */
.swiper-pagination-bullet {
    width: 12px !important;
    height: 12px !important;
    background: white !important;
    opacity: 0.4 !important;
    transition: all 0.3s !important;
}
.swiper-pagination-bullet-active {
    opacity: 1 !important;
    width: 36px !important;
    border-radius: 6px !important;
    background: linear-gradient(to right, #f59e0b, #ea580c) !important;
}

/* ===== LIGHTBOX ===== */
.lightbox-overlay {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* ===== PRODUCT CARD HOVER ===== */
.product-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

/* ===== GRADIENT TEXT ===== */
.gradient-text {
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== FORM FOCUS EFFECTS ===== */
.form-input {
    transition: all 0.3s ease;
    border: 2px solid #e5e7eb;
}
.form-input:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.1);
    outline: none;
}

/* ===== BREADCRUMB ===== */
.breadcrumb a {
    transition: color 0.3s;
}
.breadcrumb a:hover {
    color: #f59e0b;
}

/* ===== PAGINATION ===== */
.pagination ul { display: flex; gap: 4px; justify-content: center; flex-wrap: wrap; }
.pagination li { list-style: none; }
.pagination li a {
    display: flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 12px;
    font-weight: 600; font-size: 14px;
    transition: all 0.3s; color: #4b5563;
    border: 2px solid #e5e7eb;
}
.pagination li a:hover { border-color: #f59e0b; color: #f59e0b; transform: translateY(-2px); }
.pagination li.active a {
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    color: white; border-color: transparent;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

/* ===== FAQ ===== */
.faq-item { margin-bottom: 16px; }
.faq-item h3 { font-weight: 700; margin-bottom: 8px; color: #0f172a; }
.faq-item p { color: #64748b; line-height: 1.7; }

/* ===== PROSE (CMS content) ===== */
.prose h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 1rem; color: #0f172a; }
.prose h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.75rem; color: #1e293b; }
.prose p { margin-bottom: 1rem; line-height: 1.8; color: #475569; }
.prose ul { margin-bottom: 1rem; padding-left: 1.5rem; list-style: disc; }
.prose li { margin-bottom: 0.5rem; color: #475569; }
.prose a { color: #f59e0b; text-decoration: underline; }

/* ===== GLASSMORPHISM CARD ===== */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
    .container { padding-left: 1rem; padding-right: 1rem; }
    .orbit-container {
        width: 320px;
        height: 320px;
    }
    .orbit-item {
        width: 55px;
        height: 55px;
    }
    .orbit-logo {
        width: 80px;
        height: 80px;
        border-radius: 22px;
    }
    .orbit-logo i {
        font-size: 1.5rem;
    }
    .orbit-logo-glow {
        width: 110px;
        height: 110px;
    }
    .orbit-brand span {
        font-size: 1rem;
    }
}

/* ===== PRINT ===== */
@media print {
    header, footer, .whatsapp-float, #backToTop, .swiper-button-prev, .swiper-button-next { display: none !important; }
}

/* ============================================
   STATS MARQUEE SECTION
   ============================================ */

.stats-marquee {
    display: flex;
    width: 100%;
    overflow: hidden;
}

.stats-marquee-track {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-shrink: 0;
    min-width: max-content;
    animation: marqueeScroll 30s linear infinite;
    will-change: transform;
}

.stats-marquee:hover .stats-marquee-track {
    animation-play-state: paused;
}

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

.stats-card {
    flex-shrink: 0;
    padding: 0 16px;
}

.stats-card-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 14px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    backdrop-filter: blur(8px);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.stats-card-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.05), transparent);
    animation: statsShimmer 4s ease-in-out infinite;
}

@keyframes statsShimmer {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

.stats-card-inner:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(245, 158, 11, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2), 0 0 20px rgba(245, 158, 11, 0.05);
}

.stats-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.stats-number {
    font-size: 2rem;
    font-weight: 900;
    color: white;
    line-height: 1;
    letter-spacing: -0.02em;
}

.stats-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
    margin-top: 2px;
    white-space: nowrap;
}

.stats-plus {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-left: -4px;
}

.stats-separator {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    animation: separatorPulse 3s ease-in-out infinite;
}

@keyframes separatorPulse {
    0%, 100% { opacity: 0.3; transform: scale(1) rotate(0deg); }
    50% { opacity: 0.6; transform: scale(1.1) rotate(10deg); }
}

/* Responsive marquee */
@media (max-width: 640px) {
    .stats-number { font-size: 1.5rem; }
    .stats-card-inner { padding: 12px 20px; gap: 12px; }
    .stats-icon { width: 40px; height: 40px; border-radius: 12px; }
    .stats-card { padding: 0 12px; }
}

/* ===== Alpine.js cloak ===== */
[x-cloak] { display: none !important; }
