/* Reset and Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Hide scrollbars globally while keeping scroll functionality */
* {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
}

*::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

:root {
    /* Dark Theme Colors */
    --navy: #0f172a;
    --light-navy: #1e293b;
    --lightest-navy: #334155;
    --slate: #64748b;
    --light-slate: #94a3b8;
    --lightest-slate: #e2e8f0;
    --white: #f8fafc;
    --green: #22d3ee;
    --green-tint: rgba(34, 211, 238, 0.1);
    
    /* Purple-Blue accent colors */
    --purple-blue: #6366f1;
    --purple-blue-light: #8b5cf6;
    --purple-blue-dark: #4f46e5;
    --purple-blue-tint: rgba(99, 102, 241, 0.1);
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'SF Mono', 'Fira Code', 'Fira Mono', 'Roboto Mono', monospace;
    
    /* Transitions */
    --transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
    
    /* Border radius */
    --border-radius: 4px;
}

/* Light Theme */
[data-theme="light"] {
    --navy: #f8fafc;
    --light-navy: #f1f5f9;
    --lightest-navy: #e2e8f0;
    --slate: #475569;
    --light-slate: #334155;
    --lightest-slate: #1e293b;
    --white: #0f172a;
    --green: #6366f1;
    --green-tint: rgba(99, 102, 241, 0.1);
}

/* Light theme comprehensive styling */
[data-theme="light"] {
    /* Enhanced blue-purple color palette */
    --primary-blue: #3b82f6;
    --primary-purple: #8b5cf6;
    --accent-blue: #6366f1;
    --accent-purple: #a855f7;
    --light-blue: #dbeafe;
    --light-purple: #ede9fe;
}

[data-theme="light"] body {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
}

[data-theme="light"] .nav-logo {
    color: var(--primary-blue);
    border-color: var(--primary-blue);
    background: rgba(59, 130, 246, 0.05);
}

[data-theme="light"] .nav-logo:hover {
    color: var(--accent-purple);
    border-color: var(--accent-purple);
    background: rgba(168, 85, 247, 0.1);
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.2);
}

[data-theme="light"] .nav-item:hover,
[data-theme="light"] .nav-item:focus,
[data-theme="light"] .nav-item.active {
    color: var(--primary-purple);
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.4);
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.08) 0%, rgba(59, 130, 246, 0.05) 100%);
}

[data-theme="light"] .nav-item:hover .nav-indicator,
[data-theme="light"] .nav-item:focus .nav-indicator,
[data-theme="light"] .nav-item.active .nav-indicator {
    width: 70px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-purple), var(--primary-blue));
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.4);
}

[data-theme="light"] .profile-image {
    border: 3px solid transparent;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple)) border-box;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
}

[data-theme="light"] .profile-image:hover {
    box-shadow: 
        0 8px 25px rgba(139, 92, 246, 0.3),
        0 4px 15px rgba(59, 130, 246, 0.2),
        inset 0 0 0 3px rgba(168, 85, 247, 0.1);
    transform: scale(1.05);
}

[data-theme="light"] .main-title {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="light"] .resume-link {
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}

[data-theme="light"] .resume-link:hover {
    color: var(--accent-purple);
    border-color: var(--accent-purple);
    background: rgba(168, 85, 247, 0.05);
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.2);
}

[data-theme="light"] .social-link {
    color: var(--primary-blue);
}

[data-theme="light"] .social-link:hover {
    color: var(--accent-purple);
    transform: translateY(-3px);
    filter: drop-shadow(0 6px 12px rgba(168, 85, 247, 0.3));
}

/* Light theme section styling */
[data-theme="light"] .section-title {
    color: var(--primary-blue);
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="light"] .experience-link,
[data-theme="light"] .project-external-link {
    color: var(--primary-purple);
}

[data-theme="light"] .experience-link:hover,
[data-theme="light"] .project-external-link:hover {
    color: var(--accent-blue);
    text-shadow: 0 0 8px rgba(59, 130, 246, 0.3);
}

