:root {
    --bg-color: #000c05;
    --text-color: #e6edf3;
    --accent-color: #00ff41;
    --secondary-color: #00ff41;
    --secondary-color-rgb: 0, 255, 65;
    --cyan-accent: #00f2ff;
    --purple-glow: #bd00ff;
    --glass-bg: rgba(0, 15, 5, 0.85);
    --glass-border: rgba(var(--secondary-color-rgb), 0.15);
    --font-main: 'VT323', monospace;
    --card-shadow: 0 8px 32px 0 rgba(var(--secondary-color-rgb), 0.1);
}

/* --- RESPONSIVE UTILITIES --- */
.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.card-inner-flex {
    display: flex;
    gap: 2rem;
    align-items: center;
    padding: 1rem;
    height: 100%;
}

@media (max-width: 768px) {
    .grid-2-col {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .card-inner-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .card-inner-flex>div {
        width: 100%;
    }

    /* Custom Added Card Side-Behavior Mobile Fix */
    .bento-item.custom-added-card[style*="flex-direction: row"] {
        flex-direction: column !important;
        height: auto !important;
    }

    .bento-item.custom-added-card [style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
}



/* --- LIVE EDITOR STYLES --- */
body.edit-mode-active [contenteditable="true"] {
    outline: 2px dashed var(--secondary-color) !important;
    outline-offset: 4px;
    animation: editablePulse 2s infinite;
    cursor: text;
}

body.edit-mode-active .cyber-social-btn {
    animation: socialPulse 1.5s infinite;
}

@keyframes editablePulse {
    0% {
        outline-color: rgba(var(--secondary-color-rgb), 0.3);
    }

    50% {
        outline-color: rgba(var(--secondary-color-rgb), 1);
        box-shadow: 0 0 15px rgba(var(--secondary-color-rgb), 0.2);
    }

    100% {
        outline-color: rgba(var(--secondary-color-rgb), 0.3);
    }
}

@keyframes socialPulse {
    0% {
        border-color: rgba(var(--secondary-color-rgb), 0.2);
        transform: scale(1);
    }

    50% {
        border-color: rgba(var(--secondary-color-rgb), 1);
        transform: scale(1.05);
    }

    100% {
        border-color: rgba(var(--secondary-color-rgb), 0.2);
        transform: scale(1);
    }
}

.card-edit-controls button:hover {
    background: var(--secondary-color) !important;
    color: black !important;
    transform: scale(1.1);
}

#editor-global-toolbar button:hover {
    background: white !important;
    color: var(--bg-color) !important;
    box-shadow: 0 0 20px #00ff41;
}

/* --- FREEDOM CONTROLS --- */
.card-edit-controls button {
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-edit-controls button.delete-btn:hover {
    background: #ff3e3e !important;
    transform: scale(1.1) rotate(5deg);
}

.card-edit-controls button.layout-toggle:hover {
    background: var(--cyan-accent) !important;
    color: black !important;
}

/* No Emojis Mode */
body.hide-emojis .cyber-emoji {
    display: none !important;
}

body.hide-emojis .bento-item h3::before,
body.hide-emojis .bento-item h3::after {
    content: none !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Premium Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--secondary-color), var(--cyan-accent));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(var(--cyan-accent), var(--purple-glow));
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
}


html {
    background-color: #00120b;
}

body {
    background-color: transparent;
    color: var(--text-color);
    font-family: var(--font-main);
    overflow-x: hidden;
    position: relative;
}

/* Holographic Scanline Effect */
.holographic-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%,
            rgba(var(--secondary-color-rgb), 0.02) 50%), linear-gradient(90deg,
            rgba(255, 0, 0, 0.01),
            rgba(0, 255, 0, 0.01),
            rgba(0, 0, 255, 0.01));
    background-size: 100% 4px, 3px 100%;
    opacity: 0.3;
    transition: opacity 0.3s ease;
    transform: translateY(var(--scanline-offset, 0px));
}

@media (max-width: 768px) {
    .holographic-overlay {
        opacity: 0.1;
        background-size: 100% 8px, 6px 100%;
    }
}

.holographic-overlay::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(transparent, rgba(var(--secondary-color-rgb), 0.05) 50%, transparent);
    animation: scanlineScroll 8s linear infinite;
    pointer-events: none;
}

