/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: hsl(220, 50%, 8%);
    color: hsl(0, 0%, 98%);
    line-height: 1.6;
    min-height: 100vh;
}

/* CSS Variables - Cybersecurity Theme */
:root {
    /* Colors */
    --background: hsl(220, 50%, 8%);
    --foreground: hsl(0, 0%, 98%);
    --card: hsl(220, 45%, 12%);
    --card-foreground: hsl(0, 0%, 98%);
    --primary: hsl(180, 100%, 50%);
    --primary-foreground: hsl(220, 50%, 8%);
    --secondary: hsl(220, 40%, 18%);
    --secondary-foreground: hsl(0, 0%, 98%);
    --muted: hsl(220, 40%, 15%);
    --muted-foreground: hsl(0, 0%, 70%);
    --accent: hsl(180, 100%, 50%);
    --accent-foreground: hsl(220, 50%, 8%);
    --destructive: hsl(0, 100%, 60%);
    --destructive-foreground: hsl(0, 0%, 98%);
    --success: hsl(120, 60%, 50%);
    --success-foreground: hsl(0, 0%, 98%);
    --warning: hsl(45, 100%, 60%);
    --warning-foreground: hsl(0, 0%, 98%);
    --border: hsl(220, 40%, 20%);
    --input: hsl(220, 40%, 15%);
    --ring: hsl(180, 100%, 50%);

    /* Effects */
    --cyber-glow: 0 0 20px hsla(180, 100%, 50%, 0.5);
    --cyber-glow-strong: 0 0 30px hsla(180, 100%, 50%, 0.8);
    --gradient-cyber: linear-gradient(135deg, hsla(180, 100%, 50%, 0.2), hsla(180, 100%, 50%, 0.1));
    --gradient-danger: linear-gradient(135deg, hsla(0, 100%, 60%, 0.2), hsla(0, 100%, 60%, 0.1));
    --gradient-success: linear-gradient(135deg, hsla(120, 60%, 50%, 0.2), hsla(120, 60%, 50%, 0.1));

    /* Spacing */
    --radius: 0.75rem;
    --container-padding: 2rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

.text-primary { color: var(--primary); }
.text-destructive { color: var(--destructive); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-muted { color: var(--muted-foreground); }

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.main-content {
    flex: 1;
    min-height: calc(100vh - 120px);
}

/* Navigation */
.navbar {
    background: var(--card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(8px);
    background-color: hsla(220, 45%, 12%, 0.95);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.25rem;
}

.nav-logo i {
    font-size: 2rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    padding: 0.5rem 1rem;
    color: var(--foreground);
    text-decoration: none;
    border-radius: var(--radius);
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
    background-color: var(--primary);
    color: var(--primary-foreground);
    box-shadow: var(--cyber-glow);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--foreground);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: var(--radius);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--primary-foreground);
}

.btn-primary:hover {
    background-color: hsla(180, 100%, 50%, 0.8);
}

.btn-outline {
    background-color: transparent;
    color: var(--foreground);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    background-color: var(--secondary);
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
}

/* Cards */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 10px 25px -5px hsla(0, 0%, 0%, 0.3);
}

.card-cyber {
    background: var(--gradient-cyber);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 10px 25px -5px hsla(180, 100%, 50%, 0.1);
    transition: all 0.3s ease;
}

.card-cyber:hover {
    transform: scale(1.05);
    box-shadow: var(--cyber-glow-strong);
}

.card-danger {
    background: var(--gradient-danger);
    border: 1px solid hsla(0, 100%, 60%, 0.2);
    border-radius: var(--radius);
    box-shadow: 0 10px 25px -5px hsla(0, 100%, 60%, 0.1);
}

.card-success {
    background: var(--gradient-success);
    border: 1px solid hsla(120, 60%, 50%, 0.2);
    border-radius: var(--radius);
    box-shadow: 0 10px 25px -5px hsla(120, 60%, 50%, 0.1);
}

/* Effects */
.glow-primary {
    box-shadow: var(--cyber-glow);
}

