/* ========== CSS Variables (Corporate Colors) ========== */
:root {
    --light-blue: #5bbcf2;
    --dark-blue: #364677;
    --white: #ffffff;
    --light-bg: #f5f8fa;
    --text-dark: #333333;
    --text-muted: #666666;
    --transition: all 0.3s ease-in-out;
}

/* ========== Base Styles & Reset ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

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

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.primary-btn {
    background: var(--light-blue);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(91, 188, 242, 0.4);
}

.primary-btn:hover {
    background: var(--dark-blue);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(54, 70, 119, 0.4);
}

/* ========== Typography ========== */
h1,
h2,
h3 {
    color: var(--dark-blue);
    font-weight: 800;
    margin-bottom: 20px;
}

p {
    color: var(--text-muted);
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.bg-light {
    background-color: var(--light-bg);
}

.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
}

.line {
    height: 4px;
    width: 60px;
    background: var(--light-blue);
    margin: 0 auto;
    border-radius: 2px;
}

.line.left-align {
    margin: 0 0 20px 0;
}

/* ========== Navigation ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
}

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

.logo img {
    height: 40px;
    /* Adjust based on the actual SVG dimensions */
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links li a {
    font-weight: 600;
    color: var(--dark-blue);
    position: relative;
    transition: var(--transition);
}

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--light-blue);
    transition: width 0.3s;
}

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

.nav-links li a:hover {
    color: var(--light-blue);
}

/* Language Switch */
.lang-switch {
    font-weight: 600;
    color: var(--dark-blue);
}

.lang-switch button {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
}

.lang-switch button.active,
.lang-switch button:hover {
    color: var(--light-blue);
}

/* Mobile Menu Icon */
.mobile-menu-icon {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-icon span {
    width: 25px;
    height: 3px;
    background-color: var(--dark-blue);
    transition: var(--transition);
}

/* ========== Hero Section ========== */
.hero {
    height: 100vh;
    min-height: 600px;
    background: linear-gradient(135deg, var(--dark-blue) 0%, rgba(54, 70, 119, 0.8) 100%), url('https://images.unsplash.com/photo-1586528116311-ad8ed7c8263e?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover;
    display: flex;
    align-items: center;
    position: relative;
    color: var(--white);
    margin-top: 50px;
    /* Offset nav */
}

.hero-content {
    text-align: center;
    max-width: 650px;
    /* Narrowed down from 800px */
    z-index: 2;
    margin: 0 auto;
}

.hero h1 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.hero p {
    color: #e0e0e0;
    font-size: 1.2rem;
    margin-bottom: 40px;
}

/* ========== Generic Content Layouts ========== */
.content-box {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.split-layout {
    display: flex;
    align-items: center;
    gap: 50px;
}

.split-layout.reverse {
    flex-direction: row-reverse;
}

.text-content {
    flex: 1;
}

.image-content {
    flex: 1;
}

.feature-list {
    margin-top: 30px;
}

.feature-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--light-blue);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Mockups (Placeholders for real screenshots or vector arts) */
.mockup {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 8px solid var(--white);
}

.depo-mockup {
    background-image: url('https://images.unsplash.com/photo-1553413077-190dd305871c?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80');
}

.antrepo-mockup {
    background-image: url('../doc/antrepo.png');
}

/* ========== Gallery Section ========== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.gallery-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    cursor: pointer;
}

.gallery-img:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* ========== Footer ========== */
.footer {
    background-color: var(--dark-blue);
    color: var(--white);
    padding: 60px 0 20px;
}

.contact-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
    text-align: left;
}

.footer-info {
    flex: 1;
}

.map-container {
    flex: 1.5;
    width: 100%;
}

.footer h3 {
    color: var(--light-blue);
    margin-bottom: 25px;
}

.footer p {
    color: #cccccc;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #999999;
}

/* ========== Lightbox Modal ========== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 2001;
}

.close-modal:hover,
.close-modal:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* ========== Animations ========== */
.bounce-in {
    animation: bounceIn 1s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

/* Delay for subtitle and button */
.hero p.fade-in-up {
    animation-delay: 0.3s;
}

.hero a.fade-in-up {
    animation-delay: 0.6s;
}

/* ========== Hero Statistics ========== */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-icon-wrapper {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: var(--white);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.stat-icon-custom {
    width: 45px;
    height: 45px;
    transition: var(--transition);
}

.stat-icon-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    z-index: -1;
    transition: var(--transition);
    opacity: 0;
}

.blue-glow::before {
    box-shadow: 0 0 30px rgba(56, 188, 242, 0.6);
}

.orange-glow::before {
    box-shadow: 0 0 30px rgba(255, 102, 0, 0.6);
}

.green-glow::before {
    box-shadow: 0 0 30px rgba(0, 230, 118, 0.6);
}

.purple-glow::before {
    box-shadow: 0 0 30px rgba(179, 56, 255, 0.6);
}

.stat-item:hover .stat-icon-wrapper {
    transform: translateY(-10px);
}

.stat-item:hover .stat-icon-wrapper::before {
    opacity: 1;
}

.stat-item:hover .stat-icon-custom {
    transform: scale(1.1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--light-blue);
    line-height: 1.1;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.stat-text {
    font-size: 0.85rem;
    color: #e0e0e0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 5px;
    max-width: 140px;
}

@media (max-width: 600px) {
    .hero-stats {
        gap: 20px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-text {
        font-size: 0.75rem;
        max-width: 100px;
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale3d(0.3, 0.3, 0.3);
    }

    50% {
        opacity: 1;
        transform: scale3d(1.05, 1.05, 1.05);
    }

    70% {
        transform: scale3d(0.9, 0.9, 0.9);
    }

    100% {
        opacity: 1;
        transform: scale3d(1, 1, 1);
    }
}

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

/* Simple scroll reveal classes (added via JS) */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ========== Responsive ========== */
@media (max-width: 900px) {

    .split-layout,
    .split-layout.reverse {
        flex-direction: column;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-icon {
        display: flex;
    }

    .contact-container {
        flex-direction: column;
        text-align: center;
    }

    .lang-switch {
        display: none;
        /* Can be moved inside mobile menu */
    }
}