/* --- Variables & Design System --- */
:root {
    /* Colors */
    --primary-color: #0a192f;
    /* Deep Navy Blue */
    --primary-light: #172a45;
    --secondary-color: #d4af37;
    /* Premium Gold */
    --secondary-hover: #b5952f;
    --text-light: #e6f1ff;
    --text-dim: #8892b0;
    --white: #ffffff;
    --black: #000000;
    --transition: all 0.3s ease;

    /* Spacing */
    --container-width: 1200px;
    --header-height: 100px;
    /* Increased height */

    /* Fonts */
    --font-main: 'Outfit', sans-serif;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    color: #333;
}

th,
td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: left;
}

th {
    background-color: #f8f9fa;
    font-weight: 600;
}

/* --- Reset & Base Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--primary-color);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

/* --- Utilities --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.text-gold {
    color: var(--secondary-color);
}

.highlight {
    color: var(--secondary-color);
    font-weight: 700;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    text-align: center;
    border: 2px solid transparent;
}

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

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

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

.btn-outline:hover {
    background-color: rgba(212, 175, 55, 0.1);
}

.btn-lg {
    padding: 15px 35px;
    font-size: 1.1rem;
}

/* --- Header --- */
.web-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 120px;
    width: auto;
    max-height: 120px;
    object-fit: contain;
    transition: var(--transition);
}

.status-select {
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    font-family: var(--font-main);
}

/* Mobile check for logo */
@media (max-width: 768px) {
    .logo img {
        height: 90px;
        max-height: 90px;
    }
}

.logo-icon {
    font-size: 1.8rem;
    color: var(--secondary-color);
}

/* --- Floating WhatsApp --- */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 35px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transition: all 0.3s ease;
    text-decoration: none;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
    color: white;
}

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

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-light);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-light);
    transition: var(--transition);
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    /* Ensure video doesn't spill out */
}

/* Video Background Wrapper */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlay needs to be on top of video but below text */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 25, 47, 0.85) 0%, rgba(10, 25, 47, 0.6) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    /* Above video and overlay */
    max-width: 800px;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 800;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-dim);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* --- Animations --- */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

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

/* --- Carousel --- */
.carousel-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-color: var(--primary-color);
}

.carousel-slide.active {
    opacity: 1;
}

.image-background {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: absolute;
    animation: kenBurns 20s infinite alternate;
}

@keyframes kenBurns {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.1);
    }
}

.carousel-indicators {
    display: flex;
    gap: 10px;
    margin-top: 30px;
    justify-content: center;
}

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

.indicator.active {
    background: var(--secondary-color);
    transform: scale(1.2);
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: var(--header-height);
        flex-direction: column;
        background-color: var(--primary-color);
        width: 100%;
        height: calc(100vh - var(--header-height));
        padding-top: 40px;
        transition: 0.3s;
    }

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

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn-lg {
        width: 100%;
    }
}

/* --- Services Section --- */
.section {
    padding: 80px 0;
}

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

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

.section-title {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 15px;
}

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

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    height: 350px;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

/* Visual Card Styles */
.visual-card {
    background-size: cover;
    background-position: center;
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(10, 25, 47, 0.95), rgba(10, 25, 47, 0.4));
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: var(--transition);
}

.visual-card:hover .service-overlay {
    background: linear-gradient(to top, rgba(10, 25, 47, 0.95), rgba(10, 25, 47, 0.2));
}

.visual-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary-color);
}

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

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--white);
}

.service-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.highlight-card {
    border-color: var(--secondary-color);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(10, 25, 47, 0) 100%);
}

/* --- Gallery Section --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 300px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(10, 25, 47, 0.95), transparent);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
    opacity: 1;
}

.gallery-overlay h3 {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.gallery-overlay p {
    color: var(--white);
    font-size: 0.9rem;
}

/* --- Features / Why Choose Us --- */
.col-2-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.text-left {
    text-align: left;
}

.features-list {
    margin: 30px 0;
}

.features-list li {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    color: var(--text-light);
}

.mt-20 {
    margin-top: 20px;
}

.visual-side {
    position: relative;
    height: 400px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-box {
    text-align: center;
    padding: 30px;
    border: 2px solid var(--secondary-color);
    border-radius: 50%;
    width: 200px;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(10, 25, 47, 0.8);
    backdrop-filter: blur(5px);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--secondary-color);
    display: block;
}

.stat-label {
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    color: var(--text-light);
}

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

    .visual-side {
        height: 300px;
        /* Smaller on mobile */
    }
}

/* --- Contact / Quote Section --- */
.quote-section {
    background: linear-gradient(rgba(10, 25, 47, 0.95), rgba(10, 25, 47, 0.95)), url('../assets/hero-bg.jpg') fixed center;
    background-size: cover;
}

.quote-container {
    max-width: 800px;
}

.quote-form {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dim);
}

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px;
    border-radius: 4px;
    color: var(--white);
    font-family: var(--font-main);
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.full-width {
    grid-column: span 2;
}

textarea {
    height: 120px;
    resize: vertical;
}

.btn-whatsapp {
    background-color: #25D366;
    color: var(--white);
    text-align: center;
    padding: 12px;
    border-radius: 4px;
    font-weight: 600;
    margin-top: 10px;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
}

