/*--------------------------------------------------------------
# Hemasri Gopisetti - Portfolio Stylesheet
# Author: Hemasri Gopisetti
# Description: Main stylesheet for personal portfolio website
--------------------------------------------------------------*/

:root {
            --primary-color: #7c3aed;
            --secondary-color: #06b6d4;
            --tertiary-color: #f59e0b;
            --primary-gradient: linear-gradient(135deg, #7c3aed, #06b6d4);
            --secondary-gradient: linear-gradient(to right, #f59e0b, #7c3aed, #06b6d4);
            --underline-gradient: linear-gradient(to left, #06b6d4, #7c3aed, #f59e0b);
            --vertical-gradient: linear-gradient(to top, #06b6d4, #7c3aed, #f59e0b);
            --transition: all .4s ease;
        }
        html, body { font-family: 'Rubik', sans-serif; font-weight: 300; overflow-x: hidden; }
        a { color: var(--primary-color); text-decoration: none; }
        a:hover { color: var(--secondary-color); }

        /* Dark/Light Mode */
        [data-bs-theme="dark"] {
            --text-color: #fff; --muted-text: #9a9a9a; --bg-color: #212121;
            --card-bg: rgba(255,255,255,0.05); --border-color: rgba(255,255,255,0.1);
            --offcanvas-bg: rgba(0,0,0,0.9);
        }
        [data-bs-theme="dark"]::before {
            content: ""; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            background: radial-gradient(ellipse at 20% 20%, #13004a 0%, #080820 40%, #001a2e 70%, #040410 100%);
            z-index: -1;
        }
        [data-bs-theme="light"] {
            --text-color: #000; --muted-text: #333; --bg-color: #fff;
            --card-bg: rgba(255,255,255,0.7); --border-color: rgba(0,0,0,0.1);
            --offcanvas-bg: rgba(215,215,215,0.9);
        }
        [data-bs-theme="light"]::before {
            content: ""; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            background: radial-gradient(ellipse at 20% 20%, #ede9fe 0%, #f0fdff 50%, #fffbeb 100%);
            z-index: -1;
        }

        /* Scrollbar */
        ::-webkit-scrollbar { width: 5px; }
        ::-webkit-scrollbar-thumb { border-radius: 20px; background: var(--vertical-gradient); }

        /* Cursor */
        * { cursor: none; }
        .cursor-dot { pointer-events: none; position: fixed; z-index: 9999; top: 0; left: 0; width: 5px; height: 5px; background: #fff; border-radius: 50%; transform: translate(-50%,-50%); transition: transform .1s ease; mix-blend-mode: difference; }
        .cursor-outline { pointer-events: none; position: fixed; z-index: 9998; top: 0; left: 0; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid rgba(124,58,237,0.7); transform: translate(-50%,-50%); transition: left .08s ease, top .08s ease, width .3s ease, height .3s ease, border-color .3s ease, background .3s ease; background: transparent; }
        .cursor-outline.hovered { width: 44px; height: 44px; border-color: #06b6d4; background: rgba(6,182,212,0.06); }
        @media(max-width:768px){ .cursor-dot,.cursor-outline{display:none} *{cursor:auto} }

        /* Preloader */
        #preloader { position: fixed; z-index: 99999; inset: 0; backdrop-filter: blur(20px); display: flex; align-items: center; justify-content: center; animation: fadePreloader 1s linear 1.5s forwards; }
        @keyframes fadePreloader { to { opacity: 0; visibility: hidden; } }
        .preloader-inner { text-align: center; }
        .preloader-name { font-family: 'Dancing Script', cursive; font-size: 2.5rem; background: var(--primary-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; animation: pulse 1s infinite; }
        @keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.5} }

        /* Utility */
        .theme-text { background: var(--secondary-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
        .section-heading { font-family: 'Dancing Script', cursive; margin: 18px 0; }
        .muted-text { color: var(--muted-text); }
        .underline { position: relative; }
        .underline::after { content: ""; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px; background-image: var(--underline-gradient); }
        .underline:hover { color: var(--secondary-color); }
        .social-icons a { color: var(--text-color); font-size: 18px; margin-right: 6px; transition: var(--transition); }
        .social-icons a:hover { color: var(--primary-color); }
        .logo-name { font-family: 'Dancing Script', cursive; font-size: 1.3rem; background: var(--primary-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
        .primary-bg-btn { color: #fff; background-color: var(--primary-color); border: none; transition: var(--transition); }
        .secondary-bg-btn { color: #fff; background-color: var(--secondary-color); border: none; transition: var(--transition); }
        .primary-bg-btn:hover, .secondary-bg-btn:hover { background-image: var(--primary-gradient); color: #fff; transform: translateY(-3px) scale(1.02); box-shadow: 0 10px 20px rgba(0,0,0,.2); }
        .theme-button { border-radius: 4px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.1); backdrop-filter: blur(20px); }
        [data-bs-theme="light"] .theme-button { background: rgba(0,0,0,0.05); border-color: rgba(0,0,0,0.15); }
        .card-glass { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 16px; backdrop-filter: blur(20px); transition: var(--transition); }
        .card-glass:hover { transform: translateY(-5px); border-color: var(--primary-color); box-shadow: 0 20px 40px rgba(65,93,230,0.2); }
        section { padding: 80px 0; }

        /* Navbar */
        #header { background: transparent; width: 100%; }
        #header.fixed-top { position: fixed; top: 0; right: 0; left: 0; z-index: 1030; backdrop-filter: blur(20px); background: rgba(0,0,0,.3); }
        [data-bs-theme="light"] #header.fixed-top { background: rgba(255,255,255,.6); }
        #header .navbar { padding: 15px 0; }
        .navbar .toggle-icon { color: var(--text-color); font-size: 28px; }
        .offcanvas { background-color: var(--offcanvas-bg); backdrop-filter: blur(20px); }
        .nav-link { color: var(--text-color) !important; font-weight: 400; transition: var(--transition); padding: 0.3rem 0.8rem; }
        .nav-link:hover { color: var(--primary-color) !important; }

        /* Hero */
        #hero { min-height: 100vh; display: flex; align-items: center; padding-top: 80px; }
        .hero-greeting { font-size: 1rem; letter-spacing: 3px; text-transform: uppercase; color: var(--tertiary-color); margin-bottom: 10px; }
        .hero-name { font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 700; line-height: 1.1; margin-bottom: 15px; }
        .hero-role { font-size: clamp(1rem, 2vw, 1.4rem); margin-bottom: 20px; }
        .hero-desc { font-size: 1rem; color: var(--muted-text); max-width: 500px; margin-bottom: 30px; line-height: 1.8; }
        .hero-image-wrapper { position: relative; display: flex; justify-content: center; align-items: center; }
        .hero-img-ring { width: 320px; height: 320px; border-radius: 50%; padding: 5px; background: var(--primary-gradient); display: flex; align-items: center; justify-content: center; animation: float 3s ease-in-out infinite; position: relative; }
        @keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-15px)} }
        .hero-img-ring img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: top; }
        .hero-img-glow { position: absolute; width: 340px; height: 340px; border-radius: 50%; background: var(--primary-gradient); filter: blur(30px); opacity: 0.25; z-index: -1; }
        .typed-text::after { content: '|'; animation: blink .7s step-end infinite; color: var(--primary-color); }
        @keyframes blink { 50%{opacity:0} }

        /* About */
        #about .about-img-wrapper { position: relative; }
        #about .about-img { width: 100%; max-width: 380px; border-radius: 20px; border: 3px solid transparent; background: linear-gradient(var(--card-bg),var(--card-bg)) padding-box, var(--primary-gradient) border-box; object-fit: cover; object-position: center top; box-shadow: 0 20px 60px rgba(65,93,230,0.3); }
        .edu-card { padding: 20px; margin-bottom: 15px; border-left: 4px solid var(--primary-color); }
        .edu-card h6 { color: var(--text-color); font-weight: 600; margin-bottom: 4px; }
        .edu-card .badge-year { background: var(--primary-gradient); color: #fff; padding: 3px 10px; border-radius: 20px; font-size: 0.75rem; }

        /* Skills */
        .skill-badge { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 30px; background: var(--card-bg); border: 1px solid var(--border-color); backdrop-filter: blur(10px); margin: 6px; font-size: 0.9rem; transition: var(--transition); color: var(--text-color); }
        .skill-badge:hover { background: var(--primary-gradient); color: #fff; border-color: transparent; transform: translateY(-3px) scale(1.05); box-shadow: 0 8px 20px rgba(65,93,230,0.3); }
        .skill-category-title { font-size: 0.8rem; letter-spacing: 2px; text-transform: uppercase; color: var(--tertiary-color); margin-bottom: 15px; font-weight: 500; }

        /* Projects */
        .project-card { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 16px; overflow: hidden; backdrop-filter: blur(20px); transition: var(--transition); height: 100%; }
        .project-card:hover { transform: translateY(-8px); border-color: var(--primary-color); box-shadow: 0 25px 50px rgba(65,93,230,.25); }
        .project-card-header { padding: 25px 25px 15px; position: relative; }
        .project-icon { width: 50px; height: 50px; border-radius: 12px; background: var(--primary-gradient); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 15px; }
        .project-card h5 { font-weight: 600; color: var(--text-color); margin-bottom: 8px; }
        .project-card p { color: var(--muted-text); font-size: 0.9rem; line-height: 1.7; }
        .project-tech { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 25px 20px; }
        .tech-tag { padding: 3px 12px; border-radius: 20px; font-size: 0.75rem; background: rgba(65,93,230,.15); color: var(--primary-color); border: 1px solid rgba(65,93,230,.3); }
        .project-links { padding: 15px 25px; border-top: 1px solid var(--border-color); display: flex; gap: 10px; }

        /* Experience */
        .timeline { position: relative; padding-left: 30px; }
        .timeline::before { content: ''; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px; background: var(--vertical-gradient); }
        .timeline-item { position: relative; margin-bottom: 35px; }
        .timeline-dot { position: absolute; left: -26px; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: var(--primary-gradient); border: 2px solid var(--bg-color); box-shadow: 0 0 10px rgba(65,93,230,.5); }
        .exp-card { padding: 22px; border-radius: 12px; }
        .exp-card h5 { color: var(--text-color); font-weight: 600; margin-bottom: 4px; }
        .exp-company { color: var(--primary-color); font-weight: 500; font-size: 0.95rem; }
        .exp-period { font-size: 0.8rem; color: var(--muted-text); margin-bottom: 12px; }
        .exp-card ul { padding-left: 18px; color: var(--muted-text); font-size: 0.9rem; line-height: 1.8; margin: 0; }

        /* Certifications */
        .cert-card { padding: 22px; border-radius: 14px; text-align: center; transition: var(--transition); }
        .cert-card:hover { transform: translateY(-5px); border-color: var(--primary-color); }
        .cert-icon { width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; margin: 0 auto 15px; }
        .cert-card h6 { color: var(--text-color); font-weight: 600; font-size: 0.95rem; margin-bottom: 5px; }
        .cert-card small { color: var(--muted-text); }
        .cert-badge { display: inline-block; margin-top: 10px; padding: 3px 14px; border-radius: 20px; font-size: 0.75rem; background: var(--primary-gradient); color: #fff; }

        /* Contact */
        #contact .contact-card { background: transparent; border-radius: 12px; border: 2px solid; transition: var(--transition); }
        [data-bs-theme="dark"] #contact .contact-card { border-color: #fff; }
        [data-bs-theme="light"] #contact .contact-card { border-color: #000; }
        #contact .form-control { background: transparent; transition: var(--transition); }
        [data-bs-theme="dark"] #contact .form-control { border-color: rgba(255,255,255,.4); color: #fff; }
        [data-bs-theme="dark"] #contact .form-control::placeholder { color: #999; }
        [data-bs-theme="light"] #contact .form-control { border-color: rgba(0,0,0,.4); color: #000; }
        #contact .form-control:focus { box-shadow: 0 0 10px rgba(133,13,213,.6); border-color: var(--primary-color); }
        .contact-info-item { display: flex; align-items: center; gap: 15px; padding: 15px; border-radius: 10px; margin-bottom: 12px; border: 1px solid var(--border-color); }
        .contact-info-icon { width: 42px; height: 42px; border-radius: 50%; background: var(--primary-gradient); display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; }

        /* Footer */
        #footer .container { padding: 1rem; border-top: 1px solid rgba(255,255,255,.1); }
        #footer .copyright-text { margin: 0; font-size: 14px; color: var(--muted-text); }
        .copyright-text span { color: var(--text-color); }
        .heart-icon { background: var(--primary-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
        #backToTopButton { display: none; position: fixed; right: 20px; bottom: 20px; z-index: 999; transition: var(--transition); background: var(--primary-gradient); border: none; border-radius: 50%; width: 45px; height: 45px; color: #fff; font-size: 1.2rem; }
        #backToTopButton:hover { transform: translateY(-4px); }

        /* ── Professional Scroll Animations ── */
        .reveal {
            opacity: 0;
            transform: translateY(28px);
            transition: opacity .65s cubic-bezier(.22,1,.36,1), transform .65s cubic-bezier(.22,1,.36,1);
        }
        .reveal.from-left  { transform: translateX(-36px); }
        .reveal.from-right { transform: translateX(36px); }
        .reveal.from-bottom{ transform: translateY(36px) scale(.97); }
        .reveal.visible {
            opacity: 1;
            transform: none;
        }
        /* stagger children inside a revealed parent */
        .stagger-children > * {
            opacity: 0;
            transform: translateY(22px);
            transition: opacity .5s cubic-bezier(.22,1,.36,1), transform .5s cubic-bezier(.22,1,.36,1);
        }
        .stagger-children.visible > *:nth-child(1){ transition-delay:.05s; opacity:1; transform:none; }
        .stagger-children.visible > *:nth-child(2){ transition-delay:.13s; opacity:1; transform:none; }
        .stagger-children.visible > *:nth-child(3){ transition-delay:.21s; opacity:1; transform:none; }
        .stagger-children.visible > *:nth-child(4){ transition-delay:.29s; opacity:1; transform:none; }
        .stagger-children.visible > *:nth-child(5){ transition-delay:.37s; opacity:1; transform:none; }
        .stagger-children.visible > *:nth-child(6){ transition-delay:.45s; opacity:1; transform:none; }
        .stagger-children.visible > *:nth-child(7){ transition-delay:.53s; opacity:1; transform:none; }

        /* Section heading underline draw */
        .section-heading { position: relative; display: inline-block; }
        .section-heading::after {
            content: '';
            position: absolute;
            left: 50%; bottom: -6px;
            width: 0; height: 3px;
            border-radius: 3px;
            background: var(--primary-gradient);
            transform: translateX(-50%);
            transition: width .8s cubic-bezier(.22,1,.36,1) .3s;
        }
        .section-heading.line-visible::after { width: 70%; }

        /* Skill badge pop */
        .skill-badge {
            opacity: 0;
            transform: scale(.88);
            transition: opacity .4s ease, transform .4s cubic-bezier(.34,1.56,.64,1), background .3s, color .3s, border-color .3s, box-shadow .3s;
        }
        .skill-badge.pop { opacity: 1; transform: scale(1); }

        /* Card shimmer on hover */
        .card-glass { position: relative; overflow: hidden; }
        .card-glass::after {
            content: '';
            position: absolute;
            top: -60%; left: -60%;
            width: 40%; height: 220%;
            background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.06) 50%, transparent 60%);
            transform: skewX(-20deg) translateX(-100%);
            transition: none;
            pointer-events: none;
        }
        .card-glass:hover::after {
            transform: skewX(-20deg) translateX(500%);
            transition: transform .75s ease;
        }

        /* Number counter for stats */
        .stat-num { display: inline-block; }

        /* Timeline item slide */
        .timeline-item {
            opacity: 0;
            transform: translateX(-20px);
            transition: opacity .55s cubic-bezier(.22,1,.36,1), transform .55s cubic-bezier(.22,1,.36,1);
        }
        .timeline-item.visible { opacity: 1; transform: none; }

        /* Project card pop */
        .project-card {
            opacity: 0;
            transform: translateY(24px);
            transition: opacity .6s cubic-bezier(.22,1,.36,1), transform .6s cubic-bezier(.22,1,.36,1),
                        border-color .3s, box-shadow .3s;
        }
        .project-card.visible { opacity: 1; transform: none; }

        /* Cert card pop */
        .cert-card {
            opacity: 0;
            transform: scale(.94) translateY(16px);
            transition: opacity .55s cubic-bezier(.22,1,.36,1), transform .55s cubic-bezier(.22,1,.36,1),
                        border-color .3s, box-shadow .3s;
        }
        .cert-card.visible { opacity: 1; transform: none; }

        /* old classes kept for compatibility */
        .fade-in, .fade-in-left, .fade-in-right { opacity:1; transform:none; }

        /* Navbar active */
        .nav-link.active { color: var(--primary-color) !important; }
        [data-bs-theme="light"] .nav-link { color: #000 !important; }
        [data-bs-theme="light"] .nav-link:hover { color: var(--primary-color) !important; }

        /* Certificate Photos */
        .cert-card { text-align: center; }
        .cert-img-wrapper { overflow: hidden; border-radius: 10px; border: 1px solid var(--border-color); }
        .cert-photo { width: 100%; height: 200px; object-fit: cover; object-position: top; border-radius: 10px; transition: transform .4s ease; cursor: pointer !important; display: block; }
        .cert-photo:hover { transform: scale(1.04); }
        .cert-badge { display: inline-block; margin-top: 8px; padding: 3px 14px; border-radius: 20px; font-size: .75rem; background: var(--primary-gradient); color: #fff; }

        /* About Visual */
        .about-visual-wrapper {
            position: relative;
            width: 260px;
            height: 260px;
            margin: 40px auto;
        }
        .about-ring-outer {
            position: absolute;
            inset: -18px;
            border-radius: 50%;
            border: 2px dashed rgba(65,93,230,0.35);
            animation: spinSlow 12s linear infinite;
        }
        .about-ring-middle {
            position: absolute;
            inset: -6px;
            border-radius: 50%;
            border: 2px solid transparent;
            background: var(--primary-gradient) border-box;
            -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
            -webkit-mask-composite: destination-out;
            mask-composite: exclude;
            animation: spinSlow 8s linear infinite reverse;
        }
        @keyframes spinSlow { to { transform: rotate(360deg); } }
        .about-img-frame {
            width: 100%;
            height: 100%;
            border-radius: 50%;
            overflow: hidden;
            border: 4px solid transparent;
            background: var(--primary-gradient) border-box;
            box-shadow: 0 0 40px rgba(65,93,230,0.4), 0 0 80px rgba(230,65,87,0.15);
            position: relative;
            z-index: 2;
        }
        .about-img-frame img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center top;
            border-radius: 50%;
            display: block;
        }
        .about-dot {
            position: absolute;
            border-radius: 50%;
            background: var(--primary-gradient);
            z-index: 3;
            animation: floatDot 3s ease-in-out infinite;
        }
        .dot-1 { width: 14px; height: 14px; top: 10px; right: 10px; animation-delay: 0s; }
        .dot-2 { width: 9px; height: 9px; bottom: 20px; right: 0px; animation-delay: .5s; background: linear-gradient(135deg,#12c2e9,#c471ed); }
        .dot-3 { width: 11px; height: 11px; bottom: 10px; left: 10px; animation-delay: 1s; }
        .dot-4 { width: 7px; height: 7px; top: 20px; left: 5px; animation-delay: 1.5s; background: linear-gradient(135deg,#f64f59,#c471ed); }
        @keyframes floatDot { 0%,100%{transform:translateY(0) scale(1)} 50%{transform:translateY(-8px) scale(1.2)} }
        .about-badge {
            position: absolute;
            bottom: -18px;
            left: 50%;
            transform: translateX(-50%);
            background: var(--primary-gradient);
            color: #fff;
            padding: 6px 18px;
            border-radius: 30px;
            font-size: .78rem;
            font-weight: 500;
            white-space: nowrap;
            z-index: 4;
            box-shadow: 0 6px 20px rgba(65,93,230,0.4);
            letter-spacing: .5px;
        }

        /* ── Education Section ── */
        #education { overflow: hidden; }
        .edu-timeline-wrapper { display: flex; flex-direction: column; gap: 0; position: relative; }
        .edu-timeline-wrapper::before {
            content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px;
            background: var(--vertical-gradient); transform: translateX(-50%); opacity: .4;
        }
        .edu-timeline-card {
            display: grid; grid-template-columns: 1fr 80px 1fr;
            align-items: center; gap: 0; min-height: 60px; margin-bottom: 40px;
        }
        /* Year bubble left for odd, right for even */
        .edu-tl-year-bubble {
            text-align: right; padding-right: 20px;
            font-size: .78rem; font-weight: 600; letter-spacing: 1px;
            background: var(--primary-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
            white-space: nowrap;
        }
        .edu-reverse .edu-tl-year-bubble { text-align: left; padding-right: 0; padding-left: 20px; grid-column: 3; grid-row: 1; }
        .edu-reverse .edu-tl-connector { grid-column: 2; grid-row: 1; }
        .edu-reverse .edu-tl-content { grid-column: 1; grid-row: 1; }

        /* Connector */
        .edu-tl-connector { display: flex; flex-direction: column; align-items: center; gap: 0; }
        .edu-tl-line { width: 2px; height: 30px; background: var(--primary-gradient); opacity: .5; }
        .edu-tl-dot {
            width: 22px; height: 22px; border-radius: 50%;
            background: var(--primary-gradient); display: flex; align-items: center; justify-content: center;
            box-shadow: 0 0 16px rgba(124,58,237,.6); animation: pulseDot 2s ease-in-out infinite;
            flex-shrink: 0;
        }
        .edu-tl-dot-inner { width: 10px; height: 10px; border-radius: 50%; background: #fff; opacity: .9; }
        @keyframes pulseDot { 0%,100%{box-shadow:0 0 12px rgba(124,58,237,.5)} 50%{box-shadow:0 0 28px rgba(6,182,212,.8)} }

        /* Content card */
        .edu-tl-content {
            padding: 24px; border-radius: 16px; position: relative;
            transition: transform .35s ease, box-shadow .35s ease;
        }
        .edu-timeline-card:not(.edu-reverse) .edu-tl-content { margin-left: 20px; }
        .edu-reverse .edu-tl-content { margin-right: 20px; }
        .edu-tl-content:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(124,58,237,.25); }

        /* Card internals */
        .edu-icon-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
        .edu-icon { font-size: 2rem; line-height: 1; }
        .edu-score-pill {
            padding: 4px 14px; border-radius: 30px; font-size: .78rem; font-weight: 600;
            background: var(--primary-gradient); color: #fff; letter-spacing: .5px;
            box-shadow: 0 4px 14px rgba(124,58,237,.35);
        }
        .edu-degree { font-weight: 700; font-size: 1.05rem; color: var(--text-color); margin-bottom: 4px; }
        .edu-institute { font-size: .82rem; color: var(--secondary-color); font-weight: 500; margin-bottom: 10px; }
        .edu-desc { font-size: .85rem; color: var(--muted-text); line-height: 1.7; margin-bottom: 12px; }
        .edu-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
        .edu-tags span {
            padding: 3px 11px; border-radius: 20px; font-size: .73rem;
            background: rgba(124,58,237,.12); color: var(--primary-color);
            border: 1px solid rgba(124,58,237,.25);
        }

        /* Progress bar */
        .edu-progress-bar-wrap { margin-top: 4px; }
        .edu-progress-label { display: flex; justify-content: space-between; font-size: .75rem; color: var(--muted-text); margin-bottom: 5px; }
        .edu-progress-track { height: 5px; border-radius: 10px; background: rgba(255,255,255,.08); overflow: hidden; }
        [data-bs-theme="light"] .edu-progress-track { background: rgba(0,0,0,.08); }
        .edu-progress-fill { height: 100%; width: 0%; border-radius: 10px; background: var(--primary-gradient); transition: width 1.4s cubic-bezier(.4,0,.2,1); }

        /* Responsive */
        @media(max-width:768px){
            .edu-timeline-wrapper::before { left: 16px; }
            .edu-timeline-card, .edu-reverse { grid-template-columns: 32px 1fr; grid-template-rows: auto auto; }
            .edu-tl-year-bubble, .edu-reverse .edu-tl-year-bubble { grid-column: 2; grid-row: 1; text-align: left; padding: 0 0 6px 12px; }
            .edu-tl-connector, .edu-reverse .edu-tl-connector { grid-column: 1; grid-row: 2; flex-direction: column; align-items: center; }
            .edu-tl-content, .edu-reverse .edu-tl-content { grid-column: 2; grid-row: 2; margin: 0 0 0 12px; }
            .edu-tl-line { height: 15px; }
        }

        /* ── Hero entrance ── */
        @keyframes heroSlideUp {
            from { opacity: 0; transform: translateY(40px); }
            to   { opacity: 1; transform: translateY(0); }
        }
        @keyframes heroSlideRight {
            from { opacity: 0; transform: translateX(40px); }
            to   { opacity: 1; transform: translateX(0); }
        }
        #hero .reveal.from-left  { animation: heroSlideUp .9s cubic-bezier(.22,1,.36,1) .1s both; }
        #hero .reveal.from-right { animation: heroSlideRight .9s cubic-bezier(.22,1,.36,1) .3s both; }

        /* ── Navbar link hover underline ── */
        .nav-link { position: relative; }
        .nav-link::after {
            content: ''; position: absolute; left: 50%; bottom: -2px;
            width: 0; height: 2px; border-radius: 2px;
            background: var(--primary-gradient); transform: translateX(-50%);
            transition: width .3s cubic-bezier(.22,1,.36,1);
        }
        .nav-link:hover::after, .nav-link.active::after { width: 80%; }

        /* ── Smooth section transitions ── */
        section { scroll-margin-top: 70px; }

        /* ── Experience timeline line draw animation ── */
        @keyframes drawLine {
            from { transform: scaleY(0); transform-origin: top; }
            to   { transform: scaleY(1); transform-origin: top; }
        }
        .timeline.animated::before { animation: drawLine .9s cubic-bezier(.22,1,.36,1) .2s both; }