@keyframes scanlineScroll {
    100% {
        transform: translateY(100%);
    }
}



html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

.content {
    position: relative;
    z-index: 1;
    padding: 2rem 2rem 0 2rem;
    max-width: 1400px;
    margin: 0 auto;
    transition: opacity 0.8s ease, transform 0.8s ease, filter 0.8s ease;
}

@media (max-width: 768px) {
    .content {
        padding: 1rem 1rem 0 1rem;
    }
}

body.content-hidden .content {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.95);
    filter: blur(10px);
}

.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(var(--secondary-color-rgb), 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: -1;
    filter: blur(60px);
    pointer-events: none;
}

.hero h1 {
    font-size: 7.5rem;
    font-weight: 900;
    line-height: 0.85;
    text-transform: uppercase;
    background: linear-gradient(135deg, #ffffff 0%, var(--secondary-color) 40%, var(--cyan-accent) 70%, var(--purple-glow) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2rem;
    letter-spacing: -0.04em;
    filter: drop-shadow(0 0 20px rgba(var(--secondary-color-rgb), 0.4));
    animation: gradientFlow 3s ease infinite;
    animation-play-state: paused;
    cursor: default;
    transition: filter 0.3s;
}

.hero h1:hover {
    animation-play-state: running;
    animation: gradientFlow 3s ease infinite, neonPulse 1.5s ease-in-out infinite alternate;
}

@keyframes neonPulse {
    from {
        text-shadow: 0 0 10px rgba(0, 255, 65, 0.4), 0 0 20px rgba(0, 255, 65, 0.2);
    }

    to {
        text-shadow: 0 0 20px rgba(var(--secondary-color-rgb), 0.9), 0 0 40px rgba(0, 242, 255, 0.6), 0 0 60px rgba(var(--secondary-color-rgb), 0.4);
    }
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.hero p {
    font-size: 1.5rem;
    max-width: 600px;
    color: rgba(255, 255, 255, 0.8);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 2.5rem;
    margin: 6rem 0;
    position: relative;
}

/* Section Glow Divider */
.bento-grid::before {
    content: '';
    position: absolute;
    top: -3rem;
    left: 10%;
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
    opacity: 0.3;
}

.bento-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.bento-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(var(--secondary-color-rgb), 0.08) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.bento-item:hover {
    transform: translateY(-8px) scale(1.015);
    border-color: rgba(var(--secondary-color-rgb), 0.6);
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.5),
        inset 0 1px 1px rgba(255, 255, 255, 0.4),
        0 0 20px rgba(var(--secondary-color-rgb), 0.1);
}

.bento-item:hover::before {
    opacity: 1;
}

.bento-item::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg at 50% 50%, transparent 0%, rgba(var(--secondary-color-rgb), 0.03) 25%, transparent 50%);
    animation: rotateGlow 10s linear infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes rotateGlow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.bento-item.large {
    grid-column: span 2;
}

.bento-item h3 {
    font-size: 2.2rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
    color: var(--secondary-color);
    text-shadow: 0 0 15px rgba(var(--secondary-color-rgb), 0.5);
    letter-spacing: 0.05em;
}

.bento-item p {
    color: rgba(255, 255, 255, 0.8);
}

.bento-item strong {
    color: var(--secondary-color);
}

.bento-item ul {
    list-style: none;
    padding-left: 0;
}

.python-logo {
    font-size: 2.5rem;
    display: inline-block;
    animation: pythonBounce 2s ease-in-out infinite;
}

.python-logo-small {
    font-size: 2rem;
    display: inline-block;
    animation: pythonRotate 3s linear infinite;
}

.python-animation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.hand-emoji {
    display: inline-block;
    animation: handWave 1.5s ease-in-out infinite;
}

.python-emoji {
    display: inline-block;
    animation: pythonSlide 2s ease-in-out infinite;
}

@keyframes pythonBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes pythonRotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Character Wave Animation */
@keyframes wave {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(15deg);
    }

    75% {
        transform: rotate(-15deg);
    }
}

.waving {
    animation: wave 0.5s ease-in-out 3;
    /* Wave 3 times */
}

@keyframes handWave {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(20deg);
    }

    75% {
        transform: rotate(-20deg);
    }
}

@keyframes pythonSlide {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(20px);
    }
}

/* QR Code Section */
.qr-section {
    margin: 6rem 0;
    text-align: center;
}

.qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

.qr-content {
    max-width: 600px;
}

.qr-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.qr-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
}

.qr-warning {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

.qr-card {
    position: relative;
    width: 350px;
    height: 350px;
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    backdrop-filter: blur(20px);
    transform-style: preserve-3d;
    animation: qrFloat 3s ease-in-out infinite;
}

.qr-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
    position: relative;
    z-index: 2;
}

.qr-scanner-line {
    position: absolute;
    top: 2rem;
    left: 2rem;
    right: 2rem;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
    animation: scanLine 2s linear infinite;
    z-index: 3;
    box-shadow: 0 0 10px var(--secondary-color);
}

.qr-analyzing-text {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--secondary-color);
    font-size: 0.9rem;
    font-weight: 600;
    animation: pulse 1.5s ease-in-out infinite;
    z-index: 3;
}

.qr-corners {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.corner {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 3px solid var(--secondary-color);
    animation: cornerPulse 2s ease-in-out infinite;
}

.corner.top-left {
    top: 1.5rem;
    left: 1.5rem;
    border-right: none;
    border-bottom: none;
}

.corner.top-right {
    top: 1.5rem;
    right: 1.5rem;
    border-left: none;
    border-bottom: none;
}

.corner.bottom-left {
    bottom: 1.5rem;
    left: 1.5rem;
    border-right: none;
    border-top: none;
}

.corner.bottom-right {
    bottom: 1.5rem;
    right: 1.5rem;
    border-left: none;
    border-top: none;
}

@keyframes qrFloat {

    0%,
    100% {
        transform: translateY(0) rotateX(0deg) rotateY(0deg);
    }

    50% {
        transform: translateY(-20px) rotateX(5deg) rotateY(5deg);
    }
}

@keyframes scanLine {
    0% {
        top: 2rem;
    }

    100% {
        top: calc(100% - 2rem);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes cornerPulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(0.7);
    }
}

.qr-button-container {
    margin-top: 2rem;
}

.visit-site-btn {
    position: relative;
    display: inline-block;
    padding: 1.2rem 3rem;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 229, 255, 0.3);
}

.visit-site-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 229, 255, 0.5);
}

.btn-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: btnGlow 3s linear infinite;
}

@keyframes btnGlow {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.skeleton {
    background: linear-gradient(90deg, var(--glass-bg) 25%, rgba(255, 255, 255, 0.1) 50%, var(--glass-bg) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

/* --- ANIMATIONS & SCROLL --- */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.5);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.scroll-animate {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

/* Modern Scroll-Driven Animation (Chrome/Edge/Opera) */
@supports (animation-timeline: view()) {
    .scroll-animate {
        animation: fadeUp linear both;
        animation-timeline: view();
        animation-range: entry 0% cover 40%;
        /* Disable transition if scroll-timeline is active to avoid conflicts */
        transition: none !important;
    }
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.bento-item:nth-child(1).scroll-animate {
    transition-delay: 0.1s;
}

.bento-item:nth-child(2).scroll-animate {
    transition-delay: 0.2s;
}

.bento-item:nth-child(3).scroll-animate {
    transition-delay: 0.3s;
}

.bento-item:nth-child(4).scroll-animate {
    transition-delay: 0.4s;
}

footer {
    margin-top: 100px;
    padding-bottom: 50px;
    text-align: center;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .hero {
        height: auto;
        min-height: 100vh;
        padding-top: 5rem;
        padding-bottom: 3rem;
    }

    .hero h1 {
        font-size: clamp(2.5rem, 12vw, 4.5rem);
        line-height: 1.1;
        margin-bottom: 1.5rem;
    }

    .hero p {
        font-size: 1.1rem;
        max-width: 100%;
    }

    .cyber-social-dock {
        width: 100%;
        justify-content: center;
        gap: 1rem;
        padding: 0.8rem 1rem;
    }

    .cyber-social-btn {
        width: 45px;
        height: 45px;
    }

    .bento-grid {
        gap: 1.5rem;
        margin: 3rem 0;
    }

    .bento-item {
        padding: 1.5rem;
        min-height: auto;
    }

    .bento-item.large {
        grid-column: span 1;
    }

    .bento-item h3 {
        font-size: 1.8rem;
    }

    .qr-card {
        width: 220px;
        height: 220px;
    }

    .intro-characters {
        gap: 1.5rem !important;
        flex-direction: column;
        align-items: center;
    }

    .intro-char img {
        width: 120px !important;
        height: 120px !important;
    }

    .intro-speech {
        font-size: 0.8rem !important;
        padding: 0.5rem 1rem !important;
    }

    .terminal-card {
        height: 500px;
        max-height: 70vh;
    }

    .terminal-sidebar {
        width: 50px;
        gap: 15px;
    }

    .sidebar-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .terminal-body {
        padding: 15px;
        font-size: 0.9rem;
    }

    .skills-content {
        gap: 1.5rem;
    }

    .skills-content>div:last-child {
        border-left: none !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-left: 0 !important;
        padding-top: 1.5rem;
    }
}


/* --- ARCHITECTURE CHAIN --- */
.architecture-chain {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    padding-left: 10px;
}

.chain-node {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0.8rem 0;
    position: relative;
}

.chain-icon {
    width: 40px;
    height: 40px;
    background: rgba(var(--secondary-color-rgb), 0.1);
    border: 1px solid var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.2);
}

.chain-text {
    font-family: var(--font-main);
}

.chain-text strong {
    color: var(--secondary-color);
    font-size: 1.1rem;
    display: block;
}

.chain-text span {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

/* Vertical Pipe */
.chain-node:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 20px;
    top: 40px;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--secondary-color), transparent);
    z-index: 1;
    opacity: 0.4;
}

/* Flowing Data Pulse */
.chain-node:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 40px;
    width: 6px;
    height: 6px;
    background: var(--cyan-accent);
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 10px var(--cyan-accent);
    animation: flowData 2s linear infinite;
}

