/* inter-regular - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/inter-v20-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inter-800 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Inter';
    font-style: normal;
    font-weight: 800;
    src: url('../fonts/inter-v20-latin-800.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inter-900 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Inter';
    font-style: normal;
    font-weight: 900;
    src: url('../fonts/inter-v20-latin-900.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* --- 1. Variables & Reset --- */
:root {
    --primary: #7C4DFF;
    --accent: #9d7aff;
    --bg-dark: #121212;
    --bg-soft: #1a1a1a;
    --text-muted: #a0a0a0;
    --border-weight: 3px;
    /* Hard Shadow Sizes */
/*    --shd-small: 4px 4px 0px white;
    --shd-med: 8px 8px 0px var(--primary);
    --shd-large: 12px 12px 0px var(--primary);*/
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: white;
    font-family: 'Inter', sans-serif !important;
    overflow-x: hidden; /* Prevents side-scrolling on mobile */
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

/* Add this extra rule to force Headings to behave */
h1, h2, h3, h4, h5, h6, button, input, .btn {
    font-family: 'Inter', sans-serif !important;
}

/* --- 2. Layout Framework --- */
.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

.container {
    max-width: 1200px !important; /* Adjust this to your preferred "box" width */
    margin-right: auto;
    margin-left: auto;
    padding-right: 20px;
    padding-left: 20px;
}

/* Standard Section Spacing */
.section-padding {
    padding: 80px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    content-visibility: auto;
    contain-intrinsic-size: 1px 100vh;
}

.section-title-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
}

.section-title-bg {
    position: absolute;
    font-size: clamp(4rem, 15vw, 8rem);
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03); /* Very faint */
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.1);
    letter-spacing: 10px;
    z-index: 0;
    user-select: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
}

.section-title {
    position: relative;
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 900;
    z-index: 1;
    margin: 0;
    text-transform: uppercase;
}

/* --- 3. Neobrutalist Components --- */

/* Navbar Centering Logic */
.custom-nav {
/*    position: fixed;*/
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1100px;
    background: var(--bg-soft) !important;
    border: 3px solid white;
    box-shadow: 8px 8px 0px var(--primary);
    z-index: 1000;
    transition: all 0.3s ease;
}

/* --- Nav Specifics --- */

.nav-logo {
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: 2px;
    background: none;
    border: none;
    color: white !important;
}

.nav-link-brutal {
    background: transparent;
    border: 2px solid transparent;
    color: white !important;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.85rem;
    padding: 8px 16px !important;
    transition: all 0.2s ease;
    cursor: pointer;
}

    /* Hover & Active States */
    .nav-link-brutal:hover,
    .nav-link-brutal.active {
        background: var(--primary) !important;
        border: 2px solid white !important;
        box-shadow: 4px 4px 0px white;
        transform: translate(-2px, -2px);
        color: white !important;
    }

/* Toggler Custom Styling */
.brutal-toggler {
    border: 2px solid white !important;
    border-radius: 0 !important;
    padding: 5px;
    box-shadow: 3px 3px 0px var(--primary);
}

    .brutal-toggler:focus {
        box-shadow: 3px 3px 0px var(--primary);
    }

/* Mobile Menu Background Fix */
@media (max-width: 767px) {
/*    .navbar-collapse.show {
        background: var(--bg-soft);
        margin-top: 15px;
        padding: 15px;
        border-top: 2px solid rgba(255,255,255,0.1);
    }*/

    .navbar-nav .nav-link-brutal {
        display: block;
        width: 100%;
        text-align: center;
        margin-bottom: 5px;
    }

        .navbar-nav .nav-link-brutal.active {
            background: var(--primary) !important;
            border: 2px solid white !important;
            box-shadow: 4px 4px 0px white;
            transform: translate(-2px, -2px);
            color: white !important;
        }
}

/* The Brutal Button */
.btn-primary-custom {
    background: var(--primary);
    color: white;
    border: 3px solid white;
    padding: 12px 30px;
    font-weight: 900;
    text-transform: uppercase;
    box-shadow: 4px 4px 0px white;
    transition: all 0.1s ease;
    cursor: pointer;
}

    .btn-primary-custom:hover {
        transform: translate(2px, 2px);
        box-shadow: 2px 2px 0px white;
/*        background: var(--accent);*/
    }

    .btn-primary-custom:active {
        transform: translate(4px, 4px);
        box-shadow: 0px 0px 0px white;
    }

.btn-outline-custom {
    background: transparent;
    color: white;
    border: 3px solid white;
    padding: 12px 30px;
    font-weight: 900;
    text-transform: uppercase;
    box-shadow: 4px 4px 0px white;
    transition: all 0.1s ease;
    cursor: pointer;
}

    .btn-outline-custom:hover {
        transform: translate(2px, 2px);
        box-shadow: 2px 2px 0px white;
/*        background: rgba(255, 255, 255, 0.1);*/
    }

    .btn-outline-custom:active {
        transform: translate(4px, 4px);
        box-shadow: 0px 0px 0px white;
    }

