/* ================================================================
   SHARED STYLES — JP Nair Portfolio
   ================================================================ */

/* --- THEME VARIABLES --- */
:root {
    --accent: #1cd116;
    --nav-height: 70px;
}

:root[data-theme="dark"] {
    --bg-color: #000000;
    --bg-secondary: #0a0a0a;
    --text-main: #e2e8f0;
    --text-muted: #9ca3af;
    --glass-bg: rgba(10, 20, 20, 0.7);
    --glass-border: rgba(0, 242, 255, 0.15);
    --item-bg: rgba(255, 255, 255, 0.03);
    --item-border: rgba(0, 242, 255, 0.15);
    --nav-bg: rgba(0, 0, 0, 0.85);
    --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    --abstract-bg: rgba(0, 242, 255, 0.03);
    --overlay-color: rgba(0, 0, 0, 0.7);
    --bg-image: url('https://images.unsplash.com/photo-1535083783855-76462b99c841?q=80&w=2069&auto=format&fit=crop');
    --terminal-bg: #0d1117;
    --terminal-header: #161b22;
    --grid-color: rgba(0, 242, 255, 0.1);
}

:root[data-theme="light"] {
    --bg-color: #f0fdfa;
    --bg-secondary: #ffffff;
    --text-main: #1174e6;
    --text-muted: #f70;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(0, 0, 0, 0.1);
    --item-bg: rgba(0, 0, 0, 0.04);
    --item-border: #515478;
;
    --nav-bg: rgba(5, 4, 4, 0.95);
    --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    --abstract-bg: rgba(0, 242, 255, 0.1);

    /* Overlay color (dark transparent layer) */
    --bg-overlay: rgba(0, 0, 0, 0.7);

    /* Background image + dark gradient overlay */
    --bg-image: linear-gradient(
        var(--bg-overlay),
        var(--bg-overlay)
    ),
    url('../assets/pics/bg/robot.JPG');

    --terminal-bg: #000000;
    --terminal-header: #000000;
    --grid-color: rgba(0, 0, 0, 0.05);
}

/* --- BASE --- */
html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: var(--bg-color);
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%2300f2ff" stroke-width="1.5"><path d="M12 12L4 4M12 12L20 4M12 12L4 20M12 12L20 20"/><circle cx="12" cy="12" r="2.5" fill="%2300f2ff" fill-opacity="0.3"/><circle cx="4" cy="4" r="2.5"/><circle cx="20" cy="4" r="2.5"/><circle cx="4" cy="20" r="2.5"/><circle cx="20" cy="20" r="2.5"/></svg>') 12 12, auto;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

.background-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--bg-image);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -2;
}

.background-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
}

.overlay-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-color);
    z-index: -2;
    backdrop-filter: blur(3px);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

a:hover,
button:hover,
.nav-item:hover {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23ff6600" stroke-width="1.5"><path d="M12 12L4 4M12 12L20 4M12 12L4 20M12 12L20 20"/><circle cx="12" cy="12" r="2.5" fill="%23ff6600" fill-opacity="0.3"/><circle cx="4" cy="4" r="2.5"/><circle cx="20" cy="4" r="2.5"/><circle cx="4" cy="20" r="2.5"/><circle cx="20" cy="20" r="2.5"/></svg>') 12 12, pointer;
}

h1,
h2,
h3,
h4 {
    font-family: 'Rajdhani', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}

/* --- TOP NAVIGATION --- */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: var(--nav-bg);
    border-bottom: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    box-sizing: border-box;
}

.nav-left {
    flex-shrink: 0;
}

.nav-logo {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-logo i {
    color: var(--accent);
}

.nav-menu {
    display: flex;
    gap: 2px;
    overflow-x: auto;
    scrollbar-width: none;
    flex: 1;
    justify-content: flex-start;
    margin-left: 16px;
    margin-right: 10px;
    align-items: center;
}

.nav-menu::-webkit-scrollbar {
    display: none;
}

.nav-item {
    padding: 6px 8px;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.2s;
    white-space: nowrap;
    text-transform: uppercase;
    font-family: Verdana;
}

.nav-item:hover,
.nav-item.active {
    color: var(--accent);
    background: rgba(0, 242, 255, 0.05);
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: 30px;
}

.control-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.color-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.2rem;
    color: var(--text-main);
    cursor: pointer;
    padding: 8px;
}

