/* --- Advanced Dropdown Menu Styles (VS Code Inspired) --- */
.nav-link {
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: background-color 0.2s, color 0.2s;
    color: #e5e7eb; /* gray-200, brighter for better visibility */
    font-weight: 500; /* medium weight */
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* --- Advanced Navigation Bar Style --- */
.main-nav {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.85) 0%, rgba(253, 224, 71, 0.5) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dark .main-nav {
    /* A darker, more subtle version for dark mode */
    background: linear-gradient(90deg, rgba(40, 40, 40, 0.8) 0%, rgba(250, 204, 21, 0.15) 100%);
}

/* --- Advanced Navigation Search Bar --- */
.nav-search-input {
    display: block;
    width: 100%;
    border-radius: 6px;
    border: 1px solid transparent;
    padding: 0.5rem 0.75rem 0.5rem 2.5rem; /* 8px 12px 8px 40px */
    font-size: 0.875rem; /* 14px */
    background-color: rgba(255, 255, 255, 0.1);
    color: #e5e7eb; /* gray-200 */
    transition: all 0.2s ease-in-out;
}
.nav-search-input:focus {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(59, 130, 246, 0.5); /* blue-500 */
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
    outline: none;
}

.dropdown-mega {
    width: 500px; /* Wider dropdown for the new layout */
    padding: 0; /* Remove padding to let the grid handle it */
}

.dropdown-menu, .dropdown-submenu {
    position: absolute;
    left: 0;
    top: 100%;
    min-width: 220px; /* Adaptive width base */
    padding: 0.25rem; /* 4px */
    margin-top: 0.5rem; /* 8px */
    background-color: rgba(30, 30, 30, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    z-index: 50;
    opacity: 0;
    transform: translateY(-10px);
    visibility: hidden;
    transition: opacity 150ms ease-out, transform 150ms ease-out, visibility 150ms;
}

/* New styles for the two-column dropdown */
.dropdown-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two equal columns */
}

.dropdown-image-panel {
    position: relative;
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
    overflow: hidden; /* Clip the image to the rounded corners */
}

.dropdown-image-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}

.group:hover .dropdown-image-panel img {
    transform: scale(1.05); /* Subtle zoom on hover */
}

.dropdown-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent 60%);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: white;
}

.group:hover > .dropdown-menu {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}
/* --- Responsive Dropdown Overrides for Mobile --- */
@media (max-width: 767px) {
    .group:hover > .dropdown-menu {
        /* Disable hover effect on mobile */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
    }
    .dropdown-menu.mobile-open {
        /* Class to force open on mobile via JS */
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

/* Sub-menu specific styles */
.dropdown-submenu {
    left: 100%;
    top: -5px; /* Align with parent item */
    margin-left: 1px;
}

.group\/level2:hover > .dropdown-submenu {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}
/* --- Responsive Sub-menu Overrides for Mobile --- */
@media (max-width: 767px) {
    .group\/level2:hover > .dropdown-submenu {
        /* Disable hover effect on mobile */
        opacity: 0;
        visibility: hidden;
    }
    .dropdown-submenu.mobile-open {
        /* Class to force open on mobile via JS */
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

.dropdown-item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.5rem 0.75rem; /* 8px 12px */
    font-size: 14px;
    color: #D1D5DB; /* gray-300 */
    border-radius: 4px;
    position: relative;
    overflow: hidden; /* For the glow line */
    transition: background-color 100ms ease-out, color 100ms ease-out;
}

.dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #3b82f6; /* blue-500 */
    opacity: 0;
    transition: opacity 100ms ease-out;
}

.dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.06);
    color: #FFFFFF;
}

.dropdown-item:hover::before {
    opacity: 1;
}

.dropdown-divider {
    height: 1px;
    margin: 0.25rem 0.75rem; /* 4px 12px */
    background-color: rgba(255, 255, 255, 0.1);
}

.chevron-right {
    width: 1rem;
    height: 1rem;
    stroke: #9CA3AF; /* gray-400 */
}

/* Basic body font for better cross-platform consistency */
body {
    font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background: linear-gradient(-45deg, #1a237e, #283593, #3949ab, #3f51b5);
    background-size: 400% 400%;
    animation: gradientBG 20s ease infinite;
}
@keyframes gradientBG {
	0% { background-position: 0% 50%; }
	50% { background-position: 100% 50%; }
	100% { background-position: 0% 50%; }
}

/* Advanced background for sub-pages (About, Contact, Privacy) */
.subpage-bg {
    background-color: #0D1117; /* Primary Background: dark navy/charcoal */
    background-image: 
        radial-gradient(at 10% 15%, hsla(22, 98%, 60%, 0.1) 0px, transparent 50%), /* Orange glow */
        radial-gradient(at 85% 20%, hsla(190, 100%, 50%, 0.08) 0px, transparent 50%); /* Cyan glow */
    background-attachment: fixed;
    animation: none; /* Override the main gradient animation */
}

.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Styles for the Notes Modal */
#notes-modal-overlay {
    display: none; /* Hidden by default */
    transition: opacity 0.2s ease-in-out;
}

