/* Glassmorphism Utilities */
.glass {
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(22px) saturate(130%);
    -webkit-backdrop-filter: blur(22px) saturate(130%);
    border: 1px solid rgba(148, 163, 184, 0.15);
    box-shadow: 0 24px 60px rgba(8, 15, 31, 0.35);
}

.glass-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.6), rgba(15, 23, 42, 0.6));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.03);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.glass-nav {
    background: rgba(11, 17, 32, 0.72);
    backdrop-filter: blur(22px) saturate(140%);
    -webkit-backdrop-filter: blur(22px) saturate(140%);
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 12px 40px rgba(8, 15, 31, 0.28);
}

.glass-panel {
    background: rgba(7, 11, 22, 1);
    backdrop-filter: blur(40px) saturate(240%);
    -webkit-backdrop-filter: blur(40px) saturate(240%);
    border: 1px solid rgba(148, 163, 184, 0.34);
    box-shadow: 0 32px 80px rgba(8, 15, 31, 0.6);
}

body.menu-open {
  overflow: hidden;
}

.text-gradient {
    background: linear-gradient(to right, #818cf8, #34d399);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Tech Mobile Menu */
#mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 60;
  display: flex;
    align-items: flex-start;
  justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    padding-top: env(safe-area-inset-top, 0px);
    min-height: 100vh;
}

#mobile-menu.menu-open {
    opacity: 1;
    pointer-events: auto;
}

#mobile-menu.menu-closed {
    opacity: 0;
    pointer-events: none;
}

.tech-menu-overlay {
  position: absolute;
    inset: 0;
    background: rgba(5, 8, 20, 0.97);
    backdrop-filter: blur(90px);
    -webkit-backdrop-filter: blur(90px);
    opacity: 0;
    transition: opacity 0.35s ease;
}

#mobile-menu.menu-open .tech-menu-overlay {
    opacity: 1;
}

.tech-menu-panel {
    position: relative;
    width: min(480px, 100%);
    border-radius: 24px;
    padding: 2.75rem 2.2rem;
  display: flex;
    flex-direction: column;
    gap: 2.25rem;
    transform: translateY(-12px) scale(0.96);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    overflow: hidden;
    margin: calc(env(safe-area-inset-top, 0px) + 96px) auto 0;
    max-height: calc(100vh - env(safe-area-inset-top, 0px) - 80px);
}

#mobile-menu.menu-open .tech-menu-panel {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.tech-menu-panel::before {
  content: '';
  position: absolute;
    inset: -40% -60% auto;
    height: 220%;
    background-image: linear-gradient(transparent 0 49%, rgba(148, 163, 184, 0.12) 50%, transparent 51%),
        linear-gradient(90deg, transparent 0 49%, rgba(148, 163, 184, 0.12) 50%, transparent 51%);
    background-size: 90px 90px;
    opacity: 0.35;
    pointer-events: none;
}

.tech-menu-panel::after {
  content: '';
  position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.24), transparent 65%);
    opacity: 0.35;
  pointer-events: none;
}

.tech-menu-header {
    display: flex;
  align-items: center;
    justify-content: space-between;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.65rem;
    color: rgba(226, 232, 240, 0.75);
  position: relative;
    z-index: 1;
}

.tech-menu-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 600;
}

.tech-menu-dot {
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, #22d3ee, #6366f1);
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.8);
    animation: pulseDot 2s infinite;
}

.tech-menu-version {
    font-family: 'Fira Code', ui-monospace, monospace;
}

.tech-menu-body {
  display: flex;
    flex-direction: column;
    gap: 1.75rem;
  position: relative;
    z-index: 1;
}

.tech-menu-intro {
  display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tech-menu-label {
    font-family: 'Fira Code', ui-monospace, monospace;
    font-size: 0.75rem;
    letter-spacing: 0.24em;
    color: rgba(148, 163, 184, 0.7);
    text-transform: uppercase;
}

.tech-menu-subtitle {
    margin: 0;
    color: rgba(226, 232, 240, 0.82);
    font-size: 0.95rem;
    line-height: 1.5;
}

.tech-menu-links {
    list-style: none;
    padding: 0;
    margin: 0;
  display: flex;
  flex-direction: column;
    gap: 1.35rem;
}

.tech-menu-links li {
    opacity: 0;
    transform: translateY(18px);
    animation: techMenuItem 0.45s ease forwards;
    animation-delay: var(--delay, 0s);
}

#mobile-menu.menu-open .tech-menu-links li {
    opacity: 1;
}

