:root {
    --bg-primary: #f8f9fc;
    --bg-sidebar: #050507;
    --text-primary: #1a1a24;
    --text-secondary: #5a5a70;
    --text-light: #8892b0;
    --accent-blue: #3b82f6;
    --accent-glow: 0 0 30px rgba(59, 130, 246, 0.4);
    --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    --accent-soft: rgba(59, 130, 246, 0.08);
    --border-color: rgba(255, 255, 255, 0.05);
    --border-light: rgba(0, 0, 0, 0.08);
    --card-shadow: 0 20px 40px rgba(0, 0, 0, 0.03);
    --transition-smooth: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    --font-inter: 'Inter', sans-serif;
    --font-outfit: 'Outfit', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-inter);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- Layout --- */
.app-container { display: grid; grid-template-columns: 320px 1fr; min-height: 100vh; }

/* --- Sidebar: Professional AI Theme --- */
.sidebar {
    background: linear-gradient(180deg, #050507 0%, #0d1224 100%);
    padding: 3.5rem 2rem;
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    color: #fff;
    overflow-y: auto;
    z-index: 100;
    border-right: 1px solid rgba(59, 130, 246, 0.1);
}

.sidebar::-webkit-scrollbar {
    width: 5px;
}
.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.profile-img-container {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    position: relative;
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.3);
    border: 3px solid rgba(59, 130, 246, 0.5);
    animation: pulse-glow 3s infinite alternate;
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 20px rgba(59, 130, 246, 0.2); border-color: rgba(59, 130, 246, 0.3); }
    100% { box-shadow: 0 0 50px rgba(99, 102, 241, 0.6); border-color: rgba(99, 102, 241, 0.8); }
}

.profile-img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.profile-name { font-family: var(--font-outfit); font-size: 1.8rem; font-weight: 800; text-align: center; margin-bottom: 0.5rem; letter-spacing: -1px; }
.profile-title { color: var(--text-light); font-size: 0.9rem; font-weight: 500; text-align: center; }

.sidebar-nav { display: flex; flex-direction: column; gap: 0.8rem; }
.nav-item {
    display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; border-radius: 16px;
    font-size: 0.95rem; font-weight: 600; color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.03); transition: 0.4s;
}
.nav-item:hover, .nav-item.active { background: var(--accent-gradient); color: #fff; box-shadow: var(--accent-glow); transform: translateX(5px); }

.sidebar-label { font-size: 0.75rem; font-weight: 800; color: var(--accent-blue); letter-spacing: 2px; margin-bottom: 1.2rem; text-transform: uppercase; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.tag {
    background: rgba(255,255,255,0.05); padding: 0.6rem 1rem; border-radius: 14px; font-size: 0.85rem;
    font-weight: 600; color: rgba(255,255,255,0.85); border: 1px solid rgba(255,255,255,0.1); transition: 0.3s;
}
.tag:hover { background: #fff; color: #000; transform: translateY(-4px); box-shadow: 0 10px 20px rgba(0,0,0,0.4); }

.btn-primary { 
    background: var(--accent-gradient);
    color: #fff; 
    border: none; 
    padding: 1.2rem; 
    border-radius: 18px; 
    font-weight: 900; 
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.4); 
    transition: 0.4s;
    width: 100%;
}

.btn-primary:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 20px 45px rgba(59, 130, 246, 0.6); 
    filter: brightness(1.1);
}

/* --- Top Header Optimized (Grid) --- */
.main-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 4rem;
    position: sticky;
    top: 0;
    background: rgba(248, 249, 252, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    gap: 2rem;
}

.brand {
    font-family: var(--font-outfit);
    font-weight: 900;
    font-size: 1.4rem;
    letter-spacing: -1.2px;
    background: linear-gradient(to right, #1a1a24, #111);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: nowrap;
}

.top-nav {
    display: flex;
    gap: 2rem;
    justify-content: flex-end;
    padding-right: 2rem;
}

.top-nav a {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-secondary);
    position: relative;
    padding: 0.5rem 0;
    white-space: nowrap;
    text-decoration: none;
}

.top-nav a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 3px; background: var(--accent-blue); transition: 0.3s; }
.top-nav a:hover::after, .top-nav a.active-link::after { width: 100%; }
.top-nav a.active-link { color: var(--text-primary); }

.download-cv { 
    background: #000;
    color: #fff;
    padding: 0.7rem 1.4rem;
    border-radius: 10px;
    font-weight: 800;
    font-size: 0.85rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    text-decoration: none;
    transition: 0.3s;
    white-space: nowrap;
}
.download-cv:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(0,0,0,0.2); }

/* --- Main Content --- */
.main-content { padding: 4rem 6rem; max-width: 1600px; margin: 0 auto; display: flex; flex-direction: column; gap: 8rem; }