#notes-modal-overlay.visible {
    display: flex; /* Show when .visible class is added */
}

#notes-modal {
    transition: transform 0.2s ease-in-out;
}

/* --- About Page Scroll Animations & Styles --- */
.scroll-animate {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-animate.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.about-image {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.about-image:hover {
    transform: scale(1.03) translateY(-8px);
    box-shadow: 0 30px 40px -10px rgba(0, 0, 0, 0.4), 0 15px 15px -5px rgba(0, 0, 0, 0.2), 0 0 20px rgba(250, 204, 21, 0.1);
}

/* --- About Page Artistic Headings --- */
.heading-mission {
    font-family: 'Orbitron', sans-serif;
    color: #60a5fa; /* blue-400 */
    text-shadow: 0 0 15px rgba(96, 165, 250, 0.3);
}
.heading-tool {
    font-family: 'Audiowide', cursive;
    color: #facc15; /* yellow-400 */
    text-shadow: 0 0 15px rgba(250, 204, 21, 0.3);
}
.heading-team {
    font-family: 'Lobster', cursive;
    color: #fb923c; /* orange-400 */
    text-shadow: 0 0 15px rgba(251, 146, 60, 0.3);
}
.heading-commitment {
    font-family: 'Bebas Neue', cursive;
    color: #f87171; /* red-400 */
    text-shadow: 0 0 15px rgba(248, 113, 113, 0.4);
}


/* --- Reset Modal Styles --- */
#reset-modal-overlay {
    display: none; /* Hidden by default */
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}
#reset-modal-overlay.visible {
    display: flex;
    opacity: 1;
}
#reset-modal {
    background: #1e293b; /* slate-800 */
    border-radius: 0.75rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(56, 189, 248, 0.3); /* sky-400 */
    transform: scale(0.95);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
