/* ============================================
   Guardian-X Website Styles
   Real-Time Emergency Management Platform
   ============================================ */

/* ============================================
   CSS Variables - Guardian-X Color Palette
   ============================================ */
:root {
    /* Guardian-X Orange */
    --guardianx-orange: #FFAA00;
    --guardianx-orange-bright: #FFB520;
    --guardianx-orange-dark: #E69500;
    --guardianx-orange-glow: rgba(255, 170, 0, 0.5);

    /* Dark Theme */
    --dark-bg: #0a0e1a;
    --dark-bg-alt: #12172a;
    --dark-card: #1a2034;

    /* Text */
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #6b7280;

    /* Status Colors */
    --success-green: #10b981;
    --alert-red: #ef4444;
    --warning-yellow: #f59e0b;
    --info-blue: #3b82f6;

    /* Borders & Shadows */
    --border-subtle: rgba(255, 170, 0, 0.2);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.25);
    --shadow-orange: 0 0 30px rgba(255, 170, 0, 0.3);
    --shadow-orange-strong: 0 0 40px rgba(255, 170, 0, 0.6);
}

/* ============================================
   Global Styles
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    letter-spacing: 0.5px;
}

code, pre {
    font-family: 'JetBrains Mono', monospace;
}

/* ============================================
   Utility Classes
   ============================================ */
.text-guardianx-orange {
    color: var(--guardianx-orange) !important;
}

.bg-guardianx-dark {
    background-color: var(--dark-bg) !important;
}

.bg-dark-alt {
    background-color: var(--dark-bg-alt);
}

.bg-gradient-orange {
    background: linear-gradient(135deg, var(--guardianx-orange) 0%, var(--guardianx-orange-dark) 100%);
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    padding: 1rem 0;
    background-color: var(--dark-bg) !important;
    border-bottom: 1px solid var(--border-subtle);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Rajdhani', sans-serif;
}

.logo-text {
    color: var(--guardianx-orange);
    letter-spacing: 2px;
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--guardianx-orange) !important;
}

.btn-guardianx-orange {
    background: linear-gradient(135deg, var(--guardianx-orange-bright) 0%, var(--guardianx-orange-dark) 100%);
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 170, 0, 0.3);
}

.btn-guardianx-orange:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 170, 0, 0.5);
    color: white;
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-bg-alt) 100%);
    position: relative;
    overflow: hidden;
    padding-top: 80px; /* Account for fixed navbar */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: radial-gradient(circle at 50% 50%, rgba(255, 170, 0, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-image {
    top: 20px;
    filter: drop-shadow(0 10px 30px rgba(255, 170, 0, 0.3));
    animation: floatImage 6s ease-in-out infinite;
}

@keyframes floatImage {
    0%, 100% { transform: translateY(30px); }
    50% { transform: translateY(80px); }
}

.stat-card {
    padding: 1.5rem;
    background: rgba(255, 170, 0, 0.1);
    border: 2px solid var(--border-subtle);
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: var(--guardianx-orange);
    box-shadow: var(--shadow-orange);
    transform: translateY(-5px);
}

/* ============================================
   Problem Cards
   ============================================ */
.problem-card {
    background: var(--dark-card);
    padding: 2rem;
    border-radius: 16px;
    border: 2px solid var(--border-subtle);
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
}

.problem-card:hover {
    border-color: var(--alert-red);
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.2);
    transform: translateY(-5px);
}

.problem-icon {
    font-size: 3rem;
    color: var(--alert-red);
    margin-bottom: 1rem;
}

.problem-card h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.alert-stat-box {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(239, 68, 68, 0.05) 100%);
    border: 3px solid var(--alert-red);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 0 40px rgba(239, 68, 68, 0.3);
}

/* ============================================
   Metric Cards
   ============================================ */
.metric-card {
    background: var(--dark-card);
    padding: 2.5rem;
    border-radius: 16px;
    border: 3px solid var(--border-subtle);
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.metric-card-primary {
    background: linear-gradient(135deg, rgba(255, 170, 0, 0.15) 0%, rgba(255, 170, 0, 0.05) 100%);
    border-color: var(--guardianx-orange);
}

.metric-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-orange-strong);
}

.metric-number {
    font-size: 4rem;
    font-weight: 900;
    color: var(--guardianx-orange);
    font-family: 'Rajdhani', sans-serif;
    text-shadow: 0 0 30px var(--guardianx-orange-glow);
    margin-bottom: 1rem;
}

.metric-card h4 {
    color: var(--guardianx-orange);
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
}

.metric-card p {
    color: var(--text-secondary);
    margin: 0;
}

/* ============================================
   Pillar Cards
   ============================================ */
.pillar-card {
    background: var(--dark-card);
    padding: 2.5rem;
    border-radius: 16px;
    border: 2px solid var(--border-subtle);
    border-left: 5px solid var(--guardianx-orange);
    height: 100%;
    transition: all 0.3s ease;
}

.pillar-card:hover {
    border-color: var(--guardianx-orange);
    box-shadow: var(--shadow-orange);
    transform: translateY(-5px);
}

.pillar-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--guardianx-orange-bright) 0%, var(--guardianx-orange-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 30px var(--guardianx-orange-glow);
}

