/* ===================================================================
   FLOTILLA TRACKER - MODERN RESPONSIVE STYLESHEET
   =================================================================== */

/* ===================================================================
   CSS CUSTOM PROPERTIES (VARIABLES)
   =================================================================== */
:root {
    /* Colors */
    --primary-color: #0066cc;
    --primary-dark: #004499;
    --primary-light: #3388dd;
    --secondary-color: #ff6b35;
    --secondary-dark: #e55529;
    --accent-color: #00d4aa;
    --accent-dark: #00b894;
    
    /* Neutrals */
    --text-primary: #2d3748;
    --text-secondary: #4a5568;
    --text-light: #718096;
    --text-inverse: #ffffff;
    
    /* Backgrounds */
    --bg-primary: #ffffff;
    --bg-secondary: #f7fafc;
    --bg-accent: #edf2f7;
    --bg-dark: #2d3748;
    --bg-overlay: rgba(0, 0, 0, 0.5);
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    
    /* Borders */
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --border-radius: 8px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.15);
    
    /* Typography */
    --font-family-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-family-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
    --line-height-tight: 1.25;
    --line-height-snug: 1.375;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.625;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    --spacing-4xl: 6rem;
    
    /* Layout */
    --container-max-width: 1200px;
    --nav-height: 70px;
    --header-height: 80px;
    
    /* Transitions */
    --transition-fast: 0.15s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
    
    /* Z-index */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}

/* ===================================================================
   RESET & BASE STYLES
   =================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 100%;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-normal);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ===================================================================
   TYPOGRAPHY
   =================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-display);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

h1 { font-size: var(--font-size-5xl); }
h2 { font-size: var(--font-size-4xl); }
h3 { font-size: var(--font-size-3xl); }
h4 { font-size: var(--font-size-2xl); }
h5 { font-size: var(--font-size-xl); }
h6 { font-size: var(--font-size-lg); }

p {
    margin-bottom: var(--spacing-md);
    color: var(--text-secondary);
    line-height: var(--line-height-relaxed);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover,
a:focus {
    color: var(--primary-dark);
    outline: 2px solid transparent;
    outline-offset: 2px;
}

/* ===================================================================
   LAYOUT COMPONENTS
   =================================================================== */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ===================================================================
   HEADER & NAVIGATION
   =================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-fixed);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    transition: all var(--transition-normal);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--spacing-md);
    height: var(--nav-height);
    max-width: var(--container-max-width);
    margin: 0 auto;
}

.nav-brand {
    display: flex;
    align-items: center;
}

.brand-link {
    display: flex;
    align-items: center;
    font-family: var(--font-family-display);
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.brand-link:hover {
    color: var(--primary-dark);
}

.brand-link i {
    margin-right: var(--spacing-sm);
    font-size: var(--font-size-2xl);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.nav-toggle-icon {
    width: 20px;
    height: 2px;
    background-color: var(--text-primary);
    transition: all var(--transition-fast);
    margin: 2px 0;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    margin-left: var(--spacing-lg);
}

.nav-link {
    display: flex;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md);
    font-weight: var(--font-weight-medium);
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: all var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    background-color: var(--bg-accent);
}

.nav-link i {
    margin-right: var(--spacing-xs);
    font-size: var(--font-size-sm);
}

/* ===================================================================
   MAIN CONTENT
   =================================================================== */
.main-content {
    margin-top: var(--nav-height);
    min-height: calc(100vh - var(--nav-height));
}

/* ===================================================================
   HERO SECTION
   =================================================================== */
.hero-section {
    background: var(--bg-gradient);
    color: var(--text-inverse);
    padding: 3rem 0 2rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Compact Hero Section */
.hero-section.compact {
    padding: 2rem 0 1.5rem 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" style="stop-color:rgba(255,255,255,0.1)"/><stop offset="100%" style="stop-color:rgba(255,255,255,0)"/></radialGradient></defs><circle cx="500" cy="500" r="500" fill="url(%23a)"/></svg>') center/cover;
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.hero-title {
    font-size: var(--font-size-5xl);
    font-weight: var(--font-weight-extrabold);
    line-height: var(--line-height-tight);
    margin-bottom: var(--spacing-md);
    color: var(--text-inverse);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.hero-subtitle {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-medium);
    opacity: 0.9;
    display: block;
}

.hero-description {
    font-size: var(--font-size-lg);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--spacing-2xl);
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-xl);
    max-width: 500px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-extrabold);
    font-family: var(--font-family-display);
    color: var(--text-inverse);
    margin-bottom: var(--spacing-xs);
}

