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

:root {
    --primary: #0066cc;
    --primary-dark: #004999;
    --text: #1a1a1a;
    --text-light: #666;
    --border: #e0e0e0;
    --bg: #ffffff;
    --bg-alt: #f8f9fa;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Add left margin when sidebar is visible */
@media (min-width: 1201px) {
    .container {
        margin-left: 280px;
        margin-right: auto;
    }
}

/* Fixed Info Sidebar - LEFT SIDE */
.info-sidebar {
    position: fixed;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 25px;
    width: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    z-index: 100;
}

.sidebar-section {
    margin-bottom: 30px;
}

.sidebar-section:last-child {
    margin-bottom: 0;
}

.sidebar-section h3 {
    font-size: 1em;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text);
    border-bottom: 2px solid var(--primary);
    padding-bottom: 6px;
}

.sidebar-item {
    margin-bottom: 15px;
}

.sidebar-item:last-child {
    margin-bottom: 0;
}

.sidebar-item h4 {
    font-size: 0.9em;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
}

.sidebar-role {
    font-size: 0.75em;
    color: var(--text-light);
    margin-bottom: 2px;
}

.sidebar-meta {
    font-size: 0.75em;
    color: #999;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

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

.logo {
    font-size: 1.1em;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.85em;
    font-weight: 500;
    transition: color 0.2s;
}

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

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 90px 40px 30px;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: 0.95em;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.5;
}

.hero-links {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 15px;
}

.btn-primary, .btn-secondary {
    padding: 10px 24px;
    text-decoration: none;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s;
    font-size: 0.85em;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

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

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

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

.hero-meta {
    color: var(--text-light);
    font-size: 0.8em;
}

.hero-meta span {
    margin: 0 5px;
}

/* Section Styles */
section {
    padding: 50px 0;
}

section h2 {
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: center;
}

.section-intro {
    text-align: center;
    color: var(--text-light);
    font-size: 1em;
    margin-bottom: 35px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* About Section */
.about {
    background: var(--bg-alt);
    padding: 40px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

.about-text p {
    margin-bottom: 14px;
    line-height: 1.65;
    color: var(--text);
    font-size: 0.95em;
}

.cv-download {
    display: inline-block;
    margin-top: 12px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9em;
    transition: color 0.2s;
}

.cv-download:hover {
    color: var(--primary-dark);
}

.skills-box {
    background: white;
    padding: 24px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.skills-box h3 {
    font-size: 1.1em;
    margin-bottom: 16px;
}

.skill-category {
    margin-bottom: 16px;
}

.skill-category:last-child {
    margin-bottom: 0;
}

.skill-category h4 {
    font-size: 0.9em;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}

.skill-category p {
    color: var(--text-light);
    font-size: 0.85em;
    line-height: 1.6;
}

/* Projects Section */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.project-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 35px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.project-card h3 {
    font-size: 1.3em;
    font-weight: 600;
    color: var(--text);
}

.project-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
}

.project-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 500;
    white-space: nowrap;
}

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

.project-tech {
    color: var(--primary);
    font-size: 0.85em;
    margin-bottom: 15px;
    font-family: 'Courier New', monospace;
}

.project-desc {
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 20px;
}

.project-results {
    display: flex;
    gap: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.metric {
    display: flex;
    flex-direction: column;
}

.metric-value {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--primary);
}

.metric-label {
    font-size: 0.8em;
    color: var(--text-light);
    margin-top: 2px;
}

/* Experience Section */
.experience {
    background: var(--bg-alt);
}

.timeline {
    max-width: 900px;
    margin: 50px auto;
    position: relative;
}

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

.timeline-item {
    position: relative;
    padding-left: 50px;
    margin-bottom: 50px;
}

.timeline-dot {
    position: absolute;
    left: -5px;
    top: 8px;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    border: 3px solid var(--bg-alt);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.timeline-content h3 {
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 5px;
}

.role {
    color: var(--text-light);
    font-size: 0.95em;
}

.timeline-meta {
    text-align: right;
}

.date {
    display: block;
    color: var(--text-light);
    font-size: 0.9em;
}

.location {
    display: block;
    color: #999;
    font-size: 0.85em;
    margin-top: 2px;
}

.timeline-content ul {
    list-style: none;
}

.timeline-content li {
    padding-left: 20px;
    margin-bottom: 10px;
    position: relative;
    color: var(--text);
}

.timeline-content li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--text-light);
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto;
}

.contact-card {
    background: white;
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    transition: transform 0.2s, border-color 0.2s;
}

.contact-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
}

.contact-card h3 {
    font-size: 1em;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.contact-card p {
    color: var(--primary);
    font-size: 0.95em;
}

/* Footer */
footer {
    background: var(--text);
    color: white;
    text-align: center;
    padding: 40px 0;
}

footer p {
    font-size: 0.9em;
    opacity: 0.8;
}

/* Mobile Responsive */
@media (max-width: 1400px) {
    .info-sidebar {
        left: 20px;
        width: 180px;
        padding: 20px;
    }
}

@media (max-width: 1200px) {
    .info-sidebar {
        display: none;
    }
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container, .nav-container {
        padding: 0 20px;
    }
    
    .nav-container {
        padding: 10px 20px;
    }

    .hero {
        padding: 70px 20px 30px;
    }

    .hero h1 {
        font-size: 2em;
    }

    .hero-subtitle {
        font-size: 0.9em;
    }

    .hero-links {
        flex-direction: column;
        align-items: center;
    }

    .nav-links {
        gap: 16px;
        font-size: 0.8em;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

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

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

    .timeline-dot {
        left: 5px;
    }

    .timeline-header {
        flex-direction: column;
    }

    .timeline-meta {
        text-align: left;
        margin-top: 8px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    section {
        padding: 40px 0;
    }

    section h2 {
        font-size: 1.7em;
    }

    .project-results {
        flex-wrap: wrap;
    }
}
