@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&display=swap');

        :root {
            /* Dusk Palette: Sunset Pink & Twilight Purple */
            --primary-color: #ec4899; 
            --secondary-color: #8b5cf6; 
            --text-dark: #ffffff; 
            --text-light: #e2e8f0; 
            --card-bg: rgba(17, 12, 28, 0.7); 
            --bg-base: #0b0814; 
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            font-family: 'Inter', sans-serif;
            background-color: var(--bg-base); 
            color: var(--text-dark);
            margin: 0;
            padding: 0;
            line-height: 1.7;
            overflow-x: hidden;
            --scroll: 0px; 
        }

        /* --- SPLASH SCREEN LOADING ANIMATION --- */
        #splash-screen {
            position: fixed;
            top: 0; left: 0;
            width: 100vw; height: 100vh;
            background-color: var(--bg-base);
            z-index: 9999; 
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            transition: opacity 1s ease-out, visibility 1s ease-out;
        }
        
        #splash-screen.hidden {
            opacity: 0;
            visibility: hidden;
        }

        .loader-container {
            position: relative;
            width: 140px; height: 140px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .loader-ring {
            position: absolute;
            width: 100%; height: 100%;
            border: 3px solid rgba(255, 255, 255, 0.05);
            border-top-color: var(--primary-color);
            border-bottom-color: var(--secondary-color);
            border-radius: 50%;
            animation: spin 3s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
        }

        .loader-logo {
            font-size: 2.5rem;
            font-weight: 800;
            color: white;
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            animation: pulse 3s ease-in-out infinite;
        }

        .loader-text {
            margin-top: 35px;
            color: var(--text-light);
            font-size: 0.95rem;
            font-weight: 600;
            letter-spacing: 5px;
            text-transform: uppercase;
            animation: pulse 3s ease-in-out infinite;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 10px;
        }

        #loading-percentage {
            font-size: 1.5rem;
            font-weight: 800;
            color: var(--primary-color);
            letter-spacing: 2px;
        }

        @keyframes spin { 
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); } 
        }
        @keyframes pulse { 
            0%, 100% { opacity: 0.6; transform: scale(0.98); } 
            50% { opacity: 1; transform: scale(1.02); text-shadow: 0 0 15px rgba(236, 72, 153, 0.5); } 
        }

        /* --- Image Background --- */
        .liquid-bg {
            position: fixed;
            top: -10%; left: -10%; 
            width: 120vw; height: 120vh; 
            z-index: -2; 
            background-image: url('blue-bg.png');
            background-size: cover;
            background-position: center;
            opacity: 1; 
            animation: fluidBreath 20s ease-in-out infinite alternate;
            transform: translateY(calc(var(--scroll) * -0.25)) rotate(calc(var(--scroll) * 0.005deg));
            will-change: transform;
        }

        /* --- Blur Overlay --- */
        .bg-blur-overlay {
            position: fixed;
            top: 0; left: 0; 
            width: 100vw; height: 100vh;
            z-index: -1; 
            background: rgba(17, 12, 28, 0.5); 
            backdrop-filter: blur(14px); 
            -webkit-backdrop-filter: blur(14px); 
        }

        @keyframes fluidBreath {
            0% { background-size: 100%; filter: brightness(0.9); }
            100% { background-size: 110%; filter: brightness(1.1); }
        }

        .container { max-width: 1000px; margin: 0 auto; padding: 0 20px 40px; position: relative; z-index: 1; scroll-margin-top: 80px; }

        /* Hero Section */
        .hero { text-align: center; padding: 80px 0 40px; animation: slideDown 1s ease-out; }
        
        .profile-pic {
            width: 150px; height: 150px; border-radius: 50%;
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            color: white; font-size: 3.5rem; font-weight: 800;
            display: flex; align-items: center; justify-content: center;
            margin: 0 auto 25px;
            box-shadow: 0 10px 30px rgba(236, 72, 153, 0.3);
            border: 4px solid rgba(255, 255, 255, 0.9); transition: transform 0.3s ease;
        }
        .profile-pic:hover { transform: scale(1.05) rotate(5deg); }
        
        h1 { font-size: 3.5rem; font-weight: 800; margin: 0; color: var(--text-dark); letter-spacing: -1px; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
        .hero-subtitle { font-size: 1.1rem; font-weight: 400; color: var(--text-light); max-width: 800px; margin: 20px auto; line-height: 1.8; }
        .hero-subtitle strong { color: #ffffff; }
        
        .contact-bar {
            display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; margin-top: 30px;
            max-width: 900px; margin-left: auto; margin-right: auto;
        }
        .contact-badge {
            display: flex; align-items: center; gap: 8px;
            background: var(--card-bg); backdrop-filter: blur(10px);
            padding: 10px 20px; border-radius: 50px;
            font-size: 0.95rem; font-weight: 600; color: var(--text-dark);
            box-shadow: 0 4px 15px rgba(0,0,0,0.3);
            transition: all 0.3s ease; border: 1px solid rgba(255, 255, 255, 0.1);
            text-decoration: none;
        }
        .contact-badge:hover {
            transform: translateY(-3px);
            background: rgba(236, 72, 153, 0.15);
            box-shadow: 0 8px 20px rgba(236, 72, 153, 0.3);
            border-color: var(--primary-color);
        }
        .icon { width: 18px; height: 18px; fill: currentColor; }

        /* Section Headings modified for scrolling offsets */
        h2 {
            font-size: 2.2rem; color: var(--text-dark);
            margin: 45px 0 30px; display: inline-block;
            position: relative; animation: fadeIn 1s ease-out;
            text-shadow: 0 2px 8px rgba(0,0,0,0.5);
            scroll-margin-top: 40px;
        }
        h2::after {
            content: ''; position: absolute; left: 0; bottom: -8px;
            width: 40px; height: 4px; background: var(--primary-color); border-radius: 2px;
            box-shadow: 0 0 10px var(--primary-color);
        }

        /* --- Timeline Layout --- */
        .timeline { position: relative; max-width: 950px; margin: 0 auto; padding: 10px 0 30px; animation: slideUp 1s ease-out; }
        
        .timeline::before { 
            content: ''; position: absolute; left: 140px; top: 0; height: 100%; width: 2px; 
            background: rgba(255, 255, 255, 0.15); 
        }

        .timeline-item { display: flex; align-items: flex-start; margin-bottom: 50px; position: relative; }
        .timeline-year { 
            width: 120px; flex-shrink: 0; text-align: right; padding-right: 35px; 
            font-weight: 800; font-size: 1.1rem; color: var(--primary-color); position: relative; top: 25px; 
        }
        
        .timeline-year::after { 
            content: ''; position: absolute; right: -9px; top: 5px; width: 12px; height: 12px; 
            border-radius: 50%; background: var(--bg-base); border: 4px solid var(--secondary-color); z-index: 1; transition: all 0.3s ease;
        }
        .timeline-item:hover .timeline-year::after { 
            background: var(--primary-color); border-color: var(--primary-color);
            box-shadow: 0 0 15px rgba(236, 72, 153, 0.8); transform: scale(1.2);
        }
        
        .timeline-content { flex-grow: 1; padding-left: 40px; display: flex; align-items: center; gap: 30px; }
        .reverse-layout { flex-direction: row-reverse; }

        .timeline-img {
            width: 280px; height: 200px; object-fit: cover; border-radius: 12px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.5); border: 2px solid rgba(255,255,255,0.1);
            flex-shrink: 0; transition: transform 0.4s ease;
        }
        .timeline-item:hover .timeline-img { transform: scale(1.03); border-color: var(--primary-color); }

        .card {
            background: var(--card-bg); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
            padding: 25px; border-radius: 12px;
            box-shadow: 0 8px 32px rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.08);
            transition: all 0.3s ease; flex-grow: 1;
        }
        .card:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.6); transform: translateY(-5px); border-color: rgba(236, 72, 153, 0.4); }

        .item-title { font-size: 1.25rem; font-weight: 800; margin: 0 0 8px; color: var(--text-dark); }
        
        .item-org { font-size: 1.05rem; font-weight: 700; margin: 0 0 15px; }
        .org-link { color: var(--secondary-color); text-decoration: none; transition: color 0.2s; }
        .org-link:hover { color: var(--primary-color); text-decoration: underline; }
        
        .item-meta { font-size: 0.9rem; color: var(--text-light); font-weight: 600; display: flex; align-items: center; gap: 6px; }
        
        .item-desc {
            font-size: 0.95rem;
            color: var(--text-light);
            margin: 15px 0 0;
            line-height: 1.6;
        }

        .grid-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 20px; }
        .tag-container { display: flex; flex-wrap: wrap; gap: 12px; }
        
        .tag {
            background: rgba(255,255,255,0.05); backdrop-filter: blur(5px);
            color: var(--text-dark); padding: 10px 18px;
            border-radius: 8px; font-weight: 600; font-size: 0.95rem;
            border: 1px solid rgba(255, 255, 255, 0.1); transition: all 0.3s ease;
        }
        .tag:hover { background: var(--secondary-color); color: white; transform: scale(1.05); border-color: var(--secondary-color); box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4); }

        /* --- Floating Back to Top Button --- */
        .floating-top-btn {
            position: fixed; bottom: 30px; right: 30px;
            background: var(--primary-color); color: white;
            width: 50px; height: 50px; border-radius: 50%;
            display: flex; align-items: center; justify-content: center;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
            text-decoration: none; opacity: 0; visibility: hidden;
            transform: translateY(20px); transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            z-index: 1000;
        }
        .floating-top-btn.visible { opacity: 1; visibility: visible; transform: translateY(0); }
        .floating-top-btn:hover { transform: translateY(-5px); background: var(--secondary-color); box-shadow: 0 8px 25px rgba(236, 72, 153, 0.6); }
        .floating-top-btn svg { width: 24px; height: 24px; fill: currentColor; }

        /* Footer */
        footer {
            text-align: center; padding: 40px 20px; margin-top: 60px;
            border-top: 1px solid rgba(255, 255, 255, 0.05);
            background: rgba(17, 12, 28, 0.8); backdrop-filter: blur(15px); color: var(--text-light);
        }
        .footer-links { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
        .footer-links.social-row { margin-bottom: 15px; }
        .footer-links.contact-row { margin-bottom: 25px; gap: 30px; }
        .footer-links a { display: inline-flex; align-items: center; gap: 8px; color: var(--text-dark); text-decoration: none; font-weight: 600; transition: color 0.3s ease; }
        .footer-links a:hover { color: var(--primary-color); }

        /* Animations */
        @keyframes slideDown { from { opacity: 0; transform: translateY(-30px); } to { opacity: 1; transform: translateY(0); } }
        @keyframes slideUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
        @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

        /* Mobile Responsiveness */
        @media (max-width: 850px) {
            .grid-wrapper { grid-template-columns: 1fr; }
            h1 { font-size: 2.5rem; }
            .timeline::before { left: 20px; }
            .timeline-item { flex-direction: column; }
            .timeline-year { width: auto; text-align: left; padding-right: 0; padding-bottom: 10px; padding-left: 45px; top: 0; }
            .timeline-year::after { right: auto; left: 11px; top: 4px; }
            .timeline-content, .timeline-content.reverse-layout { padding-left: 45px; width: 100%; box-sizing: border-box; flex-direction: column; align-items: stretch; }
            .timeline-img { width: 100%; height: 200px; }
            .floating-top-btn { bottom: 20px; right: 20px; }
            .footer-links.contact-row { flex-direction: column; gap: 15px; }
        }