/**
 * EightD Main Stylesheet
 * Clean static site version
 */

/* ============================================
   CSS VARIABLES & ROOT STYLES
   ============================================ */
:root {
    /* Colors */
    --color-primary: #021e47;
    --color-secondary: #3d4459;
    --color-text: #3f4244;
    --color-accent: #0368d1;
    --color-white: #ffffff;
    --color-light-gray: #e9e9e9;
    --color-lighter-gray: #f9f9f9;
    --color-footer-bg: #ecf0f2;
    
    /* Typography */
    --font-primary: "Varela Round", sans-serif;
    --font-secondary: "Roboto Flex", sans-serif;
    --font-accent: "Montserrat", sans-serif;
    
    /* Sizes */
    --container-max-width: 1400px;
    --header-height: 90px;
    
    /* Transitions */
    --transition-default: 0.3s ease;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: var(--font-secondary);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--color-text);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0.5rem 0 1rem;
    font-family: var(--font-primary);
    font-weight: 500;
    line-height: 1.2;
    color: inherit;
}

h2 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }

p {
    margin: 0 0 0.9rem;
}

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

a:hover {
    color: #c36;
}

img {
    border-style: none;
    height: auto;
    max-width: 100%;
    vertical-align: middle;
}

ul, li {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* ============================================
   LAYOUT & CONTAINERS
   ============================================ */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 10px;
}

.section {
    position: relative;
}

.section-boxed > .container {
    max-width: 1400px;
}

/* Flexbox Grid System */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: auto;
    margin-left: auto;
}

.col-25 { width: 25%; }
.col-33 { width: 33.333%; }
.col-50 { width: 50%; }
.col-75 { width: 75%; }
.col-100 { width: 100%; }

@media (max-width: 1024px) {
    .col-50, .col-33 { width: 100%; }
}

@media (max-width: 767px) {
    .col-25 { width: 100%; }
}

/* ============================================
   HEADER STYLES
   ============================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(130deg, var(--color-accent) 0%, var(--color-primary) 40%);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    min-height: var(--header-height);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    min-height: var(--header-height);
    padding: 0 20px;
}

.site-logo img {
    width: 77%;
    max-width: 100%;
    height: 70px;
    object-fit: contain;
    object-position: center center;
}

/* Navigation */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-menu a {
    color: var(--color-white);
    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: 300;
    padding: 35px 20px;
    position: relative;
    transition: color var(--transition-default);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 30%;
    left: 20px;
    right: 20px;
    height: 3px;
    background-color: var(--color-white);
    transform: scaleX(0);
    transition: transform var(--transition-default);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    transform: scaleX(1);
}

/* .nav-menu a.active {
    color: red;
} */

