/* 
   QA Portfolio Custom Styles
   Integrated with Tailwind CSS
   Clean Minimalist Design
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=block');

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Bento Grid System */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
}

.bento-item {
    grid-column: span 12;
}

@media (min-width: 768px) {
    .bento-item-4 {
        grid-column: span 4;
    }

    .bento-item-6 {
        grid-column: span 6;
    }

    .bento-item-8 {
        grid-column: span 8;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.marquee-track {
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translate3d(0, 0, 0);
}

.group:hover .marquee-track {
    animation-play-state: paused;
}

.skill-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.skill-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    border-color: #2563eb;
}
.dark .skill-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
    border-color: #60a5fa;
}

@keyframes marquee-left {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-50%);
    }
}

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

    100% {
        transform: translateX(0%);
    }
}

.marquee-track[data-direction="left"] {
    animation: marquee-left 35s linear infinite;
}

.marquee-track[data-direction="right"] {
    animation: marquee-right 35s linear infinite;
}



.marquee-container {
    animation: fadeIn 1s ease-out forwards;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

/* Simple pill navbar for both index and projects pages */
.simple-nav-wrapper {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    pointer-events: none;
    max-width: calc(100vw - 16px);
}

.simple-nav {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 18px;
    background: #ffffff;
    padding: 8px 22px;
    border-radius: 9999px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.06);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.simple-nav::-webkit-scrollbar {
    display: none;
}

.simple-nav a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #1a1c1c;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    padding: 5px 10px;
    border-radius: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.simple-nav a:hover {
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
}

.simple-nav .material-symbols-outlined {
    font-size: 18px;
    font-variation-settings: 'FILL' 0, 'wght' 500;
}

@media (max-width: 768px) {
    .simple-nav {
        gap: 14px;
        padding: 8px 18px;
    }

    .simple-nav a {
        gap: 5px;
        font-size: 13px;
        padding: 5px 10px;
    }

    .simple-nav .material-symbols-outlined {
        font-size: 18px;
    }
}

@media (max-width: 767px) {
    .simple-nav-wrapper {
        top: 12px;
        max-width: calc(100vw - 24px);
    }

    .simple-nav {
        gap: 8px;
        padding: 8px 16px;
        border-radius: 9999px;
        justify-content: center;
    }

    .simple-nav a {
        gap: 4px;
        font-size: 13px;
        padding: 6px 10px;
    }

    .simple-nav .material-symbols-outlined {
        font-size: 18px;
    }

    .theme-toggle-btn {
        padding: 5px;
    }

    .theme-toggle-btn .material-symbols-outlined {
        font-size: 18px;
    }

    .nav-separator {
        height: 16px;
    }
}

@media (max-width: 480px) {
    .simple-nav-wrapper {
        max-width: calc(100vw - 12px);
    }

    .simple-nav {
        gap: 6px;
        padding: 6px 12px;
    }

    .simple-nav a {
        gap: 3px;
        font-size: 12px;
        padding: 4px 8px;
    }

    .simple-nav .material-symbols-outlined {
        font-size: 16px;
    }

    .theme-toggle-btn {
        padding: 4px;
    }

    .theme-toggle-btn .material-symbols-outlined {
        font-size: 16px;
    }

    .nav-separator {
        height: 14px;
    }
}

/* Custom Scrollbar for Terminal/Logs */
.overflow-y-auto::-webkit-scrollbar {
    width: 6px;
}

/* Header / Nav tweaks to ensure consistent appearance on projects page */
header a.text-xl {
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    font-weight: 800;
}

header nav a {
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    font-weight: 600;
}

.overflow-y-auto::-webkit-scrollbar-track {
    background: transparent;
}

.overflow-y-auto::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.overflow-y-auto::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Toast Notification */
#toast {
    visibility: hidden;
    min-width: 350px;
    background: white;
    color: #1a1c1c;
    border-radius: 16px;
    padding: 1rem 1.5rem;
    position: fixed;
    z-index: 1000;
    right: 32px;
    bottom: 32px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 1rem;
    transform: translateY(100px);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
}

#toast.error .toast-icon {
    background: #dc2626;
}

#toast.warning .toast-icon {
    background: #d97706;
}

#toast.show {
    visibility: visible;
    transform: translateY(0);
    opacity: 1;
}

.toast-icon {
    width: 40px;
    height: 40px;
    background: #2563eb;
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast-content {
    text-align: left;
}

.toast-title {
    font-weight: 700;
    font-size: 14px;
    display: block;
}

.toast-message {
    font-size: 13px;
    color: #555;
}

.no-scroll {
    overflow: hidden;
}

#mobile-menu-btn {
    transition: transform 0.2s ease;
}

#mobile-menu-btn:active {
    transform: scale(0.9);
}

/* Custom Scrollbar for Certifications List */
.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Loading Screen */
#loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f9f9;
    transition: opacity 0.6s ease, visibility 0.6s ease, transform 0.6s ease;
}

.dark #loader {
    background: #121212;
}

#loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(1.1);
}