.tech-menu-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 1.25rem;
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: -0.035em;
    text-transform: uppercase;
    color: #e2e8f0;
    text-decoration: none;
    transition: transform 0.25s ease, color 0.25s ease;
}

.tech-menu-link::before {
    content: attr(data-code);
    font-family: 'Fira Code', ui-monospace, monospace;
    font-size: 0.85rem;
    letter-spacing: 0.28em;
    color: rgba(148, 163, 184, 0.66);
    text-transform: none;
}

.tech-menu-link::after {
  content: '';
  position: absolute;
    left: 0;
    bottom: -0.4rem;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.8), rgba(20, 184, 166, 0));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.tech-menu-link:hover,
.tech-menu-link:focus-visible {
    color: #a5b4fc;
    transform: translateX(8px);
}

.tech-menu-link:hover::after,
.tech-menu-link:focus-visible::after {
    transform: scaleX(1);
}

.tech-menu-link:focus-visible {
    outline: 2px solid rgba(99, 102, 241, 0.6);
    outline-offset: 6px;
}

.tech-menu-footer {
  display: flex;
  flex-direction: column;
    gap: 1.6rem;
    color: rgba(203, 213, 225, 0.78);
    position: relative;
    z-index: 1;
}

.tech-menu-status {
    display: inline-flex;
  align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    font-family: 'Fira Code', ui-monospace, monospace;
}

.tech-status-indicator {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 9999px;
    background: #10b981;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.8);
    animation: blink 1.4s infinite;
}

.tech-menu-actions {
  display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.tech-menu-action {
  display: inline-flex;
  align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 1rem;
    border-radius: 9999px;
  text-decoration: none;
    background: rgba(99, 102, 241, 0.12);
    color: #e2e8f0;
    font-weight: 600;
    font-size: 0.92rem;
    box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.22);
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.tech-menu-action:hover,
.tech-menu-action:focus-visible {
    background: rgba(99, 102, 241, 0.2);
    transform: translateY(-3px);
    box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.45), 0 12px 24px rgba(99, 102, 241, 0.25);
}

.tech-menu-action:focus-visible {
    outline: 2px solid rgba(99, 102, 241, 0.5);
    outline-offset: 4px;
}

@media (max-width: 420px) {
    .tech-menu-panel {
        width: min(92%, 320px);
        padding: 2.4rem 1.8rem;
        border-radius: 20px;
    }

    .tech-menu-link {
        font-size: 1.45rem;
    }

    .tech-menu-actions {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 1024px) {
    .tech-menu-panel {
        width: min(560px, 75%);
        padding: 3.5rem 3rem;
        max-height: calc(100vh - env(safe-area-inset-top, 0px) - 120px);
    }

    .tech-menu-body {
        flex-direction: column;
        align-items: stretch;
        gap: 2.5rem;
    }

    .tech-menu-intro {
        max-width: none;
    }

    .tech-menu-links {
  display: flex;
  flex-direction: column;
        gap: 1.75rem;
    }

    .tech-menu-link {
        font-size: 1.8rem;
    }

    .tech-menu-footer {
  flex-direction: column;
        align-items: flex-start;
        gap: 1.75rem;
    }

    .tech-menu-status {
        width: 100%;
    }

    .tech-menu-actions {
  display: flex;
        flex-wrap: wrap;
        gap: 0.85rem;
        justify-content: flex-start;
    }
}

/* Typing Animation */
#typing-title {
    min-height: 3.5rem;
}

@media (min-width: 640px) {
    #typing-title {
        min-height: 3.75rem;
    }
}

@media (min-width: 768px) {
    #typing-title {
        min-height: 5.625rem;
    }
}

#typing-title::after {
    content: '|';
    animation: blink 1s infinite;
    color: #6366f1;
    font-weight: 300;
    margin-left: 0.01rem;
}

#typing-title.finished-typing::after {
    animation: none;
    opacity: 0;
}

/* Decorative pattern */
.pattern-grid-lg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.2) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.15) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Keyframes */
@keyframes fadeIn {
    0% {
  opacity: 0;
}
    100% {
  opacity: 1;
}
}

@keyframes slideUp {
    0% {
    opacity: 0;
        transform: translateY(20px);
  }
    100% {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes pulseDot {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 12px rgba(99, 102, 241, 0.6);
    }
    50% {
        transform: scale(1.15);
        box-shadow: 0 0 16px rgba(99, 102, 241, 0.85);
    }
}

@keyframes techMenuItem {
    0% {
    opacity: 0;
        transform: translateY(24px) scale(0.97);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.menu-toggle i {
    transition: opacity 0.25s ease;
}

.menu-toggle.is-active i {
    opacity: 0;
}

