/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    /* Account for fixed header */
}

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    /* Textured background emulation */
    background-image:
        radial-gradient(circle at 50% 0%, rgba(10, 25, 47, 0.8) 0%, var(--bg-base) 70%),
        url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><filter id="noiseFilter"><feTurbulence type="fractalNoise" baseFrequency="0.85" numOctaves="3" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noiseFilter)" opacity="0.04"/></svg>');
    background-attachment: fixed;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
    line-height: 1.2;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Accessibility Focus States */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.container-sm {
    max-width: 800px;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border: 1px solid var(--primary-dim);
    background: rgba(10, 25, 47, 0.5);
    color: var(--primary);
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: var(--transition);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.btn:hover {
    background: var(--primary-dim);
    color: var(--text-main);
    border-color: var(--primary);
    box-shadow: 0 0 20px var(--accent-glow);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

.btn.btn-transmitting {
    opacity: 0.8;
    cursor: wait;
}

.btn.btn-success {
    background: var(--risk-low) !important;
    border-color: var(--risk-low) !important;
    color: #ffffff !important;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4) !important;
}

.btn.btn-error {
    background: var(--risk-high) !important;
    border-color: var(--risk-high) !important;
    color: #ffffff !important;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.4) !important;
}

.section-padding {
    padding: var(--spacing-lg) 0;
}

.alt-bg {
    background-color: rgba(5, 10, 18, 0.5);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

/* Staggered Card Animation Delays */
.services .grid .card:nth-child(1) { transition-delay: 100ms; }
.services .grid .card:nth-child(2) { transition-delay: 200ms; }
.services .grid .card:nth-child(3) { transition-delay: 300ms; }
.services .grid .card:nth-child(4) { transition-delay: 400ms; }


/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    transition: var(--transition);
    padding: var(--spacing-sm) 0;
}

header.scrolled {
    background: rgba(3, 7, 18, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.5rem 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: 1px;
}

.logo picture {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    width: 40px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}


nav ul {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
}

nav a {
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 0.25rem 0;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

nav a:hover,
nav a.active {
    color: var(--primary);
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
    box-shadow: 0 0 10px var(--accent-glow);
}

/* Mobile Menu Button */
.menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
    background: transparent;
    border: none;
    padding: 6px;
}

.menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-main);
    transition: var(--transition);
}

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

.menu-btn.open span:nth-child(2) {
    opacity: 0;
}

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

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding-top: 80px;
}

.hero-content {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-logo {
    width: 270px;
    height: auto;
    margin-bottom: var(--spacing-md);
    filter: drop-shadow(0 0 25px rgba(138, 180, 248, 0.3));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--text-muted);
    margin-bottom: var(--spacing-md);
    max-width: 650px;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: bounce 2s infinite;
}

@media (max-height: 800px) {
    .scroll-indicator {
        display: none;
    }
}

.mouse {
    width: 24px;
    height: 38px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translate(-50%, 0);
    }

    40% {
        transform: translate(-50%, -10px);
    }

    60% {
        transform: translate(-50%, -5px);
    }
}

@keyframes scroll {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 12px);
        opacity: 0;
    }
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Services */
.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

.card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: var(--spacing-lg) var(--spacing-md);
    border-radius: var(--radius-md);
    transition: var(--transition);
    backdrop-filter: blur(12px);
    text-align: center;
}

.card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 10px 40px rgba(138, 180, 248, 0.1);
}

.card-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--spacing-sm);
    background: rgba(138, 180, 248, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: var(--transition);
}

.card:hover .card-icon {
    background: var(--primary);
    color: var(--bg-base);
    box-shadow: 0 0 20px var(--accent-glow);
}

.card h3 {
    margin-bottom: var(--spacing-sm);
    font-size: 1.4rem;
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* About Section */
.about-content {
    text-align: center;
}

.highlight-text {
    font-size: 1.5rem;
    color: var(--primary);
    font-family: var(--font-heading);
    margin: var(--spacing-sm) 0 var(--spacing-md);
    line-height: 1.3;
}

.about-content p:not(.highlight-text) {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-lg);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-sm);
    border-top: 1px solid var(--glass-border);
    padding-top: var(--spacing-md);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-num {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-main);
    background: linear-gradient(135deg, #fff 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}

/* Contact Section */
.form-container {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    backdrop-filter: blur(12px);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(138, 180, 248, 0.15);
    background: rgba(0, 0, 0, 0.5);
}

.form-status-alert {
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    display: none;
    text-align: center;
    line-height: 1.4;
    transition: var(--transition);
}

.form-status-alert.active {
    display: block;
}

.form-status-alert.success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid var(--risk-low);
    color: #6ee7b7;
}

