/*
 * Theme Name: KCPortfolio Theme
 * Theme URI: https://kirbychin.com/theme
 * Author: KC
 * Author URI: https://kirbychin.com
 * Description: The KCPortfolio custom theme
 * Version: 1.0.0
 * License: GNU General Public License v2 or later
 * License URI: <https://www.gnu.org/licenses/gpl-2.0.html>
 * Text Domain: kirbychin
 * Tags: custom-background
 * */


html {
    margin: 0;
    padding: 0;
    margin-top: 0 !important;
}

body {
    margin: 0;
    padding: 0;
    background-color:var(--bg-color);
    font-family: var(--subtitle-font-family), sans-serif;
}

@font-face {
  font-family: 'mononoki';
  src: url('fonts/mononoki-Regular.ttf') format('ttf');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Tomorrow';
  src: url('fonts/Tomorrow-Regular.woff2') format('woff2'),
       url('fonts/Tomorrow-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Tomorrow';
  src: url('fonts/Tomorrow-SemiBold.woff2') format('woff2'),
       url('fonts/Tomorrow-SemiBold.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Tomorrow';
  src: url('fonts/Tomorrow-Bold.woff2') format('woff2'),
       url('fonts/Tomorrow-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Cormorant Garamond';
  src: url('fonts/CormorantGaramond-Regular.woff2') format('woff2'),
       url('fonts/CormorantGaramond-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Cormorant Garamond';
  src: url('fonts/CormorantGaramond-SemiBold.woff2') format('woff2'),
       url('fonts/CormorantGaramond-SemiBold.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Cormorant Garamond';
  src: url('fonts/CormorantGaramond-Bold.woff2') format('woff2'),
       url('fonts/CormorantGaramond-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('fonts/JetBrainsMono-Regular.woff2') format('woff2'),
       url('fonts/JetBrainsMono-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('fonts/JetBrainsMono-SemiBold.woff2') format('woff2'),
       url('fonts/JetBrainsMono-SemiBold.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

#title {
    font-family: var(--title-font-family), sans-serif !important;
    font-size: 1.7em;
    color: var(--fg-color);
    letter-spacing: 8px;
}

.btn-outline {
    border-color: transparent;
    color: var(--fg-color);
    font-family: var(--title-font-family), sans-serif;
    font-size: var(--nav-font-size);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
    border-radius: 0;
}

.btn-solid {
    background: black;
}

.btn-solid:hover {
    background: black;
}

.btn-outline:active {
    border-color: transparent;
    color: var(--fg-color);
}

.btn-outline:hover {
    border-color:  var(--second-bg-color);
    border-left-color: transparent;
    border-right-color: transparent;
    border-top-color: transparent;
    color: var(--fg-color);
    font-family: var(--title-font-family), sans-serif;
    font-size: var(--nav-font-size);
}

.btn-outline-static {
    border-color: var(--second-fg-color);
}

.btn-outline-static:hover {
    border-color: var(--second-fg-color);
}

.btn-outline-special,
.btn-outline-special:hover {
    border-color:  var(--second-fg-color);
    color: var(--fg-color);
    font-family: var(--title-font-family), sans-serif;
    font-size: var(--nav-font-size);
    background-color: var(--second-bg-color);
    box-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}

.nav-square .btn {
    border-radius: 0;
    padding: 0.175rem 0.75rem;
}

.nav-square {
    gap: 25px;
}

#navbar-title {
    display: none;
}

.show {
    display: block !important;
}

#navbar.bg-dark-on-scroll, #navbar-static  {
    background-color: rgba(0, 0, 0, 1) !important;
    transition: background-color 0.3s ease;
}

.navbar-toggler {
    border: none;
    border-radius: 0;
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='black' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.splashscreen {
    margin-top: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.splash-image {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 400px;
    justify-content: top;
}
.content {
    text-align: left;
}
.big-font {
    font-size: 5rem;
    font-weight: 700;
    font-family: var(--code-font-family), sans-serif;
    color: var(--fg-color);
    letter-spacing: 10px;
}
.med-font {
    font-size: 2rem;
    font-weight: 500;
    font-family: var(--code-font-family), sans-serif;
    color: var(--fg-color);
}

#splash {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 50px;
    flex-direction: row;
}

#name {
    color: var(--second-fg-color);
}

#intro {
    margin-top: 50px;
    position: relative;
    padding: 0 50px;
}

::selection {
  color: var(--second-fg-color);
}

a, a::selection {
  color: var(--fg-color);
}

a:hover {
    color: var(--second-hover-fg-color);
}

.hero-bio {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 32px 64px;
    background:
        radial-gradient(1200px 600px at 80% 20%, rgba(189, 178, 255, 0.25), transparent 60%),
        radial-gradient(900px 700px at 10% 10%, rgba(155, 246, 255, 0.25), transparent 60%),
        linear-gradient(135deg, rgba(12, 15, 29, 0.78) 0%, rgba(22, 29, 59, 0.86) 60%, rgba(24, 34, 72, 0.9) 100%),
        url('alberta.webp') no-repeat center center;
    background-size: cover;
    overflow: hidden;
}

.hero-bio-inner {
    width: min(1200px, 100%);
    display: grid;
    grid-template-columns: minmax(240px, 340px) minmax(280px, 1fr);
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-photo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 24px;
    border-radius: 28px;
    background: rgba(12, 15, 29, 0.5);
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.35),
        0 0 22px rgba(155, 246, 255, 0.18);
    backdrop-filter: blur(10px);
}

.hero-social {
    display: flex;
    gap: 16px;
}

.hero-bio-copy {
    text-align: left;
    color: var(--fg-color);
    padding: 24px 32px;
    border-radius: 28px;
    background: rgba(12, 15, 29, 0.45);
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.35),
        0 0 22px rgba(189, 178, 255, 0.2);
    backdrop-filter: blur(10px);
}

.hero-title {
    font-family: var(--name-font-family), sans-serif;
    font-size: clamp(2.2rem, 5vw, 4rem);
    letter-spacing: 6px;
    margin-bottom: 16px;
    text-transform: uppercase;
    text-shadow:
        0 0 10px rgba(155, 246, 255, 0.5),
        0 0 24px rgba(189, 178, 255, 0.35);
}

.hero-subtitle {
    font-family: var(--subtitle-font-family), sans-serif;
    font-size: clamp(1.1rem, 2.5vw, 1.6rem);
    opacity: 0.85;
    margin-bottom: 24px;
}

.hero-description {
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 560px;
}

#future-obj-canvas {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

#future-obj-canvas canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
    filter: drop-shadow(0 0 26px rgba(155, 246, 255, 0.35));
    opacity: 0.7;
}

.hero-bio .social-img {
    filter: brightness(0) invert(1);
}

@media (max-width: 900px) {
    .hero-bio-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-bio-copy {
        text-align: center;
    }
}

.half-section {
    width: 50%;
    padding: 0 40px;
    position: relative;
}

.shift-right {
    transform: translateX(100%);
}

.title {
    font-family: var(--name-font-family), sans-serif;
    font-size: 1.7em;
    letter-spacing: 5px;
    text-transform: uppercase;
}

#future-obj-canvas {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

#future-obj-canvas canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
    filter: drop-shadow(0 0 18px rgba(155, 246, 255, 0.35));
}

.blog-title {
    font-family: var(--title-font-family), sans-serif;
    font-size: 1.7em;
    letter-spacing: 2px;
}

.blog-desc {
    font-family: var(--title-font-family), sans-serif;
    font-size: 1.3em;
}

.author-desc-title {
    font-family: var(--name-font-family), sans-serif;
    font-size: 1.1em;
    letter-spacing: 1px;
}

.subtitle {
    font-family: var(--name-font-family), sans-serif;
    font-size: 1.2em;
}

.name-sub {
    font-family: var(--title-font-family), sans-serif;
    font-weight: 400;
    font-size: 1.5em;
}

.content {
    font-size: 1.2em;
}

.name-fade {
    opacity: 0.7;
}


#profile-outline {
    width: 190px;
    height: 190px;
    border-radius: 50%;
    border: 1px solid #a7a7a79c;
    overflow: hidden;
    position: relative;
    z-index: 3;
}