#reset-modal-overlay.visible #reset-modal {
    transform: scale(1);
    opacity: 1;
}
.reset-modal-header {
    padding: 1.5rem;
    text-align: center;
    border-bottom: 1px solid rgba(56, 189, 248, 0.2);
    background: linear-gradient(145deg, rgba(30, 64, 175, 0.3), rgba(17, 24, 39, 0.1));
}
.reset-modal-icon {
    width: 3.5rem;
    height: 3.5rem;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #facc15, #fbbf24); /* yellow-400 to amber-400 */
    color: #422006;
}
.reset-modal-btn {
    padding: 0.5rem 1.25rem;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.2s;
}
.reset-modal-btn-cancel { background-color: #374151; color: #d1d5db; }
.reset-modal-btn-cancel:hover { background-color: #4b5563; }
.reset-modal-btn-confirm { background-color: #facc15; color: #422006; }
.reset-modal-btn-confirm:hover:not(:disabled) { background-color: #fbbf24; box-shadow: 0 0 15px rgba(250, 204, 21, 0.4); }
.reset-modal-btn-confirm:disabled { background-color: #4b5563; color: #9ca3af; cursor: not-allowed; }

/* --- Task Adder Input Styles --- */
.task-adder {
    position: relative;
}
.task-adder-icon {
    position: absolute;
    left: 0.75rem;
    right: 0.75rem; /* Move icon to the right */
    left: auto; /* Override previous left */
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.3); /* More subtle initial color */
    transition: color 0.2s;
    pointer-events: none; /* Allows clicking through to the input */
}
.task-adder-input {
    background-color: rgba(255, 255, 255, 0.05); /* More transparent background */
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding-left: 1rem; /* Standard left padding */
    padding-right: 2.5rem; /* Space for the icon on the right */
    transition: all 0.3s ease;
}
.task-adder::before {
    content: '';
    position: absolute;
    inset: -1px; /* Creates the border effect */
    border-radius: inherit; /* Inherits from .task-adder */
    background: conic-gradient(from 90deg at 50% 50%, #facc15, #a855f7, #facc15); /* Yellow -> Purple -> Yellow */
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    animation: rotate-gradient 4s linear infinite paused;
}
.task-adder-input:focus {
    background-color: rgba(30, 20, 50, 0.2); /* Darker, purplish background on focus */
    border-color: transparent; /* Hide the static border to reveal the gradient */
    box-shadow: none; /* Remove the old glow effect */
}
.task-adder:focus-within::before {
    opacity: 1;
    animation-play-state: running;
}
.task-adder:hover .task-adder-icon {
    color: rgba(255, 255, 255, 0.5); /* Slightly brighter on hover */
}
.task-adder-input:focus + .task-adder-icon {
    color: #3b82f6; /* blue-500 */
    animation: search-pulse 1.5s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

@keyframes search-pulse {
    0%, 100% {
        transform: translateY(-50%) scale(1);
    }
    50% {
        transform: translateY(-50%) scale(1.15);
    }
}

@keyframes rotate-gradient {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    color: #d1d5db; /* Default text-gray-300 */
    border-radius: 0.5rem;
    transition: background-color 0.2s, color 0.2s;
}
.social-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}
.social-icon {
    width: 1.5rem;
    height: 1.5rem;
    fill: currentColor;
}

/* Drag and Drop styles */
.task-ghost {
    background: rgba(0, 0, 0, 0.1);
    border: 2px dashed rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.task.dragging {
    opacity: 0.5;
    transform: rotate(3deg) scale(1.05);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    cursor: grabbing;
}

/* Command Page Copy Button - designed to work with highlight.js */
.copy-btn {
    position: absolute; /* Changed in Tailwind */
    top: 0.5rem;
    right: 0.5rem;
    background-color: #4a5568;
    color: white;
    border: none;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: background-color 0.2s;
    opacity: 0.5;
}
.copy-btn:hover {
    background-color: #4a5568;
}
.copy-btn.copied {
    background-color: #2f855a; /* Green */
    cursor: default;
}
pre:hover .copy-btn {
    opacity: 1;
}


/* Header Background Image */
#main-header {
    background-size: cover;
    transition: background-image 1s ease-in-out;
    position: relative; /* Ensure z-index works */
    animation: kenburns 20s ease-in-out infinite alternate;
}

.header-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s, background-color 0.3s;
}

#main-header:hover .header-nav-arrow {
    opacity: 1;
}

/* Make arrows visible and slightly smaller on mobile */
@media (max-width: 767px) {
    .header-nav-arrow {
        opacity: 0.8; /* Always visible on mobile and more opaque */
        width: 2rem;   /* 32px */
        height: 2rem;  /* 32px */
        font-size: 1.25rem; /* 20px */
        background-color: rgba(0, 0, 0, 0.4); /* Slightly darker background */
        backdrop-filter: blur(2px); /* Add a subtle blur behind the arrow */
        -webkit-backdrop-filter: blur(2px);
    }
}

/* 3D Red Text Style */
.text-3d-red {
    color: #ef4444; /* red-500 */
    text-shadow: 1px 1px 0px #b91c1c, /* red-700 */
                 2px 2px 0px #7f1d1d; /* red-900 */
}

/* Animation styles for adding/removing tasks */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes kenburns {
    from {
        background-position: 50% 50%;
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Advanced Footer */
#page-footer {
    background-image: url('images/net1.avif');
    background-size: cover;
    animation: slow-pan 40s linear infinite alternate;
}

/* Contact Page Footer Background Image */
#contact-page-footer {
    background-image: url('images/net13.jpg');
    background-size: cover;
    animation: slow-pan 40s linear infinite alternate;
}

/* Projects Page Footer Background Image */
#projects-page-footer {
    background-image: url('images/robot-train.avif');
    background-size: cover;
    animation: slow-pan 40s linear infinite alternate;
}

.footer-social-link {
    display: inline-block;
    transition: transform 0.2s ease-in-out;
}
.footer-social-link:hover {
    transform: scale(1.1);
}

@keyframes slow-pan {
    from { background-position: 0% 0%; }
    to { background-position: 100% 100%; }
}

@keyframes active-dot-glow {
    0%, 100% {
        background-color: #ef4444; /* red-500 */
        box-shadow: 0 0 12px rgba(239, 68, 68, 0.6);
    }
    25% {
        background-color: #facc15; /* yellow-400 */
        box-shadow: 0 0 12px rgba(250, 204, 21, 0.6);
    }
    50% {
        background-color: #ffffff; /* white */
        box-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
    }
    75% {
        background-color: #3b82f6; /* blue-500 */
        box-shadow: 0 0 12px rgba(59, 130, 246, 0.6);
    }
}

/* --- Slideshow Pagination Dots --- */
.pagination-dot {
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pagination-dot:hover {
    background-color: rgba(255, 255, 255, 0.7);
    transform: scale(1.2);
}

.pagination-dot.active {
    transform: scale(1.3);
    animation: active-dot-glow 4s linear infinite;
}
.task-fade-in {
    animation: fadeInDown 0.3s ease-out forwards;
}

@keyframes fadeOutUp {
    from {
        opacity: 1;
        transform: scaleY(1);
        max-height: 100px; /* Approximate height */
    }
    to {
        opacity: 0;
        transform: scaleY(0);
        max-height: 0;
        padding: 0; margin: 0; border: 0;
    }
}

.task-fade-out {
    animation: fadeOutUp 0.3s ease-out forwards;
}

/* Print-specific styles */
@media print {
    body {
        background-color: white !important;
        color: black !important;
        padding: 1rem;
    }
    header, footer, button, input, .no-print, #progress-bar-container, #back-to-top, aside {
        display: none !important;
    }
    main, section, .command-step {
        display: block !important;
        page-break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
    .command-details {
        max-height: 1000px !important; /* Ensure content is visible */
    }
    pre {
        background-color: #f3f4f6 !important;
        color: black !important;
    }
}

/* --- Command Page Specific Styles --- */
.expand-arrow {
    transition: transform 0.3s ease-in-out;
}
.rotate-180 {
    transform: rotate(180deg);
}

/* Typewriter cursor effect */
.typewriter::after {
    content: '▋';
    animation: blink 1s step-end infinite;
    color: #34d399; /* A nice green color */
    margin-left: 2px;
}

@keyframes blink {
    from, to { opacity: 1; }
    50% { opacity: 0; }
}

/* --- Mobile Sidebar Logo --- */
.mobile-sidebar-logo {
    border-radius: 50%; /* Ensure it's perfectly circular */
    object-fit: cover; /* Ensure image fills the circle without distortion */
    border: 2px solid rgba(255, 255, 255, 0.2); /* Subtle border */
}

/* --- Mobile Sidebar Title with Dynamic Shining Effect --- */
.mobile-sidebar-title {
    font-family: 'Poppins', sans-serif; /* Or a more techy font if desired */
    font-size: 1.75rem; /* Adjust size as needed */
    font-weight: 700; /* Bold */
    background: linear-gradient(90deg, #facc15 0%, #3b82f6 20%, #facc15 40%, #3b82f6 60%, #facc15 80%, #3b82f6 100%);
    background-size: 200% auto; /* Make the gradient wider than the text */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-fill-color: transparent;
    animation: shine-text 3s linear infinite;
    display: inline-block; /* Required for background-clip to work */
}

@keyframes shine-text {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
/* --- Mobile Sidebar Styles --- */
#mobile-sidebar {
    background: linear-gradient(160deg, #0b2742, #1a3a60, #facc15);
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    gap: 0.75rem;
    border-radius: 0.375rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    transition: background-color 0.2s, color 0.2s;
}

.sidebar-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

/* --- Mobile Sidebar Footer --- */
.mobile-sidebar-footer {
    font-size: 0.75rem; /* text-xs */
    color: #9ca3af; /* gray-400 */
    padding-top: 0.5rem;
}

.sidebar-dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    text-align: left;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    transition: background-color 0.2s, color 0.2s;
}
.sidebar-dropdown-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}
.mobile-submenu {
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.2);
    border-left: 2px solid rgba(250, 204, 21, 0.5); /* yellow-400 */
    margin-left: 1rem;
    max-height: 0;
    transition: max-height 0.3s ease-in-out;
}

/* --- Infinite Marquee Styles --- */
.marquee {
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(to right, transparent, white 20%, white 80%, transparent);
    mask-image: linear-gradient(to right, transparent, white 20%, white 80%, transparent);
}

.marquee-track {
    display: flex;
    width: fit-content;
    animation: marquee 40s linear infinite;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* --- Dynamic 3D Card Styles --- */
.policy-card {
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
    will-change: transform;
}

.policy-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(250, 204, 21, 0.1), transparent 60%);
    filter: blur(30px);
    opacity: 0;
    transform: translate(var(--glow-x, -50%), var(--glow-y, -50%)) translate(-50%, -50%);
    transition: opacity 0.3s ease-in-out, transform 0.1s linear;
    pointer-events: none; /* Make sure it doesn't interfere with mouse events */
}

.policy-card:hover::before {
    opacity: 0.8;
}

/* --- Colored Marquee Icons --- */
.marquee-icon {
    transition: transform 0.2s ease-in-out;
}
.marquee-icon:hover {
    transform: scale(1.15);
}
.icon-cisco { color: #00BCEB; }
.icon-js { color: #F7DF1E; }
.icon-html { color: #E34F26; }
.icon-tailwind { color: #38B2AC; }
.icon-node { color: #5FA04E; }
.icon-github { color: #FFFFFF; }

/* Dynamic background for the command page (Moved here to ensure it overrides default body style) */
.command-page-bg {
    background-image: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.85)), url('images/command.jpg');
    background-size: cover;
    background-attachment: fixed;
    animation: slow-pan 60s linear infinite alternate;
}
.dark .command-page-bg {
    animation-duration: 60s; /* Keep animation consistent */
}

/* --- Tutorials Page Styles --- */
.tutorials-page-bg {
    /* A more advanced background with subtle color depth */
    background-color: #0f0f0f;
    background-image: radial-gradient(at 15% 20%, hsla(210, 100%, 50%, 0.08) 0px, transparent 50%),
                      radial-gradient(at 85% 80%, hsla(280, 100%, 50%, 0.06) 0px, transparent 50%);
}
.dark .tutorials-page-bg {
    background-color: #0f0f0f;
    background-image: radial-gradient(at 15% 20%, hsla(210, 100%, 50%, 0.08) 0px, transparent 50%),
                      radial-gradient(at 85% 80%, hsla(280, 100%, 50%, 0.06) 0px, transparent 50%);
}

.tutorials-header { background-color: #212121; border-bottom: 1px solid #383838; }

#tutorials-sidebar {
    background-color: rgba(18, 18, 18, 0.7); /* Advanced black with transparency */
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Animated Hamburger Menu --- */
.hamburger-menu {
    width: 24px;
    height: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
}
.hamburger-menu span {
    width: 100%;
    height: 2px;
    background-color: #e5e7eb; /* gray-200 */
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}
.hamburger-menu.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.hamburger-menu.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* --- Up Next Panel Background --- */
.up-next-panel {
    background-image: radial-gradient(circle at top right, rgba(59, 130, 246, 0.1), transparent 40%);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

/* --- YouTube Style Sidebar --- */
@media (min-width: 768px) { /* md breakpoint */
    body.sidebar-collapsed #tutorials-sidebar {
        width: 80px; /* Collapsed width */
    }
    body.sidebar-collapsed #tutorials-sidebar .sidebar-link span {
        opacity: 0;
        width: 0;
        overflow: hidden;
    }
    body.sidebar-collapsed #category-filters .sidebar-link span {
        display: none;
    }
    body.sidebar-collapsed #tutorials-sidebar .sidebar-link {
        justify-content: center;
        gap: 0;
    }
    body.sidebar-collapsed #tutorials-sidebar h3 {
        display: none;
    }
    body.sidebar-collapsed #tutorials-sidebar hr {
        margin-left: auto;
        margin-right: auto;
        width: 50%;
    }
    /* Add a visual separator line */
    #tutorials-sidebar {
        border-right: 1px solid rgba(255, 255, 255, 0.08);
    }
}

