/* Chemicals Custom Color Scheme - Standardized to Green & Gold */
:root {
    --color-bg-primary: #fcfbfa;
    --color-bg-secondary: #f4f1ea;
    --color-bg-tint: #edf1ee;
    --color-text-primary: #0d3a2b; /* Forest Green */
    --color-text-muted: rgba(13, 58, 43, 0.7);
    --color-brand-blue: #0d3a2b; /* Forest Green */
    --color-brand-blue-light: #164f3c;
    --color-brand-steel: #c5a059; /* Gold */
    --color-brand-cyan: #c5a059; /* Gold */
    --color-brand-cyan-dark: #c5a059; /* Gold */
    --color-white: #ffffff;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-quick: all 0.25s ease;
    --shadow-premium: 0 16px 36px rgba(13, 58, 43, 0.04);
    --shadow-hover: 0 24px 48px rgba(13, 58, 43, 0.08);
    --max-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    font-family: var(--font-body);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

a {
    color: inherit;
    text-decoration: none;
}

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

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--color-brand-cyan-dark);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    line-height: 1.2;
    color: var(--color-brand-blue);
    margin-bottom: 1.25rem;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Navigation Bar */
.nav-bar {
    background-color: rgba(252, 251, 250, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.02);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(13, 58, 43, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-logo {
    height: 48px;
    border-radius: 4px;
    mix-blend-mode: multiply;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-brand-blue);
    letter-spacing: 0.05em;
    line-height: 1.1;
}

.logo-subtitle {
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    color: var(--color-brand-cyan-dark);
    font-weight: 700;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 2.25rem;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-text-muted);
    transition: var(--transition-quick);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-brand-cyan-dark);
    transition: var(--transition-quick);
}

.nav-link:hover {
    color: var(--color-brand-cyan-dark);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-btn {
    font-weight: 600;
    font-size: 0.95rem;
    background-color: var(--color-brand-blue);
    color: var(--color-white);
    padding: 0.75rem 1.5rem;
    border-radius: 100px;
    transition: var(--transition-quick);
    border: 1px solid transparent;
}

.nav-btn:hover {
    background-color: var(--color-brand-cyan-dark);
    transform: translateY(-2px);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    width: 30px;
    padding: 5px;
}

.mobile-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-brand-blue);
    transition: var(--transition-quick);
}

/* Hero Section */
.chemicals-hero {
    padding-top: 10rem;
    padding-bottom: 6rem;
    background: radial-gradient(circle at 80% 20%, rgba(197, 160, 89, 0.05) 0%, rgba(252, 251, 250, 0) 60%);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    background-color: var(--color-bg-tint);
    color: var(--color-brand-blue-light);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    padding: 0.5rem 1rem;
    border-radius: 100px;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    line-height: 1.1;
    color: var(--color-brand-blue);
    margin-bottom: 1.5rem;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.btn-primary {
    display: inline-block;
    background-color: var(--color-brand-blue);
    color: var(--color-white);
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 100px;
    transition: var(--transition-quick);
    box-shadow: 0 10px 20px rgba(13, 58, 43, 0.15);
}

.btn-primary:hover {
    background-color: var(--color-brand-cyan-dark);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(197, 160, 89, 0.25);
}

.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: var(--color-brand-blue);
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 100px;
    border: 1px solid var(--color-brand-blue);
    transition: var(--transition-quick);
}

.btn-secondary:hover {
    background-color: var(--color-bg-tint);
    transform: translateY(-2px);
}

/* Image Carousel */
.hero-visual {
    display: flex;
    justify-content: center;
    position: relative;
}

.carousel-container {
    background-color: var(--color-white);
    padding: 1rem;
    border-radius: 24px;
    box-shadow: var(--shadow-premium);
    border: 1px solid rgba(13, 58, 43, 0.03);
    max-width: 380px;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.carousel-slides {
    position: relative;
    height: 380px;
    width: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    display: flex;
    flex-direction: column;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.1);
}

.slide-caption {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-brand-blue);
    margin-top: 1rem;
    text-align: center;
    letter-spacing: 0.02em;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-bg-tint);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-quick);
}

.dot.active {
    background-color: var(--color-brand-cyan-dark);
    transform: scale(1.2);
}

/* Products Section */
.products-section {
    padding: 6rem 0;
}

.product-layouts {
    display: flex;
    flex-direction: column;
    gap: 6rem;
    margin-top: 4rem;
}

.product-item-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5rem;
    align-items: center;
}

.product-item-row.row-reverse {
    direction: rtl;
}

.product-item-row.row-reverse .product-info-box {
    direction: ltr;
}

.product-image-box {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    border: 1px solid rgba(0,0,0,0.03);
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-white);
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.product-image-box:hover .product-img {
    transform: scale(1.05);
}

.product-img-badge {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    background-color: rgba(13, 58, 43, 0.9);
    backdrop-filter: blur(5px);
    color: var(--color-white);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 0.5rem 1rem;
    border-radius: 100px;
}

/* Molecule Graphic for Glycerin */
.glycerin-visual {
    background: radial-gradient(circle, rgba(197, 160, 89, 0.08) 0%, rgba(252, 250, 253, 1) 70%);
}

.chem-structure-box {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    animation: floatMolecule 4s ease-in-out infinite;
}

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

.molecule-icon {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-brand-blue);
    letter-spacing: 0.1em;
    background: var(--color-white);
    padding: 2.5rem 2rem;
    border-radius: 50%;
    box-shadow: var(--shadow-premium);
    border: 1px solid rgba(197, 160, 89, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.chem-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-text-muted);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* Product Info */
.prod-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--color-brand-cyan-dark);
    margin-bottom: 0.75rem;
}