.loader-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(37, 99, 235, 0.2);
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Nav Separator */
.nav-separator {
    width: 1px;
    height: 20px;
    background: rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

/* Theme Toggle Button */
.theme-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: all 0.2s ease;
    color: #1a1c1c;
}

.theme-toggle-btn:hover {
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
}

/* Dark Mode Overrides */
.dark body {
    background-color: #121212;
    color: #e0e0e0;
}

.dark .simple-nav {
    background: #1e1e1e;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.dark .simple-nav a {
    color: #c0c0c0;
}

.dark .simple-nav a:hover {
    background: rgba(37, 99, 235, 0.2);
    color: #90b0ff;
}

.dark .nav-separator {
    background: rgba(255, 255, 255, 0.1);
}

.dark .theme-toggle-btn {
    color: #c0c0c0;
}

.dark .theme-toggle-btn:hover {
    background: rgba(37, 99, 235, 0.2);
    color: #90b0ff;
}

.dark main section.bg-white,
.dark footer.bg-white {
    background-color: #1a1a1a;
}

.theme-transition,
.theme-transition * {
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease !important;
}

.dark .bg-white {
    background-color: #1e1e1e;
}

.dark .bg-gray-50 {
    background-color: #252525;
}

.dark .bg-gray-100 {
    background-color: #2a2a2a;
}

.dark .border-gray-200 {
    border-color: rgba(255, 255, 255, 0.12);
}

.dark .border-gray-300 {
    border-color: rgba(255, 255, 255, 0.15);
}

.dark .text-gray-500 {
    color: #999999;
}

.dark .text-gray-400 {
    color: #888888;
}

.dark .text-gray-600 {
    color: #888888;
}

.dark .text-gray-900 {
    color: #e0e0e0;
}

.dark .bg-gray-300 {
    background-color: rgba(255, 255, 255, 0.2);
}

.dark .hover\:border-gray-400:hover {
    border-color: rgba(255, 255, 255, 0.3);
}

.dark .bg-primary\/10 {
    background-color: rgba(144, 176, 255, 0.12);
}

.dark .bg-yellow-100 {
    background-color: rgba(234, 179, 8, 0.2);
}

.dark .text-yellow-800 {
    color: #fbbf24;
}

.dark input,
.dark textarea {
    background-color: #222222 !important;
    color: #e0e0e0 !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

.dark #toast {
    background: #1e1e1e;
    color: #e0e0e0;
    border-color: rgba(255, 255, 255, 0.08);
}

.dark #mobile-menu {
    background-color: #121212;
}

.dark .bg-surface {
    background-color: #121212;
}

.dark .bg-primary {
    background-color: #2563eb;
}

.dark .project-btn-action {
    background-color: #1d4ed8;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.dark .project-btn-action:hover {
    background-color: #2563eb;
}

.dark .text-primary {
    color: #90b0ff;
}

.dark .simple-nav {
    background: #1e1e1e;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.dark .simple-nav a {
    color: #c0c0c0;
}

.dark .simple-nav a:hover {
    background: rgba(37, 99, 235, 0.2);
    color: #90b0ff;
}

.dark .nav-separator {
    background: rgba(255, 255, 255, 0.1);
}

.dark .theme-toggle-btn {
    color: #c0c0c0;
}

.dark .theme-toggle-btn:hover {
    background: rgba(37, 99, 235, 0.2);
    color: #90b0ff;
}

.dark main section.bg-white,
.dark footer.bg-white {
    background-color: #1a1a1a;
}

.dark section.bg-surface-container-low {
    background-color: #1e1e1e;
}

.dark .bg-surface-container-low {
    background-color: #1e1e1e;
}

.dark .border-surface-container-high,
.dark .border-surface-container-highest {
    border-color: rgba(255, 255, 255, 0.08);
}

.dark .text-on-background,
.dark .text-on-surface {
    color: #e0e0e0;
}

.dark .text-tertiary {
    color: #a0a0a0;
}

.dark .text-gray-900 {
    color: #e0e0e0;
}

.dark .text-gray-500 {
    color: #999999;
}

.dark .bg-white {
    background-color: #1e1e1e;
}

.dark .bg-surface {
    background-color: #121212;
}

.dark .bg-surface-container {
    background-color: #222222;
}

.dark .border-gray-100 {
    border-color: rgba(255, 255, 255, 0.08);
}