.stat-label {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


/* ===================================================================
   MAP SECTION
   =================================================================== */
.map-section {
    padding: var(--spacing-4xl) 0;
    background-color: var(--bg-secondary);
}

.map-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.map-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xl);
}

.map-title {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin: 0;
}

.map-controls {
    display: flex;
    gap: var(--spacing-md);
}

.control-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    background-color: var(--primary-color);
    color: var(--text-inverse);
    border: none;
    border-radius: var(--border-radius);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.control-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
}

.control-btn:active {
    transform: translateY(0);
}

.interactive-map {
    width: 100%;
    height: 500px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    margin-bottom: var(--spacing-xl);
}

.map-legend {
    background-color: var(--bg-primary);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

.legend-title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.legend-items {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.legend-icon {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: block;
}

.vessel-active { background-color: #22c55e; }
.vessel-route { background-color: #3b82f6; }
.vessel-port { background-color: #f59e0b; }

.legend-text {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    font-weight: var(--font-weight-medium);
}

/* ===================================================================
   FEATURES SECTION
   =================================================================== */
.features-section {
    padding: var(--spacing-4xl) 0;
    background-color: var(--bg-primary);
}

.section-title {
    text-align: center;
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-bottom: var(--spacing-3xl);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-2xl);
}

.feature-card {
    background-color: var(--bg-primary);
    padding: var(--spacing-2xl);
    border-radius: var(--border-radius-lg);
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--bg-gradient);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--spacing-lg);
    background: var(--bg-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-inverse);
    font-size: var(--font-size-2xl);
}

.feature-title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.feature-description {
    color: var(--text-secondary);
    line-height: var(--line-height-relaxed);
    margin: 0;
}

/* ===================================================================
   NEWS SECTION
   =================================================================== */
.news-section {
    padding: var(--spacing-4xl) 0;
    background-color: var(--bg-secondary);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-xl);
}

.news-card {
    background-color: var(--bg-primary);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    border: 1px solid var(--border-color);
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.news-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.news-date {
    font-size: var(--font-size-xs);
    color: var(--text-light);
    font-weight: var(--font-weight-medium);
}

.news-category {
    background-color: var(--primary-color);
    color: var(--text-inverse);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
    line-height: var(--line-height-snug);
}

.news-excerpt {
    color: var(--text-secondary);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--spacing-lg);
}

.news-link {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--primary-color);
    font-weight: var(--font-weight-medium);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.news-link:hover {
    color: var(--primary-dark);
}

.news-link i {
    transition: transform var(--transition-fast);
}

.news-link:hover i {
    transform: translateX(3px);
}

/* ===================================================================
   FOOTER
   =================================================================== */
.footer {
    background-color: var(--bg-dark);
    color: var(--text-inverse);
    padding: var(--spacing-4xl) 0 var(--spacing-xl);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-2xl);
}

.footer-section h3 {
    color: var(--text-inverse);
}

.footer-brand-link {
    display: flex;
    align-items: center;
    font-family: var(--font-family-display);
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--text-inverse);
    text-decoration: none;
    margin-bottom: var(--spacing-md);
}

.footer-brand-link i {
    margin-right: var(--spacing-sm);
    font-size: var(--font-size-2xl);
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: var(--line-height-relaxed);
}

.footer-title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-lg);
    color: var(--text-inverse);
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: var(--spacing-sm);
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-link:hover {
    color: var(--text-inverse);
}

.footer-text {
    color: rgba(255, 255, 255, 0.8);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--spacing-lg);
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-inverse);
    border-radius: 50%;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.social-link:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-xl);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.copyright {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.footer-meta {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--font-size-sm);
    margin: 0;
}

