/* Custom CSS Variables and Styles for Atlancar Global Trading */

/* ===================================
   ACCESSIBILITY STYLES
   =================================== */

/* Skip to main content link for keyboard navigation */
.skip-to-content {
    position: absolute;
    top: -100px;
    left: 0;
    background-color: var(--primary-green);
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    font-weight: 600;
    z-index: 10000;
    border-radius: 0 0 0.5rem 0;
    transition: top 0.3s ease;
}

.skip-to-content:focus {
    top: 0;
    outline: 3px solid var(--primary-green-dark);
    outline-offset: 2px;
}

/* Enhanced focus-visible states for all interactive elements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--primary-green);
    outline-offset: 3px;
    border-radius: 0.25rem;
}

/* Focus styles for navigation links */
.nav-link:focus-visible,
.mobile-nav-link:focus-visible {
    outline: 3px solid var(--primary-green);
    outline-offset: 4px;
    background-color: var(--primary-green-light);
}

/* Focus styles for buttons */
.btn:focus-visible {
    outline: 3px solid var(--primary-green-dark);
    outline-offset: 4px;
    box-shadow: 0 0 0 6px var(--primary-green-light);
}

.btn-secondary:focus-visible {
    outline: 3px solid var(--primary-green);
    outline-offset: 4px;
}

/* Focus styles for form inputs */
.form-input:focus-visible {
    outline: 3px solid var(--primary-green);
    outline-offset: 2px;
    border-color: var(--primary-green);
}

/* Focus styles for cards */
.card:focus-within {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
}

/* Focus styles for mobile menu toggle */
#mobile-menu-toggle:focus-visible {
    outline: 3px solid var(--primary-green);
    outline-offset: 4px;
    background-color: var(--primary-green-light);
    border-radius: 0.375rem;
}

/* Ensure decorative icons are hidden from screen readers */
[aria-hidden="true"] {
    pointer-events: none;
}