.dark .shadow-xl,
.dark .shadow-lg,
.dark .shadow-md,
.dark .shadow-sm,
.dark .shadow {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.dark .bg-blue-50 {
    background-color: rgba(37, 99, 235, 0.15);
}

.dark .border-blue-100 {
    border-color: rgba(37, 99, 235, 0.2);
}

.dark .ring-4.ring-blue-50 {
    --tw-ring-color: rgba(37, 99, 235, 0.15);
}

.dark .bg-gradient-to-r.from-white,
.dark .bg-gradient-to-l.from-white {
    --tw-gradient-from: #1a1a1a;
}

.dark .via-white\/80 {
    --tw-gradient-to: transparent;
    --tw-gradient-stops: var(--tw-gradient-from), rgba(26, 26, 26, 0.8), var(--tw-gradient-to);
}

.dark .bg-yellow-100 {
    background-color: rgba(234, 179, 8, 0.2);
}

.dark .text-yellow-800 {
    color: #fbbf24;
}

.dark .bg-slate-100 {
    background-color: #2a2a2a;
}

.dark .text-slate-300,
.dark .text-slate-400 {
    color: #888888;
}

.dark .border-slate-100 {
    border-color: rgba(255, 255, 255, 0.08);
}

.dark .hover\:bg-slate-50:hover {
    background-color: #2a2a2a;
}

.dark .hover\:bg-surface-container-low:hover {
    background-color: #2a2a2a;
}

.dark .bg-surface-container-lowest {
    background-color: #1e1e1e;
}

.dark .bg-surface-variant {
    background-color: #2a2a2a;
}

.dark .from-slate-100 {
    --tw-gradient-from: #2a2a2a;
}

.dark .to-slate-200 {
    --tw-gradient-to: #333333;
}

.dark #toast {
    background: #1e1e1e;
    color: #e0e0e0;
    border-color: rgba(255, 255, 255, 0.08);
}

.dark #mobile-menu {
    background-color: #121212;
}

.dark input,
.dark textarea {
    background-color: #222222 !important;
    color: #e0e0e0 !important;
}

.dark .bg-gradient-to-br.from-slate-100 {
    --tw-gradient-from: #2a2a2a;
}

.dark .bg-gradient-to-br.to-slate-200 {
    --tw-gradient-to: #333333;
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* VS Code Editor Mockup */
.vscode-window {
    background: #1e1e1e;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: left;
    width: 100%;
    max-width: 740px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Card variant — fills container, no outer chrome */
.vscode-card.vscode-window {
    max-width: none;
    display: flex;
    flex-direction: column;
    border-radius: 0;
    box-shadow: none;
    border: none;
}
.vscode-card .vscode-editor {
    flex: 1;
}

.vscode-titlebar {
    background: #323233;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    user-select: none;
    position: relative;
}

.vscode-dots {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.vscode-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transition: opacity 0.2s;
}

.vscode-dot-close { background: #ff5f56; }
.vscode-dot-minimize { background: #ffbd2e; }
.vscode-dot-maximize { background: #27c93f; }

.vscode-filename {
    color: #cccccc;
    font-size: 13px;
    font-family: 'Segoe UI', -apple-system, sans-serif;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

.vscode-editor {
    display: flex;
    font-family: 'Cascadia Code', 'Fira Code', 'JetBrains Mono', 'Consolas', 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.9;
    padding: 14px 0 18px;
    background: #1e1e1e;
}

.vscode-gutter {
    color: #858585;
    padding: 0 14px 0 18px;
    text-align: right;
    user-select: none;
    min-width: 28px;
    flex-shrink: 0;
}

.vscode-gutter-line {
    line-height: 1.9;
    font-size: 13px;
}

.vscode-code {
    flex: 1;
    color: #d4d4d4;
    white-space: pre;
    overflow-x: auto;
    padding-right: 18px;
    position: relative;
    min-height: 20px;
}

.vscode-code-line {
    line-height: 1.9;
    font-size: 13px;
    white-space: pre;
    min-height: 1.9em;
}

/* VS Code Dark+ theme syntax highlighting */
.vscode-kw { color: #569cd6; }    /* keywords: import, const, from, async, await */
.vscode-str { color: #ce9178; }    /* strings */
.vscode-num { color: #b5cea8; }    /* numbers */
.vscode-cm { color: #6a9955; }    /* comments */
.vscode-fn { color: #dcdcaa; }    /* functions/methods */
.vscode-var { color: #9cdcfe; }   /* variables/properties */
.vscope-op { color: #d4d4d4; }    /* operators */
.vscode-pu { color: #d4d4d4; }    /* punctuation */
.vscode-bg { color: #4ec9b0; }    /* built-in */
.vscode-tag { color: #569cd6; }   /* template literal tags */
.vscode-method { color: #dcdcaa; }
.vscode-prop { color: #9cdcfe; }

/* Blinking cursor */
.vscode-cursor {
    display: inline-block;
    width: 2px;
    height: 1.1em;
    background: #569cd6;
    animation: vscode-blink 1s step-end infinite;
    vertical-align: text-bottom;
    margin-left: 1px;
}

@keyframes vscode-blink {
    50% { opacity: 0; }
}

/* VS Code status bar */
.vscode-statusbar {
    background: #007acc;
    padding: 6px 14px;
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    color: #ffffff;
    font-family: 'Segoe UI', -apple-system, sans-serif;
}

.vscode-status-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.vscode-status-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Responsive */
@media (max-width: 640px) {
    .vscode-window {
        border-radius: 8px;
        max-width: 100%;
    }
    .vscode-editor {
        font-size: 11px;
        line-height: 1.7;
        padding: 10px 0 14px;
    }
    .vscode-filename {
        font-size: 11px;
    }
    .vscode-gutter {
        padding: 0 8px 0 12px;
        min-width: 20px;
    }
    .vscode-gutter-line,
    .vscode-code-line {
        font-size: 11px;
        line-height: 1.7;
    }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}