.theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.08);
    color: var(--tj-white);
    font-size: 0.85rem;
    line-height: 1;
    transition: all 0.3s ease;
}

.header-theme-toggle {
    margin-left: 0.75rem;
}

.theme-toggle i {
    font-size: 0.95rem;
}

.theme-toggle:hover {
    border-color: var(--tj-theme-primary);
    color: var(--tj-white);
}

.theme-toggle .icon-sun {
    display: none;
}

body.light-mode .theme-toggle {
    color: var(--tj-theme-secondary);
    border-color: rgba(0, 0, 0, 0.15);
    background: rgba(0, 0, 0, 0.04);
}

body.light-mode .theme-toggle:hover {
    border-color: var(--tj-theme-primary);
    color: var(--tj-theme-primary);
}

body.light-mode .theme-toggle .icon-sun {
    display: inline-flex;
}

body.light-mode .theme-toggle .icon-moon {
    display: none;
}

.tech-stack-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-stack-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--tj-white);
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

body.light-mode .tech-stack-tag {
    color: var(--tj-theme-primary);
    border-color: rgba(0, 0, 0, 0.15);
}

/* ============================================
   Toast Notifications
   ============================================ */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    max-width: 400px;
    width: calc(100% - 40px);
}

.toast-notification {
    pointer-events: auto;
    background: #1a1a2e;
    border: 1px solid #2a2a3a;
    border-left: 4px solid #6a4dff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transform: translateX(110%);
    opacity: 0;
    transition: none;
}

.toast-notification.toast-visible {
    animation: toast-slide-in 0.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.toast-notification.toast-hiding {
    animation: toast-slide-out 0.3s ease-in forwards;
}

.toast-body {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
}

.toast-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.toast-message {
    flex: 1;
    color: #e0e0e0;
    font-size: 14px;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: #666;
    font-size: 20px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    flex-shrink: 0;
    transition: color 0.2s;
}

.toast-close:hover {
    color: #fff;
}

.toast-progress {
    height: 3px;
    width: 100%;
    transform-origin: left;
    animation: toast-progress linear forwards;
}

@keyframes toast-slide-in {
    from { transform: translateX(110%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes toast-slide-out {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(110%); opacity: 0; }
}

@keyframes toast-progress {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

/* Light mode toast */
body.light-mode .toast-notification {
    background: #ffffff;
    border-color: #e5e7eb;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

body.light-mode .toast-message {
    color: #1f2937;
}

body.light-mode .toast-close {
    color: #9ca3af;
}

body.light-mode .toast-close:hover {
    color: #111827;
}

/* ============================================
   Shimmer / Skeleton Loading
   ============================================ */
.skeleton {
    background: linear-gradient(90deg, #1a1a2e 25%, #2a2a3a 50%, #1a1a2e 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: 4px;
}

.skeleton-text {
    height: 14px;
    width: 100%;
    margin-bottom: 8px;
}

.skeleton-title {
    height: 20px;
    width: 80%;
    margin-bottom: 12px;
}

.skeleton-image {
    width: 100%;
    height: 200px;
    border-radius: 8px 8px 0 0;
}

.skeleton-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    flex-shrink: 0;
}

.skeleton-icon {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    flex-shrink: 0;
}

.skeleton-btn {
    width: 100px;
    height: 32px;
    border-radius: 4px;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Skeleton card container */
.skeleton-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #2a2a3a;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

.skeleton-card-body {
    padding: 20px;
}

/* Skeleton FAQ */
.skeleton-faq {
    border: 1px solid #2a2a3a;
    border-radius: 8px;
    margin-bottom: 10px;
    padding: 18px 20px;
}

.skeleton-faq-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Skeleton testimonial */
.skeleton-testimonial {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #2a2a3a;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 16px;
}

.skeleton-testimonial-body {
    margin-bottom: 20px;
}

.skeleton-testimonial-footer {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Skeleton counter */
.skeleton-counter {
    text-align: center;
    padding: 20px;
}

/* Skeleton service */
.skeleton-service {
    border: 1px solid #2a2a3a;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 12px;
}

.skeleton-service-inner {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Light mode skeletons */
body.light-mode .skeleton {
    background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
    background-size: 200% 100%;
}

body.light-mode .skeleton-card,
body.light-mode .skeleton-faq,
body.light-mode .skeleton-testimonial,
body.light-mode .skeleton-service {
    background: rgba(0, 0, 0, 0.02);
    border-color: #e5e7eb;
}
