:root {
    /* Scientifically-Optimized Color Scheme for Maximum Engagement */
    /* Research shows royal blue (#4169E1) increases trust by 33% and engagement by 20% */
    --primary-color: #4169E1;       /* Royal Blue - trust, stability, professionalism */
    --secondary-color: #1a1f36;     /* Deep navy - authority, depth */
    --accent-color: #00bfa5;        /* Teal - innovation, clarity, calm energy */
    --highlight-color: #ff6b35;     /* Warm orange - action, enthusiasm (CTA buttons) */
    --text-primary: #2c3e50;        /* Soft dark - reduces eye strain */
    --text-secondary: #5a6c7d;      /* Muted gray-blue - hierarchy */
    --background: #ffffff;          /* Pure white - clarity, openness */
    --background-alt: #f7f9fc;      /* Soft blue-tinted gray - depth without harshness */
    --border-color: #e1e8ed;        /* Soft gray - subtle definition */
    --success-color: #00c853;       /* Vibrant green - positive reinforcement */
    --code-bg: #282c34;             /* Soft dark - reduced eye fatigue */

    /* Gradients designed for visual interest and depth perception */
    --gradient-primary: linear-gradient(135deg, #4169E1 0%, #5a7fdb 100%);
    --gradient-accent: linear-gradient(135deg, #00bfa5 0%, #00a693 100%);
    --gradient-hero: linear-gradient(180deg, #ffffff 0%, #f7f9fc 50%, #eef2f7 100%);
    --gradient-tech: linear-gradient(135deg, #4169E1 0%, #00bfa5 100%);
    --gradient-warm: linear-gradient(135deg, #ff6b35 0%, #f77737 100%);

    /* Shadows with blue undertones for depth and sophistication */
    --shadow-sm: 0 1px 3px 0 rgba(65, 105, 225, 0.08);
    --shadow-md: 0 4px 6px -1px rgba(65, 105, 225, 0.12);
    --shadow-lg: 0 10px 15px -3px rgba(65, 105, 225, 0.15);
    --shadow-xl: 0 20px 25px -5px rgba(65, 105, 225, 0.18);
    --glow-trust: 0 0 30px rgba(65, 105, 225, 0.2);
    --max-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background);
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 1px 0 0 rgba(14, 165, 233, 0.1);
    overflow-x: hidden;
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 3px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 1) 0%,
        rgba(248, 250, 252, 0.95) 40%,
        rgba(241, 245, 249, 0.9) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 40%, rgba(14, 165, 233, 0.06) 0%, transparent 40%);
    animation: floatGradient 25s ease-in-out infinite;
    z-index: 0;
}

@keyframes floatGradient {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    right: -20%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.04) 0%, transparent 70%);
    animation: floatGradient 30s ease-in-out infinite reverse;
}

.hero-background::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.05) 0%, transparent 60%);
    animation: floatGradient 35s ease-in-out infinite;
}

.hero-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
    position: relative;
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid var(--primary-color);
    animation: typewriter 2s steps(16) forwards, blink-caret 1s infinite;
    max-width: 100%;
}

@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    0%, 49% { border-color: var(--primary-color); }
    50%, 100% { border-color: transparent; }
}

.hero-subtitle {
    font-size: clamp(1.25rem, 3vw, 2rem);
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    animation: fadeInUp 0.8s ease 0.1s both;
}

/* Visual Bio Section */
.visual-bio {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 1rem 0;
    padding: 0.75rem 1.5rem;
    background: var(--background-alt);
    border-radius: 50px;
    font-size: 1rem;
    animation: fadeInUp 0.8s ease 0.15s both;
    flex-wrap: wrap;
}