[data-theme="light"] .experience-technologies li,
[data-theme="light"] .project-technologies li {
    background: linear-gradient(135deg, #dbeafe, #ede9fe);
    color: var(--primary-purple);
    border: 1px solid rgba(139, 92, 246, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
}

[data-theme="light"] .experience-technologies li:hover,
[data-theme="light"] .project-technologies li:hover {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
    border-color: var(--accent-purple);
    font-weight: 600;
}

[data-theme="light"] .form-submit {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    border: none;
    color: white;
}

[data-theme="light"] .form-submit:hover {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

[data-theme="light"] .archive-link,
[data-theme="light"] .contact-email {
    color: var(--primary-blue);
}

[data-theme="light"] .archive-link:hover,
[data-theme="light"] .contact-email:hover {
    color: var(--accent-purple);
    text-shadow: 0 0 8px rgba(168, 85, 247, 0.3);
}

[data-theme="light"] .scroll-progress-bar {
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-purple));
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

[data-theme="light"] .contact-form {
    background: rgba(248, 250, 252, 0.8);
    border: 1px solid rgba(99, 102, 241, 0.2);
    box-shadow: 
        0 8px 32px rgba(99, 102, 241, 0.1),
        0 4px 16px rgba(139, 92, 246, 0.05);
    backdrop-filter: blur(10px);
}

[data-theme="light"] .form-input,
[data-theme="light"] .form-textarea {
    background: rgba(255, 255, 255, 0.7);
    border: 2px solid rgba(99, 102, 241, 0.2);
    color: var(--light-slate);
}

[data-theme="light"] .form-input:focus,
[data-theme="light"] .form-textarea:focus {
    border-color: var(--primary-purple);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 
        0 0 0 3px rgba(139, 92, 246, 0.1),
        0 0 20px rgba(139, 92, 246, 0.15);
}

[data-theme="light"] .form-input:hover,
[data-theme="light"] .form-textarea:hover {
    border-color: rgba(99, 102, 241, 0.4);
}

[data-theme="light"] .form-label {
    color: var(--primary-blue);
    font-weight: 600;
}

[data-theme="light"] .nav {
    background-color: rgba(248, 250, 252, 0.9);
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
}

/* Additional light theme hover effects */
[data-theme="light"] .nav-logo:focus {
    outline: 2px solid var(--accent-purple);
    outline-offset: 2px;
}

[data-theme="light"] .main-subtitle {
    color: var(--primary-blue);
}

[data-theme="light"] .main-description {
    color: var(--slate);
}

[data-theme="light"] strong {
    color: var(--primary-purple);
}

[data-theme="light"] .intro-text strong {
    color: var(--primary-blue);
}

[data-theme="light"] .experience-date {
    color: var(--primary-purple);
}

[data-theme="light"] .project-card {
    background: rgba(248, 250, 252, 0.8);
    border: 1px solid rgba(139, 92, 246, 0.1);
}

[data-theme="light"] .project-card:hover {
    background: rgba(237, 233, 254, 0.5);
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.2);
}

[data-theme="light"] .external-link-icon {
    color: var(--primary-blue);
}

[data-theme="light"] .experience-link:hover .external-link-icon,
[data-theme="light"] .project-external-link:hover .external-link-icon {
    color: var(--accent-purple);
}

[data-theme="light"] .form-input,
[data-theme="light"] .form-textarea {
    background: rgba(248, 250, 252, 0.8);
    border: 2px solid rgba(139, 92, 246, 0.2);
    color: var(--slate);
}

[data-theme="light"] .form-input:focus,
[data-theme="light"] .form-textarea:focus {
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

[data-theme="light"] .form-label {
    color: var(--primary-blue);
}

[data-theme="light"] .footer {
    background: rgba(248, 250, 252, 0.9);
    border-top: 1px solid rgba(139, 92, 246, 0.1);
}

[data-theme="light"] .footer-text,
[data-theme="light"] .footer-copy {
    color: var(--slate);
}

/* Light theme mouse glow effect */
[data-theme="light"] .mouse-glow {
    /* Brighter white-forward glow with fully softened edges */
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.16) 0%,
        rgba(255, 255, 255, 0.10) 30%,
        rgba(255, 255, 255, 0.06) 60%,
        rgba(255, 255, 255, 0.03) 82%,
        rgba(255, 255, 255, 0.0) 96%,
        rgba(255, 255, 255, 0.0) 100%
    );
}

/* Light theme experience hover fixes */
[data-theme="light"] .experience-item:hover {
    background: rgba(237, 233, 254, 0.3);
    border-radius: 8px;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.15);
}

