/* Custom CSS for 1688products.com */

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* Dark Mode Improvements */
.dark {
    --dark-bg: #0F0F0F;
    --dark-card: #1A1A1A;
    --dark-border: #2D2D2D;
    --dark-hover: #2A2A2A;
    --dark-text: #F5F5F5;
    --dark-text-muted: #A0A0A0;
}

/* Glass Header Effect */
.glass-header {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: none !important;
    z-index: 45;
}

.dark .glass-header {
    background: rgba(15, 15, 15, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: none !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.dark ::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #FF6A00;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #e55a00;
}

/* Header Styles */
header {
    transition: all 0.3s ease;
}

/* Top Bar Styles */
.top-bar {
    z-index: 50;
    background-color: #1a1a1a;
}

.top-bar a:hover {
    color: #FF6A00;
}

.header-scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.dark .header-scrolled {
    background: rgba(15, 15, 15, 0.95);
}

/* Navigation Styles */
nav a {
    position: relative;
    padding: 0.5rem 0;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: #FF6A00;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

nav a:hover::after {
    width: 100%;
}

/* Button Styles */
.btn-primary {
    background: #FF6A00;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background: #e55a00;
    transform: translateY(-1px);
}

/* Animation Styles */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out;
}

/* Card Hover Effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.dark .card-hover:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* FAQ Styles */
.faq-toggle.active .fas {
    transform: rotate(180deg);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    opacity: 0;
    padding: 0 2rem;
}

.faq-content.active {
    max-height: 300px;
    opacity: 1;
    padding: 0 2rem 2rem 2rem;
}

/* Mobile Menu */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-menu.active {
    transform: translateX(0);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #FF6A00 0%, #FFD200 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Loading Animation */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Dark mode transitions */
.dark-transition {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Section spacing */
.section-padding {
    padding: 5rem 0;
}

/* Responsive breakpoints */
@media (max-width: 768px) {
    .section-padding {
        padding: 3rem 0;
    }
}

/* Focus styles */
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #FF6A00;
    outline-offset: 2px;
}

/* Smooth animations */
.transition-all {
    transition: all 0.3s ease;
}

/* Icon animations */
.icon-hover:hover {
    transform: scale(1.1);
}

/* Form styles */
.form-input {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
    border-color: #FF6A00;
    box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.1);
}

/* Stats counter animation */
.stats-counter {
    animation: countUp 2s ease-out;
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom border styles */
.border-subtle {
    border-color: rgba(0, 0, 0, 0.1);
}

.dark .border-subtle {
    border-color: rgba(255, 255, 255, 0.1);
}

/* Typography enhancements */
.text-balance {
    text-wrap: balance;
}

/* Spacing utilities */
.space-y-lg > * + * {
    margin-top: 3rem;
}

.space-y-xl > * + * {
    margin-top: 4rem;
}

/* Background patterns */
.pattern-dots {
    background-image: radial-gradient(circle, rgba(255, 106, 0, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Image optimization */
img {
    max-width: 100%;
    height: auto;
}

/* Print styles */
@media print {
    .no-print {
        display: none;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .text-gray-600 {
        color: #000 !important;
    }
    
    .dark .text-gray-600 {
        color: #fff !important;
    }
}

/* Color scheme preferences */
@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;
    }
}

/* Navigation Styles */
nav a {
    position: relative;
    padding: 0.5rem 0;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: #FF6A00;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

nav a:hover::after {
    width: 100%;
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, #FF6A00 0%, #e55a00 100%);
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.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.5s ease;
}

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

.btn-secondary {
    background: linear-gradient(135deg, #FFD200 0%, #f0c000 100%);
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero-bg {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.dark .hero-bg {
    background: linear-gradient(135deg, #111827 0%, #0f0f0f 100%);
}

/* Service Cards */
.service-card {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(255, 106, 0, 0.1);
    border-color: #FF6A00;
}

.dark .service-card:hover {
    box-shadow: 0 20px 40px rgba(255, 106, 0, 0.2);
}

/* Process Steps */
.process-step {
    position: relative;
}

.process-step::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -50%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #FF6A00, #FFD200);
    z-index: -1;
}

.process-step:last-child::after {
    display: none;
}

@media (max-width: 768px) {
    .process-step::after {
        display: none;
    }
}

/* FAQ Accordion */
.faq-toggle.active i {
    transform: rotate(180deg);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    display: block !important;
}

.faq-content.active {
    max-height: 300px;
}

/* Form Styles */
.form-input {
    transition: all 0.3s ease;
}

.form-input:focus {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 106, 0, 0.1);
}

/* File Upload */
.file-upload-area {
    transition: all 0.3s ease;
    cursor: pointer;
}

.file-upload-area:hover {
    background-color: #f8f9fa;
    border-color: #FF6A00;
}

.dark .file-upload-area:hover {
    background-color: #2d2d2d;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.6s ease forwards;
}

.animate-fade-in-right {
    animation: fadeInRight 0.6s ease forwards;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #FF6A00, #FFD200);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Custom Shadows */
.shadow-alibaba {
    box-shadow: 0 10px 30px rgba(255, 106, 0, 0.2);
}

.dark .shadow-alibaba {
    box-shadow: 0 10px 30px rgba(255, 106, 0, 0.3);
}

/* Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero-section {
        text-align: center;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
    }
    
    .process-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .text-xl {
        font-size: 1.125rem;
    }
    
    .px-8 {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .py-16 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}

/* Section spacing and positioning - simplified */
#home {
    position: static;
    margin-bottom: 0;
}

#services {
    position: static;
    margin-top: 0;
}

/* Ensure proper spacing for fixed header */
body {
    padding-top: 0;
}

/* Header positioning fix */
.fixed-header {
    position: fixed;
    top: 40px;
    width: 100%;
    z-index: 45;
}

/* Top bar specific height */
.top-bar {
    height: auto;
    min-height: 40px;
    z-index: 50;
}

@media (max-width: 640px) {
    .top-bar {
        min-height: 60px;
        padding: 0.5rem 0;
    }
    
    #home {
        padding-top: 160px !important;
    }
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    #home {
        padding-top: 140px !important;
    }
}

@media (max-width: 640px) {
    #home {
        padding-top: 160px !important;
    }
}

/* Dark Mode Specific Styles */
.dark {
    color-scheme: dark;
}

.dark .bg-white {
    background-color: #0f0f0f;
}

.dark .text-gray-900 {
    color: #f5f5f5;
}

.dark .border-gray-200 {
    border-color: #374151;
}

.dark .shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.1);
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus Styles */
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid #FF6A00;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .container {
        max-width: none !important;
        padding: 0 !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .text-gray-600 {
        color: #000000;
    }
    
    .dark .text-gray-400 {
        color: #ffffff;
    }
    
    .bg-gray-50 {
        background-color: #ffffff;
    }
    
    .dark .bg-gray-900 {
        background-color: #000000;
    }
}

/* Custom Utilities */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.backdrop-blur {
    backdrop-filter: blur(10px);
}

.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dark .glass {
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Hover Effects */
.hover-lift {
    transition: transform 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
}

.hover-glow {
    transition: box-shadow 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(255, 106, 0, 0.3);
}

/* Custom Scrollbar for specific sections */
.custom-scroll {
    scrollbar-width: thin;
    scrollbar-color: #FF6A00 transparent;
}

.custom-scroll::-webkit-scrollbar {
    width: 6px;
}

.custom-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scroll::-webkit-scrollbar-thumb {
    background-color: #FF6A00;
    border-radius: 3px;
}

/* Loading Spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #FF6A00;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Toast Notifications */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #FF6A00;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    background: #10b981;
}

.toast.error {
    background: #ef4444;
}

.toast.warning {
    background: #f59e0b;
}

.toast.info {
    background: #3b82f6;
}

/* WhatsApp Floating Button */
.whatsapp-btn {
    animation: float 3s ease-in-out infinite;
    transition: all 0.3s ease;
}

.whatsapp-btn:hover + .whatsapp-tooltip {
    opacity: 1;
}

#whatsapp-float {
    transition: all 0.3s ease;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Responsive header positioning */
@media (max-width: 640px) {
    header {
        top: 60px !important;
    }
}

@media (min-width: 641px) {
    header {
        top: 40px !important;
    }
}
