:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-tertiary: #1a1a1a;
    --bg-card: #161616;
    --border-primary: #252525;
    --border-hover: #333333;
    --text-primary: #ffffff;
    --text-secondary: #a3a3a3;
    --text-tertiary: #737373;
    --accent-blue: #3b82f6;
    --accent-blue-hover: #2563eb;
    --accent-red: #ef4444;
    --accent-green: #10b981;
    --accent-orange: #f59e0b;
    --accent-purple: #8b5cf6;
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 10px;
    --radius-xl: 16px;
}

/* Light Theme */
[data-theme="light"] {
    --bg-primary: #f5f5f5;
    --bg-secondary: #e5e5e5;
    --bg-tertiary: #d4d4d4;
    --bg-card: #ffffff;
    --border-primary: #d4d4d4;
    --border-hover: #a3a3a3;
    --text-primary: #171717;
    --text-secondary: #525252;
    --text-tertiary: #737373;
}

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

/* Page Transitions */
body { animation: pageEnter 0.4s ease-out; }
body.page-exit { animation: pageExit 0.25s ease-in forwards; }
@keyframes pageEnter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pageExit { from { opacity: 1; } to { opacity: 0; transform: translateY(-8px); } }

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    padding: 15px;
    line-height: 1.4;
}

/* Skip to content link */
.skip-to-content {
    position: absolute;
    top: -100%;
    left: 16px;
    background: var(--accent-blue);
    color: white;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    z-index: 2000;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: top 0.2s ease;
}
.skip-to-content:focus {
    top: 8px;
}

/* Hamburger menu button */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
    flex-direction: column;
    gap: 5px;
    width: 28px;
}
.hamburger-line {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}
.hamburger.open .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.open .hamburger-line:nth-child(2) {
    opacity: 0;
}
.hamburger.open .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.9);
    color: white;
    border: none;
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 99;
}
.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}
.back-to-top:hover {
    background: rgba(37, 99, 235, 1);
    transform: translateY(-2px);
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-primary);
    z-index: 100;
    font-size: 14px;
}

.nav-home {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-home:hover {
    color: var(--text-primary);
    transform: translateX(-2px);
}

.nav-links {
    display: flex;
    gap: 8px;
}

.nav-link {
    color: var(--text-tertiary);
    text-decoration: none;
    padding: 6px 14px;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    font-weight: 500;
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.nav-link.active {
    color: var(--text-primary);
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
}

.header {
    margin-bottom: 30px;
    text-align: center;
    padding-top: 56px;
}

.page-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

.timeline {
    position: relative;
    padding: 0;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-blue), var(--accent-purple), var(--accent-red));
    transform: translateX(-50%);
}

.experience-item {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    margin-bottom: 40px;
    transition: all 0.3s ease;
    overflow: visible;
    cursor: pointer;
    width: calc(50% - 40px);
}

/* Odd items: left side */
.experience-item:nth-child(odd) {
    margin-left: 0;
    margin-right: auto;
}

/* Even items: right side */
.experience-item:nth-child(even) {
    margin-left: auto;
    margin-right: 0;
}

/* Timeline node dot */
.experience-item::before {
    content: '';
    position: absolute;
    top: 30px;
    width: 14px;
    height: 14px;
    background: var(--accent-blue);
    border-radius: 50%;
    border: 3px solid var(--bg-primary);
    z-index: 2;
    transition: all 0.3s ease;
}

/* Connector line from card to center */
.experience-item::after {
    content: '';
    position: absolute;
    top: 35px;
    height: 2px;
    background: var(--border-hover);
    z-index: 1;
}

/* Odd items: dot and connector on the right */
.experience-item:nth-child(odd)::before {
    right: -47px;
}

.experience-item:nth-child(odd)::after {
    right: -33px;
    width: 33px;
}

/* Even items: dot and connector on the left */
.experience-item:nth-child(even)::before {
    left: -47px;
}

.experience-item:nth-child(even)::after {
    left: -33px;
    width: 33px;
}

/* Timeline date label - floats on the opposite side */
.timeline-date {
    position: absolute;
    top: 28px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-tertiary);
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.experience-item:nth-child(odd) .timeline-date {
    right: -180px;
    text-align: left;
}

.experience-item:nth-child(even) .timeline-date {
    left: -180px;
    text-align: right;
}

.experience-item.current::before {
    background: var(--accent-red);
    animation: pulse 2s infinite;
}

.experience-item.expanded::before {
    background: var(--accent-green);
    transform: scale(1.3);
}

.experience-item:hover {
    border-color: var(--border-hover);
    background: var(--bg-tertiary);
}

.experience-item:nth-child(odd):hover {
    transform: translateX(-4px);
}

