:root {
    --primary: #00d4ff;
    --primary-dark: #0099cc;
    --accent: #6366f1;
    --accent-dark: #4f46e5;
    --success: #10b981;
    --warning: #f59e0b;
    --critical: #ff3d3d;
    --dark-bg: #0a0e27;
    --dark-bg-secondary: #0f1535;
    --dark-bg-tertiary: #1a1f45;
    --dark-card: #151b3f;
    --dark-border: #2a3158;
    --text-primary: #f0f4f8;
    --text-secondary: #b8c5d6;
    --text-tertiary: #8a95a8;
    --glass: rgba(15, 21, 53, 0.6);
    --glass-border: rgba(0, 212, 255, 0.1);
    --light-bg: #ffffff;
    --light-bg-secondary: #f9fafb;
    --light-text-primary: #111827;
}

@media (prefers-color-scheme: light) {
    :root {
        color-scheme: light;
    }
    body {
        background: var(--light-bg);
        color: var(--light-text-primary);
    }
}

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

html { 
    scroll-behavior: smooth; 
    overflow-x: hidden;
}

body {
    background: linear-gradient(135deg, #0a0a14, #16213e);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== HEADER ===== */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(20px);
    background: rgba(10, 10, 20, 0.95);
    border-bottom: 1px solid var(--glass-border);
    padding: 1.2rem 2rem;
    box-sizing: border-box;
    left: 0;
    right: 0;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.logo {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
}

.logo:hover img {
    transform: scale(1.05);
    opacity: 0.9;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    margin-left: 2rem;
    transition: color 0.3s;
}

nav a:hover { color: #ffffff; }

.header-nav {
    display: none;
    gap: 0;
    align-items: center;
}

.hamburger-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger-menu span {
    width: 24px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transform-origin: center;
    transition: all 0.3s ease-in-out;
}

.hamburger-menu.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.nav-service-section {
    position: relative;
}

/* Desktop Navigation (Large screens only) */
@media (min-width: 1100px) {
    .header-nav {
        display: flex !important;
        position: static !important;
        background: none !important;
        border: none !important;
        padding: 0 !important;
        backdrop-filter: none !important;
    }

    .hamburger-menu {
        display: none !important;
    }

    .nav-link {
        color: var(--text-secondary);
        text-decoration: none;
        font-size: 14px;
        padding: 0.6rem 1.2rem;
        transition: all 0.3s ease;
        position: relative;
    }

    .nav-link:not(:last-child)::after {
        content: '';
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 1px;
        height: 16px;
        background: var(--glass-border);
    }

    .nav-link:hover {
        color: #ffffff;
        background: rgba(0, 212, 255, 0.08);
        border-radius: 8px;
    }

    .nav-back {
        background: rgba(0, 212, 255, 0.1);
        border-radius: 8px;
        border: 1px solid rgba(0, 212, 255, 0.2);
        margin-left: 1rem;
        padding: 0.6rem 1rem;
    }

    .nav-back:hover {
        background: rgba(0, 212, 255, 0.15);
        border-color: rgba(0, 212, 255, 0.3);
    }
}

@media (max-width: 1099px) {
    header {
        padding: 0.75rem;
        width: 100%;
        position: relative;
        z-index: 1000;
    }

    .header-content {
        max-width: none;
        padding: 0;
        position: relative;
    }

    .logo {
        font-size: 14px;
        flex-shrink: 0;
    }

    .header-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #0a0e27;
        flex-direction: column;
        padding: 0;
        z-index: 998;
    }

    .header-nav.active {
        display: flex !important;
    }

    .nav-link {
        padding: 12px 16px;
        border: none;
        width: 100%;
        text-align: left;
        display: block;
        color: #999;
        font-weight: 400;
        font-size: 14px;
        text-decoration: none;
    }

    .nav-link:hover {
        background: #111;
    }

    .nav-link:not(:last-child)::after {
        display: none !important;
    }

    .nav-back {
        padding: 12px 16px;
        border: none;
        width: 100%;
        text-align: left;
        display: block;
        color: #999;
        font-weight: 400;
        font-size: 14px;
        text-decoration: none;
        background: none;
    }

    .nav-back:hover {
        background: #111;
    }
}

.content-wrapper {
    margin-top: 80px;
    position: relative;
    z-index: 2;
}

@media (max-width: 1099px) {
    .content-wrapper {
        margin-top: 0;
    }
}

/* ===== HERO SECTION - REDESIGNED ===== */
.hero-section {
    padding: 4rem 2rem 3rem;
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
    position: relative;
    overflow: hidden;
    contain: layout paint;
    min-height: 450px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -5%;
    width: 900px;
    height: 900px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.12), transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
    contain: paint;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1), transparent 70%);
    border-radius: 50%;
    filter: blur(50px);
    z-index: 0;
    contain: paint;
}

