/* Language Toggle Styles */
.lang-wrapper {
    position: fixed;
    top: 25px;
    right: 40px;
    z-index: 100;
}

.lang-btn {
    background: var(--bg-card);
    backdrop-filter: var(--blur);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 10px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
    outline: none;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(232, 90, 113, 0.2);
}

.lang-text {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    font-family: var(--font-body);
}

.lang-indicator {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.6; }
    100% { transform: scale(1); opacity: 1; }
}

.duration-badge {
    color: var(--primary-light);
    font-weight: 700;
    font-size: 0.75rem;
    background: linear-gradient(135deg, rgba(232, 90, 113, 0.2), rgba(124, 58, 237, 0.2));
    padding: 4px 12px;
    border-radius: 30px;
    border: 1px solid rgba(232, 90, 113, 0.3);
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 10px;
}

.duration-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--primary);
}

/* Header Stats */
.header-stats {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    background: var(--bg-glass);
    padding: 8px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.stat-item i {
    color: var(--primary);
}

#total-experience {
    font-weight: 700;
    color: var(--text-primary);
}

.header-desc {
    display: flex;
    flex-direction: column;
}

:root {
    /* masculine Cyber Blue & Emerald Palette */
    --primary: #3B82F6; /* Electric Blue */
    --primary-light: #60A5FA;
    --primary-dark: #1D4ED8;
    --accent: #10B981; /* Emerald / Teal */
    --accent-light: #34D399;
    
    /* Dark Theme Colors */
    --bg-dark: #0A0F1E;
    --bg-card: rgba(15, 23, 42, 0.7);
    --bg-sidebar: rgba(10, 15, 30, 0.85);
    --bg-glass: rgba(255, 255, 255, 0.03);
    
    /* Text Colors */
    --text-primary: #F1F5F9;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #3B82F6 0%, #10B981 100%);
    --gradient-bg: linear-gradient(135deg, #0A0F1E 0%, #111827 50%, #0F172A 100%);
    --gradient-card: linear-gradient(145deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.8) 100%);
    
    /* Effects */
    --blur: blur(20px);
    --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 30px rgba(59, 130, 246, 0.2);
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Open Sans', sans-serif;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Roadmap Visual Styles */
.roadmap-container {
    margin-bottom: 40px;
    padding: 30px;
    background: var(--bg-glass);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow-x: auto;
}

.roadmap-wrapper {
    display: flex;
    align-items: center;
    min-width: 800px;
    padding: 20px 0;
    position: relative;
}

.roadmap-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-50%);
    z-index: 1;
}

.roadmap-item {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.roadmap-dot {
    width: 16px;
    height: 16px;
    background: var(--bg-dark);
    border: 3px solid var(--primary);
    border-radius: 50%;
    margin: 15px 0;
    box-shadow: 0 0 10px var(--primary);
    transition: var(--transition);
}

.roadmap-item:hover .roadmap-dot {
    transform: scale(1.5);
    background: var(--primary);
    box-shadow: 0 0 20px var(--primary);
}

.roadmap-year {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    position: absolute;
    bottom: -25px;
}

.roadmap-content {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    position: absolute;
    top: -35px;
    white-space: nowrap;
    background: var(--bg-glass);
    padding: 4px 12px;
    border-radius: 10px;
    border: 1px dotted var(--primary);
}

.roadmap-item.active .roadmap-content {
    background: var(--gradient-primary);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.roadmap-item.education .roadmap-dot {
    border-color: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}

.roadmap-item.education:hover .roadmap-dot {
    background: var(--accent);
    box-shadow: 0 0 20px var(--accent);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--gradient-bg);
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 50px 30px;
    position: relative;
    overflow-x: hidden;
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(232, 90, 113, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(124, 58, 237, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(232, 90, 113, 0.05) 0%, transparent 40%);
    animation: bgFloat 20s ease-in-out infinite;
    z-index: -1;
}

@keyframes bgFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(1deg); }
    66% { transform: translate(-20px, 20px) rotate(-1deg); }
}

/* CV Container */
.cv-container {
    display: grid;
    grid-template-columns: 320px 1fr;
    max-width: 1300px;
    width: 100%;
    background: var(--gradient-card);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    overflow: hidden;
    position: relative;
}

/* Decorative Elements */
.cv-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
}

/* Sidebar */
.sidebar {
    background: var(--bg-sidebar);
    backdrop-filter: var(--blur);
    padding: 40px 30px;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.sidebar::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg, transparent, rgba(232, 90, 113, 0.3), transparent);
}

/* Profile Section */
.profile-section {
    display: flex;
    justify-content: center;
    margin-bottom: 35px;
}

.profile-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.profile-photo::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: var(--gradient-primary);
    border-radius: 50%;
    z-index: -1;
    animation: rotateGlow 4s linear infinite;
}

@keyframes rotateGlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--bg-dark);
    transition: var(--transition);
}

.profile-photo:hover img {
    transform: scale(1.05);
}

/* Sidebar Sections */
.sidebar-section {
    margin-bottom: 30px;
    padding: 20px;
    background: var(--bg-glass);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.sidebar-section:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(232, 90, 113, 0.2);
    transform: translateX(5px);
}

.section-title {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

.section-divider {
    display: none;
}

/* Contact List */
.contact-list {
    list-style: none;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.contact-list li:hover {
    color: var(--text-primary);
}

.contact-list li:last-child {
    margin-bottom: 0;
}

.contact-list li i {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-glass);
    border-radius: 10px;
    color: var(--primary);
    font-size: 0.9rem;
    transition: var(--transition);
}

.contact-list li:hover i {
    background: var(--gradient-primary);
    color: white;
    transform: scale(1.1);
}

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

.contact-list li a:hover {
    color: var(--primary-light);
}

/* Education Item */
.education-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.education-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 12px;
    flex-shrink: 0;
}

