/* 
   Safemax Global Logistics 
   Modern Corporate Theme
   Colors: Dark Blue (#003366), Orange (#FF6600)
*/

:root {
    --primary-color: #003366;
    /* Deep Corporate Blue */
    --primary-light: #004d99;
    --secondary-color: #FF6600;
    /* Vibrant Orange */
    --secondary-dark: #cc5200;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --max-width: 1200px;
    --transition: all 0.3s ease;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

.bg-light {
    background-color: var(--bg-light);
}

.text-secondary {
    color: var(--secondary-color);
}

.hidden {
    display: none;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
    margin: 10px auto 0;
}

.lead {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

/* Navigation */
.navbar {
    background: var(--white);
    height: 80px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
}

.logo-accent {
    color: var(--secondary-color);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--secondary-color);
}

.nav-link.active {
    color: var(--secondary-color);
}

.btn-contact {
    background: var(--primary-color);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: 4px;
}

.btn-contact:hover {
    background: var(--primary-light);
}

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    background-image: url('../assets/images/hero_clean.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    /* offset for fixed nav */
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 51, 102, 0.85), rgba(0, 51, 102, 0.6));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 600px;
}

.highlight {
    color: var(--secondary-color);
}

.hero-btns {
    display: flex;
    gap: 20px;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--secondary-color);
    color: var(--white);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
}

.experience-badge .years {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.experience-badge .text {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
}

.values-list {
    margin-top: 30px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.value-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.value-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    background: rgba(255, 102, 0, 0.1);
    padding: 10px;
    border-radius: 50%;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    border-top: 3px solid var(--secondary-color);
}

.icon-box {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-features {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.service-features li {
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-features li i {
    color: var(--secondary-color);
    font-size: 0.8rem;
}

/* Why Choose Us */
.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.why-image img {
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.feature i {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

/* Tracking */
.tracking {
    background: url('../assets/images/hero.png');
    /* Reusing hero image for bg consistency, can generate dedicated one if needed */
    background-size: cover;
    position: relative;
    padding: 100px 0;
    text-align: center;
    color: var(--white);
    background-attachment: fixed;
}

.tracking-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 51, 102, 0.9);
}

.tracking-container {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.tracking-box h2 {
    margin-bottom: 10px;
}

.input-group {
    display: flex;
    margin-top: 30px;
    background: var(--white);
    padding: 5px;
    border-radius: 5px;
}

.input-group input {
    flex: 1;
    border: none;
    padding: 15px 20px;
    font-size: 1rem;
    outline: none;
}

.input-group button.btn {
    border-radius: 4px;
}

/* Tracking Result UI */
.tracking-result.hidden {
    display: none;
}

.status-card {
    background: var(--white);
    color: var(--text-dark);
    margin-top: 30px;
    border-radius: 8px;
    padding: 20px;
    text-align: left;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.status-header {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 20px;
    font-weight: 700;
}

.id-value {
    color: var(--secondary-color);
}

.status-body {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.step {
    display: flex;
    position: relative;
    padding-bottom: 25px;
}

.step:last-child {
    padding-bottom: 0;
}

.step::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 20px;
    bottom: 0;
    width: 2px;
    background: #e0e0e0;
}

.step:last-child::before {
    display: none;
}

.dot {
    width: 16px;
    height: 16px;
    background: #e0e0e0;
    border-radius: 50%;
    margin-right: 20px;
    position: relative;
    z-index: 1;
    margin-top: 5px;
}

.step.completed .dot,
.step.active .dot {
    background: var(--primary-color);
}

.step.active .dot {
    border: 3px solid var(--secondary-color);
    background: var(--white);
    transform: scale(1.2);
}

.details h4 {
    font-size: 1rem;
    margin-bottom: 2px;
}

.details .date {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Contact */
.contact-wrapper {
    display: flex;
    gap: 50px;
    margin-top: 50px;
}

.contact-info {
    flex: 1;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item i {
    width: 50px;
    height: 50px;
    background: var(--bg-light);
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.2rem;
}

.contact-form-box {
    flex: 1.2;
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border: 1px solid #eee;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    outline: none;
    transition: border 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--secondary-color);
}

.full-width {
    width: 100%;
}

/* Footer */
.footer {
    background: #001a33;
    color: white;
    padding-top: 70px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.footer h4 {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--secondary-color);
}

.footer ul li {
    margin-bottom: 10px;
}

.footer ul li a,
.footer ul li {
    color: #ccc;
    font-size: 0.95rem;
    cursor: pointer;
    transition: color 0.3s;
}

.footer ul li a:hover {
    color: var(--secondary-color);
}

.social-links a {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    width: 35px;
    height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 10px;
    transition: 0.3s;
}

.social-links a:hover {
    background: var(--secondary-color);
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
    color: #888;
}

/* Responsive */
@media (max-width: 991px) {

    .about-grid,
    .why-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        padding: 20px 0;
        transition: 0.3s;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 15px 0;
    }

    .hero-btns {
        flex-direction: column;
    }

    .input-group {
        flex-direction: column;
        gap: 10px;
        background: transparent;
    }

    .input-group input {
        border-radius: 5px;
    }

    .featured-row {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Page Header (for multi-page layout) */
.page-header {
    background: linear-gradient(rgba(0, 51, 102, 0.9), rgba(0, 51, 102, 0.8)), url('../assets/images/hero_clean.png');
    background-size: cover;
    background-position: center;
    padding: 100px 0 60px;
    color: var(--white);
    text-align: center;
    margin-top: 80px;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Team Section Creative Styles */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.team-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    text-align: center;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.team-img {
    height: 320px;
    overflow: hidden;
    position: relative;
}

.team-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-card:hover .team-img img {
    transform: scale(1.1);
}

/* Placeholder for missing images */
.placeholder-img {
    width: 100%;
    height: 100%;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: #bdbdbd;
}

.team-info {
    padding: 25px;
    position: relative;
    background: var(--white);
    z-index: 2;
}

.team-info h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.team-info .role {
    display: block;
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.social-mini a {
    display: inline-flex;
    width: 35px;
    height: 35px;
    background: var(--bg-light);
    color: var(--primary-color);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-mini a:hover {
    background: var(--secondary-color);
    color: var(--white);
}