/* ===================================================================
   RESPONSIVE DESIGN
   =================================================================== */

/* Large Desktop */
@media (min-width: 1400px) {
    :root {
        --container-max-width: 1320px;
    }
}

/* Desktop */
@media (max-width: 1199px) {
    :root {
        --font-size-5xl: 2.5rem;
        --font-size-4xl: 2rem;
    }
    
    .hero-stats {
        max-width: 400px;
    }
}

/* Tablet */
@media (max-width: 991px) {
    :root {
        --spacing-4xl: 4rem;
        --font-size-5xl: 2.25rem;
        --font-size-4xl: 1.875rem;
        --font-size-3xl: 1.5rem;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        border-top: 1px solid var(--border-color);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-normal);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-list {
        flex-direction: column;
        padding: var(--spacing-lg) 0;
    }
    
    .nav-item {
        margin: 0;
        width: 100%;
    }
    
    .nav-link {
        padding: var(--spacing-md) var(--spacing-lg);
        width: 100%;
        justify-content: flex-start;
    }
    
    .map-header {
        flex-direction: column;
        gap: var(--spacing-lg);
        text-align: center;
    }
    
    .interactive-map {
        height: 400px;
    }
    
    .legend-items {
        justify-content: center;
    }
}

/* Mobile */
@media (max-width: 767px) {
    :root {
        --spacing-4xl: 3rem;
        --spacing-3xl: 2.5rem;
        --font-size-5xl: 2rem;
        --font-size-4xl: 1.75rem;
        --font-size-3xl: 1.375rem;
        --font-size-2xl: 1.25rem;
    }
    
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .hero-title {
        font-size: var(--font-size-4xl);
    }
    
    .hero-subtitle {
        font-size: var(--font-size-lg);
    }
    
    .hero-description {
        font-size: var(--font-size-base);
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .interactive-map {
        height: 300px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .control-btn span {
        display: none;
    }
}

/* Small Mobile */
@media (max-width: 479px) {
    :root {
        --spacing-4xl: 2rem;
        --font-size-5xl: 1.75rem;
        --font-size-4xl: 1.5rem;
    }
    
    .map-container,
    .container {
        padding: 0 var(--spacing-xs);
    }
    
    .hero-content {
        padding: 0 var(--spacing-sm);
    }
    
    .feature-card,
    .news-card {
        padding: var(--spacing-lg);
    }
}

/* ===================================================================
   UTILITY CLASSES
   =================================================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

.m-0 { margin: 0; }
.mb-0 { margin-bottom: 0; }
.mt-0 { margin-top: 0; }

/* ===================================================================
   ANIMATIONS & TRANSITIONS
   =================================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* ===================================================================
   FOCUS STYLES FOR ACCESSIBILITY
   =================================================================== */
*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

button:focus,
input:focus,
select:focus,
textarea:focus,
a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ===================================================================
   PRINT STYLES
   =================================================================== */
@media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    .header,
    .nav-toggle,
    .map-controls,
    .footer {
        display: none !important;
    }

    .main-content {
        margin-top: 0;
    }

    .interactive-map {
        border: 1px solid #000;
        height: 300px;
    }
}

/* ===================================================================
   HIGH CONTRAST MODE SUPPORT
   =================================================================== */
@media (prefers-contrast: high) {
    :root {
        --border-color: #000000;
        --text-light: #000000;
        --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
        --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.3);
        --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.3);
    }
}

/* ===================================================================
   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;
    }
}

/* ===================================================================
   LIVE TRACKER SECTION
   =================================================================== */
.tracker-section {
    padding: var(--spacing-4xl) 0;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-accent) 100%);
    position: relative;
    overflow: hidden;
}

.tracker-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="waves" width="100" height="20" patternUnits="userSpaceOnUse"><path d="M0 10 Q 25 0 50 10 T 100 10 V 20 H 0 Z" fill="rgba(0,102,204,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23waves)" /></svg>');
    z-index: 1;
}