/* Override for sidebar links on this page */
.tutorials-page-bg .sidebar-link {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    color: #aaaaaa;
}
.tutorials-page-bg .sidebar-link:hover,
.tutorials-page-bg .sidebar-link.active {
    background-color: #383838;
    color: white;
}

.video-card img {
    aspect-ratio: 16 / 9;
}
.video-card:hover img {
    transform: scale(1.05);
    border-radius: 0;
}

/* Utility for line clamping */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- Custom Scrollbar for Tutorials Page --- */
.sidebar-scroll::-webkit-scrollbar,
#video-grid-container::-webkit-scrollbar {
    width: 8px;
}
.sidebar-scroll::-webkit-scrollbar-track,
#video-grid-container::-webkit-scrollbar-track {
    background: transparent;
}
.sidebar-scroll::-webkit-scrollbar-thumb,
#video-grid-container::-webkit-scrollbar-thumb {
    background: #4a4a4a;
    border-radius: 4px;
}
.sidebar-scroll::-webkit-scrollbar-thumb:hover,
#video-grid-container::-webkit-scrollbar-thumb:hover {
    background: #6a6a6a;
}

/* --- Tutorials Page: Video Card Interactions --- */
.video-interaction-btn {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #aaaaaa;
    font-size: 0.75rem;
    transition: color 0.2s;
}
.video-interaction-btn:hover {
    color: #ffffff;
}
.video-interaction-btn svg {
    width: 1rem;
    height: 1rem;
}

