/* ── Sagar Kumar Portfolio — Custom Stylesheet ── */

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0f1724; }
::-webkit-scrollbar-thumb { background: #2d3f55; border-radius: 4px; border: 2px solid #0f1724; }
::-webkit-scrollbar-thumb:hover { background: #22d3ee; }

/* ── Timeline gradient ── */
.timeline-line {
    background: linear-gradient(to bottom, #22d3ee, #818cf8, #38bdf8);
}

/* ── Image / photo placeholder frames ── */
.image-placeholder {
    background: linear-gradient(135deg, #1a2332 0%, #1e2d3d 100%);
    position: relative;
    overflow: hidden;
}
.image-placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15,23,36,0.75) 0%, transparent 60%);
}

/* ── Form focus override ── */
.form-input:focus {
    border-color: #22d3ee !important;
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12);
    outline: none;
}

/* ── Card hover lifts ── */
.skill-card:hover,
.ach-card:hover,
.result-card:hover {
    transform: translateY(-3px);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

/* ── Nav active link ── */
.nav-link.active { color: #22d3ee; }

/* ── Mobile menu ── */
#mobile-menu { opacity: 0; transition: opacity 0.2s ease; pointer-events: none; }
#mobile-menu.open { opacity: 1; pointer-events: all; }

.exp-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.1rem 1.4rem;

    transition: all 0.3s ease;
}

.exp-card:hover {
    transform: translateY(-6px);
    border-color: var(--cyan);
    box-shadow: 0 8px 25px rgba(34,211,238,0.15);
}

#lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#lightbox.open {
    display: flex;
}

#lightbox-img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}

#close-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}