/* Improve keyboard navigation visibility */
*:focus-visible {
    scroll-margin-top: 100px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn {
        border: 2px solid currentColor;
    }
    
    .form-input {
        border-width: 2px;
    }
    
    a:focus-visible,
    button:focus-visible,
    input:focus-visible,
    select:focus-visible,
    textarea:focus-visible {
        outline-width: 4px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .skip-to-content {
        transition: none;
    }
    
    /* Disable fade-in animations for reduced motion */
    .fade-in-section {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ===================================
   FADE-IN ANIMATIONS
   =================================== */

/* Base state for sections that will fade in */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Active state when section is visible */
.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation delays for child elements */
.fade-in-section .fade-in-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section.is-visible .fade-in-item {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays for multiple items */
.fade-in-section.is-visible .fade-in-item:nth-child(1) {
    transition-delay: 0.1s;
}

.fade-in-section.is-visible .fade-in-item:nth-child(2) {
    transition-delay: 0.2s;
}

.fade-in-section.is-visible .fade-in-item:nth-child(3) {
    transition-delay: 0.3s;
}

.fade-in-section.is-visible .fade-in-item:nth-child(4) {
    transition-delay: 0.4s;
}

.fade-in-section.is-visible .fade-in-item:nth-child(5) {
    transition-delay: 0.5s;
}

.fade-in-section.is-visible .fade-in-item:nth-child(6) {
    transition-delay: 0.6s;
}

/* Fade in from left */
.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-left.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* Fade in from right */
.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-right.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* Scale fade in */
.fade-in-scale {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-scale.is-visible {
    opacity: 1;
    transform: scale(1);
}

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

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

:root {
    /* Colors - Atlancar Brand */
    --primary-navy: #0A2540;
    --primary-navy-dark: #051829;
    --primary-navy-light: #E8EDF3;
    --primary-gold: #C9A961;
    --primary-gold-dark: #B08F4A;
    --primary-gold-light: #F5F0E5;
    --text-primary: #1F2937;
    --text-secondary: #6B7280;
    --text-light: #9CA3AF;
    --background: #FAF8F5;
    --background-alt: #FFFFFF;
    --border: #E5E7EB;
    --error: #EF4444;
    --success: #10B981;
    
    /* Legacy green variables for backward compatibility */
    --primary-green: var(--primary-navy);
    --primary-green-dark: var(--primary-navy-dark);
    --primary-green-light: var(--primary-navy-light);

    /* Typography */
    --font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);

    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;
}

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

body {
    font-family: var(--font-family);
    color: var(--text-primary);
    background-color: var(--background);
    line-height: 1.6;
}

/* Remove mobile tap highlight - Override Tailwind */
*,
*::before,
*::after {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important;
    -webkit-tap-highlight-color: transparent !important;
}

a,
button,
input,
textarea,
select,
.btn,
[role="button"] {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important;
    -webkit-tap-highlight-color: transparent !important;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Utility Classes */
.text-primary {
    color: var(--text-primary);
}

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

.text-light {
    color: var(--text-light);
}

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

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

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

/* Button Styles */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    display: inline-block;
    text-decoration: none;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

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

.btn-primary::before {
    content: '';
    position: absolute;
    bottom: -50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background-color: white;
    transition: width 2s ease, height 2s ease, bottom 2s ease;
    transform: translateX(-50%);
    z-index: -1;
}

.btn-primary:hover {
    color: var(--primary-navy) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover::before {
    width: 400%;
    height: 400%;
    bottom: -100%;
}

.btn-secondary {
    background-color: white;
    color: var(--text-primary);
    border: 2px solid var(--border);
}

.btn-secondary::before {
    content: '';
    position: absolute;
    bottom: -50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background-color: var(--primary-navy);
    transition: width 2s ease, height 2s ease, bottom 2s ease;
    transform: translateX(-50%);
    z-index: -1;
}

.btn-secondary:hover {
    border-color: var(--primary-navy);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover::before {
    width: 400%;
    height: 400%;
    bottom: -100%;
}

/* Circular animation for any button-like element */
a[class*="px-"][class*="py-"],
button[class*="px-"][class*="py-"] {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Gold CTA buttons with circular animation */
a[style*="background-color: var(--primary-gold)"],
a[style*="background-color:#C9A961"] {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

a[style*="background-color: var(--primary-gold)"]::before,
a[style*="background-color:#C9A961"]::before {
    content: '';
    position: absolute;
    bottom: -50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background-color: white;
    transition: width 2s ease, height 2s ease, bottom 2s ease;
    transform: translateX(-50%);
    z-index: -1;
}

a[style*="background-color: var(--primary-gold)"]:hover,
a[style*="background-color:#C9A961"]:hover {
    color: var(--primary-gold) !important;
}

a[style*="background-color: var(--primary-gold)"]:hover::before,
a[style*="background-color:#C9A961"]:hover::before {
    width: 400%;
    height: 400%;
    bottom: -100%;
}

/* White CTA buttons with circular animation */
a[style*="background-color: white"],
a[style*="background-color:#FFFFFF"],
a[style*="background-color: rgba(255, 255, 255"] {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

a[style*="background-color: white"]::before,
a[style*="background-color:#FFFFFF"]::before,
a[style*="background-color: rgba(255, 255, 255"]::before {
    content: '';
    position: absolute;
    bottom: -50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background-color: white;
    transition: width 2s ease, height 2s ease, bottom 2s ease;
    transform: translateX(-50%);
    z-index: -1;
}

a[style*="background-color: white"]:hover,
a[style*="background-color:#FFFFFF"]:hover,
a[style*="background-color: rgba(255, 255, 255"]:hover {
    color: var(--primary-navy) !important;
    border-color: white !important;
}

a[style*="background-color: white"]:hover::before,
a[style*="background-color:#FFFFFF"]:hover::before,
a[style*="background-color: rgba(255, 255, 255"]:hover::before {
    width: 400%;
    height: 400%;
    bottom: -100%;
}

/* Card Styles */
.card {
    background-color: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

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

/* Section Spacing */
section {
    padding: 4rem 0;
}

@media (min-width: 768px) {
    section {
        padding: 6rem 0;
    }
}

/* Transitions */
.transition-all {
    transition: all 0.3s ease;
}

/* Navigation Styles */
#navigation {
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.5) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

#navigation.scrolled {
    box-shadow: var(--shadow-md);
    background-color: rgba(255, 255, 255, 0.7) !important;
}

/* Fallback for browsers that don't support backdrop-filter */
@supports not (backdrop-filter: blur(12px)) {
    #navigation {
        background-color: rgba(255, 255, 255, 0.95) !important;
    }
}

/* Navigation Link Hover Animation */
.nav-link {
    position: relative;
    display: inline-block;
    padding-bottom: 0.25rem;
    color: var(--text-primary) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-gold);
    transition: width 0.3s ease, background-color 0.3s ease;
    transform-origin: left;
}

.nav-link:hover {
    color: var(--primary-navy) !important;
}

.nav-link:hover::after {
    width: 100%;
    background-color: var(--primary-gold);
}

.nav-link.active {
    color: var(--primary-navy) !important;
}

.nav-link.active::after {
    width: 100%;
    background-color: var(--primary-navy);
}

.nav-link {
    position: relative;
    padding-bottom: 0.25rem;
    font-weight: 500;
}

.nav-link.active {
    color: var(--primary-green);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-green);
}

.mobile-nav-link.active {
    background-color: var(--primary-green-light);
    color: var(--primary-green);
    font-weight: 600;
}

/* Mobile Menu Animation */
#mobile-menu {
    display: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
    opacity: 0;
}

#mobile-menu.show {
    display: block !important;
    max-height: 600px;
    opacity: 1;
}

/* Mobile Menu Toggle - Ensure minimum touch target size */
#mobile-menu-toggle {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}

/* Mobile Navigation Links - Ensure minimum touch target size */
.mobile-nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
}

/* Logo Styles */
.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .logo {
        font-size: 1rem;
    }
}

/* Hero Section Styles */
.hero-section {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

@media (min-width: 768px) {
    .hero-section {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}

/* Hero Section - Responsive Typography */
@media (max-width: 375px) {
    .hero-content h1 {
        font-size: 1.875rem; /* 30px */
        line-height: 1.2;
    }
    
    .hero-content p {
        font-size: 1rem; /* 16px */
    }
}

@media (min-width: 376px) and (max-width: 640px) {
    .hero-content h1 {
        font-size: 2.25rem; /* 36px */
    }
}

.hero-content h1 {
    animation: fadeInUp 0.8s ease-out;
}

.hero-content p {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-content .btn {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

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

/* WhatsApp Chat Mockup Styles */
.whatsapp-mockup-container {
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.whatsapp-chat {
    width: 100%;
    max-width: 400px;
    background-color: #E5DDD5;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.whatsapp-header {
    background-color: var(--primary-navy);
    color: white;
    padding: 1rem 1.25rem;
}

.whatsapp-avatar {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-name {
    font-weight: 600;
    font-size: 1rem;
}

.whatsapp-status {
    font-size: 0.75rem;
    opacity: 0.9;
}

.whatsapp-messages {
    padding: 1.5rem 1rem;
    min-height: 400px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect fill="%23E5DDD5" width="100" height="100"/></svg>');
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.message-wrapper {
    display: flex;
    width: 100%;
}

.message-wrapper.incoming {
    justify-content: flex-start;
}

.message-wrapper.outgoing {
    justify-content: flex-end;
}

.message {
    max-width: 75%;
    padding: 0.625rem 0.875rem;
    border-radius: 0.5rem;
    position: relative;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.incoming-message {
    background-color: white;
    border-radius: 0.5rem 0.5rem 0.5rem 0.125rem;
}

.outgoing-message {
    background-color: #DCF8C6;
    border-radius: 0.5rem 0.5rem 0.125rem 0.5rem;
}

.message p {
    margin: 0 0 0.25rem 0;
    font-size: 0.9375rem;
    line-height: 1.4;
    color: var(--text-primary);
}

.message-time {
    font-size: 0.6875rem;
    color: var(--text-light);
    display: block;
    text-align: right;
    margin-top: 0.25rem;
}

/* CIF Breakdown Styles */
.cif-breakdown {
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 0.375rem;
    padding: 0.75rem;
    margin: 0.5rem 0;
    font-size: 0.875rem;
}

.cif-line {
    display: flex;
    justify-content: space-between;
    padding: 0.25rem 0;
    color: var(--text-primary);
}

.cif-line span:first-child {
    color: var(--text-secondary);
}

.cif-line span:last-child {
    font-weight: 600;
    color: var(--text-primary);
}

.cif-divider {
    height: 1px;
    background-color: rgba(0, 0, 0, 0.1);
    margin: 0.5rem 0;
}

.cif-total {
    font-weight: 700;
    font-size: 1rem;
    padding-top: 0.5rem;
}

.cif-total span {
    color: var(--primary-navy);
}

/* CTA Button Styles */
.cta-button {
    font-size: 1rem;
    padding: 0.875rem 2rem;
    min-width: 200px;
    min-height: 48px;
}

@media (max-width: 640px) {
    .cta-button {
        width: 100%;
        min-height: 48px;
        font-size: 0.9375rem;
    }
}

/* Extra small devices (320px) */
@media (max-width: 375px) {
    .cta-button {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }
}

/* Responsive adjustments for WhatsApp mockup */
@media (max-width: 1024px) {
    .whatsapp-chat {
        max-width: 380px;
    }
}

@media (max-width: 768px) {
    .whatsapp-chat {
        max-width: 100%;
    }
    
    .whatsapp-messages {
        min-height: 350px;
        padding: 1.25rem 0.875rem;
    }
}

@media (max-width: 375px) {
    .whatsapp-chat {
        border-radius: var(--radius-lg);
    }
    
    .whatsapp-messages {
        min-height: 320px;
        padding: 1rem 0.75rem;
    }
    
    .message {
        max-width: 80%;
        padding: 0.5rem 0.75rem;
    }
    
    .message p {
        font-size: 0.875rem;
    }
    
    .cif-breakdown {
        padding: 0.625rem;
        font-size: 0.8125rem;
    }
}

/* How It Works Section Styles */
.section-heading {
    position: relative;
    display: inline-block;
}

.heading-underline {
    width: 80px;
    height: 4px;
    background-color: var(--primary-gold);
    margin: 0 auto;
    border-radius: var(--radius-full);
}

.steps-grid {
    margin-top: 3rem;
}

.step-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background-color: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: default;
}

.step-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.step-icon-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.step-icon {
    width: 64px;
    height: 64px;
    background-color: var(--primary-navy-light);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-navy);
    transition: all 0.3s ease;
}

.step-card:hover .step-icon {
    background-color: var(--primary-navy);
    color: white;
    transform: rotate(5deg) scale(1.1);
}

.step-number {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 28px;
    height: 28px;
    background-color: var(--primary-gold);
    color: white;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
    box-shadow: var(--shadow-md);
}

.step-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.step-description {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Responsive adjustments for How It Works section */
@media (max-width: 1024px) {
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .step-card {
        padding: 1.75rem 1.25rem;
    }
    
    .section-heading {
        font-size: 2rem;
    }
}

@media (max-width: 640px) {
    .step-icon {
        width: 56px;
        height: 56px;
    }
    
    .step-icon svg {
        width: 1.75rem;
        height: 1.75rem;
    }
    
    .step-number {
        width: 24px;
        height: 24px;
        font-size: 0.75rem;
    }
    
    .step-title {
        font-size: 1.125rem;
    }
    
    .step-description {
        font-size: 0.875rem;
    }
}

@media (max-width: 375px) {
    .section-heading {
        font-size: 1.75rem;
    }
    
    .step-card {
        padding: 1.5rem 1rem;
    }
    
    .step-title {
        font-size: 1rem;
    }
    
    .step-description {
        font-size: 0.8125rem;
        line-height: 1.5;
    }
}

/* Ports We Serve Section Styles */
.bg-background-alt {
    background-color: var(--background-alt);
}

.ports-grid {
    margin-top: 3rem;
}

.port-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background-color: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: default;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
}

.port-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--primary-gold-light);
}

.port-icon {
    width: 64px;
    height: 64px;
    background-color: var(--primary-navy-light);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-navy);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.port-card:hover .port-icon {
    background-color: var(--primary-navy);
    color: white;
    transform: scale(1.1);
}

.port-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.port-country {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Responsive adjustments for Ports section */
@media (max-width: 1024px) {
    .ports-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .ports-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .port-card {
        padding: 1.5rem 1rem;
        min-height: 160px;
    }
    
    .port-icon {
        width: 56px;
        height: 56px;
    }
    
    .port-icon svg {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .port-name {
        font-size: 1.125rem;
    }
    
    .port-country {
        font-size: 0.875rem;
    }
}

@media (max-width: 640px) {
    .ports-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.875rem;
    }
    
    .port-card {
        padding: 1.25rem 0.875rem;
        min-height: 140px;
    }
}

@media (max-width: 375px) {
    .ports-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .port-card {
        padding: 1.25rem;
        min-height: 120px;
    }
    
    .port-icon {
        width: 48px;
        height: 48px;
    }
    
    .port-icon svg {
        width: 2rem;
        height: 2rem;
    }
    
    .port-name {
        font-size: 1rem;
    }
    
    .port-country {
        font-size: 0.8125rem;
    }
}

/* Example CIF Deals Section Styles */
.deals-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

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

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

/* Mobile: Horizontal scroll layout */
@media (max-width: 767px) {
    .deals-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1rem;
        padding-bottom: 1rem;
        -webkit-overflow-scrolling: touch;
    }
    
    .deals-grid::-webkit-scrollbar {
        height: 8px;
    }
    
    .deals-grid::-webkit-scrollbar-track {
        background: var(--background-alt);
        border-radius: var(--radius-full);
    }
    
    .deals-grid::-webkit-scrollbar-thumb {
        background: var(--primary-green);
        border-radius: var(--radius-full);
    }
}

/* Vehicle Card Styles */
.vehicle-card {
    background-color: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

@media (max-width: 767px) {
    .vehicle-card {
        min-width: 300px;
        max-width: 320px;
        scroll-snap-align: center;
        flex-shrink: 0;
    }
}

.vehicle-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
    border-color: var(--primary-gold-light);
}

/* Vehicle Image Styles */
.vehicle-image-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background-color: var(--background-alt);
}

.vehicle-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.vehicle-card:hover .vehicle-image {
    transform: scale(1.05);
}

.vehicle-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.3) 100%);
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 1rem;
}

.vehicle-badge {
    background-color: var(--primary-gold);
    color: white;
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-md);
}

/* Vehicle Content Styles */
.vehicle-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.vehicle-header {
    margin-bottom: 1.25rem;
}

.vehicle-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.375rem;
    line-height: 1.3;
}