@keyframes flowData {
    0% {
        transform: translateY(0);
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        transform: translateY(40px);
        opacity: 0;
    }
}

.chain-node:hover .chain-icon {
    transform: scale(1.2);
    background: var(--secondary-color);
    color: black;
    box-shadow: 0 0 25px var(--secondary-color);
}

.cyber-social-dock {
    display: flex;
    gap: 1.5rem;
    margin-top: 2.5rem;
    background: rgba(var(--secondary-color-rgb), 0.05);
    padding: 1rem 1.5rem;
    border-radius: 50px;
    border: 1px solid rgba(var(--secondary-color-rgb), 0.2);
    backdrop-filter: blur(12px);
    width: max-content;
    box-shadow: 0 10px 40px rgba(var(--secondary-color-rgb), 0.1);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cyber-social-dock:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 40px rgba(var(--secondary-color-rgb), 0.25);
}

.cyber-social-btn {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(var(--secondary-color-rgb), 0.2);
    color: var(--secondary-color);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.3, 1.5, 0.4, 1);
    text-decoration: none;
    overflow: visible;
}

.cyber-social-btn svg {
    /* Dimensions handled inline for safety, but keeping this for transitions */
    width: 24px !important;
    height: 24px !important;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 5px rgba(var(--secondary-color-rgb), 0.3));
}

.cyber-social-btn:hover {
    transform: translateY(-5px) scale(1.1);
}

.instagram-btn:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    box-shadow: 0 0 20px rgba(220, 39, 67, 0.6);
    border-color: transparent;
}

.discord-btn:hover {
    background: #5865F2;
    box-shadow: 0 0 20px rgba(88, 101, 242, 0.6);
    border-color: transparent;
}

.cyber-social-btn:hover svg {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8));
}

.cyber-tooltip {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(0, 0, 0, 0.95);
    color: var(--secondary-color);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    border: 1px solid var(--secondary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.cyber-tooltip::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 0 5px 5px 5px;
    border-style: solid;
    border-color: transparent transparent rgba(0, 0, 0, 0.9) transparent;
}

.cyber-social-btn:hover .cyber-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.bottom-hero-image {
    width: 100%;
    margin-top: 0;
    position: relative;
    z-index: 0;
    overflow: hidden;
    min-height: 70vh;
    /* Increased height to cover bottom half */
    display: flex;
    align-items: flex-end;
    /* Align footer to bottom */
}

.bottom-hero-image img {
    position: absolute;
    top: -15%;
    left: 0;
    width: 100%;
    height: 120%;
    object-fit: cover;
    z-index: -1;
    transform: scale(1.3);
    /* Start zoomed in */
    transition: transform 1.8s cubic-bezier(0.16, 1, 0.3, 1);
    /* Long smooth zoom out */
    will-change: transform;
}

.bottom-hero-image footer {
    position: relative;
    /* Changed from absolute to flow within the flex container */
    width: 100%;
    padding: 3rem 0;
    background: linear-gradient(to top, rgba(0, 3, 61, 1), transparent);
}

/* --- SKILL CIRCUITRY --- */
.skills-card {
    position: relative;
    overflow: hidden;
}

.circuit-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.1;
    pointer-events: none;
}