@media (max-width: 1024px) {
    :root {
        --nav-height: 60px;
    }

    .top-nav {
        padding: 0 16px;
    }

    .nav-menu {
        position: fixed;
        top: var(--nav-height);
        right: 0;
        width: 220px;
        height: calc(100vh - var(--nav-height));
        background: var(--nav-bg);
        border-left: 1px solid var(--glass-border);
        flex-direction: column;
        padding: 10px;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        justify-content: flex-start;
        z-index: 1001;
        margin: 0;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-item {
        width: 100%;
        padding: 12px 15px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        border-radius: 4px;
        font-size: 0.85rem;
    }

    .nav-controls {
        margin-right: 0;
        gap: 6px;
    }

    .control-btn {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
}

/* Global Flying Drones Canvas */
#globalCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* --- SCROLL ROBOT --- */
.scroll-tracker {
    position: fixed;
    right: 10px;
    top: calc(var(--nav-height) + 20px);
    bottom: 20px;
    width: 4px;
    background: rgba(128, 128, 128, 0.2);
    border-radius: 2px;
    z-index: 900;
    pointer-events: auto;
}

.scroll-robot {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    background: var(--bg-secondary);
    border: 2px solid var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 0.9rem;
    box-shadow: 0 0 10px var(--accent);
    transition: top 0.1s linear;
    cursor: grab;
    pointer-events: auto;
    z-index: 901;
}

.scroll-robot:active {
    cursor: grabbing;
    transform: translate(-50%, -50%) scale(1.1);
}

.scroll-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: var(--accent);
    border-radius: 2px;
    box-shadow: 0 0 10px var(--accent);
}

/* --- MAIN CONTENT LAYOUT --- */
.main-content {
    padding: 20px 20px 60px;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.page-content {
    padding-top: calc(var(--nav-height) + 40px);
}

.section {
    margin-bottom: 100px;
    scroll-margin-top: 100px;
}

.section-header {
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 10px;
}

.section-icon {
    font-size: 1.8rem;
    color: var(--accent);
    background: var(--abstract-bg);
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--glass-border);
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}

/* --- GLASS CARD --- */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 32px;
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow);
    position: relative;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border-top: 2px solid var(--accent);
    border-left: 2px solid var(--accent);
    border-radius: 16px 0 0 0;
}

.glass-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20px;
    height: 20px;
    border-bottom: 2px solid var(--accent);
    border-right: 2px solid var(--accent);
    border-radius: 0 0 16px 0;
}

/* --- COMPONENTS --- */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.info-item h4 {
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: 6px;
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 0.1em;
    font-weight: 700;
}

.info-item p {
    font-weight: 500;
    font-size: 1.1rem;
    font-family: 'Rajdhani', sans-serif;
}

.quote-section {
    padding: 24px;
    border-left: 4px solid var(--accent);
    background: var(--glass-bg);
    margin-bottom: 40px;
    margin-top: 32px;
    border-radius: 0 8px 8px 0;
    position: relative;
    font-style: italic;
}

.quote-text {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 8px;
}

.quote-author {
    font-size: 0.9rem;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
}

.timeline-item {
    display: flex;
    gap: 20px;
    margin-bottom: 32px;
    position: relative;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-logo {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid var(--glass-border);
    background: var(--bg-secondary);
    padding: 4px;
    z-index: 2;
}

.timeline-item::after {
    content: '';
    position: absolute;
    top: 60px;
    bottom: -40px;
    left: 28px;
    width: 2px;
    background: var(--glass-border);
    z-index: 1;
}

.timeline-item:last-child::after {
    display: none;
}

.role-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.2;
}

.company-name {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.95rem;
}

.duration {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 8px;
}

.edu-score {
    font-size: 0.85rem;
    color: var(--text-main);
    font-weight: 500;
    background: var(--glass-bg);
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    margin-top: 4px;
    border: 1px solid var(--glass-border);
}

/* Skills */
.skills-group {
    margin-bottom: 24px;
}

.skills-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
    font-family: 'Rajdhani', sans-serif;
    text-transform: uppercase;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    position: relative;
    padding: 6px 14px;
    border-radius: 99px;
    background: var(--item-bg);
    border: 1px solid var(--item-border);
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: all 0.3s;
    cursor: default;
}

.tag:hover {
    background: var(--accent);
    color: #000;
    transform: translateY(-2px);
    border-color: var(--accent);
}