.form-status-alert.error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid var(--risk-high);
    color: #fca5a5;
}

.form-status-alert.loading {
    background: rgba(138, 180, 248, 0.15);
    border: 1px solid var(--primary);
    color: var(--primary);
}

/* Footer */
footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--glass-border);
    padding-top: var(--spacing-lg);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: var(--spacing-xs);
    font-size: 0.9rem;
}

.footer-links h4 {
    margin-bottom: 1rem;
    color: var(--text-main);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--primary);
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.social-icons a {
    color: var(--text-muted);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icons a:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

.footer-bottom {
    background: #000;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #10b981;
    /* Green */
    border-radius: 50%;
    box-shadow: 0 0 10px #10b981;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.5;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }

    100% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
        line-height: 1.25;
    }

    .scroll-indicator {
        display: none;
    }

    .menu-btn {
        display: flex;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100vw;
        height: 100vh;
        background: rgba(3, 7, 18, 0.98);
        backdrop-filter: blur(20px);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: 0.4s ease-in-out;
    }

    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    nav a {
        font-size: 1.5rem;
    }

    .stats-grid,
    .grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .form-container {
        padding: var(--spacing-md);
    }
}

/* ==========================================================================
   Cybersecurity Enhancements Stylesheet Extensions
   ========================================================================== */

/* 1. Network Canvas Background */
#network-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* 2. Interactive Operations Security Audit Section */
.risk-calculator {
    position: relative;
    z-index: 1;
}

.risk-container {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    margin-top: var(--spacing-md);
    backdrop-filter: blur(12px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    align-items: center;
}

.risk-controls {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.risk-check-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.risk-check-item:hover {
    background: rgba(138, 180, 248, 0.03);
    border-color: rgba(138, 180, 248, 0.1);
    transform: translateX(5px);
}

/* Switch Styling */
.switch-container {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.switch-container input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: var(--text-muted);
    transition: .4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-radius: 50%;
}

.switch-container input:checked + .slider {
    background-color: rgba(16, 185, 129, 0.2);
    border-color: var(--risk-low);
}

.switch-container input:checked + .slider:before {
    transform: translateX(22px);
    background-color: var(--risk-low);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.risk-check-text h4 {
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.risk-check-text p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Gauge styling */
.risk-gauge-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    min-height: 100%;
}

.risk-svg-container {
    position: relative;
    width: 180px;
    height: 180px;
    margin-bottom: 1.5rem;
}

.risk-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.gauge-track {
    fill: none;
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 8;
}

.gauge-fill {
    fill: none;
    stroke: var(--risk-high);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 314;
    stroke-dashoffset: 78.5; /* Default 75% */
    transition: stroke-dashoffset 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), stroke 0.8s ease;
}

.risk-gauge-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

#risk-percent {
    font-size: 2.25rem;
    font-weight: 700;
    font-family: var(--font-heading);
    line-height: 1;
    color: var(--text-main);
    transition: color 0.5s ease;
}

#risk-tier {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--risk-high);
    font-weight: 600;
    margin-top: 2px;
    transition: color 0.5s ease;
}

.risk-summary h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.risk-summary p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    min-height: 55px;
    line-height: 1.5;
}

/* 3. Floating Terminal Console */
.cyber-terminal-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 380px;
    height: 400px;
    background: rgba(5, 10, 20, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--terminal-border);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 15px var(--terminal-glow);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.3s;
    font-family: var(--font-mono);
}

.cyber-terminal-widget.collapsed {
    height: 44px;
    transform: translateY(0);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.terminal-header {
    height: 44px;
    padding: 0 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--terminal-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.terminal-header-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--terminal-text);
    font-weight: bold;
    letter-spacing: 1px;
}

.terminal-dot {
    width: 8px;
    height: 8px;
    background: var(--terminal-text);
    border-radius: 50%;
    animation: terminal-blink 1s infinite alternate;
}