.nav-menu a.active::after {
    background-color: red;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: transparent;
    border: 0;
    color: var(--color-white);
    font-size: 25px;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle .icon-close {
    display: none;
}

.menu-toggle.active .icon-open {
    display: none;
}

.menu-toggle.active .icon-close {
    display: inline;
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

.mobile-nav.active {
    display: block;
}

.mobile-nav a {
    display: block;
    color: var(--color-secondary);
    padding: 15px 20px;
    border-bottom: 1px solid var(--color-light-gray);
}

.mobile-nav a:hover,
.mobile-nav a.active {
    color: var(--color-primary);
    background-color: var(--color-lighter-gray);
}

.mobile-nav a.active {
    color: red;
    text-decoration: underline;
    text-decoration-color: red;
    text-underline-offset: 4px;
    text-decoration-thickness: 2px;
}

@media (max-width: 1024px) {
    .nav-menu {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .site-logo img {
        height: 49px;
    }
}

@media (max-width: 767px) {
    .site-logo img {
        height: 38px;
    }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-slideshow .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-slideshow .slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(223deg, transparent 0%, var(--color-primary) 100%);
    opacity: 0.91;
    /* z-index: 1; */
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px;
}

.hero-title {
    color: var(--color-white);
    font-family: var(--font-primary);
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-subtitle {
    color: var(--color-white);
    font-family: var(--font-accent);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 30px;
}

/* wave divider for hero section */
/* Wave Divider */
.wave-divider-hero {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.wave-divider-hero svg {
    display: block;
    width: 260%;
    height: 120px;
    transform: translateX(-50%) rotateY(180deg);
    position: relative;
    left: 50%;
}

.wave-divider-hero .shape-fill {
    fill: var(--color-white);
}

/* Wave Divider */
.wave-divider {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotateY(0deg);
}

.wave-divider svg {
    display: block;
    width: 260%;
    height: 120px;
    transform: translateX(-50%) rotateY(180deg);
    position: relative;
    left: 50%;
}

.wave-divider .shape-fill {
    fill: var(--color-white);
}

/* wave divider for newsletter section */
.wave-divider-newsletter {
    position: absolute;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 1;
}

.wave-divider-newsletter.top {
    top: -1px;
}

.wave-divider-newsletter svg {
    display: block;
    width: 100%;
    height: 100px;
    position: relative;
}

.wave-divider-newsletter .shape-fill {
    fill: var(--color-white);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    font-family: var(--font-accent);
    font-size: 16px;
    font-weight: 500;
    text-transform: capitalize;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: all var(--transition-default);
}

.btn-primary {
    background-color: #002144;
    color: var(--color-white);
    box-shadow: 0 0 30px rgba(0, 2, 148, 0.196);
}

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

.btn-icon {
    display: inline-flex;
    align-items: center;
}



/* ============================================
   VISION & MISSION SECTION
   ============================================ */
.vision-mission-section {
    max-width: 1200px;
    margin: 2% auto 0;
    padding: 10px;
}

.vision-mission-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.vision-card,
.mission-card {
    flex: 1;
    min-width: 243px;
    padding: 23px 68px;
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
}

.vision-card {
    background-image: url('https://eightd.net/wp-content/uploads/2023/08/vision.svg');
}

.mission-card {
    background-image: url('https://eightd.net/wp-content/uploads/2023/08/mission.svg');
}

.card-title {
    color: var(--color-accent);
    font-family: var(--font-primary);
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
}

.card-text {
    color: var(--color-text);
    font-family: var(--font-secondary);
    font-size: 18px;
    line-height: 1.5;
}

/* ============================================
   WHY CHOOSE US SECTION
   ============================================ */
.why-choose-section {
    position: relative;
    min-height: 592px;
    display: flex;
    align-items: center;
    padding: 50px 0;
}

.why-choose-section .background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://eightd.net/wp-content/uploads/2023/08/BG-cargo2.png');
    background-size: cover;
    background-position: center;
    opacity: 0.68;
    z-index: 0;
}

.why-choose-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 40px;
}

.why-choose-image {
    flex: 1;
    min-width: 300px;
}

.why-choose-image img {
    border-radius: 200px 100px 100px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.12);
    margin-top: -10%;
}

.why-choose-text {
    flex: 1;
    min-width: 300px;
    padding: 5% 0 5% 10%;
}

/* ============================================
   STATS COUNTER SECTION
   ============================================ */
.stats-section {
    background-color: var(--color-primary);
    position: relative;
    padding: 50px 0 51px;
}

.stats-section .background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://eightd.net/wp-content/uploads/2023/08/BG-cargo.png');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
}

.stats-section .wave-divider.top {
    top: 0;
    bottom: auto;
}

.stats-section .wave-divider.top svg {
    width: 300%;
    height: 36px;
}

.stats-container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.stat-item {
    text-align: center;
    flex: 1;
    min-width: 200px;
}

.stat-icon {
    color: var(--color-accent);
    font-size: 50px;
    margin-bottom: 15px;
}

.stat-number {
    color: var(--color-white);
    font-family: var(--font-primary);
    font-size: 45px;
    font-weight: 900;
    line-height: 1.2;
}

.stat-label {
    color: var(--color-white);
    font-family: var(--font-accent);
    font-size: 16px;
    font-weight: 500;
}

/* ============================================
   NEWS SECTION
   ============================================ */
.news-section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    color: var(--color-primary);
    font-family: var(--font-primary);
    font-size: 45px;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 50px;
}

.news-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.news-card {
    flex: 1;
    min-width: 280px;
    position: relative;
    height: 383px;
    overflow: hidden;
    border-radius: 8px;
}

.news-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.news-card:hover .news-card-bg {
    transform: scale(1.1) translateY(8%);
}

