/* Official Logistics Website Styles - Demo 3 */

/* CSS Custom Properties for Official Design */
:root {
    --official-dark: #1a1a2e;
    --official-gold: #d4af37;
    --official-navy: #16213e;
    --light-gray: #f8f9fa;
    --medium-gray: #6c757d;
    --dark-gray: #343a40;
    --border-color: #dee2e6;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Times New Roman', 'Georgia', serif;
    line-height: 1.6;
    color: var(--dark-gray);
    overflow-x: hidden;
    background-color: #ffffff;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Arial', 'Helvetica', sans-serif;
    font-weight: bold;
    line-height: 1.2;
    color: var(--official-dark);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }

/* Custom Color Classes */
.bg-official-dark { background-color: var(--official-dark); }
.text-official-dark { color: var(--official-dark); }
.bg-official-gold { background-color: var(--official-gold); }
.text-official-gold { color: var(--official-gold); }
.bg-official-navy { background-color: var(--official-navy); }
.text-official-navy { color: var(--official-navy); }
.border-official-dark { border-color: var(--official-dark); }
.border-official-gold { border-color: var(--official-gold); }

/* Official Header Bar */
.bg-official-dark a:hover {
    color: var(--official-gold) !important;
    transition: color 0.3s ease;
}

/* Navigation Styles */
#navbar {
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 2px 10px rgba(26, 26, 46, 0.1);
}

.nav-link {
    position: relative;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    font-weight: 600;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -2px;
    left: 50%;
    background: var(--official-gold);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

/* Official Sections */
.section-official {
    position: relative;
}

.section-official::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--official-gold) 0%, var(--official-dark) 100%);
}

/* Hero Section */
#home {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.hero-certification {
    background: var(--official-gold);
    color: var(--official-dark);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 1rem;
}

/* Official Cards - AOS only, no GSAP conflict */
.official-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(26, 26, 46, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

.official-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--official-gold);
    border-radius: 12px 12px 0 0;
}

.official-card:hover {
    box-shadow: 0 8px 30px rgba(26, 26, 46, 0.15);
    transform: translateY(-5px);
    border-color: var(--official-gold);
}