/* Styles for reacted buttons */
.video-interaction-btn.like-btn.reacted {
    color: #facc15; /* yellow-400 */
}

.video-interaction-btn.love-btn.reacted {
    color: #f87171; /* red-400 */
}

/* Styles for comment reactions */
.comment-interaction-btn.like-btn.reacted {
    color: #facc15; /* yellow-400 */
}

.comment-interaction-btn.love-btn.reacted {
    color: #f87171; /* red-400 */
}

/* --- Tutorials Page: Comment Modal --- */
.comment-modal-overlay {
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: opacity 0.3s ease-in-out;
}
.comment-modal {
    background-color: #1e1e1e;
    border-top: 1px solid #383838;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.comment-modal-overlay.visible .comment-modal {
    transform: translateY(0);
}
.comment-item {
    display: flex;
    gap: 0.75rem;
}
.comment-body {
    background-color: #2a2a2a;
    border-radius: 0.75rem;
    padding: 0.5rem 0.75rem;
}

/* --- Comment Section Enhancements --- */
.comment-input-form {
    border-bottom: 1px solid #4a4a4a;
    transition: border-color 0.2s;
}
.comment-input-form:focus-within {
    border-bottom-color: #ffffff;
}
.comment-input {
    background: transparent;
    border: none;
    outline: none;
    color: white;
    width: 100%;
}
.comment-actions {
    display: none;
}
.comment-input-form:focus-within .comment-actions {
    display: flex;
}

.replies-container {
    padding-left: 3.25rem; /* Aligns with the start of the parent comment text */
    margin-top: 1rem;
    border-left: 2px solid #383838;
}

/* --- Reply Form Styles --- */
.reply-form-container {
    padding-left: 3.25rem; /* Aligns with parent comment text */
    margin-top: 1rem;
}
.reply-input {
    background: transparent;
    border: none;
    border-bottom: 1px solid #4a4a4a;
    outline: none;
    color: white;
    width: 100%;
    padding-bottom: 0.25rem;
    transition: border-color 0.2s;
}
.reply-input:focus { border-bottom-color: #ffffff; }

/* --- Description "Read More" Styles --- */
.description-read-more {
    cursor: pointer;
    font-weight: 600;
    color: #a0aec0; /* gray-400 */
    margin-left: 4px;
}
.description-read-more:hover {
    color: #ffffff;
}

/* --- Tutorials Page: Sidebar Overlay --- */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 19; /* Below the sidebar */
}