[data-theme="light"] .experience-item {
    transition: all 0.3s ease;
    padding: 20px;
    margin: -10px;
}

[data-theme="light"] .experience-title:hover,
[data-theme="light"] .experience-link:hover {
    color: var(--accent-purple);
}

[data-theme="light"] .position-title {
    color: var(--primary-blue);
    font-weight: 600;
}

/* Light theme project card hover improvements */
[data-theme="light"] .project-main-title:hover {
    color: var(--accent-purple);
}

/* Light theme general hover improvements */
[data-theme="light"] .nav-link:hover {
    color: var(--accent-purple);
    background: rgba(139, 92, 246, 0.1);
}

[data-theme="light"] .contact-description {
    color: var(--slate);
}

html {
    scroll-behavior: smooth;
}

*, *::before, *::after {
    scroll-behavior: smooth;
}

.right-column {
    scroll-behavior: smooth;
}

html, body {
    height: 100%;
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--slate);
    background-color: var(--navy);
    overflow: hidden; /* Lock page scroll; right column will scroll */
    overscroll-behavior: none;
    position: relative;
    /* Hide scrollbar for Chrome, Safari and Opera */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
}

/* Hide scrollbar for Chrome, Safari and Opera */
body::-webkit-scrollbar {
    display: none;
}

/* Mouse Glow Effect */
.mouse-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 650px;
    height: 650px;
    /* Dark theme default glow (white-toned) with fully softened edges */
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.18) 0%,
        rgba(255, 255, 255, 0.10) 30%,
        rgba(255, 255, 255, 0.05) 60%,
        rgba(255, 255, 255, 0.02) 80%,
        rgba(255, 255, 255, 0.0) 95%,
        rgba(255, 255, 255, 0.0) 100%
    );
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%, -50%);
    filter: blur(40px);
    will-change: transform, opacity;
    transition: opacity 0.3s ease;
    opacity: 0;
}

/* Touch device optimizations */
@media (pointer: coarse) {
    .mouse-glow {
        display: none !important;
    }
    
    /* Larger touch targets for mobile */
    .nav-link,
    .social-link,
    .project-link,
    .form-submit,
    .theme-toggle,
    .nav-toggle {
        min-height: 48px;
        min-width: 48px;
    }
    
    /* Remove hover effects on touch devices */
    .nav-item:hover,
    .social-link:hover,
    .project-item:hover,
    .form-submit:hover {
        transform: none;
    }
    
    /* Improve touch feedback */
    .nav-link:active,
    .social-link:active,
    .project-link:active,
    .form-submit:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
}

/* Scroll Progress Bar */
.scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(100, 255, 218, 0.1);
    z-index: 1000;
    pointer-events: none; /* Don't block scrolling when hovering near the top edge */
}

.scroll-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--green) 0%, #00d4ff 50%, var(--green) 100%);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(100, 255, 218, 0.5);
}

/* Navigation (hidden - using social area for theme toggle) */
.nav {
    display: none;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: 1600px;
    margin: 0 auto;
}

/* Hide mobile nav elements on desktop, but keep theme toggle */
.nav-links,
.nav-toggle {
    display: none;
}

.nav-logo {
    color: var(--green);
    font-family: var(--font-mono);
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
    border: 2px solid var(--green);
    padding: 6px 10px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

/* Theme Toggle Button - now in resume section */
.theme-toggle {
    position: relative;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(100, 255, 218, 0.2);
    border-radius: 6px;
    background: rgba(100, 255, 218, 0.05);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--slate);
}

.theme-toggle:hover {
    color: var(--green);
    background: rgba(100, 255, 218, 0.1);
    border-color: var(--green);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(100, 255, 218, 0.2);
}