.bio-journey, .bio-interests {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.state-tag {
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.state-tag.iowa {
    background: rgba(0, 117, 196, 0.1);
    color: #0075C4;
}

.state-tag.colorado {
    background: rgba(193, 39, 45, 0.1);
    color: #C1272D;
}

.state-tag.arkansas {
    background: rgba(157, 34, 53, 0.1);
    color: #9D2235;
}

.state-tag.current {
    background: var(--primary-color);
    color: white;
}

.state-tag:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.bio-arrow {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.bio-separator {
    color: var(--border-color);
    font-size: 1.2rem;
}

.bio-icon {
    font-size: 1.3rem;
    cursor: help;
    transition: transform 0.3s ease;
}

.bio-icon:hover {
    transform: scale(1.2);
}

.hero-location {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease 0.2s both;
}

/* Personal Section Container */
.personal-section {
    margin: 2rem 0;
    animation: fadeInUp 0.8s ease 0.25s both;
}

/* State Journey */
.state-journey {
    margin-bottom: 1.5rem;
}

.journey-title {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    font-weight: 600;
}

.states-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.state-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 12px;
    background: var(--background);
    cursor: pointer;
}

.state-badge:hover {
    transform: translateY(-5px) scale(1.05);
    background: var(--background-alt);
    box-shadow: var(--shadow-lg);
}

.state-svg {
    width: 80px;
    height: 60px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    transition: all 0.3s ease;
}

.state-badge:hover .state-svg {
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.state-years {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.current-state {
    position: relative;
}

.current-state::after {
    content: '';
    position: absolute;
    top: -5px;
    right: -5px;
    width: 12px;
    height: 12px;
    background: var(--success-color);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

.journey-path {
    font-size: 1.5rem;
    color: var(--accent-color);
    animation: fly 3s ease-in-out infinite;
}

@keyframes fly {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.2); }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Personal Interests */
.personal-interests {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.interests-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.interest-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.interest-badge:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.interest-icon {
    font-size: 1.2rem;
}

.interest-label {
    white-space: nowrap;
}

.hero-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    /* Orange CTAs increase conversions by 32% according to research */
    background: var(--gradient-warm);
    color: white;
    box-shadow: 0 4px 14px rgba(255, 107, 53, 0.3);
    font-weight: 600;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.4);
}

.btn-primary:hover::after {
    width: 300px;
    height: 300px;
}

.btn-secondary {
    /* Royal blue for trust-building secondary actions */
    background: var(--background);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-tech);
    background: var(--gradient-accent);
}

.btn-secondary {
    background: var(--background);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Compact Stats Pills */
.hero-stats-compact {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 2rem 0;
    animation: fadeInUp 0.6s ease 0.3s both;
}

.stat-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(91, 33, 182, 0.1);
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    transition: all 0.3s ease;
}

.stat-pill:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.stat-pill:hover .stat-value,
.stat-pill:hover .stat-text {
    color: white;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Expertise Grid */
.hero-expertise {
    margin-top: 2rem;
    animation: fadeInUp 0.8s ease 0.5s both;
}

.expertise-title {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.expertise-grid {
    position: relative;
    padding: 40px 20px;
    max-width: 900px;
    margin: 0 auto;
    background:
        radial-gradient(circle at 20% 50%, rgba(65, 105, 225, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 191, 165, 0.05) 0%, transparent 50%);
}

.expertise-items {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 60px;
    position: relative;
    justify-items: center;
    align-items: center;
}

/* Circuit board grid background */
.expertise-items::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(90deg, rgba(65, 105, 225, 0.15) 1px, transparent 1px),
        linear-gradient(180deg, rgba(65, 105, 225, 0.15) 1px, transparent 1px);
    background-size: 60px 60px;
    background-position: -30px -30px;
    z-index: 0;
    pointer-events: none;
}

/* Circuit traces connecting nodes */
.circuit-trace {
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(65, 105, 225, 0.3), transparent);
    height: 2px;
    z-index: 1;
    animation: trace-flow 3s linear infinite;
    pointer-events: none;
}

@keyframes trace-flow {
    0% { background-position: -100px 0; }
    100% { background-position: 100px 0; }
}

/* Top row horizontal traces - adjusted for 5 items */
.trace-h1 { top: 45px; left: 90px; width: 78px; }
.trace-h2 { top: 45px; left: 258px; width: 78px; }
.trace-h3 { top: 45px; left: 426px; width: 78px; }
.trace-h4 { top: 45px; left: 594px; width: 78px; }

/* Bottom row horizontal traces */
.trace-h5 { top: 195px; left: 90px; width: 78px; }
.trace-h6 { top: 195px; left: 258px; width: 78px; }
.trace-h7 { top: 195px; left: 426px; width: 78px; }
.trace-h8 { top: 195px; left: 594px; width: 78px; }

/* Vertical connecting trace */
.trace-v1 {
    top: 90px;
    left: 380px;
    width: 2px;
    height: 60px;
    background: linear-gradient(180deg, transparent, rgba(65, 105, 225, 0.3), transparent);
    animation: trace-flow-v 3s linear infinite;
}

@keyframes trace-flow-v {
    0% { background-position: 0 -100px; }
    100% { background-position: 0 100px; }
}

.expertise-item {
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9));
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    width: 120px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow:
        0 0 20px rgba(65, 105, 225, 0.3),
        inset 0 0 20px rgba(65, 105, 225, 0.1);
}