/* --- Video Player Styles --- */
.timeline-container {
    --timeline-height: 3px;
    height: var(--timeline-height);
    transition: height 0.1s ease-in-out;
}
.timeline-container:hover {
    --timeline-height: 5px;
}
.timeline-container:hover .timeline {
    height: var(--timeline-height);
}
.timeline-container .timeline {
    height: var(--timeline-height);
}

/* --- Integrated Player Modal --- */
.player-modal-overlay {
    background-color: rgba(15, 15, 15, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* --- Player Page: Up Next Card Styles --- */
.up-next-card {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    transition: background-color 0.2s;
    padding: 0.5rem;
    border-radius: 0.5rem;
}
.up-next-card:hover {
    background-color: rgba(255, 255, 255, 0.05);
}
.up-next-card img {
    width: 160px;
    flex-shrink: 0;
    border-radius: 0.5rem;
}

/* --- Search Results Card Styles --- */
.search-result-card {
    display: flex;
    gap: 1rem;
    background-color: rgba(255, 255, 255, 0.03);
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid transparent;
    transition: all 0.2s ease-in-out;
}
.search-result-card:hover {
    border-color: rgba(59, 130, 246, 0.5); /* blue-500 */
    background-color: rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}
.search-result-card img {
    width: 240px;
    height: 135px;
    flex-shrink: 0;
    border-radius: 0.5rem;
}

/* --- Project Card Premium Styles --- */
.project-card-container {
    perspective: 1500px;
    min-height: 450px; /* Set a min-height to prevent layout shifts during flip */
}

.project-card {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
}

.project-card.is-flipped {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    background-color: #1B1F28; /* Card Background */
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

.card-front {
    transform: rotateY(0deg);
}
.card-back {
    transform: rotateY(180deg);
}
.project-card-container:hover {
    transform: translateY(-8px);
}
.details-btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.08);
    color: #cbd5e1; /* slate-300 */
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.2s;
}
.details-btn:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}
.project-card-image {
    border-top-right-radius: 12px;
    aspect-ratio: 16 / 9; /* Ensure consistent image proportions */
}
.project-card-title {
    font-size: 1.25rem; /* 20px */
}
.project-card-summary {
    color: #C5C5C5; /* Text Secondary */
}
.project-card-footer {
    background-color: rgba(13, 17, 23, 0.5); /* Darker footer area */
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

/* --- Project Detail Page: Dynamic Hero Image --- */
#project-hero {
    animation: kenburns-effect 25s ease-in-out infinite alternate;
    background-size: 100% 100%; /* Initial size for animation */
    background-position: center center;
}

/* --- Project Detail Page Styles --- */
.project-section {
    padding-top: 2rem; /* For scroll-margin-top */
    scroll-margin-top: 100px;
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.875rem; /* text-3xl */
    font-weight: 600;
    color: #e5e7eb; /* gray-200 */
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #3b82f6; /* blue-500 */
    display: inline-block;
}

.subsection-title {
    font-size: 1.125rem; /* text-lg */
    font-weight: 600;
    color: #93c5fd; /* blue-300 */
    margin-bottom: 0.75rem;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-level {
    background-color: rgba(0, 209, 255, 0.1); /* cyan/10 */
    color: #00D1FF; /* Secondary Accent */
    border: 1px solid #00D1FF;
}

.badge-difficulty {
    background-color: rgba(250, 204, 21, 0.2); /* yellow-400/20 */
    color: #facc15; /* yellow-400 */
    border: 1px solid #facc15;
}

.tag {
    background-color: rgba(0, 209, 255, 0.1); /* cyan/10 */
    color: #00D1FF; /* Secondary Accent */
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Accordion Styles */
.accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: rgba(30, 41, 59, 0.7); /* slate-800/70 */
    border: 1px solid #334155; /* slate-700 */
    border-radius: 0.375rem;
    font-weight: 600;
    transition: background-color 0.2s;
}
.accordion-header:hover, .accordion-header.active {
    background-color: #334155; /* slate-700 */
}
.accordion-arrow {
    width: 1.25rem;
    height: 1.25rem;
    transition: transform 0.3s ease-in-out;
}
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
}

/* Purchase Card */
.purchase-card {
    background: rgba(30, 41, 59, 0.6); /* slate-800 with transparency */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 0.75rem;
    border: 1px solid rgba(59, 130, 246, 0.4); /* blue-500 */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.purchase-btn {
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    color: white;
    background-color: #2563eb; /* blue-600 */
    transition: all 0.2s;
    transform: scale(1);
}
.purchase-btn:hover {
    background-color: #1d4ed8; /* blue-700 */
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

/* Sticky Nav */
#sticky-nav {
    transition: all 0.3s ease-in-out;
    transform: translateY(-100%);
}
#sticky-nav.active {
    transform: translateY(0);
}
.sticky-nav-link {
    display: inline-block;
    padding: 1rem 0.5rem;
    color: #9ca3af; /* gray-400 */
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}
.sticky-nav-link:hover, .sticky-nav-link.active {
    color: white;
    border-bottom-color: #3b82f6; /* blue-500 */
}