.theme-icon {
    position: absolute;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-icon.sun-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.theme-icon.moon-icon {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

[data-theme="light"] .theme-icon.sun-icon {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

[data-theme="light"] .theme-icon.moon-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* Light theme theme toggle styling */
[data-theme="light"] .theme-toggle {
    color: var(--primary-blue);
    background: rgba(99, 102, 241, 0.05);
    border-color: rgba(99, 102, 241, 0.2);
}

[data-theme="light"] .theme-toggle:hover {
    color: var(--accent-purple);
    background: rgba(139, 92, 246, 0.1);
    border-color: var(--accent-purple);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.2);
}

/* Main Layout - Two Column */
.portfolio-container {
    display: flex;
    min-height: 100vh;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 50px;
}

/* Left Column - Fixed Header */
.left-column {
    position: sticky;
    top: 0;
    width: 50%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 100px 50px 100px 0;
}

.header-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

.main-title {
    font-size: clamp(48px, 8vw, 80px);
    font-weight: 700;
    color: var(--lightest-slate);
    line-height: 1.1;
    margin-bottom: 10px;
}

.main-subtitle {
    font-size: clamp(20px, 4vw, 24px);
    font-weight: 500;
    color: var(--light-slate);
    line-height: 1.3;
    margin-bottom: 20px;
}

.main-description {
    font-size: 20px;
    color: var(--slate);
    line-height: 1.6;
    margin-bottom: 50px;
    max-width: 400px;
}

/* Profile Section */
.profile-section {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.profile-image-container {
    flex-shrink: 0;
}

.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 3px solid rgba(100, 255, 218, 0.3);
    transition: all 0.4s ease;
    filter: brightness(1);
    position: relative;
}

.profile-image:hover {
    filter: brightness(1.1);
    border-color: var(--green);
    box-shadow: 0 0 30px rgba(100, 255, 218, 0.6),
                0 0 60px rgba(100, 255, 218, 0.3),
                0 8px 32px rgba(0, 0, 0, 0.3);
    transform: scale(1.08);
}

.profile-text {
    flex: 1;
    min-width: 0;
}

/* Navigation Menu in Left Column */
.main-nav {
    margin-bottom: auto;
    margin-top: 50px;
}

.nav-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    text-decoration: none;
    color: var(--slate);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: var(--transition);
    position: relative;
    font-family: var(--font-mono);
}

.nav-indicator {
    width: 25px;
    height: 2px;
    background-color: var(--slate);
    margin-right: 15px;
    transition: all 0.3s ease;
}

.nav-item:hover,
.nav-item.active {
    color: var(--lightest-slate);
    text-shadow: 0 0 10px rgba(100, 255, 218, 0.3);
    background: linear-gradient(90deg, rgba(100, 255, 218, 0.08) 0%, transparent 100%);
    border-radius: 4px;
}

.nav-item:hover .nav-indicator,
.nav-item.active .nav-indicator {
    width: 70px;
    height: 2px;
    background-color: var(--green);
    box-shadow: 0 0 12px rgba(100, 255, 218, 0.6);
}

/* Accessible focus without glow; only when using keyboard */
.nav-item:focus {
    outline: none;
}
.nav-item:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 2px;
}
.nav-link:focus {
    outline: none;
}
.nav-link:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 2px;
}

/* Resume Section */
.resume-section {
    margin-top: 40px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.resume-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(100, 255, 218, 0.1);
    border: 1px solid rgba(100, 255, 218, 0.2);
    border-radius: 6px;
    color: var(--green);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    font-family: var(--font-mono);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.resume-link:hover {
    background: rgba(100, 255, 218, 0.15);
    border-color: var(--green);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(100, 255, 218, 0.2);
}

.resume-link:hover .resume-icon {
    transform: translate(2px, -2px);
}

.resume-text {
    position: relative;
    z-index: 2;
}

.resume-icon {
    transition: transform 0.3s ease;
}

.resume-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(100, 255, 218, 0.1), transparent);
    transition: left 0.5s ease;
}

.resume-link:hover::before {
    left: 100%;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 20px;
    margin-top: 50px;
}

.social-link {
    color: var(--slate);
    transition: var(--transition);
    padding: 5px;
}

.social-link:hover,
.social-link:focus {
    color: var(--lightest-slate);
    transform: translateY(-3px);
}

/* Right Column - Scrollable Content */
.right-column {
    width: 50%;
    padding: 100px 0 100px 50px;
    height: 100vh; /* Ensure this is the scroll container */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    overscroll-behavior: contain; /* Prevent scroll chaining */
}

.content-section {
    margin-bottom: 100px;
    padding-top: 100px;
    margin-top: -100px; /* Offset for scroll positioning */
}

.section-content {
    max-width: 500px;
}

/* About Section */
.intro-text {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: var(--light-slate);
}