.circuit-line {
    position: absolute;
    background: var(--secondary-color);
    box-shadow: 0 0 10px var(--secondary-color);
}

.circuit-node {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--secondary-color);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--secondary-color);
    animation: nodePulse 2s ease-in-out infinite;
}

@keyframes nodePulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.5);
        opacity: 1;
    }
}

.skills-content {
    position: relative;
    z-index: 2;
}

/* --- INTRO SEQUENCE STYLES --- */
#intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(var(--secondary-color-rgb), 0.05);
    backdrop-filter: blur(20px);
    z-index: 999999;
    /* Highest priority */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 1s ease;
    border: 1px solid var(--secondary-color);
}

#skip-intro {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: transparent;
    border-bottom: 1px solid rgba(var(--secondary-color-rgb), 0.2);
    color: rgba(255, 255, 255, 0.6);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-family: var(--font-main);
    font-weight: 600;
    transition: all 0.3s ease;
    z-index: 10;
}

#skip-intro:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: white;
}

.intro-characters {
    display: flex;
    gap: 6rem;
    /* Increased gap */
    align-items: flex-end;
    /* Align bottom to match feet roughly */
    margin-bottom: 3rem;
    /* Space for input below */
}

.intro-char {
    position: relative;
    /* For absolute speech bubbles */
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transform: scale(0.5);
}

.intro-char.visible {
    animation: charZoomIn 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.intro-char img {
    width: 180px;
    /* Slightly smaller to fit better */
    height: 180px;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.2));
}

.intro-speech {
    position: absolute;
    bottom: 100%;
    /* Position above character */
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    margin-bottom: 1rem;
    background: rgba(var(--secondary-color-rgb), 0.1);
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    backdrop-filter: blur(10px);
    padding: 0.8rem 1.5rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1rem;
    opacity: 0;
    white-space: nowrap;
    /* Prevent wrapping */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    z-index: 10;
}

/* Speech Bubble Tails */
.intro-speech::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 10px;
    border-style: solid;
    border-color: var(--secondary-color) transparent transparent transparent;
}

.intro-char.visible .intro-speech {
    animation: speechPop 0.5s ease forwards 0.8s;
}

@keyframes charZoomIn {
    to {
        opacity: 1;
        transform: scale(1.2);
        /* Slightly less massive for clean look */
    }
}

@keyframes speechPop {
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Name Input Styles */
#user-name-input {
    padding: 1rem 1.5rem;
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1.1rem;
    font-family: var(--font-main);
    outline: none;
    transition: all 0.3s ease;
    width: 250px;
    text-align: center;
}

#user-name-input:focus {
    border-color: var(--secondary-color);
    background: rgba(0, 255, 65, 0.1);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.3);
}

#user-name-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

#submit-name-btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    border: none;
    background: linear-gradient(135deg, var(--secondary-color), #004d13);
    color: black;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 10px;
}

#submit-name-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 229, 255, 0.4);
}

/* --- NIGHT MODE --- */
body.night-mode {
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%) !important;
}

/* --- SCROLL-REVEAL ANIMATIONS (RE-ADDED) --- */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.5);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.scroll-animate {
    @supports (animation-timeline: view()) {
        animation: fadeUp linear both;
        animation-timeline: view();
        animation-range: entry 0% cover 40%;
    }
}





/* Make text pop more in night mode */
body.night-mode h1,
body.night-mode h2,
body.night-mode h3 {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Adjust button glow in night mode */

body.night-mode #theme-toggle-btn {
    box-shadow: 0 0 15px rgba(var(--secondary-color-rgb), 0.1);
}

/* --- NIGHT SKY STARS --- */
#star-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    /* Front of body background, behind content (content is z-index: 1) */
    pointer-events: none;
    opacity: 0;
    transition: opacity 1s ease;
}