.tracker-container {
    position: relative;
    z-index: 2;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.tracker-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.tracker-title-area {
    margin-bottom: var(--spacing-xl);
}

.tracker-title {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    position: relative;
}

.tracker-title i {
    color: var(--primary-color);
    font-size: var(--font-size-2xl);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-3px) rotate(1deg); }
    66% { transform: translateY(3px) rotate(-1deg); }
}

.tracker-title::after {
    content: '';
    position: absolute;
    bottom: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--bg-gradient);
    border-radius: 2px;
}

.tracker-description {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: var(--line-height-relaxed);
}

.tracker-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    border-radius: var(--border-radius-xl);
    padding: var(--spacing-lg) var(--spacing-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    margin-bottom: var(--spacing-xl);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
}

.status-dot {
    width: 12px;
    height: 12px;
    background: linear-gradient(45deg, #22c55e, #16a34a);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.3);
    animation: pulse-dot 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
        box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.2);
    }
}

.tracker-controls {
    display: flex;
    gap: var(--spacing-sm);
}

.tracker-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--text-inverse);
    border: none;
    border-radius: var(--border-radius);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.tracker-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.tracker-btn:hover::before {
    left: 100%;
}

.tracker-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
}

.tracker-btn:active {
    transform: translateY(0);
}

.refresh-btn i {
    animation: spin-slow 4s linear infinite;
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.tracker-embed-container {
    position: relative;
    background: var(--bg-primary);
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
    border: 1px solid var(--border-light);
    margin-bottom: var(--spacing-xl);
}

.tracker-embed-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--bg-gradient);
    z-index: 1;
}

.tracker-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 600px;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-accent));
    position: relative;
    overflow: hidden;
}

.tracker-loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400"><defs><radialGradient id="bg" cx="50%" cy="50%"><stop offset="0%" style="stop-color:rgba(0,102,204,0.05)"/><stop offset="100%" style="stop-color:rgba(0,102,204,0)"/></radialGradient></defs><circle cx="200" cy="200" r="200" fill="url(%23bg)"/></svg>') center/cover;
    opacity: 0.6;
}

.loading-animation {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--border-light);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: relative;
}

.loading-spinner::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border: 2px solid transparent;
    border-top: 2px solid var(--secondary-color);
    border-radius: 50%;
    animation: spin 1.5s linear infinite reverse;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-waves {
    display: flex;
    gap: var(--spacing-xs);
    align-items: center;
}

.wave {
    width: 8px;
    height: 24px;
    background: var(--primary-color);
    border-radius: 4px;
    animation: wave-animation 1.5s ease-in-out infinite;
}

.wave1 { animation-delay: 0s; }
.wave2 { animation-delay: 0.2s; }
.wave3 { animation-delay: 0.4s; }

@keyframes wave-animation {
    0%, 100% { 
        height: 24px;
        background: var(--primary-color);
    }
    50% { 
        height: 40px;
        background: var(--primary-light);
    }
}

.loading-text {
    color: var(--text-primary);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    margin: 0;
    position: relative;
    z-index: 2;
}

.loading-subtext {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    margin: var(--spacing-xs) 0 0 0;
    position: relative;
    z-index: 2;
}

.tracker-iframe {
    width: 100%;
    height: 700px;
    border: none;
    display: block;
    transition: opacity var(--transition-normal);
    background: var(--bg-secondary);
}

.tracker-iframe.hidden {
    display: none;
}

.tracker-iframe.loading {
    opacity: 0.7;
    filter: blur(1px);
}

.tracker-info-panel {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-radius: var(--border-radius-xl);
    padding: var(--spacing-2xl);
    margin-bottom: var(--spacing-xl);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
}

.info-card {
    text-align: center;
    padding: var(--spacing-lg);
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-light);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--bg-gradient);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.info-card:hover::before {
    transform: scaleX(1);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.info-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--spacing-md);
    background: var(--bg-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-inverse);
    font-size: var(--font-size-xl);
    transition: transform var(--transition-normal);
}

.info-card:hover .info-icon {
    transform: scale(1.1) rotate(5deg);
}