.news-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    transition: background var(--transition-default);
}

.news-card-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-card-btn {
    padding: 10px 20px;
    background: transparent;
    border: 2px solid var(--color-white);
    color: var(--color-white);
    font-size: 13px;
    border-radius: 4px;
    transition: all var(--transition-default);
}

.news-card:hover .news-card-btn {
    transform: scale(1.1);
}

/* ============================================
   PARTNERS CAROUSEL
   ============================================ */
.partners-section {
    padding: 50px 0;
}

.partners-carousel {
    position: relative;
    overflow: hidden;
    max-width: var(--container-max-width);
    margin: 0 auto;
}

.partners-track {
    display: flex;
    animation: scroll 30s linear infinite;
}

.partner-logo {
    flex: 0 0 auto;
    width: 230px;
    padding: 0 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-logo img {
    max-height: 60px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter var(--transition-default);
}

.partner-logo:hover img {
    filter: grayscale(0%);
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================
   NEWSLETTER SECTION
   ============================================ */
.newsletter-section {
    background-color: var(--color-footer-bg);
    padding: 120px 20px 100px;
    text-align: center;
    position: relative;
}

.newsletter-section .wave-divider-newsletter.top {
    top: -1px;
}

.newsletter-container {
    max-width: 695px;
    margin: 0 auto;
}

.newsletter-icon {
    color: var(--color-primary);
    font-size: 53px;
    margin-bottom: 20px;
}

.newsletter-title {
    color: var(--color-accent);
    font-size: 38px;
    font-weight: 600;
    margin-bottom: 10px;
}

.newsletter-subtitle {
    color: #686868;
    font-size: 16px;
    font-weight: 300;
    margin-bottom: 50px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 3;
    padding: 15px 20px;
    background: var(--color-white);
    border: 1px solid rgba(61, 68, 89, 0.26);
    border-radius: 50px;
    font-size: 15px;
    color: var(--color-primary);
    letter-spacing: 3px;
}

.newsletter-form button {
    flex: 1;
    padding: 15px 20px;
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: background var(--transition-default);
}

.newsletter-form button:hover {
    background: var(--color-accent);
}

@media (max-width: 767px) {
    .newsletter-form {
        flex-direction: column;
    }
}

/* ============================================
   FOOTER STYLES
   ============================================ */
.site-footer {
    background: linear-gradient(266deg, #c2d2da 1%, var(--color-footer-bg) 90%);
    border-top: 1px solid var(--color-light-gray);
    padding: 30px 0;
}

.footer-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-row {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 30px;
}

.footer-col {
    flex: 1;
    min-width: 250px;
}

.footer-logo img {
    max-width: 150px;
}

.footer-title {
    color: var(--color-accent);
    font-family: var(--font-primary);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--color-secondary);
    font-size: 14px;
}

.footer-contact i {
    color: var(--color-accent);
    font-size: 20px;
    margin-top: 2px;
}

.footer-map img {
    max-width: 55%;
}

.footer-divider {
    border: none;
    border-top: 1px solid rgba(63, 66, 68, 0.32);
    margin: 20px 0;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer-copyright {
    color: var(--color-text);
    font-size: 16px;
}

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

.footer-social a {
    color: var(--color-primary);
    font-size: 22px;
    transition: color var(--transition-default);
}

.footer-social a:hover {
    color: var(--color-accent);
}

.footer-credits {
    color: var(--color-text);
    font-size: 14px;
}

/* Track Shipment Button */
.track-btn-fixed {
    position: fixed;
    bottom: 50px;
    left: 50px;
    z-index: 9999;
}

.track-btn-fixed a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: 50%;
    font-size: 24px;
    box-shadow: 0 0 25px rgba(53, 56, 240, 0.35);
    transition: background var(--transition-default);
}

.track-btn-fixed a:hover {
    background: var(--color-accent);
}

/* ============================================
   POPUP / MODAL STYLES
   ============================================ */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--color-white);
    border-radius: 20px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.15);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: var(--color-text);
}

/* ============================================
   FORM STYLES
   ============================================ */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    color: #11172b;
    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: 400;
    margin-bottom: 8px;
}