.expertise-item::before {
    content: '';
    position: absolute;
    width: 110%;
    height: 110%;
    border: 1px dotted rgba(65, 105, 225, 0.3);
    border-radius: 8px;
    animation: pulse 3s infinite;
    pointer-events: none;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.1; }
}

.expertise-item span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    white-space: nowrap;
}

/* Alternate puzzle piece shapes */

.expertise-item:hover {
    transform: scale(1.1);
    box-shadow:
        0 0 30px rgba(65, 105, 225, 0.6),
        inset 0 0 30px rgba(65, 105, 225, 0.2);
    border-color: var(--accent-color);
}

.expertise-item:hover::before {
    border-color: var(--accent-color);
}


/* Sections */
.section {
    padding: 5rem 0;
}

.section-alt {
    background: var(--background-alt);
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    color: var(--secondary-color);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

/* Summary Section */
.summary-content {
    max-width: 900px;
    margin: 0 auto;
}

.lead-text {
    font-size: 1.25rem;
    text-align: left;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.8;
}

.summary-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.highlight-card {
    background: linear-gradient(145deg, var(--background), rgba(248, 250, 252, 0.9));
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(14, 165, 233, 0.06);
}

.highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(14, 165, 233, 0.12);
    border-color: rgba(14, 165, 233, 0.15);
}

.highlight-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.highlight-card h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.highlight-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

.skill-category h3 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-tag {
    background: var(--background);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Current Employer Header */
.current-employer {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(91, 33, 182, 0.05), rgba(245, 158, 11, 0.05));
    border-radius: 12px;
    border: 1px solid rgba(91, 33, 182, 0.2);
}

