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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f6f9;
    background-image: url('../image/bg-world-map.svg');
    background-repeat: no-repeat;
    background-position: center top;
    background-size: 100% auto;
    background-attachment: fixed;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85); 
    z-index: -1;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

.text-center { text-align: center; }
.hidden { display: none !important; }
.loading-content { text-align: center; }
.loading-gif {
    width: 50px;
    height: 50px;
}
.loading-text {
    color: #003366;
    margin-top: 10px;
    font-weight: bold;
}
.logo-mark { color: #cc0000; }

/* Header */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

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

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

.nav-link {
    color: #555;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #003366;
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #003366;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: #fff;
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        display: none;
        text-align: center;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-link {
        padding: 10px 0;
        display: block;
        width: 100%;
    }

    .btn-header {
        margin: 10px 0;
    }
}


/* Hero Section */
.hero {
    background: linear-gradient(135deg, #003366 0%, #004080 100%);
    color: #fff;
    padding: 160px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

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

.hero-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.hero-orb-primary {
    top: -50%;
    left: -20%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 60%);
    animation: rotate 30s linear infinite;
}

.hero-orb-secondary {
    right: -20%;
    bottom: -50%;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 60%);
    animation: rotate-rev 40s linear infinite;
}

.hero-badge-wrap {
    margin-bottom: 20px;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.1);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.hero-trust {
    margin-top: 20px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.hero-trust-item {
    margin-right: 15px;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes rotate-rev {
    from {
        transform: rotate(360deg);
    }

    to {
        transform: rotate(0deg);
    }
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 40px;
    opacity: 0.9;
}

.btn-main {
    display: inline-block;
    background-color: #d14d4d;
    color: #fff;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 6px rgba(209, 77, 77, 0.3);
}

.btn-main:hover {
    background-color: #b83b3b;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(184, 59, 59, 0.4);
}

/* Header Connect Button */
.btn-header {
    padding: 8px 20px;
    font-size: 0.9rem;
    margin-left: 10px;
}

/* Stats Section */
.stats-section {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 40px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    margin-top: -50px;
    position: relative;
    z-index: 10;
    border-radius: 8px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: #d14d4d; /* Matching soft red */
    font-weight: 800;
    margin-bottom: 5px;
}

.stat-item p {
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* Features Section */
.features {
    padding: 80px 0;
    background-color: transparent;
}

.case-lookup-section {
    padding-top: 40px;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: #003366;
    margin-bottom: 60px;
}

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

.feature-card {
    padding: 30px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    text-align: center;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.feature-icon {
    font-size: 2.5rem;
    color: #003366;
    margin-bottom: 20px;
}

.feature-title {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: #333;
}

/* Process Timeline */
.timeline-section {
    background-color: rgba(244, 246, 249, 0.6);
    backdrop-filter: blur(5px);
    padding: 80px 0;
}

.timeline-steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline-steps::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 50px;
    right: 50px;
    height: 2px;
    background: #ddd;
    z-index: 0;
}

.step-card {
    position: relative;
    z-index: 1;
    text-align: center;
    background: transparent;
    flex: 1;
    padding: 0 15px;
}

.step-number {
    width: 60px;
    height: 60px;
    background: #003366;
    color: #fff;
    border-radius: 50%;
    line-height: 60px;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 20px;
    border: 4px solid #fff;
    box-shadow: 0 0 0 2px #ddd;
}

.step-title {
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}

/* Success Stories Marquee */
.marquee-section {
    padding: 60px 0;
    background: #001a33;
    color: #fff;
    overflow: hidden;
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    padding: 20px 0;
}

.marquee-track {
    display: inline-block;
    animation: marquee 25s linear infinite;
}

/* Pause animation on hover or active (touch) */
.marquee-track:hover,
.marquee-track:active {
    animation-play-state: paused;
}

.marquee-card {
    display: inline-block;
    width: 300px;
    background: rgba(255,255,255,0.1);
    margin: 0 15px;
    padding: 20px;
    border-radius: 8px;
    white-space: normal;
    vertical-align: top;
    border: 1px solid rgba(255,255,255,0.1);
}

.marquee-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.marquee-icon {
    width: 32px;
    height: 20px;
    margin-right: 15px;
    object-fit: cover;
    border-radius: 3px;
    border: 1px solid rgba(255,255,255,0.2);
}

.marquee-title {
    font-weight: bold;
    color: #8e8ff3;
}

.marquee-text {
    font-size: 0.9rem;
    opacity: 0.8;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media(max-width: 768px) {
    .timeline-steps {
        flex-direction: column;
        align-items: center;
    }
    .timeline-steps::before {
        display: none;
    }
    .step-card {
        margin-bottom: 30px;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .stats-section {
        margin-top: 0;
    }
}


/* Footer */
.footer {
    background-color: #000e1c;
    color: #ccc;
    padding: 40px 0;
    text-align: center;
}

.footer p {
    font-size: 0.9rem;
}

.footer-note {
    margin-top: 10px;
    font-size: 0.8rem;
    color: #777;
}

/* Components required by JS */
#loading {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

/* Case Lookup Section */
.case-lookup-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.case-title {
    margin-bottom: 30px;
}

.case-intro {
    margin-bottom: 30px;
    color: #666;
}

.lookup-form {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.lookup-btn {
    min-width: 150px;
}

.form-control {
    padding: 12px 20px;
    border: 2px solid #eee;
    border-radius: 6px;
    font-size: 1rem;
    flex: 1;
    min-width: 200px;
    outline: none;
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: #d14d4d;
}

.case-result {
    border-top: 1px solid #eee;
    padding-top: 30px;
    margin-top: 30px;
    animation: slideDown 0.5s ease-out;
}

.case-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
    text-align: left;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
}

.case-row {
    display: flex;
    flex-direction: column;
}

.case-row .label {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 5px;
}

.case-row .value {
    font-weight: 600;
    color: #333;
}

.case-row .value.amount {
    color: #28a745;
    font-size: 1.2rem;
}

.case-row .status-active {
    color: #007bff;
    display: flex;
    align-items: center;
    gap: 5px;
}

.case-row .status-active::before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    background: #007bff;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.progress-container {
    margin-bottom: 30px;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-weight: 600;
    color: #555;
}

.progress-bar-bg {
    height: 12px;
    background: #eee;
    border-radius: 6px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #d14d4d, #ff6b6b);
    width: 0;
    border-radius: 6px;
    transition: width 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.claim-form {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #eee;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.claim-title {
    margin-bottom: 15px;
    color: #003366;
}

.claim-note {
    font-size: 0.8rem;
    color: #999;
    margin-top: 10px;
}

.process-intro {
    max-width: 700px;
    margin: 0 auto 50px;
    color: #666;
}

.marquee-title-main {
    color: #fff;
    margin-bottom: 30px;
}

.info-section {
    background-color: #f0f4f8;
}

.info-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
}

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

.info-title {
    text-align: left;
    margin-bottom: 30px;
}

.info-lead {
    margin-bottom: 20px;
}

.info-list {
    margin-top: 20px;
    list-style: disc;
    padding-left: 20px;
}

.info-card {
    display: inline-block;
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.info-card-icon {
    font-size: 4rem;
    color: #003366;
}

.info-card-title {
    margin-top: 20px;
}

.info-card-copy {
    margin-top: 10px;
    color: #666;
}

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

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(0, 123, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 123, 255, 0); }
}

@media(max-width: 600px) {
    .case-details {
        grid-template-columns: 1fr;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }
}
