:root {
    /* Professional Tech Palette - LIGHT MODE */
    --bg-color: #ffffff;
    --bg-secondary: #f8f9fa;
    /* Clean off-white */
    --text-color: #1a1a2e;
    /* Deep tech blue/black */
    --text-primary: #7000ff;
    /* Pantone Purple */
    --text-muted: #595977;

    --primary-purple: #7000ff;
    --primary-purple-subtle: rgba(112, 0, 255, 0.08);
    /* Minimal tint */

    --accent-cyan: #008c9e;
    /* Professional Teal/Cyan */
    --border-color: #e0e0ea;

    --glass-surface: rgba(255, 255, 255, 0.95);
    /* More opaque for professionalism */
    --glass-border: rgba(112, 0, 255, 0.1);

    /* Additional color variables for consistency */
    --white: #ffffff;
    --section-border: #f0f0f0;
    --section-title-color: #003f5c;
    --tag-bg: #f0f4f8;
    --tag-text: #003f5c;

    /* Fonts - Clean & Technical */
    --font-header: 'Rajdhani', sans-serif;
    /* Dropped Orbitron for more serious tone */
    --font-body: 'Rajdhani', sans-serif;
    /* Using Rajdhani for consistency */
    --font-mono: 'Fira Code', monospace;
    --font-thai: 'Chakra Petch', sans-serif;
    /* Thai language support */

    /* Accessibility - Focus indicators */
    --focus-outline: 3px solid var(--primary-purple);
    --focus-outline-offset: 2px;

    /* Layout tokens */
    --radius-card: 12px;
    --radius-card-sm: 10px;
    --card-padding: 1.5rem;
    --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-card-hover: 0 10px 24px rgba(0, 0, 0, 0.08);
    --media-aspect: 16 / 9;
}

body {
    background-color: var(--bg-color);
    /* Engineering Graph Paper Grid */
    background-image:
        linear-gradient(var(--border-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: center top;
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 500;
    margin: 0;
    line-height: 1.6;
}

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-purple);
    color: var(--white);
    padding: 8px 16px;
    text-decoration: none;
    z-index: 10000;
    font-weight: 600;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid var(--white);
    outline-offset: 2px;
}

a {
    color: var(--primary-purple);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

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

/* Ensure sufficient color contrast for links - WCAG AA compliant */
/* Primary purple (#7000ff) on white has 4.5:1 contrast ratio */
/* Adding underline on hover improves accessibility */
a:not(.btn-secondary):not(.social-link):not(.skip-link) {
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 2px;
    transition: text-decoration-color 0.3s ease;
}

a:not(.btn-secondary):not(.social-link):not(.skip-link):hover {
    text-decoration-color: currentColor;
}

/* Focus styles for keyboard navigation - WCAG 2.1 AA compliant */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: var(--focus-outline);
    outline-offset: var(--focus-outline-offset);
    border-radius: 2px;
}

/* Remove default focus outline for mouse users, keep for keyboard */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
    outline: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    background: transparent;
}

/* Main content wrapper for better readability */
main {
    background: transparent;
    min-height: 100vh;
}

/* Sections */
section {
    padding: 3rem 0;
    border-bottom: 1px solid var(--section-border);
    background: transparent;
}

/* Section containers for better visibility */
.section-skills,
.section-experience,
.section-projects {
    background: transparent;
}

section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--section-title-color);
    position: relative;
    display: inline-block;
}

section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-purple);
    margin-top: 5px;
    border-radius: 2px;
}

