:root {
    --bg: #0a0a0f;
    --glass: rgba(255,255,255,0.05);
    --glass-border: rgba(255,255,255,0.1);
    --glass-hover: rgba(255,255,255,0.08);
    --text: #f0f0f0;
    --text-mute: #8a8a9a;
    --accent: #6c5ce7;
    --accent-light: #a29bfe;
    --gradient: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
    --success: #00b894;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.background { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.4; }
.orb-1 { width: 600px; height: 600px; background: var(--accent); top: -200px; left: -200px; animation: float 20s ease-in-out infinite; }
.orb-2 { width: 500px; height: 500px; background: var(--accent-light); bottom: -150px; right: -150px; animation: float 25s ease-in-out infinite reverse; }
@keyframes float { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(50px, 50px); } }

.glass-card {
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    transition: all 0.3s ease;
}
.glass-card:hover { background: var(--glass-hover); border-color: rgba(255,255,255,0.15); }

.glass-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 5%;
    background: rgba(10,10,15,0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}
.logo { font-size: 1.5rem; font-weight: 700; color: var(--text); text-decoration: none; }
.logo .dot { color: var(--accent); }
.nav-menu { display: flex; list-style: none; gap: 2rem; }
.nav-menu a { color: var(--text-mute); text-decoration: none; font-weight: 500; transition: color 0.3s; }
.nav-menu a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 1rem; }
.btn-small { padding: 0.5rem 1rem; border-radius: 8px; font-size: 0.875rem; text-decoration: none; font-weight: 500; transition: all 0.3s; }
.btn-outline { border: 1px solid var(--glass-border); color: var(--text); background: transparent; }
.btn-outline:hover { background: var(--glass); }
#lang-switch { padding: 0.5rem 1rem; background: var(--accent); color: white; border: none; border-radius: 8px; cursor: pointer; font-weight: 600; transition: all 0.3s; }
#lang-switch:hover { background: var(--accent-light); }
.hamburger { display: none; font-size: 1.5rem; cursor: pointer; color: var(--text); }
.mobile-only { display: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 5%; }
.section { padding: 5rem 0; }
.section-header { margin-bottom: 3rem; }
.section-header h2 { font-size: 2rem; font-weight: 700; }
.section-header.row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }

.hero { min-height: 100vh; display: flex; align-items: center; justify-content: space-between; gap: 4rem; padding-top: 80px; }
.hero-content { flex: 1; }
.badge-glass { display: inline-block; padding: 0.5rem 1rem; background: var(--glass); border: 1px solid var(--glass-border); border-radius: 50px; font-size: 0.875rem; margin-bottom: 1.5rem; }
.hero h1 { font-size: 3.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.gradient-text { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; font-size: 2rem; min-height: 2.5rem; }
.subtitle { color: var(--text-mute); font-size: 1.1rem; margin: 1.5rem 0 2rem; max-width: 500px; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-primary { padding: 0.875rem 1.75rem; background: var(--gradient); color: white; border: none; border-radius: 10px; font-weight: 600; text-decoration: none; transition: all 0.3s; cursor: pointer; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(108,92,231,0.3); }
.btn-primary.full { width: 100%; }
.btn-glass { padding: 0.875rem 1.75rem; background: var(--glass); border: 1px solid var(--glass-border); color: var(--text); border-radius: 10px; font-weight: 600; text-decoration: none; transition: all 0.3s; }
.btn-glass:hover { background: var(--glass-hover); }
.hero-card { width: 300px; height: 350px; padding: 1rem; display: flex; align-items: center; justify-content: center; }
.hero-card img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }

.profile-simple { padding: 2rem; text-align: center; }
.profile-simple h2 { margin-bottom: 1rem; }
.profile-bio { color: var(--text-mute); max-width: 800px; margin: 0 auto; }

.skills-layout-advanced { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; margin-bottom: 2rem; }
.skill-column { padding: 2rem; }
.skill-column h3 { margin-bottom: 1.5rem; display: flex; align-items: center; gap: 0.75rem; }
.accent-icon { color: var(--accent); }
.skill-bar { margin-bottom: 1.25rem; }
.skill-info { display: flex; justify-content: space-between; margin-bottom: 0.5rem; font-size: 0.9rem; }
.skill-info span { display: flex; align-items: center; gap: 0.5rem; }
.percentage { color: var(--accent); font-weight: 600; }
.progress-container { height: 8px; background: rgba(255,255,255,0.1); border-radius: 10px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--gradient); border-radius: 10px; transition: width 1s ease; }
.soft-skills-row { padding: 2rem; }
.soft-skills-row h3 { margin-bottom: 1.5rem; display: flex; align-items: center; gap: 0.75rem; }
.tags-cloud { display: flex; flex-wrap: wrap; gap: 1rem; }
.tag-glass { padding: 0.75rem 1.25rem; background: var(--glass); border: 1px solid var(--glass-border); border-radius: 50px; font-size: 0.9rem; display: flex; align-items: center; gap: 0.5rem; }
.tag-glass i { color: var(--accent); }

