html {
  scroll-behavior: smooth;
}

.hero-section {
width: 100%;
height: calc(100vh - var(--navbar-height));
overflow: hidden;  
background: var(--second-text-color);
padding-top: var(--navbar-height);
}

.slider-container {
position: relative;
width: 100%;
height: 100%;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out, transform 1.5s ease-in-out;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
}

.slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

.images-container{
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    position: relative;
    width: 100%;
    height: 100%;
}

.left {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.right-img{
    height: 400px;    
}

.right-img.animate{
    animation: float 4s linear infinite;
}


@keyframes float{
    0%, 100%{
        transform: translateY(0rem);
    }
    50%{
        transform: translateY(-3rem);
    }
}


.slide-content {
    position: absolute;
    bottom: 20%;
    left: 10%;
    max-width: 600px;
    color: var(--primary-color);
    padding: 30px;
    margin: 30px;
    background:rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(5px);
    border-radius: 10px;
    transform: translateY(50px);
    opacity: 0;
    transition: all 1s ease 0.5s;
    direction: rtl;
}

.left .slide-content{
    position: unset;
    bottom: unset;
    left: unset;
}

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

.slide.active .slide-content {
    transform: translateY(0);
    opacity: 1;
}

.slide h2 {
    font-size: 3rem;
    margin-bottom: 15px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.slide p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    font-weight: 300;
}

.slide ul{
    line-height: 28px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-color-opacity-snd);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

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

.thumbnails {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.thumbnail {
    width: 80px;
    height: 60px;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.5s ease;
    opacity: 0.7;
    border: 2px solid transparent;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.thumbnail:hover {
    opacity: 1;
}

.thumbnail.active {
    width: 100px;
    height: 80px;
    opacity: 1;
    border-color: white;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/*stats section*/
.stats-section{
    width: 100%;
    box-shadow: var(--Shadow-box);
}

.stats-container {
    display: flex;
    flex-wrap: wrap;
    background: var(--primary-color);
    justify-content: space-evenly;
    padding:80px 0px;
    gap: 40px;
    color:var(--gray-text-color);
}

.stat-item {
    display: flex;
    flex-direction: row;
    padding: 20px;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-item:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    height: 100px;
    width: 100px;
}

.stat-icon svg path {
    fill:var(--gray-text-color);
}

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

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    font-family:'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.stat-text {
    font-size: 2.1rem;
    font-weight: 700;
}

/* About section */
.about-section {
    padding: 50px 5%;
    background-color: #fff;
    direction: rtl;
}

.about-container {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    max-width: 1200px;
    align-items: center;
}

.about-image {
    flex: 1;
    min-width: 300px;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

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

.about-image:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.3), rgba(155, 89, 182, 0.3));
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.about-image:hover:before {
    opacity: 1;
}

.about-content {
    flex: 1;
    min-width: 300px;
}

.about-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 400;
    color: #222;
}

.about-content p {
    font-size: 1rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 25px;
}


/* Timeline */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #222;
    margin-bottom: 15px;
    font-weight: 300;
    position: relative;
    display: inline-block;
}

.section-header h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #000064, #1c75bc);
}


 /* ===== SHIPMENT FLOWCHART SECTION ===== */
.flow-section {
    padding: 80px 5%;
    background: #f9f9f9;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #222;
    font-weight: 300;
    position: relative;
    display: inline-block;
}

.flow-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    position: relative;
    max-width: 1000px;
    direction: rtl;
    margin: 0 auto;
}

.flow-container:before {
    position: absolute;
    top:40%;
    content: '';
    width: 70%;
    height: 4px;
    background: repeating-linear-gradient(to right, var(--gray-text-color), var(--gray-text-color) 20px, transparent 20px, transparent 30px);
    z-index: 1;
}

.flow-step {
    position: relative;
    width: 120px;
    transition: all 0.4s ease;
    z-index: 2;
    padding:10px;
    transition: all 0.5s ease, box-shadow 0.5s ease;
}