.vehicle-subtitle {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Pricing Breakdown Styles */
.pricing-breakdown {
    background-color: var(--background-alt);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.pricing-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.pricing-label {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.pricing-value {
    font-size: 0.9375rem;
    color: var(--text-primary);
    font-weight: 600;
}

.pricing-divider {
    height: 1px;
    background-color: var(--border);
    margin: 0.75rem 0;
}

.pricing-total {
    padding-top: 0.75rem;
}

.pricing-total .pricing-label {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
}

.pricing-value-total {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-navy);
}

/* Vehicle CTA Button */
.vehicle-cta {
    margin-top: auto;
    font-size: 0.9375rem;
    padding: 0.875rem 1.5rem;
}

/* Responsive adjustments for vehicle cards */
@media (max-width: 768px) {
    .vehicle-image-wrapper {
        height: 200px;
    }
    
    .vehicle-content {
        padding: 1.25rem;
    }
    
    .vehicle-title {
        font-size: 1.25rem;
    }
    
    .vehicle-subtitle {
        font-size: 0.875rem;
    }
    
    .pricing-breakdown {
        padding: 0.875rem 1rem;
    }
    
    .pricing-label,
    .pricing-value {
        font-size: 0.875rem;
    }
    
    .pricing-total .pricing-label {
        font-size: 1rem;
    }
    
    .pricing-value-total {
        font-size: 1.375rem;
    }
}

@media (max-width: 640px) {
    .vehicle-image-wrapper {
        height: 180px;
    }
    
    .vehicle-title {
        font-size: 1.125rem;
    }
    
    .pricing-label,
    .pricing-value {
        font-size: 0.8125rem;
    }
    
    .pricing-value-total {
        font-size: 1.25rem;
    }
}

@media (max-width: 375px) {
    .vehicle-card {
        min-width: 280px;
        max-width: 300px;
    }
    
    .vehicle-image-wrapper {
        height: 160px;
    }
    
    .vehicle-content {
        padding: 1rem;
    }
    
    .vehicle-title {
        font-size: 1rem;
    }
    
    .vehicle-subtitle {
        font-size: 0.8125rem;
    }
    
    .pricing-breakdown {
        padding: 0.75rem 0.875rem;
    }
    
    .pricing-label,
    .pricing-value {
        font-size: 0.75rem;
    }
    
    .pricing-total .pricing-label {
        font-size: 0.9375rem;
    }
    
    .pricing-value-total {
        font-size: 1.125rem;
    }
    
    .vehicle-cta {
        font-size: 0.875rem;
        padding: 0.75rem 1.25rem;
    }
}

/* Contact Form Section Styles */
.contact-form-wrapper {
    background-color: transparent;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Form Group with Floating Labels */
.form-group {
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Form Input Base Styles */
.form-input {
    width: 100%;
    padding: 1rem 1rem 0.5rem 1rem;
    font-size: 1rem;
    color: var(--text-primary);
    background-color: white;
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    outline: none;
    transition: all 0.3s ease;
    font-family: var(--font-family);
    min-height: 48px;
}

/* Floating Label Styles */
.form-label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    font-size: 1rem;
    color: var(--text-secondary);
    pointer-events: none;
    transition: all 0.3s ease;
    background-color: transparent;
    padding: 0;
}

/* Float label when input is focused or has content */
.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label {
    top: -0.75rem;
    left: 0.75rem;
    font-size: 0.75rem;
    color: var(--primary-green);
    font-weight: 600;
    background-color: #FAF8F5;
    padding: 0 0.375rem;
    border-radius: 4px;
}

/* Green focus state */
.form-input:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px var(--primary-green-light);
}

/* Select dropdown specific styles */
.form-select {
    appearance: none;
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%236B7280" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>');
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25rem;
    padding-right: 3rem;
    cursor: pointer;
}

/* Float label for select when option is selected */
.form-select:not([value=""]) + .form-label,
.form-select:focus + .form-label {
    top: -0.5rem;
    left: 0.75rem;
    font-size: 0.75rem;
    color: var(--primary-green);
    font-weight: 600;
}

/* Textarea specific styles */
.form-textarea {
    resize: vertical;
    min-height: 120px;
    padding-top: 1.25rem;
}

/* Error State Styles */
.form-input.error {
    border-color: var(--error);
}

.form-input.error:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-input.error + .form-label {
    color: var(--error);
}

.form-error {
    display: none;
    color: var(--error);
    font-size: 0.875rem;
    margin-top: 0.375rem;
    font-weight: 500;
}

.form-error.show {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.form-error::before {
    content: '⚠';
    font-size: 1rem;
}

/* Valid State Styles */
.form-input.valid {
    border-color: var(--success);
}

.form-input.valid:focus {
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Submit Button Styles */
.submit-button {
    margin-top: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 700;
    position: relative;
    overflow: hidden;
}

.submit-button:disabled {
    background-color: var(--text-light);
    cursor: not-allowed;
    transform: none;
}

.submit-button:disabled:hover {
    background-color: var(--text-light);
    transform: none;
    box-shadow: var(--shadow);
}

/* Loading State */
.submit-button.loading {
    color: transparent;
    pointer-events: none;
}

.submit-button.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Form Message Styles */
.form-message {
    display: none;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg);
    margin-top: 1rem;
    font-weight: 500;
    animation: slideDown 0.4s ease-out;
}

.form-message.show {
    display: flex;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 2px solid var(--success);
}

.form-success svg {
    flex-shrink: 0;
    animation: checkmarkPop 0.5s ease-out;
}

/* Checkmark animation for success state */
@keyframes checkmarkPop {
    0% {
        opacity: 0;
        transform: scale(0) rotate(-45deg);
    }
    50% {
        transform: scale(1.2) rotate(0deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.form-error-message {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--error);
    border: 2px solid var(--error);
}

.form-error-message svg {
    flex-shrink: 0;
    animation: shake 0.4s ease-out;
}

/* Shake animation for error state */
@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-8px);
    }
    75% {
        transform: translateX(8px);
    }
}

/* Contact Info Card Styles */
.contact-info-wrapper {
    display: flex;
    flex-direction: column;
}

.contact-info-card {
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, var(--primary-gold-light) 0%, white 100%);
    border: 2px solid var(--primary-gold-light);
}

.contact-info-card:hover {
    transform: none;
}

.contact-info-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.contact-info-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Contact Details */
.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex-grow: 1;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background-color: white;
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.contact-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.whatsapp-icon {
    background-color: var(--primary-navy-light);
    color: var(--primary-navy);
}

.email-icon {
    background-color: #E3F2FD;
    color: #1976D2;
}

.phone-icon {
    background-color: #FFF3E0;
    color: #F57C00;
}

.hours-icon {
    background-color: #F3E5F5;
    color: #7B1FA2;
}

.contact-item:hover .contact-icon {
    transform: scale(1.1) rotate(5deg);
}

.contact-item-content {
    flex-grow: 1;
}

.contact-item-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.contact-item-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    line-height: 1.5;
}