.education-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.timeline-card { padding: 2rem; position: relative; }
.timeline-card.highlight { border-left: 3px solid var(--accent); }
.timeline-card .date { display: inline-block; padding: 0.25rem 0.75rem; background: var(--accent); color: white; border-radius: 20px; font-size: 0.8rem; font-weight: 600; margin-bottom: 1rem; }
.timeline-card h4 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.timeline-card h5 { color: var(--text-mute); font-weight: 400; margin-bottom: 1rem; }
.timeline-card p { color: var(--text-mute); font-size: 0.95rem; }

.tech-filters { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.tech-filters button {
    padding: 0.6rem 1.25rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--text-mute);
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}
.tech-filters button:hover { color: var(--text); border-color: var(--accent); }
.tech-filters button.active { background: var(--gradient); color: white; border-color: transparent; }

.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 2rem; }
.project-card { cursor: pointer; overflow: hidden; display: flex; flex-direction: column; }
.project-card:hover { transform: translateY(-5px); }
.project-img { height: 200px; background-size: cover; background-position: center; border-radius: 16px 16px 0 0; }
.project-content { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.project-meta { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; }
.meta-type { color: var(--accent); font-size: 0.85rem; font-weight: 500; }
.meta-date { color: var(--text-mute); font-size: 0.85rem; display: inline-block; padding: 0.2rem 0.6rem; background: rgba(108,92,231,0.2); border-radius: 20px; margin-bottom: 0.75rem; }
.project-content h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
.project-content p { color: var(--text-mute); font-size: 0.9rem; flex: 1; margin-bottom: 1rem; }
.project-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.project-tags span { padding: 0.3rem 0.75rem; background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border); border-radius: 20px; font-size: 0.8rem; color: var(--text-mute); }

.btn-action {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    width: fit-content;
}
.btn-action:hover { background: var(--accent-light); transform: translateY(-2px); }
.btn-action i { font-size: 0.85rem; }

.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.lang-card { padding: 2rem; text-align: center; }
.lang-card .flag { font-size: 3rem; display: block; margin-bottom: 1rem; }
.lang-card h3 { margin-bottom: 0.5rem; }
.lang-card p { color: var(--text-mute); font-size: 0.9rem; }
.interest-card { padding: 2rem; text-align: center; }
.icon-box { width: 60px; height: 60px; border-radius: 16px; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; font-size: 1.5rem; }
.bg-purple { background: rgba(108,92,231,0.2); color: var(--accent); }
.bg-blue { background: rgba(0,184,148,0.2); color: var(--success); }
.bg-green { background: rgba(253,203,110,0.2); color: #fdcb6e; }
.interest-card h3 { margin-bottom: 0.5rem; }
.interest-card p { color: var(--text-mute); font-size: 0.9rem; }

.split-view { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }

.contact-box { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; padding: 3rem; }
.contact-left h2 { margin-bottom: 0.5rem; }
.contact-left > p { color: var(--text-mute); margin-bottom: 2rem; }
.info-item { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; color: var(--text-mute); }
.info-item i { color: var(--accent); font-size: 1.2rem; width: 24px; }
.social-links { display: flex; gap: 1rem; margin-top: 2rem; }
.btn-social { width: 45px; height: 45px; display: flex; align-items: center; justify-content: center; background: var(--glass); border: 1px solid var(--glass-border); border-radius: 50%; color: var(--text); font-size: 1.2rem; transition: all 0.3s; }
.btn-social:hover { background: var(--accent); color: white; border-color: var(--accent); }
.glass-form { display: flex; flex-direction: column; gap: 1rem; }
.glass-form input, .glass-form textarea {
    padding: 1rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
}
.glass-form input:focus, .glass-form textarea:focus { outline: none; border-color: var(--accent); background: rgba(255,255,255,0.05); }
.glass-form textarea { resize: vertical; min-height: 120px; }

footer { text-align: center; padding: 2rem; color: var(--text-mute); border-top: 1px solid var(--glass-border); }

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
.modal-card { max-width: 600px; width: 100%; max-height: 90vh; overflow-y: auto; position: relative; }
.modal-card img { width: 100%; height: 200px; object-fit: cover; border-radius: 16px 16px 0 0; }
.modal-content { padding: 2rem; }
.modal-content h2 { margin-bottom: 1rem; }
.modal-content p { color: var(--text-mute); margin-bottom: 1.5rem; }
.tags-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.tags-row span { padding: 0.3rem 0.75rem; background: rgba(108,92,231,0.2); border-radius: 20px; font-size: 0.85rem; color: var(--accent); }
.links-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}
.btn-link:hover { background: var(--accent); border-color: var(--accent); }
.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.5);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
}
.close-btn:hover { background: var(--accent); }