.pillar-icon i {
    font-size: 2rem;
    color: white;
}

.pillar-card h4 {
    color: var(--guardianx-orange);
    margin-bottom: 1rem;
}

/* ============================================
   Emergency Grid
   ============================================ */
.emergency-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.emergency-card {
    background: white;
    padding: 2rem 1rem;
    border-radius: 12px;
    text-align: center;
    border: 3px solid var(--border-subtle);
    transition: all 0.3s ease;
    cursor: pointer;
}

.emergency-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(255, 170, 0, 0.3);
}

.emergency-card.critical {
    border-color: var(--alert-red);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, white 50%);
}

.emergency-card.high {
    border-color: var(--warning-yellow);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, white 50%);
}

.emergency-card.medium {
    border-color: var(--guardianx-orange);
    background: linear-gradient(135deg, rgba(255, 170, 0, 0.1) 0%, white 50%);
}

.emergency-card.low {
    border-color: var(--success-green);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, white 50%);
}

.emergency-card.custom {
    border-color: var(--info-blue);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, white 50%);
}

.emergency-icon {
    width: 60px;
    height: auto;
    margin-bottom: 1rem;
}

.emergency-emoji {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.emergency-card h5 {
    color: #333;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

/* ============================================
   Feature Cards
   ============================================ */
.feature-card {
    background: var(--dark-card);
    padding: 2rem;
    border-radius: 16px;
    border: 2px solid var(--border-subtle);
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--guardianx-orange);
    box-shadow: var(--shadow-orange);
    transform: translateY(-5px);
}

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(255, 170, 0, 0.15);
    border: 2px solid var(--guardianx-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.feature-icon i {
    font-size: 2rem;
    color: var(--guardianx-orange);
}

.feature-card h5 {
    color: var(--guardianx-orange);
    margin-bottom: 1rem;
}

/* ============================================
   Platform Grid
   ============================================ */
.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.platform-card {
    background: var(--dark-card);
    padding: 2rem 1rem;
    border-radius: 12px;
    border: 2px solid var(--border-subtle);
    text-align: center;
    transition: all 0.3s ease;
}

.platform-card:hover {
    border-color: var(--guardianx-orange);
    box-shadow: var(--shadow-orange);
    transform: translateY(-5px);
}

.platform-icon {
    font-size: 3.5rem;
    color: var(--guardianx-orange);
    margin-bottom: 1rem;
    display: block;
}

.platform-card h5 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.platform-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* ============================================
   Buttons
   ============================================ */
.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
}

/* ============================================
   Forms
   ============================================ */
.form-control,
.form-select {
    background-color: var(--dark-card);
    border: 2px solid var(--border-subtle);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    border-radius: 8px;
}

.form-control:focus,
.form-select:focus {
    background-color: var(--dark-card);
    border-color: var(--guardianx-orange);
    box-shadow: 0 0 0 0.2rem rgba(255, 170, 0, 0.25);
    color: var(--text-primary);
}

.form-label {
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

textarea.form-control {
    min-height: 150px;
}

/* ============================================
   Cards
   ============================================ */
.card {
    background-color: var(--dark-card);
    border: 2px solid var(--border-subtle);
    border-radius: 16px;
}

.card-header {
    background-color: rgba(255, 170, 0, 0.1);
    border-bottom: 2px solid var(--border-subtle);
    color: var(--guardianx-orange);
    font-weight: 600;
}

.card-body {
    color: var(--text-primary);
}

/* ============================================
   Alerts
   ============================================ */
.alert {
    border-radius: 12px;
    border-width: 2px;
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.1);
    border-color: var(--success-green);
    color: var(--success-green);
}

.alert-danger {
    background-color: rgba(239, 68, 68, 0.1);
    border-color: var(--alert-red);
    color: var(--alert-red);
}

.alert-warning {
    background-color: rgba(245, 158, 11, 0.1);
    border-color: var(--warning-yellow);
    color: var(--warning-yellow);
}

.alert-info {
    background-color: rgba(59, 130, 246, 0.1);
    border-color: var(--info-blue);
    color: var(--info-blue);
}

/* ============================================
   Footer
   ============================================ */
footer {
    margin-top: 5rem;
    border-top: 1px solid var(--border-subtle);
}

footer a:hover {
    color: var(--guardianx-orange) !important;
    text-decoration: none !important;
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 170, 0, 0.7);
    }
    50% {
        box-shadow: 0 0 0 20px rgba(255, 170, 0, 0);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 768px) {
    .hero-section {
        min-height: auto !important;
        padding: 3rem 0 !important;
    }

    .display-3 {
        font-size: 2.5rem;
    }

    .display-4 {
        font-size: 2rem;
    }

    .display-5 {
        font-size: 1.75rem;
    }

    .emergency-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .platform-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .metric-number {
        font-size: 3rem;
    }
}

@media (max-width: 576px) {
    .stat-card h3 {
        font-size: 1.5rem;
    }

    .emergency-grid {
        grid-template-columns: 1fr;
    }

    .platform-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .navbar,
    footer {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }
}

/* ============================================
   Scrollbar Styling (Webkit browsers)
   ============================================ */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--guardianx-orange);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--guardianx-orange-bright);
}