.ach-img img,
.result-img img,
.photo-frame img {
    cursor: pointer;
}

        *, *::before, *::after { box-sizing: border-box; }
        :root {
            --bg-base:    #0f1724;
            --bg-surface: #1a2332;
            --bg-card:    #1e2d3d;
            --bg-elevated:#243447;
            --border:     #2d3f55;
            --border-hover:#3d5269;
            --cyan:       #22d3ee;
            --cyan-dim:   #0e9ab5;
            --indigo:     #818cf8;
            --text-1:     #e2e8f0;
            --text-2:     #94a3b8;
            --text-3:     #64748b;
            --accent:     #22d3ee;
            --accent-dark:#0e7490;
        }
        html { scroll-behavior: smooth; }
        body {
            font-family: 'DM Sans', sans-serif;
            background: var(--bg-base);
            color: var(--text-1);
            overflow-x: hidden;
        }

        /* ── NAV ── */
        nav {
            background: rgba(15,23,36,0.88);
            border-bottom: 1px solid var(--border);
            backdrop-filter: blur(14px);
        }
        .nav-logo { color: var(--cyan); font-family: 'DM Mono', monospace; }
        .nav-link { color: var(--text-2); font-size: 0.875rem; font-weight: 500; transition: color .2s; }
        .nav-link:hover, .nav-link.active { color: var(--cyan); }
        .nav-btn {
            border: 1.5px solid var(--cyan);
            color: var(--cyan);
            padding: 0.4rem 1rem;
            border-radius: 6px;
            font-size: 0.8rem;
            font-weight: 600;
            transition: background .2s, color .2s;
        }
        .nav-btn:hover { background: rgba(34,211,238,0.1); }

        /* ── HERO ── */
        .hero-section {
            background: var(--bg-base);
            min-height: 100vh;
            display: flex; flex-direction: column; align-items: center; justify-content: center;
            text-align: center; padding: 0 1.5rem;
            position: relative; overflow: hidden;
        }
        .hero-grid {
            position: absolute; inset: 0;
            background-image:
                linear-gradient(to right, #1e293b 1px, transparent 1px),
                linear-gradient(to bottom, #1e293b 1px, transparent 1px);
            background-size: 3.5rem 3.5rem;
            mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 60%, transparent 100%);
            opacity: 0.4;
        }
        /* Ambient glow behind hero */
        .hero-glow {
            position: absolute;
            width: 600px; height: 600px;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(34,211,238,0.07) 0%, transparent 70%);
            top: 50%; left: 50%;
            transform: translate(-50%,-55%);
            pointer-events: none;
        }

        /* Avatar in hero */
        .hero-avatar {
            width: 88px; height: 88px; border-radius: 50%;
            border: 2.5px solid var(--cyan);
            overflow: hidden;
            box-shadow: 0 0 0 4px rgba(34,211,238,0.12);
            margin: 0 auto 1.25rem;
        }
        .hero-avatar img { width: 100%; height: 100%; object-fit: cover; }

        .hero-eyebrow {
            font-family: 'DM Mono', monospace;
            font-size: 0.68rem;
            letter-spacing: 0.2em;
            text-transform: uppercase;
            color: var(--cyan);
            margin-bottom: 0.9rem;
        }
        .hero-name {
            font-size: clamp(3.5rem, 10vw, 7rem);
            font-weight: 700;
            background: linear-gradient(135deg, #22d3ee 0%, #818cf8 55%, #38bdf8 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            letter-spacing: -0.03em;
            line-height: 1.05;
            margin-bottom: 0.85rem;
        }
        .hero-socials {
            display: flex; align-items: center; justify-content: center; gap: 0.65rem;
            margin-bottom: 1.25rem; flex-wrap: wrap;
        }
        .social-pill {
            display: inline-flex; align-items: center; gap: 0.4rem;
            background: var(--bg-card);
            border: 1px solid var(--border);
            color: var(--text-2);
            font-size: 0.76rem; font-weight: 500;
            padding: 0.35rem 0.85rem;
            border-radius: 999px;
            text-decoration: none;
            transition: border-color .2s, color .2s, box-shadow .2s;
        }
        .social-pill:hover { border-color: var(--cyan); color: var(--cyan); box-shadow: 0 0 10px rgba(34,211,238,0.15); }

        .hero-role {
            font-size: clamp(1rem, 3vw, 1.45rem);
            font-weight: 600;
            color: var(--text-1);
            margin-bottom: 0.65rem;
        }
        .hero-role .sep { color: var(--cyan); margin: 0 0.5rem; }

        /* Rotating animated line */
.rotating-line {
    height: 1.75rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.75rem;
    position: relative;
}

.rotating-line ul {
    list-style: none;
    margin: 0;
    padding: 0;
    animation: textRotate 12s infinite;
}

.rotating-line ul li {
    font-family: 'DM Mono', monospace;
    font-size: 0.82rem;
    color: var(--cyan);
    height: 1.75rem;
    line-height: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.03em;
    margin: 0;
    padding: 0;
}

@keyframes textRotate {
    0%,16%   { transform: translateY(0); }
    20%,36%  { transform: translateY(-1.75rem); }
    40%,56%  { transform: translateY(-3.5rem); }
    60%,76%  { transform: translateY(-5.25rem); }
    80%,96%  { transform: translateY(-7rem); }
    100%     { transform: translateY(0); }
}
        .hero-desc {
            max-width: 38rem; margin: 0 auto 2rem;
            color: var(--text-2); font-size: 0.92rem; line-height: 1.8;
        }
        .hero-btns { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
        .btn-primary {
            background: var(--cyan); color: #0f1724;
            padding: 0.75rem 2rem; border-radius: 8px; font-weight: 700; font-size: 0.88rem;
            text-decoration: none; transition: background .2s, transform .2s, box-shadow .2s;
            box-shadow: 0 4px 20px rgba(34,211,238,0.25);
        }
        .btn-primary:hover { background: #38e4f7; transform: translateY(-2px); box-shadow: 0 6px 24px rgba(34,211,238,0.35); }
        .btn-ghost {
            background: transparent; color: var(--text-1);
            padding: 0.75rem 2rem; border-radius: 8px; font-weight: 500; font-size: 0.88rem;
            text-decoration: none; border: 1.5px solid var(--border);
            transition: border-color .2s, transform .2s, box-shadow .2s;
        }
        .btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-2px); }

        /* ── SECTION SHARED ── */
        .section-num { font-family: 'DM Mono', monospace; color: var(--cyan); font-size: 0.9rem; }
        .section-divider { border-top: 1px solid var(--border); }

        /* ── ABOUT ── */
        #about { background: var(--bg-surface); }
        .about-badge {
            display: inline-flex; align-items: center; gap: 0.4rem;
            background: rgba(34,211,238,0.08); border: 1px solid rgba(34,211,238,0.2);
            color: var(--cyan); font-size: 0.7rem; font-weight: 600;
            padding: 0.25rem 0.75rem; border-radius: 999px;
            text-transform: uppercase; letter-spacing: 0.07em;
            font-family: 'DM Mono', monospace;
        }
        .qa-check {
            display: flex; align-items: flex-start; gap: 0.6rem;
            background: var(--bg-card); border: 1px solid var(--border);
            border-left: 3px solid var(--cyan);
            padding: 0.7rem 1rem; border-radius: 0 8px 8px 0;
            font-size: 0.82rem; color: var(--text-2); line-height: 1.55;
            transition: border-color .2s, background .2s;
        }
        .qa-check:hover { background: var(--bg-elevated); border-left-color: var(--indigo); }
        .qa-check .chk { color: var(--cyan); font-weight: 700; flex-shrink: 0; margin-top: 1px; }

        /* Photo card in about */
        .photo-card {
            background: var(--bg-card); border: 1px solid var(--border);
            border-radius: 14px; overflow: hidden;
        }
        .photo-frame {
            width: 100%; aspect-ratio: 4/5;
            background: var(--bg-elevated);
            display: flex; align-items: center; justify-content: center;
            position: relative; overflow: hidden;
        }
        .photo-frame img { width: 100%; height: 100%; object-fit: cover; }
        .photo-frame .photo-placeholder {
            display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
            color: var(--text-3); font-family: 'DM Mono', monospace; font-size: 0.7rem;
            text-align: center;
        }
        .photo-frame .photo-placeholder i { font-size: 2.5rem; color: var(--border-hover); }
        /* Subtle cyan corner accents */
        .photo-frame::before, .photo-frame::after {
            content: ''; position: absolute; width: 20px; height: 20px;
        }
        .photo-frame::before { top: 10px; left: 10px; border-top: 2px solid var(--cyan); border-left: 2px solid var(--cyan); }
        .photo-frame::after  { bottom: 10px; right: 10px; border-bottom: 2px solid var(--cyan); border-right: 2px solid var(--cyan); }

        .metrics-grid { padding: 1.25rem; }
        .metric-row {
            display: flex; align-items: center; gap: 0.65rem;
            padding: 0.55rem 0; border-bottom: 1px solid var(--border);
            font-size: 0.8rem; color: var(--text-2);
        }
        .metric-row:last-child { border-bottom: none; }
        .metric-row i { color: var(--cyan); width: 1rem; text-align: center; font-size: 0.85rem; }

        /* ── SKILLS ── */
        #skills { background: var(--bg-base); }
        .skill-card {
            background: var(--bg-card); border: 1px solid var(--border);
            border-radius: 12px; padding: 1.5rem;
            transition: border-color .25s, box-shadow .25s, transform .25s;
        }
        .skill-card:hover { border-color: var(--cyan); box-shadow: 0 4px 24px rgba(34,211,238,0.1); transform: translateY(-3px); }
        .skill-tag {
            font-family: 'DM Mono', monospace;
            background: var(--bg-elevated); border: 1px solid var(--border);
            color: var(--text-2); font-size: 0.68rem;
            padding: 0.25rem 0.55rem; border-radius: 4px;
        }

        /* ── EXPERIENCE ── */
        #experience { background: var(--bg-surface); }
        .exp-date {
            font-family: 'DM Mono', monospace; font-size: 0.7rem;
            background: var(--bg-elevated); border: 1px solid var(--border);
            color: var(--text-3); padding: 0.2rem 0.65rem; border-radius: 999px;
            white-space: nowrap;
        }
        .exp-card {
            background: var(--bg-card); border: 1px solid var(--border);
            border-radius: 10px; padding: 1.1rem 1.4rem;
        }
        .exp-list { list-style: none; padding: 0; margin: 0; }
        .exp-list li {
            position: relative; padding-left: 1.1rem;
            font-size: 0.82rem; color: var(--text-2); margin-bottom: 0.45rem; line-height: 1.6;
        }
        .exp-list li::before { content: '→'; position: absolute; left: 0; color: var(--cyan); font-size: 0.72rem; top: 2px; }

        /* ── ACHIEVEMENTS ── */
        #achievements { background: var(--bg-base); }
        .ach-card {
            background: var(--bg-card); border: 1px solid var(--border);
            border-radius: 12px; overflow: hidden;
            transition: border-color .25s, box-shadow .25s, transform .25s;
        }
        .ach-card:hover { border-color: var(--cyan); box-shadow: 0 6px 28px rgba(34,211,238,0.1); transform: translateY(-3px); }
        .ach-img { height: 10.5rem; background: var(--bg-elevated); display: flex; align-items: center; justify-content: center; overflow: hidden; }
        .ach-img img { width: 100%; height: 100%; object-fit: contain; opacity: 0.8; transition: opacity .2s; }
        .ach-card:hover .ach-img img { opacity: 1; }
        .ach-label { font-family: 'DM Mono', monospace; font-size: 0.63rem; text-transform: uppercase; letter-spacing: 0.1em; }

        /* ── STUDENT RESULTS ── */
        #results { background: var(--bg-surface); }
        .result-card {
            background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px;
            overflow: hidden; transition: border-color .25s, box-shadow .25s, transform .25s;
        }
        .result-card:hover { border-color: var(--cyan); box-shadow: 0 4px 20px rgba(34,211,238,0.1); transform: translateY(-3px); }
        .result-img { height: 15rem; overflow: hidden; }
        .result-img img { width: 100%; height: 100%; object-fit: cover; opacity: 0.7; transition: opacity .25s, transform .3s; }
        .result-card:hover .result-img img { opacity: 1; transform: scale(1.03); }

        /* ── CONTACT ── */
        #contact { background: var(--bg-base); }
        .contact-channel {
            display: flex; align-items: center; gap: 1rem;
            background: var(--bg-card); border: 1px solid var(--border);
            border-radius: 10px; padding: 0.9rem 1.15rem;
            text-decoration: none;
            transition: border-color .2s, background .2s;
        }
        .contact-channel:hover { border-color: var(--cyan); background: var(--bg-elevated); }
        .ch-icon { width: 2.1rem; height: 2.1rem; border-radius: 8px; background: rgba(34,211,238,0.08); display: flex; align-items: center; justify-content: center; color: var(--cyan); font-size: 0.95rem; flex-shrink: 0; }
        .ch-label { font-size: 0.67rem; color: var(--text-3); font-family: 'DM Mono', monospace; text-transform: uppercase; letter-spacing: 0.05em; }
        .ch-value { font-size: 0.82rem; color: var(--text-1); font-weight: 500; }
        .form-label { font-family: 'DM Mono', monospace; font-size: 0.67rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); display: block; margin-bottom: 0.45rem; }
        .form-input {
            width: 100%; background: var(--bg-elevated); border: 1.5px solid var(--border);
            border-radius: 8px; padding: 0.65rem 0.9rem;
            font-size: 0.875rem; color: var(--text-1); font-family: 'DM Sans', sans-serif;
            transition: border-color .2s, box-shadow .2s; outline: none;
        }
        .form-input::placeholder { color: var(--text-3); }
        .form-input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34,211,238,0.12); }
        .btn-submit {
            width: 100%; background: var(--cyan); color: #0f1724;
            border: none; border-radius: 8px; padding: 0.75rem;
            font-family: 'DM Mono', monospace; font-size: 0.78rem;
            font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
            cursor: pointer; transition: background .2s, transform .2s, box-shadow .2s;
            box-shadow: 0 4px 16px rgba(34,211,238,0.2);
        }
        .btn-submit:hover { background: #38e4f7; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(34,211,238,0.3); }

        /* ── FOOTER ── */
        footer { background: var(--bg-surface); border-top: 1px solid var(--border); }

        /* ── MOBILE MENU ── */
        #mobile-menu { display: none; background: var(--bg-base); }
        #mobile-menu.open { display: flex; }
        .hamburger { display: none; }
        @media (max-width: 768px) {
            .hamburger { display: flex; }
            #desktop-nav { display: none; }
        }
ul, li {
    position: static !important;
    display: block !important;
    white-space: normal !important;
    overflow: visible !important;
}

li {
    line-height: 1.7 !important;
    margin-bottom: 12px !important;
}

/* Mobile fix */
@media (max-width: 768px) {
    li {
        font-size: 14px;
        line-height: 1.7;
        margin-bottom: 14px;
    }
}


        