.experience-item:nth-child(even):hover {
    transform: translateX(4px);
}

.experience-item:hover .company-logo {
    transform: scale(1.1) rotate(5deg);
    filter: brightness(1.2);
}

.experience-item.expanded {
    border-color: var(--accent-blue);
}

.experience-header {
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
}

.company-logo {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.company-logo::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.experience-item:hover .company-logo::before {
    transform: translateX(100%);
}

.company-logo img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: brightness(1.1) contrast(1.1);
    z-index: 2;
    position: relative;
}

.company-logo.emoji-logo::after {
    font-size: 28px;
    z-index: 2;
    position: relative;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Bendix Logo - Industrial/Automotive */
.bendix-logo {
    background: linear-gradient(135deg, #6ecff6, #3ea8d8, #2b89b5);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

#bendix {
    width: 60pt;
    height: 60pt;
  }
  

/* Cisco Logo - Networking/Tech */
.cisco-logo {
    background: linear-gradient(135deg, #1ba0d7, #0d4f8c, #005073);
    box-shadow: 0 4px 15px rgba(27, 160, 215, 0.3);
}

/* CERIAS Logo - Security */
.cerias-logo {
    background: linear-gradient(135deg, #fdf7c3, #bb9910, #ce9607);
    box-shadow: 0 4px 15px rgba(147, 51, 234, 0.3);
}

.cerias-logo.emoji-logo::after {
    content: '🛡️';
    animation: shieldFloat 3s ease-in-out infinite;
}

/* AgRPA Logo - Agriculture */
.agrpa-logo {
    background: linear-gradient(135deg, #10b981, #059669, #047857);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.agrpa-logo.emoji-logo::after {
    content: '🌱';
    animation: plantGrow 4s ease-in-out infinite;
}

/* Purdue Logo - Academic */
.purdue-logo {
    background: linear-gradient(135deg, #daaa00, #b7950b, #8b6914);
    box-shadow: 0 4px 15px rgba(218, 170, 0, 0.3);
}

.experience-info {
    flex-grow: 1;
}

.job-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.company {
    font-size: 15px;
    color: var(--accent-blue);
    margin-bottom: 6px;
}

.duration {
    font-size: 12px;
    color: var(--text-tertiary);
    background: var(--bg-secondary);
    padding: 3px 8px;
    border-radius: var(--radius-xl);
    display: inline-block;
}

.current-badge {
    background: var(--accent-red);
    color: white;
    font-size: 9px;
    padding: 2px 5px;
    border-radius: var(--radius-sm);
    margin-left: 6px;
    text-transform: uppercase;
    font-weight: 600;
    animation: livePulse 1.5s ease-in-out infinite;
}

.expand-icon {
    color: var(--text-tertiary);
    font-size: 16px;
    transition: all 0.3s ease;
    margin-left: 15px;
}

.experience-item.expanded .expand-icon {
    transform: rotate(180deg);
    color: var(--accent-blue);
}

.experience-content {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    opacity: 0;
}

.experience-item.expanded .experience-content {
    max-height: 1000px;
    opacity: 1;
    padding: 0 20px 20px 20px;
}

.job-description {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.5;
}

.achievements {
    list-style: none;
    padding: 0;
    margin-bottom: 16px;
}

.achievements li {
    color: var(--text-secondary);
    margin-bottom: 8px;
    padding-left: 16px;
    position: relative;
    line-height: 1.4;
    font-size: 13px;
}

.achievements li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-blue);
    font-weight: bold;
}

.skills-used {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-primary);
}

.skills-used h4 {
    color: var(--text-primary);
    font-size: 12px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tech-tag {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    color: var(--text-secondary);
    padding: 4px 8px;
    border-radius: var(--radius-xl);
    font-size: 11px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.tech-tag:hover {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: white;
    transform: translateY(-1px);
}

.tech-tag.highlighted {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
    color: white;
    animation: highlight-pulse 1.5s ease-in-out;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 12px;
    margin: 16px 0;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-primary);
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent-blue);
    display: block;
    margin-bottom: 3px;
}

.stat-label {
    font-size: 10px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.education-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid var(--border-primary);
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 25px;
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 16px;
}

.education-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.education-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-tertiary);
}

.education-card:hover .company-logo {
    transform: scale(1.1) rotate(-5deg);
}

.education-content {
    flex: 1;
}

.school-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.degree {
    font-size: 14px;
    color: var(--accent-blue);
    margin-bottom: 8px;
}

.honors {
    color: var(--accent-orange);
    font-size: 12px;
    margin-bottom: 12px;
}

/* Skill highlighting notification */
.skill-notification {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    background: var(--accent-blue);
    color: white;
    padding: 12px;
    border-radius: var(--radius-md);
    font-size: 12px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
    max-width: 220px;
}

.skill-notification.show {
    opacity: 1;
    transform: translateY(-50%) translateX(-10px);
}

/* Footer */
.footer {
    grid-column: span 10;
    text-align: center;
    padding: 40px 0 28px;
    color: var(--text-tertiary);
    font-size: 13px;
    border-top: 1px solid var(--border-primary);
    margin-top: 48px;
}

.footer a {
    color: var(--accent-blue);
    text-decoration: none;
}

/* Logo Animations */
@keyframes shieldFloat {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-4px) scale(1.05); }
}

