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

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #252525;
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
    --text-white: #fff;
    --accent: #ff6b6b;
    --border: #2a2a2a;
}

[data-theme="light"] {
    --bg-primary: #f5f5f5;
    --bg-secondary: #ffffff;
    --bg-tertiary: #e8e8e8;
    --text-primary: #2a2a2a;
    --text-secondary: #666666;
    --text-white: #1a1a1a;
    --accent: #ff6b6b;
    --border: #e0e0e0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
}

.container {
    display: grid;
    grid-template-columns: 320px 1fr;
    min-height: 100vh;
}

.sidebar {
    background: var(--bg-secondary);
    padding: 2rem 1.5rem;
    border-right: 1px solid var(--border);
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    transition: background 0.3s;
}

.sidebar-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header h3 {
    color: var(--text-white);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
}

.theme-toggle {
    background: var(--bg-tertiary);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.theme-toggle:hover {
    transform: rotate(20deg);
    background: var(--accent);
}

.nav-tabs {
    list-style: none;
}

.nav-tab {
    margin-bottom: 0.5rem;
}

.nav-tab button {
    width: 100%;
    padding: 0.9rem 1rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    text-align: left;
    cursor: pointer;
    border-radius: 8px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s;
}

.nav-tab button:hover {
    background: var(--bg-tertiary);
    color: var(--text-white);
}

.nav-tab button.active {
    background: var(--bg-tertiary);
    color: var(--text-white);
    border-left: 3px solid var(--accent);
}

.nav-icon {
    font-size: 1.2rem;
}

.main-content {
    padding: 3rem 4rem;
    overflow-y: auto;
}

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

.content-section.active {
    display: block;
}

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

.profile-card {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    background: var(--bg-secondary);
    padding: 2.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    transition: background 0.3s;
}

.profile-image {
    width: 100%;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-details h1 {
    font-size: 2.5rem;
    color: var(--text-white);
    margin-bottom: 0.5rem;
}

.profile-tagline {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.info-item {
    background: var(--bg-tertiary);
    padding: 1.2rem;
    border-radius: 8px;
    transition: background 0.3s;
}

.info-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
}

.info-value {
    color: var(--text-white);
    font-size: 1rem;
}

.info-value a {
    color: var(--accent);
    text-decoration: none;
}

.info-value a:hover {
    text-decoration: underline;
}

.section-header {
    margin-bottom: 2rem;
    border-top: 3px solid var(--accent);
    padding-top: 1rem;
}

.section-header h2 {
    font-size: 2rem;
    color: var(--text-white);
    margin-bottom: 0.5rem;
}

.education-list, .experience-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.edu-card, .exp-card {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--accent);
    transition: background 0.3s;
}

.edu-header, .exp-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.edu-header h3, .exp-header h3 {
    color: var(--text-white);
    font-size: 1.4rem;
}

.edu-period, .exp-period {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.edu-degree, .exp-role {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.edu-location, .exp-location {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.gpa {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.exp-bullets {
    list-style: none;
    margin-top: 1rem;
}

.exp-bullets li {
    color: var(--text-primary);
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    position: relative;
}

.exp-bullets li:before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.skill-category {
    background: var(--bg-secondary);
    padding: 1.8rem;
    border-radius: 12px;
    border-top: 3px solid var(--accent);
    transition: background 0.3s;
}

.skill-category h3 {
    color: var(--text-white);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.skill-tag {
    background: var(--bg-tertiary);
    color: var(--text-white);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 12px;
    border-top: 3px solid var(--accent);
    transition: background 0.3s;
}

.project-card h3 {
    color: var(--text-white);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.project-tech {
    color: var(--accent);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.project-card p {
    color: var(--text-primary);
    margin-bottom: 0.8rem;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.cert-card {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 2px solid var(--border);
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    display: block;
    color: inherit;
}

.cert-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
}

.cert-image {
    width: 100%;
    height: 220px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;
}

.cert-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cert-card h3 {
    color: var(--text-white);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.cert-issuer {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.achievements-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.achievement-card {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--accent);
    transition: background 0.3s;
}

.achievement-card h3 {
    color: var(--text-white);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.achievement-card p {
    color: var(--text-primary);
}

.resume-viewer {
    background: var(--bg-secondary);
    padding: 2.5rem;
    border-radius: 12px;
    transition: background 0.3s;
}

.resume-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border);
}

.resume-header h2 {
    color: var(--text-white);
    font-size: 2rem;
}

.download-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

.pdf-container {
    width: 100%;
    height: 100vh;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.pdf-container embed {
    border: none;
}

@media (max-width: 1024px) {
    .container {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: relative;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .main-content {
        padding: 2rem;
    }

    .profile-card {
        grid-template-columns: 1fr;
    }

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