.tag.highlight {
    border-color: var(--accent);
    color: var(--accent);
}

.tag.highlight:hover {
    color: #000;
}

.tag .tooltip {
    visibility: hidden;
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 8px;
    border-radius: 6px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: 0.2s;
    pointer-events: none;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.tag:hover .tooltip {
    visibility: visible;
    opacity: 1;
    bottom: 135%;
}

.tag .tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: var(--glass-border) transparent transparent transparent;
}

.skill-bar-container {
    width: 100%;
    height: 4px;
    background: rgba(128, 128, 128, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 4px;
}

.skill-bar-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
}

.skill-text {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: var(--text-main);
    font-weight: 600;
    margin-bottom: 2px;
}

/* Carousel */
.carousel-container {
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    overflow: hidden;
    position: relative;
    background: var(--glass-bg);
    box-shadow: var(--shadow);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

.carousel-slide {
    min-width: 100%;
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .carousel-slide {
        flex-direction: row;
        height: 480px;
    }
}

.carousel-img,
.carousel-video {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.carousel-video {
    border: none;
}

@media (min-width: 768px) {

    .carousel-img,
    .carousel-video {
        width: 55%;
        height: 100%;
    }
}

.carousel-content {
    padding: 40px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 1px solid var(--glass-border);
}

.carousel-nav {
    position: absolute;
    bottom: 30px;
    right: 30px;
    display: flex;
    gap: 12px;
}

.carousel-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--accent);
    border: none;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px var(--accent);
}

.project-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-main);
}

.project-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* List Grid */
.list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}

.list-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    border-radius: 8px;
    background: var(--item-bg);
    border: 1px solid var(--item-border);
    transition: all 0.3s;
}

.list-card:hover {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
}

.list-icon {
    color: var(--accent);
    font-size: 1.2rem;
    margin-top: 4px;
}

/* Publications */
.pub-card {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px dashed var(--glass-border);
}

.pub-card:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.pub-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-main);
}

.pub-meta {
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-family: 'Fira Code', monospace;
}

.pub-abstract {
    font-size: 0.9rem;
    color: var(--text-muted);
    background: var(--abstract-bg);
    padding: 16px;
    border-radius: 4px;
    border-left: 2px solid var(--accent);
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    border-radius: 8px;
    background: var(--item-bg);
    border: 1px solid var(--item-border);
    transition: all 0.3s;
    backdrop-filter: blur(5px);
}

.contact-item:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.08);
}

.contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--accent) 10%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-text h4 {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 4px;
    font-family: 'Rajdhani', sans-serif;
    text-transform: uppercase;
}

.contact-text p {
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
    word-break: break-all;
}

.contact-link {
    color: var(--text-main);
    transition: color 0.2s;
    display: block;
    margin-bottom: 2px;
}

.contact-link:hover {
    color: var(--accent);
}

/* Show More */
.show-more-btn {
    display: inline-block;
    margin-top: 16px;
    font-size: 0.9rem;
    color: var(--accent);
    cursor: pointer;
    font-weight: 600;
    text-decoration: underline;
    background: none;
    border: none;
    padding: 0;
}

/* Search Widget */
.search-widget-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.4);
    z-index: 1001;
    transition: transform 0.2s;
    animation: pulse-glow 2.5s infinite;
}

.search-widget-btn:hover {
    transform: scale(1.1) rotate(10deg);
    animation: none;
}

.search-widget-btn::after {
    content: 'CMD / Search';
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--glass-bg);
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s;
    white-space: nowrap;
    box-shadow: var(--shadow);
    font-family: 'Rajdhani', sans-serif;
    backdrop-filter: blur(10px);
}

.search-widget-btn:hover::after {
    opacity: 1;
    right: 75px;
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 102, 0, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 102, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 102, 0, 0);
    }
}

/* Terminal Modal */
.terminal-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: 90%;
    max-width: 700px;
    height: 500px;
    background: var(--terminal-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
    z-index: 2001;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    font-family: 'Fira Code', monospace;
}

