/* 
 * Neon Global Shipping Co. - Premium Logistics CSS 
 */

:root {
    /* Colors */
    --primary: #0a192f;
    --primary-light: #112240;
    --secondary: #1d4ed8;
    --secondary-dark: #1e3a8a;
    --accent: #06b6d4;
    --accent-hover: #0891b2;
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-light-success: #ecfdf5;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --text-light: #f8fafc;
    --border-color: #e2e8f0;
    --success: #10b981;
    
    /* Typography */
    --font-heading: 'Manrope', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Layout */
    --container-width: 1280px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 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);
    
    /* Z-Index */
    --z-header: 1000;
    --z-dropdown: 1010;
    --z-overlay: 900;
}

/* ================= RESET & BASE ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

/* ================= UTILITIES ================= */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 80px 0;
}

.text-center { text-align: center; }
.text-primary { color: var(--secondary); }
.text-accent { color: var(--accent); }
.text-white { color: var(--text-light); }
.text-muted { color: var(--text-muted); }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.font-medium { font-weight: 500; }
.font-bold { font-weight: 700; }
.uppercase { text-transform: uppercase; }

.bg-light { background-color: var(--bg-light); }
.bg-primary { background-color: var(--primary); }
.bg-white { background-color: var(--bg-white); }
.bg-light-success { background-color: var(--bg-light-success); }

.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }
.p-5 { padding: 3rem; }
.px-5 { padding-left: 3rem; padding-right: 3rem; }

.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-800 { max-width: 800px; }
.max-w-1000 { max-width: 1000px; }

.w-full { width: 100%; }
.h-full { height: 100%; }
.object-cover { object-fit: cover; }

.flex { display: flex; }
.grid { display: grid; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-3 { gap: 1.5rem; }
.gap-5 { gap: 3rem; }

.shadow { box-shadow: var(--shadow); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.rounded { border-radius: 8px; }
.rounded-image { border-radius: 12px; }
.border-top-primary { border-top: 4px solid var(--secondary); }
.border-success { border: 1px solid var(--success); }

.relative { position: relative; }
.z-10 { z-index: 10; }
.overflow-hidden { overflow: hidden; }

.hidden { display: none !important; }
.inline-block { display: inline-block; }

.hover-underline:hover { text-decoration: underline; }

/* ================= BUTTONS ================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

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

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    color: var(--bg-white);
}

.btn-secondary {
    background-color: transparent;
    color: var(--bg-white);
    border-color: var(--bg-white);
}

.btn-secondary:hover, .btn-secondary:focus {
    background-color: var(--bg-white);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 14px 36px;
    font-size: 1.125rem;
}

/* ================= HEADER & NAVIGATION ================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: var(--z-header);
    transition: var(--transition);
    background-color: transparent;
    padding: 20px 0;
}

.site-header.scrolled {
    background-color: var(--bg-white);
    padding: 12px 0;
    box-shadow: var(--shadow-sm);
}

.site-header.scrolled .logo, 
.site-header.scrolled .nav-list > li > a {
    color: var(--primary);
}

.site-header.scrolled .btn-primary {
    background-color: var(--secondary);
    color: var(--bg-white);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--bg-white);
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--accent);
}

.desktop-nav {
    display: none;
}

@media (min-width: 1024px) {
    .desktop-nav {
        display: block;
    }
}

.nav-list {
    display: flex;
    gap: 32px;
}

.nav-list > li > a {
    font-weight: 600;
    color: var(--bg-white);
    font-size: 0.95rem;
    position: relative;
    padding: 8px 0;
}

.nav-list > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition);
}

.nav-list > li > a:hover::after,
.nav-list > li > a.active::after {
    width: 100%;
}

.site-header.scrolled .nav-list > li > a::after {
    background-color: var(--secondary);
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-white);
    min-width: 260px;
    box-shadow: var(--shadow-lg);
    border-radius: 4px;
    padding: 12px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: var(--z-dropdown);
    border-top: 3px solid var(--secondary);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 10px 24px;
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 500;
}

.dropdown-menu li a:hover {
    background-color: var(--bg-light);
    color: var(--secondary);
    padding-left: 28px;
}

.caret {
    font-size: 0.7em;
    margin-left: 4px;
}

/* Mobile Toggle */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-actions .btn-primary {
    display: none;
}

@media (min-width: 768px) {
    .header-actions .btn-primary {
        display: inline-flex;
    }
}

.mobile-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
}

@media (min-width: 1024px) {
    .mobile-toggle {
        display: none;
    }
}

.mobile-toggle .bar {
    width: 24px;
    height: 2px;
    background-color: var(--bg-white);
    transition: var(--transition);
}

.site-header.scrolled .mobile-toggle .bar {
    background-color: var(--primary);
}

.mobile-toggle.active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.mobile-toggle.active .bar:nth-child(2) {
    opacity: 0;
}
.mobile-toggle.active .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--primary);
    padding-top: 80px;
    transform: translateX(-100%);
    transition: var(--transition);
    overflow-y: auto;
    z-index: 999;
}

.mobile-nav.open {
    transform: translateX(0);
}

.mobile-nav-list {
    padding: 20px 0;
}