/* Typography */
h1,
h2,
h3 {
    color: var(--text-color);
    font-family: var(--font-header);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.center-btn {
    text-align: center;
}

.btn-secondary {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    border: 1px solid var(--primary-purple);
    color: var(--primary-purple);
    border-radius: 4px;
    transition: all 0.3s ease;
    background: transparent;
    cursor: pointer;
    font-weight: 600;
}

.btn-secondary:hover {
    background: var(--primary-purple);
    color: var(--white);
}

.btn-secondary:focus-visible {
    outline: var(--focus-outline);
    outline-offset: var(--focus-outline-offset);
}/* Navbar */
header {
    background-color: var(--glass-surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    /* Subtle shadow */
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

nav .logo a {
    color: var(--primary-purple);
    font-family: var(--font-header);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 1px;
    text-decoration: none;
    text-transform: uppercase;
}

nav ul {
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

nav ul li a {
    color: var(--text-color);
    font-family: var(--font-header);
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
    position: relative;
    border-radius: 4px;
    display: inline-block;
}

nav ul li a:hover {
    color: var(--primary-purple);
    background: var(--primary-purple-subtle);
}

nav ul li a:focus-visible {
    outline: 3px solid var(--primary-purple);
    outline-offset: 2px;
}

nav ul li a[aria-current="page"] {
    color: var(--primary-purple);
    background: var(--primary-purple-subtle);
    font-weight: 700;
}/* Profile Sections (General) */
.profile-section {
    padding: 2rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

/* Profile Details Section - Match Skills Section Level */
.profile-details-section {
    padding: 3rem 0;
    max-width: 1200px;
    margin: 0 auto;
    background: transparent;
}

/* Profile Identity Card - Only for Profile Top */
.profile-container.profile-top .profile-left {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-card);
    padding: 2rem;
    box-shadow: var(--shadow-card);
    text-align: center;
}

/* Profile Top Container */
.profile-container.profile-top {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 4rem;
    align-items: flex-start;
    width: 100%;
}

/* Profile Bottom Container - Interests & Education in 2 columns */
.profile-container.profile-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: stretch;
    width: 100%;
}

/* Left Column - Profile Top */
.profile-container.profile-top .profile-left {
    text-align: center;
}

/* Left Column - Profile Bottom (Interests) */
.profile-container.profile-bottom .profile-left {
    text-align: left;
}

/* Right Column - Profile Top */
.profile-container.profile-top .profile-right {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Right Column - Profile Bottom (Education) */
.profile-container.profile-bottom .profile-right {
    text-align: left;
}

.profile-avatar {
    margin-bottom: 2rem;
    position: relative;
    display: flex;
    justify-content: center;
}

.profile-avatar img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.profile-identity {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
}

.profile-name {
    font-size: 2.2rem;
    color: var(--text-color);
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
    text-transform: uppercase;
    font-weight: 700;
}

.profile-name-thai {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 1.5rem;
    color: var(--text-muted);
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.profile-role {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 1rem;
    font-family: var(--font-body);
    font-style: italic;
    line-height: 1.5;
    padding: 0 1rem;
}

.profile-org a {
    color: var(--primary-purple);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
}

.profile-org a:hover {
    text-decoration: underline;
}

.profile-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--white);
    color: var(--primary-purple);
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.social-link:hover {
    transform: translateY(-3px);
    background: var(--primary-purple);
    color: var(--white);
    box-shadow: 0 8px 15px rgba(112, 0, 255, 0.2);
}

.social-link:focus-visible {
    outline: 3px solid var(--primary-purple);
    outline-offset: 2px;
    transform: translateY(-3px);
}

/* Ensure containers align correctly */
.profile-container {
    width: 100%;
    /* Keep grid as defined */
}

/* Main Content (Right) */
.profile-bio {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-card);
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
    margin-bottom: 2rem;
}

.profile-bio h2 {
    color: var(--section-title-color);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    margin-top: 0;
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    font-weight: 700;
    border-bottom: 2px solid var(--primary-purple);
    padding-bottom: 0.5rem;
}

.profile-bio h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-purple);
    margin-top: 5px;
    border-radius: 2px;
}

.bio-text {
    font-size: 1.05rem;
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 0;
}

/* Badges */
.profile-badges {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.profile-badges {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-card);
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
    display: flex;
    gap: 1.5rem;
    margin-bottom: 0;
    justify-content: center;
}

.badge-item {
    width: 160px;
    height: 160px;
    border: 2px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-secondary);
    text-align: center;
    padding: 1rem 0.5rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.badge-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-purple);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.badge-item:hover::before {
    transform: scaleX(1);
}

