:root {
    --bg-deep: #0d1117;
    --surface: #161b22;
    --border-muted: #30363d;
    --electric-blue: #2f81f7;
    --syntax-comment: #8b949e;
    --syntax-keyword: #ff7b72;
    --syntax-string: #a5d6ff;
    --syntax-function: #d2a8ff;
    --syntax-class: #ffa657;
}

body {
    background-color: var(--bg-deep);
    color: #cbd5e1;
    font-family: 'Inter', sans-serif;
    line-height: 1.625;
    padding-top: 72px;
}

.code-font {
    font-family: 'JetBrains Mono', monospace;
}

h1,
h2,
h3,
h4 {
    font-family: 'JetBrains Mono', monospace;
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

/* Anti-Flicker Reveal System */
main>section {
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: opacity, transform;
}

main.is-visible>section {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Staggered delays using standard CSS (up to 5 sections) */
main.is-visible>section:nth-child(1) {
    transition-delay: 0.1s;
}

main.is-visible>section:nth-child(2) {
    transition-delay: 0.2s;
}

main.is-visible>section:nth-child(3) {
    transition-delay: 0.3s;
}

main.is-visible>section:nth-child(4) {
    transition-delay: 0.4s;
}

main.is-visible>section:nth-child(5) {
    transition-delay: 0.5s;
}

.glass-panel {
    background-color: rgba(13, 17, 23, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-muted);
}

pre {
    background-color: #0d1117;
    padding: 1.5rem;
    border: 1px solid var(--border-muted);
    overflow-x: auto;
    font-size: 0.875rem;
    line-height: 1.5rem;
}

.cursor-blink {
    animation: blink 1s step-end infinite;
}

@keyframes blink {

    from,
    to {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

#mobile-menu {
    display: none;
    pointer-events: none;
    z-index: 100;
    transform: translateX(100%);
    transition: transform 0.5s ease-in-out;
}

body.mobile-menu-active {
    overflow: hidden;
}

body.mobile-menu-active #mobile-menu {
    display: block !important;
    transform: translateX(0) !important;
    pointer-events: auto;
}

#search-overlay {
    display: none;
    pointer-events: none;
    transform: translateY(100%);
    transition: transform 0.5s ease-in-out;
    z-index: 110;
}

body.search-active {
    overflow: hidden;
}

body.search-active #search-overlay {
    display: block !important;
    transform: translateY(0) !important;
    pointer-events: auto;
}

#mobile-menu {
    will-change: transform;
}

/* Accordion Styles */
.faq-item.is-active .faq-trigger span.material-symbols-outlined {
    transform: rotate(180deg);
    color: white;
}

.faq-item.is-active .faq-trigger .code-font {
    transform: translateX(4px);
}

.faq-item.is-active .faq-content {
    max-height: 500px;
    opacity: 1;
}

.faq-trigger {
    transition: background-color 0.2s ease;
}

.faq-trigger:hover {
    background-color: var(--surface);
}

.card-image-grayscale {
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.group:hover .card-image-grayscale {
    filter: grayscale(0%);
    opacity: 1;
}

/* Terminal & UI Components Refactoring */
.terminal-block {
    background-color: black;
    border: 1px solid var(--border-muted);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.terminal-header {
    background-color: var(--surface);
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-muted);
}

.terminal-dots {
    display: flex;
    gap: 0.5rem;
}

.terminal-dot {
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 9999px;
    border: 1px solid;
}

.dot-red {
    border-color: rgba(239, 68, 68, 0.5);
}

.dot-yellow {
    border-color: rgba(234, 179, 8, 0.5);
}

.dot-green {
    border-color: rgba(34, 197, 94, 0.5);
}

.terminal-body {
    padding: 2rem;
    font-family: 'JetBrains Mono', monospace;
}

@media (min-width: 768px) {
    .terminal-body {
        padding: 3.5rem;
    }
}

.bash-prompt {
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
}

.bash-user {
    color: var(--electric-blue);
}

.bash-path {
    color: var(--syntax-string);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-muted);
    padding-bottom: 1rem;
}

.section-number {
    color: var(--electric-blue);
    font-size: 0.875rem;
    font-family: 'JetBrains Mono', monospace;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.text-intro {
    font-size: 1.125rem;
    color: var(--syntax-comment);
    margin-bottom: 2.5rem;
    max-width: 64rem;
    line-height: 1.625;
}