/* Certification Badges */
.certification-badge {
    background: white;
    border: 2px solid var(--official-gold);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.certification-badge::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transform: rotate(-45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.certification-badge:hover::before {
    opacity: 1;
    top: -100%;
    left: -100%;
}

.certification-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}

/* Official Tables */
.official-table {
    width: 100%;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.official-table thead {
    background: var(--official-dark);
    color: white;
}

.official-table th {
    padding: 1rem 1.5rem;
    text-align: left;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.875rem;
    border-bottom: 2px solid var(--official-gold);
}

.official-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
}

.official-table tbody tr:hover {
    background-color: #f8f9fa;
    transform: scale(1.01);
    transition: all 0.2s ease;
}

.official-table tbody tr:last-child td {
    border-bottom: none;
}

/* Price Highlighting */
.price-highlight {
    color: var(--official-gold);
    font-weight: bold;
    font-size: 1.1em;
    position: relative;
}

.price-highlight::before {
    content: '$';
    font-size: 0.8em;
    margin-right: 2px;
}

/* Service Categories */
.service-category {
    background: white;
    border-left: 4px solid var(--official-gold);
    border-radius: 0 8px 8px 0;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.service-category:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transform: translateX(10px);
}

.service-category h3 {
    color: var(--official-dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.service-category h3 i {
    color: var(--official-gold);
    margin-right: 1rem;
    font-size: 1.5em;
}

/* Official Forms */
.official-form {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.official-form h3 {
    color: var(--official-dark);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--official-gold);
    position: relative;
}

.official-form h3::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--official-dark);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: bold;
    color: var(--official-dark);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    font-family: inherit;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--official-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
    transform: translateY(-2px);
}

.form-input::placeholder {
    color: #adb5bd;
    font-style: italic;
}

/* Official Buttons */
.btn-official {
    background: var(--official-dark);
    color: white;
    padding: 14px 32px;
    border: 2px solid var(--official-dark);
    border-radius: 8px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    font-size: 1rem;
}

.btn-official::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-official:hover::before {
    width: 300px;
    height: 300px;
}

.btn-official:hover {
    background: var(--official-gold);
    color: var(--official-dark);
    border-color: var(--official-gold);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.btn-official-secondary {
    background: transparent;
    color: var(--official-dark);
    border: 2px solid var(--official-dark);
}

.btn-official-secondary:hover {
    background: var(--official-dark);
    color: white;
}

/* Official Tracking Section */
.tracking-section {
    background: var(--official-dark);
    color: white;
    position: relative;
    overflow: hidden;
}

.tracking-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 25% 25%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(212, 175, 55, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.tracking-form {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
    border: 3px solid var(--official-gold);
}

/* Official Timeline */
.official-timeline {
    position: relative;
    margin: 2rem 0;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    position: relative;
}

.timeline-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 1rem;
    margin-top: 4px;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-dot.completed {
    background: #28a745;
    border: 3px solid white;
    box-shadow: 0 0 0 3px #28a745;
}

.timeline-dot.current {
    background: var(--official-gold);
    border: 3px solid white;
    box-shadow: 0 0 0 3px var(--official-gold);
    animation: pulse-official 2s infinite;
}

.timeline-dot.pending {
    background: #6c757d;
    border: 3px solid white;
    box-shadow: 0 0 0 3px #6c757d;
}

.timeline-content {
    flex-grow: 1;
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-left: 4px solid;
    position: relative;
}

.timeline-content.completed {
    border-left-color: #28a745;
}

.timeline-content.current {
    border-left-color: var(--official-gold);
}

.timeline-content.pending {
    border-left-color: #6c757d;
    opacity: 0.7;
}

.timeline-title {
    font-weight: bold;
    color: var(--official-dark);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.timeline-location {
    color: var(--medium-gray);
    margin-bottom: 0.5rem;
}

.timeline-details {
    font-size: 0.875rem;
    color: var(--medium-gray);
    margin-bottom: 0.5rem;
}

.timeline-timestamp {
    font-size: 0.875rem;
    color: var(--medium-gray);
    font-weight: 500;
}

.timeline-metadata {
    background: #f8f9fa;
    padding: 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--medium-gray);
    margin-top: 0.75rem;
    border: 1px solid #e9ecef;
}

/* Official Statistics */
.official-stats {
    background: var(--official-dark);
    color: white;
    position: relative;
    overflow: hidden;
}

.stat-item {
    text-align: center;
    padding: 2rem 1rem;
    position: relative;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: bold;
    color: var(--official-gold);
    display: block;
    margin-bottom: 0.5rem;
    font-family: 'Arial', sans-serif;
}

.stat-label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #e9ecef;
    font-weight: 600;
}

/* Compliance Section */
.compliance-section {
    background: #f8f9fa;
}

.compliance-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--official-gold);
    height: 100%;
    transition: all 0.3s ease;
}

.compliance-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.compliance-icon {
    width: 64px;
    height: 64px;
    background: var(--official-dark);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.compliance-icon i {
    color: white;
    font-size: 2rem;
}

.compliance-list {
    list-style: none;
    padding: 0;
}

.compliance-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
}