.form-label.required::after {
    content: ' *';
    color: red;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: var(--color-white);
    border: 1px solid var(--color-light-gray);
    border-radius: 4px;
    font-size: 16px;
    color: var(--color-text);
    transition: border-color var(--transition-default);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-accent);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

.btn-submit {
    background: #11172b;
    color: var(--color-white);
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-family: var(--font-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background var(--transition-default);
}

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

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-white { color: var(--color-white); }
.text-primary { color: var(--color-primary); }
.text-accent { color: var(--color-accent); }

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.mt-50 { margin-top: 50px; }
.mb-50 { margin-bottom: 50px; }

.pt-0 { padding-top: 0; }
.pb-0 { padding-bottom: 0; }
.pt-20 { padding-top: 20px; }
.pb-20 { padding-bottom: 20px; }
.pt-50 { padding-top: 50px; }
.pb-50 { padding-bottom: 50px; }

.hidden { display: none; }
.visible { display: block; }

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 32px;
    }
    
    .section-title,
    .card-title {
        font-size: 35px;
    }
    
    .stat-number {
        font-size: 32px;
    }
    
    .hero-section {
        min-height: 770px;
        padding: 0 5%;
    }

    .vision-mission-section {
        padding: 10px 20px;
    }

    .vision-mission-row {
        flex-direction: column;
        gap: 15px;
    }

    .vision-card,
    .mission-card {
        min-width: unset;
        width: 100%;
        padding: 20px;
        background-image: none;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 30px;
    }

    .section-title,
    .card-title {
        font-size: 30px;
    }

    .stat-number {
        font-size: 30px;
    }

    .hero-section {
        min-height: 532px;
        padding: 15% 5% 0;
    }

    .vision-mission-section {
        margin-top: 5%;
        padding: 10px 10px;
    }

    .vision-card,
    .mission-card {
        text-align: center;
        padding: 20px 15px;
        background-image: none;
    }

    .vision-card .card-title,
    .mission-card .card-title {
        font-size: 24px;
        margin-bottom: 8px;
    }

    .vision-card .card-text,
    .mission-card .card-text {
        font-size: 15px;
        line-height: 1.4;
    }
    
    .why-choose-text {
        padding: 5%;
        text-align: center;
    }
    
    .stats-section {
        padding: 20% 5% 5%;
    }
    
    .stat-item {
        padding: 5%;
    }
    
    .news-section {
        padding: 50px 20px;
    }
    
    .newsletter-section {
        padding: 50px 20px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ============================================
   PAGE-SPECIFIC STYLES
   ============================================ */
/* About Us Page */
.about-hero {
    background-image: url('https://eightd.net/wp-content/uploads/2023/08/about-hero.jpg');
}

/* Products & Services Page */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 50px 20px;
}

.service-card {
    background: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform var(--transition-default);
}

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

.service-card-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.service-card-content {
    padding: 25px;
}

/* Track Shipments Page */
.track-section {
    padding: 100px 20px;
    text-align: center;
}

.track-form {
    max-width: 600px;
    margin: 0 auto;
}

