/* Root Variables */
:root {
    --primary: #2563eb;
    --secondary: #10b981;
    --accent: #8b5cf6;
    --dark: #0f172a;
    --light: #f8fafc;
    --gray: #64748b;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--dark);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Neural Network Background */
#neural-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.3;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: bold;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

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

.nav-link:hover,
.nav-link.active {
    color: var(--accent);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
}

.nav-mobile-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-mobile-toggle span {
    width: 25px;
    height: 3px;
    background: var(--light);
    margin: 3px 0;
    transition: 0.3s;
}

/* Main Content */
.main-content {
    padding-top: 80px;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.hero-content {
    max-width: 1200px;
    text-align: center;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 2rem);
    color: var(--secondary);
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease 0.4s both;
}

/* Hero Section Enhancements */
.hero-stats {
    color: var(--secondary);
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

.hero-highlights {
    display: flex;
    gap: 3rem;
    margin: 3rem 0;
    justify-content: center;
    flex-wrap: wrap;
}

.highlight-item {
    text-align: center;
    animation: fadeInUp 1s ease 0.6s both;
    position: relative;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.highlight-item:hover {
    transform: translateY(-2px);
}

.highlight-number {
    display: block;
    font-size: 3rem;
    font-weight: bold;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition: transform 0.2s ease;
}

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

.highlight-label {
    display: block;
    color: var(--gray);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    transition: color 0.2s ease;
}

.highlight-item:hover .highlight-label {
    color: var(--light);
}

.highlight-detail {
    position: absolute;
    top: calc(100% + 1rem);
    left: 50%;
    transform: translateX(-50%);
    padding: 1.5rem;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 15px;
    font-size: 0.95rem;
    color: var(--light);
    line-height: 1.5;
    width: 280px;
    z-index: 200;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

/* Show on hover */
.highlight-item:hover .highlight-detail {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
    pointer-events: auto;
}

/* Show on click (persistent) */
.highlight-detail.show {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(-50%) translateY(0) scale(1) !important;
    pointer-events: auto !important;
}

/* Arrow pointing up */
.highlight-detail::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid rgba(139, 92, 246, 0.4);
}

.highlight-detail::after {
    content: '';
    position: absolute;
    top: -7px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 7px solid rgba(15, 23, 42, 0.95);
}

.highlight-detail.show {
    max-height: 200px;
    opacity: 1;
}

/* Floating AI Button */
.floating-ask-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--gradient);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
    z-index: 999;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.5s ease;
    transform: translateZ(0);
}

.floating-ask-btn:hover {
    transform: translateY(-3px) scale(1.05) translateZ(0);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.6);
}

.floating-ask-btn:active {
    transform: translateY(-1px) scale(0.98);
}

.floating-ask-btn .btn-text {
    font-size: 1rem;
    font-weight: 600;
}

.floating-ask-btn .btn-icon {
    font-size: 1.3rem;
}

/* Hide main CTA button on home since we have floating button */
#askMeBtn {
    display: none;
}

/* Expertise Grid */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
    position: relative;
    z-index: 1;
}

.expertise-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
    transform: translateZ(0); /* Force GPU layer */
    backface-visibility: hidden; /* Prevent flickering */
    will-change: auto; /* Remove will-change that causes repainting */
}

.expertise-card:hover {
    transform: translateY(-5px) translateZ(0);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.3);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(139, 92, 246, 0.3);
}

.expertise-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.expertise-card h3 {
    color: var(--light);
    margin-bottom: 0.5rem;
}

.expertise-card p {
    color: var(--gray);
    font-size: 0.95rem;
}

.expertise-card ul {
    list-style: none;
    padding: 0;
}

.expertise-card ul li {
    color: var(--gray);
    padding: 0.25rem 0;
    font-size: 0.95rem;
}

/* CTA Button */
.cta-button {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 1s ease 0.8s both;
    margin-top: 2rem;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(139, 92, 246, 0.4);
}

.button-icon {
    font-size: 1.5rem;
}

/* Photos Section */
.photos-section {
    min-height: 100vh;
    padding: 4rem 2rem;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 3rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.photos-container {
    max-width: 1400px;
    margin: 0 auto;
    position: static;
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.photo-wrapper {
    position: static;
    cursor: pointer;
    will-change: transform;
}

.photo-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.photo-item:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.4);
    z-index: 10;
}

.photo-caption {
    text-align: center;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--gray);
    padding: 0 0.5rem;
}

/* Photo Viewer */
.photo-viewer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.photo-viewer.active {
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.3s ease;
}

.viewer-header {
    display: flex;
    justify-content: flex-end;
    padding: 1rem 2rem;
    gap: 1rem;
}

.viewer-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background 0.3s ease;
}

.viewer-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.viewer-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 2rem;
}

.viewer-image {
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transition: opacity 0.3s ease;
}

.viewer-nav {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 2.5rem;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 10px;
}

.viewer-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.prev-btn {
    left: 2rem;
}

.next-btn {
    right: 2rem;
}

.viewer-caption {
    text-align: center;
    padding: 1rem 2rem;
    color: var(--light);
    font-size: 1.1rem;
    background: rgba(0, 0, 0, 0.5);
}

.viewer-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 1rem 2rem 2rem;
}

.control-btn {
    background: var(--gradient);
    border: none;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.control-btn:hover {
    transform: translateY(-2px);
}

/* Chat Sidebar */
.chat-sidebar {
    position: fixed;
    right: -400px;
    top: 80px;
    width: 400px;
    height: calc(100% - 80px);
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(10px);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1500;
    transition: right 0.3s ease, width 0.3s ease;
    display: flex;
    flex-direction: column;
}

.chat-sidebar.active {
    right: 0;
}

.chat-sidebar.expanded {
    width: 800px;
}

.chat-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.chat-expand {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--light);
    padding: 0.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background 0.3s ease;
    display: none;
}