@keyframes terminal-blink {
    0% { opacity: 0.3; }
    100% { opacity: 1; }
}

.terminal-toggle-btn {
    background: none;
    border: none;
    color: var(--terminal-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.cyber-terminal-widget.collapsed .terminal-toggle-btn {
    transform: rotate(180deg);
}

.terminal-body {
    flex-grow: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--terminal-text);
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.4);
}

.terminal-welcome p {
    margin-bottom: 4px;
    line-height: 1.4;
}

.terminal-welcome .highlight {
    background: rgba(74, 222, 128, 0.15);
    padding: 0px 4px;
    border-radius: 2px;
}

.terminal-output {
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    scroll-behavior: smooth;
}

/* Custom scrollbar for terminal */
.terminal-body::-webkit-scrollbar,
.terminal-output::-webkit-scrollbar {
    width: 6px;
}
.terminal-body::-webkit-scrollbar-track,
.terminal-output::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}
.terminal-body::-webkit-scrollbar-thumb,
.terminal-output::-webkit-scrollbar-thumb {
    background: var(--terminal-border);
    border-radius: 3px;
}

.terminal-output-line {
    line-height: 1.4;
    white-space: pre-wrap;
    word-break: break-all;
}

.terminal-output-line.system {
    color: var(--text-muted);
}

.terminal-output-line.error {
    color: var(--risk-high);
}

.terminal-output-line.success {
    color: var(--risk-low);
}

.terminal-input-line {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-top: 1px solid rgba(74, 222, 128, 0.1);
    padding-top: 0.5rem;
}

.terminal-input-line .prompt {
    color: var(--primary);
    font-weight: bold;
    white-space: nowrap;
}

#terminal-input {
    flex-grow: 1;
    background: none;
    border: none;
    color: var(--terminal-text);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    outline: none;
}

/* 4. Capabilities Cards Holographic Cursor tracking borders */
.card {
    position: relative;
    overflow: hidden;
}

/* Add custom property backup */
.card {
    --mouse-x: 50%;
    --mouse-y: 50%;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(400px circle at var(--mouse-x) var(--mouse-y), rgba(138, 180, 248, 0.08), transparent 40%);
    z-index: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    opacity: 0;
}

.card:hover::before {
    opacity: 1;
}

.card > * {
    position: relative;
    z-index: 1;
}

/* 5. Secure Button Sweeps */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 30%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(138, 180, 248, 0.25) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    transition: 0.75s;
    pointer-events: none;
    animation: button-scan 6s infinite ease-in-out;
}

@keyframes button-scan {
    0% { left: -50%; }
    30% { left: 150%; }
    100% { left: 150%; }
}

.btn:hover::after {
    animation: none;
    left: 150%;
    transition: 0.5s;
}

/* 6. Footer Telemetry Metrics */
.footer-telemetry {
    background: var(--bg-dark);
    border-top: 1px solid var(--glass-border);
    padding: 1.5rem 0;
}

.telemetry-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    align-items: center;
}

.telemetry-item {
    display: flex;
    flex-direction: column;
    border-left: 1px solid rgba(138, 180, 248, 0.1);
    padding-left: 1rem;
}

.telemetry-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.telemetry-value {
    font-size: 1.15rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary);
}

.heartbeat-wrapper {
    display: flex;
    flex-direction: column;
    border-left: 1px solid rgba(138, 180, 248, 0.1);
    padding-left: 1rem;
}

.telemetry-wave {
    width: 100px;
    height: 20px;
    stroke: var(--accent);
    stroke-width: 1.5;
    fill: none;
}

.wave-path {
    stroke-dasharray: 200;
    stroke-dashoffset: 0;
    animation: signal-flow 4s linear infinite;
}

@keyframes signal-flow {
    0% { stroke-dashoffset: 200; }
    100% { stroke-dashoffset: 0; }
}

/* Responsive Overrides for additions */
@media (max-width: 768px) {
    .telemetry-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .cyber-terminal-widget {
        width: calc(100% - 32px);
        right: 16px;
        bottom: 16px;
    }
}

/* 7. Reduced Motion Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .hero-logo {
        animation: none !important;
    }

    .btn::after {
        display: none !important;
    }

    .wave-path {
        animation: none !important;
    }

    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    #network-canvas {
        opacity: 0.25;
    }
}