.badge-item span {
    font-family: var(--font-header);
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.3;
    color: var(--text-color);
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge-item i {
    font-size: 1.8rem;
    color: var(--accent-cyan);
    margin-bottom: 0.5rem;
}

.badge-item img {
    width: auto;
    height: auto;
    max-width: 90%;
    max-height: 90px;
    object-fit: contain;
    margin-bottom: 0.2rem;
    flex-shrink: 0;
}

.badge-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--primary-purple);
}

/* Profile Details Section - 2 Column Style */
.profile-details-section {
    padding: 3rem 0;
    max-width: 1200px;
    margin: 0 auto;
    background: transparent;
}

/* 2 Column Grid Container */
.profile-container.profile-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: stretch;
    width: 100%;
}

/* Interests & Education Cards - New 2 Column Style */
.profile-interests,
.profile-education {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-card);
    padding: 2rem;
    box-shadow: var(--shadow-card);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
    position: relative;
}

.profile-interests:hover,
.profile-education:hover {
    transform: translateY(-2px);
    border-color: var(--primary-purple);
    box-shadow: var(--shadow-card-hover);
}

/* Card Headers - Match Skills Section Title Style */
.profile-interests h3,
.profile-education h3 {
    color: var(--section-title-color);
    font-size: 2rem;
    margin: 0 0 2rem 0;
    font-family: var(--font-header);
    font-weight: 700;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    padding-bottom: 0;
    border-bottom: none;
}

.profile-interests h3::after,
.profile-education h3::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-purple);
    margin-top: 5px;
    border-radius: 2px;
}

.profile-affiliations h2 {
    color: var(--section-title-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--primary-purple);
    padding-bottom: 0.5rem;
    text-align: left;
    font-family: var(--font-header);
    font-weight: 700;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

.profile-affiliations h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-purple);
    margin-top: 5px;
    border-radius: 2px;
}

/* Interests List - 2 Column Style */
.interests-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: left;
}

.interests-list li {
    padding: 0.5rem 0.75rem;
    display: flex;
    align-items: flex-start;
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.4;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-card-sm);
    margin-bottom: 0.5rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    transition: all 0.2s ease;
}

.interests-list li:hover {
    border-color: var(--primary-purple);
    background: var(--white);
    box-shadow: 0 2px 4px rgba(112, 0, 255, 0.1);
}

.interests-list li::before {
    content: '■';
    color: var(--primary-purple);
    font-size: 0.6rem;
    margin-right: 0.6rem;
    line-height: 1.4;
    flex-shrink: 0;
    vertical-align: middle;
}

/* Education List */
.education-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.edu-item {
    display: flex;
    gap: 1rem;
    align-items: center;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-card);
    padding: 1rem;
    box-shadow: var(--shadow-card);
    transition: all 0.2s ease;
}

.edu-item:hover {
    border-color: var(--primary-purple);
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-3px);
}

.edu-icon {
    background: transparent;
    color: var(--primary-purple);
    width: 56px;
    height: 56px;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
    overflow: hidden;
    border: 0;
    box-shadow: none;
}

.edu-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.edu-icon i {
    font-size: 1.6rem;
}

.edu-content {
    flex: 1;
}

.edu-course {
    font-weight: 700;
    color: var(--text-color);
    font-size: 1rem;
    margin-bottom: 0.2rem;
    font-family: var(--font-header);
}

