/* =========================================
   Design System & Variables
========================================= */
:root {
    --primary: #0f5132; /* Emerald Green */
    --primary-light: #198754;
    --secondary: #d4af37; /* Modern Gold */
    --secondary-light: #ffdf73;
    --dark: #111827;
    --dark-light: #1f2937;
    --light: #f9fafb;
    --cream: #fdfbf7;
    --gray: #6b7280;
    --glass: rgba(255, 255, 255, 0.85);
    --font-main: 'Cairo', sans-serif;
    --transition-smooth: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.3s ease;
}

/* =========================================
   Reset & General Setup
========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--cream);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

ul {
    list-style: none;
}

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

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

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

/* =========================================
   Buttons
========================================= */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
    text-align: center;
}

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

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(15, 81, 50, 0.2);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--dark);
}

.btn-secondary:hover {
    background-color: transparent;
    color: var(--secondary);
    border-color: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
}

.btn-block {
    display: block;
    width: 100%;
}

/* =========================================
   Section Headers
========================================= */
.section-header {
    margin-bottom: 50px;
}

.section-header.text-center {
    text-align: center;
}

.sub-title {
    color: var(--secondary);
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 10px;
}

.main-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 15px;
}

.title-line {
    width: 80px;
    height: 4px;
    background-color: var(--primary);
    border-radius: 2px;
}

.title-line.center {
    margin: 0 auto;
}

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

/* =========================================
   Splash Screen
========================================= */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--dark);
    color: white;
    transition: opacity 1s ease, transform 1s ease;
}

.splash-content {
    position: relative;
    z-index: 2;
    text-align: center;
    opacity: 0;
    transform: scale(0.8);
}

#splash-logo {
    width: 280px; /* Larger logo */
    margin: 0 auto 30px;
    filter: drop-shadow(0 0 25px rgba(212, 175, 55, 0.4));
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

#splash-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--secondary);
    margin-bottom: 10px;
}

#splash-subtitle {
    font-size: 1.5rem;
    color: var(--light);
    opacity: 0.9;
}

.loading-bar-container {
    width: 300px;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.1);
    margin: 40px auto 0;
    border-radius: 3px;
    overflow: hidden;
}

.loading-bar {
    width: 0%;
    height: 100%;
    background-color: var(--secondary);
}

/* =========================================
   Header
========================================= */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 81, 50, 0.95); /* Dark Emerald background from the start */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
    transition: var(--transition-smooth);
    padding: 15px 0;
}

#main-header.scrolled {
    padding: 10px 0;
    background: rgba(15, 81, 50, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

#main-header .company-name,
#main-header .nav-link {
    color: white;
}

#main-header .nav-link:hover,
#main-header .nav-link.active {
    color: var(--secondary);
}

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

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-logo {
    width: 50px;
    height: auto;
}

.company-name {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary);
}

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

.nav-link {
    font-weight: 600;
    color: var(--dark);
    transition: var(--transition-fast);
    position: relative;
    padding-bottom: 5px;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary);
    transition: var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    cursor: pointer;
}

/* =========================================
   Hero Section
========================================= */
.hero-section {
    height: 100vh;
    background-image: url('../img/logistics.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    position: relative;
    color: white;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to left, rgba(15, 81, 50, 0.9), rgba(0, 0, 0, 0.7));
}

.hero-container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 700px;
}

.hero-badge {
    background-color: rgba(212, 175, 55, 0.2);
    border: 1px solid var(--secondary);
    color: var(--secondary-light);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: inline-block;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-title .highlight {
    color: var(--secondary);
}

.hero-desc {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}

.scroll-down i {
    font-size: 2rem;
    color: white;
    opacity: 0.7;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-10px) translateX(-50%); }
    60% { transform: translateY(-5px) translateX(-50%); }
}

/* =========================================
   About Section
========================================= */
.about-section {
    padding: 100px 0;
}

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

.about-text h3 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 30px;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.feature-item i {
    font-size: 2rem;
    color: var(--secondary);
    background-color: rgba(212, 175, 55, 0.1);
    padding: 15px;
    border-radius: 15px;
}