a.contact-item-value:hover {
    color: var(--primary-green);
}

/* WhatsApp CTA Button */
.whatsapp-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    padding: 1rem 2rem;
}

.whatsapp-cta svg {
    flex-shrink: 0;
}

/* Responsive Adjustments for Contact Section */
@media (max-width: 1024px) {
    .contact-info-card {
        padding: 1.75rem;
    }
    
    .contact-info-title {
        font-size: 1.5rem;
    }
    
    .contact-details {
        gap: 1.25rem;
    }
}

@media (max-width: 768px) {
    .contact-form {
        gap: 1.25rem;
    }
    
    .form-input {
        padding: 0.875rem 0.875rem 0.375rem 0.875rem;
        min-height: 48px;
    }
    
    .form-label {
        left: 0.875rem;
        top: 0.875rem;
    }
    
    .form-input:focus + .form-label,
    .form-input:not(:placeholder-shown) + .form-label,
    .form-select:not([value=""]) + .form-label,
    .form-select:focus + .form-label {
        left: 0.625rem;
    }
    
    .contact-info-card {
        padding: 1.5rem;
        margin-top: 2rem;
    }
    
    .contact-info-title {
        font-size: 1.375rem;
    }
    
    .contact-info-subtitle {
        font-size: 0.9375rem;
        margin-bottom: 1.5rem;
    }
    
    .contact-details {
        gap: 1rem;
    }
    
    .contact-item {
        padding: 0.875rem;
        min-height: 44px;
    }
    
    .contact-icon {
        width: 44px;
        height: 44px;
    }
    
    .contact-icon svg {
        width: 1.25rem;
        height: 1.25rem;
    }
    
    .submit-button {
        font-size: 1rem;
        padding: 0.875rem 1.5rem;
        min-height: 48px;
    }
    
    .whatsapp-cta {
        font-size: 1rem;
        padding: 0.875rem 1.5rem;
        min-height: 48px;
    }
}