/* --- Advanced Footer Styles --- */
.advanced-footer {
    background-color: #0D1117; /* Footer Background */
    border-top: 1px solid #161B22; /* Secondary Background */
}

.footer-heading {
    font-size: 0.875rem; /* text-sm */
    font-weight: 600;
    color: #C5C5C5; /* Text Secondary */
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}
/* --- Responsive adjustments for Projects Page Filter Bar --- */
@media (max-width: 767px) {
    .filter-bar-container {
        flex-direction: column;
        align-items: stretch; /* Make items full width */
    }
    #category-filters {
        justify-content: center; /* Center the filter buttons */
        gap: 0.5rem;
    }
    .filter-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem; /* Even smaller font on mobile */
    }
    .filter-dropdown-container:hover .filter-dropdown {
        display: none; /* Disable hover dropdowns on mobile, rely on tap if needed */
    }
    /* Make project cards more compact on mobile */
    .project-card-body {
        padding: 0.75rem; /* 12px */
    }
    .project-card-title {
        font-size: 1rem; /* 16px */
        line-height: 1.25rem;
    }
    .project-card-summary {
        font-size: 0.8rem; /* ~13px */
        line-height: 1.1rem;
    }
    .project-card-image {
        height: auto; /* Let aspect-ratio handle height */
    }
    .project-card-footer {
        padding: 0.75rem;
    }
    .learn-more-btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.8rem;
    }
}

.footer-link {
    color: #cbd5e1; /* slate-300 */
    transition: color 0.2s ease-in-out;
    display: inline-block;
    position: relative;
    padding-bottom: 2px;
}

.footer-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: #FF6F3C; /* Accent Orange */
    transition: width 0.3s ease-in-out;
}

.footer-link:hover {
    color: #ffffff;
}

.footer-link:hover::after {
    width: 100%;
}

.footer-social-icon {
    color: #C5C5C5; /* Text Secondary */
    transition: color 0.2s, transform 0.2s;
}
.footer-social-icon:hover {
    color: #ffffff;
    transform: scale(1.1);
}

/* Utility for line clamping text */
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* --- Footer Search Bar --- */
.footer-search-bar {
    display: flex;
    position: relative;
    background-color: #0D1117; /* Match footer bg */
    border: 1px solid #334155; /* slate-700 */
    border-radius: 9999px; /* pill shape */
    padding: 0.25rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.footer-search-bar:focus-within {
    border-color: #FF6F3C;
    box-shadow: 0 0 10px rgba(255, 111, 60, 0.2);
}
.footer-search-input {
    flex-grow: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 0.5rem 1rem;
    color: #C5C5C5;
}
.footer-search-btn {
    background-color: #FF6F3C;
    border: none;
    border-radius: 9999px;
    padding: 0.5rem;
    color: white;
    transition: background-color 0.2s, transform 0.2s;
}
.footer-search-btn:hover {
    background-color: #E66332;
    transform: scale(1.05);
}

/* --- Footer Subscribe Feedback --- */
#footer-subscribe-feedback {
    transition: color 0.3s ease-in-out;
}

/* --- Projects Page: Main Category Buttons (Glassmorphism Style) --- */
.main-category-btn {
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem; /* Slightly smaller for better fit */
    color: #e5e7eb; /* gray-200 */
    background-color: rgba(45, 55, 72, 0.4); /* slate-700 with 40% opacity */
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: all 0.2s ease-in-out;
}