.employer-header {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.employer-header a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

.employer-header a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.employer-duration {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.employer-scale {
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 600;
    opacity: 0.9;
}

/* Timeline */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    padding-left: 100px;
    margin-bottom: 3rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 44px;
    top: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 3px solid var(--background);
    box-shadow: 0 0 0 3px var(--border-color);
}

.timeline-date {
    position: absolute;
    left: -150px;
    top: 0;
    width: 180px;
    text-align: right;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.timeline-content {
    background: var(--background);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.timeline-content h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.timeline-content h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 500;
}

.timeline-content h4 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.timeline-content h4 a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.achievements {
    list-style: none;
}

.achievements li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.achievements li::before {
    content: '\2022';  /* Unicode bullet point */
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.achievements strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Show More Button for Timeline */
.show-more-btn {
    display: none;
    margin-top: 1rem;
    padding: 0.5rem 1.25rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 40px;
}

.show-more-btn:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.show-more-btn:active {
    transform: translateY(0);
}

/* Previous Experience */
.previous-experience {
    margin-top: 4rem;
}

.previous-experience h3 {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.expand-section-btn {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.expand-section-btn:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.experience-card {
    background: var(--background-alt);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.experience-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    background: var(--background);
}

.experience-card h4 {
    color: var(--secondary-color);
    margin-bottom: 0.25rem;
}

.experience-card h4 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.experience-card h4 a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.experience-card .role {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.experience-card .date {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.experience-card p {
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.project-card {
    background: var(--background);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.project-card h3 {
    margin-bottom: 1rem;
}

.project-card h3 a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.project-card h3 a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.project-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.project-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.project-link {
    color: var(--primary-color);
    text-decoration: none;
    padding: 0.25rem 0.75rem;
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.project-link:hover {
    background: var(--primary-color);
    color: white;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    background: var(--background-alt);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.85rem;
    border: 1px solid var(--primary-color);
}

/* Education Section */
.education-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
}

.education-section h3 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.education-item {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--background);
    border-radius: 8px;
}

.education-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.education-item p {
    color: var(--text-secondary);
}

.cert-grid {
    display: grid;
    gap: 1rem;
}

.cert-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: var(--background);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.cert-item:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(5px);
}

.cert-item:hover .cert-date,
.cert-item:hover .cert-name {
    color: white;
}

.cert-date {
    font-weight: 600;
    color: var(--primary-color);
    min-width: 50px;
}

.cert-name {
    color: var(--text-secondary);
}

/* Awards */
.awards {
    margin-top: 3rem;
    text-align: center;
}

.awards h3 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.awards-list {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.award-item {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.award-item:hover {
    transform: scale(1.05);
}

/* Contact Section */
.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-text {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background: var(--secondary-color);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

/* Mobile Bottom Navigation */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 0.5rem 0;
    padding-bottom: env(safe-area-inset-bottom, 0.5rem);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem;
    transition: all 0.3s ease;
    flex: 1;
    min-height: 56px;
    position: relative;
}

.bottom-nav-item svg {
    width: 24px;
    height: 24px;
    stroke-width: 2;
    transition: all 0.3s ease;
}

.bottom-nav-item span {
    font-size: 0.7rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.bottom-nav-item.active {
    color: var(--primary-color);
}

.bottom-nav-item.active svg {
    transform: scale(1.1);
}

.bottom-nav-item.active span {
    font-weight: 600;
}

.bottom-nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transition: width 0.3s ease;
    border-radius: 0 0 3px 3px;
}

.bottom-nav-item.active::before {
    width: 60%;
}

/* Download Button Styles */
.btn svg.download-icon {
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
}

/* Floating Download Button */
.floating-download {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(91, 33, 182, 0.3);
    transition: all 0.3s ease;
    z-index: 999;
    text-decoration: none;
    overflow: hidden;
}

.floating-download:hover {
    width: auto;
    padding: 0 20px;
    border-radius: 30px;
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(91, 33, 182, 0.4);
}

.floating-download svg {
    flex-shrink: 0;
}

.floating-text {
    max-width: 0;
    overflow: hidden;
    white-space: nowrap;
    transition: max-width 0.3s ease, margin 0.3s ease;
    font-weight: 600;
}

.floating-download:hover .floating-text {
    max-width: 150px;
    margin-left: 10px;
}

/* Pulse animation for floating button */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(91, 33, 182, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(91, 33, 182, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(91, 33, 182, 0);
    }
}

.floating-download {
    animation: pulse 2s infinite;
}

.floating-download:hover {
    animation: none;
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

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

/* Responsive Design */

/* Tablet and below (768px) */
@media (max-width: 768px) {
    /* Prevent horizontal scroll */
    html, body {
        overflow-x: hidden;
        max-width: 100%;
    }

    /* Show bottom navigation */
    .bottom-nav {
        display: flex;
    }

    /* Add bottom padding to body to account for bottom nav */
    main {
        padding-bottom: 80px;
    }

    /* Footer padding adjustment */
    .footer {
        padding-bottom: 80px;
    }

    /* Navigation - Mobile menu */
    .nav-container {
        padding: 0.75rem 16px;
        width: 100%;
    }

    .nav-brand {
        font-size: 1.3rem;
        flex-shrink: 0;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 60px;
        flex-direction: column;
        background: var(--background);
        width: 100vw;
        max-width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
        gap: 0;
        z-index: 999;
        margin: 0;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-link {
        display: block;
        padding: 1rem;
        font-size: 1.1rem;
        /* Minimum 44px touch target */
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: none;
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* Hero section */
    .hero {
        min-height: auto;
        padding: 100px 20px 30px;
    }

    .hero-title {
        font-size: clamp(1.5rem, 7vw, 3.5rem);
        border-right-width: 2px;
        white-space: normal;
        word-break: break-word;
        animation: none;
        border-right: none;
        display: block;
        max-width: 100%;
    }

    .hero-subtitle {
        font-size: clamp(1.1rem, 4vw, 1.5rem);
    }

    .hero-location {
        font-size: 1rem;
    }

    .hero-stats-compact {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .stat-pill {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 0.75rem 1.5rem;
    }

    /* Hide expertise grid entirely on mobile to save space */
    .hero-expertise {
        display: none;
    }

    /* Section spacing */
    .section {
        padding: 2.5rem 0;
    }

    .section-title {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
        margin-bottom: 2rem;
    }

    /* Summary */
    .lead-text {
        font-size: 0.95rem;
        padding: 0 1rem;
        line-height: 1.5;
        margin-bottom: 1.5rem;
    }

    .summary-highlights {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .highlight-card {
        padding: 1.25rem;
    }

    .highlight-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .highlight-card p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    /* Skills */
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .skill-tags {
        gap: 0.5rem;
    }

    .skill-tag {
        font-size: 0.85rem;
        padding: 0.4rem 0.85rem;
    }

    /* Timeline */
    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        padding-left: 50px;
    }

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

    .timeline-date {
        position: relative;
        left: 0;
        width: auto;
        text-align: left;
        margin-bottom: 0.75rem;
        font-size: 0.85rem;
    }

    .timeline-content {
        padding: 1.5rem;
    }

    .timeline-content h3 {
        font-size: 1.3rem;
    }

    /* Collapsible timeline items on mobile */
    .show-more-btn {
        display: block;
    }

    .achievements[data-collapsed="true"] .collapsible-item {
        display: none;
    }

    .achievements[data-collapsed="false"] .collapsible-item {
        display: list-item;
    }

    /* Education and Certifications */
    .education-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .cert-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    /* Experience Grid */
    .experience-grid {
        grid-template-columns: 1fr;
    }

    /* Hide Previous Experience by default on mobile */
    .experience-grid[data-collapsed="true"] {
        display: none;
    }

    .experience-grid[data-collapsed="false"] {
        display: grid;
    }

    /* Projects - Vertical stack on mobile */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .project-card {
        padding: 1.5rem;
    }

    /* Current employer */
    .employer-header {
        font-size: 1.6rem;
    }

    .employer-duration {
        font-size: 1rem;
    }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
    /* Container padding */
    .container {
        padding: 0 16px;
    }

    /* Navigation */
    .nav-brand {
        font-size: 1.3rem;
    }

    /* Hero */
    .hero {
        padding: 100px 16px 40px;
    }

    .hero-content {
        padding: 0 16px;
        max-width: 100%;
    }

    .hero-title {
        font-size: clamp(1.4rem, 8vw, 2.5rem);
        margin-bottom: 0.75rem;
        white-space: normal;
        word-break: break-word;
        animation: none;
        border-right: none;
        display: block;
    }

    .hero-subtitle {
        font-size: clamp(1rem, 5vw, 1.25rem);
    }

    .hero-location {
        font-size: 0.95rem;
    }

    .hero-links {
        flex-direction: column;
        gap: 0.75rem;
    }

    .btn {
        width: 100%;
        text-align: center;
        padding: 0.875rem 1.25rem;
        /* Ensure 44px min height for touch */
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Expertise Grid - 2 column layout on small mobile */
    .expertise-items {
        gap: 0.5rem;
    }

    .expertise-item {
        flex: 0 1 calc(50% - 0.5rem);
        min-width: 0;
        max-width: 48%;
        padding: 0.6rem 0.5rem;
        font-size: 0.8rem;
        width: calc(50% - 0.5rem);
    }

    /* No hover effects on mobile - prevents overflow */
    .expertise-item:hover {
        transform: none;
        box-shadow: 0 0 20px rgba(65, 105, 225, 0.3), inset 0 0 20px rgba(65, 105, 225, 0.1);
    }

    .expertise-item span {
        font-size: 0.7rem;
        white-space: normal;
        text-align: center;
        line-height: 1.3;
        word-break: break-word;
    }

    /* Section spacing */
    .section {
        padding: 2rem 0;
    }

    .section-title {
        font-size: clamp(1.5rem, 8vw, 2rem);
        margin-bottom: 1.25rem;
    }

    /* Summary */
    .lead-text {
        font-size: 1rem;
        margin-bottom: 2rem;
        padding: 0;
    }

    .summary-highlights {
        gap: 1.25rem;
    }

    .highlight-card {
        padding: 1.5rem;
    }

    .highlight-card h3 {
        font-size: 1.15rem;
    }

    /* Skills */
    .skill-category h3 {
        font-size: 1.25rem;
    }

    .skill-tag {
        font-size: 0.8rem;
        padding: 0.35rem 0.75rem;
    }

    /* Timeline */
    .timeline {
        padding-left: 0;
    }

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

    .timeline-item {
        padding-left: 35px;
        margin-bottom: 2rem;
    }

    .timeline-item::before {
        left: 6px;
        width: 10px;
        height: 10px;
    }

    .timeline-content {
        padding: 1.25rem;
    }

    .timeline-content h3 {
        font-size: 1.15rem;
    }

    .achievements li {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    /* Current employer */
    .current-employer {
        padding: 1.5rem 1rem;
    }

    .employer-header {
        font-size: 1.4rem;
    }

    .employer-duration {
        font-size: 0.95rem;
    }

    .employer-scale {
        font-size: 0.9rem;
    }

    /* Experience cards */
    .experience-card {
        padding: 1.25rem;
    }

    .experience-card h4 {
        font-size: 1.1rem;
    }

    /* Projects */
    .project-card {
        padding: 1.25rem;
    }

    .project-card h3 a {
        font-size: 1.25rem;
    }

    .project-link {
        flex: 1;
        text-align: center;
        padding: 0.5rem;
        min-height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Education & Certifications */
    .education-section h3 {
        font-size: 1.25rem;
    }

    .cert-item {
        padding: 0.6rem 0.85rem;
        flex-direction: row;
        gap: 0.75rem;
    }

    .cert-date {
        min-width: 45px;
        font-size: 0.85rem;
    }

    .cert-name {
        font-size: 0.85rem;
    }

    /* Contact */
    .contact-text {
        font-size: 1.05rem;
        padding: 0;
    }

    .contact-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    /* Awards */
    .awards h3 {
        font-size: 1.25rem;
    }

    .awards-list {
        flex-direction: column;
        gap: 1rem;
    }

    .award-item {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }

    /* Floating download button */
    .floating-download {
        bottom: 16px;
        right: 16px;
        width: 50px;
        height: 50px;
    }

    .floating-download:hover {
        width: 50px;
        padding: 0;
    }

    .floating-text {
        display: none;
    }
}

/* Very small mobile (360px and below) */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .expertise-item {
        flex: 0 1 calc(50% - 0.5rem);
        min-width: 0;
        max-width: 48%;
        padding: 0.5rem 0.4rem;
        width: calc(50% - 0.5rem);
    }

    .expertise-item:hover {
        transform: none;
    }

    .expertise-item span {
        font-size: 0.65rem;
        word-break: break-word;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .btn {
        font-size: 0.95rem;
        padding: 0.75rem 1rem;
    }
}

/* Disable all transform animations on mobile for stability */
@media (max-width: 768px) {
    .highlight-card:hover,
    .experience-card:hover,
    .project-card:hover,
    .skill-tag:hover {
        transform: none;
    }

    /* Keep vertical movement only for cards */
    .highlight-card:hover {
        box-shadow: 0 12px 40px rgba(14, 165, 233, 0.12);
    }

    .experience-card:hover,
    .project-card:hover {
        box-shadow: var(--shadow-lg);
    }
}