.or-divider {
    grid-column: span 2;
    text-align: center;
    color: var(--text-dim);
    margin: 10px 0;
    font-size: 0.9rem;
}

.file-input {
    background: transparent;
    padding: 10px 0;
    color: var(--text-dim);
}

.file-input::file-selector-button {
    background: var(--secondary-color);
    color: var(--primary-color);
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    margin-right: 15px;
    transition: var(--transition);
}

.file-input::file-selector-button:hover {
    background: #e5bd3d;
    /* Slightly lighter gold */
}

/* --- Footer --- */
.footer {
    background-color: var(--primary-dark);
    padding: 80px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.footer-col h3,
.footer-col h4 {
    color: var(--white);
    margin-bottom: 25px;
}

.footer-col p {
    color: var(--text-dim);
    margin-bottom: 15px;
    font-size: 0.95rem;
}

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

.footer-col ul li a {
    color: var(--text-dim);
}

.footer-col ul li a:hover {
    color: var(--secondary-color);
}

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

/* --- Tracking Section --- */
.tracking-box {
    max-width: 600px;
    margin: 0 auto 40px;
}

.tracking-input-group {
    display: flex;
    gap: 10px;
}

.tracking-input {
    flex: 1;
    padding: 15px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    color: var(--primary-color);
    font-size: 1.1rem;
    font-family: var(--font-main);
}

.bg-light .tracking-input {
    background: white;
    color: var(--primary-color);
    border-color: #ddd;
}

.tracking-input:focus {
    border-color: var(--secondary-color);
    outline: none;
}

.result-card {
    background: white;
    border-radius: 8px;
    max-width: 700px;
    margin: 0 auto;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: left;
    animation: fadeIn 0.5s ease-out;
}

.result-header {
    background: var(--primary-color);
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.shipment-id {
    font-weight: 700;
    font-size: 1.2rem;
}

.shipment-status {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
}

.shipment-status.in-transit {
    background: #e6f1ff;
    color: #004085;
}

.shipment-status.delivered {
    background: #d4edda;
    color: #155724;
}

.shipment-status.pending {
    background: #fff3cd;
    color: #856404;
}

.shipment-status.cancelled {
    background: #f8d7da;
    color: #721c24;
}

.result-body {
    padding: 30px;
    color: var(--primary-color);
}

.route-visual {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.route-line {
    flex: 1;
    height: 3px;
    background: #eee;
    margin: 0 20px;
    position: relative;
}

.progress-bar {
    width: 65%;
    height: 100%;
    background: var(--secondary-color);
}

.city {
    text-align: center;
    color: var(--text-dim);
}

.city i {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.shipment-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-item .label {
    font-size: 0.85rem;
    color: #888;
    text-transform: uppercase;
}

.detail-item .value {
    font-weight: 600;
    font-size: 1.1rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .quote-form {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .full-width {
        grid-column: span 1;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .tracking-input-group {
        flex-direction: column;
    }
}

/* --- Modal Styles --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: block;
    opacity: 1;
}

.modal-content {
    background-color: #0b1c31;
    /* Dark navy */
    margin: 5% auto;
    padding: 0;
    border: 1px solid var(--secondary-color);
    width: 90%;
    max-width: 800px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
    transform: translateY(-50px);
    transition: transform 0.3s ease;
    color: var(--text-light);
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-modal {
    color: var(--secondary-color);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 20px;
    z-index: 10;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--white);
    transform: rotate(90deg);
}

.modal-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-header h2 {
    margin: 0;
    color: var(--secondary-color);
    font-size: 1.8rem;
}

.modal-body {
    padding: 30px;
    line-height: 1.7;
    font-size: 1.05rem;
}

.modal-body p {
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
}

.modal-body ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
}

.modal-body ul li {
    margin-bottom: 10px;
}

/* Service Card Hover Effect for Clickability */
.service-card {
    cursor: pointer;
}

.service-card:hover {
    border-color: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.1);
}

@media print {

    /* Global Reset */
    html,
    body {
        width: 100%;
        height: auto;
        margin: 0;
        padding: 0;
        background: white;
    }

    /* Step 1: Hide all direct children of body, except MAIN */
    body>*:not(main) {
        display: none !important;
    }

    /* Step 2: Ensure MAIN is visible */
    main {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Step 3: Hide all children of MAIN by default */
    main>* {
        display: none !important;
    }

    /* Step 4: Show only the quote section */
    main>section#quote {
        display: block !important;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        margin: 0;
        padding: 0;
        background: white;
    }

    /* Inner resets to ensure full width and no extra spacing */
    section#quote .container,
    section#quote .quote-form {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        box-shadow: none !important;
        border: none !important;
    }

    .success-message {
        width: 100% !important;
        max-width: 100% !important;
        box-shadow: none !important;
        border: 1px solid #eee !important;
        padding: 20px !important;
        margin: 0 auto !important;
    }

    /* Hide all buttons and interactive elements always */
    button,
    .btn,
    .floating-whatsapp,
    .close-modal,
    .modal {
        display: none !important;
    }
}

/* --- Projects Carousel --- */
.projects-carousel {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.project-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.project-slide.active {
    opacity: 1;
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 30px;
    color: white;
}

@media (max-width: 768px) {
    .projects-carousel {
        height: 300px;
    }
}