@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-dark: #09090b;
    --bg-card: rgba(20, 20, 23, 0.6);
    --bg-card-hover: rgba(28, 28, 35, 0.8);
    --border-color: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(99, 102, 241, 0.3);
    
    --primary: #6366f1; /* Indigo */
    --primary-glow: rgba(99, 102, 241, 0.15);
    --secondary: #14b8a6; /* Teal */
    --secondary-glow: rgba(20, 184, 166, 0.15);
    
    --text-primary: #f4f4f5;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-family);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Gradients */
body::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, rgba(0,0,0,0) 70%);
    z-index: -1;
    pointer-events: none;
}

body::after {
    content: '';
    position: absolute;
    bottom: -10%;
    right: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.08) 0%, rgba(0,0,0,0) 70%);
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
}

/* Glassmorphism Card Style */
.card-glass {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.card-glass:hover {
    border-color: var(--border-hover);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.6), 0 0 20px var(--primary-glow);
    transform: translateY(-2px);
}

/* Main Grid Layout */
.profile-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

@media (min-width: 992px) {
    .profile-grid {
        grid-template-columns: 350px 1fr;
    }
}

/* Header Area */
.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
    .profile-header {
        flex-direction: row;
        text-align: left;
        gap: 2.5rem;
    }
}

.profile-avatar-container {
    position: relative;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    box-shadow: 0 0 25px rgba(99, 102, 241, 0.3);
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.profile-avatar-container:hover {
    transform: scale(1.03) rotate(3deg);
    box-shadow: 0 0 35px rgba(20, 184, 166, 0.5);
}

.profile-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background-color: #18181b;
    border: 4px solid var(--bg-dark);
}

.profile-title-area h1 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    background: linear-gradient(135deg, #fff 40%, #a1a1aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.profile-subtitle {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--secondary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Quick Contacts */
.quick-contacts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .quick-contacts {
        grid-template-columns: repeat(3, 1fr);
    }
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.contact-item:hover {
    background: rgba(99, 102, 241, 0.05);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.contact-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition-smooth);
}

.contact-item:hover .contact-icon {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 0 12px var(--primary);
}

.contact-details small {
    display: block;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.2rem;
}

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

/* Sidebar Components */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.04);
    position: relative;
}

.sidebar-section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary);
}

/* Skill filters & tag list */
.skill-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.3);
}

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

.skill-tag {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.45rem 0.85rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.skill-tag:hover {
    background: rgba(20, 184, 166, 0.1);
    color: var(--secondary);
    border-color: var(--secondary);
    transform: scale(1.05);
}

.skill-tag.highlighted {
    background: var(--secondary);
    color: #000;
    border-color: var(--secondary);
    font-weight: 600;
    box-shadow: 0 0 15px rgba(20, 184, 166, 0.4);
}

/* Education, Languages & Links */
.education-list, .social-links, .languages-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.education-item {
    padding-left: 0.75rem;
    border-left: 2px solid var(--border-color);
    transition: var(--transition-smooth);
}

.education-item:hover {
    border-left-color: var(--primary);
}

.edu-year {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.2rem;
}

.edu-degree {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.edu-school {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    padding: 0.75rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-color: var(--border-hover);
    transform: translateX(4px);
}

.lang-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.lang-name {
    font-weight: 600;
}

.lang-level {
    color: var(--secondary);
    font-size: 0.8rem;
    background: rgba(20, 184, 166, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-weight: 600;
}

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

.section-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-title i {
    color: var(--primary);
}

.summary-text {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.summary-text strong {
    color: #fff;
    font-weight: 600;
}

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

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 7px;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary), transparent);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    transition: var(--transition-smooth);
}

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

.timeline-dot {
    position: absolute;
    left: -2rem;
    top: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 3px solid var(--primary);
    box-shadow: 0 0 10px var(--primary);
    transition: var(--transition-smooth);
}

.timeline-item:hover .timeline-dot {
    background: var(--secondary);
    border-color: var(--secondary);
    box-shadow: 0 0 15px var(--secondary);
    transform: scale(1.2);
}

.timeline-header {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-bottom: 1rem;
    gap: 0.5rem;
}

@media (min-width: 768px) {
    .timeline-header {
        flex-direction: row;
        align-items: flex-start;
    }
}

.job-title-company h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
}

.job-title-company span {
    color: var(--primary);
    font-weight: 600;
}

.job-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
}

@media (min-width: 768px) {
    .job-meta {
        align-items: flex-end;
    }
}

.job-date {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.job-role {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary);
}

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

.job-bullets {
    list-style: none;
    padding-left: 0;
}

.job-bullets li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.job-bullets li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

.project-item {
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
}

.project-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.project-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.project-link {
    font-size: 0.85rem;
    color: var(--secondary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.project-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

.project-meta {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.project-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

/* Toast/Tooltip Alert Notification */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    pointer-events: none;
}

.toast-alert {
    background: rgba(24, 24, 27, 0.95);
    border: 1px solid var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast-alert.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-alert i {
    color: var(--secondary);
}

/* Highlight matching styles */
.timeline-item.dimmed, .project-item.dimmed {
    opacity: 0.3;
    filter: blur(1px);
}

.timeline-item.highlighted-card, .project-item.highlighted-card {
    border-color: var(--secondary);
    box-shadow: 0 0 20px rgba(20, 184, 166, 0.1);
    transform: scale(1.01);
}

/* Footer style */
footer {
    margin-top: 4rem;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}