/* Get In Touch Page */
.contact-section {
    padding: 100px 20px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Careers Page */
.careers-section {
    padding: 100px 20px;
}

.job-listing {
    background: var(--color-lighter-gray);
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 20px;
}

.job-title {
    font-size: 24px;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.job-description {
    color: var(--color-text);
    margin-bottom: 20px;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.animate-fadeIn {
    animation: fadeIn 1s ease forwards;
}

.animate-fadeInDown {
    animation: fadeInDown 1s ease forwards;
}

.animate-fadeInUp {
    animation: fadeInUp 1s ease forwards;
}

.animate-slideInLeft {
    animation: slideInLeft 1s ease forwards;
}

.animate-slideInRight {
    animation: slideInRight 1s ease forwards;
}

.animate-slideInUp {
    animation: slideInUp 1s ease forwards;
}

/* Animation trigger on scroll */
.animate-on-scroll {
    opacity: 0;
    animation: none;
}

.animate-on-scroll.animated {
    opacity: 1;
}

.animate-on-scroll.animate-fadeIn.animated {
    animation: fadeIn 1s ease forwards;
}

.animate-on-scroll.animate-fadeInDown.animated {
    animation: fadeInDown 1s ease forwards;
}

.animate-on-scroll.animate-fadeInUp.animated {
    animation: fadeInUp 1s ease forwards;
}

.animate-on-scroll.animate-slideInLeft.animated {
    animation: slideInLeft 1s ease forwards;
}

.animate-on-scroll.animate-slideInRight.animated {
    animation: slideInRight 1s ease forwards;
}

.animate-on-scroll.animate-slideInUp.animated {
    animation: slideInUp 1s ease forwards;
}

/* ============================================
   ADDITIONAL PAGE STYLES
   ============================================ */

/* Page Hero (Interior Pages) */
.page-hero {
    position: relative;
    background: linear-gradient(135deg, var(--color-primary) 0%, #032a5e 100%);
    padding: 150px 20px 100px;
    text-align: center;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-title {
    color: var(--color-white);
    font-size: 48px;
    margin-bottom: 15px;
}

.about-hero {
    position: relative;
    background: var(--color-primary);
    overflow: hidden;
}

.about-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('https://eightd.net/wp-content/uploads/2023/08/hero-1.jpg.webp');
    background-position: center center;
    background-size: cover;
    opacity: 0.1;
    pointer-events: none;
}

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

.about-hero .page-title {
    font-family: var(--font-primary);
    font-size: 60px;
    font-weight: 300;
    text-transform: capitalize;
    line-height: 1.2;
}

.track-hero {
    position: relative;
    background: var(--color-primary);
    overflow: hidden;
}

.track-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('https://eightd.net/wp-content/uploads/2023/08/hero-1.jpg.webp');
    background-position: center center;
    background-size: cover;
    opacity: 0.1;
    pointer-events: none;
}

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

.track-hero .page-title {
    font-family: var(--font-primary);
    font-size: 60px;
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: 0.01em;
}

.track-hero-subtitle {
    font-size: 22px;
    font-weight: 300;
}

.products-hero {
    position: relative;
    background: var(--color-primary);
    overflow: hidden;
}

.products-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('https://eightd.net/wp-content/uploads/2023/07/track.jpg.webp');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0.56;
    mix-blend-mode: multiply;
    pointer-events: none;
}

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

.products-hero .page-title {
    font-family: var(--font-primary);
    font-size: 60px;
    font-weight: 300;
    line-height: 1.2;
}

.get-in-touch-hero {
    position: relative;
    background: var(--color-primary);
    overflow: hidden;
}

.get-in-touch-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('https://eightd.net/wp-content/uploads/2023/08/hero-1.jpg.webp');
    background-position: center center;
    background-size: cover;
    opacity: 0.1;
    pointer-events: none;
}

.get-in-touch-hero .container {
    position: relative;
    z-index: 1;
}

.get-in-touch-hero .page-title {
    font-family: var(--font-primary);
    font-size: 60px;
    font-weight: 300;
    text-transform: capitalize;
    line-height: 1.2;
}

.page-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

/* About Page Styles */
.about-content-section {
    padding: 55px 20px 80px;
    position: relative;
    min-height: 600px;
    margin: 2% 0;
}

.about-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://eightd.net/wp-content/uploads/2023/08/BG-cargo2.png.webp');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0.55;
    filter: brightness(100%) contrast(100%) saturate(200%) blur(0) hue-rotate(360deg);
    z-index: -1;
}

.about-grid {
    display: grid;
    grid-template-columns: 55% 45%;
    gap: 50px;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
}

.about-text {
    padding: 10px 50px 50px;
}

.about-text p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.about-image {
    margin-top: -10%;
}

.about-image img {
    width: 100%;
    max-width: 80%;
    height: 500px;
    object-fit: cover;
    border-radius: 200px 100px 100px 100px;
    box-shadow: 0 0 30px 0 rgba(0, 0, 0, 0.12);
}

/* Quick Links Section */
.quick-links-section {
    padding: 60px 20px;
    margin-top: 50px;
    margin-bottom: 100px;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.quick-link-card {
    text-align: center;
    display: block;
    transition: transform var(--transition-default);
}

.quick-link-card:hover img {
    transform: scale(1.02);
}

.quick-link-card img {
    width: 100%;
    max-width: 100%;
    transition: transform var(--transition-default);
}

.quick-link-card h3 {
    color: var(--color-text);
    font-family: var(--font-primary);
    font-size: 30px;
    font-weight: 600;
    text-transform: capitalize;
    margin: 18px 0 0;
}

/* Split Section (About page) */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 500px;
    overflow: hidden;
}