#profile {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    image-rendering: auto;
    position: relative;
    z-index: 3;
}

.social-img {
    width: 40px;
    height: 40px;
    outline: none;
    border: none !important;
}

#icon-git {
     outline: none;
    border: none;
    background: url('icons/github-mark.svg') center/cover no-repeat;
}

#icon-sound {
 outline: none;
    border: none;
    background: url('icons/soundcloud-logo.png') center/cover no-repeat;
}

#icon-link {
    background: url('icons/linkedin-black.png') center/cover no-repeat;
}

.third-bg {
    min-height: 33vh;
    text-align: center;
    background-color: #F1F1F1;
}

.tech-img {
    width: auto;
    height: 100px;
}

.card-link {
    color: inherit;
    text-decoration: none;
    display: inline-block;
}

.card-link:focus,
.card-link:hover {
    text-decoration: none;
}

.hobby-img {
    width: 200px;
    object-fit: cover;
    height: 200px;
}

.white-bg {
    background-color: white;
}

.tech-desc {
    font-family: var(--title-font-family), sans-serif;
    margin: 0;
    padding: 0;
}

.hobby-desc {
    font-family: var(--title-font-family), sans-serif;
    margin: 0;
    padding: 0;
}

img:focus, img:active {
  outline: none;
  box-shadow: none;
}