.main-category-btn:hover {
    background-color: rgba(59, 130, 246, 0.2); /* blue-500 with 20% opacity */
    color: white;
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.main-category-btn.active {
    background-color: rgba(59, 130, 246, 0.3); /* blue-500 with 30% opacity */
    color: white;
    border-color: #3b82f6; /* Solid blue-500 border */
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

/* --- Advanced Command Page Search Bar --- */
.command-search-wrapper {
    position: relative;
}
.command-search-wrapper::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 0.5rem; /* 8px */
    background: conic-gradient(from 90deg at 50% 50%, #3b82f6, #a855f7, #3b82f6); /* blue -> purple -> blue */
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    animation: rotate-gradient 4s linear infinite paused;
}
.command-search-input {
    background-color: rgba(15, 23, 42, 0.mand-search-icon {
    color: #60a5fa; /* blue-400 */
    animation: search-pulse 1.5s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

@keyframes rotate-gradient {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* --- Advanced Nav Logo Style --- */
.nav-logo {
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease-in-out;
}

.nav-logo:hover {
    transform: scale(1.1);
    border-color: rgba(59, 130, 246, 0.7); /* blue-500 */
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

@media (min-width: 768px) { /* md breakpoint */
    .main-category-btn { font-size: 1rem; }
}

/* --- Mobile-specific Accordion Menu Styles --- */
@media (max-width: 767px) {
    #main-category-nav .relative.group {
        width: 100%; /* Make each category group take full width */
    }
    #main-category-nav .main-category-btn {
        width: 100%;
        text-align: center;
    }
    .dropdown-menu {
        position: static; /* Change from absolute to static */
        width: 100%;
        max-height: 0;
        overflow: hidden;
        opacity: 1; /* Override hover opacity */
        visibility: visible; /* Override hover visibility */
        transform: none; /* Reset transform */
        transition: max-height 0.5s ease-in-out;
        margin-top: 0.25rem;
        padding: 0;
        background-color: rgba(15, 23, 42, 0.5); /* slate-900/50 */
    }
    .dropdown-menu.mobile-open {
        max-height: 500px; /* A large enough value to show content */
        padding: 0.25rem;
    }
    .dropdown-submenu { position: static; width: 100%; box-shadow: none; margin-left: 0; margin-top: 0.25rem; background-color: rgba(0,0,0,0.2); }
}

/* --- Advanced Mobile Filter Sidebar Styles --- */
#filter-sidebar {
    background-image: url('images/robot-train.avif');
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Add an overlay to the sidebar for readability */
#filter-sidebar::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.8); /* slate-900 with 80% opacity */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: -1;
}

@media (max-width: 767px) {
    #mobile-filter-form .main-category-btn {
        justify-content: space-between;
        display: flex;
        align-items: center;
    }
    .mobile-filter-group {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 1rem;
    }
    .mobile-filter-label {
        display: flex; /* Use flex for alignment */
        align-items: center;
        padding: 0.6rem 1rem; /* Slightly reduced padding */
        border-radius: 0.375rem;
        background-color: rgba(255, 255, 255, 0.05);
        transition: all 0.2s ease-in-out;
        cursor: pointer;
    }
    .mobile-filter-label:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }
    .mobile-filter-group input[type="radio"] {
        display: none; /* Hide the actual radio button */
    }
    .mobile-filter-group input[type="radio"]:checked + .mobile-filter-label {
        background-color: rgba(59, 130, 246, 0.25);
        border-color: #3b82f6;
        color: white;
    }
}
/* Keyframes for the Ken Burns effect on the project detail hero image */
@keyframes kenburns-effect {
    0% {
        background-size: 100% 100%;
    }
    100% {
        background-size: 120% 120%;
    }
}

/* --- Projects Page Header Background --- */
.projects-header {
    background-image: url('images/ubuntu.jpg');
    background-size: cover;
    background-position: center center;
    animation: kenburns-effect 30s ease-in-out infinite alternate;
}



/* --- Search Results Card Styles --- */
.search-result-card {
    display: flex;
    gap: 1rem;
    background-color: rgba(255, 255, 255, 0.03);
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid transparent;
    transition: all 0.2s ease-in-out;
}
.search-result-card:hover {
    border-color: rgba(59, 130, 246, 0.5); /* blue-500 */
    background-color: rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}
.search-result-card img {
    width: 240px;
    height: 135px;
    flex-shrink: 0;
    border-radius: 0.5rem;
}

/* --- Projects Page Header Glass Content --- */
.header-glass-content {
    background: rgba(15, 23, 42, 0.6); /* slate-900 with more opacity */
    backdrop-filter: blur(16px); /* Increased blur */
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(59, 130, 246, 0.3); /* Brighter blue border */
    border-radius: 1rem; /* 16px */
    padding: 2rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37), inset 0 0 0 1px rgba(255, 255, 255, 0.05); /* Added inner highlight */
}

/* --- Subtitle Button Active State --- */
#cc-btn.active {
    color: #3b82f6; /* blue-500 */
}
.header-search-input {
    background-color: rgba(15, 23, 42, 0.8); /* slate-900 with alpha */
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}
/* Hide autoplay toggle on mobile where layout is different */
@media (max-width: 1023px) {
    #autoplay-toggle-container { display: none; }
}

/* --- Toast Notification Styles --- */
@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
.toast {
    background-color: #2a2a2a;
    color: #e5e7eb;
    padding: 0.75rem 1.25rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border-left: 4px solid #3b82f6; /* blue-500 */
    font-weight: 500;
    animation: toast-in 0.4s cubic-bezier(0.21, 1.02, 0.73, 1);
    will-change: transform, opacity;
}

.header-search-input:focus {
    background-color: rgba(30, 41, 59, 0.5); /* slate-800 with alpha */
    border-color: transparent;
    box-shadow: none;
}

.command-search-wrapper:focus-within::before {
    opacity: 1;
    animation-play-state: running;
}

.command-search-wrapper:focus-within .command-search-icon {
    color: #60a5fa; /* blue-400 */
    animation: search-pulse 1.5s infinite cubic-bezier(0.4, 0, 0.6, 1);
}