.split-section.reverse {
    direction: rtl;
}

.split-section.reverse > * {
    direction: ltr;
}

.split-image {
    background-size: cover;
    background-position: center;
    min-height: 400px;
}

.split-content {
    padding: 50px;
    margin: 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.split-content .section-title {
    text-align: center;
    color: var(--color-accent);
    font-size: 35px;
    font-weight: 700;
    margin-bottom: 20px;
}

.feature-list {
    list-style: disc;
    padding-left: 20px;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.8em;
    color: var(--color-text);
}

.feature-list li {
    margin-bottom: 20px;
}

.feature-list h4 {
    color: var(--color-text);
    margin-bottom: 6px;
    font-size: 16px;
    font-weight: 700;
}

.feature-list p {
    color: var(--color-text);
    line-height: 1.7;
    margin: 0;
}

.split-content > h4 {
    color: var(--color-text);
    font-size: 16px;
    font-weight: 700;
    margin: 16px 0 10px;
}

.office-list {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 20px;
}

.office-list li {
    margin-bottom: 8px;
}

/* Service Section (Products page) */
.service-section {
    padding: 80px 20px;
}

.service-section.alt-bg {
    background: var(--color-lighter-gray);
}

.service-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.service-grid.reverse {
    direction: rtl;
}

.service-grid.reverse > * {
    direction: ltr;
}

.service-content h2 {
    color: var(--color-primary);
}

.service-content h2 a {
    color: var(--color-primary);
}

.service-content h2 a:hover {
    color: var(--color-accent);
}

.service-image img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    width: 100%;
}

.products-page .products-service-section {
    padding: 0 20px;
    margin: 100px 0;
}

.products-page .products-service-section.alt-bg {
    background: transparent;
}

.products-page .service-grid {
    max-width: 1000px;
    gap: 40px;
    align-items: center;
}

.products-page .service-content .section-title {
    color: var(--color-accent);
    font-size: 35px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: left;
    text-transform: uppercase;
}

.products-page .service-content .section-title a {
    color: inherit;
}

.products-page .service-content p {
    font-size: 16px;
    font-weight: 300;
    line-height: 1.8;
}

.products-page .service-image img {
    width: 440px;
    max-width: 100%;
    height: auto;
    box-shadow: none;
}

.products-page .svc-left-image .service-image img {
    border-radius: 50px 50px 150px 50px;
}

.products-page .svc-right-image .service-image img {
    border-radius: 50px 50px 50px 150px;
}

.airfreight-showcase {
    position: relative;
    width: 100%;
    max-width: 440px;
    height: 400px;
    margin: 0 auto;
    overflow: hidden;
    -webkit-mask-image: url('https://eightd.net/wp-content/uploads/2023/08/shape-2.svg');
    -webkit-mask-size: contain;
    -webkit-mask-position: center center;
    -webkit-mask-repeat: no-repeat;
    mask-image: url('https://eightd.net/wp-content/uploads/2023/08/shape-2.svg');
    mask-size: contain;
    mask-position: center center;
    mask-repeat: no-repeat;
}

.products-page .airfreight-showcase .airfreight-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    display: block;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
    opacity: 0;
    transition: opacity 0.9s ease-in-out;
}

.products-page .airfreight-showcase .airfreight-slide.active {
    opacity: 1;
    z-index: 1;
}

/* Tracking Section */
.tracking-section {
    padding: 80px 20px;
}

.tracking-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.tracking-card {
    background: var(--color-white);
    border-radius: 15px;
    padding: 40px;
    text-align: center;
}

.tracking-card h2 {
    color: var(--color-primary);
    margin-bottom: 20px;
}

.tracking-iframe-container iframe {
    border-radius: 10px;
}

.track-page-section {
    position: relative;
    overflow: hidden;
}

.track-page-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('https://eightd.net/wp-content/uploads/2023/08/BG-cargo2.png.webp');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0.55;
}

.track-page-section .container {
    position: relative;
    z-index: 1;
}

.track-page-grid {
    grid-template-columns: repeat(2, minmax(0, 520px));
    justify-content: center;
    gap: 40px;
}

