/* ===================================
   LixaChem - Industrial Chemicals
   Scientific & Professional Design
   Version: 1.0.0
   =================================== */

/* ===================================
   HERO SECTION
   =================================== */

.lixachem-page {
    background: var(--dark);
    min-height: 100vh;
}

.chem-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #0f1429 100%);
    padding: 180px 0 80px;
}

/* Molecules Canvas Background */
  #molecules-canvas {
    background: transparent;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
  }
.molecules-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 0 20px;
}

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(41, 170, 226, 0.15);
    border: 1px solid rgba(41, 170, 226, 0.3);
    border-radius: 50px;
    color: var(--primary);
    font-size: 0.938rem;
    font-weight: 500;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

/* Hero Title */
.hero-title {
    font-size: clamp(2.5rem, 5.5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 28px;
    letter-spacing: -1.5px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero Subtitle */
.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.btn-primary-chem,
.btn-secondary-chem {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary-chem {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 12px 35px rgba(41, 170, 226, 0.35);
}

.btn-primary-chem:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 50px rgba(41, 170, 226, 0.5);
}

.btn-secondary-chem {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid rgba(41, 170, 226, 0.4);
}

.btn-secondary-chem:hover {
    background: rgba(41, 170, 226, 0.15);
    border-color: var(--primary);
}

/* Hero Stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 0;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-number::after {
    content: '+';
    margin-left: 4px;
}

.stat-label {
    font-size: 0.938rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Chemical Formula Decorations */
.formula-decorations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.formula {
    position: absolute;
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    color: rgba(41, 170, 226, 0.2);
    font-weight: 600;
    animation: float 6s ease-in-out infinite;
}

.formula.f1 {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.formula.f2 {
    top: 25%;
    right: 15%;
    animation-delay: 1s;
}

.formula.f3 {
    bottom: 20%;
    left: 15%;
    animation-delay: 2s;
}

.formula.f4 {
    bottom: 30%;
    right: 10%;
    animation-delay: 3s;
}

.formula.f5 {
    top: 60%;
    left: 8%;
    animation-delay: 4s;
}

.formula.f6 {
    top: 40%;
    right: 20%;
    animation-delay: 5s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.875rem;
    z-index: 3;
    animation: bounce 2s infinite;
}

.scroll-mouse {
    width: 24px;
    height: 36px;
    border: 2px solid var(--primary);
    border-radius: 12px;
    position: relative;
}

.scroll-mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    animation: scroll-wheel 1.5s infinite;
}

@keyframes scroll-wheel {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

/* ===================================
   PRODUCTS SECTION
   =================================== */

.chem-products {
    padding: 120px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(41, 170, 226, 0.1);
    border: 1px solid rgba(41, 170, 226, 0.3);
    border-radius: 50px;
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.3;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
    backdrop-filter: blur(20px);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.product-card:hover::before {
    opacity: 1;
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 25px 70px rgba(41, 170, 226, 0.25);
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--glow) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.product-card:hover .card-glow {
    opacity: 0.3;
}

.card-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(41, 170, 226, 0.2) 0%, rgba(41, 170, 226, 0.05) 100%);
    border: 2px solid rgba(41, 170, 226, 0.3);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 24px;
    transition: all 0.4s ease;
}

.card-icon svg {
    width: 32px;
    height: 32px;
}

.product-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 40px rgba(41, 170, 226, 0.4);
}

.card-content {
    position: relative;
    z-index: 1;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.card-description {
    font-size: 0.938rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.card-features {
    list-style: none;
    margin-bottom: 24px;
}

.card-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 10px;
}

.card-features li svg {
    width: 16px;
    height: 16px;
    color: var(--primary);
    flex-shrink: 0;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.3s ease;
}

.card-link:hover {
    gap: 12px;
}

.card-link svg {
    width: 18px;
    height: 18px;
}

.card-number {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 5rem;
    font-weight: 800;
    color: rgba(41, 170, 226, 0.05);
    line-height: 1;
    pointer-events: none;
}

/* ===================================
   TRUST SECTION
   =================================== */

.chem-trust {
    padding: 80px 0;
    background: linear-gradient(180deg, transparent 0%, rgba(41, 170, 226, 0.03) 100%);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.trust-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
}

.trust-item:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 50px rgba(41, 170, 226, 0.2);
}

.trust-icon {
    width: 70px;
    height: 70px;
    background: rgba(41, 170, 226, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary);
}

.trust-icon svg {
    width: 32px;
    height: 32px;
}

.trust-item h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.trust-item p {
    font-size: 0.938rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.trust-badge img {
    max-width: 80px;
    opacity: 0.8;
}

.trust-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-size: 0.938rem;
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.3s ease;
}

.trust-link:hover {
    gap: 10px;
}

/* ===================================
   INDUSTRIES SECTION
   =================================== */

.chem-industries {
    padding: 80px 0;
    overflow: hidden;
}

.industries-scroll {
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

.industries-track {
    display: flex;
    gap: 30px;
    animation: scroll-industries 30s linear infinite;
}

.industry-item {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 30px 40px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    min-width: 180px;
    transition: all 0.3s ease;
}

.industry-item:hover {
    background: rgba(41, 170, 226, 0.1);
    border-color: var(--primary);
    transform: translateY(-5px);
}

.industry-item svg {
    width: 40px;
    height: 40px;
    color: var(--primary);
}

.industry-item span {
    font-size: 0.938rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
}

@keyframes scroll-industries {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-180px * 8 - 240px));
    }
}

