﻿:root {
    --left-rail: 270px;
    --right-gap: 40px; 
}

html {
    position: relative;
    min-height: 100%;
    font-size: 14px;
    color: #fff8f0 !important;
    font-family: Roboto, -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}
.btn-outline-terra {
    border: 1px solid #E2725B;
    color: #fff; 
    background: transparent;
}

    .btn-outline-terra:hover {
        background: #E2725B;
        color: #212529; 
    }
.btn-terra {
    background-color: #E2725B;
    color: #fff !important;
    font-weight: 600;
    border-radius: .5rem;
    padding: .75rem 1.5rem;
    transition: all .2s ease-in-out;
}

    .btn-terra:hover {
        background-color: #cc5f48;
        transform: translateY(-2px);
    }

body {
    margin-bottom: 60px;
    margin-right: var(--right-gap);
    background-image: url('/images/background.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff8f0;
    font-family: Roboto, -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    line-height: 1.6;
    background-color: rgba(0, 0, 0, 0.7);
    background-blend-mode: darken;
}

.right-rail {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 40px;
    background: #2e2525;
    border-left: 1px solid #2f3338;
    z-index: 2040; 
    overflow: hidden;
    padding: 0 8px;
}

.vnav {
    position: absolute;
    top: 40px;
    left: 28px;
    transform: rotate(90deg);
    transform-origin: left top;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
    margin: 0;
    padding: 0;
}

.left-rail {
    background: #2e2525;
    border-right: 1px solid #463a3a;
    color: #fff8f0;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--left-rail);
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 2040;
}

    .left-rail .nav-link,
    .left-rail a {
        color: #fff;
        text-decoration: none;
        transition: color .2s ease, background-color .2s ease;
    }

        .left-rail .nav-link:hover,
        .left-rail .nav-link:focus,
        .left-rail .nav-link.active {
            color: #e07a5f;
            background-color: rgba(255,255,255,0.06);
            border-radius: .375rem;
        }

    .left-rail .bi {
        color: currentColor;
    }

    .left-rail .text-white,
    .left-rail span,
    .left-rail .nav-item span {
        color: #fff;
    }

    .left-rail hr {
        border-color: #463a3a;
        opacity: 1;
    }

    .left-rail .dropdown-menu-dark {
        --bs-dropdown-bg: #2b2222;
        --bs-dropdown-link-hover-bg: #3a2f2f;
        --bs-dropdown-link-color: #eaeaea;
        --bs-dropdown-link-hover-color: #e07a5f;
    }

    .left-rail::-webkit-scrollbar {
        width: 10px;
    }

    .left-rail::-webkit-scrollbar-track {
        background: #fff8f0;
    }

    .left-rail::-webkit-scrollbar-thumb {
        background-color: #E2725B;
        border-radius: 5px;
        border: 2px solid #2a2f3a;
    }

        .left-rail::-webkit-scrollbar-thumb:hover {
            background-color: #cc5f48;
        }

.left-rail {
    scrollbar-width: thin;
    scrollbar-color: #E2725B #2a2f3a;
}

.vlink {
    display: inline-block;
    white-space: nowrap;
    text-decoration: none;
    color: #fff;
    font-family: Roboto, -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 500;
    letter-spacing: .01em;
    line-height: 1;
    padding: 0;
    margin: 0;
    transition: color 0.2s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.vlink {
    color: #fff8f0;
}

    .vlink:hover {
        color: #e07a5f;
    }

    .vlink.active {
        color: #e07a5f !important;
    }

.right-rail .vnav .vlink {
    color: #fff8f0;
}

    .right-rail .vnav .vlink:hover,
    .right-rail .vnav .vlink.active {
        color: #e07a5f;
    }

.face-img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    object-position: 50% 30%;
    border: 4px solid #2a2f3a;
    box-shadow: 0 2px 12px rgba(0,0,0,.35);
}

.profile-name {
    color: #e07a5f !important;
    font-weight: 700;
}

.profile-role {
    color: #fff8f0;
    line-height: 1.2;
}

.info-row {
    font-size: .78rem;
}

    .info-row .label {
        color: #fff8f0;
    }

    .info-row .value {
        color: #fff8f0;
    }

.section-title {
    color: #fff8f0;
    font-size: .85rem;
    font-weight: 700;
    margin-top: 1.45rem;
    margin-bottom: .5rem;
    position: relative;
    padding-bottom: .5rem;
}

    .section-title::after {
        content: "";
        display: block;
        height: 3px;
        width: 100%;
        background: #3a2f2f;
        margin-top: .5rem;
    }

.skill .bar {
    position: relative;
    height: 5px;
    background: #3a3f4a;
    border-radius: 999px;
    overflow: hidden;
}

    .skill .bar > span {
        display: block;
        height: 100%;
        width: 0%; /* Start */
        background: #E2725B;
        transition: width 1.2s ease-out;
    }

    .skill .bar .pct {
        position: absolute;
        right: 6px;
        top: -18px;
        font-size: .7rem;
        color: #cfc8bf;
        opacity: .85;
    }

@media (prefers-reduced-motion: reduce) {
    .skill .bar > span {
        transition: none;
    }
}


.badge-level {
    background: #3a3f4a;
    color: #fff8f0;
    border-radius: .35rem;
    font-size: .70rem;
    padding: .1rem .5rem;
}

.text-terra {
    color: #E2725B !important;
}

.hero {
    position: relative;
    width: 100%;
    min-height: 340px;
    border: 8px solid rgba(0,0,0,.25);
    border-radius: 8px;
    margin: clamp(8px, 2vw, 24px);
    margin-top: 30px !important;
    margin-left: 50px;
    margin-right: 70px;
    overflow: visible;
    isolation: isolate;
    box-sizing: border-box;
    transition: margin-left .3s ease;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background: url('/images/background.jpg') center/cover no-repeat;
    transform: scale(1.02);
    border-radius: inherit;
    filter: saturate(.9) contrast(.95);
    z-index: -2;
}

.hero__overlay {
    position: absolute;
    inset: -20px;
    background: linear-gradient(180deg, rgba(20,22,28,.78) 0%, rgba(20,22,28,.65) 50%, rgba(20,22,28,.4) 85%, rgba(20,22,28,0) 100%);
    z-index: -1;
    border-radius: 12px;
}

.hero__inner {
    position: relative;
    padding: clamp(16px, 5vw, 48px);
    max-width: 900px;
}

.hero__title {
    color: #fff;
    font-weight: 800;
    line-height: 1.1;
    font-size: clamp(23px, 6vw, 41px);
    margin: 0 0 12px;
    text-shadow: 0 3px 18px rgba(0,0,0,.55);
    word-break: normal; 
    overflow-wrap: anywhere; 
    hyphens: auto;
}

@supports (text-wrap: balance) {
    .hero__title {
        text-wrap: balance;
    }
}

.hero__tag {
    margin: 0;
    font-size: clamp(14px, 2.5vw, 20px);
    color: #E6E2DC;
    font-weight: 600;
}

    .hero__tag .tag {
        color: #E2725B;
        font-weight: 800;
    }

.hero__person {
    position: absolute;
    right: clamp(-12px, -3vw, -40px);
    bottom: clamp(-8px, -2vw, -24px);
    height: clamp(200px, 40vw, 400px);
    object-fit: contain;
    z-index: 5;
    filter: drop-shadow(0 12px 28px rgba(0,0,0,.45));
    pointer-events: none;
}

.my-5 {
    margin-top: 0 !important;
    margin-bottom: 1rem !important;
}

.btn-transparent {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: .75rem .2rem;
}

.sidebar-toggle {
    z-index: 3000 !important;
    background-color: transparent;
    border-radius: 6px;
    padding: 6px 10px;
    transition: background-color 0.3s ease, opacity 0.3s ease;
}

    .sidebar-toggle.scrolled {
        background-color: rgba(33, 37, 41, 0.75) !important;
        backdrop-filter: blur(4px);
    }

    .sidebar-toggle.hidden {
        opacity: 0;
        pointer-events: none;
    }

.container.content-wrap {
    max-width: 100% !important;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
}

@media (min-width: 768px) {
    .content-wrap {
        margin-left: var(--left-rail);
    }

    .container.content-wrap {
        max-width: none;
        width: calc(100vw - var(--left-rail) - var(--right-gap));
        margin-left: var(--left-rail);
        margin-right: var(--right-gap);
    }
}
.skill .bar > span {
    display: block;
    height: 5px;
    width: 0%;
    background: #E2725B;
    transition: width 1.4s ease-out;
}

    .skill .bar > span.animate {
        width: var(--target);
    }

@media (max-width: 767.98px) {
    .content-wrap {
        margin-left: 0 !important;
    }




    .left-rail {
        display: none;
    }

    .hero {
        margin: clamp(8px, 3vw, 16px);
        border-width: 7px;
        margin-top: 85px;
        margin-left: var(--outer-gap, 8px);
        
    }

    .hero__person {
        display: none !important;
    }

    .hero__overlay {
        position: absolute;
        top: -4px;
        left: -4px;
        right: -5px;
        bottom: -5px;
        border-radius: 0;
        background: linear-gradient(180deg, rgba(20,22,28,.8) 0%, rgba(20,22,28,.6) 50%, rgba(20,22,28,.8) 100%);
        z-index: -1;
    }
}

@media (min-width: 576px) {
    .hero {
        border-width: 10px;
    }
}

@media (min-width: 992px) {
    .hero {
        border-width: 12px;
    }
}

.fixed-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 900;
    background: #212529;
    border-top: 0px solid #3a2f2f;
    color: #fff8f0;
    padding: .75rem;
    font-size: .85rem;
    text-align: center;
}