.content-section p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 24px;
    color: var(--slate);
    max-width: 600px;
}

.content-section a {
    color: var(--green);
    text-decoration: none;
    position: relative;
}

.content-section a:hover {
    text-decoration: underline;
}

/* Section Titles */
.section-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--lightest-slate);
    margin-bottom: 30px;
    text-decoration: none;
    display: block;
}

.section-title:not(a) {
    color: var(--lightest-slate);
}

/* Experience Section */
.experience-item {
    margin-bottom: 50px;
    padding: 20px 0;
}

.experience-header {
    margin-bottom: 10px;
}

.experience-period {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--green);
    margin-bottom: 5px;
    font-family: var(--font-mono);
}

.experience-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
}

.experience-link {
    color: var(--lightest-slate);
    text-decoration: none;
    transition: var(--transition);
}

.experience-link:hover {
    color: var(--green);
}

.experience-description {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: var(--slate);
}

.experience-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
}

.experience-technologies li {
    font-size: 14px;
    color: rgba(100, 255, 218, 0.9);
    background: rgba(100, 255, 218, 0.1);
    border: 1px solid rgba(100, 255, 218, 0.2);
    padding: 6px 12px;
    border-radius: 20px;
    font-family: var(--font-mono);
    font-weight: 500;
    transition: all 0.2s ease;
}

.experience-technologies li:hover {
    background: rgba(100, 255, 218, 0.2);
    border-color: rgba(100, 255, 218, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(100, 255, 218, 0.2);
}

/* Projects Section */
.project-item {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
    padding: 20px 0;
    transition: var(--transition);
}

.project-item:hover {
    background-color: rgba(100, 116, 139, 0.05);
    margin: 20px -20px;
    padding: 20px;
    border-radius: var(--border-radius);
}

.project-image {
    flex: 0 0 100px;
    height: 60px;
    overflow: hidden;
    border-radius: var(--border-radius);
    border: 1px solid var(--lightest-navy);
}

.project-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    filter: grayscale(100%) contrast(1) brightness(80%);
}

.project-item:hover .project-screenshot {
    filter: none;
}

.project-content {
    flex: 1;
}

.project-content-full {
    width: 100%;
}

/* Override grid layout for projects without date column */
.project-card:has(.project-content-full) {
    grid-template-columns: 1fr;
    gap: 0;
}

/* Project Header Link Styling */
.project-main-title a,
.project-external-link {
    color: var(--lightest-slate);
    text-decoration: none;
    transition: color 0.3s ease;
}

.project-main-title a:hover,
.project-external-link:hover {
    color: var(--green);
}

