:root {
    --bg-color: #0a0a0a;
    --card-bg: #141414;
    --text-primary: #f0f0f0;
    --text-secondary: #a0a0a0;
    --accent: #d4af37;
    /* Champagne Gold */
    --accent-glow: rgba(212, 175, 55, 0.3);
    --timeline-line: #333333;
    --timeline-dot: #ffffff;
}

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

/* V4 Tags */
.timeline-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.tag {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--accent);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(212, 175, 55, 0.05);
    transition: all 0.3s ease;
}

.timeline-item:hover .tag {
    background: rgba(212, 175, 55, 0.15);
    border-color: var(--accent);
}

body {
    background-color: var(--bg-color);
    background-image: radial-gradient(circle at 15% 50%, rgba(20, 20, 30, 0.4) 0%, transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(20, 30, 40, 0.4) 0%, transparent 25%);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--text-primary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent);
}

/* Layout */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    gap: 60px;
}

/* Sidebar / Hero (Left on Desktop) */
.profile-section {
    flex: 0 0 300px;
    position: sticky;
    top: 40px;
    height: fit-content;
    padding-right: 40px;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.profile-header {
    margin-bottom: 30px;
}

.profile-name {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #fff 40%, #d4af37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.profile-role {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif;
    margin-bottom: 20px;
}

.profile-bio {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.social-icon:hover {
    background: rgba(212, 175, 55, 0.15);
    /* Gold tint */
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

/* Main Content / Timeline (Right on Desktop) */
.timeline-section {
    flex: 1;
    padding-left: 20px;
    /* Space for the rail if needed, currently inside items */
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--timeline-line);
    padding-bottom: 10px;
}

.timeline {
    position: relative;
    padding-left: 30px;
    border-left: 2px solid var(--timeline-line);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.timeline-item:nth-child(1) {
    animation-delay: 0.1s;
}

.timeline-item:nth-child(2) {
    animation-delay: 0.2s;
}

.timeline-item:nth-child(3) {
    animation-delay: 0.3s;
}

.timeline-item:nth-child(4) {
    animation-delay: 0.4s;
}

.timeline-item:nth-child(5) {
    animation-delay: 0.5s;
}

/* Timeline Dot */
.timeline-item::before {
    content: '';
    position: absolute;
    left: -37px;
    /* Adjust based on padding-left of timeline and border width */
    top: 5px;
    width: 12px;
    height: 12px;
    background: var(--bg-color);
    border: 2px solid var(--timeline-dot);
    border-radius: 50%;
    transition: background 0.3s ease;
}

.timeline-item:hover::before {
    background: var(--timeline-dot);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.timeline-year {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 5px;
    display: inline-block;
}

.timeline-content {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 20px 25px;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.timeline-item:hover .timeline-content {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent-glow);
    transform: translateX(10px);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.timeline-title {
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.timeline-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 15px;
}

.timeline-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        padding: 20px;
    }

    .profile-section {
        position: static;
        width: 100%;
        margin-bottom: 40px;
        text-align: left;
    }

    .timeline {
        padding-left: 20px;
    }

    .timeline-item::before {
        left: -27px;
    }
}

/* Utilities */
.mb-5 {
    margin-bottom: 3rem;
}

.about-content p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
}

/* --- V3 Redesign: Senior Level Polish --- */

/* --- Experimental: Terminal Bio --- */
.terminal-wrapper {
    background: #1e1e1e;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(25, 25, 25, 1);
    font-family: 'Fira Code', 'Courier New', monospace;
    overflow: hidden;
    margin-bottom: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.terminal-wrapper:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.terminal-header {
    background: #2d2d2d;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #333;
    position: relative;
}

.terminal-controls {
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red {
    background: #ff5f56;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #27c93f;
}

.terminal-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: #999;
    font-size: 0.8rem;
    font-weight: 500;
}

.terminal-body {
    padding: 20px;
    min-height: 200px;
    color: #e0e0e0;
    font-size: 0.9rem;
    line-height: 1.6;
}

.terminal-prompt-line {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.prompt-user {
    color: var(--accent);
    /* Gold prompt */
    font-weight: bold;
}

.type-command {
    color: #fff;
}

.terminal-run-btn {
    background: var(--accent);
    color: #000;
    border: none;
    padding: 4px 12px;
    font-family: inherit;
    font-weight: bold;
    font-size: 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.terminal-run-btn:hover {
    background: #fff;
    box-shadow: 0 0 10px var(--accent-glow);
}

.terminal-output p {
    margin-bottom: 10px;
    opacity: 0;
    /* JS will fade/type them in */
    animation: fadeIn 0.3s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.blinking-cursor {
    animation: blink 1s step-end infinite;
    color: var(--accent);
    margin-left: 5px;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Animations */
/* Ensure initial state is hidden for observer to reveal */
.hidden-item {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.show-item {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 0;
    margin-top: 60px;
    text-align: center;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.5));
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-footer p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.footer-tagline {
    color: var(--accent);
    font-family: 'Playfair Display', serif;
    font-style: italic;
    opacity: 0.8;
}

/* Responsive Footer Adjustments */
@media (max-width: 768px) {
    .profile-section {
        border-right: none;
        padding-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding-bottom: 30px;
    }
}