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

:root {
    --primary: #e1e1e1;
    --secondary: #00d4aa;
    --accent: #00b894;
    --text: #e1e1e1;
    --text-light: #a0a0a0;
    --bg: #0d1117;
    --bg-alt: #161b22;
    --bg-card: #1c2128;
    --border: #30363d;
    --glow: rgba(0, 212, 170, 0.15);
}

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

.container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg);
    min-height: 100vh;
}

/* Header */
.header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(0, 212, 170, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.profile-pic {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--secondary);
    box-shadow: 0 0 30px var(--glow), 0 4px 20px rgba(0, 0, 0, 0.4);
    margin-bottom: 1.25rem;
}

.header h1 {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
    position: relative;
}

.tagline {
    font-size: 1.25rem;
    color: var(--secondary);
    margin-bottom: 1.25rem;
    font-weight: 500;
}

.contact {
    font-size: 0.95rem;
    color: var(--text-light);
}

.contact a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact a:hover {
    color: var(--secondary);
}

.separator {
    margin: 0 0.75rem;
    opacity: 0.3;
}

/* Navigation */
.nav {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.nav-btn {
    padding: 0.6rem 1.25rem;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-light);
    font-size: 0.95rem;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.25s ease;
}

.nav-btn:hover {
    background: var(--bg-card);
    color: var(--text);
    border-color: var(--border);
}

.nav-btn.active {
    background: var(--secondary);
    color: var(--bg);
    font-weight: 600;
    box-shadow: 0 0 20px var(--glow);
}

/* Sections */
main {
    padding: 2.5rem 2rem;
}

.section {
    display: none;
    animation: fadeIn 0.4s ease;
}

.section.active {
    display: block;
}

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

.section h2 {
    font-size: 1.5rem;
    color: var(--text);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border);
    display: inline-block;
}

.section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: var(--secondary);
    margin-top: 0.75rem;
}

/* About Section */
#about p {
    font-size: 1.15rem;
    color: var(--text-light);
    max-width: 700px;
    line-height: 1.8;
}

/* Experience Section */
.timeline {
    position: relative;
}

.job {
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: var(--bg-card);
    border-radius: 10px;
    border: 1px solid var(--border);
    border-left: 3px solid var(--secondary);
    transition: all 0.3s ease;
}

.job:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 30px var(--glow);
    border-color: var(--secondary);
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.job h3 {
    font-size: 1.1rem;
    color: var(--text);
    font-weight: 600;
}

.job .date {
    font-size: 0.85rem;
    color: var(--secondary);
    background: rgba(0, 212, 170, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 500;
}

.job .title {
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.job p:last-child {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

.job.collapsible {
    border-left-color: var(--border);
    opacity: 0.7;
}

.job.collapsible:hover {
    opacity: 1;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.skill-category {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.skill-category:hover {
    border-color: var(--secondary);
    box-shadow: 0 0 25px var(--glow);
}

.skill-category h3 {
    font-size: 0.9rem;
    color: var(--secondary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.skill-bars {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.skill-name {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
}

.skill-bar-container {
    width: 100%;
    height: 8px;
    background: var(--bg-alt);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.skill-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    border-radius: 10px;
    width: 0;
    transition: width 1s ease-out;
    position: relative;
    box-shadow: 0 0 10px var(--glow);
}

.skill-bar::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 30%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2));
    border-radius: 10px;
}

/* Animate skill bars when section becomes visible */
.section.active .skill-bar {
    width: calc(var(--skill-width) * 1%);
}

.skill-bar[data-level] {
    --skill-width: attr(data-level number, 0);
}

/* Education Section */
.education-item {
    background: var(--bg-card);
    padding: 1.75rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    max-width: 400px;
    transition: all 0.3s ease;
}

.education-item:hover {
    border-color: var(--secondary);
    box-shadow: 0 0 25px var(--glow);
}

.education-item h3 {
    color: var(--text);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.education-item .degree {
    font-weight: 600;
    color: var(--secondary);
}

.education-item .grade {
    color: var(--text-light);
    margin: 0.25rem 0;
}

.education-item .date {
    color: var(--text-light);
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Footer */
.footer {
    text-align: center;
    padding: 2.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
    border-top: 1px solid var(--border);
    background: var(--bg-alt);
}

.footer a {
    color: var(--secondary);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.footer a:hover {
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 600px) {
    .header {
        padding: 3rem 1.5rem;
    }

    .header h1 {
        font-size: 2rem;
    }

    .nav {
        flex-wrap: wrap;
    }

    .nav-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    main {
        padding: 1.5rem;
    }

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

    .job .date {
        align-self: flex-start;
    }

    .contact .separator {
        display: none;
    }

    .contact {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
    }
}

/* Print styles */
@media print {
    :root {
        --text: #000;
        --text-light: #333;
        --bg: #fff;
        --bg-alt: #fff;
        --bg-card: #f5f5f5;
        --border: #ddd;
        --secondary: #007acc;
    }

    .nav {
        display: none;
    }

    .section {
        display: block !important;
        page-break-inside: avoid;
    }

    .container {
        box-shadow: none;
    }

    .job:hover,
    .skill-category:hover,
    .education-item:hover {
        transform: none;
        box-shadow: none;
    }

    .header {
        background: var(--secondary);
    }
}