.hero-headline {
    font-size: 5rem; font-weight: 900; line-height: 1.1; letter-spacing: -4px; font-family: var(--font-outfit); margin-bottom: 2.5rem;
}
.gradient-text { background: linear-gradient(135deg, #6366f1, #3b82f6 20%, #2dd4bf 80%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.cursor { animation: blink 1s infinite; color: var(--accent-blue); }
@keyframes blink { 50% { opacity: 0; } }

.hero-description { max-width: 800px; font-size: 1.3rem; color: var(--text-secondary); line-height: 1.8; }

/* --- Sections --- */
.section-header { display: flex; align-items: center; gap: 2rem; margin-bottom: 4rem; }
.section-header h3 { font-size: 2.5rem; font-weight: 800; font-family: var(--font-outfit); letter-spacing: -1.5px; }
.section-header .line { flex: 1; height: 1px; background: var(--border-light); }

/* --- Bento Grids & Cards --- */
.bento-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 2.5rem; }
.glass-card {
    background: #fff; padding: 3rem; border-radius: 30px; border: 1px solid var(--border-light); box-shadow: var(--card-shadow);
    transition: 0.4s cubic-bezier(0.23, 1, 0.32, 1); position: relative; overflow: hidden;
}
.glass-card:hover { transform: translateY(-10px) scale(1.02); box-shadow: 0 30px 60px rgba(59,130,246,0.1); border-color: rgba(59,130,246,0.3); }

/* Mouse Glow Effect */
.glass-card::before {
    content: ''; position: absolute; top: var(--mouse-y, 0); left: var(--mouse-x, 0); width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 65%); transform: translate(-50%, -50%);
    pointer-events: none; opacity: 0; transition: opacity 0.5s;
}
.glass-card:hover::before { opacity: 1; }

/* --- Timelines --- */
.timeline { display: flex; flex-direction: column; gap: 4rem; }
.timeline-item { display: grid; grid-template-columns: 240px 1fr; gap: 3rem; }
.years { font-size: 1rem; font-weight: 900; color: var(--accent-blue); letter-spacing: 1px; margin-bottom: 1rem; display: block; }
.company-box { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.5rem; }
.company-icon { width: 45px; height: 45px; background: var(--accent-gradient); color: #fff; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.company { font-size: 1.6rem; font-weight: 800; font-family: var(--font-outfit); letter-spacing: -1px; }
.role { font-size: 0.95rem; font-weight: 700; color: var(--text-light); }

.detail-list { margin-top: 1.5rem; padding-left: 1.2rem; }
.detail-list li { list-style: none; position: relative; margin-bottom: 0.8rem; font-size: 1rem; color: var(--text-secondary); }
.detail-list li::before { content: '→'; position: absolute; left: -1.2rem; color: var(--accent-blue); font-weight: 900; }

/* --- Skills & Progress --- */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 2.5rem; }
.skill-card { display: flex; flex-direction: column; gap: 1.5rem; }
.skill-info { display: flex; justify-content: space-between; font-weight: 800; font-family: var(--font-outfit); font-size: 1.1rem; }
.progress-bar-container { background: #e2e8f0; height: 12px; border-radius: 100px; overflow: hidden; }
.progress-bar { background: var(--accent-gradient); height: 100%; width: 0; transition: 1.5s cubic-bezier(0.34, 1.56, 0.64, 1); box-shadow: var(--accent-glow); }
.visible .progress-bar { width: var(--width); }

/* --- Education Refined --- */
.edu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2.5rem; }
.edu-card { display: flex; gap: 2rem; align-items: center; }
.edu-icon-container { flex-shrink: 0; width: 70px; height: 70px; background: var(--accent-soft); border-radius: 20px; display: flex; align-items: center; justify-content: center; color: var(--accent-blue); font-size: 2.2rem; }
.edu-icon-container.accent { background: var(--accent-gradient); color: #fff; box-shadow: var(--accent-glow); }
.edu-status { font-size: 0.75rem; font-weight: 900; color: var(--accent-blue); letter-spacing: 1px; }

/* Highlight Project */
.special-highlight { border: 2px solid var(--accent-blue) !important; background: linear-gradient(145deg, #ffffff, #f0f7ff) !important; }
.badge-new { background: #ef4444; color: #fff; padding: 6px 14px; border-radius: 10px; font-weight: 900; font-size: 0.7rem; position: absolute; right: 2rem; top: 2rem; z-index: 10; cursor: default; }

.badge-award {
    background: linear-gradient(135deg, #ffd700, #b8860b);
    color: #000;
    padding: 4px 12px;
    border-radius: 8px;
    font-weight: 900;
    font-size: 0.65rem;
    display: inline-block;
    margin-bottom: 1rem;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(184, 134, 11, 0.2);
}

/* --- Animations --- */
.reveal { opacity: 0; transform: translateY(40px); transition: 1s cubic-bezier(0, .9, .3, 1.1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Background Decoration */
.particle { position: fixed; background: rgba(59, 130, 246, 0.1); border-radius: 50%; z-index: -1; pointer-events: none; filter: blur(2px); }

/* Responsive Footer */
.main-footer { padding: 4rem 0; border-top: 1px solid var(--border-light); display: flex; justify-content: space-between; align-items: center; font-weight: 800; font-size: 0.85rem; color: var(--text-light); }

/* --- Mobile --- */
@media (max-width: 1200px) {
    .app-container { grid-template-columns: 1fr; }
    .sidebar { position: relative; height: auto; border: none; border-bottom: 1px solid var(--border-light); }
    .main-content { padding: 3rem 2rem; gap: 4rem; }
    .hero-headline { font-size: 3rem; letter-spacing: -2px; }
    .timeline-item { grid-template-columns: 1fr; gap: 1rem; }
}
