/* --- General Configuration & Variables --- */

:root {
    /* Infrastructure Palette: Blue (Primary/Structure) & Green (Success/Highlight) */
    --bs-primary: #007bff; /* Primary Blue */
    --bs-success: #28a745; /* Muted default success (Keeping for bootstrap components) */
    --bs-success-bright: #00ff00; /* New: A brighter, vibrant green for status LEDs */
    --bs-body-bg: #f8f9fa; /* Light background for paper look */
    --technical-border: rgba(0, 123, 255, 0.2); /* Light blue border color */
    --technical-shadow: rgba(0, 0, 0, 0.05);
}

/* Apply a technical, monospaced font family */
body {
    font-family: 'Consolas', 'Courier New', monospace; 
    background-color: var(--bs-body-bg);
}

.border-none {
    border: none !important;
    box-shadow: none !important;
}

/* --- Resume Container Styling --- */

.technical-bg {
    background-color: #ffffff;
    /* Use a very subtle box-shadow for a clean floating effect */
    box-shadow: 0 0.5rem 1rem var(--technical-shadow);
}

/* Main Section Headings */
.h4.border-bottom {
    border-color: var(--technical-border) !important;
}

/* --- Card and Component Styling --- */

/* Sidebar Cards (Card A) - Clean, subtle border */
.technical-card-a {
    border: 1px solid var(--technical-border);
    transition: all 0.2s ease-in-out;
}

/* Content/Experience Cards (Card A) - Shared Style */
.technical-card-a:hover {
    border-color: var(--bs-primary);
}

/* Skill Badges (Making them small and distinct) - Retained for general use */
.badge {
    padding: 0.4em 0.8em;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* 1. Base Container and Item Styles */
.tagcloud {
    font-family: 'Consolas', 'Courier New', monospace;
    width: 100%;
    height: 100%;
    color: #1a1a1a; /* Base dark color */
}

.skill-cloud-item {
    padding: 0 8px; /* Increased horizontal padding (was 5px) */
    margin: 2px;    /* Add a little margin between tags */
    font-weight: 500;
    cursor: default;
    transition: color 0.2s;
    font-size: 1.05rem !important;
    color: #333 !important; 
}

/* 2. Color Cycling for Readability (Using nth-child selector) */

/* Color 1: Primary Blue */
.skill-cloud-item:nth-child(3n + 1) {
    color: var(--bs-primary) !important; /* Your strong primary blue */
}

/* Color 2: Success Green (A dark, readable green) */
.skill-cloud-item:nth-child(3n + 2) {
    color: #008000 !important; /* A dark forest green */
}

/* Color 3: Dark Muted Red/Maroon (For high contrast) */
.skill-cloud-item:nth-child(3n + 3) {
    color: #8b0000 !important; /* Dark maroon red */
}

/* 3. Hover Effect */
.skill-cloud-item:hover {
    color: #000000 !important; /* Changed to pure black on hover */
}


/* --- Professional Experience Timeline Styling --- */

/* 1. The Vertical Line (Make it more distinct/vibrant) */
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 8px; 
    width: 3px; /* Slightly thicker line */
    background-color: var(--bs-primary); /* Use Primary Blue for the line */
    opacity: 0.6; /* Slightly less transparent */
}

/* 2. The Marker (The "System Dot" on the timeline) */
.timeline-marker {
    position: absolute;
    top: 5px; 
    left: 0;
    width: 17px; /* Slightly larger marker */
    height: 17px;
    border-radius: 50%;
    z-index: 2; 
    border: 3px solid #ffffff; 
    /* Use the bright status green for the fill color, making it pop */
    background-color: var(--bs-success-bright) !important;
    box-shadow: 0 0 0 2px var(--bs-primary); /* Primary Blue ring around the dot */
}

/* 3. Timeline Content Cards (technical-card-a) */
.technical-card-a {
    /* Keep the border, but make it use the primary blue for definition */
    border: 1px solid var(--bs-primary); 
    /* Remove the shadow for a flatter, cleaner interface look */
    box-shadow: none !important; 
    /* Set the background to a very subtle off-white for contrast */
    background-color: #fcfcfc;
    transition: all 0.2s ease-in-out;
}

/* 4. Hover Effect (Highlight the currently reviewed job) */
.technical-card-a:hover {
    border-color: var(--bs-success-bright); /* Bright green border on hover */
    /* Add a very subtle drop shadow back on hover */
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1) !important; 
    background-color: #ffffff;
}

/* ======================================================= */
/* --- PURE CSS STAGGERED ANIMATION (FadeInUp) --- */
/* ======================================================= */

/* 1. Define the actual animation keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 20px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* 2. Set the base animation state (starts hidden, uses keyframes) */
.animate__fadeInUp {
    opacity: 0;
    animation-fill-mode: both;
    animation-duration: 0.6s; /* How long the fade takes */
    animation-name: fadeInUp; /* Link to the keyframes above */
}

/* 3. Apply specific staggered delays (assigned using technical-delay-X classes in HTML) */

.technical-delay-1 {
    animation-delay: 0.2s;
}

.technical-delay-2 {
    animation-delay: 0.7s;
}

.technical-delay-3 {
    animation-delay: 1.2s;
}

.technical-delay-4 {
    animation-delay: 1.7s;
}


/* ======================================================= */
/* --- CERTIFICATIONS (Logo Styling) --- */
/* ======================================================= */

.technical-logo {
    border: 1px solid transparent;
    border-radius: 5px;
    padding: 5px;
    transition: all 0.2s ease-in-out;
}

.technical-logo:hover {
    opacity: 1 !important; /* Fully opaque on hover */
    border-color: var(--bs-success); /* Green border on hover */
    transform: scale(1.05);
}

/* ======================================================= */
/* --- CORE TECHNOLOGIES (Status Indicators Fix) --- */
/* ======================================================= */

.skill-list .skill-status i {
    font-size: 0.65rem; 
    margin-right: 0.3rem !important; /* Adjusted spacing for airier look */
    vertical-align: middle; 
    /* Use the bright color override for the filled dots */
    color: var(--bs-success-bright) !important; 
}

/* Ensure the hollow circle uses the primary blue/default color for the border */
.skill-list .skill-status .bi-circle {
    color: var(--bs-primary) !important; /* Use Primary Blue for the hollow border */
    opacity: 0.6; /* Slight transparency for the unfilled status */
    font-size: 0.62rem; /* Kept slightly smaller for visual consistency */
}

/* Target the filled dot explicitly to ensure bright green color */
.skill-list .skill-status .bi-circle-fill {
    color: var(--bs-success-bright) !important;
}