/* ===== CSS Variables ===== */
:root {
    --primary: #026440;
    --primary-light: #688A5A;
    --accent: #39aa5e;
    --accent-light: #63b86b;
    --dark: #1a1a2e;
    --gray: #6c757d;
    --light: #f8f9fa;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
    --radius: 12px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    color: #333;
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
}

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

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

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

/* ===== Navbar ===== */
#mainNav {
    background: transparent;
    padding: 1rem 0;
    transition: var(--transition);
}

#mainNav.navbar-scrolled {
    background: var(--primary);
    padding: 0.5rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

#mainNav .navbar-brand img {
    transition: var(--transition);
}

#mainNav.navbar-scrolled .navbar-brand img {
    height: 40px;
}

#mainNav .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    position: relative;
    transition: var(--transition);
}

#mainNav .nav-link:hover,
#mainNav .nav-link.active {
    color: #fff;
}

#mainNav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #fff;
    transition: var(--transition);
}

#mainNav .nav-link:hover::after,
#mainNav .nav-link.active::after {
    width: 70%;
}

/* Language Dropdown */
.lang-dropdown .dropdown-toggle {
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.85;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    padding: 0.3rem 0.75rem !important;
    margin-left: 0.5rem;
}

.lang-dropdown .dropdown-toggle::after {
    margin-left: 0.4rem;
}

.lang-dropdown .dropdown-toggle:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

.lang-dropdown .dropdown-menu {
    min-width: 180px;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 0.4rem;
}

.lang-dropdown .dropdown-item {
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: var(--transition);
}

.lang-dropdown .dropdown-item:hover {
    background: var(--light);
}

.lang-dropdown .dropdown-item.active {
    background: var(--accent);
    color: #fff;
}

.navbar-toggler {
    border: 2px solid rgba(255, 255, 255, 0.5);
    padding: 0.4rem 0.6rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* ===== Hero Section ===== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient);
    position: relative;
    overflow: hidden;
    padding: 120px 0 80px;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(2, 100, 64, 0.8) 0%, rgba(104, 138, 90, 0.75) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-section .container {
    z-index: 2;
}

.hero-title {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease 0.3s both;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 1s ease 0.5s both;
}

.hero-section .btn-outline-light {
    border-width: 2px;
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-weight: 500;
    animation: fadeInUp 1s ease 0.7s both;
}

.hero-section .btn-outline-light:hover {
    background: #fff;
    color: var(--primary);
}

/* ===== Section Styling ===== */
.section-padding {
    padding: 80px 0;
}

.section-green {
    background: var(--gradient);
    color: #fff;
}

.section-header {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.title-underline {
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin: 0 auto;
    border-radius: 2px;
}

.title-underline-white {
    background: rgba(255, 255, 255, 0.7);
}

/* ===== About Section ===== */
.about-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 4px solid var(--accent);
    opacity: 0;
    transform: translateY(30px);
}

.about-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.about-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.about-card.animate-in:hover {
    transform: translateY(-4px);
}

.about-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: #fff;
    font-size: 1.2rem;
}

.about-card h5 {
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.about-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.about-list li {
    padding: 0.4rem 0 0.4rem 1.5rem;
    position: relative;
    font-size: 0.95rem;
    line-height: 1.6;
}

.about-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 0.8rem;
    top: 0.55rem;
}

/* ===== Warehouse Cards ===== */
.warehouse-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
}

.warehouse-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.warehouse-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-8px);
}

.warehouse-card.animate-in:hover {
    transform: translateY(-8px);
}

.warehouse-card-img {
    position: relative;
    overflow: hidden;
    height: 220px;
}

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

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

.warehouse-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(2, 100, 64, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.warehouse-card:hover .warehouse-card-overlay {
    opacity: 1;
}

.warehouse-card-overlay i {
    color: #fff;
    font-size: 2rem;
}

.warehouse-card-body {
    padding: 1.5rem;
}

.warehouse-card-body h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.warehouse-card-body p {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* ===== Service Cards ===== */
.service-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: var(--transition);
    height: 100%;
    opacity: 0;
    transform: translateY(30px);
}

.service-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-6px);
}

.service-card.animate-in:hover {
    transform: translateY(-6px);
}

.service-card-img {
    height: 200px;
    overflow: hidden;
}

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

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

.service-card-body {
    padding: 1.25rem;
}

.service-card-body h5 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0;
    line-height: 1.4;
}

/* ===== Contact Section ===== */
.contact-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
}

.contact-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

.contact-card.animate-in:hover {
    transform: translateY(-4px);
}

.contact-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.4rem;
    color: #fff;
}

.contact-card h5 {
    color: #fff;
    margin-bottom: 0.75rem;
}

.contact-card p {
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

.contact-card a {
    color: #fff;
    font-weight: 500;
}

.contact-card a:hover {
    color: rgba(255, 255, 255, 0.7);
}

.map-container {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

/* ===== Footer ===== */
.footer-section {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.6);
    padding: 3rem 0 1.5rem;
}

.footer-section p {
    margin: 0;
    font-size: 0.85rem;
}

.footer-seo h6 {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.footer-seo ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-seo ul li {
    font-size: 0.85rem;
    padding: 0.2rem 0;
    color: rgba(255, 255, 255, 0.5);
}

.footer-seo ul li a {
    color: rgba(255, 255, 255, 0.5);
}

.footer-seo ul li a:hover {
    color: var(--accent-light);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 1.5rem 0;
}

/* ===== Modals ===== */
.modal-content {
    border: none;
    border-radius: var(--radius);
    overflow: hidden;
}

.modal-header {
    background: var(--gradient);
    color: #fff;
    border: none;
    padding: 1.25rem 1.5rem;
}

.modal-header .modal-title {
    font-weight: 600;
    font-size: 1.1rem;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

.modal-body {
    padding: 1.5rem;
}

.modal-body ul {
    padding-left: 1.2rem;
}

.modal-body ul li {
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}

.modal-body img {
    border-radius: 8px;
}

/* ===== Animations ===== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Responsive ===== */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-logo {
        max-width: 220px;
    }

    .section-padding {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.6rem;
    }

    #mainNav {
        background: var(--primary);
    }

    .navbar-collapse {
        background: var(--primary);
        padding: 1rem;
        border-radius: 0 0 var(--radius) var(--radius);
        margin-top: 0.5rem;
    }

    .nav-link {
        padding: 0.6rem 0 !important;
    }

    #mainNav .nav-link::after {
        display: none;
    }

    .lang-dropdown .dropdown-toggle {
        margin-left: 0;
        margin-top: 0.5rem;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        min-height: auto;
        padding: 140px 0 80px;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .section-padding {
        padding: 50px 0;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .about-card {
        padding: 1.5rem;
    }

    .warehouse-card-img {
        height: 180px;
    }

    .service-card-img {
        height: 160px;
    }

    .modal-dialog {
        margin: 0.5rem;
    }

    .modal-body .row .col-md-4 {
        text-align: center;
    }

    .modal-body .row .col-md-4 img {
        max-width: 200px;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 1.4rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .hero-section .btn-lg {
        font-size: 0.9rem;
        padding: 0.6rem 1.5rem;
    }

    .contact-card {
        padding: 1.5rem 1rem;
    }
}