.hero-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Split Hero Layout */
.hero-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-left {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.hero-title-with-icon {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.hero-service-favicon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    object-fit: contain;
    flex-shrink: 0;
}

.hero-header h1 {
    font-size: 3.8rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1px;
    margin: 0;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.6;
    max-width: 500px;
}

/* Status Badge Row */
.hero-status-badges {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-badge {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.08), rgba(99, 102, 241, 0.05));
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 10px;
    flex: 1;
    min-height: 100px;
}

.hero-badge-label {
    font-size: 0.7rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.hero-badge-value {
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 700;
}

.hero-badge-subtext {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.2rem;
}

/* Report Button in Hero */
.hero-report-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.1rem 2.4rem;
    background: linear-gradient(135deg, #e53935, #c62828);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    margin-top: 1rem;
    box-shadow: 0 8px 24px rgba(229, 57, 53, 0.35);
    position: relative;
    overflow: hidden;
}

.hero-report-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    transition: left 0.3s ease;
}

.hero-report-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(229, 57, 53, 0.45);
}

.hero-report-button:hover::before {
    left: 100%;
}

.hero-report-button:active {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(229, 57, 53, 0.35);
}

.report-text {
    font-size: 1rem;
    letter-spacing: 0.3px;
}

/* Right Side - Impact Information */
.hero-right {
    display: flex;
    flex-direction: column;
}

.impact-info-widget {
    background: linear-gradient(135deg, rgba(10, 14, 39, 0.4), rgba(15, 21, 53, 0.3));
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 14px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.impact-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}

.impact-title {
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.3rem;
}

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

.impact-severity-badge {
    background: linear-gradient(135deg, #ff3d3d, #ff6b6b);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

/* Compact Timeline */
.incident-description-box {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    padding: 1.3rem;
    background: rgba(0, 212, 255, 0.05);
    border-left: 4px solid var(--primary);
    border-radius: 8px;
    border: 1px solid rgba(0, 212, 255, 0.12);
}

.description-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.description-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-primary);
    font-weight: 500;
}

/* Quick Stats */
.quick-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.stat-box {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.9rem;
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.stat-box:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.2);
}

.stat-arrow {
    color: var(--primary);
    font-size: 1rem;
    opacity: 0.5;
    transition: all 0.3s ease;
    margin-left: auto;
}

.stat-box:hover .stat-arrow {
    opacity: 1;
    transform: translateX(2px);
}

.stat-icon {
    min-width: 1.5rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
}

.stat-icon svg {
    width: 24px;
    height: 24px;
    color: inherit;
    flex-shrink: 0;
}

.stat-info {
    flex: 1;
}

.stat-label {
    font-size: 0.65rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-weight: 600;
    margin-bottom: 0.1rem;
}

.stat-value {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Impact Items Section */
.impact-items-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

.impact-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.8rem;
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-direction: column;
    text-align: center;
    min-height: 100px;
    justify-content: center;
    position: relative;
}

.impact-item:hover {
    background: rgba(0, 212, 255, 0.12);
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 212, 255, 0.15);
}

.impact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: auto;
    color: var(--text-primary);
}

.impact-icon svg {
    width: 24px;
    height: 24px;
    color: inherit;
    flex-shrink: 0;
}

.impact-content {
    flex: 1;
    width: 100%;
}

.impact-label {
    font-size: 0.65rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.impact-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
}

.impact-arrow {
    color: var(--primary);
    font-size: 1rem;
    opacity: 0.5;
    transition: all 0.3s ease;
    position: absolute;
    top: 8px;
    right: 8px;
}

.impact-item:hover .impact-arrow {
    opacity: 1;
    transform: translateY(2px);
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1); 
        opacity: 1;
    }
    50% { 
        transform: scale(1.3); 
        opacity: 0.6;
    }
}

@keyframes shimmer {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-header {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 640px) {
    .hero-section { 
        padding: 2.5rem 1.5rem 2rem; 
    }
    .hero-header h1 { 
        font-size: 2.2rem;
    }
    .hero-header {
        gap: 2rem;
    }
    .hero-status-badges {
        flex-direction: column;
    }
    .hero-badge {
        flex: unset;
    }
    .impact-info-widget {
        padding: 1.5rem;
    }
}