body.night-mode #star-container {
    opacity: 1;
}

/* Hide Visuals in Night Mode */
body.night-mode .sky-plane,
body.night-mode .bottom-hero-image {
    opacity: 0 !important;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 4px 1px rgba(255, 255, 255, 0.4);
    /* Add glow */
}

/* Blink Animation */
@keyframes twinkle {

    0%,
    100% {
        opacity: 0.8;
        transform: scale(1);
    }

    50% {
        opacity: 0.3;
        transform: scale(0.7);
    }
}


/* --- MASSIVE SCROLLING TEXT --- */
.scrolling-bg-text-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-10deg);
    width: 150vw;
    /* Make it wider than screen */
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: -1;
    /* Behind content, above bg */
    pointer-events: none;
    opacity: 0.15;
    /* Very subtle */
    user-select: none;
}

.scrolling-text-row {
    font-size: 15vw;
    font-weight: 900;
    white-space: nowrap;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(var(--secondary-color-rgb), 0.4);
    font-family: var(--font-main);
    line-height: 1;
    will-change: transform;
    opacity: 1;
    animation: scroll-left 30s linear infinite;
}

.scrolling-text-row.reverse {
    animation: scroll-right 30s linear infinite;
}

/* --- BACKGROUND CONTAINER ANIMATION --- */
.scrolling-bg-text-container {
    animation: bg-scroll 60s linear infinite;
}

@keyframes bg-scroll {
    0% {
        transform: translate(-50%, -50%) rotate(-10deg) translateX(0);
    }

    100% {
        transform: translate(-50%, -50%) rotate(-10deg) translateX(-20%);
    }
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-20%);
    }
}

@keyframes scroll-right {
    0% {
        transform: translateX(-20%);
    }

    100% {
        transform: translateX(0);
    }
}

/* --- TERMINAL UPGRADE v5 --- */
.terminal-card {
    height: 600px;
    /* Fixed height to prevent section growth */
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    padding: 0 !important;
    background: rgba(0, 10, 5, 0.95) !important;
    border: 1px solid var(--secondary-color) !important;
    box-shadow: 0 0 30px rgba(var(--secondary-color-rgb), 0.2) !important;
    grid-column: span 2;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

@media (max-width: 768px) {
    .terminal-card {
        grid-column: span 1 !important;
    }
}


.terminal-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(var(--secondary-color-rgb), 0.02), rgba(0, 0, 255, 0.03));
    background-size: 100% 4px, 3px 100%;
    pointer-events: none;
    z-index: 10;
}

.terminal-main-container {
    display: flex;
    flex: 1;
    overflow: hidden;
    position: relative;
    z-index: 5;
}

.terminal-sidebar {
    width: 60px;
    background: rgba(var(--secondary-color-rgb), 0.05);
    border-right: 1px solid rgba(var(--secondary-color-rgb), 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    gap: 25px;
    z-index: 12;
}

.sidebar-btn {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(var(--secondary-color-rgb), 0.3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    color: var(--secondary-color);
}

.sidebar-btn:hover {
    background: var(--secondary-color);
    color: black;
    transform: scale(1.1);
    box-shadow: 0 0 15px var(--secondary-color);
}

.sidebar-btn::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 110%;
    top: 50%;
    transform: translateY(-50%);
    background: black;
    color: var(--secondary-color);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-family: 'Fira Code', monospace;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    border: 1px solid var(--secondary-color);
    z-index: 20;
}

.sidebar-btn:hover::after {
    opacity: 1;
    left: 125%;
}

.terminal-body {
    flex: 1;
    padding: 25px;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 1.05rem;
    overflow-y: auto;
    color: var(--secondary-color);
    position: relative;
    background: radial-gradient(circle at center, rgba(var(--secondary-color-rgb), 0.03) 0%, transparent 100%);
    scrollbar-width: thin;
    scrollbar-color: var(--secondary-color) rgba(0, 0, 0, 0.1);
    animation: screenFlicker 0.15s infinite;
}

@keyframes screenFlicker {
    0% {
        opacity: 0.99;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.98;
    }
}

.terminal-header {
    background: rgba(var(--secondary-color-rgb), 0.1);
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(var(--secondary-color-rgb), 0.2);
    position: relative;
    z-index: 11;
}

.terminal-controls {
    display: flex;
    gap: 8px;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
}

.control.red {
    background: #ff5f56;
}

.control.yellow {
    background: #ffbd2e;
}

.control.green {
    background: #27c93f;
}

.terminal-body::-webkit-scrollbar {
    width: 6px;
}

.terminal-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

.terminal-body::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 10px;
}

