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

html {
    scroll-padding-top: 70px; /* 60px Header + 10px space */
    scroll-behavior: smooth;
}

:root {
    --primary-color: #FF004F;
    --secondary-color: #ff1654;
    --accent-color: #ffd6e7;
    --text-dark: #111111;
    --text-medium: #333333;
    --text-light: #666666;
    --text-lighter: #999999;
    --background: #ffffff;
    --background-gray: #F7F7F7;
    --border: #cacaca;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-card: 0px 24px 46px 0px rgba(0, 0, 0, 0.1);
    
    /* Typography System */
    /* Display */
    --text-display: clamp(60px, 5.72vw, 110px); /* 110px */
    --text-display-sm: clamp(40px, 4.16vw, 80px); /* 80px */
    --text-display-xs: clamp(32px, 3.125vw, 60px); /* 60px */
    
    /* Headings */
    --text-h1: clamp(32px, 2.5vw, 48px); /* 48px - Hero Title */
    --text-h2: clamp(28px, 2.0833vw, 40px); /* 40px - Section Titles */
    --text-h3: clamp(24px, 1.875vw, 36px); /* 36px - Footer Title */
    --text-h4: clamp(20px, 1.5625vw, 30px); /* 30px - Subtitles */
    
    /* Body & UI */
    --text-xl: clamp(18px, 1.3542vw, 26px); /* 26px - Stat Labels */
    --text-lg: clamp(16px, 1.25vw, 24px); /* 24px - Company Name */
    --text-md-lg: clamp(15px, 1.1vw, 20px); /* 20px - Intermediate Size */
    --text-md: clamp(14px, 0.9375vw, 18px); /* 18px - Nav, Footer Body */
    --text-sm: clamp(12px, 0.8333vw, 16px); /* 16px - Body Text */
    --text-xs: clamp(10px, 0.625vw, 12px); /* 12px - Copyright, Tags */
    
    /* Font Weights */
    --weight-regular: 400;
    --weight-medium: 500;
    --weight-semibold: 550; /* Adjusted to 550 as per design */
    --weight-bold: 600;
    --weight-heavy: 700;
}

/* Scroll Offset for Fixed Header */
section[id] {
    scroll-margin-top: 30px;
}

body {
    font-family: var(--font-alibaba-puhuiti);
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--background);
    scroll-behavior: smooth;
    font-weight: 400;
}

/* Global Layout Fixes */
header#header {
    margin: 0;
    padding: 0;
    margin-bottom: 0 !important;
    display: block;
}

main {
    margin: 0;
    padding: 0;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

section#hero {
    margin: 0 !important;
    padding: 0 !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
    position: relative;
    top: 0;
}

/* Layout Containers */
.container {
    max-width: 1920px;
    margin: 51px auto 19px auto;
}

.section {
    position: relative;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
}

.flex-col {
    display: flex;
    flex-direction: column;
}

.flex-row {
    display: flex;
    flex-direction: row;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.align-center {
    align-items: center;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.8rem;
}

p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

/* Buttons (Global Component) */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #ff6b9d, #ff8cc8);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.3);
}

.btn-secondary {
    background: white;
    color: #333;
    border: 2px solid #e2e8f0;
}

.btn-secondary:hover {
    background: #f8fafc;
    transform: translateY(-2px);
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.hidden {
    display: none;
}

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

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

/* Global Responsive Styles */

/* Large Screens */
@media (min-width: 1920px) {
    .header-wrapper,
    .hero-banner,
    .brands-section,
    .statistics-section,
    .why-us-section,
    .core-selling-points-section,
    .join-us-form-section,
    .footer-section {
        margin-left: auto;
        margin-right: auto;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .section {
        padding: 40px 0;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    /* Hide scroll-to-top button on mobile to prevent blocking content */
    .scroll-top-btn {
        display: none !important;
    }
}
