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

:root {
    --primary-color: #ff6600;
    --secondary-color: #999;
    --text-color: #111;
    --light-grey: #efefef;
    --white: #fff;
    --font-main: 'Lato', 'Verdana', sans-serif;
    --transition: all 0.3s ease;
}

body {
    font-family: var(--font-main);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* Header Styles */
.header {
    background-color: var(--white);
    padding: 5px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo h1 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.logo .logoimg {
    height: 100px;
    width: auto;
    display: block;
    max-width: 100%;
    object-fit: contain;
}

/* Navigation */
.nav-desktop {
    display: none;
}

.main-nav {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav a {
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: var(--text-color);
    transition: var(--transition);
    padding: 10px 0;
    display: block;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-color);
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    list-style: none;
    min-width: 200px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu a {
    padding: 12px 20px;
    font-size: 13px;
}

.dropdown-menu a:hover {
    background-color: #f9f9f9;
}

/* Header Right Section */
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-btn {
    background: none;
    border: none;
    font-size: 12px;
    font-weight: 700;
    color: var(--secondary-color);
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.lang-btn:hover,
.lang-btn.active {
    color: var(--primary-color);
}

.lang-divider {
    color: var(--secondary-color);
    font-size: 12px;
}

/* Mobile Toggle */
.mobile-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--text-color);
    transition: var(--transition);
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 999;
}

.mobile-menu.active {
    max-height: 500px;
}

.mobile-menu ul {
    list-style: none;
    padding: 20px;
}

.mobile-menu li {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-menu a {
    display: block;
    padding: 15px 0;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: var(--transition);
}

.mobile-menu a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background-color: var(--white);
    padding: 64px 0;
    text-align: center;
}

.hero-title {
    font-size: 24px;
    font-weight: 400;
    color: var(--secondary-color);
    line-height: 1.5;
    max-width: 900px;
    margin: 0 auto;
}

/* Image Grid */
.image-grid {
    padding: 32px 0 64px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.grid-item {
    overflow: hidden;
    border-radius: 4px;
}

.grid-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.grid-item:hover img {
    transform: scale(1.05);
}

.mt-2 {
    margin-top: 20px;
}

/* Footer */
.footer {
    background-color: var(--light-grey);
    padding: 40px 0 20px;
    text-align: center;
}

.footer-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 20px;
    line-height: 1.4;
}

.footer-copyright {
    color: var(--text-color);
    font-size: 14px;
    margin-top: 10px;
}

/* Headings */
h1 {
    font-size: 32px;
    text-transform: uppercase;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

h2 {
    font-size: 28px;
    color: var(--text-color);
    margin-bottom: 15px;
}

h3 {
    font-size: 22px;
    color: var(--text-color);
    margin-bottom: 15px;
}

h4 {
    font-size: 18px;
    color: var(--text-color);
    margin-bottom: 10px;
}

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

.mb-2 {
    margin-bottom: 20px;
}

.mb-3 {
    margin-bottom: 30px;
}

/* Responsive - Tablet */
@media (min-width: 768px) {
    .mobile-toggle {
        display: none;
    }

    .nav-desktop {
        display: block;
    }

    .mobile-menu {
        display: none;
    }

    .hero-title {
        font-size: 28px;
    }

    .grid-2 {
        grid-template-columns: 1fr 1fr;
    }

    .grid-item img {
        height: 400px;
    }

    .footer-title {
        font-size: 30px;
    }
}

/* Responsive - Desktop */
@media (min-width: 1024px) {
    .logo h1 {
        font-size: 24px;
    }

    .logo .logoimg {
        height: 110px;
    }

    .hero-title {
        font-size: 32px;
    }

    .grid-item img {
        height: 450px;
    }
}

/* Page Content Styles */
.page-header {
    padding: 64px 0 32px;
    text-align: center;
}

.page-title {
    font-size: 32px;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 20px;
}

.content-section {
    padding: 32px 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

.content-text {
    font-size: 18px;
    color: var(--secondary-color);
    font-weight: 700;
    line-height: 1.8;
    text-align: justify;
}

@media (min-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Product Cards */
.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 40px 0;
}

.product-card {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.product-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.product-content {
    padding: 30px;
    background-color: var(--white);
}

.product-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-color);
}

.product-description {
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: var(--white);
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    border-radius: 4px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

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

@media (min-width: 768px) {
    .product-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Contact Form */
.contact-info {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 4px;
    margin-bottom: 40px;
}

.contact-info p {
    font-size: 18px;
    color: var(--secondary-color);
    font-weight: 700;
    line-height: 2;
    margin-bottom: 10px;
}

.contact-info a {
    color: var(--primary-color);
    border-bottom: 1px solid var(--primary-color);
    transition: var(--transition);
}

.contact-info a:hover {
    color: #e55a00;
    border-color: #e55a00;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--text-color);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-main);
    font-size: 15px;
    transition: var(--transition);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Chemical Products Grid */
.chemical-products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 40px 0;
}

@media (min-width: 768px) {
    .chemical-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .chemical-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

.chemical-card-inner {
    position: relative;
    width: 100%;
    height: 300px;
    perspective: 1000px;
    margin-bottom: 15px;
}

.chemical-card-front,
.chemical-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    transition: transform 0.6s;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.chemical-card-front {
    background-size: cover;
    background-position: center;
    background-color: #f0f0f0;
}

.chemical-card-back {
    background-color: #ebebeb;
    transform: rotateY(180deg);
    flex-direction: column;
    gap: 15px;
}

.chemical-card-inner:hover .chemical-card-front {
    transform: rotateY(180deg);
}

.chemical-card-inner:hover .chemical-card-back {
    transform: rotateY(0deg);
}

.chemical-card-back p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-color);
    text-align: center;
}

.chemical-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}

/* Button inside flip cards */
.btn-flip {
    margin-top: 10px;
    padding: 10px 25px;
    font-size: 11px;
}

/* Products Page Flip Cards */
.product-grid-flip {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 50px;
}

@media (min-width: 768px) {
    .product-grid-flip {
        grid-template-columns: 1fr 1fr;
    }
}

.product-flip-card {
    text-align: center;
}

.product-flip-card-inner {
    position: relative;
    width: 100%;
    height: 400px;
    perspective: 1000px;
    margin-bottom: 20px;
}

.product-flip-card-front,
.product-flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    transition: transform 0.6s;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.product-flip-card-front {
    background-size: cover;
    background-position: center;
    background-color: #f0f0f0;
}

.product-flip-card-back {
    background-color: #ebebeb;
    transform: rotateY(180deg);
}

.product-flip-card-inner:hover .product-flip-card-front {
    transform: rotateY(180deg);
}

.product-flip-card-inner:hover .product-flip-card-back {
    transform: rotateY(0deg);
}

.product-flip-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
    text-transform: none;
}

/* Product Detail Pages */
.product-detail {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 30px;
}

@media (min-width: 768px) {
    .product-detail {
        grid-template-columns: 1fr 1fr;
    }
}

.product-detail-image {
    width: 100%;
}

.product-detail-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.product-detail-content h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.product-detail-content p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 30px;
}