.compliance-list li i {
    color: var(--official-gold);
    margin-right: 1rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

/* Contact Section */
.contact-official {
    background: var(--official-dark);
    color: white;
}

.contact-item {
    text-align: center;
    padding: 2rem 1rem;
}

.contact-icon {
    width: 80px;
    height: 80px;
    background: var(--official-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.contact-icon:hover::before {
    width: 100px;
    height: 100px;
}

.contact-icon:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 15px 30px rgba(212, 175, 55, 0.4);
}

.contact-icon i {
    font-size: 2rem;
    color: var(--official-dark);
    position: relative;
    z-index: 2;
}

/* Footer Styles */
footer {
    background: #212529;
    color: #adb5bd;
}

footer h3 {
    color: white;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 1px;
    font-weight: bold;
}

footer a {
    color: #adb5bd;
    transition: color 0.3s ease;
    text-decoration: none;
}

footer a:hover {
    color: var(--official-gold);
}

.footer-legal {
    background: #1a1a1a;
    border-top: 1px solid #343a40;
}

/* Animations */
@keyframes pulse-official {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

@keyframes slideInFromLeft {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    0% {
        transform: translateY(30px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Counter Animation */
.counter {
    transition: all 0.3s ease;
    font-variant-numeric: tabular-nums;
}

/* Pricing Tables Enhancement */
.pricing-table {
    margin-bottom: 3rem;
}

.pricing-table h3 {
    color: var(--official-dark);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    font-size: 1.75rem;
}

.pricing-table h3 i {
    color: var(--official-gold);
    margin-right: 1rem;
    font-size: 1.5em;
}

.table-notes {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.table-notes p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--medium-gray);
}

.table-notes i {
    color: var(--official-gold);
    margin-right: 0.5rem;
}

/* Service Category Colors */
.service-air { border-left-color: #007bff; }
.service-ocean { border-left-color: #20c997; }
.service-ground { border-left-color: #fd7e14; }
.service-warehouse { border-left-color: #6f42c1; }

/* Responsive Design */
@media (max-width: 1024px) {
    .official-table {
        font-size: 0.875rem;
    }

    .official-table th,
    .official-table td {
        padding: 0.75rem 1rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .service-category:hover {
        transform: none;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }

    .certification-badge {
        margin-bottom: 1rem;
    }

    .official-table {
        font-size: 0.75rem;
    }

    .official-table th,
    .official-table td {
        padding: 0.5rem 0.75rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .contact-icon {
        width: 60px;
        height: 60px;
    }

    .contact-icon i {
        font-size: 1.5rem;
    }

    .timeline-content {
        padding: 1rem;
    }

    .btn-official {
        padding: 12px 24px;
        font-size: 0.875rem;
    }
}

@media (max-width: 640px) {
    .official-form {
        padding: 1.5rem;
    }

    .form-input,
    .form-select,
    .form-textarea {
        padding: 10px 12px;
    }

    .stat-number {
        font-size: 1.75rem;
    }

    .official-table {
        overflow-x: auto;
        display: block;
        white-space: nowrap;
    }

    .official-table thead,
    .official-table tbody,
    .official-table th,
    .official-table td,
    .official-table tr {
        display: block;
    }

    .official-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .official-table tr {
        border: 1px solid #ccc;
        margin-bottom: 10px;
        padding: 10px;
        border-radius: 8px;
        background: white;
    }

    .official-table td {
        border: none;
        position: relative;
        padding-left: 50% !important;
        white-space: normal;
        text-align: left;
    }

    .official-table td:before {
        content: attr(data-label) ": ";
        position: absolute;
        left: 6px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        font-weight: bold;
        color: var(--official-dark);
    }
}

/* Print Styles */
@media print {
    .fixed,
    nav,
    button,
    .btn-official,
    footer {
        display: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black;
    }

    .official-table {
        border-collapse: collapse;
        width: 100%;
    }

    .official-table th,
    .official-table td {
        border: 1px solid black;
        padding: 8px;
    }

    h1, h2, h3 {
        page-break-after: avoid;
        color: black;
    }

    .official-card {
        border: 1px solid black;
        box-shadow: none;
        page-break-inside: avoid;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus Styles for Accessibility */
button:focus,
input:focus,
select:focus,
textarea:focus,
a:not(.nav-link):focus {
    outline: 3px solid var(--official-gold);
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --official-dark: #000000;
        --official-gold: #ffff00;
        --border-color: #000000;
    }

    .official-card {
        border: 3px solid #000000;
    }

    .official-table th,
    .official-table td {
        border: 2px solid #000000;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f3f4;
}

::-webkit-scrollbar-thumb {
    background: var(--official-dark);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--official-gold);
}

/* Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.4), transparent);
    animation: loading-official 1.5s infinite;
}

@keyframes loading-official {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Enhanced Interactive Elements */
.interactive-element {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.interactive-element:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Official Document Styling */
.official-document {
    background: white;
    border: 2px solid var(--official-dark);
    border-radius: 8px;
    padding: 2rem;
    position: relative;
}

.official-document::before {
    content: 'OFFICIAL';
    position: absolute;
    top: -1px;
    right: -1px;
    background: var(--official-gold);
    color: var(--official-dark);
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 0 6px 0 8px;
    letter-spacing: 1px;
}

/* Status Indicators */
.status-active {
    background: #28a745;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: bold;
}

.status-pending {
    background: var(--official-gold);
    color: var(--official-dark);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: bold;
}

.status-inactive {
    background: #6c757d;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: bold;
}