.education-icon i {
    font-size: 1rem;
    color: white;
}

.education-details h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

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

.education-details .year {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
    display: inline-block;
    padding: 4px 10px;
    background: var(--bg-glass);
    border-radius: 20px;
}

/* Language Item */
.language-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.language-item > i {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
}

.language-details h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.language-details span {
    font-size: 0.8rem;
    color: var(--text-muted);
    padding: 2px 10px;
    background: var(--bg-glass);
    border-radius: 20px;
    margin-left: 8px;
}

/* Main Content */
.main-content {
    padding: 45px 40px;
    background: transparent;
}

/* Header */
.cv-header {
    margin-bottom: 45px;
    position: relative;
}

.name {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
    margin-bottom: 8px;
    line-height: 1.2;
}

.title {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* Content Section */
.content-section {
    margin-bottom: 40px;
    padding: 30px;
    background: var(--bg-glass);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.content-section:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(232, 90, 113, 0.15);
}

.main-section-title {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    display: inline-block;
}

.main-section-divider {
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
    margin-bottom: 25px;
}

/* Timeline Styles */
.timeline-container {
    position: relative;
    padding-left: 30px;
    margin-top: 20px;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, 
        var(--primary) 0%, 
        var(--accent) 50%, 
        transparent 100%);
    border-radius: 2px;
}

.experience-item {
    position: relative;
    margin-bottom: 40px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.experience-item::before {
    content: '';
    position: absolute;
    left: -32px;
    top: 28px;
    width: 14px;
    height: 14px;
    background: var(--bg-dark);
    border: 3px solid var(--primary);
    border-radius: 50%;
    z-index: 2;
    transition: var(--transition);
    box-shadow: 0 0 10px var(--primary);
}

.experience-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(232, 90, 113, 0.3);
    transform: translateX(10px);
    box-shadow: var(--shadow-sm);
}

.experience-item:hover::before {
    background: var(--primary);
    transform: scale(1.4);
    box-shadow: 0 0 20px var(--primary);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
}

.experience-item .company {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

.experience-item .date {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 6px 14px;
    background: var(--bg-glass);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.experience-item .position {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-light);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.experience-item .position::before {
    content: '';
    width: 15px;
    height: 2px;
    background: var(--gradient-primary);
    display: inline-block;
}

.experience-item .technologies {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.8;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border-left: 2px solid var(--accent);
}

/* About Content */
.about-content {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.9;
}

.about-content p {
    margin-bottom: 18px;
    text-align: justify;
}

.about-content p:last-child {
    margin-bottom: 0;
}

/* Projects List */
.projects-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
}

.projects-list li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 12px;
}

.projects-list li::before {
    content: '→';
    color: var(--primary);
    font-weight: bold;
}

.projects-list li:hover {
    background: rgba(232, 90, 113, 0.1);
    border-color: rgba(232, 90, 113, 0.2);
    color: var(--text-primary);
    transform: translateX(5px);
}

/* Skills Section */
.skills-section .skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.skill-category {
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.skill-category:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(232, 90, 113, 0.2);
}

.skill-category h3 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-light);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.skill-category ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-category li {
    font-size: 0.75rem;
    color: var(--text-secondary);
    padding: 6px 12px;
    background: var(--bg-glass);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition);
}

.skill-category li:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 4px;
}

/* Print Styles */
@media print {
    body {
        padding: 0;
        background: white;
    }
    
    .cv-container {
        box-shadow: none;
        background: white;
    }
    
    * {
        color: black !important;
        background: transparent !important;
    }
}

/* Responsive Design */
@media (max-width: 1000px) {
    .skills-section .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    body {
        padding: 20px 15px;
    }
    
    .cv-container {
        grid-template-columns: 1fr;
        border-radius: 20px;
    }
    
    .sidebar {
        padding: 30px 25px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .sidebar::after {
        display: none;
    }
    
    .profile-photo {
        width: 150px;
        height: 150px;
    }
    
    .name {
        font-size: 2.5rem;
        text-align: center;
    }
    
    .title {
        text-align: center;
    }
    
    .main-content {
        padding: 30px 25px;
    }
}

@media (max-width: 600px) {
    body {
        padding: 15px 10px;
    }
    
    .sidebar {
        padding: 25px 20px;
    }
    
    .sidebar-section {
        padding: 15px;
    }
    
    .main-content {
        padding: 25px 20px;
    }
    
    .content-section {
        padding: 20px;
    }
    
    .name {
        font-size: 2rem;
        letter-spacing: 1px;
    }
    
    .title {
        font-size: 1rem;
        letter-spacing: 2px;
    }
    
    .experience-header {
        flex-direction: column;
        gap: 8px;
    }
    
    .skills-section .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-list {
        grid-template-columns: 1fr;
    }
    
    .profile-photo {
        width: 130px;
        height: 130px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.sidebar-section {
    animation: fadeInLeft 0.6s ease-out forwards;
    opacity: 0;
}

.sidebar-section:nth-child(2) { animation-delay: 0.1s; }
.sidebar-section:nth-child(3) { animation-delay: 0.2s; }
.sidebar-section:nth-child(4) { animation-delay: 0.3s; }
.sidebar-section:nth-child(5) { animation-delay: 0.4s; }

.content-section {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.content-section:nth-of-type(1) { animation-delay: 0.2s; }
.content-section:nth-of-type(2) { animation-delay: 0.3s; }
.content-section:nth-of-type(3) { animation-delay: 0.4s; }
.content-section:nth-of-type(4) { animation-delay: 0.5s; }

.cv-header {
    animation: fadeInUp 0.8s ease-out forwards;
}

.profile-section {
    animation: fadeInUp 0.6s ease-out forwards;
}