.prod-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-brand-blue);
    margin-bottom: 1.25rem;
}

.prod-desc {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.spec-table tr {
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.spec-table tr:last-child {
    border-bottom: none;
}

.spec-table th {
    text-align: left;
    font-weight: 600;
    color: var(--color-brand-blue);
    padding: 0.75rem 0.5rem 0.75rem 0;
    font-size: 0.9rem;
    width: 35%;
}

.spec-table td {
    color: var(--color-text-muted);
    padding: 0.75rem 0.5rem;
    font-size: 0.9rem;
}

/* Applications Section */
.applications-section {
    padding: 6rem 0;
    background-color: var(--color-bg-secondary);
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 3.5rem;
}

.app-card {
    background-color: var(--color-white);
    border-radius: 16px;
    padding: 3rem 2.5rem;
    box-shadow: var(--shadow-premium);
    border: 1px solid rgba(13, 58, 43, 0.02);
    position: relative;
    transition: var(--transition-smooth);
}

.app-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(197, 160, 89, 0.2);
}

.app-num {
    font-size: 2.5rem;
    font-weight: 800;
    color: rgba(197, 160, 89, 0.15); /* Gold Alpha instead of Cyan */
    line-height: 1;
    margin-bottom: 1.5rem;
}

.app-card h4 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    color: var(--color-brand-blue);
    margin-bottom: 1rem;
}

.app-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Quality Section */
.quality-section {
    padding: 6rem 0;
}

.quality-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.quality-text-content p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.quality-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat-box {
    background-color: var(--color-white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-premium);
    border-left: 5px solid var(--color-brand-cyan);
    text-align: center;
}

.stat-num {
    display: block;
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--color-brand-blue);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-lbl {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Contact & Inquiry Section */
.contact-section {
    padding: 6rem 0;
    background-color: var(--color-bg-secondary);
    border-top: 1px solid rgba(13, 58, 43, 0.05);
}

.contact-container {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 5rem;
}

.panel-desc {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    margin-bottom: 3rem;
}

.contact-details-list {
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
}

.detail-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.detail-icon {
    width: 44px;
    height: 44px;
    background-color: var(--color-white);
    color: var(--color-brand-blue-light);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
    border: 1px solid rgba(13, 58, 43, 0.05);
    flex-shrink: 0;
}

.detail-icon svg {
    width: 20px;
    height: 20px;
}

.detail-item h5 {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--color-brand-cyan-dark);
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.detail-item p {
    font-size: 1rem;
    color: var(--color-text-primary);
    font-weight: 500;
}

.detail-item a {
    color: inherit;
    transition: var(--transition-quick);
}

.detail-item a:hover {
    color: var(--color-brand-cyan-dark);
}

/* Contact Form Panel */
.contact-form-panel {
    background-color: var(--color-white);
    padding: 3.5rem;
    border-radius: 24px;
    box-shadow: var(--shadow-premium);
    border: 1px solid rgba(13, 58, 43, 0.03);
}

.form-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    color: var(--color-brand-blue);
    margin-bottom: 0.5rem;
}

.form-sub {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-brand-blue);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(13, 58, 43, 0.15);
    border-radius: 8px;
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-quick);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-brand-cyan-dark);
    background-color: var(--color-white);
    box-shadow: 0 0 0 4px rgba(13, 58, 43, 0.05);
}

.submit-btn {
    width: 100%;
    background-color: var(--color-brand-blue);
    color: var(--color-white);
    font-weight: 600;
    font-size: 1rem;
    padding: 1rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition-quick);
}

.submit-btn:hover {
    background-color: var(--color-brand-cyan-dark);
    transform: translateY(-2px);
}

.send-icon {
    width: 18px;
    height: 18px;
}

/* Success Modal */
.modal-success {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(13, 58, 43, 0.6);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
}

.success-box {
    background-color: var(--color-white);
    padding: 3.5rem;
    border-radius: 24px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 50px rgba(13, 58, 43, 0.3);
    animation: popUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popUp {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.success-icon {
    width: 72px;
    height: 72px;
    background-color: rgba(13, 58, 43, 0.1);
    color: var(--color-brand-cyan-dark);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.25rem;
    font-weight: bold;
    margin: 0 auto 2rem;
}

.success-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    color: var(--color-brand-blue);
    margin-bottom: 1rem;
}

.success-msg {
    color: var(--color-text-muted);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.success-details {
    font-size: 0.85rem;
    color: var(--color-brand-cyan-dark);
    margin-bottom: 2rem;
    font-weight: 600;
}

.success-close-btn {
    background-color: var(--color-brand-blue);
    color: var(--color-white);
    border: none;
    padding: 0.85rem 2rem;
    border-radius: 100px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-quick);
}

.success-close-btn:hover {
    background-color: var(--color-brand-cyan-dark);
}

/* Footer Section */
.chemicals-footer {
    background-color: var(--color-brand-blue);
    color: rgba(255, 255, 255, 0.6);
    padding: 4rem 0;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chemicals-footer .footer-logo {
    height: 40px;
    border-radius: 4px;
    margin-bottom: 1rem;
    filter: brightness(0.9);
}

.footer-nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.f-link {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition-quick);
}

.f-link:hover {
    color: var(--color-brand-cyan);
}

/* Responsive Media Queries */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-desc {
        margin: 0 auto 2.5rem;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .product-item-row {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .product-item-row.row-reverse {
        direction: ltr;
    }
    
    .app-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .quality-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .contact-form-panel {
        padding: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background-color: var(--color-white);
        padding: 2rem;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
        border-bottom: 1px solid rgba(0,0,0,0.05);
        gap: 1.5rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-grid {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-nav {
        flex-direction: column;
        gap: 1rem;
    }
}