.info-card h4 {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.info-card p {
    color: var(--text-secondary);
    line-height: var(--line-height-relaxed);
    font-size: var(--font-size-sm);
}

.tracker-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg) var(--spacing-xl);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
}

.footer-stats {
    display: flex;
    gap: var(--spacing-xl);
}

.stat-mini {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--primary-color);
    font-family: var(--font-family-display);
    margin-bottom: var(--spacing-xs);
}

.stat-label {
    font-size: var(--font-size-xs);
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: var(--font-weight-medium);
}

.powered-by {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.powered-by a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
    transition: color var(--transition-fast);
}

.powered-by a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Fullscreen Mode */
.tracker-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background: var(--bg-primary);
    padding: var(--spacing-lg);
    overflow: auto;
}

.tracker-fullscreen .tracker-iframe {
    height: calc(100vh - 120px);
}

.tracker-fullscreen .fullscreen-btn i {
    transform: rotate(45deg);
}

/* Iframe Fallback Styles */
.iframe-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-2xl);
}

.fallback-content {
    text-align: center;
    max-width: 400px;
}

.fallback-content i {
    font-size: 3rem;
    color: #ffc107;
    margin-bottom: var(--spacing-lg);
    display: block;
}

.fallback-content h3 {
    color: var(--text-primary);
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-md);
}

.fallback-content p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    line-height: var(--line-height-relaxed);
}

.tracker-fallback {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-radius: var(--border-radius-xl);
    padding: var(--spacing-2xl);
    text-align: center;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
}

.fallback-header {
    margin-bottom: var(--spacing-xl);
}

.fallback-header i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-lg);
    display: block;
}

.fallback-header h3 {
    color: var(--text-primary);
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-md);
}

.fallback-header p {
    color: var(--text-secondary);
    font-size: var(--font-size-lg);
    line-height: var(--line-height-relaxed);
    max-width: 500px;
    margin: 0 auto;
}

.fallback-actions {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-md) var(--spacing-xl);
    border: none;
    border-radius: var(--border-radius);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--text-inverse);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--text-inverse);
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    color: var(--text-inverse);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #5a6268, #6c757d);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--text-inverse);
}

.btn-large {
    padding: var(--spacing-lg) var(--spacing-2xl);
    font-size: var(--font-size-lg);
}

.btn:active {
    transform: translateY(0);
}

/* Mobile Responsive for Fallback */
@media (max-width: 768px) {
    .fallback-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .tracker-fallback {
        padding: var(--spacing-xl);
    }
    
    .fallback-header h3 {
        font-size: var(--font-size-xl);
    }
    
    .fallback-header p {
        font-size: var(--font-size-base);
    }
    
    .fallback-header i {
        font-size: 3rem;
    }
}

/* ===================================================================
   CONTENT SECTIONS
   =================================================================== */

.content-section {
    padding: 4rem 0;
    background: var(--bg-secondary);
}

