/* --- THEME VARIABLES --- */
:root {
    --bg-color: #0d1117;          /* GitHub Dark Background */
    --card-bg: rgba(22, 27, 34, 0.7); /* Transparent card */
    --border-color: #30363d;      /* Subtle borders */
    --accent-blue: #58a6ff;       /* Links/Istio */
    --accent-green: #238636;      /* Success/Primary Action */
    --accent-purple: #8957e5;     /* AI/Featured */
    --text-primary: #c9d1d9;      /* Main text */
    --text-secondary: #8b949e;    /* Dates/Subtext */
    --font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

/* --- BASE STYLES --- */
body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-sans);
    margin: 0;
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
}

a { color: var(--accent-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- HEADER & BUTTONS --- */
header {
    text-align: left;
    margin-bottom: 60px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 30px;
}

h1 {
    font-size: 2.5rem;
    margin: 0 0 10px 0;
    color: #ffffff;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-top: 5px;
    margin-bottom: 25px;
    font-family: var(--font-mono);
}

.social-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s;
    background: rgba(255,255,255,0.05);
    text-decoration: none; /* No underline for buttons */
}

.btn:hover {
    border-color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    text-decoration: none;
}

/* Primary "Contact Me" Button */
.btn.primary {
    border-color: var(--accent-green);
    color: #3fb950; /* Brighter green */
}
.btn.primary:hover {
    background: rgba(35, 134, 54, 0.15);
    box-shadow: 0 0 10px rgba(35, 134, 54, 0.2);
}

/* --- SECTIONS & HEADINGS --- */
section { margin-bottom: 60px; }

h2 {
    font-size: 1.5rem;
    border-left: 4px solid var(--accent-blue);
    padding-left: 15px;
    margin-bottom: 30px;
    color: #ffffff;
}

/* --- CARDS (Glassmorphism Effect) --- */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    transition: transform 0.2s, border-color 0.2s;
    backdrop-filter: blur(10px); /* Blurs background behind card */
}

.card:hover {
    transform: translateY(-2px);
    border-color: var(--accent-blue);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 15px;
}

.card h3 { margin: 0; font-size: 1.2rem; color: var(--accent-blue); }
.date { font-size: 0.85rem; color: var(--text-secondary); font-family: var(--font-mono); }

/* --- ROLE BLOCKS (Within Cards) --- */
.role-block {
    margin-bottom: 20px;
    border-left: 2px solid var(--border-color);
    padding-left: 15px;
}

/* Removes padding/margin for the last item in a list */
.role-block.last { margin-bottom: 0; }

.role-title {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--text-primary); /* Standardized white/grey */
    display: block;
}

.role-small {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.date-sub {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    display: block;
    margin-bottom: 8px;
}

.job-details, .job-details-simple {
    margin-top: 5px;
    padding-left: 20px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.job-details li { margin-bottom: 8px; }
.job-details-simple li { margin-bottom: 12px; }

/* --- TAGS & BADGES --- */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }

.large-tags { font-size: 1.1em; }

.tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    background: rgba(255,255,255,0.02);
}

/* Color-coded tags */
.tag.ai { border-color: var(--accent-purple); color: var(--accent-purple); }
.tag.mesh { border-color: var(--accent-blue); color: var(--accent-blue); }

/* --- FEATURED PROJECT --- */
.featured-project {
    border-color: var(--accent-purple);
    background: linear-gradient(145deg, rgba(22, 27, 34, 0.9), rgba(30, 30, 40, 0.4));
}
.repo-link {
    color: var(--accent-purple);
    font-weight: bold;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

/* --- CERTIFICATIONS GRID --- */
.cert-grid {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}
.cert-card {
    flex: 1;
    min-width: 200px;
    text-align: center;
    padding: 15px;
}

/* --- CLICKABLE CERTIFICATION CARDS --- */

/* Remove default link styles so it looks like a card */
.clickable-card {
    text-decoration: none;
    display: block; /* Ensures the link takes up the whole box space */
    cursor: pointer;
}

/* Ensure colors stay correct even though it's a link */
.clickable-card h3 {
    color: var(--accent-blue); 
    transition: color 0.2s;
}

.clickable-card .role-small {
    color: var(--text-secondary);
}

/* Hover Effect: Make the text pop when hovering the card */
.clickable-card:hover h3 {
    text-decoration: underline;
    color: #ffffff; /* Brighten the title on hover */
}

/* --- FOOTER & STATUS --- */
footer {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 80px;
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
}

.status-container { margin-bottom: 15px; }

.system-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    background: rgba(35,134,54,0.1);
    border: 1px solid var(--accent-green);
    border-radius: 20px;
    font-size: 0.75rem;
    color: #3fb950;
    font-family: var(--font-mono);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #3fb950;
    border-radius: 50%;
    box-shadow: 0 0 6px #3fb950;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}
