:root {
    --dark-green: #084029;
    --emerald-green: #0B5D3B;
    --gold-accent: #D4A24C;
    --text-dark: #333333;
    --bg-light: #F8FAF8;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #fff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: opacity 0.6s ease-out, visibility 0.6s ease-out;
}
#preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.preloader-logo {
    height: 80px;
    animation: zoomInLogo 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes zoomInLogo {
    0% {
        transform: scale(0.6);
        opacity: 0;
    }
    40% {
        opacity: 1;
    }
    100% {
        transform: scale(1.4);
        opacity: 1;
    }
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.65), rgba(11, 93, 59, 0.60)), url('../img/gallery/facility_cover.jpg') center/cover fixed;
    position: relative;
    display: flex;
    align-items: center;
    padding-top: 140px;
    padding-bottom: 60px;
    color: white;
}
.hero-img-box {
    position: relative;
    z-index: 2;
}
.hero-img-box img {
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border: 4px solid var(--gold-accent);
    width: 100%;
    max-width: 450px;
}
.hero-content h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #ffffff !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}
.hero-content .text-gold { 
    color: var(--gold-accent) !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}
.hero-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #ffffff !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}
.hero-content h3 {
    font-size: 1.4rem;
    font-weight: 400;
    opacity: 0.95;
    margin-bottom: 30px;
    color: #ffffff !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}
.hero-content p {
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

/* Buttons */
.btn-custom {
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.btn-gradient {
    background: linear-gradient(45deg, var(--gold-accent), #f3c76d);
    color: var(--dark-green);
    border: none;
    box-shadow: 0 10px 20px rgba(212, 162, 76, 0.3);
}
.btn-gradient:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(212, 162, 76, 0.4);
    color: var(--dark-green);
}
.btn-outline-light-custom {
    border: 2px solid white;
    color: white;
    background: transparent;
}
.btn-outline-light-custom:hover {
    background: white;
    color: var(--dark-green);
    transform: translateY(-3px);
}

/* Section Titles */
.section-padding { padding: 100px 0; }
.section-title {
    text-align: center;
    margin-bottom: 60px;
}
.section-title h2 {
    color: var(--dark-green);
    font-weight: 800;
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}
.section-title h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background: var(--gold-accent);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* Glass Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    border-radius: 20px;
    padding: 40px;
    height: 100%;
    transition: all 0.4s ease;
}
.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(11, 93, 59, 0.1);
    border-color: var(--gold-accent);
}
.glass-card .icon-box {
    width: 70px;
    height: 70px;
    background: rgba(11, 93, 59, 0.1);
    color: var(--emerald-green);
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    margin-bottom: 25px;
    transition: 0.3s;
}
.glass-card:hover .icon-box {
    background: var(--emerald-green);
    color: white;
}

/* Statistics */
.stat-item {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-bottom: 4px solid var(--gold-accent);
    transition: 0.3s;
}
.stat-item:hover { transform: translateY(-5px); }
.stat-item h3 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--emerald-green);
    margin-bottom: 10px;
}
.stat-item p {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

/* Timeline */
.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.timeline-container::after {
    content: '';
    position: absolute;
    width: 4px;
    background: rgba(11, 93, 59, 0.2);
    top: 0; bottom: 0; left: 50%;
    margin-left: -2px;
}
.timeline-box {
    padding: 10px 40px;
    position: relative;
    background: inherit;
    width: 50%;
}
.timeline-box::after {
    content: '';
    position: absolute;
    width: 20px; height: 20px;
    right: -10px;
    background: var(--gold-accent);
    border: 4px solid white;
    top: 20px;
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}
.left { left: 0; }
.right { left: 50%; }
.left::after { right: -10px; }
.right::after { left: -10px; }
.timeline-content {
    padding: 25px;
    background: white;
    position: relative;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-top: 4px solid var(--emerald-green);
    width: 100% !important; /* Override global style.css width: 44% */
    left: auto !important; /* Override global style.css left positioning */
}
.timeline-content h4 { color: var(--dark-green); font-weight: 700; margin-bottom: 10px;}
.timeline-content span {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(212, 162, 76, 0.1);
    color: var(--gold-accent);
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 15px;
}
@media screen and (max-width: 768px) {
    .timeline-container::after { left: 31px; }
    .timeline-box { width: 100%; padding-left: 70px; padding-right: 25px; }
    .timeline-box::after { left: 21px; }
    .left::after, .right::after { left: 21px; }
    .right { left: 0%; }
    
    .hero-section { padding-top: 100px; text-align: center; }
    .hero-content h1 { font-size: 2.2rem; }
    .hero-content h2 { font-size: 1.2rem; line-height: 1.4; }
    .hero-content h3 { font-size: 1.1rem; }
    .hero-content p.lead { font-size: 1rem; }
    .hero-content .d-flex { justify-content: center; }
}

/* Products */
.product-card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
    background: white;
    margin-bottom: 30px;
}
.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 45px rgba(11, 93, 59, 0.15);
}
.product-img-wrapper {
    overflow: hidden;
    position: relative;
    height: 250px;
}
.product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.product-card:hover .product-img-wrapper img {
    transform: scale(1.1);
}
.product-card .card-body {
    padding: 25px;
    text-align: center;
}
.product-card h4 {
    color: var(--dark-green);
    font-weight: 700;
    margin-bottom: 15px;
}

/* World Map Background */
.export-section {
    background: url('https://upload.wikimedia.org/wikipedia/commons/8/80/World_map_-_low_resolution.svg') center/cover no-repeat;
    position: relative;
    background-attachment: fixed;
}
.export-section::before {
    content: '';
    position: absolute;
    top:0; left:0; width:100%; height:100%;
    background: rgba(248, 250, 248, 0.9);
}
.country-flag {
    font-size: 2rem;
    margin-bottom: 15px;
}

/* Gallery */
.gallery-masonry {
    column-count: 3;
    column-gap: 25px;
}
.gallery-masonry .gallery-item {
    display: inline-block;
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    margin-bottom: 25px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
@media (max-width: 992px) {
    .gallery-masonry { column-count: 2; }
}
@media (max-width: 576px) {
    .gallery-masonry { column-count: 1; }
}
.gallery-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: 0.5s;
}
.gallery-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(11, 93, 59, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: 0.5s;
}
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay h5 { color: white; font-weight: 600; margin: 0; transform: translateY(20px); transition: 0.5s; }
.gallery-item:hover .gallery-overlay h5 { transform: translateY(0); }

/* Contact Section */
.contact-info-box {
    background: var(--dark-green);
    color: white;
    padding: 40px;
    border-radius: 20px;
    height: 100%;
}
.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}
.contact-item i {
    font-size: 24px;
    color: var(--gold-accent);
    margin-right: 20px;
    margin-top: 5px;
}
.contact-item h5 { font-size: 1.1rem; font-weight: 600; margin-bottom: 5px; }
.contact-item p { margin: 0; opacity: 0.8; }

/* Back to top */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gold-accent);
    color: var(--dark-green);
    border-radius: 50%;
    display: none;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: 0.3s;
    border: none;
}
#backToTop:hover {
    transform: translateY(-5px);
    background: var(--dark-green);
    color: white;
}

.text-emerald { color: var(--emerald-green); }
.text-gold { color: var(--gold-accent); }

html {
    scroll-behavior: smooth;
}
