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

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: #d7d7d7;
    border-radius: 5px;
}

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

:root {
    --primary-color: #0066cc;
    --secondary-color: #ff9800;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f5f5f5;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

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

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 16px;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: #0052a3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,102,204,0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
}

/* ===== Side Contact Bar ===== */
.side-contact-bar {
    position: fixed;
    right: -105px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.side-contact-bar .contacts-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: var(--white);
    font-size: 18px;
    box-shadow: -2px 2px 10px rgba(0,0,0,0.2);
    width: 155px;
    white-space: nowrap;
    position: relative;
    transition: none;
    cursor: pointer;
}

.side-contact-bar .contacts-item.emial-box {
    background: rgb(249, 182, 75);
}

.side-contact-bar .contacts-item.whatsapp-box {
    background: rgb(84, 204, 97);
}

.side-contact-bar .contacts-item .emial {
    width: 50px;
    height: 50px;
    background-image: url('../img/social_logo.png');
    background-repeat: no-repeat;
    background-position: 0 0;
}

.side-contact-bar .contacts-item .whatsapp {
    width: 50px;
    height: 50px;
    background-image: url('../img/social_logo.png');
    background-repeat: no-repeat;
    background-position: -300px 0;
}

.side-contact-bar .contacts-item::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 0;
    bottom: 0;
    width: 20px;
}

.side-contact-bar .contacts-item .contact-text {
    font-size: 14px;
    font-weight: 500;
    padding-left: 8px;
}

/* ===== Header & Navigation ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: transparent;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.header.scrolled {
    background: var(--white);
    box-shadow: var(--shadow);
}

.navbar {
    padding: 20px 0;
}

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

.logo img {
    height: 50px;
    width: auto;
}

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

.nav-menu a {
    color: var(--white);
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

.header.scrolled .nav-menu a {
    color: var(--text-dark);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

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

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Language Switcher */
.language-switcher {
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    color: var(--white);
    transition: var(--transition);
}

.header.scrolled .lang-btn {
    background: var(--bg-light);
    border-color: #ddd;
    color: var(--text-dark);
}

.lang-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: var(--white);
    box-shadow: var(--shadow);
    border-radius: 5px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
}

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

.lang-dropdown a {
    display: block;
    padding: 10px 20px;
    color: var(--text-dark);
    white-space: nowrap;
}

.lang-dropdown a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-dark);
}

/* ===== Hero Section ===== */
.hero {
    min-height: 600px;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 100px 20px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Section Styles ===== */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 36px;
    text-align: center;
    margin-bottom: 15px;
    color: var(--text-dark);
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 18px;
    margin-bottom: 50px;
}

/* ===== Advantages Section ===== */
.advantages {
    background: var(--bg-light);
}

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

.advantages-text {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.advantage-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.advantage-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    background: linear-gradient(135deg, var(--primary-color), #0052a3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--white);
}

.advantage-item h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.advantage-item p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 14px;
}

.advantages-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.advantages-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

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

/* ===== Products Section ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.product-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.product-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

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

/* ===== Packaging Section ===== */
.packaging {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(0, 51, 102, 0.85));
    position: relative;
}

.packaging .section-title,
.packaging .section-subtitle {
    color: var(--white);
}

.packaging-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 30px;
}

.packaging-track {
    display: flex;
    gap: 20px;
    animation: scroll 20s linear infinite;
}

.packaging-track:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.packaging-item {
    flex: 0 0 auto;
    width: 350px;
    height: 250px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: var(--transition);
}

.packaging-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.packaging-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.packaging-item:hover img {
    transform: scale(1.1);
}

.packaging-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: var(--transition);
}

.dot:hover {
    background: var(--primary-color);
    transform: scale(1.2);
}

.dot.active {
    background: var(--primary-color);
    width: 30px;
    border-radius: 6px;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    animation: zoomIn 0.3s;
}