@media (max-width: 640px) {
    .contact-item {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        min-height: 48px;
    }
    
    .contact-item-value {
        font-size: 0.9375rem;
    }
}

@media (max-width: 375px) {
    .contact-form {
        gap: 1rem;
    }
    
    .form-input {
        padding: 0.75rem 0.75rem 0.25rem 0.75rem;
        font-size: 0.9375rem;
        min-height: 44px;
    }
    
    .form-label {
        left: 0.75rem;
        top: 0.75rem;
        font-size: 0.9375rem;
    }
    
    .form-input:focus + .form-label,
    .form-input:not(:placeholder-shown) + .form-label,
    .form-select:not([value=""]) + .form-label,
    .form-select:focus + .form-label {
        font-size: 0.6875rem;
    }
    
    .contact-info-card {
        padding: 1.25rem;
    }
    
    .contact-info-title {
        font-size: 1.25rem;
    }
    
    .contact-info-subtitle {
        font-size: 0.875rem;
    }
    
    .contact-item {
        padding: 0.75rem;
        gap: 0.75rem;
    }
    
    .contact-item-label {
        font-size: 0.8125rem;
    }
    
    .contact-item-value {
        font-size: 0.875rem;
    }
    
    .submit-button {
        font-size: 0.9375rem;
        padding: 0.75rem 1.25rem;
        min-height: 44px;
    }
    
    .whatsapp-cta {
        font-size: 0.9375rem;
        padding: 0.75rem 1.25rem;
        min-height: 44px;
    }
}

/* Loading State */
.submit-button.loading {
    color: transparent;
    pointer-events: none;
}

.submit-button.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Form Message Styles */
.form-message {
    display: none;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg);
    margin-top: 1rem;
    font-weight: 500;
    animation: slideDown 0.4s ease-out;
}

.form-message.show {
    display: flex;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 2px solid var(--success);
}

.form-success svg {
    flex-shrink: 0;
    animation: checkmarkPop 0.5s ease-out;
}

/* Checkmark animation for success state */
@keyframes checkmarkPop {
    0% {
        opacity: 0;
        transform: scale(0) rotate(-45deg);
    }
    50% {
        transform: scale(1.2) rotate(0deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.form-error-message {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--error);
    border: 2px solid var(--error);
}

.form-error-message svg {
    flex-shrink: 0;
    animation: shake 0.4s ease-out;
}

/* Shake animation for error state */
@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-8px);
    }
    75% {
        transform: translateX(8px);
    }
}

/* Hidden Utility Class */
.hidden {
    display: none !important;
}

/* ===================================
   RESPONSIVE DESIGN ENHANCEMENTS
   =================================== */

/* Prevent horizontal scrolling on all screen sizes */
body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Ensure all text wraps properly */
h1, h2, h3, h4, h5, h6 {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: none;
}

p, span, a, li {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Container responsive padding */
.container {
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* Navigation - Responsive improvements */
@media (max-width: 768px) {
    #navigation .container {
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }
}

@media (max-width: 375px) {
    .logo {
        font-size: 0.9375rem;
        max-width: 70%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* Section Padding - Responsive */
@media (max-width: 768px) {
    section {
        padding: 3rem 0;
    }
}

@media (max-width: 640px) {
    section {
        padding: 2.5rem 0;
    }
}

@media (max-width: 375px) {
    section {
        padding: 2rem 0;
    }
}

/* Section Headings - Responsive */
@media (max-width: 640px) {
    .section-heading {
        font-size: 1.875rem;
    }
}

@media (max-width: 375px) {
    .section-heading {
        font-size: 1.625rem;
    }
}

/* Ensure images don't overflow */
img {
    max-width: 100%;
    height: auto;
}

/* Grid responsive improvements */
@media (max-width: 320px) {
    .grid {
        gap: 0.75rem;
    }
}

/* Touch target improvements for all interactive elements */
a, button, input, select, textarea {
    -webkit-tap-highlight-color: rgba(37, 211, 102, 0.2);
}

/* Improve button touch targets on small screens */
@media (max-width: 375px) {
    .btn {
        padding: 0.75rem 1.25rem;
        min-height: 44px;
        font-size: 0.9375rem;
    }
}

/* Form select dropdown - ensure touch target */
.form-select {
    min-height: 48px;
}

@media (max-width: 375px) {
    .form-select {
        min-height: 44px;
    }
}

/* Textarea minimum height */
.form-textarea {
    min-height: 120px;
}

@media (max-width: 375px) {
    .form-textarea {
        min-height: 100px;
    }
}

/* Improve spacing for form errors on small screens */
@media (max-width: 375px) {
    .form-error {
        font-size: 0.8125rem;
        margin-top: 0.25rem;
    }
}

/* Improve form message visibility on small screens */
@media (max-width: 375px) {
    .form-message {
        padding: 0.875rem 1rem;
        font-size: 0.875rem;
        gap: 0.5rem;
    }
    
    .form-message svg {
        width: 1.25rem;
        height: 1.25rem;
        flex-shrink: 0;
    }
}

/* Deals grid - improve horizontal scroll on very small screens */
@media (max-width: 320px) {
    .deals-grid {
        gap: 0.75rem;
        padding-bottom: 0.75rem;
    }
    
    .vehicle-card {
        min-width: 260px;
        max-width: 280px;
    }
}

/* Improve WhatsApp chat mockup on very small screens */
@media (max-width: 320px) {
    .whatsapp-header {
        padding: 0.875rem 1rem;
    }
    
    .whatsapp-name {
        font-size: 0.9375rem;
    }
    
    .whatsapp-status {
        font-size: 0.6875rem;
    }
    
    .whatsapp-avatar {
        width: 36px;
        height: 36px;
    }
    
    .whatsapp-avatar svg {
        width: 1.5rem;
        height: 1.5rem;
    }
}

/* Improve navigation link spacing on mobile */
@media (max-width: 768px) {
    .mobile-nav-link {
        padding: 0.875rem 1rem;
        font-size: 1rem;
    }
}

@media (max-width: 375px) {
    .mobile-nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.9375rem;
    }
}

/* Ensure proper spacing for contact info on small screens */
@media (max-width: 320px) {
    .contact-info-card {
        padding: 1rem;
    }
    
    .contact-info-title {
        font-size: 1.125rem;
    }
    
    .contact-info-subtitle {
        font-size: 0.8125rem;
        margin-bottom: 1.25rem;
    }
    
    .contact-details {
        gap: 0.875rem;
    }
    
    .contact-item {
        padding: 0.625rem;
        gap: 0.625rem;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
    }
    
    .contact-icon svg {
        width: 1.125rem;
        height: 1.125rem;
    }
    
    .contact-item-label {
        font-size: 0.75rem;
    }
    
    .contact-item-value {
        font-size: 0.8125rem;
        line-height: 1.4;
    }
}

/* Improve hero section layout on very small screens */
@media (max-width: 320px) {
    .hero-content h1 {
        font-size: 1.625rem;
        line-height: 1.15;
        margin-bottom: 1rem;
    }
    
    .hero-content p {
        font-size: 0.9375rem;
        margin-bottom: 1.5rem;
    }
}

/* Improve step cards on very small screens */
@media (max-width: 320px) {
    .step-card {
        padding: 1.25rem 0.875rem;
    }
    
    .step-icon {
        width: 52px;
        height: 52px;
    }
    
    .step-icon svg {
        width: 1.5rem;
        height: 1.5rem;
    }
    
    .step-title {
        font-size: 0.9375rem;
    }
    
    .step-description {
        font-size: 0.8125rem;
    }
}

/* Improve pricing breakdown readability on small screens */
@media (max-width: 320px) {
    .pricing-breakdown {
        padding: 0.625rem 0.75rem;
    }
    
    .pricing-label,
    .pricing-value {
        font-size: 0.6875rem;
    }
    
    .pricing-total .pricing-label {
        font-size: 0.875rem;
    }
    
    .pricing-value-total {
        font-size: 1rem;
    }
}

/* Ensure proper line height for readability */
body {
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
}

/* Note: Enhanced focus-visible styles are defined in the accessibility section at the top of this file */

/* Improve mobile menu visibility */
@media (max-width: 768px) {
    #mobile-menu {
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    }
}

/* Ensure proper z-index stacking */
#navigation {
    z-index: 1000;
}