.menu-toggle {
    display: none;
    padding: 30px;
    font-size: var(--nav-font-size);
}

.menu {
    list-style-type: none;
    margin: 0px;
    padding: 30px;
    font-size: 1em;
    display: flex;
    justify-content: space-around;
    gap: 30px;
}

#title-link {
    text-decoration: none;
}

#hidden-title {
    visibility: hidden;
    padding: 45px;
}

.menu-dropdown-content {
    display: none;
    position: fixed;
    margin-top: 70px;
    z-index: 1000;
    pointer-events: all; 
    font-family: var(--title-font-family), sans-serif;
}

.menu-item > a {
    text-decoration: none;
    border-color: transparent;
    color: var(--fg-color);
    font-family: var(--title-font-family), sans-serif;
    font-size: var(--nav-font-size);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
    border: 1px solid transparent;
}

.menu-item > a:active {
    border-color: transparent;
    color: var(--fg-color);
}

.menu-item > a:hover {
    border: 1px solid var(--second-bg-color);
    border-color:  var(--second-bg-color);
    border-left-color: transparent;
    border-right-color: transparent;
    border-top-color: transparent;
    color: var(--fg-color);
    font-family: var(--title-font-family), sans-serif;
    font-size: var(--nav-font-size);
}

#navbar-title {
    margin-left: 30px;
}

.menu-wrapper-main {
    position: fixed;
    width: 100%;
    color: white;
    z-index: 2;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
}

.menu-wrapper-container {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1001;
    width: 100%;
    background-color: rgb(241, 241, 241);
    margin: 0;
    padding: 10px 60px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.experience-line {
    height: 100%;
    width: 2px;
    background: black;
    position: absolute;
    left: 50%;
}

.experience-dot {
    position: absolute;
    left: -7px;
    top: 50%;
    width: 16px;
    height: 16px;
    background: var(--second-bg-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.experience-inner-dot {
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
}

.experience-dot-right {
    position: absolute;
    right: -8px;
    top: 50%;
    width: 16px;
    height: 16px;
    background: var(--second-bg-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.experience-title, .project-title {
    color: var(--second-bg-color);
}

.project-row {
    flex-direction: row;
}

.project-img {
    width: 225px;
    flex: 0 0 auto;
}

.blog-img {
    width: 200px;
    height: 200px;
}

.blog-category-nav {
    flex-direction: row;
}

.blog-post {
    text-decoration: none;
    outline: 1px solid transparent;
    color: black;
}

.blog-post:hover {
    cursor: pointer;
}

.blog-category, .blog-category::selection, .blog-category:active {
    border-color: transparent;
    color: black !important;
    font-family: var(--title-font-family), sans-serif;
    font-size: var(--category-font-size);
    text-shadow: 1px 1px 3px rgba(255,255,255,0.4);
    border-radius: 0;
    text-decoration: none;
}

.blog-category:hover {
    color: var(--second-fg-color);
    cursor: pointer;
}

.page-title-link, .page-title-link:active, .page-title-link::selection {
    color: black !important;
    text-decoration: none;
}

.page-title-link-highlight, .page-title-link-highlight:active, .page-title-link-highlight::selection {
    color: #0A66C2 !important;
    text-decoration: none;
}

.more-posts-img {
    min-width: 150px;
    min-height: 150px;
}

.more-posts-link, .more-posts-link:active, .more-posts-link::selection, .more-posts-link:hover {
    color: black !important!;
    text-decoration: none;
}

.more-posts-link:hover {
    cursor: pointer;
}

.more-posts-title {
    font-family: var(--title-font-family);
    font-size: 1.5em;
    color: black !important;
}


.more-posts-desc {
    font-family: var(--title-font-family);
    font-size: 1.1em;
    color: black !important;
}

@media (max-width: 845px) {
    .blog-category-nav {
        flex-direction: column;
    }
    
    .menu-toggle {
        display: block;
        cursor: pointer;
        padding-left: 5px;
        margin: 0;
        color: white;
    }

    .project-row {
        flex-direction: column;
    }

    .project-img, .blog-img {
        width: 100%;
        height: 250px;
    }

    .menu-dropdown-content > ul {
        position: relative;
        list-style-type: none;
        right: 0;
        display: block;
        flex-direction: column;
        justify-content: space-around;
        padding-left: 10px;
        margin: 10px 0px;
        padding-inline-start: 0px;
        z-index: 200;
    }

    .menu-content {
        display: none;
    }
}


@media (max-width: 750px) {
    .experience-line {
        left: 0;
    }
    .experience-dot-right {
        left: -7px;
        top: 50%;
    }
    .half-section {
        width: 100%;
    }
    .shift-right {
        transform: translateX(0);
    }


}
