:root {
    --bg: #0b0f1a;
    --card-bg: #161b2a;
    --text-main: #f1f5f9;
    --text-dim: #94a3b8;
    --accent: #10b981;
    --aws: #ff9900;
    --redis: #d82c20;
    --border: #1e293b;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text-main);
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
}

.container {
    max-width: 1000px;
    width: 100%;
}

/* The Trace Dashboard */
.debug-panel {
    background: #000;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 30px;
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    position: sticky;
    top: 10px;
    z-index: 100;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.status-dot {
    height: 8px;
    width: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 10px;
}

.loading {
    background: #eab308;
    animation: blink 1s infinite;
}

.ready {
    background: var(--accent);
}

@keyframes blink {
    50% {
        opacity: 0.3;
    }
}

.trace-line {
    margin: 5px 0;
    color: #64748b;
}

.trace-line span {
    color: var(--text-main);
}

.json-btn {
    background: var(--border);
    color: var(--text-main);
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Fira Code';
    font-size: 0.7rem;
    float: right;
}

/* Layout Grid */
.cv-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    opacity: 0.1;
    transition: opacity 0.5s ease;
}

@media (max-width: 800px) {
    .cv-grid {
        grid-template-columns: 1fr;
    }
}

/* Main Content Styling */
header {
    border-bottom: 1px solid var(--border);
    padding-bottom: 20px;
    margin-bottom: 30px;
}

h1 {
    font-size: 2.5rem;
    margin: 0;
}

.contact-bar {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 10px;
    color: var(--text-dim);
    font-size: 0.85rem;
}

.section-title {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent);
    font-size: 0.75rem;
    margin-top: 40px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 5px;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 15px;
    position: relative;
}

.card-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.6rem;
    color: #334155;
    font-family: 'Fira Code';
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.date {
    color: var(--text-dim);
    font-size: 0.8rem;
    font-family: 'Fira Code';
}

ul {
    padding-left: 18px;
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* Sidebar */
.sidebar-item {
    margin-bottom: 25px;
}

.skill-pill {
    background: #1e293b;
    padding: 5px 10px;
    border-radius: 4px;
    display: inline-block;
    margin: 3px;
    font-size: 0.8rem;
    border: 1px solid var(--border);
}

#raw-json {
    display: none;
    background: #000;
    color: #10b981;
    padding: 15px;
    border-radius: 8px;
    font-family: 'Fira Code';
    font-size: 0.75rem;
    overflow-x: auto;
    margin-top: 20px;
    border: 1px solid var(--accent);
}

.powered-by-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 15px;
}

.icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #1e293b;
    border: 1px solid var(--border);
    padding: 12px 5px;
    border-radius: 8px;
    transition: transform 0.2s ease, background 0.2s ease;
    cursor: default;
    gap: 8px;
}

.icon-item:hover {
    transform: translateY(-3px);
    background: #2a3750;
    border-color: var(--accent);
}

.icon-item svg {
    width: 28px;
    height: 28px;
}

.icon-item span {
    font-size: 0.65rem;
    color: var(--text-dim);
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.download-link {
    display: inline-block;
    color: var(--accent);
    font-weight: bold;
    text-decoration: none;
    padding: 12px 20px;
    border: 1px solid var(--accent);
    border-radius: 8px;
    background: rgba(16, 185, 129, 0.1);
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
}

.download-link:hover {
    background: var(--accent);
    color: var(--bg);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}