.detailed-modal-card {
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    background: var(--bg);
    border: 1px solid var(--glass-border);
}

.detailed-modal-content {
    padding: 2.5rem;
}

.detailed-modal-content h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.modal-intro {
    color: var(--text-mute);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.tech-section {
    background: rgba(108,92,231,0.1);
    border: 1px solid rgba(108,92,231,0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.tech-section h4 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--accent-light);
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.tech-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.tech-label {
    color: var(--text-mute);
    font-size: 0.95rem;
}

.tech-value {
    background: rgba(255,255,255,0.1);
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--text);
    font-family: monospace;
}

.features-section {
    background: rgba(0, 184, 148, 0.1);
    border: 1px solid rgba(0, 184, 148, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.features-section h4 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #00b894;
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    padding: 0.6rem 0;
    color: var(--text-mute);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.features-list li:last-child {
    border-bottom: none;
}

.features-list li::before {
    content: "•";
    color: #00b894;
    font-weight: bold;
    font-size: 1.2rem;
}

.diagrams-title {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.diagrams-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.diagram-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
}

.diagram-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(108,92,231,0.2);
}

.diagram-img {
    height: 150px;
    background-size: cover;
    background-position: center top;
    border-bottom: 1px solid var(--glass-border);
}

.diagram-info {
    padding: 1.25rem;
}

.diagram-info h5 {
    font-size: 0.95rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.diagram-info p {
    font-size: 0.85rem;
    color: var(--text-mute);
    line-height: 1.5;
}

.image-modal {
    background: rgba(0,0,0,0.95);
    cursor: zoom-out;
}

.image-modal img {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
    border-radius: 8px;
}

.close-btn-image {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
}

@media (max-width: 1024px) {
    .diagrams-grid { grid-template-columns: repeat(2, 1fr); }
    .tech-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-menu { 
        display: none; 
        position: absolute; 
        top: 100%; 
        left: 0; 
        right: 0; 
        background: rgba(10,10,15,0.95);
        flex-direction: column;
        padding: 1rem;
        gap: 0;
        border-bottom: 1px solid var(--glass-border);
    }
    .nav-menu.active { display: flex; }
    .nav-menu li { padding: 1rem; border-bottom: 1px solid var(--glass-border); }
    .hamburger { display: block; }
    .desktop-only { display: none; }
    .mobile-only { display: block; }
    
    .hero { flex-direction: column; text-align: center; padding-top: 100px; }
    .hero-content { order: 2; }
    .hero-card { order: 1; width: 200px; height: 250px; }
    .hero h1 { font-size: 2.5rem; }
    .subtitle { margin: 1rem auto; }
    .hero-actions { justify-content: center; }
    
    .skills-layout-advanced { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: 1fr; }
    .split-view { grid-template-columns: 1fr; }
    .contact-box { grid-template-columns: 1fr; }
    .projects-grid { grid-template-columns: 1fr; }
    
    .section-header.row { flex-direction: column; align-items: flex-start; }
    .tech-filters { justify-content: flex-start; }
    
    .detailed-modal-card { max-width: 95%; }
    .detailed-modal-content { padding: 1.5rem; }
    .diagrams-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2rem; }
    .gradient-text { font-size: 1.5rem; }
    .tech-filters button { padding: 0.5rem 1rem; font-size: 0.8rem; }
}