/* styles */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap');

@font-face {
    font-family: 'Chillax'; 
    src: url('./Chillax-Variable.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --primary: #29292d;
    --secondary: #e8e8ee;
    --accent: #ff6f61;
    
    --muted-strong: #b8b8c0;  /* footer links, secondary nav */
    --muted: #7a7a82;         /* metadata, year labels */
    --muted-soft: #6a6a72;    /* copyright, fine print */
    
    --font1: 'Chillax', sans-serif;
    --font2: 'Plus Jakarta Sans', sans-serif;
}

html {
    scrollbar-gutter: stable;
}
body {
    background-color: var(--primary);
    color: var(--secondary);
}


/** Text **/
.text {
    font-size: 16px;
    color: var(--secondary);
    line-height: 150%;
    letter-spacing: .5%;
    font-family: var(--font2);
}
.link-text {
    font-size: 17px;
    color: var(--secondary);
    line-height: 150%;
    letter-spacing: .5%;
    text-decoration: none;
    font-family: var(--font2);
}
.header-sm {
    font-size: 23px;
    color: var(--secondary);
    line-height: 130%;
    letter-spacing: -.5%;
    font-family: var(--font1);
}
.header-md {
    font-size: 33px;
    color: var(--secondary);
    line-height: 130%;
    letter-spacing: -1.5%;
    font-family: var(--font1);
}
.header-lg {
    font-size: 47px;
    color: var(--secondary);
    line-height: 110%;
    letter-spacing: -2%;
    font-family: var(--font1);
}
.header-xl {
    font-size: 67px;
    color: var(--secondary);
    line-height: 110%;
    letter-spacing: -2%;
    font-family: var(--font1);
}
p > span, h1 > span {
    color: var(--accent) !important;
    text-shadow: 0 0 8px #e4574e;
}

/** Animations **/

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
.fade-in {
    opacity: 0;
    animation: fadeIn .8s ease-in-out forwards;
}

@keyframes shiftGradient {
    0% {
        background: linear-gradient(90deg, #FF6F61 50%, #E4574E 50%);
    }
    100% {
        background: linear-gradient(90deg, #FF6F61 25%, #E4574E 75%);
    }
}

.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 2s ease-out, transform 1s ease-out;
    will-change: opacity, transform;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
}

/** Navbar Styles **/

.navbar-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    position: fixed;
    top: 0;
    background-color: var(--primary);
    z-index: 5;
    transition: border .3s ease-in-out, box-shadow .3s ease-in-out;
    border-bottom: none;
    box-shadow: none;
    will-change: border, box-shadow;
    background: rgba(41, 41, 45, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.navbar-container::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background-color: #3a3a40;
    box-shadow: none;
    opacity: 0; 
    transition: opacity 0.4s ease-in-out;
}
.navbar-container.scrolled::after,
.secondary-page-border::after {
    opacity: 1;
}
.underline {
    display: inline-block;
    position: relative;
    text-align: center;
    cursor: pointer;
}
.underline::after {
    content: "";
    display: block;
    width: 0%;
    height: 1px;
    background-color: var(--accent);
    position: absolute;
    left: 0;
    bottom: -5px;
    transform: scaleY(0.5);
    transform-origin: left;
    transition: width 0.4s ease-in-out;
}
.underline:hover::after,
.underline.active::after {
    width: 100%;
}
.active {
    color: var(--accent) !important;
}
.nav-link-text {
    font-size: 17px;
    color: var(--secondary);
    line-height: 150%;
    letter-spacing: .5%;
    text-decoration: none;
    font-family: var(--font2);
    transition: .3s ease;   
}
.nav-link-text:hover {
    color: var(--accent) !important;
}
.offcanvas-collapse {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 92vh;
    z-index: -1;
    background-color: var(--primary);
    margin-top: 68px;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
}
.offcanvas-collapse.open {
    transform: translateX(0);
    border-top: 1px solid #ff6f61;
    filter: drop-shadow(-4px 4px 6px #ff6f61);
}

/** Home Styles **/

.home-container {
    min-height: 100vh;
}
.home-label {
    font-size: 20px;
    font-family: var(--font1);
}
.home-label > span {
    color: var(--accent);
}
.home-title {
    font-size: 64px;
    font-family: var(--font1);
    font-weight: 400;
    letter-spacing: -1px;
}
.home-title > span {
    font-size: 36px;
    color: var(--accent);
    font-family: var(--font1);
    font-weight: 320;
    letter-spacing: -1px;
}

/** Buttons **/

.btn-main {
    height: 48px;
    padding: 8px 24px;
    border-radius: 2px;
    border: 1px solid var(--accent);
    text-decoration: none;
    display: grid;
    place-items: center;
    transition: background-position 0.4s ease, box-shadow 0.4s ease;
    background: linear-gradient(to right, #ff6f61, #E4574E);
    background-size: 200% auto;
    background-position: left center;
}
.btn-main:hover {
    background-position: right center;
    border: 1px solid var(--accent);
}
.btn-outline {
    height: 48px;
    padding: 8px 24px;
    border-radius: 2px;
    border: 1px solid var(--accent);
    text-decoration: none;
    display: grid;
    place-items: center;
    transition: .2s ease-in;
}
.btn-outline:hover {
    background-color: #3b3b42;
    border: 1px solid var(--accent);
}
.btn-link {
    text-decoration: none;
    font-family: var(--font2);
    color: var(--muted-strong);
    transition: .3s ease;
}
.btn-link:hover {
    color: var(--accent);
}

/** Skills **/
.skill-container {
    background-color: #1d1d20;
}
.skill-text {
    font-size: 20px;
    color: #46464f;
    font-weight: 400;
    font-family: var(--font1);
}

/** Projects **/

.line {
    width: calc(100% - 210px);
    border-top: 1px solid #4a4a52;
}
.project-card {
    background: linear-gradient(145deg, #29292d, #242426);
    border-radius: 6px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.3s ease;
    width: 100%;
}
.project-card::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.0) 60%
    );
    transform: rotate(25deg);
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.project-card:hover::before {
    opacity: 0.15;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(255, 111, 97, 0.4);
}
.project-card.no-hover {
    box-shadow: 0 4px 14px rgba(255, 111, 97, 0.4);   
}
.project-card.no-hover:hover::before {
    opacity: 1;   
}
.project-card.no-hover:hover {
    transform: translateY(0);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2) !important;
}
.projects-img {
    border-radius: 2px;
    border: 1px solid #ff6f614f;    
    transition: .2s ease-in-out;
}
.projects-img:hover {
    box-shadow: 0px 2px 8px 1px rgba(255, 111, 97, 0.2);
}
.project-badge {
    padding: 4px 8px;
    border-radius: 2px;
    background-color: var(--accent);
    width: fit-content;
    font-size: 12px;
    color: var(--primary);
    font-weight: 500;
}
.project-year {
    font-family: var(--font1);
    font-size: 14px;
    margin: 0;
    color: var(--muted);
}
.badge-text {
    font-size: 12px;
    margin: 0;
    color: var(--primary);
    font-family: var(--font2);
    font-weight: 500;
}

/** Home About Section **/

.about-accent-mark {
    width: 32px;
    height: 2px;
    background-color: var(--accent);
    border-radius: 2px;
}

.about-text {
    font-size: 18px;
    line-height: 170%;
    color: var(--secondary);
    font-family: var(--font2);
}

/** Contact **/

.contact-title {
    font-family: var(--font2) !important;
    color: var(--text);
    font-size: 3rem;
    text-align: left;
}
.thanks-title {
    font-family: var(--font2) !important;
    color: var(--text);
    font-size: 2rem;
    text-align: left;
}
.contact-subtitle {
    color: var(--text);
    font-weight: 200;
    font-size: 1.1rem;
    text-align: left;
}
.contact-disclaimer {
    font-size: .9rem;
    font-style: italic;
    color: var(--accent);
    font-weight: 200;
    text-align: left;
}
.contact-label {
    font-size: .8rem;
    color: var(--muted);
    font-style: italic;
    margin-bottom: 4px;
}
.contact-input {
    height: 54px;
    border-radius: 2px;
    background-color: #323237;
    border: 1px solid;
    border-color: #2f2f2f;
    color: var(--text);   
}
.contact-textarea {
    border-radius: 2px;
    background-color: #323237;
    border: 1px solid;
    border-color: #2f2f2f;
    color: var(--text);   
}
.contact-input:focus,
.contact-input:active,
.contact-textarea:focus,
.contact-textarea:active{
    box-shadow: none;
    outline: none;
    background-color: #323237;
    border: 1px solid var(--accent);
    color: var(--text) !important;
}
.contact-input::placeholder,
.contact-textarea::placeholder{
    color: #777;
    opacity: 1;
}
#captchaContainer img {
    height: 54px;
}
.contact-icon {
    font-size: 24px;
    color: var(--accent);
}
.contact-text {
    font-size: 18px;
    color: var(--secondary);
    font-family: var(--font2);
    text-decoration: none;
}
.contact-card {
    background: linear-gradient(145deg, #29292d, #242426);
    border-radius: 2px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.3s ease;
    width: 100%;
}
/** Footer **/
.footer-bg {
    background-color: #242426;
}
.footer-link {
    font-size: 17px;
    color: var(--muted-strong);
    line-height: 150%;
    letter-spacing: .5%;
    text-decoration: none;
    font-family: var(--font2);
    transition: .3s ease;
}
.footer-link:hover {
    color: var(--accent) !important;
}
.footer-copyright {
    font-size: 14px;
    color: var(--muted-soft);
    line-height: 150%;
    letter-spacing: .5%;
    font-family: var(--font2);
}