.edu-inst {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.edu-year {
    font-size: 0.85rem;
    color: var(--accent-cyan);
    font-weight: 500;
    font-family: var(--font-mono);
}

/* Responsive */
@media (max-width: 900px) {
    .profile-container.profile-top {
        display: flex;
        flex-direction: column;
        gap: 3rem;
        padding: 0 1rem;
    }

    .profile-container.profile-top > div {
        width: 100%;
    }

    .profile-container.profile-bottom {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .profile-badges {
        justify-content: center;
        flex-wrap: wrap;
    }
}/* Current Affiliations */
.profile-affiliations {
    margin-top: 2rem;
    width: 100%;
}

.profile-affiliations h2 {
    color: var(--section-title-color);
    font-size: 2rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--primary-purple);
    padding-bottom: 0.5rem;
    text-align: left;
    font-family: var(--font-header);
    font-weight: 700;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

.profile-affiliations h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-purple);
    margin-top: 5px;
    border-radius: 2px;
}

.affiliations-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

/* Group card container */
.affiliation-group-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-card);
    background: var(--white);
    padding: 0.75rem;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-card);
}

.affiliation-group-card:hover {
    border-color: var(--primary-purple);
    box-shadow: var(--shadow-card-hover);
}

/* Tree structure within group */
.affiliation-tree {
    margin-top: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

/* Vertical line for tree */
.affiliation-tree::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--border-color);
    display: none;
}

.affiliation-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    padding: 0.5rem 0;
    margin: 0.25rem 0;
    background: transparent;
    border: none;
    transition: all 0.2s ease;
}

/* Connector line for all items */
.affiliation-item::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 50%;
    width: 1rem;
    height: 1px;
    background: var(--border-color);
    display: none;
}

/* Vertical line for parent items */
.affiliation-item.has-children::after {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 50%;
    bottom: -0.5rem;
    width: 1px;
    background: var(--border-color);
    display: none;
}

/* Level-based indentation */
.affiliation-level-1 {
    padding-left: 1.5rem;
    margin-left: 0;
}

.affiliation-level-2 {
    padding-left: 1.5rem;
    margin-left: 1.5rem;
}

/* Adjust connector position for level 2 items */
.affiliation-level-2::before {
    left: -1.5rem !important;
    width: 1rem !important;
}

/* Remove extra spacing for last child */
.affiliation-item:last-child {
    padding-bottom: 0;
}

/* Adjust vertical line for last item */
.affiliation-item:last-child::after {
    height: 50%;
}

/* Hide vertical line for items without children */
.affiliation-item:not(.has-children)::after {
    display: none;
}

.aff-logo {
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-align: center;
    font-weight: 700;
    font-size: 0.65rem;
    line-height: 1;
    color: var(--text-color);
    overflow: hidden;
    box-shadow: none;
    transition: all 0.3s ease;
}

.aff-logo:hover {
    transform: none;
    box-shadow: none;
    border-color: transparent;
}

.aff-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.aff-name {
    font-size: 0.9rem;
    color: var(--text-color);
    font-weight: 500;
    line-height: 1.3;
}/* Skills Categories Layout */
.skills-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.skill-category {
    background: var(--white);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-card);
    position: relative;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
}

.skill-category::before {
    display: none;
}

.skill-category:hover {
    transform: translateY(-3px);
    border-color: var(--primary-purple);
    box-shadow: var(--shadow-card-hover);
}

.skill-category-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.skill-category-header .skill-icon {
    font-size: 1.5rem;
    color: var(--primary-purple);
    flex-shrink: 0;
}

.skill-category h3 {
    margin: 0;
    color: var(--text-color);
    font-family: var(--font-header);
    font-weight: 600;
    font-size: 1.1rem;
}

.skills-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.skills-list li {
    padding: 0.4rem 0.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    position: relative;
    padding-left: 1.5rem;
}