.terminal-output {
    margin-bottom: 12px;
    line-height: 1.6;
    white-space: pre-wrap;
    text-shadow: 0 0 5px rgba(var(--secondary-color-rgb), 0.3);
}

.terminal-output.command {
    color: var(--cyan-accent);
    font-weight: 600;
}

.terminal-output.error {
    color: #ff5f56;
}

.terminal-output.success {
    color: var(--secondary-color);
    font-weight: bold;
}

.terminal-input-line {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 15px;
}

.terminal-prompt {
    color: var(--cyan-accent);
    font-weight: bold;
    white-space: nowrap;
}

#terminal-input {
    background: transparent;
    border: none;
    color: white;
    font-family: inherit;
    font-size: inherit;
    outline: none;
    flex: 1;
    width: 100%;
}

.terminal-cursor {
    width: 10px;
    height: 20px;
    background: var(--secondary-color);
    display: inline-block;
    animation: terminalPulse 1.2s ease-in-out infinite;
    vertical-align: middle;
    box-shadow: 0 0 8px var(--secondary-color);
}

@keyframes terminalPulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.3;
        transform: scale(0.9);
    }
}

.terminal-input-line:focus-within {
    background: rgba(var(--secondary-color-rgb), 0.05);
    box-shadow: inset 5px 0 0 var(--secondary-color);
    transition: all 0.3s ease;
}

/* --- TERMINAL SUGGESTIONS --- */
.terminal-suggestions {
    position: absolute;
    bottom: 70px;
    /* Position inside card above input */
    left: 20px;
    /* Margin for sidebar */
    right: 20px;
    background: rgba(0, 5, 2, 0.98);
    border: 1px solid var(--secondary-color);
    border-radius: 8px 8px 0 0;
    max-height: 200px;
    overflow-y: auto;
    display: none;
    flex-direction: column;
    z-index: 1000;
    box-shadow: 0 -10px 30px rgba(var(--secondary-color-rgb), 0.2);
    backdrop-filter: blur(10px);
}

.suggestion-item {
    padding: 10px 15px;
    cursor: pointer;
    font-size: 0.9rem;
    color: rgba(var(--secondary-color-rgb), 0.6);
    border-bottom: 1px solid rgba(var(--secondary-color-rgb), 0.1);
    transition: all 0.2s ease;
}

.suggestion-item:hover,
.suggestion-item.active {
    background: rgba(var(--secondary-color-rgb), 0.1);
    color: var(--secondary-color);
    padding-left: 20px;
}

.suggestion-item .cmd-hint {
    color: #fff;
    font-weight: bold;
    margin-right: 10px;
}

@media (max-width: 768px) {
    .terminal-suggestions {
        max-height: 150px;
    }

    .suggestion-item {
        font-size: 0.8rem;
        padding: 8px 12px;
    }
}

/* --- VISUAL CONFIGURATOR PANEL --- */
#visual-config-launcher {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(var(--secondary-color-rgb), 0.1);
    border: 2px solid var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10005;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(var(--secondary-color-rgb), 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#visual-config-launcher:hover {
    transform: translateY(-50%) scale(1.1) rotate(45deg);
    background: var(--secondary-color);
    color: black;
}

#visual-config-panel {
    position: fixed;
    top: 0;
    right: -450px;
    width: 400px;
    height: 100vh;
    background: linear-gradient(165deg, rgba(0, 15, 5, 0.95) 0%, rgba(0, 5, 10, 0.98) 100%);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border-left: 1px solid rgba(var(--secondary-color-rgb), 0.3);
    z-index: 10002;
    padding: 3rem 2rem;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.8), inset 0 0 40px rgba(var(--secondary-color-rgb), 0.05);
}

#visual-config-panel.open {
    right: 0;
}

.config-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1.5rem;
}

.config-header h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    color: white;
    letter-spacing: 3px;
    margin: 0;
    text-transform: uppercase;
    background: linear-gradient(to right, #fff, var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

#close-config {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s;
}