.chat-expand:hover {
    background: rgba(255, 255, 255, 0.2);
}

.chat-header h3 {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    flex: 1;
}

.chat-close {
    background: none;
    border: none;
    color: var(--gray);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
    margin-left: auto;
}

.chat-close:hover {
    color: var(--light);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-welcome {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 10px;
    padding: 1rem;
}

/* Chat Messages - FIXED */
.message {
    padding: 0.8rem 1rem;
    border-radius: 10px;
    max-width: 85%;
    word-wrap: break-word;
    margin-bottom: 0.5rem;
    animation: messageFadeIn 0.3s ease;
}

.message.user {
    background: var(--gradient);
    color: white;
    align-self: flex-end;
    margin-left: auto;
}

.message.assistant {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--light);
    align-self: flex-start;
    margin-right: auto;
}

/* Thinking indicator - FIXED */
.message.assistant.thinking {
    background: transparent !important;
    border: none !important;
    padding: 0.5rem 0 !important;
}

.thinking-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray);
    font-style: italic;
}

.thinking-text {
    animation: thinkingPulse 1.5s ease-in-out infinite;
}

.thinking-dots {
    position: relative;
}

.thinking-dots::after {
    content: '...';
    animation: thinkingDots 1.5s ease-in-out infinite;
}

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

@keyframes thinkingDots {
    0% { content: '.'; }
    33% { content: '..'; }
    66% { content: '...'; }
    100% { content: '.'; }
}

.message.error {
    background: rgba(239, 68, 68, 0.1) !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
    color: #ef4444 !important;
}

.chat-input-container {
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 1rem;
}

.chat-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--light);
    padding: 0.8rem 1rem;
    border-radius: 25px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.chat-input:focus {
    outline: none;
    border-color: var(--accent);
}

.chat-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.chat-send {
    background: var(--gradient);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.chat-send:hover:not(:disabled) {
    transform: scale(1.1);
}

.chat-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.hidden {
    display: none !important;
}

.chat-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1499;
}

.chat-overlay.active {
    display: block;
}

/* Resume Section */
.resume-section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.resume-container {
    animation: fadeInUp 1s ease;
}

.resume-content {
    margin-bottom: 4rem;
}

.job-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.job-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.2);
}

.job-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.job-header h3 {
    color: var(--secondary);
    font-size: 1.5rem;
    flex: 1 1 100%;
}

.company {
    color: var(--accent);
    font-weight: 600;
    font-size: 1.1rem;
}

.dates {
    color: var(--gray);
    margin-left: auto;
}

.job-highlights {
    list-style: none;
    padding: 0;
}

.job-highlights li {
    color: var(--light);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.job-highlights li::before {
    content: '▸';
    color: var(--accent);
    position: absolute;
    left: 0;
}

.job-highlights strong {
    color: var(--secondary);
}

.expertise-section {
    margin: 4rem 0;
}

.education-section {
    margin: 4rem 0;
}

.education-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

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

.education-card p {
    color: var(--gray);
    margin: 0.25rem 0;
}

/* Experience Page Styles */
.experience-page {
    padding: 2rem;
    padding-top: 140px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
}

.page-subtitle {
    color: var(--gray);
    font-size: 1.2rem;
}

.quick-nav {
    position: sticky;
    top: 70px;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(10px);
    padding: 1rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--light);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-pill:hover {
    background: var(--gradient);
    transform: translateY(-2px);
}

.timeline {
    position: relative;
    padding-left: 2rem;
}

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

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

/* Show expand button on desktop */
@media (min-width: 769px) {
    .chat-expand {
        display: block !important;
    }
}

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

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

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes messageFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hide nav brand on home page only */
body.home-page .nav-brand {
    visibility: hidden;
}

/* Contact page centering - FIXED */
.contact-main {
    min-height: calc(100vh - 80px);
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 2rem;
    text-align: center;
}

.contact-container {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
}

/* Responsive Design & Mobile Menu */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(15, 23, 42, 0.98);
        flex-direction: column;
        padding: 1rem 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-link {
        padding: 1rem 2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .nav-mobile-toggle {
        display: flex;
    }
    
    .nav-mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .expertise-grid {
        grid-template-columns: 1fr;
    }
    
    .expertise-card:hover {
        transform: none;
    }
    
    .chat-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .chat-sidebar.expanded {
        width: 100%;
    }
    
    .chat-expand {
        display: none !important;
    }
    
    .floating-ask-btn {
        bottom: 20px;
        right: 20px;
        padding: 0.8rem 1.2rem;
    }
    
    .floating-ask-btn .btn-text {
        font-size: 0.9rem;
    }
    
    .floating-ask-btn .btn-icon {
        font-size: 1.1rem;
    }
    
    .photos-container {
        min-height: 600px;
        padding: 1rem;
    }
    
    .photo-wrapper {
        position: relative !important;
        margin-bottom: 1rem;
    }
    
    .photo-item:hover {
        transform: none;
    }
    
    .viewer-nav {
        font-size: 2rem;
        padding: 0.5rem;
    }
    
    .viewer-controls {
        flex-wrap: wrap;
    }
    
    .job-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .dates {
        margin-left: 0;
    }
    
    .hero-highlights {
        gap: 2rem;
        flex-direction: column;
        align-items: stretch;
    }
    
    .highlight-number {
        font-size: 2rem;
    }
    
    .highlight-item {
        position: relative;
    }
    
    .highlight-detail {
        display: none !important;
    }
    
    .quick-nav {
        flex-direction: column;
        align-items: stretch;
    }
    
    .nav-pill {
        text-align: center;
    }
    
    .contact-main {
        padding: 1rem;
    }
}