.glow-strong {
    box-shadow: var(--cyber-glow-strong);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    background-image: url('../src/assets/hero-cybersecurity.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.2;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom right, var(--background), hsla(220, 50%, 8%, 0.9), hsla(180, 100%, 50%, 0.1));
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 64rem;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.hero-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.hero-icon i {
    font-size: 5rem;
    color: var(--primary);
}

.hero-title {
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: clamp(1.5rem, 4vw, 3rem);
    color: var(--muted-foreground);
    margin-bottom: 1rem;
}

.hero-tagline {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--accent);
    margin-bottom: 2rem;
    font-weight: 500;
}

/* Features Section */
.features-section {
    padding: 5rem 0;
    background-color: var(--background);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.25rem;
    color: var(--muted-foreground);
    max-width: 32rem;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    cursor: pointer;
}

.feature-content {
    padding: 2rem;
    text-align: center;
}

.feature-icon {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
}

.feature-icon i {
    font-size: 3rem;
    color: var(--primary);
}

.feature-emoji {
    position: absolute;
    top: -0.5rem;
    right: -0.5rem;
    font-size: 1.5rem;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-description {
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

/* Footer */
.footer {
    background: var(--card);
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem 0;
}

.footer-text {
    text-align: center;
}

.footer-subtitle {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-top: 0.25rem;
}

/* Page Layout */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.page-header {
    text-align: center;
    margin-bottom: 2rem;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-description {
    font-size: 1.25rem;
    color: var(--muted-foreground);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--card);
        flex-direction: column;
        padding: 1rem;
        border-top: 1px solid var(--border);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    :root {
        --container-padding: 1rem;
    }
}

/* Utilities */
.hidden { display: none; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.p-4 { padding: 1rem; }
.p-8 { padding: 2rem; }

/* Animation Classes */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.animate-pulse { animation: pulse 2s ease-in-out infinite; }

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-spin { animation: spin 1s linear infinite; }

/* Additional Components */
.card-header { padding: 1.5rem 1.5rem 0; }
.card-content { padding: 1.5rem; }
.card-title { font-size: 1.125rem; font-weight: 600; display: flex; align-items: center; gap: 0.5rem; }

/* Grid Layouts */
.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

/* Tables */
.table-container { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 0.75rem; text-align: left; border-bottom: 1px solid var(--border); }
th { font-weight: 600; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.25rem 0.5rem; border-radius: 9999px; font-size: 0.75rem; font-weight: 500; }
.badge-success { background: var(--success); color: var(--success-foreground); }
.badge-destructive { background: var(--destructive); color: var(--destructive-foreground); }
.badge-warning { background: var(--warning); color: var(--warning-foreground); }
.badge-primary { background: var(--primary); color: var(--primary-foreground); }
.badge-secondary { background: var(--secondary); color: var(--secondary-foreground); }
.badge-high { background: var(--destructive); color: var(--destructive-foreground); }
.badge-medium { background: var(--warning); color: var(--warning-foreground); }
.badge-low { background: var(--success); color: var(--success-foreground); }

/* Upload Areas */
.upload-area, .demo-area { border: 2px dashed var(--border); border-radius: var(--radius); padding: 2rem; text-align: center; transition: all 0.3s ease; }
.upload-area:hover { border-color: var(--primary); }
.upload-icon, .demo-icon { font-size: 3rem; color: var(--muted-foreground); margin-bottom: 1rem; }
.upload-text, .demo-text { color: var(--muted-foreground); margin-bottom: 1rem; }

/* Spinner */
.spinner { width: 3rem; height: 3rem; border: 4px solid var(--primary); border-top-color: transparent; border-radius: 50%; margin: 0 auto; }

/* Timeline */
.timeline { position: relative; }
.timeline::before { content: ''; position: absolute; left: 2rem; top: 0; bottom: 0; width: 2px; background: var(--border); }
.timeline-item { position: relative; padding-left: 4rem; margin-bottom: 2rem; }
.timeline-marker { position: absolute; left: 0; top: 0.5rem; width: 4rem; height: 4rem; border-radius: 50%; border: 4px solid var(--background); display: flex; align-items: center; justify-content: center; }
.timeline-item.completed .timeline-marker { background: var(--success); }
.timeline-item.in-progress .timeline-marker { background: var(--warning); }
.timeline-item.pending .timeline-marker { background: var(--muted); }
.timeline-header { display: flex; justify-content: space-between; align-items: start; margin-bottom: 0.5rem; }
.timeline-title { font-size: 1.125rem; font-weight: 600; }
.timeline-badges { display: flex; gap: 0.5rem; }
.timeline-description { color: var(--muted-foreground); margin-bottom: 0.75rem; }
.timeline-time { display: flex; align-items: center; gap: 0.25rem; font-size: 0.875rem; color: var(--muted-foreground); }

/* Progress Bar */
.progress-bar { width: 100%; height: 0.5rem; background: var(--muted); border-radius: 9999px; margin: 1rem 0 0.5rem; }
.progress-fill { height: 100%; background: var(--warning); border-radius: 9999px; transition: width 0.3s ease; }
.progress-text { font-size: 0.75rem; color: var(--warning); }

/* Stats */
.stat-number { font-size: 2rem; font-weight: 700; }
.stat-label { font-size: 0.875rem; color: var(--muted-foreground); }

/* Network Canvas */
.network-container { position: relative; }
.network-legend { position: absolute; top: 1rem; left: 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.legend-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; }
.legend-color { width: 1rem; height: 1rem; border-radius: 50%; }
.legend-color.safe { background: #22c55e; }
.legend-color.suspicious { background: #ef4444; }

/* Responsive */
@media (max-width: 768px) {
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .timeline-header { flex-direction: column; align-items: start; gap: 0.5rem; }
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.animate-pulse { animation: pulse 2s ease-in-out infinite; }

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-spin { animation: spin 1s linear infinite; }