@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Color Palette */
    --primary: #4F46E5;
    --primary-hover: #4338CA;
    --secondary: #ec4899;
    --ink: #17211f;
    --navy: #263c46;
    --bg-light: #F9FAFB;
    --bg-dark: #111827;
    --surface-light: #FFFFFF;
    --surface-dark: #1F2937;
    
    --text-light: #1F2937;
    --text-muted-light: #6B7280;
    --text-dark: #F9FAFB;
    --text-muted-dark: #D1D5DB;
    
    --border-light: #E5E7EB;
    --border-dark: #374151;

    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;
    --info: #3B82F6;

    /* Glassmorphism */
    --glass-bg-light: rgba(255, 255, 255, 0.7);
    --glass-bg-dark: rgba(31, 41, 55, 0.7);
    --glass-border-light: rgba(255, 255, 255, 0.3);
    --glass-border-dark: rgba(255, 255, 255, 0.1);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    /* Transitions */
    --transition-fast: 0.15s ease-in-out;
    --transition-normal: 0.3s ease-in-out;

    /* Current Theme (Default Light) */
    --bg: var(--bg-light);
    --surface: var(--surface-light);
    --text: var(--text-light);
    --text-muted: var(--text-muted-light);
    --border: var(--border-light);
    --glass-bg: var(--glass-bg-light);
    --glass-border: var(--glass-border-light);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: var(--bg-dark);
        --surface: var(--surface-dark);
        --text: var(--text-dark);
        --text-muted: var(--text-muted-dark);
        --border: var(--border-dark);
        --glass-bg: var(--glass-bg-dark);
        --glass-border: var(--glass-border-dark);
    }
}

.home-page {
    --primary: #0f766e;
    --primary-hover: #115e59;
    --secondary: #d97706;
    --bg: #f6f5f0;
    --surface: #ffffff;
    --text: #17211f;
    --text-muted: #66736f;
    --border: #e3ded4;
    --shadow-lg: 0 18px 44px rgba(23, 33, 31, 0.12);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: color var(--transition-fast);
}
a:hover {
    color: var(--primary-hover);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}
h1 { font-size: 3rem; background: linear-gradient(135deg, var(--primary), var(--secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.75rem; }

.home-page h1 {
    font-size: clamp(2.7rem, 6vw, 5.9rem);
    letter-spacing: 0;
    background: none;
    -webkit-text-fill-color: currentColor;
}
.home-page h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    letter-spacing: 0;
}
.home-page h3 {
    font-size: 1.2rem;
    letter-spacing: 0;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.home-page .container {
    max-width: 1180px;
    padding: 0 24px;
}
.text-center { text-align: center; }
.mt-4 { margin-top: 1.5rem; }
.mb-4 { margin-bottom: 1.5rem; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    transform: translateY(0);
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.btn:active {
    transform: translateY(0);
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: white;
}
.btn-secondary {
    background-color: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
}

.home-page .btn {
    min-height: 48px;
    padding: 0.85rem 1.25rem;
    font-size: 0.95rem;
    border-radius: 6px;
}
.home-page .btn:hover {
    transform: translateY(-1px);
}
.home-page .btn-primary {
    background: var(--primary);
}
.home-page .btn-secondary {
    color: var(--ink);
}

/* Glassmorphism Classes */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}
.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-muted);
}
.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    border: 1px solid var(--border);
    border-radius: 8px;
    background-color: var(--surface);
    color: var(--text);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

.home-page .glass-panel {
    border-radius: 8px;
}
.home-page .form-control {
    border-radius: 6px;
}
.home-page .form-control:focus {
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.16);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: padding var(--transition-normal);
}
.navbar.scrolled {
    padding: 0.5rem 0;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.5px;
}
.nav-logo span {
    color: var(--primary);
}
.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}
.nav-link {
    color: var(--text-muted);
    font-weight: 500;
    transition: color var(--transition-fast);
}
.nav-link:hover {
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--text);
    cursor: pointer;
    padding: 0.5rem;
}


.home-page .navbar {
    padding: 1.15rem 0;
}
.home-page .navbar.scrolled {
    padding: 0.75rem 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(38, 60, 70, 0.1);
}
.home-page .nav-logo {
    font-size: 1.2rem;
    letter-spacing: 0;
}
.home-page .nav-links {
    gap: 1.5rem;
}
.home-page .nav-link {
    color: rgba(23, 33, 31, 0.72);
}

