:root {
    --bg-light: #f8fafc;
    --card-bg: #ffffff;
    --card-border: #e2e8f0;
    --card-border-hover: #cbd5e1;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --primary-accent: #4f46e5;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    font-family: 'Plus Jakarta Sans', sans-serif;
    overflow-x: hidden;
}

.logo-automatize {
    max-height: 60px;
}

/* .centered {
                position: absolute;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%);
            } */
.bd-placeholder-img {
    font-size: 1.125rem;
    text-anchor: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

@media (min-width: 768px) {
    .bd-placeholder-img-lg {
        font-size: 3.5rem;
    }
}

.b-example-divider {
    height: 3rem;
    background-color: rgba(0, 0, 0, .1);
    border: solid rgba(0, 0, 0, .15);
    border-width: 1px 0;
    box-shadow: inset 0 .5em 1.5em rgba(0, 0, 0, .1), inset 0 .125em .5em rgba(0, 0, 0, .15);
}

.b-example-vr {
    flex-shrink: 0;
    width: 1.5rem;
    height: 100vh;
}

.bi {
    vertical-align: -.125em;
    fill: currentColor;
}

.nav-scroller {
    position: relative;
    z-index: 2;
    height: 2.75rem;
    overflow-y: hidden;
}

.nav-scroller .nav {
    display: flex;
    flex-wrap: nowrap;
    padding-bottom: 1rem;
    margin-top: -1px;
    overflow-x: auto;
    text-align: center;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

/* Hero Glow Background */
.hero-section {
    position: relative;
    padding: 5rem 0 3rem;
}

.glow-bg {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 100vw;
    width: 100%;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, rgba(224, 231, 255, 0.4) 50%, transparent 70%);
    filter: blur(50px);
    z-index: -1;
    pointer-events: none;
}

.gradient-text {
    background: linear-gradient(135deg, #0f172a 0%, #4f46e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Modernized Buttons */
.btn-glow {
    background: #4f46e5;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 0.75rem 1.75rem;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.25);
    transition: all 0.25s ease;
}

.btn-glow:hover {
    color: #ffffff;
    background: #4338ca;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.35);
}

/* Light Cards */
.portfolio-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.portfolio-card:hover {
    transform: translateY(-7px);
    border-color: var(--card-border-hover);
    box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.08);
}

.card-img-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1.95;
    border-bottom: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Background image using CSS variable */
.card-img-wrapper::before {
    content: "";
    position: absolute;
    inset: -10px;
    /* Extends slightly outside to prevent edge artifact clipping from blur */
    background-image: var(--bg-src);
    background-size: cover;
    background-position: center;
    filter: blur(12px) brightness(1);
    opacity: 0.8;
    z-index: 1;
}

/* Foreground image overlay */
.card-img-wrapper img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.portfolio-card:hover .card-img-wrapper img {
    /* transform: scale(0.92); */
    transform: scale(1.04);
}

.badge-pill {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.65rem;
    border-radius: 20px;

    /* Vertical centering rules */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    text-align: center;
}

.card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.5rem;
}

.card-title {
    color: #0f172a;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.card-date {
    font-size: 0.7rem;
    color: #94a3b8;
    font-weight: 500;
    white-space: nowrap;

    /* Text alignment fix */
    /* display: block;
    text-align: right;
    width: 100%; */
}

.card-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.btn-card {
    background: #ffffff;
    color: #334155;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-weight: 600;
    padding: 0.5rem 1rem;
    width: 100%;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-card:hover {
    background: #f8fafc;
    color: #0f172a;
    border-color: #94a3b8;
}

.gradient-text {
    /* Gradient with an extra light shine highlight in the middle */
    background: linear-gradient(120deg,
            #0f172a 0%,
            #0f172a 35%,
            #818cf8 50%,
            #4f46e5 65%,
            #0f172a 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    /* Animation call */
    animation: shine 10s linear infinite;
}

.badge-os {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* Windows - Soft Blue */
.badge-os-windows {
    background-color: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

/* Mac - Sleek Gray/Dark */
.badge-os-mac,
.badge-os-macos {
    background-color: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
}

/* Linux - Warm Orange/Amber */
.badge-os-linux {
    background-color: #fff7ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
}

.badge-os-web-extension {
    /* background-color: #f7ffe7; */
    color: #198754;
    border: 1px solid #4ec659;
}

.badge-os-website,
.badge-os-web-app {
    background-color: #ebfbff;
    color: #00a1c1;
    border: 1px solid #0dcaf0;
}

@keyframes shine {
    0% {
        background-position: 200% center;
    }

    100% {
        background-position: -200% center;
    }
}