/* Import font at the top of the file */
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500;600&display=swap');

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Fira Code', monospace;
    -webkit-tap-highlight-color: transparent;
    outline: none !important;
}

/* Allow text selection only for content */
.content-details p,
.about-text p {
    user-select: text;
    -webkit-user-select: text;
}

button, 
a {
    -webkit-tap-highlight-color: transparent;
    outline: none !important;
}

:root {
    /* Dark theme colors */
    --bg-primary: #0a0a0a;
    --bg-secondary: #0a0a0a;
    --text-primary: #ffffff;
    --text-secondary: #e0e0e0;
    --accent: var(--baby-blue);
    --baby-blue: #79B8FF;
    --navy-blue: #0A192F;
    
    /* Minimal color palette */
    --black: #0a0a0a;
    --black-light: #1a1a1a;
    --grey-dark: #2a2a2a;
    --grey: #404040;
    --grey-light: #808080;
    --white: #ffffff;
    --white-dim: #e0e0e0;
    
    /* Theme colors */
    --primary-color: var(--white);
    --secondary-color: var(--grey-light);
    --text-color: var(--white-dim);
    --background-color: var(--black);
    --section-bg: var(--black-light);
    --card-bg: var(--grey-dark);
    --nav-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #ffffff;
    --text-primary: #0a0a0a;
    --text-secondary: #2a2a2a;
    --accent: var(--navy-blue);
    --highlight-bg: rgba(10, 25, 47, 0.1); /* Add highlight background for light mode */
    
    --primary-color: var(--white);
    --secondary-color: var(--grey-light);
    --text-color: var(--white-dim);
    --background-color: var(--black);
    --section-bg: var(--black-light);
    --card-bg: var(--grey-dark);
    --nav-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

body {
    line-height: 1.6;
    color: var(--text-secondary);
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
    scroll-padding-top: 80px; /* Add offset for fixed header */
}

/* Navigation */
nav {
    background-color: var(--bg-primary);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    height: 70px;
    display: flex;
    align-items: center;
}

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

.nav-left {
    display: flex;
    align-items: center;
    gap: 2rem;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease;
    padding: 0.5rem;
    height: 70px; /* Match nav height */
}

.logo:hover {
    transform: scale(1.05);
}

.logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    transition: all 0.3s ease;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.logo-text {
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
    height: 100%;
}

.nav-links a {
    font-size: 1.1rem;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.social-link {
    color: var(--text-secondary);
    font-size: 1.3rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    text-decoration: none;
}

.social-link:hover {
    color: var(--accent);
    transform: translateY(-2px) scale(1.1);
}

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: none;
    padding: 0.4rem;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-toggle:hover {
    transform: rotate(15deg) scale(1.1);
    color: var(--accent);
}

/* Experience & Education Section */
.experience-education {
    display: flex;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 600px;
}

.side-nav {
    position: sticky;
    top: 100px;
    height: fit-content;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 200px;
}

.side-nav-item {
    padding: 0.75rem 1.25rem;
    background: none;
    border: none;
    border-left: 3px solid transparent;
    color: var(--text-secondary);
    font-size: 1.1rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.8;
    letter-spacing: 0.3px;
}

.side-nav-item::before {
    content: none;
}

.side-nav-item:hover,
.side-nav-item.active {
    color: var(--text-primary);
    border-left-color: var(--accent);
    background-color: var(--text-secondary);
    opacity: 0.1;
}

.content-area {
    flex: 1;
    position: relative;
}

.timeline-content {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.timeline-content.active {
    display: block;
    opacity: 1;
}

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

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

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-bottom: 1rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 0.5rem;
    width: 1rem;
    height: 1rem;
    background-color: var(--primary-color);
    border-radius: 50%;
}

.timeline-header {
    margin-bottom: 1rem;
}

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

.company, .school {
    font-weight: 500;
    margin-right: 1rem;
}

.duration {
    color: var(--grey-light);
    opacity: 0.8;
}

.timeline-details {
    color: var(--text-color);
    line-height: 1.8;
}

.timeline-details p {
    margin-bottom: 0.5rem;
}

.timeline-details .focus {
    color: var(--text-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.hero-content p {
    font-size: 1.5rem;
    color: var(--text-secondary);
    opacity: 0.9;
}

/* Sections */
section {
    padding: 4rem 2rem;
    padding-top: 5rem;
    background-color: var(--bg-primary);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(20px);
}

section:nth-child(even) {
    background-color: var(--bg-primary);
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

.about-content, .experience-timeline, .education-timeline {
    max-width: 1200px;
    margin: 0 auto;
}

h2 {
    font-size: 2rem;
    margin-bottom: 2.5rem;
    text-align: center;
    color: var(--text-primary);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    letter-spacing: 0.5px;
}

section h2::before {
    font-size: 2rem;
    display: inline;
    color: var(--accent);
    margin-right: 0.5rem;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.about-text {
    font-size: 1.2rem;
    line-height: 1.8;
}

.about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-text p:last-child {
    margin-bottom: 0;
}

/* Terminal Styles */
.terminal-section {
    font-family: 'Fira Code', monospace;
}

.terminal-prompt {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.terminal-prompt::before {
    content: "➜";
    margin-right: 0.5rem;
}

.terminal-text {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem;
    border-radius: 0.5rem;
    background: none;
}

.skill-tag {
    position: relative;
    display: inline-block;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    margin-right: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(121, 184, 255, 0.05);
    padding: 0.4rem 1rem;
    border-radius: 4px;
}

[data-theme="light"] .skill-tag {
    background: rgba(64, 64, 64, 0.05);
}

.skill-tag:hover {
    transform: translateX(3px) scale(1.05);
    background: rgba(121, 184, 255, 0.1);
}

[data-theme="light"] .skill-tag:hover {
    background: rgba(64, 64, 64, 0.1);
}

/* Update side navigation for skills */
.terminal-section .side-nav-item {
    color: var(--text-secondary);
    opacity: 0.8;
}

.terminal-section .side-nav-item:hover,
.terminal-section .side-nav-item.active {
    color: var(--text-primary);
    opacity: 1;
}

.terminal-section .content-header {
    border-bottom-color: var(--grey);
}

.terminal-section .content-header h3 {
    color: var(--text-primary);
}

/* Remove old skills styles */
.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Experience Section */
.experience-timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.experience-item {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 0.5rem;
    transition: transform 0.3s ease;
}

.experience-item:hover {
    transform: translateY(-5px);
}

.experience-header {
    margin-bottom: 1rem;
}

.experience-header h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.experience-details {
    list-style-position: inside;
    padding-left: 1rem;
}

.experience-details li {
    margin-bottom: 0.5rem;
}

/* Education Section */
.education-timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.education-item {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 0.5rem;
    transition: transform 0.3s ease;
}

.education-item:hover {
    transform: translateY(-5px);
}

.education-header {
    margin-bottom: 1rem;
}

.education-header h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.education-details {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.education-focus {
    color: var(--terminal-white);
    opacity: 0.8;
}

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

/* Timeline Sections */
.timeline-section {
    padding: 5rem 2rem;
    padding-top: 6rem;
}

.content-wrapper {
    display: flex;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.content-item {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid var(--accent);
    background: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.content-item.active {
    display: block;
    opacity: 1;
}

.content-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.content-header {
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--accent);
    opacity: 0.8;
}

.content-header h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: 0.3px;
}

.content-header h3 a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease;
    opacity: 0.8;
}

.content-header h3 a:hover {
    opacity: 1;
}

.content-header .duration {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    opacity: 0.8;
    letter-spacing: 0.2px;
}

.content-header .company,
.content-header .school {
    display: block;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: var(--text-secondary);
    letter-spacing: 0.2px;
}

.content-header .location {
    display: inline-block;
    color: var(--text-secondary);
    opacity: 0.8;
    font-size: 0.9rem;
    margin-right: 1rem;
}

.content-details {
    color: var(--text-secondary);
    line-height: 1.8;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.content-details p {
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.5rem;
}

.content-details p::before {
    content: "•";
    color: var(--accent);
    position: absolute;
    left: 0;
}

.content-details .focus {
    color: var(--text-secondary);
    font-weight: 500;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle:hover {
    color: var(--accent);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-content {
        padding: 0 1rem;
    }
    
    .nav-left {
        width: auto;
    }

    /* Hide mobile menu toggle and nav links container */
    .mobile-menu-toggle,
    .nav-links-container {
        display: none;
    }

    .nav-right {
        margin-left: auto;
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

    .social-links {
        gap: 0.5rem;
    }

    .social-link {
        font-size: 1.1rem;
    }

    .theme-toggle {
        font-size: 1.2rem;
        padding: 0.25rem;
    }

    .logo-img {
        width: 32px;
        height: 32px;
    }
    
    .logo {
        padding: 0.3rem;
    }

    nav {
        height: 60px;
        padding: 0.5rem 1rem;
    }

    body {
        scroll-padding-top: 60px;
    }

    h2 {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }
    
    .side-nav-item {
        font-size: 0.9rem;
    }

    .experience-education {
        flex-direction: column;
    }

    .side-nav {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        padding: 0 0.4rem 0.8rem;
        gap: 0.4rem;
        width: 100%;
        min-width: 0;
    }

    .side-nav-item {
        border-left: none;
        border-radius: 4px;
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
        text-align: center;
        background-color: var(--bg-secondary);
        border: 1px solid var(--accent);
        opacity: 0.6;
        flex: 0 1 auto;
        min-width: min-content;
        white-space: nowrap;
    }

    .side-nav-item:hover,
    .side-nav-item.active {
        border: 1px solid var(--accent);
        opacity: 1;
        background-color: var(--highlight-bg);
    }

    .content-wrapper {
        flex-direction: column;
        gap: 1rem;
    }

    /* Adjust spacing for the content after the navigation */
    .content-area {
        margin-top: 1rem;
    }

    /* Make the content items take full width */
    .content-item {
        width: 100%;
        margin: 0;
        padding: 1.25rem;
    }

    .timeline {
        padding-left: 1.5rem;
    }

    .timeline-item::before {
        left: -1.5rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
    
    section {
        padding: 3rem 1.5rem;
        padding-top: 4rem;
    }
    
    .skills-list {
        grid-template-columns: 1fr;
    }
    
    .experience-item, .education-item {
        padding: 1.5rem;
    }

    .content-header h3 {
        font-size: 0.9rem;
    }

    .content-header .school {
        font-size: 0.85rem;
        margin-bottom: 0.2rem;
    }

    .content-header .location {
        font-size: 0.85rem;
    }

    .content-header .duration {
        font-size: 0.85rem;
    }

    .content-details p {
        font-size: 0.85rem;
        line-height: 1.7;
    }

    .content-header .company {
        font-size: 0.85rem;
        margin-bottom: 0.2rem;
    }

    .content-header .company a,
    .content-header .school a {
        color: var(--accent);
        text-decoration: none;
        transition: color 0.3s ease;
        opacity: 0.8;
    }

    .content-header .company a:hover,
    .content-header .school a:hover {
        color: var(--accent);
        opacity: 1;
        text-decoration: none;
    }
}

/* Hide logo text on very small screens */
@media (max-width: 360px) {
    .logo-text {
        display: none;
    }
}

/* Animations */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content, section, .content-item {
    animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Section Icons */
section h2::before {
    font-size: 2rem;
    display: inline;
    color: var(--accent);
    margin-right: 0.5rem;
}

#about h2::before {
    content: ">";
}

/* Section Titles */
#experience h2::before {
    content: ">";
    font-size: 2rem;
    display: inline;
    color: var(--accent);
    margin-right: 0.5rem;
}

#education h2::before {
    content: ">";
    font-size: 2rem;
    display: inline;
    color: var(--accent);
    margin-right: 0.5rem;
}

/* Section Headers */
#skills h2::before,
#experience h2::before,
#education h2::before {
    content: ">";
    font-size: 2rem;
    display: inline;
    color: var(--accent);
    margin-right: 0.5rem;
}

/* Skills Section Specific */
.skill-tag {
    position: relative;
    display: inline-block;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    margin-right: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(121, 184, 255, 0.05);
    padding: 0.4rem 1rem;
    border-radius: 4px;
}

.skill-tag:hover {
    transform: translateX(3px) scale(1.05);
    background: rgba(121, 184, 255, 0.1);
}

/* Remove old styles */
.terminal-section,
.terminal-prompt,
.experience-timeline,
.education-timeline,
.experience-item,
.education-item,
.experience-header,
.education-header,
.experience-details,
.education-details {
    /* Remove these classes as they're replaced by shared styles */
}

/* Side nav highlight */
[data-theme="light"] .side-nav-item:hover,
[data-theme="light"] .side-nav-item.active {
    color: var(--text-primary);
    border-left-color: var(--accent);
    background-color: var(--highlight-bg);
    opacity: 1;
}

/* Dark mode highlight remains unchanged */
[data-theme="dark"] .side-nav-item:hover,
[data-theme="dark"] .side-nav-item.active {
    color: var(--text-primary);
    border-left-color: var(--accent);
    background-color: rgba(121, 184, 255, 0.1);
    opacity: 1;
}

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* Content Animation Refinements */
.content-item {
    animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Transitions */
section {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(20px);
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Content Header Refinements */
.content-header {
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
}

.content-header h3 {
    letter-spacing: 0.3px;
}

/* Duration and School Refinements */
.content-header .school,
.content-header .duration {
    letter-spacing: 0.2px;
}

/* Scroll Progress Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, var(--accent) var(--scroll), transparent 0);
    z-index: 1001;
}

/* Error Pages */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

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

.error-content h1 {
    font-size: 6rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.terminal-text {
    text-align: left;
    background: var(--terminal-bg);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
    font-family: 'Courier New', monospace;
}

.command {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.response {
    color: var(--text-color);
    margin-bottom: 1rem;
    padding-left: 1rem;
}

.error-message {
    font-size: 1.2rem;
    margin: 2rem 0;
}

.button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--primary-color);
    color: var(--bg-color);
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: var(--primary-color-dark);
}

/* Performance Optimizations */
img {
    max-width: 100%;
    height: auto;
}

/* Lazy Loading */
img.lazy {
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

img.lazy.loaded {
    opacity: 1;
}

/* Print Styles */
@media print {
    .nav-content,
    .theme-toggle,
    .social-links {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    a {
        text-decoration: none;
        color: #000;
    }
    
    .terminal-window {
        border: 1px solid #ccc;
        box-shadow: none;
    }
}

.content-header .company a,
.content-header .school a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease;
    opacity: 0.8;
}

.content-header .company a:hover,
.content-header .school a:hover {
    color: var(--accent);
    opacity: 1;
    text-decoration: none;
} 