/* Variables */
:root {
    --primary: #E53935; /* Chilli Red */
    --secondary: #0F172A;
    --accent: #22C55E;
    --bg-dark: #020617;
    --text-light: #F8FAFC;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* Base Styles */
body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-body);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

/* Utilities */
.text-primary-custom { color: var(--primary) !important; }
.text-accent { color: var(--accent) !important; }
.bg-secondary-custom { background-color: var(--secondary) !important; }
.bg-dark-custom { background-color: var(--bg-dark) !important; }

/* Buttons */
.btn-primary-custom {
    background-color: var(--primary);
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    background-color: #c62828;
    color: #fff;
    transform: translateY(-2px);
}

.btn-outline-custom {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-custom:hover {
    background-color: var(--text-light);
    color: var(--bg-dark);
}

/* Navbar */
.navbar {
    background-color: rgba(2, 6, 23, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.navbar-brand {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--text-light) !important;
    letter-spacing: 1px;
}
.navbar-brand span {
    color: var(--primary);
}
.nav-link {
    color: var(--text-light) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}
.nav-link:hover {
    color: var(--primary) !important;
}

/* Hero Section */
.hero-section {
    padding: 120px 0 80px;
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    background: radial-gradient(circle at top right, rgba(229, 57, 53, 0.15), transparent 40%);
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}
.hero-title span {
    color: var(--primary);
}

/* Cards */
.cyber-card {
    background-color: var(--secondary);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    height: 100%;
}
.cyber-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(229, 57, 53, 0.1);
}
.cyber-card-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

/* Dashboard UI */
.dashboard-ui {
    background-color: #0B1120;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
}
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}
.dashboard-stat {
    background-color: var(--secondary);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}
.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

/* Footer */
.footer {
    background-color: #000;
    padding: 60px 0 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-title {
    color: #fff;
    font-weight: 600;
    margin-bottom: 1.5rem;
}
.footer-links {
    list-style: none;
    padding: 0;
}
.footer-links li {
    margin-bottom: 0.5rem;
}
.footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
}
.footer-links a:hover {
    color: var(--primary);
}
.social-icons a {
    color: #fff;
    font-size: 1.2rem;
    margin-right: 1rem;
    transition: color 0.3s;
}
.social-icons a:hover {
    color: var(--primary);
}

/* Glitch Effect */
.glitch {
    position: relative;
}
.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
}
.glitch::before {
    left: 2px;
    text-shadow: -1px 0 var(--primary);
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim 3s infinite linear alternate-reverse;
}
.glitch::after {
    left: -2px;
    text-shadow: -1px 0 var(--accent);
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(10px, 9999px, 85px, 0); }
    20% { clip: rect(65px, 9999px, 11px, 0); }
    40% { clip: rect(43px, 9999px, 99px, 0); }
    60% { clip: rect(89px, 9999px, 32px, 0); }
    80% { clip: rect(12px, 9999px, 55px, 0); }
    100% { clip: rect(74px, 9999px, 23px, 0); }
}