.track-page-card {
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    text-align: center;
}

.track-page-card .section-title {
    margin-bottom: 20px;
    color: var(--color-accent);
    font-size: 35px;
    font-weight: 700;
    text-transform: uppercase;
}

.track-page-card .tracking-iframe-container iframe {
    width: min(100%, 430px);
    max-width: 100%;
    display: block;
    margin: 0 auto;
    border-radius: 0;
}

.track-page-card .tracking-iframe-container {
    width: 100%;
    max-width: 520px;
    text-align: center;
    margin: 0 auto;
}

/* Contact Section */
.contact-form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background: var(--color-white);
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

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

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--color-light-gray);
    border-radius: 8px;
    font-family: var(--font-secondary);
    font-size: 16px;
    transition: border-color var(--transition-default);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}

/* Locations Section */
.locations-section {
    padding: 80px 20px;
    background: var(--color-primary);
    color: var(--color-white);
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.location-card {
    text-align: center;
    padding: 30px;
}

.location-title {
    color: var(--color-white);
    margin-bottom: 15px;
}

.location-info {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    text-align: left;
}

.location-info i {
    color: var(--color-accent);
    font-size: 20px;
    margin-top: 3px;
}

.location-info p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* HQ Section */
.hq-section {
    padding: 80px 20px;
}

.hq-section h2 {
    margin-bottom: 30px;
}

.map-container {
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.contact-page-section {
    position: relative;
    padding: 2vw 0;
}

.contact-page-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('https://eightd.net/wp-content/uploads/2023/08/BG-cargo2.png.webp');
    background-position: bottom center;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.66;
    filter: brightness(100%) contrast(100%) saturate(200%) blur(0) hue-rotate(360deg);
    pointer-events: none;
}

.contact-page-section .container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
}

.contact-page .contact-grid {
    grid-template-columns: 1fr;
    max-width: 1200px;
}

.contact-page .contact-form-wrapper {
    width: min(100%, 860px);
    max-width: 860px;
    background: var(--color-white);
    border-radius: 10px;
    box-shadow: 0 0 30px 0 rgba(0, 0, 0, 0.06);
    padding: 56px 60px;
}

.contact-page .contact-form .form-group {
    margin-bottom: 25px;
}

.contact-page .contact-form input,
.contact-page .contact-form select,
.contact-page .contact-form textarea {
    background-color: #fafafa;
    border: 0;
    border-radius: 5px;
    color: var(--color-primary);
    font-size: 16px;
    padding: 16px 18px;
}

.contact-page .contact-form .btn {
    /* width: 100%; */
    justify-content: center;
    flex-direction: row-reverse;
    gap: 10px;
    border-radius: 30px;
    font-family: var(--font-primary);
    font-size: 16px;
}

.contact-locations-section {
    padding: 20px 0;
    background: transparent;
}

.contact-locations-section .container {
    max-width: 1000px;
}

.contact-locations-grid {
    gap: 0;
    max-width: 1000px;
}

.contact-location-card {
    text-align: left;
    padding: 0 10%;
}

.contact-location-card .location-title {
    color: var(--color-text);
    font-family: var(--font-primary);
    font-size: 29px;
    font-weight: 700;
    margin-bottom: 12px;
}

.contact-location-card .location-info {
    gap: 8px;
}

.contact-location-card .location-info p {
    color: var(--color-text);
}

.btn-center {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.contact-hq-section {
    padding: 40px 20px 20px;
}

.contact-hq-title {
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.contact-hq-section .map-container {
    /* max-width: 1000px; */
    border-radius: 0;
    box-shadow: none;
}

/* Careers Page */
.job-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
    padding: 30px;
    background: var(--color-lighter-gray);
    border-radius: 15px;
}

.search-box {
    display: flex;
    flex: 1;
    min-width: 300px;
}

.job-search-input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 8px 0 0 8px;
    font-size: 16px;
}

.search-btn {
    padding: 15px 25px;
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
}

.filter-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-select {
    padding: 15px 20px;
    border: 1px solid var(--color-light-gray);
    border-radius: 8px;
    background: var(--color-white);
    font-size: 14px;
    min-width: 150px;
}

