/* Modern Design Tokens & Theme Overrides */
:root {
    --primary-accent: #0d6efd;
    --secondary-accent: #00f2fe;
    --card-glow-shadow: rgba(13, 110, 253, 0.15);
    --terminal-bg: #0f172a;
    --transition-speed: 0.3s;
}

[data-bs-theme="light"] {
    --primary-accent: #0b5ed7;
    --secondary-accent: #0288d1;
    --card-glow-shadow: rgba(0, 0, 0, 0.05);
    --terminal-bg: #1e293b;
}

/*  Fix for scroll offset when clicking navbar links */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 85px; /* Offset match for sticky header */
}

/*  Scrollspy requirement: Position relative on scroll container */
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
    overflow-x: hidden;
    position: relative; 
}

/* Nav & Brand Styling */
.navbar {
    backdrop-filter: blur(10px);
    background-color: rgba(var(--bs-body-bg-rgb), 0.85);
    border-bottom: 1px solid rgba(var(--bs-emphasis-color-rgb), 0.08);
}

.nav-link {
    font-weight: 500;
    transition: color 0.2s ease;
}

/* Highlight active links accurately */
.nav-link.active {
    color: var(--primary-accent) !important;
    border-bottom: 2px solid var(--primary-accent);
}

/* Hero / Avatar Adjustments */
.hero-image-container {
    position: relative;
    max-width: 420px;
    margin: 0 auto;
}

.hero-image-bg {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-accent), var(--secondary-accent));
    border-radius: 24px;
    z-index: 1;
    opacity: 0.2;
    filter: blur(8px);
}

.hero-img {
    position: relative;
    z-index: 2;
    border-radius: 24px;
    border: 4px solid rgba(var(--bs-emphasis-color-rgb), 0.08);
    transition: transform var(--transition-speed) cubic-bezier(0.175, 0.885, 0.32, 1.275);
    object-fit: cover;
}

.hero-img:hover {
    transform: scale(1.03);
}

/* Section Spacing & Dividers */
section {
    padding: 80px 0;
    border-bottom: 1px solid rgba(var(--bs-emphasis-color-rgb), 0.05);
}

/* Cards and Elements Styling */
.custom-card {
    background-color: rgba(var(--bs-emphasis-color-rgb), 0.02);
    border: 1px solid rgba(var(--bs-emphasis-color-rgb), 0.08);
    border-radius: 16px;
    transition: all var(--transition-speed) cubic-bezier(0.165, 0.84, 0.44, 1);
}

.custom-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-accent);
    box-shadow: 0 12px 24px var(--card-glow-shadow);
}

/* Badges Styling */
.skill-badge {
    font-size: 0.95rem;
    padding: 8px 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 50px;
    transition: all 0.2s ease;
    background-color: rgba(var(--bs-emphasis-color-rgb), 0.04);
    border: 1px solid rgba(var(--bs-emphasis-color-rgb), 0.1);
    color: var(--bs-heading-color);
}

.skill-badge:hover {
    transform: translateY(-2px);
    background-color: var(--primary-accent);
    color: #fff;
    border-color: var(--primary-accent);
}

.skill-badge svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Terminal Widget for Cybersecurity Proof */
.terminal-box {
    background-color: var(--terminal-bg);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    cursor: text;
}

/* Fix for Terminal Text Contrast in Light Mode:
    Isolate terminal output text from global Bootstrap light-theme color overrides */
.terminal-box .text-muted {
    color: #94a3b8 !important; /* Steady visible slate-gray */
}
.terminal-box .text-info {
    color: #38bdf8 !important; /* Vibrant high-contrast sky blue */
}
.terminal-box .text-warning {
    color: #f59e0b !important; /* Steady cyber amber */
}
.terminal-box .text-danger {
    color: #f87171 !important; /* Secure readable red */
}
.terminal-box .text-success {
    color: #34d399 !important; /* Emerald security green */
}
.terminal-box .text-white {
    color: #ffffff !important; /* Ensure input commands remain true white */
}

.terminal-header {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 10px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 6px;
    display: inline-block;
}

.terminal-body {
    font-family: 'Courier New', Courier, monospace;
    color: #10b981; /* Emerald green primary text */
    padding: 20px;
    font-size: 0.9rem;
    min-height: 280px;
    max-height: 400px;
    overflow-y: auto;
}

.terminal-input-line {
    display: flex;
    align-items: center;
    gap: 8px;
}

.terminal-input {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    width: 100%;
    font-family: inherit;
}

/* Certifications & Badges */
.cert-svg-container {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(var(--bs-emphasis-color-rgb), 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border: 2px solid rgba(var(--bs-emphasis-color-rgb), 0.1);
    color: var(--primary-accent);
    transition: all var(--transition-speed) ease;
}

.custom-card:hover .cert-svg-container {
    background: var(--primary-accent);
    color: #fff;
    border-color: var(--primary-accent);
}

/* Theme Switcher Toggle */
.theme-switcher-btn {
    background: none;
    border: none;
    padding: 8px;
    color: var(--bs-heading-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.theme-switcher-btn:hover {
    background-color: rgba(var(--bs-emphasis-color-rgb), 0.08);
}

/* Interactive Timeline styles for About Section */
.timeline-card {
    border-left: 4px solid var(--primary-accent);
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

#contact{
    padding-top: 200px;
    padding-bottom: 150px;
}