@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&display=swap');

:root {
    --dark-bg: #1e1e1e;
    --card-bg: #1f2937;
    --search-focus: #07c982;
    --gradient-text: linear-gradient(135deg, #a8e6cf, #d4fc79);
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@keyframes shimmer {
    0% {
      background-position: 0% 50%;
    }
    100% {
      background-position: 100% 50%;
    }
}
  
.gradient-flow {
    background: linear-gradient(270deg, #a8e6cf, #d4fc79, #a8e6cf);
    background-size: 400% 400%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 6s linear infinite;
    display: inline-block;
    will-change: background-position;
}

.app-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    grid-auto-rows: 160px;
    gap: 24px;
    justify-items: center;
    align-items: center;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    transition: all 0.3s ease-in-out;
}

.app-list.fade-out {
    opacity: 0;
}

.app-list.fade-in {
    opacity: 1;
}

.app-item {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 150px;
    height: 150px;
    transition: background 0.2s ease-in-out, transform 0.2s ease-in-out;
    font-weight: 500;
    font-size: small;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.app-item:hover {
    transform: translateY(-5px) scale(1.05);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}



@keyframes wobble {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    50% { transform: rotate(10deg); }
    75% { transform: rotate(-5deg); }
    100% { transform: rotate(0deg); }
}

.app-item:hover .app-icon {
    animation: wobble 0.6s ease-in-out;
}

.recipe-link {
    color: #d4fc79;
    font-size: 0.8rem;
    margin-top: 5px;
    text-decoration: underline;
}

.processor-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
    grid-auto-rows: 100px;
    gap: 24px;
    justify-items: center;
    align-items: center;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    transition: all 0.3s ease-in-out;
}

.processor-item {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    height: 100px;
    transition: background 0.2s ease-in-out, transform 0.2s ease-in-out;
    font-weight: 500;
    font-size: small;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    gap: 1rem;
}

.processor-item:hover .gradient-text {
    filter: 
    drop-shadow(0 0 2px #07c982)
    drop-shadow(0 0 5px #07c982)
    brightness(1.2);
    transition: filter 0.3s ease-in-out;
}

.hover-glow:hover {
    filter: drop-shadow(0 0 4px #07c982)
    drop-shadow(0 0 4px #07c982);
    transition: filter 0.3s ease-out;
}

.heartbeat {
    animation: heartbeat 2s infinite;
    transform-origin: center;
    display: inline-block;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
}

.contact-box {
    background-color: var(--card-bg);
    padding: 16px;
    border-radius: 8px;
    text-align: center;
    width: 100%;
    max-width: 400px;
    margin: auto;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.command-block {
    display: flex;
    align-items: center;
    background-color: #131821;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    border: 1px solid #374151;
    overflow-x: auto;
    gap: 0.4rem;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.quick-start {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.demo-run {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.command-symbol {
    color: #9ca3af;
}

.command-text {
    color: #ffffff;
}

.command-highlight {
}

.copy-button {
    margin-left: auto;
    border: none;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    transition: background 0.2s;
}

.copy-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.command-text, .command-highlight {
    display: inline;
    white-space: nowrap;
}

.pagination-btn {
    padding: 8px 12px;
    background-color: #2D3748;
    border-radius: 6px;
    transition: background 0.2s ease-in-out;
}

.pagination-btn:hover {
    background-color: #4A5568;
}

.github-tag {
    background: rgba(55, 65, 81, 0.6);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #e5e7eb;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s ease-in-out;
}

.github-tag:hover {
    background: rgba(75, 85, 99, 0.8);
}

.scrollable-list::-webkit-scrollbar {
    display: none;
}

.scrollable-list {
    scrollbar-width: none;
}

.glass-effect {
    background: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

#mobileMenuButton.open .hamburger span:nth-child(1) {
transform: translateY(8px) rotate(45deg);
}
#mobileMenuButton.open .hamburger span:nth-child(2) {
opacity: 0;
}
#mobileMenuButton.open .hamburger span:nth-child(3) {
transform: translateY(-8px) rotate(-45deg);
}

/* Center modal properly */
#appModal {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay */
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

/* Ensure modal content is perfectly centered */
.modal-content {
    background: #1a1a1a;
    padding: 20px;
    border-radius: 12px;
    max-width: 350px;
    width: 90%;
    text-align: center;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
}

/* Show modal properly when it's open */
#appModal:not(.hidden) {
    opacity: 1;
    visibility: visible;
}

/* Close button inside modal (aligned top-right) */
#closeModal {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    color: #ccc;
    cursor: pointer;
    transition: color 0.2s ease-in-out;
}

#closeModal:hover {
    color: #fff;
}

body::before {
    content: "";
    font-family: 'Inter', sans-serif;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 20% 30%, rgba(16, 185, 129, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(5, 150, 105, 0.2) 0%, transparent 50%),
                radial-gradient(circle at 50% 50%, rgba(34, 197, 94, 0.1) 0%, transparent 60%);
    z-index: -1;
}

input:focus {
    outline: none;
    border: 2px solid var(--search-focus);
    box-shadow: 0 0 8px var(--search-focus)
}

header {
    background-color: #1e1e1e;
    border-bottom: 1px solid #374151;
    position: sticky;
}