.mobile-nav-list > li {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-nav-list a {
    display: block;
    padding: 16px 24px;
    color: var(--bg-white);
    font-size: 1.1rem;
    font-weight: 600;
}

.mobile-dropdown-menu {
    background-color: var(--primary-light);
    display: none;
}

.mobile-dropdown-menu.open {
    display: block;
}

.mobile-dropdown-menu a {
    padding-left: 40px;
    font-size: 0.95rem;
    font-weight: 400;
}

/* ================= HERO SLIDER ================= */
.hero-slider {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    background-color: var(--primary);
}

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

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(10, 25, 47, 0.9) 0%, rgba(10, 25, 47, 0.4) 100%);
}

.slide-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    color: var(--bg-white);
    padding-top: 80px; /* Offset for header */
}

.slide-eyebrow {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 16px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.6s ease 0.3s;
}

.slide-title {
    font-size: 3rem;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    color: var(--bg-white);
    margin-bottom: 24px;
    line-height: 1.1;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.6s ease 0.5s;
}

.slide-desc {
    font-size: 1.125rem;
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 40px;
    max-width: 600px;
    color: rgba(255, 255, 255, 0.9);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.6s ease 0.7s;
}

.slide-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.6s ease 0.9s;
}

.slide.active .slide-eyebrow,
.slide.active .slide-title,
.slide.active .slide-desc,
.slide.active .slide-actions {
    transform: translateY(0);
    opacity: 1;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.slider-btn:hover {
    background: var(--secondary);
    border-color: var(--secondary);
}

.prev-btn { left: 24px; }
.next-btn { right: 24px; }

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

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

.dot.active, .dot:hover {
    background: var(--accent);
    transform: scale(1.3);
}

@media (max-width: 768px) {
    .slider-btn { display: none; }
}

/* ================= INTRO SECTION ================= */
.intro-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

@media (min-width: 992px) {
    .intro-grid {
        grid-template-columns: 1.1fr 0.9fr;
        gap: 60px;
    }
}

.intro-content h2 {
    font-size: 2.25rem;
    margin-bottom: 24px;
}

.intro-content p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 24px;
}

.intro-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-height: 500px;
}

/* ================= SERVICES SECTION ================= */
.section-header {
    margin-bottom: 60px;
}

.eyebrow {
    color: var(--secondary);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.875rem;
    display: block;
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-header .subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.service-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .service-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .service-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    background-color: var(--bg-white);
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: block;
    border: 1px solid var(--border-color);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--secondary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: rgba(29, 78, 216, 0.1); /* Secondary light */
    margin-bottom: 20px;
    transition: var(--transition);
}

.service-card:hover .card-icon {
    color: var(--secondary);
    transform: translateX(5px);
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 16px;
    color: var(--primary);
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.card-arrow {
    display: inline-block;
    color: var(--secondary);
    font-size: 1.2rem;
    transition: var(--transition);
}

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

/* ================= CTA BANNER ================= */
.cta-banner {
    padding: 100px 0;
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--bg-white);
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 25, 47, 0.85); /* Primary with opacity */
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    color: var(--bg-white);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* ================= WHY US ================= */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-block {
    transition: var(--transition);
}

.feature-block:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-block h4 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.feature-block p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ================= STATS SECTION ================= */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    text-align: center;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--accent);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 0.9;
}

/* ================= PAGE HERO (Inner Pages) ================= */
.page-hero {
    position: relative;
    padding: 180px 0 100px;
    background-size: cover;
    background-position: center;
    color: var(--bg-white);
}

.page-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 25, 47, 0.75);
}

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

.page-hero h1 {
    color: var(--bg-white);
    font-size: 3rem;
}

.page-hero .subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* ================= ABOUT PAGE ================= */
.mission-vision-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .mission-vision-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.values-section {
    position: relative;
    background-size: cover;
    background-position: center;
    color: white;
}
.values-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 25, 47, 0.85);
}

/* ================= ENQUIRY FORM ================= */
.modern-form {
    width: 100%;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.custom-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--bg-light);
}

.form-group input:focus,
.form-group textarea:focus,
.custom-select:focus {
    outline: none;
    border-color: var(--secondary);
    background-color: var(--bg-white);
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.1);
}

.custom-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

/* ================= CONTACT PAGE ================= */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
}
@media (min-width: 768px) {
    .contact-grid { grid-template-columns: repeat(2, 1fr); }
}

.timetable {
    text-align: left;
}

.timetable li {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    font-weight: 500;
}

.timetable li:last-child {
    border-bottom: none;
}

/* ================= SERVICE PAGES ================= */
@media (min-width: 992px) {
    .service-detail-grid {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    padding: 10px;
    background: var(--bg-light);
    border-radius: 4px;
    font-weight: 500;
}

/* ================= FOOTER ================= */
.site-footer {
    background-color: var(--primary);
    color: var(--bg-white);
    padding-top: 80px;
}

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

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1.5fr 1fr;
    }
}

.footer-logo {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--bg-white);
    margin-bottom: 20px;
}

.footer-logo span { color: var(--accent); }

.footer-desc {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.footer-heading {
    font-size: 1.1rem;
    color: var(--bg-white);
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 10px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--accent);
}

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

.footer-links a, .footer-contact a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links a:hover, .footer-contact a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-contact li {
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom {
    background-color: var(--primary-light);
    padding: 24px 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

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

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

@media (prefers-reduced-motion: reduce) {
    .fade-up {
        transition: none;
        opacity: 1;
        transform: none;
    }
    
    .service-card, .feature-block, .btn {
        transition: none;
    }
}