.feature-item h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.about-img-wrapper {
    position: relative;
}

.about-img {
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* =========================================
   Services Section
========================================= */
.services-section {
    padding: 100px 0;
    background-color: #f3f4f6;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background-color: white;
    border-radius: 20px;
    padding: 40px 30px 0;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
    overflow: hidden;
    position: relative;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.card-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--gray);
    margin-bottom: 30px;
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 15px 15px 0 0;
    transition: var(--transition-smooth);
}

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

/* =========================================
   Gallery Section
========================================= */
.gallery-section {
    padding: 100px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    height: 250px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 81, 50, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition-smooth);
    color: white;
}

.gallery-overlay i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--secondary);
}

.gallery-overlay span {
    font-size: 1.2rem;
    font-weight: 600;
}

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

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 800px;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 10px;
    border: 3px solid var(--secondary);
    animation: zoom 0.6s;
}

@keyframes zoom {
    from {transform: scale(0.1)} 
    to {transform: scale(1)}
}

.close-lightbox {
    position: absolute;
    top: 30px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-lightbox:hover {
    color: var(--secondary);
}

#lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    font-size: 1.2rem;
    font-weight: 600;
}

/* =========================================
   Stats Section
========================================= */
.stats-section {
    padding: 80px 0;
    background-color: var(--primary);
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item i {
    font-size: 3rem;
    color: var(--secondary);
    margin-bottom: 20px;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 900;
}

.stat-plus {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--secondary);
}

.stat-item p {
    font-size: 1.1rem;
    opacity: 0.8;
}

/* =========================================
   Contact Section
========================================= */
.contact-section {
    padding: 100px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
}

.contact-form-wrapper {
    background-color: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(15, 81, 50, 0.1);
}

.contact-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-card {
    background-color: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
}

.info-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.info-card h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.info-card p a {
    color: var(--secondary);
    font-weight: 600;
}

.map-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
}

/* =========================================
   Footer
========================================= */
#main-footer {
    background-color: var(--dark);
    color: white;
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo {
    width: 80px;
    margin-bottom: 20px;
}

.footer-about h3 {
    color: var(--secondary);
    margin-bottom: 15px;
}

.footer-links h4,
.footer-social h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4::after,
.footer-social h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    opacity: 0.8;
    transition: var(--transition-fast);
}

.footer-links ul li a:hover {
    opacity: 1;
    color: var(--secondary);
    padding-right: 5px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--dark-light);
    color: white;
    transition: var(--transition-fast);
}

.social-icons a:hover {
    background-color: var(--secondary);
    color: var(--dark);
    transform: translateY(-3px);
}

/* =========================================
   Floating WhatsApp Button
========================================= */
.whatsapp-float {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 65px;
    height: 65px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 35px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: var(--transition-smooth);
}

.whatsapp-float:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.6);
}

.pulse-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #25D366;
    z-index: -1;
    animation: glow 2s infinite;
}

@keyframes glow {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    font-size: 0.9rem;
    opacity: 0.7;
    text-align: center;
}

/* =========================================
   Responsive Design
========================================= */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    /* Improved Mobile Menu */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--dark-light);
        padding: 80px 40px;
        transition: var(--transition-smooth);
        z-index: 999;
        box-shadow: -10px 0 30px rgba(0,0,0,0.3);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu ul {
        flex-direction: column;
        gap: 25px;
        align-items: flex-start;
    }
    
    .nav-link {
        color: white;
        font-size: 1.2rem;
    }
    
    .mobile-toggle {
        display: block;
        z-index: 1000;
    }
    
    .mobile-toggle span {
        display: block;
        width: 25px;
        height: 3px;
        background-color: var(--dark);
        margin: 5px 0;
        transition: var(--transition-fast);
    }
    
    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
        background-color: white;
    }
    
    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
        background-color: white;
    }
    
    #main-header.scrolled .mobile-toggle span {
        background-color: white;
    }
}

/* =========================================
   Scroll Entrance Animations
========================================= */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}