@keyframes plantGrow {
    0% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.1) rotate(3deg); }
    50% { transform: scale(1.05) rotate(-2deg); }
    75% { transform: scale(1.08) rotate(1deg); }
    100% { transform: scale(1) rotate(0deg); }
}

@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(0.95); }
}

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

@keyframes highlight-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
    opacity: 0;
    transform: translateY(15px);
}

/* Slide from left for odd items, right for even */
.experience-item.fade-in:nth-child(odd) {
    animation: fadeInLeft 0.6s ease forwards;
    transform: translateX(-30px);
}

.experience-item.fade-in:nth-child(even) {
    animation: fadeInRight 0.6s ease forwards;
    transform: translateX(30px);
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scroll Reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s cubic-bezier(0.4,0,0.2,1), transform 0.6s cubic-bezier(0.4,0,0.2,1); }
.reveal.revealed { opacity: 1; transform: translateY(0); }
.reveal-scale { opacity: 0; transform: scale(0.95); transition: opacity 0.6s cubic-bezier(0.4,0,0.2,1), transform 0.6s cubic-bezier(0.4,0,0.2,1); }
.reveal-scale.revealed { opacity: 1; transform: scale(1); }

/* Enhanced hover effects */
.experience-item:hover .company-logo {
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.experience-item.current:hover .company-logo {
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}

/* Special effects for current job */
.experience-item.current .company-logo {
    animation: currentJobGlow 3s ease-in-out infinite;
}

@keyframes currentJobGlow {
    0%, 100% { box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3); }
    50% { box-shadow: 0 4px 25px rgba(255, 107, 53, 0.6), 0 0 30px rgba(239, 68, 68, 0.3); }
}

/* Theme Toggle */
.theme-toggle {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    cursor: pointer;
    padding: 6px 10px;
    display: flex;
    align-items: center;
    color: var(--text-secondary);
    font-size: 13px;
    transition: all 0.3s ease;
}
.theme-toggle:hover { background: var(--border-hover); color: var(--text-primary); }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

[data-theme="light"] .site-nav {
    background: rgba(245, 245, 245, 0.85);
}

[data-theme="light"] .hamburger-line {
    background: var(--text-primary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .site-nav {
        flex-wrap: wrap;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        padding-top: 8px;
        border-top: 1px solid var(--border-primary);
        margin-top: 8px;
        gap: 4px;
    }

    .nav-links.open {
        display: flex;
    }

    body {
        padding: 10px;
    }

    .timeline {
        padding-left: 28px;
    }

    .timeline::before {
        left: 12px;
        transform: none;
    }

    .experience-item {
        width: 100%;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 16px;
    }

    /* All dots on the left for mobile */
    .experience-item::before,
    .experience-item:nth-child(odd)::before,
    .experience-item:nth-child(even)::before {
        left: -22px;
        right: auto;
        top: 25px;
        width: 10px;
        height: 10px;
    }

    /* All connectors on the left for mobile */
    .experience-item::after,
    .experience-item:nth-child(odd)::after,
    .experience-item:nth-child(even)::after {
        left: -12px;
        right: auto;
        width: 12px;
        top: 29px;
    }

    .experience-item:nth-child(odd):hover,
    .experience-item:nth-child(even):hover {
        transform: translateX(3px);
    }

    .timeline-date {
        position: static;
        margin-bottom: -6px;
        padding: 8px 15px 0;
        text-align: left !important;
    }

    .experience-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 15px;
        position: relative;
    }

    .company-logo {
        width: 48px;
        height: 48px;
        align-self: flex-start;
    }

    .expand-icon {
        position: absolute;
        top: 15px;
        right: 15px;
        margin-left: 0;
    }

    .education-grid {
        grid-template-columns: 1fr;
    }

    .education-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .experience-content {
        padding: 0 15px 15px 15px;
    }

    .page-title {
        font-size: 26px;
    }

    .header {
        padding-top: 30px;
        margin-bottom: 25px;
    }
}