.project-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.project-link {
    color: var(--lightest-slate);
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.project-link:hover {
    color: var(--green);
}

.external-link-icon {
    width: 12px;
    height: 12px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.project-description {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 20px;
    color: var(--slate);
    max-width: 600px;
}

.project-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin-bottom: 10px;
}

.project-technologies li {
    font-size: 14px;
    color: rgba(100, 255, 218, 0.9);
    background: rgba(100, 255, 218, 0.1);
    border: 1px solid rgba(100, 255, 218, 0.2);
    padding: 6px 12px;
    border-radius: 20px;
    font-family: var(--font-mono);
    font-weight: 500;
    transition: all 0.2s ease;
}

.project-technologies li:hover {
    background: rgba(100, 255, 218, 0.2);
    border-color: rgba(100, 255, 218, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(100, 255, 218, 0.2);
}

.project-links {
    display: flex;
    gap: 10px;
}

.project-icon {
    color: var(--slate);
    transition: var(--transition);
    padding: 2px;
}

.project-icon:hover {
    color: var(--lightest-slate);
}

.projects-archive {
    margin-top: 50px;
}

.archive-link {
    color: var(--lightest-slate);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.archive-link:hover {
    color: var(--green);
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    position: relative;
    z-index: 10;
}

.nav-toggle-line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--green);
    margin: 3px 0;
    transition: var(--transition);
    transform-origin: center;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .portfolio-container {
        padding: 0 30px;
        gap: 30px;
    }
    
    .left-column {
        padding: 80px 30px 80px 0;
    }
    
    .right-column {
        padding: 80px 0 80px 30px;
    }
}

@media (max-width: 1024px) {
    .portfolio-container {
        padding: 0 25px;
        gap: 25px;
    }
    
    .left-column {
        padding: 70px 25px 70px 0;
    }
    
    .right-column {
        padding: 70px 0 70px 25px;
    }
    
    .main-title {
        font-size: clamp(40px, 6vw, 60px);
    }
    
    .main-subtitle {
        font-size: clamp(18px, 3vw, 24px);
    }
}

@media (max-width: 768px) {
    body {
        overflow-x: hidden; /* Prevent horizontal scroll */
    }
    
    .portfolio-container {
        flex-direction: column;
        padding: 0 20px;
        gap: 0;
    }
    
    .left-column {
        position: static;
        width: 100%;
        height: auto;
        padding: 40px 0;
        min-height: auto;
    }
    
    .header-content {
        text-align: center;
    }
    
    .profile-section {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .profile-image-container {
        order: -1; /* Move image above text */
    }
    
    .profile-image {
        width: 120px;
        height: 120px;
    }
    
    .main-nav {
        display: none; /* Hide main nav on mobile, use top nav instead */
    }
    
    .social-links {
        justify-content: center;
        margin-top: 25px;
        gap: 20px;
    }
    
    .right-column {
        width: 100%;
        padding: 20px 0 80px 0;
        height: auto;
        overflow-y: visible;
    }
    
    .content-section {
        margin-bottom: 50px;
        padding-top: 50px;
        margin-top: -50px;
    }
    
    .project-item {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }
    
    .project-image {
        flex: none;
        height: 180px;
        width: 100%;
        margin-bottom: 15px;
    }
    
    .nav-toggle {
        display: flex;
        background: none;
        border: none;
        cursor: pointer;
        padding: 8px;
        z-index: 1001;
        position: relative;
        width: 40px;
        height: 40px;
        justify-content: center;
        align-items: center;
        border-radius: 4px;
        transition: var(--transition);
    }
    
    .nav-toggle:hover {
        background: var(--green-tint);
    }
    
    .nav-toggle:focus {
        outline: 2px solid var(--green);
        outline-offset: 2px;
    }
    
    .nav-toggle-line {
        transition: all 0.3s ease;
        transform-origin: center;
    }
    
    /* Hamburger menu animation */
    .nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: min(75vw, 300px);
        height: 100vh;
        background: var(--light-navy);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
        z-index: 1000;
        gap: 30px;
        list-style: none;
        padding: 0;
        margin: 0;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
    }
    
    .nav-links.active {
        transform: translateX(0);
    }
    
    .nav-link {
        font-size: 18px;
        padding: 15px 20px;
        color: var(--lightest-slate);
        text-decoration: none;
        font-family: var(--font-mono);
        font-weight: 400;
        transition: var(--transition);
        border-radius: 4px;
        width: 200px;
        text-align: center;
        position: relative;
    }
    
    .nav-link:hover,
    .nav-link:focus {
        color: var(--green);
        background: var(--green-tint);
        transform: translateY(-2px);
    }
    
    .nav-link::before {
        content: counter(item, decimal-leading-zero) ".";
        counter-increment: item;
        font-size: 14px;
        color: var(--green);
        display: block;
        margin-bottom: 5px;
    }
    
    /* Mobile overlay when menu is open */
    body.nav-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        backdrop-filter: blur(2px);
        pointer-events: none; /* Allow scrolling through overlay */
    }
    
    /* Enhanced touch targets */
    .social-link,
    .nav-link,
    .nav-toggle,
    .theme-toggle {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .social-link {
        padding: 12px;
        border-radius: 8px;
        transition: var(--transition);
    }
    
    .social-link:hover,
    .social-link:focus {
        background: var(--green-tint);
        transform: translateY(-3px);
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: clamp(28px, 8vw, 44px);
        line-height: 1.1;
    }
    
    .main-subtitle {
        font-size: clamp(16px, 4vw, 20px);
        margin-bottom: 15px;
    }
    
    .main-description {
        font-size: 15px;
        line-height: 1.6;
    }
    
    .portfolio-container {
        padding: 0 15px;
    }
    
    .left-column {
        padding: 30px 0;
    }
    
    .right-column {
        padding: 15px 0 60px 0;
    }
    
    .content-section {
        margin-bottom: 40px;
        padding-top: 40px;
        margin-top: -40px;
    }
    
    .section-title {
        font-size: clamp(24px, 6vw, 32px);
        margin-bottom: 20px;
    }
    
    .project-item {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .project-image {
        height: 150px;
        margin-bottom: 12px;
    }
    
    .project-title {
        font-size: 18px;
        margin-bottom: 8px;
    }
    
    .project-description {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 12px;
    }
    
    .tech-list {
        gap: 8px;
        margin-bottom: 12px;
    }
    
    .tech-item {
        font-size: 12px;
        padding: 4px 8px;
    }
    
    .project-links {
        gap: 15px;
    }
    
    .nav-links {
        width: min(85vw, 280px);
        gap: 25px;
    }
    
    .nav-link {
        font-size: 16px;
        padding: 12px 15px;
        width: 180px;
    }
    
    .nav-link::before {
        font-size: 12px;
        margin-bottom: 3px;
    }
    
    .social-links {
        gap: 15px;
        margin-top: 20px;
    }
    
    .social-link {
        padding: 10px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-input,
    .form-textarea {
        font-size: 16px; /* Prevent zoom on iOS */
        padding: 12px 15px;
    }
    
    .form-submit {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .experience-item {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .experience-title {
        font-size: 16px;
    }
    
    .experience-company {
        font-size: 14px;
    }
    
    .experience-period {
        font-size: 12px;
    }
    
    .about-content p {
        font-size: 15px;
        line-height: 1.6;
        margin-bottom: 15px;
    }
}

/* Extra small devices */
@media (max-width: 375px) {
    .portfolio-container {
        padding: 0 10px;
    }
    
    .main-title {
        font-size: clamp(24px, 7vw, 36px);
    }
    
    .main-subtitle {
        font-size: clamp(14px, 4vw, 18px);
    }
    
    .main-description {
        font-size: 14px;
    }
    
    .nav-links {
        width: 90vw;
    }
    
    .nav-link {
        width: 160px;
        padding: 10px 12px;
    }
    
    .project-image {
        height: 130px;
    }
}

/* Smooth scrolling and performance */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --navy: #000000;
        --light-navy: #1a1a1a;
        --lightest-navy: #333333;
        --slate: #cccccc;
        --light-slate: #e6e6e6;
        --lightest-slate: #ffffff;
        --white: #ffffff;
        --green: #00ff00;
    }
}

/* Focus styles for better accessibility */
*:focus {
    outline: 2px solid var(--green);
    outline-offset: 2px;
}

/* Selection styles */
::selection {
    background-color: var(--green);
    color: var(--navy);
}

/* Contact Form Styling */
.contact-form {
    max-width: 600px;
    margin: 40px 0;
    background: rgba(30, 41, 59, 0.4);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid rgba(100, 255, 218, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--lightest-slate);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 16px 20px;
    background: rgba(15, 23, 42, 0.8);
    border: 2px solid rgba(100, 255, 218, 0.2);
    border-radius: 8px;
    color: var(--lightest-slate);
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
    resize: vertical;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--slate);
    opacity: 0.7;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--green);
    background: rgba(15, 23, 42, 0.9);
    box-shadow: 0 0 0 3px rgba(100, 255, 218, 0.1),
                0 0 20px rgba(100, 255, 218, 0.2);
    transform: translateY(-2px);
}

.form-input:hover,
.form-textarea:hover {
    border-color: rgba(100, 255, 218, 0.4);
}

.form-textarea {
    min-height: 120px;
    line-height: 1.6;
}

.form-submit {
    background: linear-gradient(135deg, var(--green) 0%, #00d4ff 100%);
    color: var(--navy);
    border: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(100, 255, 218, 0.3);
    display: block;
    margin: 24px auto 0;
    width: fit-content;
}

.form-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(100, 255, 218, 0.4);
}

.form-submit:active {
    transform: translateY(-1px);
}

.form-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.form-submit:hover::before {
    left: 100%;
}

/* Contact Direct Info */
.contact-direct {
    margin-top: 40px;
    text-align: center;
    padding: 30px;
    background: rgba(100, 255, 218, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(100, 255, 218, 0.1);
}

.contact-direct p {
    color: var(--slate);
    margin-bottom: 15px;
    font-size: 14px;
}

.contact-email {
    color: var(--green);
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.contact-email:hover {
    color: var(--lightest-slate);
    text-shadow: 0 0 10px rgba(100, 255, 218, 0.5);
}

.contact-email::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--green);
    transition: width 0.3s ease;
}

.contact-email:hover::after {
    width: 100%;
}

/* Form Error States */
.form-input.error,
.form-textarea.error {
    border-color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
}

.field-error {
    color: #ff6b6b;
    font-size: 12px;
    margin-top: 4px;
    display: flex;
    align-items: center;
}

.field-error::before {
    content: '⚠';
    margin-right: 4px;
}

/* Form Success/Error Messages */
.form-message {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}

.form-message.success {
    background: rgba(100, 255, 218, 0.1);
    color: var(--green);
    border: 1px solid rgba(100, 255, 218, 0.3);
}

.form-message.error {
    background: rgba(255, 107, 107, 0.1);
    color: #ff6b6b;
    border: 1px solid rgba(255, 107, 107, 0.3);
}

/* Experience and Project Hover Effects */
.experience-item,
.project-card {
    transition: all 0.3s ease;
    padding: 24px;
    border-radius: 8px;
    position: relative;
    cursor: pointer;
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 40px;
    align-items: flex-start;
    margin-bottom: 48px;
    min-height: 120px;
}

.experience-item:hover,
.project-card:hover {
    background: rgba(100, 255, 218, 0.08);
    box-shadow: 0 6px 30px rgba(100, 255, 218, 0.15);
    transform: translateY(-3px);
}

/* Experience Date Column */
.experience-date {
    font-size: 13px;
    font-weight: 500;
    color: var(--slate);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: sticky;
    top: 20px;
    line-height: 1.2;
    padding-top: 4px;
}

/* Experience Content Column */
.experience-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.experience-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.experience-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--lightest-slate);
    line-height: 1.4;
    margin: 0;
    transition: color 0.3s ease;
}

