:root {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent: #38bdf8;
    --accent-gradient: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
    --card-border: rgba(255, 255, 255, 0.05);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-main);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- HERO SECTION --- */
header {
    padding: 8rem 0 4rem 0;
    background: radial-gradient(circle at top right, rgba(56, 189, 248, 0.08), transparent 40%);
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    margin-bottom: 0.5rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.hero-tagline {
    font-size: 1.15rem;
    max-width: 700px;
    color: var(--text-main);
    margin-bottom: 2rem;
}

.hero-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--accent-gradient);
    color: var(--bg-primary);
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-secondary {
    color: var(--accent);
    border: 1px solid rgba(56, 189, 248, 0.2);
    background: rgba(56, 189, 248, 0.02);
}

.btn-secondary:hover {
    background: rgba(56, 189, 248, 0.08);
    border-color: var(--accent);
}

/* --- METRICS PANEL --- */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.metric-card {
    background: var(--bg-secondary);
    border: 1px solid var(--card-border);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.metric-number {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.25rem;
}

.metric-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --- SECTIONS --- */
section {
    padding: 5rem 0;
    border-top: 1px solid var(--card-border);
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 40px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

/* --- CORE PILLARS --- */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.pillar-card {
    background: var(--bg-secondary);
    border: 1px solid var(--card-border);
    border-top: 3px solid var(--accent);
    padding: 2rem;
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.pillar-card:hover {
    transform: translateY(-4px);
}

.pillar-icon {
    font-size: 1.75rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.pillar-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.pillar-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

/* --- EXPERIENCE TIMELINE --- */
.timeline {
    position: relative;
    margin-left: 1rem;
    padding-left: 2rem;
    border-left: 2px solid var(--bg-secondary);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: calc(-2rem - 7px);
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid var(--bg-primary);
}

.role-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.role-title {
    font-size: 1.25rem;
    font-weight: 700;
}

.role-company {
    color: var(--accent);
    font-weight: 500;
}

.role-date {
    color: var(--text-muted);
    font-size: 0.875rem;
    white-space: nowrap;
}

.role-bullets {
    list-style-type: none;
}

.role-bullets li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.role-bullets li::before {
    content: "•";
    color: var(--accent);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* --- TECH STACK MATRIX --- */
.skills-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.skills-category h4 {
    color: var(--accent);
    margin-bottom: 0.75rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: var(--bg-secondary);
    border: 1px solid var(--card-border);
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.tag:hover {
    border-color: var(--accent);
    background: rgba(56, 189, 248, 0.05);
}

/* --- RECOGNITION & PUBLIC SPEAKING --- */
.recognition-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 3rem;
}

.recognition-list {
    list-style: none;
    margin-top: 1rem;
}

.recognition-list li {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
    background: var(--bg-secondary);
    border: 1px solid var(--card-border);
    padding: 1.25rem;
    border-radius: 6px;
}

.recognition-icon {
    font-size: 1.25rem;
    color: var(--accent);
    margin-top: 0.15rem;
}

.recog-title {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-main);
}

.recog-org {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

/* --- ANIMATION CLASS (Triggered by JS) --- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- CREDLY PORTFOLIO LINKS --- */
.credly-link {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--accent-color);
    text-decoration: none;
    margin-top: 0.5rem;
    font-weight: 500;
    transition: color 0.2s ease, opacity 0.2s ease;
    opacity: 0.8;
}

.credly-link:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Tighten certification text scaling for uniform grid heights */
.recognition-content h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
    color: var(--text-color);
}

.recognition-org {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* --- FOOTER --- */
footer {
    padding: 4rem 0;
    text-align: center;
    border-top: 1px solid var(--card-border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .hero-title { font-size: 2.25rem; }
    .role-header { flex-direction: column; gap: 0.25rem; }
    header { padding: 4rem 0 2rem 0; }
    .recognition-grid { gap: 2rem; }
    .hero-links {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
}
