:root {
    --bg-color: #f4f4f5;
    --card-bg-color: #1c1c1e;
    --text-color: #ffffff;
    --primary-text-color: #111827;
    --secondary-text-color: #6b7280;
    --accent-color: #374151;
    --border-color: #e5e7eb;
    --nav-bg-color: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --font-family: 'Inter', sans-serif;
}

/* Basic Reset & Body Styling */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--primary-text-color);
    line-height: 1.6;
}
.top-gradient { position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: linear-gradient(90deg, #111827, #ffffff); }
.container { max-width: 1200px; margin: 0 auto; padding: 2rem; }

/* Header */

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--secondary-text-color);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 2rem;
    transition: color 0.2s;
}

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

.portfolio-header { text-align: center; margin: 2rem 0 4rem 0; }
.portfolio-header h1 { font-size: 2.8rem; font-weight: 700; margin-bottom: 0.5rem; }
.portfolio-header h1 span { color: var(--accent-color); }
.portfolio-header .subtitle { font-size: 1.2rem; color: var(--secondary-text-color); margin-bottom: 1.5rem; }
.portfolio-header .intro-paragraph { max-width: 700px; margin: 0 auto; }

/* General Content Section Styles */
.content-section { margin-bottom: 4rem; }
.content-section h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

/* Experience Timeline */
.timeline { position: relative; padding-left: 30px; }
.timeline::before {
    content: ''; position: absolute; left: 0; top: 5px; bottom: 0; width: 2px;
    background-color: var(--border-color);
}
.timeline-item { position: relative; margin-bottom: 2.5rem; }
.timeline-item::before {
    content: ''; position: absolute; left: -38px; top: 5px; width: 14px; height: 14px;
    background-color: var(--accent-color); border-radius: 50%; border: 2px solid var(--bg-color);
}
.timeline-date { font-size: 0.9rem; font-weight: 500; color: var(--secondary-text-color); margin-bottom: 0.25rem; }
.timeline-position { font-size: 1.2rem; font-weight: 600; margin-bottom: 0.5rem; }
.timeline-description { margin-bottom: 1rem; color: #374151; }

/* Tech Tags (used in Timeline & Skills) */
.tech-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag {
    background-color: #e5e7eb; color: #4b5563; font-size: 0.8rem;
    padding: 0.25rem 0.75rem; border-radius: 999px; font-weight: 500;
}

/* Skills Section */
.skills-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.skill-category h3 { font-size: 1.1rem; margin-bottom: 1rem; }

/* Contact Section */
.contact-links { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 1rem; }
.contact-links a {
    font-weight: 500; color: var(--accent-color); text-decoration: none;
    padding: 0.5rem 0; border-bottom: 2px solid transparent; transition: border-color 0.2s;
}
.contact-links a:hover { border-color: var(--accent-color); }

/* Footer */
.main-footer { text-align: center; padding: 2rem; color: var(--secondary-text-color); font-size: 0.9rem; border-top: 1px solid var(--border-color); }

/* --- DYNAMIC PROJECT GRID & CARD STYLES (from previous file) --- */
.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.no-results-message { grid-column: 1 / -1; text-align: center; color: var(--secondary-text-color); padding: 3rem; font-size: 1.1rem; }
.project-card {
    background-color: var(--card-bg-color); color: var(--text-color); border-radius: 1.25rem;
    padding: 1.5rem; display: flex; flex-direction: column; justify-content: space-between;
    min-height: 220px; transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    position: relative; overflow: hidden;
}
.project-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.card-header { display: flex; justify-content: space-between; align-items: center; color: #a1a1aa; }
.card-category { font-size: 0.8rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; }
.card-content { flex-grow: 1; display: flex; align-items: center; text-align: left; }
.project-card h3 { font-size: 1.5rem; font-weight: 600; }
.card-footer { text-align: right; }
.project-link {
    display: inline-flex; width: 48px; height: 48px; border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2); align-items: center; justify-content: center;
    color: var(--text-color); text-decoration: none; transition: background-color 0.2s;
}
.project-link:hover { background-color: rgba(255, 255, 255, 0.1); }

/* --- FLOATING NAV & SEARCH MODAL STYLES (from previous file, no changes needed) --- */
.floating-nav { position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%); background-color: var(--nav-bg-color); border-radius: 9999px; padding: 0.5rem; display: flex; gap: 0.5rem; box-shadow: 0 4px 12px var(--shadow-color); z-index: 1000; }
.nav-btn { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; border: none; background-color: transparent; color: var(--secondary-text-color); cursor: pointer; transition: background-color 0.2s, color 0.2s; text-decoration: none; }
.nav-btn:hover { background-color: var(--bg-color); color: var(--primary-text-color); }
.tooltip { position: relative; }
.tooltip:before { content: attr(data-tooltip); position: absolute; bottom: 125%; left: 50%; transform: translateX(-50%); padding: 0.5rem 0.75rem; border-radius: 0.375rem; background-color: var(--primary-text-color); color: var(--text-color); font-size: 0.875rem; white-space: nowrap; opacity: 0; visibility: hidden; transition: opacity 0.2s ease, visibility 0.2s ease; pointer-events: none; z-index: 1001; }
.tooltip:hover:before { opacity: 1; visibility: visible; }
.search-modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); display: flex; align-items: flex-start; justify-content: center; padding-top: 10vh; z-index: 2000; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; }
.search-modal-overlay.visible { opacity: 1; visibility: visible; }
.search-modal-content { background: white; padding: 2rem; border-radius: 0.75rem; width: 90%; max-width: 600px; box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1); position: relative; transform: translateY(-20px); transition: transform 0.3s ease; }
.search-modal-overlay.visible .search-modal-content { transform: translateY(0); }
.search-modal-content h2 { margin-bottom: 0.5rem; }
.search-modal-content p { color: var(--secondary-text-color); margin-bottom: 1.5rem; }
#search-input { width: 100%; padding: 0.75rem 1rem; font-size: 1rem; border: 1px solid var(--border-color); border-radius: 0.5rem; margin-bottom: 1rem; }
#search-input:focus { outline: none; border-color: var(--accent-color); box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2); }
.close-modal-btn { position: absolute; top: 1rem; right: 1rem; font-size: 1.5rem; line-height: 1; font-weight: bold; color: var(--secondary-text-color); background: none; border: none; cursor: pointer; }
#filter-results-count { color: var(--secondary-text-color); font-size: 0.9rem; min-height: 1em; }


/* --- Navigation Menu Styles --- */
.nav-menu-wrapper {
    position: relative; /* This is the anchor for the absolute positioned menu */
}

.nav-menu {
    position: absolute;
    bottom: calc(100% + 10px); /* Position above the button with 10px margin */
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--nav-bg-color);
    border-radius: 12px;
    box-shadow: 0 8px 24px var(--shadow-color);
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    width: max-content; /* Make the menu as wide as its longest item */
    z-index: 999;
    
    /* Hidden by default with a transition */
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(10px) scale(0.95);
    transition: opacity 0.2s ease-out, transform 0.2s ease-out, visibility 0.2s;
}

.nav-menu.visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
}

.nav-menu a {
    color: var(--primary-text-color);
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: background-color 0.2s ease;
    text-align: center;
}

.nav-menu a:hover {
    background-color: var(--bg-color);
}

/* Responsiveness */
@media (max-width: 576px) { .container { padding: 1rem; padding-bottom: 8rem; } .portfolio-header h1 { font-size: 2.2rem; } .content-section h2 { font-size: 1.6rem; } }