/* ===================================
   WHY CHOOSE US SECTION
   =================================== */

.chem-why {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(41, 170, 226, 0.02) 0%, transparent 100%);
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.why-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 40px;
}

.why-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.why-feature {
    display: flex;
    gap: 20px;
}

.why-feature svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 4px;
}

.why-feature h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.why-feature p {
    font-size: 0.938rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.why-visual {
    position: relative;
}

.visual-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 40px;
    backdrop-filter: blur(20px);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
    color: var(--primary);
    font-weight: 600;
}

.card-header svg {
    width: 24px;
    height: 24px;
}

.quality-bars {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.quality-bar span {
    display: block;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.bar {
    height: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    transition: width 2s ease;
}

/* ===================================
   CTA SECTION
   =================================== */

.chem-cta {
    padding: 100px 0;
}

.cta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.cta-card {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 24px;
    padding: 50px 40px;
    text-align: center;
    transition: all 0.5s ease;
}

.cta-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 25px 70px rgba(41, 170, 226, 0.3);
}

.cta-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(41, 170, 226, 0.2) 0%, rgba(41, 170, 226, 0.05) 100%);
    border: 2px solid rgba(41, 170, 226, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: var(--primary);
}

.cta-icon svg {
    width: 36px;
    height: 36px;
}

.cta-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.cta-card p {
    font-size: 0.938rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 28px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-outline-chem {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid rgba(41, 170, 226, 0.4);
}

.btn-outline-chem:hover {
    background: rgba(41, 170, 226, 0.15);
    border-color: var(--primary);
    transform: scale(1.05);
}

/* ===================================
   RESPONSIVE
   =================================== */

@media (max-width: 1200px) {
    .why-grid {
        gap: 40px;
    }
}

@media (max-width: 992px) {
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .chem-hero {
        min-height: 90vh;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .btn-primary-chem,
    .btn-secondary-chem {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .trust-grid {
        grid-template-columns: 1fr;
    }

    .cta-grid {
        grid-template-columns: 1fr;
    }

    .formula-decorations {
        display: none;
    }
}

@media (max-width: 480px) {
    .chem-products,
    .chem-trust,
    .chem-industries,
    .chem-why,
    .chem-cta {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .product-card,
    .trust-item,
    .cta-card {
        padding: 30px 20px;
    }
}