/**
 * Custom Theme Styles - Portfolio Edition
 */

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

:root {
    --ui-bg: #060712;
    --ui-surface: rgba(255, 255, 255, 0.06);
    --ui-surface-2: rgba(255, 255, 255, 0.09);
    --ui-surface-muted: rgba(255, 255, 255, 0.04);
    --ui-border: rgba(255, 255, 255, 0.10);
    --ui-border-strong: rgba(255, 255, 255, 0.18);
    --ui-text: rgba(255, 255, 255, 0.92);
    --ui-muted: rgba(255, 255, 255, 0.64);
    --ui-primary: #60a5fa;
    --ui-primary-strong: #3b82f6;
    --ui-accent: #a78bfa;
    --ui-focus: rgba(96, 165, 250, 0.42);
    --ui-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
    --ui-shadow-soft: 0 10px 35px rgba(0, 0, 0, 0.35);

    --accent-yellow: #fbbf24;
    --accent-green: #34d399;
    --accent-blue: #60a5fa;
    --bg-dark: #05070a;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--ui-text);
    background-color: var(--ui-bg);
    background-image:
        radial-gradient(900px 500px at 10% 10%, rgba(96, 165, 250, 0.22) 0%, rgba(96, 165, 250, 0) 60%),
        radial-gradient(900px 540px at 90% 15%, rgba(167, 139, 250, 0.18) 0%, rgba(167, 139, 250, 0) 60%),
        radial-gradient(900px 560px at 50% 95%, rgba(52, 211, 153, 0.10) 0%, rgba(52, 211, 153, 0) 60%);
    background-attachment: fixed;
}

.card-yellow {
    background: rgba(251, 191, 36, 0.06);
    border: 1px solid rgba(251, 191, 36, 0.18);
}
.card-green {
    background: rgba(52, 211, 153, 0.06);
    border: 1px solid rgba(52, 211, 153, 0.18);
}
.card-blue {
    background: rgba(96, 165, 250, 0.06);
    border: 1px solid rgba(96, 165, 250, 0.18);
}
.card-purple {
    background: rgba(167, 139, 250, 0.06);
    border: 1px solid rgba(167, 139, 250, 0.18);
}

.card-yellow, .card-green, .card-blue, .card-purple {
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--ui-shadow-soft);
    transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.card-yellow:hover {
    border-color: rgba(251, 191, 36, 0.35);
    transform: translateY(-2px);
}
.card-green:hover {
    border-color: rgba(52, 211, 153, 0.35);
    transform: translateY(-2px);
}
.card-blue:hover {
    border-color: rgba(96, 165, 250, 0.35);
    transform: translateY(-2px);
}
.card-purple:hover {
    border-color: rgba(167, 139, 250, 0.35);
    transform: translateY(-2px);
}

.btn-dark {
    background-image: linear-gradient(135deg, rgba(96, 165, 250, 1) 0%, rgba(167, 139, 250, 1) 55%, rgba(52, 211, 153, 1) 110%);
    color: rgba(5, 7, 10, 0.96);
    padding: 0.8rem 1.35rem;
    border-radius: 0.95rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 18px 45px rgba(96, 165, 250, 0.18), 0 12px 35px rgba(167, 139, 250, 0.14);
    transition: transform 0.15s ease, filter 0.15s ease;
}
.btn-dark:hover { transform: translateY(-1px); filter: brightness(1.02); }
.btn-dark:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--ui-focus); }

.stat-card {
    border-radius: 1.5rem;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s;
}
.stat-card:hover { transform: scale(1.05); }

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
}

.portfolio-item {
    border-radius: 2rem;
    overflow: hidden;
    position: relative;
}

.glass-header {
    background: rgba(6, 7, 18, 0.55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

/* Custom Logo Styling */
.custom-logo-link {
    display: block;
    max-width: 180px;
    transition: transform 0.3s ease;
}
.custom-logo-link:hover {
    transform: scale(1.02);
}
.custom-logo {
    width: 100%;
    height: auto;
    max-height: 50px; /* Constrain height to keep header slim */
    object-fit: contain;
}

@media (max-width: 768px) {
    .custom-logo-link {
        max-width: 140px;
    }
    .custom-logo {
        max-height: 40px;
    }
}

/* Prevent UI Bump */
main#content {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
}

[x-cloak] { display: none !important; }

/* Smooth transition for skeleton */
.skeleton-container {
    transition: opacity 0.2s ease-in-out;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.26);
}

/* Premium Dark Skeleton Shimmer */
.skeleton-premium {
    background: #1a1e26;
    position: relative;
    overflow: hidden;
}

.skeleton-premium::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0,
        rgba(255, 255, 255, 0.1) 20%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.1) 80%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: shimmer-premium 2s infinite ease-in-out;
}

@keyframes shimmer-premium {
    100% {
        transform: translateX(100%);
    }
}

/* Portfolio Grid Hover */
.portfolio-card img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.portfolio-card:hover img {
    transform: scale(1.05);
}

/* Prose refinements */
.prose {
    color: rgba(255, 255, 255, 0.80);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}
.prose.prose-wide {
    max-width: none;
}
.prose h1, .prose h2, .prose h3 {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 900;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
}
.prose h1 { font-size: 2.25rem; }
.prose h2 { font-size: 1.875rem; }
.prose h3 { font-size: 1.5rem; }
.prose p { margin-bottom: 1.5rem; }
.prose ul { list-style-type: disc; padding-left: 1.5rem; margin-bottom: 1.5rem; }
.prose ol { list-style-type: decimal; padding-left: 1.5rem; margin-bottom: 1.5rem; }
.prose img { border-radius: 1.5rem; margin: 2rem 0; width: 100%; height: auto; }
.prose blockquote { border-left: 4px solid rgba(96, 165, 250, 0.7); padding-left: 1.5rem; font-style: italic; color: rgba(255, 255, 255, 0.72); margin: 2rem 0; }
.prose a { color: rgba(96, 165, 250, 0.95); text-decoration: underline; font-weight: 800; }

/* Futuristic Footer Styles */
.site-footer {
    background: var(--bg-dark) !important;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 15% 15%, rgba(96, 165, 250, 0.16) 0%, rgba(96, 165, 250, 0) 55%),
        radial-gradient(circle at 85% 30%, rgba(167, 139, 250, 0.14) 0%, rgba(167, 139, 250, 0) 55%),
        radial-gradient(circle at 35% 90%, rgba(52, 211, 153, 0.10) 0%, rgba(52, 211, 153, 0) 55%),
        radial-gradient(circle, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: auto, auto, auto, 36px 36px;
    pointer-events: none;
}

.footer-glow-1 {
    display: none;
}

.footer-glow-2 {
    display: none;
}

.site-footer .border-t {
    border-color: rgba(255,255,255,0.05) !important;
}

.footer-shape {
    display: none;
}
.shape-1 {
    display: none;
}
.shape-2 {
    display: none;
}

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

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ui-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 900;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: rgba(255, 255, 255, 0.88);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.65rem 1.05rem;
    border-radius: 9999px;
    box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.08) inset;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.ui-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 1.5rem;
    box-shadow: var(--ui-shadow-soft);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.ui-card:hover {
    border-color: rgba(255, 255, 255, 0.18);
}

.ui-divider {
    border-color: rgba(255, 255, 255, 0.10) !important;
}

.ui-link {
    color: rgba(96, 165, 250, 0.95);
    font-weight: 800;
}

.ui-link:hover {
    color: rgba(167, 139, 250, 0.95);
}

.ui-surface {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 1.75rem;
    box-shadow: var(--ui-shadow);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.ui-muted {
    color: var(--ui-muted);
}