.content-section .section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
    font-size: 2.25rem;
    font-weight: 700;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.content-block {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.content-block:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.content-block h3 {
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.content-block p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.content-block strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Info Section Styles */
.info-section {
    padding: 4rem 0;
    background: var(--bg-primary);
}

.info-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.info-text h2 {
    color: var(--text-dark);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.info-text p {
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.info-list {
    list-style: none;
    padding: 0;
}

.info-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
}

.info-list li:last-child {
    border-bottom: none;
}

.info-list li strong {
    color: var(--primary-color);
    font-weight: 600;
}

.info-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.stats-showcase {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
}

.showcase-stat {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 2rem;
    border-radius: 12px;
    color: white;
    min-width: 150px;
}

.showcase-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.showcase-label {
    font-size: 0.9rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===================================================================
   FAQ PAGE STYLES
   =================================================================== */

.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 4rem 0 2rem 0;
    text-align: center;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.page-subtitle {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.breadcrumb {
    margin-top: 2rem;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item:not(:last-child)::after {
    content: '/';
    margin: 0 0.75rem;
    opacity: 0.6;
}

.breadcrumb-link {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.breadcrumb-link:hover {
    opacity: 1;
}

.breadcrumb-item.active {
    opacity: 1;
    font-weight: 500;
}

/* FAQ Section */
.faq-section {
    padding: 4rem 0;
    background: var(--light-bg);
}

.faq-search {
    margin-bottom: 3rem;
    text-align: center;
}

.search-box {
    position: relative;
    display: inline-block;
    max-width: 500px;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 1rem 3rem 1rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-size: 1rem;
    background: var(--white);
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.search-btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-50%) scale(1.05);
}

/* FAQ Categories */
.faq-categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.category-btn {
    background: var(--white);
    border: 2px solid var(--border-color);
    color: var(--text-color);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.category-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.category-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* FAQ Container */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.5rem;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background: var(--light-bg);
}

.faq-question h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    flex: 1;
    margin-right: 1rem;
}

.faq-icon {
    color: var(--primary-color);
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.faq-item.open .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: var(--light-bg);
}

.faq-item.open .faq-answer {
    max-height: 1000px;
}

.faq-answer > div {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.faq-answer p {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer ul,
.faq-answer ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.faq-answer li {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.faq-answer strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* FAQ CTA */
.faq-cta {
    background: var(--white);
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
    margin-top: 3rem;
    border: 1px solid var(--border-color);
}

.cta-content h2 {
    color: var(--text-dark);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-content p {
    color: var(--text-color);
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ===================================================================
   RESPONSIVE STYLES FOR NEW SECTIONS
   =================================================================== */

@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .info-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .stats-showcase {
        flex-direction: row;
        justify-content: space-around;
        flex-wrap: wrap;
    }
    
    .showcase-stat {
        min-width: 120px;
        padding: 1.5rem 1rem;
    }
    
    .showcase-number {
        font-size: 2rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .faq-categories {
        gap: 0.5rem;
    }
    
    .category-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    /* Tracker Section Responsive - Enhanced for Mobile */
    .tracker-section {
        padding: var(--spacing-2xl) 0;
    }
    
    .tracker-container {
        padding: 0 var(--spacing-sm);
    }
    
    .tracker-title {
        font-size: var(--font-size-xl);
        flex-direction: column;
        gap: var(--spacing-sm);
        text-align: center;
        line-height: 1.2;
    }
    
    .tracker-description {
        font-size: var(--font-size-sm);
        padding: 0;
        text-align: center;
        line-height: 1.4;
    }
    
    .tracker-status-bar {
        flex-direction: column;
        gap: var(--spacing-sm);
        text-align: center;
        padding: var(--spacing-sm);
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(8px);
        border-radius: 12px;
        margin-bottom: var(--spacing-md);
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    }
    
    .tracker-controls {
        justify-content: center;
        flex-wrap: wrap;
        gap: var(--spacing-xs);
    }
    
    .tracker-btn {
        padding: 10px 12px;
        font-size: 0.8rem;
        min-width: auto;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 102, 204, 0.15);
    }
    
    .tracker-btn span {
        display: none;
    }
    
    .tracker-btn i {
        font-size: 1rem;
    }
    
    .tracker-embed-container {
        margin: 0 -5px;
        border-radius: 16px;
        box-shadow: 0 8px 32px rgba(0, 102, 204, 0.12);
        border: none;
        overflow: hidden;
    }
    
    .tracker-iframe {
        height: 65vh !important;
        min-height: 400px !important;
        max-height: 600px !important;
        border: none;
        border-radius: 0;
        background: #ffffff;
        width: 100%;
        display: block;
    }
    
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
        margin-top: var(--spacing-md);
    }
    
    .info-card {
        padding: var(--spacing-sm);
        border-radius: 12px;
        text-align: center;
    }
    
    .info-icon {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
        margin-bottom: var(--spacing-xs);
    }
    
    .info-card h4 {
        font-size: 0.9rem;
        margin-bottom: var(--spacing-xs);
    }
    
    .info-card p {
        font-size: 0.75rem;
        line-height: 1.3;
    }
    
    .tracker-footer {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
        padding: var(--spacing-md);
        margin: var(--spacing-sm) 0 0;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(8px);
    }
    
    .footer-stats {
        justify-content: space-around;
        flex-wrap: nowrap;
        gap: var(--spacing-sm);
        width: 100%;
    }
    
    .stat-mini {
        flex: 1;
        min-width: 0;
    }
    
    .stat-value {
        font-size: 1.2rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
    
    /* Map marker styles for mobile */
    .vessel-marker,
    .port-marker {
        transform: scale(0.8);
    }
}

/* ===================================================================
   LEAFLET MAP CUSTOM STYLES
   =================================================================== */

/* Vessel markers */
.vessel-marker {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.vessel-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.vessel-icon:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Port markers */
.port-marker {
    background: var(--primary-color) !important;
    border: 2px solid var(--bg-primary) !important;
    border-radius: 50% !important;
    color: var(--text-inverse) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
    transition: all 0.3s ease !important;
}

.port-marker:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Leaflet popup styles */
.leaflet-popup-content-wrapper {
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-light);
    padding: 0;
    overflow: hidden;
}

.leaflet-popup-content {
    margin: 0;
    padding: 0;
    font-family: var(--font-family-primary);
    color: var(--text-primary);
}

.leaflet-popup-tip {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-top: none;
    border-right: none;
}

.leaflet-popup-close-button {
    color: var(--text-secondary) !important;
    font-size: 18px !important;
    top: 8px !important;
    right: 8px !important;
    width: 24px !important;
    height: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.8) !important;
    transition: all 0.2s ease !important;
}

.leaflet-popup-close-button:hover {
    background: var(--primary-color) !important;
    color: var(--text-inverse) !important;
    transform: scale(1.1);
}

/* Vessel popup styles */
.vessel-popup {
    min-width: 280px;
    padding: var(--spacing-lg);
}

.vessel-popup h4 {
    color: var(--primary-color);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: var(--spacing-xs);
}

.vessel-details p {
    margin-bottom: var(--spacing-xs);
    font-size: var(--font-size-sm);
    line-height: var(--line-height-normal);
}

.vessel-details strong {
    color: var(--text-primary);
    font-weight: var(--font-weight-semibold);
}

.status-active {
    color: #22c55e;
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    font-size: var(--font-size-xs);
}

.status-restricted {
    color: #ef4444;
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    font-size: var(--font-size-xs);
}

.last-update {
    font-size: var(--font-size-xs) !important;
    color: var(--text-light) !important;
    font-style: italic;
    border-top: 1px solid var(--border-light);
    padding-top: var(--spacing-xs);
    margin-top: var(--spacing-sm) !important;
}

/* Port popup styles */
.port-popup {
    min-width: 250px;
    padding: var(--spacing-lg);
}

.port-popup h4 {
    color: var(--primary-color);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-md);
}

.port-popup ul {
    list-style: none;
    padding: 0;
    margin: var(--spacing-sm) 0 0 0;
}

.port-popup li {
    padding: var(--spacing-xs) 0;
    border-bottom: 1px solid var(--border-light);
    font-size: var(--font-size-sm);
}

.port-popup li:last-child {
    border-bottom: none;
}

.port-popup li::before {
    content: '▸';
    color: var(--primary-color);
    font-weight: bold;
    margin-right: var(--spacing-xs);
}

/* Route popup styles */
.route-popup {
    min-width: 200px;
    padding: var(--spacing-md);
}

.route-popup h4 {
    color: var(--primary-color);
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-sm);
}

/* Leaflet control styles */
.leaflet-control-zoom a {
    background: var(--bg-primary) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-light) !important;
    box-shadow: var(--shadow-sm) !important;
    transition: all 0.2s ease !important;
}

.leaflet-control-zoom a:hover {
    background: var(--primary-color) !important;
    color: var(--text-inverse) !important;
    border-color: var(--primary-color) !important;
}

.leaflet-control-attribution {
    background: rgba(255, 255, 255, 0.8) !important;
    font-size: var(--font-size-xs) !important;
    border-radius: var(--border-radius) !important;
    padding: var(--spacing-xs) var(--spacing-sm) !important;
}

/* Map loading state */
.leaflet-container {
    background: var(--bg-secondary) !important;
}