.job-listings {
    min-height: 300px;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-responsive table {
    min-width: 700px;
}

.no-jobs-message {
    text-align: center;
    padding: 60px 20px;
    background: var(--color-lighter-gray);
    border-radius: 15px;
}

.no-jobs-message i {
    font-size: 60px;
    color: var(--color-light-gray);
    margin-bottom: 20px;
}

.no-jobs-message h3 {
    color: var(--color-primary);
    margin-bottom: 15px;
}

.no-jobs-message p {
    color: var(--color-text);
    margin-bottom: 25px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Why Join Section */
.why-join-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--color-primary) 0%, #032a5e 100%);
}

.why-join-section h2 {
    color: var(--color-white);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.benefit-card {
    text-align: center;
    padding: 40px 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    color: var(--color-white);
    backdrop-filter: blur(10px);
}

.benefit-card i {
    font-size: 50px;
    color: var(--color-accent);
    margin-bottom: 20px;
}

.benefit-card h3 {
    margin-bottom: 15px;
}

.benefit-card p {
    color: rgba(255, 255, 255, 0.85);
}

/* ============================================
   ADDITIONAL RESPONSIVE STYLES
   ============================================ */
@media (max-width: 1024px) {
    .about-grid,
    .service-grid,
    .tracking-grid {
        grid-template-columns: 1fr;
    }

    .track-page-grid {
        grid-template-columns: 1fr;
        justify-items: center;
    }
    
    .about-text {
        padding: 20px;
    }
    
    .about-image {
        margin-top: 0;
        text-align: center;
    }
    
    .about-image img {
        width: 50%;
        height: auto;
    }

    .about-hero .page-title {
        font-size: 40px;
    }

    .track-hero .page-title {
        font-size: 40px;
    }

    .products-hero .page-title {
        font-size: 40px;
    }

    .get-in-touch-hero .page-title {
        font-size: 40px;
    }

    .track-hero-subtitle {
        font-size: 18px;
    }

    .products-page .products-service-section {
        margin: 70px 0;
    }

    .products-page .service-content .section-title {
        font-size: 30px;
    }

    .contact-page-section {
        margin-top: 15%;
        margin-bottom: 10%;
        padding: 0 5%;
    }

    .contact-locations-section {
        margin-top: 15%;
        margin-bottom: 10%;
        padding: 0 5%;
    }

    .contact-locations-grid {
        grid-template-columns: 1fr;
    }

    .contact-location-card {
        text-align: center;
        padding: 5% 0;
    }

    .contact-location-card .location-title {
        font-size: 35px;
    }
    
    .split-section {
        grid-template-columns: 1fr;
    }
    
    .split-section.reverse {
        direction: ltr;
    }
    
    .split-content {
        margin: 20px;
        padding: 30px;
    }
    
    .quick-links-grid,
    .locations-grid,
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .page-title {
        font-size: 32px;
    }

    .about-hero .page-title {
        font-size: 30px;
    }

    .track-hero .page-title {
        font-size: 30px;
    }

    .products-hero .page-title {
        font-size: 30px;
    }

    .get-in-touch-hero .page-title {
        font-size: 30px;
    }

    .products-page .products-service-section {
        margin: 50px 0;
    }

    .products-page .service-content .section-title {
        font-size: 24px;
        text-align: center;
    }

    .contact-page-section,
    .contact-locations-section {
        margin-top: 20%;
        margin-bottom: 20%;
        padding: 0;
    }

    .contact-page .contact-form-wrapper {
        margin: 0;
        padding: 10%;
    }

    .contact-location-card {
        padding: 5%;
    }

    .contact-location-card .location-title {
        font-size: 30px;
    }

    .track-page-card {
        padding: 0;
    }
    
    .about-content-section {
        margin-top: 20%;
        margin-bottom: 20%;
    }
    
    .about-text {
        text-align: center;
    }
    
    .about-image img {
        width: 100%;
        margin-top: 0;
    }
    
    .quick-links-grid,
    .locations-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form-wrapper {
        padding: 30px 20px;
    }
    
    .split-content {
        padding: 40px 20px;
    }
    
    .filter-options {
        width: 100%;
    }
    
    .filter-select {
        width: 100%;
    }
    
    .search-box {
        width: 100%;
    }
}
