
/* --- THEMES --- */
:root {
    --bg-color: #0f172a;
    --text-color: #f8fafc;
    --primary-color: #3b82f6;
    --accent-color: #10b981;
    --inactive-color: #334155;
    --card-bg: rgba(30, 41, 59, 0.7);
    --nav-bg: rgba(15, 23, 42, 0.9);
    --border-color: rgba(255,255,255,0.1);
}

[data-theme="light"] {
    --bg-color: #f1f5f9;
    --text-color: #0f172a;
    --primary-color: #2563eb;
    --accent-color: #059669;
    --inactive-color: #cbd5e1;
    --card-bg: rgba(255, 255, 255, 0.8);
    --nav-bg: rgba(255, 255, 255, 0.9);
    --border-color: rgba(0,0,0,0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', sans-serif; }
body { 
    background-color: var(--bg-color); 
    color: var(--text-color); 
    min-height: 100vh; 
    display: flex; 
    flex-direction: column; 
    overflow-x: hidden; 
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container { max-width: 1000px; margin: 0 auto; padding: 40px 20px; flex: 1; width: 100%; }

/* --- ANIMATED BACKGROUND SHAPES --- */
.bg-shapes { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; overflow: hidden; }
.shape { position: absolute; filter: blur(80px); opacity: 0.5; animation: morph 15s infinite alternate ease-in-out; }
.shape-1 { width: 400px; height: 400px; background: var(--primary-color); top: -10%; left: -10%; border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
.shape-2 { width: 500px; height: 500px; background: var(--accent-color); bottom: -20%; right: -10%; animation-delay: -5s; animation-duration: 20s; }
.shape-3 { width: 300px; height: 300px; background: #8b5cf6; top: 40%; left: 40%; animation-delay: -10s; }

@keyframes morph {
    0% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; transform: translate(0, 0) scale(1) rotate(0deg); }
    33% { border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%; transform: translate(50px, -50px) scale(1.1) rotate(20deg); }
    66% { border-radius: 100% 60% 60% 100% / 100% 100% 60% 60%; transform: translate(-20px, 20px) scale(0.9) rotate(-10deg); }
    100% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; transform: translate(0, 0) scale(1) rotate(0deg); }
}

/* --- NAVBAR --- */
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 20px 50px; background: var(--nav-bg); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border-color); position: sticky; top: 0; z-index: 100; transition: background 0.3s; }
.logo a { color: var(--primary-color); text-decoration: none; font-size: 1.5rem; font-weight: bold; }
.nav-links { list-style: none; display: flex; gap: 30px; align-items: center; }
.nav-links li { position: relative; }
.nav-links a { color: var(--text-color); text-decoration: none; font-weight: 500; transition: color 0.3s ease; }
.nav-links a:hover { color: var(--primary-color); }

.dropdown-content { display: none; position: absolute; top: 100%; left: 0; background: var(--card-bg); backdrop-filter: blur(10px); min-width: 150px; box-shadow: 0 8px 16px rgba(0,0,0,0.2); border-radius: 8px; padding: 10px 0; z-index: 10; border: 1px solid var(--border-color); }
.dropdown:hover .dropdown-content { display: block; }
.dropdown-content li { padding: 10px 20px; }
.dropdown-content a { display: block; }

.theme-btn { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text-color); transition: transform 0.3s; }
.theme-btn:hover { transform: scale(1.1); }
.hamburger { display: none; background: none; border: none; color: var(--text-color); font-size: 1.8rem; cursor: pointer; }
.nav-controls-mobile { display: none; }

/* --- INTRO SECTION --- */
.intro-section { display: flex; align-items: center; gap: 40px; margin-bottom: 60px; }
.intro-text { flex: 1; }
.intro-text h1 { margin-bottom: 20px; font-size: 2.5rem; }
.intro-text p { line-height: 1.6; opacity: 0.9; }
.img-placeholder { width: 200px; height: 200px; background: var(--card-bg); border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 4px solid var(--primary-color); color: var(--text-color); overflow: hidden; position: relative; font-weight: bold;}