#close-config:hover {
    background: #ff0055;
    border-color: #ff0055;
    transform: rotate(90deg);
}

.config-section {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.config-section label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.config-section label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.1), transparent);
}

#config-name-input {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 14px 18px;
    color: white;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s;
}

#config-name-input:focus {
    background: rgba(var(--secondary-color-rgb), 0.05);
    border-color: var(--secondary-color);
    box-shadow: 0 0 20px rgba(var(--secondary-color-rgb), 0.15);
}

.color-presets {
    display: flex;
    gap: 12px;
    background: rgba(0, 0, 0, 0.2);
    padding: 12px;
    border-radius: 16px;
    width: fit-content;
}

.color-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.color-btn:hover {
    transform: scale(1.15) translateY(-2px);
    border-color: white;
}

.config-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.action-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.action-btn:hover {
    background: rgba(var(--secondary-color-rgb), 0.1);
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    transform: translateY(-2px);
}

.action-btn.active {
    background: var(--secondary-color);
    color: black;
    border-color: var(--secondary-color);
    box-shadow: 0 10px 20px rgba(var(--secondary-color-rgb), 0.2);
}

.action-btn.save-trigger {
    background: linear-gradient(135deg, var(--secondary-color), #00d4ff);
    color: black;
    border: none;
    grid-column: span 2;
    font-weight: 800;
    margin-top: 10px;
}

.config-footer {
    margin-top: auto;
    padding-top: 2rem;
    text-align: center;
}

.config-footer p {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.2);
    letter-spacing: 1px;
}

.config-footer {
    margin-top: auto;
    text-align: center;
    font-size: 0.7rem;
    opacity: 0.4;
    font-style: italic;
}

@media (max-width: 768px) {
    #visual-config-panel {
        width: 100%;
        right: -100%;
    }

    #visual-config-launcher {
        right: 10px;
        width: 50px;
        height: 50px;
    }
}

body.night-mode {
    --bg-color: #030014;
    /* Deep Space Blue/Black */
    --glass-bg: rgba(10, 10, 25, 0.85);
    /* Darker Blue Glass */
    --secondary-color: #00f2ff;
    /* Cyan instead of Green for Night */
    --accent-color: #7000ff;
    /* Deep Purple */
    --text-color: #e0e0f5;
    /* Cool White */
    background: radial-gradient(circle at center, #0a0a2e 0%, #000000 100%);
    transition: background 1s ease, color 0.5s ease;
}

body.night-mode .bento-item {
    border: 1px dashed var(--secondary-color) !important;
    background: #050510 !important;
    /* Solid Dark Background to block stars */
    background: linear-gradient(135deg, #0a0a25 0%, #000000 100%) !important;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.15);
    z-index: 200;
    /* Above Solar System */
}

/* Fix Interaction Issue: Ensure content is above Solar System (z-index: 0) */
.content {
    position: relative;
    z-index: 100 !important;
    pointer-events: auto !important;
}

/* Specific fix for Terminal Input in Night Mode */
body.night-mode #terminal-input {
    position: relative;
    z-index: 1000 !important;
    pointer-events: auto !important;
    cursor: text;
}

body.night-mode .hero h1 {
    /* Cooler Night Gradient */
    background: linear-gradient(135deg, #ffffff 0%, #00f2ff 40%, #7000ff 70%, #ffffff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px rgba(0, 242, 255, 0.5));
}

body.night-mode #star-container {
    opacity: 1 !important;
    /* Ensure main.js generated stars are visible */
}

body.night-mode .holographic-overlay {
    opacity: 0.15;
    /* Dim scanlines at night */
}

/* Adjust button colors for night */
body.night-mode .visit-site-btn {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    box-shadow: 0 10px 30px rgba(112, 0, 255, 0.3);
}

body.night-mode .python-logo,
body.night-mode .terminal-output.success {
    color: #00f2ff;
    /* Cyan python/success text */
}

#mobile-cmd-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: var(--glass-bg);
    border: 2px solid var(--secondary-color);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 10000;
    box-shadow: 0 0 20px rgba(var(--secondary-color-rgb), 0.3);
    backdrop-filter: blur(10px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s;
}

#mobile-cmd-btn:active {
    transform: scale(0.9);
}

@media (max-width: 768px) {
    #mobile-cmd-btn {
        display: flex;
    }
}