#mobile-menu {
    z-index: 999;
}

/* Improve scroll behavior on mobile */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 70px;
    }
}

/* Prevent text selection on buttons for better mobile UX */
.btn,
button {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Improve active states for mobile touch */
.btn:active,
button:active {
    transform: scale(0.98);
}

.card:active {
    transform: translateY(-2px);
}

/* Ensure proper spacing between sections on all devices */
section + section {
    margin-top: 0;
}

/* Improve vehicle badge visibility on small screens */
@media (max-width: 375px) {
    .vehicle-badge {
        font-size: 0.6875rem;
        padding: 0.25rem 0.625rem;
    }
}

/* Ensure proper grid gap on all breakpoints */
@media (min-width: 1440px) {
    .steps-grid,
    .ports-grid {
        gap: 2rem;
    }
}

/* Improve heading underline visibility */
.heading-underline {
    margin-top: 0.5rem;
}

@media (max-width: 375px) {
    .heading-underline {
        width: 60px;
        height: 3px;
    }
}

/* Ensure proper aspect ratio for vehicle images */
.vehicle-image {
    object-position: center;
}

/* Floating WhatsApp Button */
.floating-whatsapp {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
}

.floating-whatsapp.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.floating-whatsapp:hover {
    background-color: #20BA5A;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.floating-whatsapp svg {
    width: 32px;
    height: 32px;
    color: white;
}

/* Pulse animation for floating WhatsApp button */
.floating-whatsapp::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background-color: #25D366;
    animation: whatsappPulse 2s infinite;
    z-index: -1;
}

@keyframes whatsappPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }
    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

/* Responsive adjustments for floating WhatsApp button */
@media (max-width: 768px) {
    .floating-whatsapp {
        width: 56px;
        height: 56px;
        bottom: 20px;
        right: 20px;
    }
    
    .floating-whatsapp svg {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 480px) {
    .floating-whatsapp {
        width: 52px;
        height: 52px;
        bottom: 16px;
        right: 16px;
    }
    
    .floating-whatsapp svg {
        width: 26px;
        height: 26px;
    }
}

/* Improve WhatsApp CTA button on small screens */
@media (max-width: 320px) {
    .whatsapp-cta {
        font-size: 0.875rem;
        padding: 0.625rem 1rem;
    }
    
    .whatsapp-cta svg {
        width: 1rem;
        height: 1rem;
    }
}

/* Ensure proper spacing for section descriptions */
.section-heading + .heading-underline + p {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 640px) {
    .section-heading + .heading-underline + p {
        font-size: 0.9375rem;
    }
}

@media (max-width: 375px) {
    .section-heading + .heading-underline + p {
        font-size: 0.875rem;
    }
}

/* ===================================
   ANIMATED COUNTER STATS
   =================================== */

/* Stats Section Styles */
#stats-section {
    perspective: 1000px;
}

.stat-item {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.stat-item.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Counter Number Styles */
.counter {
    display: inline-block;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, var(--primary-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 10px rgba(201, 169, 97, 0.3);
    letter-spacing: -0.02em;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Add glow effect on hover */
.stat-item:hover .counter {
    animation: glow 1.5s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        filter: drop-shadow(0 0 5px rgba(201, 169, 97, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 15px rgba(201, 169, 97, 0.8));
    }
}

/* Responsive Counter Sizes */
@media (max-width: 768px) {
    .counter {
        font-size: 2.5rem;
    }
}

@media (max-width: 640px) {
    .counter {
        font-size: 2rem;
    }
    
    #stats-section {
        gap: 1.5rem;
    }
}

@media (max-width: 375px) {
    .counter {
        font-size: 1.75rem;
    }
    
    #stats-section {
        gap: 1rem;
    }
    
    .stat-item {
        padding: 0.5rem;
    }
}

/* ===================================
   PARALLAX SCROLLING EFFECTS
   =================================== */

/* Parallax container setup */
.parallax-section {
    position: relative;
    overflow: hidden;
}

/* Parallax background layers */
.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    will-change: transform;
    transition: transform 0.1s ease-out;
}

/* Parallax decorative elements */
.parallax-element {
    position: absolute;
    will-change: transform;
    transition: transform 0.2s ease-out;
}

/* Hero section parallax effects */
#home .parallax-bg {
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-navy-dark) 100%);
}

/* Decorative circles with parallax */
.parallax-circle-1,
.parallax-circle-2 {
    border-radius: 50%;
    opacity: 0.1;
    pointer-events: none;
}

.parallax-circle-1 {
    background: radial-gradient(circle, var(--primary-gold) 0%, transparent 70%);
}

