/* =========================================
   Reset & Base Styles
   ========================================= */
:root {
    --bg-main: #07070a;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-hover: rgba(255, 255, 255, 0.06);
    --text-primary: #f0f0f5;
    --text-secondary: #a0a0ab;
    --accent-glow: rgba(99, 102, 241, 0.6);
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --gradient-secondary: linear-gradient(135deg, #3b82f6 0%, #2dd4bf 100%);

    --expert-bg: rgba(168, 85, 247, 0.15);
    --expert-border: rgba(168, 85, 247, 0.4);
    --expert-text: #e879f9;

    --advanced-bg: rgba(99, 102, 241, 0.15);
    --advanced-border: rgba(99, 102, 241, 0.4);
    --advanced-text: #818cf8;

    --intermediate-bg: rgba(59, 130, 246, 0.15);
    --intermediate-border: rgba(59, 130, 246, 0.4);
    --intermediate-text: #60a5fa;

    --basic-bg: rgba(156, 163, 175, 0.15);
    --basic-border: rgba(156, 163, 175, 0.4);
    --basic-text: #d1d5db;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* =========================================
   Background Effects
   ========================================= */
.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vw;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: var(--accent-glow);
    filter: blur(120px);
    border-radius: 50%;
    opacity: 0.3;
    animation: drift 15s infinite alternate ease-in-out;
}

.glow-1 {
    top: -10%;
    left: -10%;
    background: rgba(99, 102, 241, 0.4);
}

.glow-2 {
    bottom: -20%;
    right: -10%;
    background: rgba(168, 85, 247, 0.3);
    animation-delay: -5s;
}

.glow-3 {
    top: 40%;
    left: 60%;
    background: rgba(45, 212, 191, 0.2);
    animation-delay: -10s;
}

@keyframes drift {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(100px, 50px) scale(1.1);
    }
}

/* =========================================
   Layout & Container
   ========================================= */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    gap: 2rem;
    position: relative;
    align-items: flex-start;
}

/* =========================================
   Glass Panel Utilities
   ========================================= */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* =========================================
   Sidebar Profile Card
   ========================================= */
.profile-card {
    flex: 0 0 320px;
    position: sticky;
    top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.profile-header {
    text-align: center;
}

.avatar {
    width: 120px;
    height: 120px;
    background: var(--gradient-primary);
    border-radius: 30%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
    position: relative;
}

.avatar::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: inset;
    background: var(--gradient-primary);
    filter: blur(10px);
    z-index: -1;
    opacity: 0.7;
}

.avatar-initials {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30%;
    position: relative;
    z-index: 1;
}

.name {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.titles {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.4;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1rem;
    border-top: 1px solid var(--glass-border);
    padding-top: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 0.6rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: var(--glass-hover);
    color: #fff;
    transform: translateX(5px);
}

.contact-item i {
    width: 20px;
    text-align: center;
    color: #818cf8;
}

.btn-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: var(--glass-hover);
    border-color: rgba(255, 255, 255, 0.2);
}

.page-nav {
    margin-top: 1rem;
    border-top: 1px solid var(--glass-border);
    padding-top: 1.5rem;
}

.page-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-secondary);
    padding: 0.8rem 1rem;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-link i {
    font-size: 1.1rem;
}

.nav-link:hover,
.nav-link.active {
    background: var(--glass-hover);
    color: #fff;
}

.nav-link.active i {
    color: #6366f1;
}

/* =========================================
   Main Content Area
   ========================================= */
.content-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.content-section {
    padding: 2.5rem;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.feature-icon {
    font-size: 1.5rem;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header h2 {
    font-size: 1.8rem;
    font-weight: 600;
}

/* Typography styles */
.summary-text {
    font-size: 1.05rem;
    color: var(--text-secondary);
    font-weight: 300;
    margin-bottom: 2rem;
}

.strengths-box {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--glass-border);
}

.strengths-box h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #fff;
}

.check-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.text-gradient {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.2rem;
}

/* Attributes Grid */
.attrs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.attr-card {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    text-align: center;
}

.attr-card:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.attr-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #a855f7;
}

.attr-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.attr-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Timeline Experience */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 5px;
    bottom: 5px;
    width: 2px;
    background: linear-gradient(to bottom, #6366f1, #3b82f6);
    opacity: 0.3;
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
}

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

.timeline-dot {
    position: absolute;
    left: -2rem;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #6366f1;
    box-shadow: 0 0 10px #6366f1;
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.3rem;
}

.job-title {
    font-size: 1.3rem;
    color: #fff;
}

.job-date {
    font-size: 0.85rem;
    color: #818cf8;
    background: rgba(99, 102, 241, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-weight: 500;
}

.job-company {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 1rem;
}

.job-tasks {
    padding-left: 1.2rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.job-tasks li::marker {
    color: #6366f1;
}

.achievement {
    background: rgba(168, 85, 247, 0.1);
    border-left: 3px solid #a855f7;
    padding: 1rem;
    border-radius: 0 8px 8px 0;
    font-size: 0.9rem;
    color: #e2e8f0;
}

.achievement i {
    color: #fbbf24;
}

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

.skill-category h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
}

.skill-category h3 i {
    color: #3b82f6;
}

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

.tag {
    font-size: 0.85rem;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.tag:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.tag-expert {
    background: var(--expert-bg);
    border-color: var(--expert-border);
    color: var(--expert-text);
}

.tag-advanced {
    background: var(--advanced-bg);
    border-color: var(--advanced-border);
    color: var(--advanced-text);
}

.tag-intermediate {
    background: var(--intermediate-bg);
    border-color: var(--intermediate-border);
    color: var(--intermediate-text);
}

.tag-basic {
    background: var(--basic-bg);
    border-color: var(--basic-border);
    color: var(--basic-text);
}

/* Split Sections (Edu & Lang) */
.split-sections {
    display: flex;
    gap: 2rem;
}

.flex-1 {
    flex: 1;
}

.edu-item {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
}

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

.edu-degree {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 0.2rem;
}

.edu-school {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 0.3rem;
}

.edu-date {
    font-size: 0.8rem;
    color: #3b82f6;
}

.lang-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.lang-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.lang-name {
    color: #fff;
    font-weight: 500;
}

.lang-level {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 3px;
    transition: width 1s ease-out;
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* =========================================
   Animations & Transitions
   ========================================= */
.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .container {
        flex-direction: column;
        padding: 1rem;
    }

    .profile-card {
        position: static;
        width: 100%;
        flex: auto;
    }

    .split-sections {
        flex-direction: column;
    }

    .page-nav {
        display: none;
    }
}

@media (max-width: 600px) {
    .job-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .content-section {
        padding: 1.5rem;
    }

    .strengths-box {
        padding: 1rem;
    }
}