/* Global Variables */
:root {
    --primary: #021a32;
    /* Deep Sea Navy */
    --secondary: #0056b3;
    /* Corporate Blue */
    --accent: #ff6b00;
    /* Safety Orange/Container Red */
    --light-bg: #f3f6f9;
    /* Sharper gray */
    --white: #ffffff;
    --text-dark: #0f172a;
    /* Hard black-blue */
    --text-gray: #475569;
    --danger: #d32f2f;
    --gradient-main: linear-gradient(180deg, #021a32 0%, #052c50 100%);
    --gradient-blue: linear-gradient(90deg, #0056b3 0%, #004494 100%);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --border-radius: 6px;
    /* Sharper corners */
    --border-bold: 1px solid #e2e8f0;
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

.text-white {
    color: var(--white) !important;
}

.mt-4 {
    margin-top: 1.5rem;
}

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

.section-header .badge {
    background: rgba(0, 119, 190, 0.1);
    color: var(--secondary);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 15px;
}

.section-header .badge.white {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.section-header h2 {
    font-size: 2.75rem;
    color: var(--primary);
}

.text-white h2 {
    color: var(--white);
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 9999;
    height: 80px;
    display: flex;
    align-items: center;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    /* Reduced space from 15px */
    text-decoration: none;
    margin-left: -20px;
    /* Decrease space from logo left side */
}

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
    line-height: 1.2;
    text-align: left;
}

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

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--primary);
    /* Deep Sea Navy */
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hamburger Animation */
.menu-toggle.toggled .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.menu-toggle.toggled .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.toggled .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

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

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.95rem;
    position: relative;
    transition: all 0.3s ease;
    /* Animate all properties including transform */
    display: inline-block;
    /* Required for transform to work */
}

.nav-menu a:hover {
    color: var(--secondary);

    /* Slight lift on desktop */
}

.nav-menu a:not(.nav-btn):after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--secondary);

    transition: width 0.3s;
}

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

.nav-btn {
    padding: 10px 24px;
    background: var(--primary);
    color: var(--white) !important;
    border-radius: 50px;
    font-weight: 600;
}

.nav-btn:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 119, 190, 0.3);
}

/* Hero Slider */
.hero-slider {
    height: 100vh;
    min-height: 600px;
    position: relative;
    overflow: hidden;
}

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

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax Effect */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    pointer-events: none;
    /* Prevent clicks on hidden slides */
}

.slide.active {
    opacity: 1;
    z-index: 1;
    pointer-events: auto;
    /* Enable clicks on active slide */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 20;
    padding: 0 20px;
    max-width: 900px;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s ease-out 0.3s;
    /* Delay for slide transition */
}

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

.hero-content h1 {
    font-size: 4.5rem;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    font-weight: 300;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: 0.3s;
    backdrop-filter: blur(5px);
}

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

.prev {
    left: 30px;
}

.next {
    right: 30px;
}

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

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: 0.3s;
}

.dot.active {
    background: var(--white);
    transform: scale(1.2);
}

/* About Section Revamp */
.about-modern-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

@media (max-width: 968px) {
    .about-modern-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image-column {
        order: -1;
        /* Image on top on mobile */
    }
}