/* Hero Elements */
.hero-tag {
    background: var(--primary);
    padding: 5px 15px;
    font-weight: 900;
    border: 2px solid white;
    box-shadow: 4px 4px 0px white;
    display: inline-block;
}

.hero-title {
    font-size: clamp(2.2rem, 6vw, 3.8rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    text-transform: uppercase;
    word-wrap: break-word;
}

.highlight {
    color: var(--primary);
    -webkit-text-stroke: 1px white; /* Optional: gives that brutalist pop */
}

/* Slide System: Stack items on top of each other */
.slide-container {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 280px;
}

.hero-slide {
    grid-area: 1 / 1;
    opacity: 0;
    transform: translateY(20px);
    animation: heroFade 10s infinite;
}

    .hero-slide:nth-child(1) {
        animation-delay: 0s;
    }

    .hero-slide:nth-child(2) {
        animation-delay: 5s;
    }

@keyframes heroFade {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    10% {
        opacity: 1;
        transform: translateY(0);
    }

    40% {
        opacity: 1;
        transform: translateY(0);
    }

    50% {
        opacity: 0;
        transform: translateY(-20px);
    }

    100% {
        opacity: 0;
        transform: translateY(-20px);
    }
}


.hero-sub-box {
    display: inline-block;
    padding: 10px 20px;
    background: white;
    color: black;
    font-weight: 900;
    border: 3px solid black;
    box-shadow: 6px 6px 0px var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Image container shadow fix */
.hero-image-box {
    position: relative;
    padding: 0 15px 15px 0;
}

.profile-img-brutal {
    width: 100%;
    max-width: 320px;
    height: auto;
    aspect-ratio: 366 / 449;
    border: 3px solid white;
    background-color: var(--bg-dark);
    box-shadow: 8px 8px 0px var(--primary);
    content-visibility: auto;
    transition: all 0.1s ease;
}

    .profile-img-brutal:hover {
        transform: translate(-4px, -4px);
        box-shadow: 12px 12px 0px var(--primary);
    }

/* Mobile Tweak: Ensure the container doesn't cut off shadows */
@media (max-width: 768px) {
    .hero-section {
        /* Adjust the value based on your navbar height */
        padding-top: 150px;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-image-container {
        /* Adds space specifically between navbar and image */
        margin-top: 20px;
        margin-bottom: 30px;
    }

    .slide-container {
        min-height: 260px;
    }

    .hero-actions {
        width: 100%;
    }
}

/* --- About Section Specifics --- */

/* The Brutalist Card */
.about-card-brutal {
    background: var(--bg-soft);
    border: 3px solid white;
    box-shadow: 12px 12px 0px var(--primary);
    position: relative;
    transition: transform 0.3s ease;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

    .about-card-brutal:hover {
        transform: translate(-4px, -4px);
        box-shadow: 16px 16px 0px var(--primary);
    }

/* Bio Text Styles */
.about-text-main {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    line-height: 1.6;
    color: white;
    text-align: center;
}

.about-text-sub {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-muted);
    text-align: center;
}

/* Highlight Text Logic */
.text-highlight {
    color: var(--primary);
    font-weight: 700;
    background: rgba(124, 77, 255, 0.1); /* Subtle background tint */
    padding: 0 4px;
}

.text-highlight-alt {
    color: white;
    font-weight: 700;
    border-bottom: 2px solid var(--primary);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .section-title-bg {
        letter-spacing: 5px;
    }

    .about-card-brutal {
        box-shadow: var(--shd-med); /* Slightly smaller shadow on mobile */
        margin: 0 10px;
    }
}

/* --- Skills Section Specifics --- */

.skill-card-brutal {
    background: var(--bg-soft);
    display: flex;
    align-items: center;
    padding: 1.5rem;
    border: 3px solid white;
    position: relative;
    /* This uses the color passed from Blazor! */
    box-shadow: 8px 8px 0px var(--skill-color);
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: default;
}

    .skill-card-brutal:hover {
        transform: translate(-4px, -4px);
        box-shadow: 12px 12px 0px var(--skill-color);
    }

.skill-icon-box {
    width: 55px;
    height: 55px;
    background: white; /* Clean white base for icons */
    border: 2px solid black;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.2rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.skill-icon {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

.skill-card-brutal:hover .skill-icon-box {
    transform: rotate(-8deg) scale(1.1);
}

.skill-info h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 900;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Mobile Adjustments */
@media (max-width: 576px) {
    .skill-card-brutal {
        padding: 1rem;
    }

    .skill-icon-box {
        width: 50px;
        height: 50px;
    }

    .skill-info h3 {
        font-size: 1rem;
    }
}

/* --- Projects Section Specifics --- */

.project-card-brutal {
    background: var(--bg-soft);
    border: 3px solid white;
    box-shadow: 8px 8px 0px var(--primary);
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden; /* Clips the image zoom */
}

    .project-card-brutal:hover {
        transform: translate(-5px, -5px);
        box-shadow: 12px 12px 0px var(--primary);
    }

.project-img-container {
    position: relative;
    height: 220px;
    width: 100%;
    overflow: hidden;
    border-bottom: 3px solid white;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(40%);
    transition: transform 0.5s ease;
}

.project-card-brutal:hover .project-img {
    filter: grayscale(0%);
    transform: scale(1.1);
}

/* The .NET Badge */
.project-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary);
    color: white;
    padding: 5px 12px;
    font-weight: 900;
    font-size: 0.75rem;
    border: 2px solid white;
    box-shadow: 3px 3px 0px black;
    text-transform: uppercase;
}

.project-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Pushes footer to the bottom */
}

.project-title {
    font-weight: 900;
    font-size: 1.4rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    color: white;
}

.project-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

.project-footer {
    margin-top: auto; /* Keeps buttons aligned at the bottom of the row */
}

/* Project Specific Button */
.btn-project-brutal {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    background: white;
    color: black !important;
    padding: 8px 16px;
    font-weight: 900;
    font-size: 0.85rem;
    border: 2px solid black;
    box-shadow: 4px 4px 0px var(--primary);
    transition: all 0.1s ease;
}

    .btn-project-brutal:hover {
        transform: translate(2px, 2px);
        box-shadow: 0px 0px 0px var(--primary);
        background: var(--primary);
        color: white !important;
    }

    .btn-project-brutal:active {
        transform: translate(4px, 4px);
/*        box-shadow: 0px 0px 0px white;*/
    }

/* Mobile Tweak */
@media (max-width: 768px) {
    .project-img-container {
        height: 200px;
    }
}

/* --- Contact Section Specifics --- */

.contact-horizontal-link {
    text-decoration: none !important;
    display: block;
    margin-bottom: 1rem; /* Spacing between cards on mobile */
    will-change: transform;
}

.contact-card-horizontal {
    background: var(--bg-soft);
    border: 3px solid white;
    padding: 1.2rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    box-shadow: 8px 8px 0px var(--primary);
    transition: transform 0.1s ease-out, box-shadow 0.1s ease-out, background 0.1s ease-out;
    height: 90px;
}

.icon-side {
    font-size: 2rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    transition: color 0.1s ease;
}

.info-side {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

    .info-side .label {
        color: white;
        font-weight: 900;
        font-size: 0.75rem;
        letter-spacing: 1.5px;
        text-transform: uppercase;
        opacity: 0.6;
    }

    .info-side .value {
        color: white;
        font-size: 1rem;
        font-weight: 600;
    }

.arrow-side {
    color: white;
    opacity: 0;
    font-size: 1.4rem;
    font-weight: 800;
    transform: translate(-5px, 5px);
    transition: all 0.1s ease;
}

/* --- The Hover State --- */

.contact-horizontal-link:hover .contact-card-horizontal {
    background: white !important;
    /* Moving 4px down/right "sinks" it halfway into the 8px shadow */
    transform: translate(6px, 6px);
    box-shadow: 2px 2px 0px white;
    border-color: black;
}

/* Force everything to black on hover */
.contact-horizontal-link:hover .icon-side,
.contact-horizontal-link:hover .info-side .label,
.contact-horizontal-link:hover .info-side .value,
.contact-horizontal-link:hover .arrow-side {
    color: black !important;
    opacity: 1;
}

.contact-horizontal-link:hover .arrow-side {
    transform: translate(0, 0);
}

/* Mobile Tweak */
@media (max-width: 768px) {
    .contact-card-horizontal {
        height: 80px;
    }

        .contact-card-horizontal .icon-side {
            width: 60px;
            font-size: 1.4rem;
        }

        .contact-card-horizontal .info-side .value {
            font-size: 0.9rem;
        }
}

/* --- Minimalist Footer --- */

.footer-brutal {
    background: #000;
    padding: 40px 0;
    border-top: 5px solid white; /* The "heavy" signature look */
    margin-top: 60px; /* Space from the last section */
}

    .footer-brutal p {
        margin: 0;
        font-size: 0.95rem;
        font-weight: 500;
        color: var(--text-muted);
        letter-spacing: 0.5px;
    }

        /* Make your name stand out */
        .footer-brutal p span {
            color: var(--primary);
            font-weight: 800;
            text-transform: uppercase;
        }

/* --- 4. Mobile Responsiveness Fixes --- */
@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
        text-align: center;
    }

    /* Ensure rows don't add negative margins that cause offset */
    .row {
        margin-left: 0;
        margin-right: 0;
    }

    .custom-nav {
        width: 95%;
        top: 10px;
    }
}

/* --- Scroll Reveal --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
    will-change: transform, opacity;
}

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


#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+P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iA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.loading-progress {
    position: absolute;
    display: block;
    width: 8rem;
    height: 8rem;
    inset: 20vh 0 auto 0;
    margin: 0 auto 0 auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }