/* ==========================================================================
   CSS Variables & Core Theme
   ========================================================================== */
:root {
    --bg-dark: #070a0f;
    --card-bg: rgba(10, 15, 26, 0.88);
    --card-border: rgba(56, 189, 248, 0.45);
    --accent-color: #38bdf8;
    --accent-glow: rgba(56, 189, 248, 0.4);
    --text-primary: #ffffff;
    --text-secondary: #cbd5e1;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', sans-serif;
    overflow-x: hidden;
}

/* Background Server Layer */
.server-bg-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: url('https://images.unsplash.com/photo-1558494949-ef010cbdcc31?q=80&w=2000&auto=format&fit=crop') no-repeat center center/cover;
    z-index: -3;
    filter: brightness(0.55) contrast(1.25) saturate(1.3);
    transform: scale(1.02);
    animation: serverAmbientMotion 12s infinite alternate ease-in-out;
}

/* LED Layer */
.led-overlay-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    pointer-events: none;
}

.led {
    opacity: 0.3;
    transition: opacity 0.1s ease-in-out;
}

.led.green {
    fill: #22c55e;
    filter: drop-shadow(0 0 6px #22c55e);
}

.led.amber {
    fill: #f59e0b;
    filter: drop-shadow(0 0 6px #f59e0b);
}

.led.cyan {
    fill: #38bdf8;
    filter: drop-shadow(0 0 6px #38bdf8);
}

.blink-fast {
    animation: blinkAnimation 0.4s infinite alternate ease-in-out;
}

.blink-mid {
    animation: blinkAnimation 0.8s infinite alternate ease-in-out;
}

.blink-slow {
    animation: blinkAnimation 1.5s infinite alternate ease-in-out;
}

@keyframes blinkAnimation {
    0% { opacity: 0.15; }
    50% { opacity: 1; }
    100% { opacity: 0.25; }
}

.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: 
        radial-gradient(circle at 50% 20%, rgba(56, 189, 248, 0.12) 0%, transparent 65%),
        radial-gradient(circle at center, rgba(7, 10, 15, 0.45) 0%, rgba(7, 10, 15, 0.85) 90%);
    z-index: -1;
    pointer-events: none;
}

@keyframes serverAmbientMotion {
    0% { transform: scale(1) translateY(0px); }
    100% { transform: scale(1.04) translateY(-6px); }
}

/* Glass Panels */
.glass-panel {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.7);
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.glass-panel:hover {
    transform: translateY(-6px) scale(1.01);
    border-color: var(--accent-color);
    box-shadow: 0 14px 45px var(--accent-glow);
}

/* Navbar */
.navbar {
    background: rgba(7, 10, 15, 0.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(56, 189, 248, 0.25);
    padding: 0.8rem 0;
}

.brand-icon {
    font-size: 1.3rem;
}

.brand-text {
    color: #ffffff;
    letter-spacing: 1px;
}

.brand-accent {
    color: var(--accent-color);
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--accent-color) !important;
}

.btn-glow {
    background: var(--accent-color);
    color: #000 !important;
    font-weight: 700 !important;
    border-radius: 8px;
    padding: 6px 18px !important;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
}

.btn-glow:hover {
    background: #0284c7;
    color: #fff !important;
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.7);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    padding-top: 120px;
    padding-bottom: 60px;
}

.gradient-text {
    background: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: var(--accent-color);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.875rem;
    font-weight: 600;
}

.pulse-dot {
    width: 9px;
    height: 9px;
    background-color: #22c55e;
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 10px #22c55e;
    animation: pulseDot 1.5s infinite alternate;
}

@keyframes pulseDot {
    0% { transform: scale(0.9); box-shadow: 0 0 5px #22c55e; }
    100% { transform: scale(1.3); box-shadow: 0 0 14px #22c55e; }
}

.text-description {
    color: var(--text-secondary);
}

.text-accent {
    color: var(--accent-color);
}

/* Buttons */
.btn-primary {
    background: var(--accent-color);
    border: none;
    color: #000000;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(56, 189, 248, 0.35);
}

.btn-primary:hover {
    background: #0284c7;
    color: #ffffff;
}

.btn-outline-accent {
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
}

.btn-outline-accent:hover {
    background: var(--accent-color);
    color: #000;
}

/* Sections */
.section-padding {
    padding: 80px 0;
}

.contact-section-padding {
    padding-bottom: 120px; /* Provides space above footer & widget */
}

.tracking-wider {
    letter-spacing: 2px;
}

/* Custom Skill & Lists */
.skill-icon {
    font-size: 2rem;
    color: var(--accent-color);
}

.skill-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.skill-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.skill-list li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.custom-list {
    padding-left: 1.2rem;
}

.custom-list li {
    margin-bottom: 0.75rem;
}

.cert-icon {
    font-size: 2.5rem;
}

/* Table */
.custom-table th {
    color: var(--accent-color);
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.border-dashed {
    border-style: dashed !important;
}

/* High Contrast Shell & Widget Styling */
.infra-hud-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 400px;
    max-width: calc(100vw - 30px);
    background: rgba(10, 15, 26, 0.98);
    border: 1px solid #38bdf8;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9);
    z-index: 1000;
}

.hud-pulse {
    width: 8px;
    height: 8px;
    background-color: #22c55e;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px #22c55e;
}

.hud-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
}

.bg-success-soft {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

.bg-accent-soft {
    background: rgba(56, 189, 248, 0.25);
    color: #38bdf8;
}

.btn-hud-toggle {
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
}

.btn-hud-toggle:hover {
    color: var(--accent-color);
}

.hud-log {
    max-height: 220px;
    overflow-y: auto;
    font-size: 0.825rem;
}

.hud-input {
    background: transparent;
    border: none;
    color: #ffffff !important;
    outline: none;
    font-size: 0.85rem;
}

.hud-input::placeholder {
    color: #64748b;
}

/* High-Contrast Colors for Terminal Output Text */
.text-cyan {
    color: #38bdf8 !important;
}

.text-bright-green {
    color: #4ade80 !important;
}

.text-amber {
    color: #fbbf24 !important;
}

.text-output-bright {
    color: #f8fafc !important;
    font-weight: 500;
}