.content-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0; 
}

@media (max-width: 767px) {
    .content-footer {
        flex-direction: column;
        text-align: center;
    }
}

h1, h2, h3, h4, h5, h6 {
    color: #fff8f0 !important;
    font-weight: 700;
}

a {
    color: #fff8f0;
    text-decoration: none;
    transition: color .2s ease;
}

    a:hover {
        color: #cc5f48;
    }

.card {
    background: #212529;
    border: 3px solid #3a2f2f;
    color: #fff8f0;
    border-radius: .5rem;
    transition: transform .2s ease, box-shadow .2s ease;
}
.card1 {
    color: #E2725B;
}
    .card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 24px rgba(0,0,0,.5);
    }

.card-title {
    color: #E2725B;
}

.card .text-muted {
    color: #d9d2cc !important;
    opacity: .8;
}

.btn-primary {
    background-color: #E2725B;
    border-color: #E2725B;
}

    .btn-primary:hover {
        background-color: #cc5f48;
        border-color: #cc5f48;
    }

.btn-outline-light {
    border-color: #fff8f0;
    color: #fff8f0;
}

    .btn-outline-light:hover {
        background: #fff8f0;
        color: #2b2222;
    }

section {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

    section .lead {
        color: #E6E2DC;
    }

.project-card .card-title {
    color: #E2725B;
    font-weight: 700;
}

.project-card .btn-outline-light {
    border-color: #eaeaea;
    color: #eaeaea;
}

    .project-card .btn-outline-light:hover {
        background: #eaeaea;
        color: #2b2222;
    }

.footer-line {
    display: inline-block;
    line-height: 1.2;
    word-break: keep-all;
    hyphens: none;
}

.nowrap {
    white-space: nowrap;
}


.skills-chips .chips-title {
    color: #fff8f0;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: .5rem;
}

.skills-chips .chips {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem .6rem;
}

.dev-symbol {
    font-size: clamp(4rem, 10vw, 7rem);
    font-weight: 800;
    color: #E2725B;
    background: #212529;
    border: 2px solid #3a2f2f;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    box-shadow: 0 6px 16px rgba(0,0,0,.5);
    transition: transform .25s ease, box-shadow .25s ease;
}

    .dev-symbol:hover {
        transform: translateY(-4px) scale(1.05);
        box-shadow: 0 12px 28px rgba(0,0,0,.55);
    }

.chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .4rem .7rem;
    border-radius: 999px;
    background: #212529;
    border: 1px solid #3a2f2f;
    color: #fff8f0;
    font-size: .9rem;
    line-height: 1;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
    user-select: none;
    white-space: nowrap;
}

    .chip:hover {
        transform: translateY(-2px);
        border-color: #E2725B;
        box-shadow: 0 6px 18px rgba(0,0,0,.35); 
    }


.cursor {
    display: inline-block;
    margin-left: 4px;
    animation: blink 1s steps(2,start) infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}


.offcanvas {
    transition: transform .35s ease-in-out;
}

#mobileSidebar.offcanvas-start {
    width: 220px;
    max-width: 80vw;
}