@keyframes zoomIn {
    from { transform: scale(0.8); }
    to { transform: scale(1); }
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 50px;
    color: white;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-close:hover {
    color: var(--secondary-color);
    transform: rotate(90deg);
}

/* ===== Why Choose Us Section ===== */
.why-choose-us {
    background: var(--white);
    color: var(--text-dark);
}

.why-choose-us .section-title {
    color: var(--text-dark);
}

.why-choose-us .section-subtitle {
    color: var(--text-light);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.stat-card {
    text-align: center;
    padding: 40px 30px;
    background: var(--white);
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    transition: var(--transition);
}

.stat-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0,102,204,0.15);
    transform: translateY(-10px);
}

.stat-icon {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.stat-label {
    font-size: 16px;
    color: var(--text-dark);
    font-weight: 500;
}

/* ===== Certification Section ===== */
.certification {
    background: var(--bg-light);
}

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

.certification-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.certification-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

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

.certification-text h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.certification-text p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 25px;
}

.certification-list {
    list-style: none;
}

.certification-list li {
    padding: 12px 0;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 16px;
}

.certification-list i {
    color: var(--secondary-color);
    font-size: 20px;
}

/* ===== Contact Section ===== */
.contact {
    background: var(--bg-light);
}

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

.contact-info h3 {
    font-size: 24px;
    margin-bottom: 30px;
    color: var(--text-dark);
}

.contact-item {
    display: flex;
    gap: 10px;
    padding: 20px;
    background: var(--white);
    box-shadow: var(--shadow);
    transition: var(--transition);
    transition: all 0.3s;
}

.contact-item i {
    font-size: 24px;
    color: var(--primary-color);
}

.contact-item:hover {
    transform: translateX(10px);
}

.contact-item h4 {
    font-size: 16px;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.contact-item p,
.contact-item a {
    color: var(--text-light);
    font-size: 14px;
}

.contact-item a:hover {
    color: var(--primary-color);
}

.contact-form h3 {
    font-size: 24px;
    margin-bottom: 30px;
    color: var(--text-dark);
}

.form-group {
    position: relative;
    margin-bottom: 25px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    font-family: inherit;
    transition: var(--transition);
    background: var(--white);
}

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

.form-group label {
    position: absolute;
    left: 15px;
    top: 15px;
    color: var(--text-light);
    pointer-events: none;
    transition: var(--transition);
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -10px;
    left: 10px;
    font-size: 12px;
    background: var(--white);
    padding: 0 5px;
    color: var(--primary-color);
}

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

.contact-form button {
    width: 100%;
}

/* ===== Footer ===== */
.footer {
    background: #1a1a1a;
    color: var(--white);
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-logo {
    width: 150px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-section p {
    color: #ccc;
    line-height: 1.8;
    margin-bottom: 15px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: #ccc;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-section ul li i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #333;
    color: #999;
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .nav-menu {
        gap: 20px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .advantages-content {
        grid-template-columns: 1fr;
    }

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

    .certification-content {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        padding: 30px;
        box-shadow: var(--shadow);
        transition: var(--transition);
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        width: 100%;
        padding: 15px 0;
        border-bottom: 1px solid #eee;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .side-contact-bar {
        bottom: 0;
        top: auto;
        right: 0;
        left: 0;
        transform: none;
        flex-direction: row;
        justify-content: center;
        border-radius: 0;
        padding: 10px;
    }

    .hero {
        min-height: 500px;
        padding: 60px 20px;
    }

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

    .hero p {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
    }

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

    .advantages-content {
        grid-template-columns: 1fr;
    }

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

    .product-card {
        max-width: 100%;
    }

    .packaging-item {
        width: 280px;
        height: 200px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    section {
        padding: 50px 0;
    }

    .hero h1 {
        font-size: 24px;
    }

    .section-title {
        font-size: 24px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .packaging-item {
        width: 250px;
        height: 180px;
    }

    .lightbox-close {
        top: 15px;
        right: 20px;
        font-size: 35px;
    }
}