.skills-list li::before {
    content: '■';
    position: absolute;
    left: 0.5rem;
    color: var(--primary-purple);
    font-weight: bold;
    font-size: 0.6rem;
    line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .skills-categories {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}/* Timeline (Experience) */
.timeline {
    position: relative;
    padding-left: 2rem;
    border-left: 1px solid var(--border-color);
}

.timeline::before {
    display: none;
    /* Remove gradient line */
}

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

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.35rem;
    top: 5px;
    width: 10px;
    height: 10px;
    background: var(--white);
    border: 2px solid var(--accent-cyan);
    /* Technical cyan dot */
    border-radius: 50%;
    /* Keep dot, it's classic */
    box-shadow: 0 0 0 4px var(--white);
    /* White halo for separation */
}

.timeline-date {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 0.2rem;
}


.timeline-content {
    background: var(--white);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    position: relative;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.timeline-content:hover {
    border-color: var(--primary-purple);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.timeline-content::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 20px;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid var(--border-color);
}

.timeline-content:hover::before {
    border-right-color: var(--primary-purple);
}

.timeline-content::after {
    content: '';
    position: absolute;
    left: -7px;
    top: 20px;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid var(--white);
}

/* Flex container for content and logo */
.timeline-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
}

.timeline-text {
    flex: 1;
}

.curr-logo {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 5px;
}

.curr-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.timeline-content h4 {
    margin: 0;
    color: var(--primary-purple);
    font-family: var(--font-header);
    letter-spacing: 0.5px;
    font-weight: 700;
    font-size: 1.1rem;
}

.timeline-content h5 {
    margin: 0 0 0.25rem 0;
    color: var(--text-muted);
    font-weight: 500;
    font-family: var(--font-body);
    font-size: 1rem;
}

.timeline-content .location {
    margin: 0 0 0.75rem 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-style: italic;
}

/* 2-Column Layout */
.experience-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.col-title {
    font-size: 1.1rem;
    color: var(--primary-purple);
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
    text-transform: uppercase;
    font-weight: 600;
}

/* Mobile responsive adjustments */
@media (max-width: 900px) {
    .experience-columns {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
}

@media (max-width: 600px) {
    .timeline-flex {
        flex-direction: column-reverse;
        /* Stack cleanly on mobile */
        align-items: flex-start;
    }

    .curr-logo {
        position: absolute;
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        border: none;
        padding: 0;
        background: transparent;
    }

    .curr-logo img {
        border-radius: 4px;
    }

    .timeline-content {
        padding-top: 2rem;
        /* Ensure text doesn't overlap absolute logo */
    }

    .timeline-text {
        width: 100%;
    }
}/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.project-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-card);
    overflow: hidden;
    transition: all 0.2s ease;
    position: relative;
    box-shadow: var(--shadow-card);
}

.project-card:hover {
    border-color: var(--primary-purple);
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-3px);
}

.project-card:focus-within {
    border-color: var(--primary-purple);
    box-shadow: var(--shadow-card-hover);
    outline: 3px solid var(--primary-purple);
    outline-offset: 2px;
}


.project-image {
    aspect-ratio: var(--media-aspect);
    overflow: hidden;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    /* B&W default for pro look */
    transition: filter 0.3s ease;
}

.project-card:hover .project-image img {
    filter: grayscale(0%);
    /* Color on hover */
}

.project-info {
    padding: 1.5rem;
}

.project-info h2 {
    margin-top: 0;
    font-family: var(--font-header);
    font-weight: 600;
    font-size: 1.1rem;
}

.project-info h2 a {
    color: var(--text-color);
    transition: color 0.2s ease;
    text-decoration: none;
}

.project-card:hover .project-info h2 a,
.project-info h2 a:focus-visible {
    color: var(--primary-purple);
}