.flow-step:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.5s ease, box-shadow 0.5s ease;
    transform:scale(1.1);
}

.step-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
}

.step-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #222;
    font-weight: 500;
}
    

/* Dual Image Section */
.dual-image-section {
    padding: 100px 5%;
    background-color: var(--primary-color);
}

.image-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.image-card {
    flex: 1;
    min-width: 300px;
    height: 500px;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--Shadow-box);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.image-card:hover {
    transform: translateY(-10px);
 
}

.image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.5s ease;
}

.image-card:hover img {
    transform: scale(1.05);
    filter: brightness(0.7);
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    background: linear-gradient(to bottom, rgba(0, 0, 0,0.2) 0%, rgba(0, 0, 100,1) 100%);
    transform: translateY(50%);
    opacity: .5;
    transition: all 0.5s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.image-card:hover .image-overlay {
    transform: translateY(0);
    opacity: 1;
}

.overlay-content {
    color: var(--second-text-color);
    direction: rtl;
    transform: translateY(30px);
    transition: transform 0.5s cubic-bezier(0.215, 0.61, 0.355, 1) 0.1s;
}

.overlay-header{
    padding-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.overlay-header svg{
    fill:var(--second-text-color);
}

.image-card:hover .overlay-content {
    transform: translateY(0);
}

.overlay-content h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 400;
}

.overlay-content p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    opacity: 0.9;
}

.overlay-btn {
    display: inline-block;
    padding: 10px 25px;
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.overlay-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

/* New Shipments Section */
.shipments-section {
    direction: rtl;
    padding: 100px 5%;
    background-color: #f5f7fa;
}

.shipments-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.shipments-title h2 {
    font-size: 2.5rem;
    color: #222;
    font-weight: 300;
    margin-bottom: 10px;
}

.table-container{
  max-height: 500px;
  overflow-y: auto;
  border-radius: 10px;
  box-shadow: var(--Shadow-box);
}

.shipments-table {
    width: 100%;
    direction: rtl;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
}

.shipments-table thead {
    position:sticky;
    top: 0;
    background: linear-gradient(135deg, #3498db, #000064);
    color: white;
    height: 50px;
}

.shipments-table th {
    padding: 10px 0;
    text-align: center;
    font-weight: 400;
    font-size: 16px;
    letter-spacing: 0.5px;
}

.shipments-table td {
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
    transition: background 0.3s ease;
}

.shipments-table tbody tr:hover td {
    background: rgba(52, 152, 219, 0.05);
}



.shipment-number{
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

@media (max-width: 768px) {
    /*Hero section*/
    .slide h2,
    .about-content h2 {
        font-size: 2rem;
    }
    
    .slide-content {
        left: 5%;
        right: 5%;
        max-width: none;
    }

    .slide .left img,
    .slide img {
        scale: 0.9;
    }
    
    .thumbnails {
        bottom: 20px;
    }
    
    .thumbnail {
        width: 50px;
        height: 40px;
    }
    
    .thumbnail.active {
        width: 70px;
        height: 50px;
    }

    /* Stats section responsive adjustments */
    .section-title {
        font-size: 2rem;
    }

    .stats-container {
        gap: 20px;
    }

    .stat-item {
        min-width: 150px;
        padding: 20px 15px;
    }

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

    /*Flow section*/
    .flow-container {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .flow-container:before {
        top: 0;
        left: 50%;
        width: 2px;
        height: 100%;
        background: repeating-linear-gradient(to bottom, #3498db, #3498db 10px, transparent 10px, transparent 20px);
    }

    .flow-step {
        width: 80%;
    }

    /* Dual image section */
    .image-card {
        height: 400px;
    }
            
    .image-overlay {
        padding: 25px;
        opacity: 0.8;
        transform: translateY(0px);
    }
    
    .overlay-content h3 {
        font-size: 1.5rem;
    }

    /* Shipments table section */
    .shipments-table th,
    .shipments-table td,
    .tracking-date .status,
    .pointsnames-bar .point-name {
        font-size: 12px;
    }
}