* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

:root {
    --bg-gradient: radial-gradient(circle at 50% 0%, #111827 0%, #030712 100%);
    --card-bg: rgba(17, 24, 39, 0.7);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --accent-color: #6366f1;
    --accent-hover: #4f46e5;
    --tag-bg: rgba(99, 102, 241, 0.12);
    --hover-bg: rgba(255, 255, 255, 0.03);
}

body.light-theme {
    --bg-gradient: radial-gradient(circle at 50% 0%, #f8fafc 0%, #e2e8f0 100%);
    --card-bg: rgba(255, 255, 255, 0.85);
    --border-color: rgba(0, 0, 0, 0.08);
    --text-main: #1e293b;
    --text-muted: #64748b;
    --tag-bg: rgba(99, 102, 241, 0.1);
    --hover-bg: rgba(0, 0, 0, 0.02);
}

body {
    background: var(--bg-gradient);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 16px;
    color: var(--text-main);
    position: relative;
    overflow-x: hidden;
}

.bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(168, 85, 247, 0.15));
    filter: blur(100px);
    border-radius: 50%;
    z-index: 0;
}

.portfolio-container {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 1000px;
    border-radius: 24px;
    display: grid;
    grid-template-columns: 320px 1fr;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

@media (max-width: 768px) {
    .portfolio-container {
        grid-template-columns: 1fr;
    }
}

/* Sidebar Styling */
.sidebar {
    background: rgba(0, 0, 0, 0.15);
    border-right: 1px solid var(--border-color);
    padding: 36px 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.profile-header {
    text-align: center;
}

.avatar-container {
    width: 110px;
    height: 110px;
    margin: 0 auto 16px;
    border-radius: 50%;
    position: relative;
    padding: 3px;
    background: linear-gradient(135deg, #6366f1, #a855f7);
}

.avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.status-badge {
    position: absolute;
    bottom: 6px;
    right: 6px;
    width: 16px;
    height: 16px;
    background-color: #10b981;
    border: 3px solid var(--card-bg);
    border-radius: 50%;
}

.profile-header h1 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.profile-header .role {
    font-size: 12px;
    color: var(--accent-color);
    font-weight: 600;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 13px;
    color: var(--text-muted);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    word-break: break-all;
}

.contact-item i {
    color: var(--accent-color);
    width: 16px;
    text-align: center;
}

.social-sidebar {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
}

.social-icon {
    width: 36px;
    height: 36px;
    background: var(--tag-bg);
    color: var(--accent-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.2s;
}

.social-icon:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
}

.action-btn {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s;
    margin-top: auto;
}

.action-btn:hover {
    background: var(--hover-bg);
}

/* Main Content Styling */
.main-content {
    padding: 36px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    max-height: 85vh;
    overflow-y: auto;
}

@media (max-width: 768px) {
    .main-content {
        max-height: none;
        padding: 24px;
    }
}

.section h2 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section h2 i {
    color: var(--accent-color);
}

.bio-text {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.skill-category {
    background: var(--hover-bg);
    border: 1px solid var(--border-color);
    padding: 16px;
    border-radius: 14px;
}

.skill-category h3 {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tags span {
    background: var(--tag-bg);
    color: var(--accent-color);
    font-size: 11px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 20px;
}

/* Projects List */
.projects-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.project-card {
    background: var(--hover-bg);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 16px;
    transition: transform 0.2s, border-color 0.2s;
}

.project-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent-color);
}

.project-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 8px;
}

.project-card h3 {
    font-size: 15px;
    font-weight: 600;
}

.project-tag {
    font-size: 10px;
    font-weight: 600;
    background: var(--tag-bg);
    color: var(--accent-color);
    padding: 3px 8px;
    border-radius: 6px;
}

.project-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 14px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.project-tech span {
    font-size: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    padding: 3px 8px;
    border-radius: 4px;
}

/* Timeline */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    padding-left: 16px;
    border-left: 2px solid var(--border-color);
}

.timeline-item {
    position: relative;
}

.timeline-date {
    font-size: 11px;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 4px;
}

.timeline-details h4 {
    font-size: 14px;
    font-weight: 600;
}

.timeline-details p {
    font-size: 12px;
    color: var(--text-muted);
}

.timeline-sub {
    margin-top: 4px;
    font-style: italic;
}