.about-image-column {
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

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

.image-wrapper:hover img {
    transform: scale(1.03);
}

.image-accent-box {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 60%;
    height: 60%;
    border: 3px solid var(--secondary);
    border-radius: 20px;
    z-index: -1;
    opacity: 0.5;
}

.about-text-column .lead-text {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.about-text-column p {
    color: var(--text-gray);
    margin-bottom: 20px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-item i {
    color: var(--accent);
    font-size: 1.2rem;
    background: rgba(255, 107, 0, 0.1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.feature-item span {
    font-weight: 600;
    color: var(--primary);
}

.btn-group.left-align {
    justify-content: flex-start;
}

.about-feature-box {
    background: var(--white);
    padding: 0 20px;
}

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

.feature-icon {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 20px;
}

.feature-highlight {
    margin-top: 30px;
    background: rgba(0, 119, 190, 0.05);
    border-left: 4px solid var(--secondary);
    padding: 20px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.feature-highlight i {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-top: 5px;
}

.about-visual-box {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.stats-card {
    background: var(--primary);
    color: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.stats-card i {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.1);
    position: absolute;
    right: 20px;
    top: 20px;
}

.stats-card h4 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.promise-card {
    background: var(--light-bg);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.signature {
    margin-top: 20px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--primary);
    font-size: 1.2rem;
    text-align: right;
}

/* General UI Elements */
.btn-group {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.cta-button {
    padding: 16px 40px;
    background: var(--accent);
    color: var(--white);
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cta-button.outline {
    background: transparent;
    border: 2px solid var(--white);
    box-shadow: none;
}

.cta-button:hover {
    transform: translateY(-2px);
    background: #e65100;
    /* Darker orange */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.cta-button.outline:hover {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
}

/* Shipping Agency Section */
.section.bg-gradient {
    background: var(--gradient-main);
    color: var(--white);
    position: relative;
}

.agency-content-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: start;
}

.agency-text {
    font-size: 1.05rem;
    color: var(--text-gray);
    /* Changed to dark for white background */
}

.agency-text p {
    margin-bottom: 25px;
}

/* Logo Sizing */
.logo-img {
    height: 75px;
    /* Increased to fill navbar (80px total height) */
    width: auto;
    display: block;
}

.logo-img-footer {
    height: 80px;
    width: auto;
    display: block;
    margin-bottom: 15px;
}

.services-box {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 0 var(--secondary);
    /* Bold bottom shadow/border effect */
}

.services-box h3 {
    color: var(--primary);
    margin-bottom: 25px;
    font-size: 1.5rem;
    border-bottom: 3px solid var(--accent);
    padding-bottom: 15px;
    display: inline-block;
    width: 100%;
}

.modern-list li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 15px;
    color: var(--text-dark);
    font-size: 1rem;
    font-weight: 500;
}

.modern-list li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--accent);
    position: absolute;
    left: 0;
    top: 2px;
}

.important-notice {
    margin-top: 60px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 30px;
    border-radius: var(--border-radius);
    display: flex;
    gap: 20px;
    align-items: center;
}

.notice-icon {
    font-size: 2rem;
    color: var(--danger);
}

.important-notice p {
    color: #ff6b6b;
    /* Bright red for dark bg */
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Quality Policy */
.quality-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.quality-card.main {
    background: var(--white);
    padding: 50px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.quality-card.main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--secondary);
}

.card-icon {
    font-size: 3rem;
    color: var(--secondary);
    margin-bottom: 25px;
    opacity: 0.2;
    position: absolute;
    top: 30px;
    right: 30px;
}

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

.objectives-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.objective-item {
    background: var(--light-bg);
    padding: 25px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: all 0.3s ease;
}

.objective-item:hover {
    background: var(--white);
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.objective-item i {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 15px;
    display: block;
}

.objective-item span {
    font-weight: 600;
    color: var(--text-dark);
}

/* Locations */
.bg-light-gray {
    background-color: var(--light-bg);
}

.locations-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.locations-top-row {
    display: flex;
    gap: 40px;
}

@media (max-width: 768px) {
    .locations-top-row {
        flex-direction: column;
    }
}

.location-card.featured {
    flex: 1;
    min-width: 0;
    /* Prevents flex item from overflowing */
    background: var(--primary);
    color: var(--white);
    padding: 50px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Specific styling for the icon inside featured card to match H4 */
.location-card.featured .card-header i {
    font-size: 1.8rem;

    opacity: 0.9;
}

.location-card.featured h4 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--white);
}

.location-card.featured .c-link {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 15px;
    font-weight: 500;
}

.location-card.featured .c-link:hover {
    color: var(--white);
}

.locations-grid-small {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* Force 4 columns on desktop */
    gap: 20px;
}

@media (max-width: 992px) {
    .locations-grid-small {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .locations-grid-small {
        grid-template-columns: 1fr;
    }
}

.location-card.mini {
    background: var(--white);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.location-card.mini:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--secondary);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.card-header i {
    font-size: 1.5rem;
    color: var(--secondary);
}

.card-header h4 {
    font-size: 1.2rem;
    color: var(--primary);
}

.small-contact {
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--text-gray);
    background: var(--light-bg);
    padding: 8px;
    border-radius: 6px;
    display: inline-block;
}

/* Footer & Contact CTA */
.dark-footer-top {
    background: var(--primary);
    padding-bottom: 50px;
    position: relative;
}

.contact-card {
    background: var(--gradient-blue);
    border-radius: 20px;
    padding: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--white);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.contact-text h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.contact-actions {
    display: flex;
    gap: 15px;
}

.action-btn {
    background: var(--white);
    color: var(--secondary);
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
}

.action-btn.outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: var(--white);
}

.action-btn:hover {
    transform: scale(1.05);
}

footer {
    background: #060f1e;
    color: var(--white);
    padding: 60px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.footer-brand h3 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.footer-brand p {
    opacity: 0.6;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    margin-left: 30px;
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--white);
}

.copyright {
    text-align: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
}

/* Scroll Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in {
    opacity: 0;
    transition: opacity 1s ease-out;
}

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

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

/* Mobile */
@media (max-width: 768px) {
    .about-modern-layout {
        grid-template-columns: 1fr;
    }

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

    .agency-content-wrapper,
    .quality-grid,
    .locations-wrapper,
    .contact-card {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .menu-toggle {
        display: flex;
        /* Changed from block to flex to support column layout defined earlier */
        color: var(--primary);
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: rgb(5, 44, 80);
        width: 100%;
        padding: 40px;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        z-index: 9998;
        /* Ensure it's below navbar (9999) but above content */
    }

    .nav-menu.active {
        left: 0;
    }

    /* Mobile Menu Link Colors */
    .nav-menu a {
        color: var(--white);
        font-size: 1.1rem;
        margin: 10px 0;
    }

    .nav-menu a:hover {
        color: var(--accent);
        transform: translateX(10px);
        /* Explicitly move text right on mobile hover */
        padding-left: 5px;
        /* Add some spacing */
    }

    .contact-actions {
        flex-direction: column;
        width: 100%;
    }

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

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links a {
        margin: 0 10px;
    }
}