.tags .tag {
    display: inline-block;
    background: var(--tag-bg);
    color: var(--tag-text);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    margin-top: 0.5rem;
    font-family: var(--font-mono);
}/* Footer */
.site-footer {
    background-color: var(--glass-surface);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-top: 1px solid var(--glass-border);
    padding: 2rem 0;
    text-align: center;
    margin-top: 4rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.site-footer p {
    margin: 0;
}/* List and Single Page Styles */

/* List Container */
.list-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

/* Card styling for list items */
.card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-card);
    padding: var(--card-padding);
    transition: all 0.2s ease;
    position: relative;
    box-shadow: var(--shadow-card);
}

.card:hover {
    border-color: var(--primary-purple);
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-3px);
}

.card:focus-within {
    border-color: var(--primary-purple);
    box-shadow: var(--shadow-card-hover);
    outline: 3px solid var(--primary-purple);
    outline-offset: 2px;
}

.card h2 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    font-family: var(--font-header);
    font-weight: 600;
}

.card h2 a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.card h2 a:hover,
.card h2 a:focus-visible {
    color: var(--primary-purple);
}

.card .meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-family: var(--font-mono);
    margin-bottom: 0.75rem;
}

.card .meta time {
    color: var(--text-muted);
}

.card p {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Single Page Article Styles */
article {
    background: var(--white);
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-card);
    margin-top: 2rem;
    box-shadow: var(--shadow-card);
}

article header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

article header h1 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 2rem;
    color: var(--section-title-color);
    font-family: var(--font-header);
    font-weight: 700;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

article header h1::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-purple);
    margin-top: 5px;
    border-radius: 2px;
}

article header .meta {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-family: var(--font-mono);
}

article header .meta time {
    color: var(--text-muted);
}

article .content {
    color: var(--text-color);
    line-height: 1.8;
    font-size: 1.05rem;
}

article .content h2 {
    color: var(--section-title-color);
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-family: var(--font-header);
    font-weight: 600;
    text-transform: uppercase;
}

article .content h3 {
    color: var(--text-color);
    font-size: 1.4rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-family: var(--font-header);
    font-weight: 600;
    text-transform: uppercase;
}

article .content h4 {
    color: var(--text-color);
    font-size: 1.2rem;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-header);
    font-weight: 600;
}

article .content p {
    margin-bottom: 1.25rem;
}

article .content a {
    color: var(--primary-purple);
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: text-decoration-color 0.3s ease;
}

article .content a:hover {
    color: var(--accent-cyan);
    text-decoration-color: currentColor;
}

article .content ul,
article .content ol {
    margin-bottom: 1.25rem;
    padding-left: 2rem;
}

article .content li {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

article .content code {
    background: var(--bg-secondary);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: var(--font-mono);
    font-size: 0.9em;
    color: var(--primary-purple);
}

article .content pre {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
    margin-bottom: 1.25rem;
}

article .content pre code {
    background: transparent;
    padding: 0;
    color: var(--text-color);
}

article .content blockquote {
    border-left: 4px solid var(--primary-purple);
    padding-left: 1rem;
    margin-left: 0;
    margin-bottom: 1.25rem;
    color: var(--text-muted);
    font-style: italic;
}

article .content img {
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-card-sm);
    box-shadow: var(--shadow-card);
}

article .content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.25rem;
}

article .content table th,
article .content table td {
    border: 1px solid var(--border-color);
    padding: 0.75rem;
    text-align: left;
}

article .content table th {
    background: var(--bg-secondary);
    font-weight: 600;
    color: var(--text-color);
}

/* Page Title Styling */
.container > h1 {
    font-size: 2rem;
    color: var(--section-title-color);
    font-family: var(--font-header);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 2rem;
    padding-bottom: 0;
    border-bottom: none;
    position: relative;
    display: inline-block;
}

.container > h1::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-purple);
    margin-top: 5px;
    border-radius: 2px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    article {
        padding: 1.5rem;
    }

    article header h1 {
        font-size: 2rem;
    }

    .container > h1 {
        font-size: 1.75rem;
    }
    
    article header h1 {
        font-size: 1.75rem;
    }

    .list-container {
        gap: 1.5rem;
    }
}