.parallax-circle-2 {
    background: radial-gradient(circle, var(--primary-gold) 0%, transparent 70%);
}

/* Pattern overlay with parallax */
.parallax-pattern {
    background-image: radial-gradient(circle at 1px 1px, white 1px, transparent 0);
    background-size: 40px 40px;
    opacity: 0.1;
}

/* Content with subtle parallax */
.parallax-content {
    position: relative;
    z-index: 10;
    will-change: transform;
}

/* Stats section - smooth opacity transitions */
#stats-section .stat-item {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease-out;
}

/* Disable parallax on mobile for better performance */
@media (max-width: 768px) {
    .parallax-bg,
    .parallax-element,
    .parallax-content {
        will-change: auto;
        transform: none !important;
    }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .parallax-bg,
    .parallax-element,
    .parallax-content {
        will-change: auto;
        transform: none !important;
        transition: none !important;
    }
}


/* ===================================
   VEHICLE SEARCH MODAL STYLES
   =================================== */

/* Modal Overlay */
.vehicle-search-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.vehicle-search-modal.active {
    opacity: 1;
    visibility: visible;
}

.vehicle-search-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(10, 37, 64, 0.8);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Modal Container */
.vehicle-search-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    background-color: white;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    transform: scale(0.95);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.vehicle-search-modal.active .vehicle-search-container {
    transform: scale(1);
}

/* Modal Header */
.vehicle-search-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
}

.close-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--background-alt);
    color: var(--text-secondary);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.close-search-btn:hover {
    background-color: var(--primary-navy-light);
    color: var(--primary-navy);
    transform: rotate(90deg);
}

.close-search-btn:focus-visible {
    outline: 3px solid var(--primary-navy);
    outline-offset: 2px;
}

/* Search Input */
.vehicle-search-input-wrapper {
    position: relative;
    padding: 1.5rem 2rem 1rem 2rem;
}

.search-icon {
    position: absolute;
    left: 2.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.25rem;
    height: 1.25rem;
    color: var(--text-secondary);
    pointer-events: none;
}

.vehicle-search-input {
    width: 100%;
    padding: 1rem 3rem 1rem 3rem;
    font-size: 1rem;
    color: var(--text-primary);
    background-color: var(--background-alt);
    border: 2px solid transparent;
    border-radius: 0.75rem;
    outline: none;
    transition: all 0.3s ease;
}

.vehicle-search-input:focus {
    background-color: white;
    border-color: var(--primary-navy);
    box-shadow: 0 0 0 4px var(--primary-navy-light);
}

.vehicle-search-input::placeholder {
    color: var(--text-light);
}

.clear-search-btn {
    position: absolute;
    right: 2.75rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--text-light);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.clear-search-btn:hover {
    background-color: var(--text-secondary);
    transform: translateY(-50%) scale(1.1);
}

/* Quick Filters */
.vehicle-search-filters {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 2rem 1.5rem 2rem;
    flex-wrap: wrap;
}

.filter-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-right: 0.25rem;
}

.filter-chip {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    background-color: var(--background-alt);
    border: 1px solid var(--border);
    border-radius: 2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.filter-chip::before {
    content: '';
    position: absolute;
    bottom: -50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background-color: var(--primary-navy);
    transition: width 2s ease, height 2s ease, bottom 2s ease;
    transform: translateX(-50%);
    z-index: -1;
}

.filter-chip:hover {
    background-color: var(--primary-navy-light);
    color: white;
    border-color: var(--primary-navy);
}

.filter-chip:hover::before {
    width: 400%;
    height: 400%;
    bottom: -100%;
}

.filter-chip:focus-visible {
    outline: 2px solid var(--primary-navy);
    outline-offset: 2px;
}

/* Search Results Area */
.vehicle-search-results {
    flex: 1;
    overflow-y: auto;
    padding: 0 2rem 1.5rem 2rem;
    min-height: 300px;
}

/* Search States */
.search-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    text-align: center;
}