/* --- VERTICAL TIMELINE --- */
.vertical-timeline { position: relative; margin-top: 40px; }
/* The line is positioned exactly at 20px from left */
.vertical-timeline::before { content: ''; position: absolute; left: 20px; top: 0; bottom: 0; width: 4px; background: var(--inactive-color); transform: translateX(-50%); border-radius: 2px; }

.timeline-item { position: relative; padding-left: 50px; margin-bottom: 40px; }
/* The node is centered exactly on the 20px line using transform */
.timeline-node { position: absolute; left: 20px; top: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--inactive-color); border: 4px solid var(--bg-color); transform: translateX(-50%); transition: background 0.5s ease, box-shadow 0.5s ease; z-index: 2;}

.timeline-item.completed .timeline-node { background: var(--accent-color); box-shadow: 0 0 10px var(--accent-color); }
.timeline-year { font-weight: bold; color: var(--primary-color); margin-bottom: 5px; font-size: 1.2rem; }
.timeline-content { background: var(--card-bg); padding: 20px; border-radius: 8px; border: 1px solid var(--border-color); box-shadow: 0 4px 6px rgba(0,0,0,0.1); transition: background 0.3s; }

/* --- HORIZONTAL TIMELINE --- */
.horizontal-timeline-wrapper { width: 100%; overflow-x: auto; padding-bottom: 20px; margin: 40px 0; }
.horizontal-timeline-wrapper::-webkit-scrollbar { height: 8px; }
.horizontal-timeline-wrapper::-webkit-scrollbar-thumb { background: var(--inactive-color); border-radius: 4px; }
.horizontal-timeline { display: flex; justify-content: space-between; align-items: center; position: relative; min-width: 600px; }

.horizontal-timeline::before { content: ''; position: absolute; top: 15px; left: 0; right: 0; height: 4px; background: var(--inactive-color); z-index: 1; border-radius: 2px; }
.h-timeline-item { position: relative; z-index: 2; text-align: center; flex: 1; display: flex; flex-direction: column; align-items: center; }

.h-node { width: 34px; height: 34px; border-radius: 50%; background: var(--inactive-color); border: 4px solid var(--bg-color); margin-bottom: 10px; transition: background 0.5s, box-shadow 0.5s; }

/* FIX: Simple class selection without sibling overrides */
.h-timeline-item.completed .h-node { background: var(--accent-color); box-shadow: 0 0 10px var(--accent-color); }
.h-year { font-weight: bold; color: var(--text-color); }
.h-timeline-item.completed .h-year { color: var(--accent-color); }

/* --- CONTENT BOX & FOOTER --- */
.content-box { background: var(--card-bg); padding: 30px; border-radius: 8px; margin-bottom: 20px; border: 1px solid var(--border-color); transition: background 0.3s; }
.site-footer { text-align: center; padding: 20px; background: var(--nav-bg); border-top: 1px solid var(--border-color); color: var(--text-color); opacity: 0.8; transition: background 0.3s; }

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 768px) {
    .navbar { padding: 15px 20px; }
    .desktop-theme-wrapper { display: none; }
    .nav-controls-mobile { display: flex; align-items: center; gap: 15px; }
    .hamburger { display: block; }
    
    .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%; background: var(--nav-bg); padding: 20px; border-bottom: 1px solid var(--border-color); box-shadow: 0 10px 15px rgba(0,0,0,0.1); }
    .nav-links.active { display: flex; align-items: flex-start; }
    
    .dropdown-content { position: relative; box-shadow: none; border: none; background: transparent; padding-left: 20px; display: none; }
    .dropdown:active .dropdown-content, .dropdown:focus-within .dropdown-content { display: block; }
    
    .intro-section { flex-direction: column; text-align: center; }
    .intro-image { margin-top: 20px; }
    
    .vertical-timeline::before { left: 15px; }
    .timeline-node { left: 15px; }
    .timeline-item { padding-left: 40px; }
}
    