:root {
    --bg-gradient: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #311042 100%);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent-1: #38bdf8; 
    --accent-2: #03f1f9; 
    --accent-3: #22c55e; 
    --card-hover: rgba(255, 255, 255, 0.07);
    --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

[data-theme="light"] {
    --bg-gradient: linear-gradient(135deg, #eeecfb 0%, #e0f2fe 50%, #fce7f3 100%);
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.5);
    --text-main: #0f172a;
    --text-muted: #475569;
    --accent-1: #0284c7; 
    --accent-2: #db2777;
    --accent-3: #16a34a;
    --card-hover: rgba(255, 255, 255, 0.9);
    --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.08);
}

* {
    box-sizing: border-box;
    transition: all 0.3s ease;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-main);
    margin: 0;
    padding: 40px 20px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cv-wrapper {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    max-width: 1000px;
    width: 100%;
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
}

.cv-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--accent-1), var(--accent-2), var(--accent-3));
}

.theme-switcher {
    position: absolute;
    top: 25px;
    right: 25px;
    background: var(--glass-border);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 10px 16px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    z-index: 10;
}

.theme-switcher:hover {
    transform: scale(1.05);
    background: var(--text-main);
    color: var(--bg-gradient);
}

.cv-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
}

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

.left-col {
    padding: 40px;
    border-right: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .left-col { border-right: none; border-bottom: 1px solid var(--glass-border); }
}

.profile-area h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin: 10px 0 5px 0;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--text-main) 30%, var(--accent-1));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.title-badge {
    display: inline-block;
    background: linear-gradient(90deg, rgba(56, 189, 248, 0.15), rgba(236, 72, 153, 0.15));
    border: 1px solid var(--accent-1);
    color: var(--text-main);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 25px;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0 0 35px 0;
}

.contact-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
}

.contact-list i {
    color: var(--accent-1);
    width: 20px;
    text-align: center;
}

.contact-list a {
    color: var(--text-main);
    text-decoration: none;
    word-break: break-all;
}

.contact-list a:hover {
    color: var(--accent-2);
    text-decoration: underline;
}

.section-title {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-2);
    margin-bottom: 15px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-block-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.info-block-list li {
    padding: 8px 12px;
    background: var(--glass-bg);
    border-radius: 8px;
    margin-bottom: 8px;
    border-left: 3px solid var(--accent-1);
    font-size: 0.9rem;
}

.right-col { padding: 40px; }

.about-text {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-main);
    margin-top: 0;
    margin-bottom: 35px;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 35px;
}

.skill-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 10px 18px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.skill-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    background: var(--card-hover);
}

.skill-card.py:hover { border-color: #3776AB; color: #3776AB; }
.skill-card.c-lang:hover { border-color: #A8B9CC; color: #A8B9CC; }
.skill-card.cpp:hover { border-color: #00599C; color: #00599C; }
.skill-card.html:hover { border-color: #E34F26; color: #E34F26; }
.skill-card.css:hover { border-color: #1572B6; color: #1572B6; }
.skill-card.js:hover { border-color: #F7DF1E; color: #F7DF1E; }
.skill-card.sql:hover { border-color: #CC2927; color: #CC2927; }

.timeline {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.timeline-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 20px;
    border-radius: 16px;
    position: relative;
}

.timeline-card:hover {
    background: var(--card-hover);
    border-color: rgba(255,255,255,0.15);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.timeline-sub {
    color: var(--accent-1);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.gpa-badge {
    display: inline-block;
    background: rgba(34, 197, 94, 0.15);
    color: var(--accent-3);
    border: 1px solid var(--accent-3);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
}