.terminal-modal.open {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.terminal-header {
    background: var(--terminal-header);
    padding: 10px 16px;
    display: flex;
    gap: 8px;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.red {
    background: #ff5f56;
}

.yellow {
    background: #ffbd2e;
}

.green {
    background: #27c93f;
}

.terminal-title {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-left: 8px;
}

.terminal-body {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-family: 'Fira Code', monospace;
}

.terminal-input-line {
    padding: 12px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    gap: 8px;
    align-items: center;
    background: rgba(0, 0, 0, 0.02);
}

.terminal-input {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-family: 'Fira Code', monospace;
    font-size: 0.95rem;
    flex: 1;
    outline: none;
}

.terminal-line {
    margin-bottom: 4px;
    display: flex;
    gap: 10px;
    opacity: 0;
    animation: typeLine 0.5s forwards;
}

@keyframes typeLine {
    to {
        opacity: 1;
    }
}

.cmd-prompt {
    color: var(--accent);
    white-space: nowrap;
}

.cmd-text {
    color: #eab308;
}

.output-text {
    color: var(--text-main);
    display: block;
    font-size: 0.9rem;
    line-height: 1.5;
}

.output-date {
    color: #10b981;
    font-size: 0.75rem;
    margin-left: 8px;
    opacity: 0.7;
}

.sys-info {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 10px;
    border-bottom: 1px dashed var(--glass-border);
    padding-bottom: 10px;
}

/* Search Bubble */
.search-bubble {
    position: fixed;
    bottom: 100px;
    right: 30px;
    background: var(--accent);
    color: #000;
    padding: 10px 15px;
    border-radius: 8px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    z-index: 1000;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.4);
    animation: float 2s infinite ease-in-out;
    pointer-events: none;
}

.search-bubble::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 20px;
    border-width: 10px 10px 0;
    border-style: solid;
    border-color: var(--accent) transparent transparent transparent;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Page Breadcrumb / Nav strip */
.page-nav-strip {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 12px 0 24px 0;
    margin-top: calc(var(--nav-height) + 20px);
}

.page-nav-strip a {
    padding: 6px 14px;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 600;
    background: var(--item-bg);
    border: 1px solid var(--item-border);
    color: var(--text-muted);
    transition: all 0.2s;
    font-family: 'Rajdhani', sans-serif;
    text-transform: uppercase;
    color: #da4112;
    border-color: #e2e8f0;
}

.page-nav-strip a:hover,
.page-nav-strip a.active {
    background: var(--accent);
    color: #7a3333;
    border-color: var(--accent);
}

.icons8-sun {
    display: inline-block;
    width: 48px;
    height: 48px;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciICB2aWV3Qm94PSIwIDAgNDggNDgiIHdpZHRoPSI0OHB4IiBoZWlnaHQ9IjQ4cHgiPjxwYXRoIGZpbGw9IiNGRjk4MDAiIGQ9Ik0xMSAxMUgzN1YzN0gxMXoiLz48cGF0aCBmaWxsPSIjRkY5ODAwIiBkPSJNMTEuMjcyIDExLjI3MkgzNi43MjhWMzYuNzI4SDExLjI3MnoiIHRyYW5zZm9ybT0icm90YXRlKC00NS4wMDEgMjQgMjQpIi8+PHBhdGggZmlsbD0iI0ZGRUIzQiIgZD0iTTEzLDI0YzAsNi4wNzcsNC45MjMsMTEsMTEsMTFjNi4wNzYsMCwxMS00LjkyMywxMS0xMXMtNC45MjQtMTEtMTEtMTFDMTcuOTIzLDEzLDEzLDE3LjkyMywxMywyNCIvPjwvc3ZnPg==') 50% 50% no-repeat;
    background-size: 100%;
}


.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 32px;
}

.project-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: 0.35s;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 50px rgba(0, 255, 255, 0.2);
}

.project-media {
    width: 100%;
    height: 350px;
    /* object-fit: cover; */
}

.project-body {
    padding: 26px;
}

.project-tags span {
    display: inline-block;
    margin: 6px 6px 0 0;
    padding: 6px 12px;
    font-size: 0.8rem;
    border-radius: 10px;
    background: rgb(0, 0, 0);
    color: #d5f1f3;
}

.section-subtitle {
    margin: 40px 0 18px;
    font-size: 1.6rem;
    font-weight: 600;
}


/* ===== Education Logo Fix ===== */

.timeline-logo {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    background: rgba(255,255,255,0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    border: 1px solid rgba(0,255,255,0.2);
}

.timeline-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ===== Coursework Styling Upgrade ===== */

.course-category {
    margin-top: 28px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    color: var(--accent);
}

.research-note {
    color: var(--text-muted);
    margin-bottom: 18px;
    max-width: 750px;
}