.state-icon {
    width: 4rem;
    height: 4rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.state-text {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.state-subtext {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Loading Spinner */
.loading-spinner {
    width: 3rem;
    height: 3rem;
    border: 4px solid var(--primary-navy-light);
    border-top-color: var(--primary-navy);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Results List */
.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Result Item */
.search-result-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: white;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-result-item:hover {
    border-color: var(--primary-navy);
    box-shadow: 0 4px 12px rgba(10, 37, 64, 0.1);
    transform: translateY(-2px);
}

.search-result-item:focus-visible {
    outline: 3px solid var(--primary-navy);
    outline-offset: 2px;
}

.result-image {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 0.5rem;
    background-color: var(--background-alt);
    flex-shrink: 0;
}

.result-content {
    flex: 1;
    min-width: 0;
}

.result-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.result-details {
    font-size: 0.875rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.result-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.125rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    background-color: var(--primary-gold-light);
    color: var(--primary-gold-dark);
    border-radius: 0.25rem;
}

.result-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-navy);
    white-space: nowrap;
}

.result-arrow {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--text-light);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.search-result-item:hover .result-arrow {
    color: var(--primary-navy);
    transform: translateX(4px);
}

/* Modal Footer */
.vehicle-search-footer {
    padding: 1rem 2rem 1.5rem 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .vehicle-search-container {
        max-height: 95vh;
        border-radius: 1rem;
    }

    .vehicle-search-header {
        padding: 1.25rem 1.5rem;
    }

    .vehicle-search-header h2 {
        font-size: 1.5rem;
    }

    .vehicle-search-input-wrapper {
        padding: 1.25rem 1.5rem 1rem 1.5rem;
    }

    .search-icon {
        left: 2.25rem;
    }

    .clear-search-btn {
        right: 2.25rem;
    }

    .vehicle-search-filters {
        padding: 0 1.5rem 1.25rem 1.5rem;
    }

    .vehicle-search-results {
        padding: 0 1.5rem 1.25rem 1.5rem;
        min-height: 250px;
    }

    .vehicle-search-footer {
        padding: 1rem 1.5rem 1.25rem 1.5rem;
    }

    .result-image {
        width: 70px;
        height: 52px;
    }

    .result-title {
        font-size: 0.9375rem;
    }

    .result-details {
        font-size: 0.8125rem;
    }

    .result-price {
        font-size: 0.9375rem;
    }
}

@media (max-width: 640px) {
    .vehicle-search-modal {
        padding: 0.5rem;
    }

    .vehicle-search-container {
        border-radius: 0.75rem;
    }

    .vehicle-search-header {
        padding: 1rem 1.25rem;
    }

    .vehicle-search-header h2 {
        font-size: 1.25rem;
    }

    .close-search-btn {
        width: 36px;
        height: 36px;
    }

    .vehicle-search-input-wrapper {
        padding: 1rem 1.25rem 0.875rem 1.25rem;
    }

    .vehicle-search-input {
        padding: 0.875rem 2.75rem 0.875rem 2.75rem;
        font-size: 0.9375rem;
    }

    .search-icon {
        left: 2rem;
        width: 1.125rem;
        height: 1.125rem;
    }

    .clear-search-btn {
        right: 2rem;
        width: 28px;
        height: 28px;
    }

    .vehicle-search-filters {
        padding: 0 1.25rem 1rem 1.25rem;
        gap: 0.375rem;
    }

    .filter-chip {
        padding: 0.375rem 0.875rem;
        font-size: 0.8125rem;
    }

    .vehicle-search-results {
        padding: 0 1.25rem 1rem 1.25rem;
        min-height: 200px;
    }

    .search-result-item {
        padding: 0.875rem;
        gap: 0.875rem;
    }

    .result-image {
        width: 60px;
        height: 45px;
    }

    .result-title {
        font-size: 0.875rem;
    }

    .result-details {
        font-size: 0.75rem;
        gap: 0.5rem;
    }

    .result-badge {
        font-size: 0.6875rem;
        padding: 0.125rem 0.375rem;
    }

    .result-price {
        font-size: 0.875rem;
    }

    .vehicle-search-footer {
        padding: 0.875rem 1.25rem 1rem 1.25rem;
    }

    .vehicle-search-footer p {
        font-size: 0.8125rem;
    }
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
}

/* ===================================
   SHIPPING TIMELINE TRACKER STYLES
   =================================== */

/* Timeline Container */
.timeline-container {
    position: relative;
    padding: 2rem 0;
}

/* Timeline Vertical Line */
.timeline-container::before {
    content: '';
    position: absolute;
    left: 2rem;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, 
        var(--primary-navy) 0%, 
        var(--primary-navy) 40%, 
        var(--border) 40%, 
        var(--border) 100%);
}

@media (max-width: 768px) {
    .timeline-container::before {
        left: 1rem;
    }
}

/* Timeline Item */
.timeline-item {
    position: relative;
    padding-left: 5rem;
    padding-bottom: 3rem;
}

@media (max-width: 768px) {
    .timeline-item {
        padding-left: 3.5rem;
    }
}

.timeline-item:last-child {
    padding-bottom: 0;
}

/* Timeline Marker */
.timeline-marker {
    position: absolute;
    left: 0;
    top: 0;
    width: 4rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

@media (max-width: 768px) {
    .timeline-marker {
        width: 3rem;
        height: 3rem;
    }
}

.timeline-marker-inner {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background-color: var(--primary-navy);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    border: 4px solid white;
}

@media (max-width: 768px) {
    .timeline-marker-inner {
        width: 2.5rem;
        height: 2.5rem;
        border-width: 3px;
    }
    
    .timeline-marker-inner svg {
        width: 1.25rem;
        height: 1.25rem;
    }
}

.timeline-marker-inner.timeline-marker-pending {
    background-color: var(--border);
    color: var(--secondary);
}

.timeline-item:hover .timeline-marker-inner {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Timeline Content */
.timeline-content {
    position: relative;
}

/* Timeline Card */
.timeline-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.timeline-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.timeline-card-pending {
    opacity: 0.7;
}

/* Timeline Header */
.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.timeline-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin: 0;
}

@media (max-width: 768px) {
    .timeline-title {
        font-size: 1.1rem;
    }
}

/* Timeline Badge */
.timeline-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.timeline-badge-completed {
    background-color: #10b981;
    color: white;
}

.timeline-badge-active {
    background-color: var(--primary-gold);
    color: white;
    animation: pulse-badge 2s ease-in-out infinite;
}

.timeline-badge-pending {
    background-color: var(--background-alt);
    color: var(--secondary);
}

@keyframes pulse-badge {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Timeline Description */
.timeline-description {
    color: var(--secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Timeline Details */
.timeline-details {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.timeline-detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--secondary);
    font-size: 0.875rem;
}

.timeline-detail-item svg {
    color: var(--primary-navy);
    opacity: 0.6;
}

/* Timeline Progress Bar */
.timeline-progress {
    margin-top: 1rem;
}

.timeline-progress-bar {
    width: 100%;
    height: 0.5rem;
    background-color: var(--background-alt);
    border-radius: 9999px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.timeline-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-navy) 0%, var(--primary-gold) 100%);
    border-radius: 9999px;
    transition: width 0.5s ease;
    animation: progress-shimmer 2s ease-in-out infinite;
}

@keyframes progress-shimmer {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        opacity: 1;
    }
}

.timeline-progress-text {
    font-size: 0.875rem;
    color: var(--secondary);
    font-weight: 600;
}

/* Timeline Summary */
.timeline-summary {
    margin-top: 3rem;
}

.timeline-summary-card {
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-navy-dark) 100%);
    border-radius: 1.5rem;
    padding: 2rem;
    color: white;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.timeline-summary-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.timeline-summary-header svg {
    color: var(--primary-gold);
}

.timeline-summary-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

@media (max-width: 768px) {
    .timeline-summary-header h3 {
        font-size: 1.25rem;
    }
}

.timeline-summary-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.timeline-summary-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.timeline-summary-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-gold);
    line-height: 1;
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .timeline-summary-number {
        font-size: 2rem;
    }
}

.timeline-summary-label {
    font-size: 0.875rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.timeline-summary-divider {
    width: 1px;
    height: 3rem;
    background-color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .timeline-summary-divider {
        display: none;
    }
}

.timeline-summary-note {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.6;
    opacity: 0.9;
}

.timeline-summary-note svg {
    flex-shrink: 0;
    margin-top: 0.125rem;
    color: var(--primary-gold);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .timeline-summary-card {
        padding: 1.5rem;
    }
    
    .timeline-card {
        padding: 1.25rem;
    }
}

/* Animation for timeline items on scroll */
@media (prefers-reduced-motion: no-preference) {
    .timeline-item {
        opacity: 0;
        transform: translateX(-20px);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }
    
    .timeline-item.is-visible {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===================================
   MOBILE NAVIGATION DROPDOWN
   =================================== */

/* Mobile Navigation - Hide desktop nav and show mobile menu toggle */
@media (max-width: 768px) {
    /* Hide desktop navigation links */
    .nav-links {
        display: none !important;
    }
    
    /* Hide desktop action buttons */
    #navigation .flex.items-center.space-x-6 {
        display: none !important;
    }
    
    /* Show mobile menu toggle */
    #mobile-menu-toggle {
        display: flex !important;
    }
}

/* Desktop Navigation - Hide mobile menu toggle */
@media (min-width: 769px) {
    #mobile-menu-toggle {
        display: none !important;
    }
    
    #mobile-menu {
        display: none !important;
    }
}