.experience-link {
    color: var(--lightest-slate);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.experience-link:hover {
    color: var(--green);
}

.external-link-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.experience-link:hover .external-link-icon {
    transform: translate(2px, -2px);
}

.experience-positions {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.position-title {
    font-size: 16px;
    color: var(--slate);
    font-weight: 400;
}

.experience-company {
    font-size: 16px;
    color: var(--green);
    font-weight: 500;
    text-decoration: none;
}

/* Project Cards */
.project-date {
    font-size: 13px;
    font-weight: 500;
    color: var(--slate);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: sticky;
    top: 20px;
    line-height: 1.2;
    padding-top: 4px;
}

.project-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.project-link {
    color: var(--lightest-slate);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: var(--green);
}

.project-companies {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.project-company {
    font-size: 14px;
    color: var(--slate);
    font-weight: 400;
}

.experience-description {
    color: var(--slate);
    line-height: 1.7;
    font-size: 16px;
    max-width: 600px;
}

.experience-description p {
    margin: 0;
    margin-bottom: 16px;
}

.experience-item:hover .experience-title,
.project-card:hover .project-title .project-link {
    color: var(--green);
    text-shadow: 0 0 8px rgba(100, 255, 218, 0.3);
}

.experience-item:hover .experience-technologies li,
.project-card:hover .project-technologies li {
    background: rgba(100, 255, 218, 0.15);
    color: var(--lightest-slate);
    border-color: rgba(100, 255, 218, 0.3);
}

/* Enhanced Technology Tags */
.experience-technologies,
.project-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.experience-technologies li,
.project-technologies li {
    list-style: none;
    padding: 4px 12px;
    background: rgba(100, 255, 218, 0.1);
    color: var(--green);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    font-family: var(--font-mono);
    transition: all 0.3s ease;
    border: 1px solid rgba(100, 255, 218, 0.1);
}

/* Project Cards Specific Hover Effects */
.project-card:hover .project-icon {
    color: var(--green);
    transform: scale(1.1);
}

.project-card:hover .project-description {
    color: var(--lightest-slate);
}

/* Footer */
.footer {
    padding: 40px 0;
    margin-top: 80px;
    border-top: 1px solid var(--lightest-navy);
}

.footer-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.footer-text {
    font-size: 14px;
    color: var(--slate);
    margin-bottom: 8px;
}

.footer-copy {
    font-size: 12px;
    color: var(--light-slate);
    font-family: var(--font-mono);
}