/* Hero Section */
.hero {
    min-height: 760px;
    display: flex;
    align-items: center;
    position: relative;
    padding: 116px 0 76px;
    background:
        linear-gradient(90deg, rgba(246, 245, 240, 0.96) 0%, rgba(246, 245, 240, 0.86) 48%, rgba(246, 245, 240, 0.2) 100%),
        url('https://images.unsplash.com/photo-1580674285054-bed31e145f59?auto=format&fit=crop&w=1800&q=80') center right / cover;
}
.hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: rgba(38, 60, 70, 0.12);
}
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 430px;
    align-items: end;
    gap: 4rem;
}
.hero-content {
    max-width: 720px;
    z-index: 10;
}
.eyebrow {
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    margin-bottom: 0.95rem;
    text-transform: uppercase;
}
.hero-subtitle {
    max-width: 650px;
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(23, 33, 31, 0.76);
    margin: 1.3rem 0 2rem;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

/* Tracking Widget */
.tracking-widget {
    position: relative;
    z-index: 10;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(38, 60, 70, 0.12);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
}
.tracking-input-group {
    display: flex;
    gap: 0.65rem;
}
.tracking-input-group input {
    flex-grow: 1;
    min-width: 0;
    font-size: 1rem;
    padding: 0.9rem 1rem;
}
.tracking-input-group button {
    white-space: nowrap;
    padding: 0.9rem 1.15rem;
    font-size: 0.95rem;
}
.tracking-help {
    margin-top: 0.85rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.stats-band {
    background: var(--ink);
    color: #fff;
    padding: 1.6rem 0;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}
.stats-grid div {
    border-left: 1px solid rgba(255, 255, 255, 0.16);
    padding-left: 1.25rem;
}
.stats-grid strong {
    display: block;
    color: #f3c96b;
    font-size: clamp(1.45rem, 3vw, 2rem);
    line-height: 1.15;
}
.stats-grid span {
    display: block;
    margin-top: 0.25rem;
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.92rem;
}

.service-section,
.about-section {
    padding: 6rem 0;
}
.section-grid {
    display: grid;
    grid-template-columns: 0.82fr 1.18fr;
    gap: 4rem;
    align-items: start;
}
.section-grid h2,
.about-copy h2 {
    color: var(--ink);
}
.service-list {
    display: grid;
    gap: 1rem;
}
.service-card {
    display: grid;
    grid-template-columns: 48px 1fr;
    column-gap: 1.1rem;
    padding: 1.45rem 0;
    border-top: 1px solid rgba(38, 60, 70, 0.14);
}
.service-card span {
    color: var(--secondary);
    font-weight: 800;
}
.service-card h3 {
    margin-bottom: 0.45rem;
    color: var(--ink);
}
.service-card p {
    color: var(--text-muted);
    max-width: 560px;
}
.about-section {
    background: #fff;
}
.about-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 4rem;
    align-items: center;
}
.about-image {
    min-height: 470px;
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(23, 33, 31, 0), rgba(23, 33, 31, 0.32)),
        url('https://images.unsplash.com/photo-1578575437130-527eed3abbec?auto=format&fit=crop&w=1200&q=80') center / cover;
}
.about-copy p {
    color: var(--text-muted);
    margin-top: 1rem;
    font-size: 1.02rem;
}

/* Timeline */
.timeline {
    margin-top: 3rem;
    position: relative;
    padding-left: 2rem;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--border);
}
.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.35rem;
    top: 0.25rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background-color: var(--primary);
    border: 3px solid var(--surface);
    box-shadow: 0 0 0 2px var(--primary);
}
.timeline-date {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 600;
}
.timeline-content {
    background-color: var(--surface);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    margin-top: 0.5rem;
}
.timeline-status {
    font-weight: 700;
    color: var(--text);
    font-size: 1.1rem;
}
.timeline-location {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

/* Footer */
footer {
    border-top: 1px solid var(--border);
    padding: 2.5rem 0;
    margin-top: 5rem;
    text-align: center;
    color: var(--text-muted);
}

.home-page .timeline-content {
    border-radius: 8px;
}
.home-page footer {
    margin-top: 0;
}

/* Responsive */
@media (max-width: 980px) {
    .hero {
        min-height: auto;
        background:
            linear-gradient(180deg, rgba(246, 245, 240, 0.96) 0%, rgba(246, 245, 240, 0.9) 60%, rgba(246, 245, 240, 0.72) 100%),
            url('https://images.unsplash.com/photo-1580674285054-bed31e145f59?auto=format&fit=crop&w=1200&q=80') center / cover;
    }
    .hero-grid,
    .section-grid,
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .tracking-widget {
        max-width: 620px;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    .home-page h1 { font-size: 2.55rem; }
    .home-page h2 { font-size: 2rem; }
    .home-page .container { padding: 0 18px; }
    .hero { padding: 96px 0 52px; }
    .tracking-input-group { flex-direction: column; }
    .tracking-input-group button { width: 100%; }
    .stats-grid { grid-template-columns: 1fr; }
    .service-section,
    .about-section { padding: 4rem 0; }
    .about-image { min-height: 320px; }
    
    .mobile-menu-btn { display: block; }
    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        background: var(--surface);
        padding: 1rem 0;
        border-top: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
        gap: 0;
    }
    .navbar.mobile-open .nav-links { display: flex; }
    .nav-link {
        padding: 1rem 2rem;
        width: 100%;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
    .nav-link:last-child { border-bottom: none; }
    
    .home-page .navbar.mobile-open .nav-links {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(18px);
    }
    .home-page .mobile-menu-btn {
        color: var(--hp-ink);
    }
}
