@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;600;700&display=swap');

@property --primary-color {
    syntax: "<color>";
    inherits: false;
    initial-value: rgba(249, 115, 22, 0.25);
}

@property --primary-color-hover {
    syntax: "<color>";
    inherits: false;
    initial-value: rgba(249, 115, 22, 0.5);
}

@property --primary-color-as-background {
    syntax: "<color>";
    inherits: false;
    initial-value: rgba(249, 115, 22, 0.1);
}

@property --section-border-color {
    syntax: "<color>";
    inherits: false;
    initial-value: rgba(249, 115, 22, 0.57);
}

@property --section-border-left-color {
    syntax: "<color>";
    inherits: false;
    initial-value: #f97316;
}

@property --section-background-color {
    syntax: "<color>";
    inherits: false;
    initial-value: rgba(13, 17, 23, 0.55);
}

@property --gradient-color-a {
    syntax: "<color>";
    inherits: false;
    initial-value: #3c407d;
}

@property --gradient-color-b {
    syntax: "<color>";
    inherits: false;
    initial-value: #635aa3;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'JetBrains Mono', monospace;
    background: #0d1117;
    color: #c9d1d9;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.bg-gradient-1, .bg-gradient-2 {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    animation: float 15s infinite ease-in-out;
}

/* Just a slight, blurred, circular gradient for left and right of bg. */
.bg-gradient-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--gradient-color-a) 0%, transparent 70%);
    top: -20%;
    left: -15%;
    animation-delay: 0s;
}

.bg-gradient-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--gradient-color-b) 0%, transparent 70%);
    bottom: -10%;
    right: -10%;
    animation-delay: -12s;
}

/* where the gradient moves back and forth */
@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, -40px) scale(1.15); }
}

/* using 2 linear gradients to simulate a grid in the bg. */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background-image: */
        /*linear-gradient(rgba(249, 115, 22, 0.05) 1px, transparent 1px),*/
        /*linear-gradient(90deg, rgba(249, 115, 22, 0.05) 1px, transparent 1px);*/
    background-size: 40px 40px;
    z-index: 0;
    pointer-events: none;
}

.binary-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    height: 50vh;
    overflow: hidden;
    
    /* i forgort that this was for all the chars within the sequence, so i'll mask instead of directly
       changing opacity on the keyframe */
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 80%, rgba(0,0,0,0) 100%);
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 80%, rgba(0,0,0,0) 100%);
    mask-repeat: no-repeat;
    mask-size: 100% 100%;
}

.binary-column {
    position: absolute;
    top: -100%;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    color: rgba(155, 155, 255, 0.1);
    white-space: nowrap;
    animation: fall linear infinite;
    line-height: 1.4;
}

/* Falling animation */
@keyframes fall {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(300%);
    }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

.hero-header {
    padding: 10px 40px;
    margin-bottom: 50px;
    background: 
        linear-gradient(90deg, rgba(243, 243, 243, 0.02) 1px, transparent 1px), linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px), rgba(27, 28, 37, 0.95);
    background-size: 20px 20px, 20px 20px, 100% 100%, 100% 100%, 100% 100%;
    border-radius: 4px;
    /*border: 2px solid #78a5d5;*/
    position: relative;
    overflow: hidden;
    box-shadow: 1px 5px 2px rgba(0, 0, 0, 0.3), inset 0px 4px 0px rgba(255, 255, 255, 1), 0 0px 34px rgba(255, 255, 255, 0.02);
    animation: gridline 15s linear infinite;
}

@keyframes gridline {
    0% { background-position: 0% 0%; }
    100% { background-position: 0% 100%; }
}

/* hero has a moving line visual just at the top */
.hero-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: -100%;
    width: 15%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.47), rgba(255, 255, 255, 0.47), transparent);
    animation: scanline 8s linear infinite;
}

@keyframes scanline {
    0% { left: -100%; }
    100% { left: 100%; }
}

.hero-content {
    text-align: center;
}

.hero-title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 700;
    color: #e6edf3;
    margin-top: 20px;
    margin-bottom: 5px;
    /*text-transform: uppercase;*/
    letter-spacing: 1px;
    text-shadow: 0 4px 1px rgba(15, 15, 15, 0.8);
}

.hero-subtitle {
    font-size: clamp(12px, 1.5vw, 13px);
    color: #939393;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-description {
    font-size: 13px;
    color: #8b949e;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

.nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 50px;
}

body:not(.js-loaded) .nav-block {
    visibility: hidden;
}

.nav-block {
    background: rgba(100, 43, 5, 0.24);
    border: 1px solid var(--primary-color);
    padding: 18px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 4px;
    box-shadow:1px 5px 2px rgba(0, 0, 0, 0.3), inset 0px 4px 0px rgba(190, 84, 33, 0.96), 0 0px 34px rgba(255, 255, 255, 0.02);
}

.nav-block:hover {
    border-color: var(--primary-color-hover);
    background: var(--primary-color-as-background);
    transform: translateY(-2px);
    box-shadow:0px 0px 11px rgba(246, 107, 21, 0.62), inset 0px 4px 0px rgba(255, 128, 0, 0.96), 0 0px 34px rgba(255, 255, 255, 0.02);
}

.nav-block.active {
    background: var(--primary-color-as-background);
    border-color: #f97316;
    box-shadow:0px 0px 25px rgba(246, 107, 21, 0.62), inset 0px 4px 0px rgba(255, 128, 0, 0.96), 0 0px 34px rgba(255, 255, 255, 0.02);
}

.nav-label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #ffffff;
}

body:not(.js-loaded) .section {
    display: none;
    opacity: 0;
}

.main-section {
    transition: opacity 0.3s ease-in-out;
}

.section {
    display: none;
    /*background: var(--section-background-color);*/
    background: 
        linear-gradient(90deg, rgba(55, 55, 55, 0.11) 1px, transparent 1px), linear-gradient(rgba(55, 55, 55, 0.08) 1px, transparent 1px), rgba(27, 28, 37, 0.95);
    background-size: 20px 20px, 20px 20px, 100% 100%, 100% 100%, 100% 100%;
    /*border: 0.4px solid var(--section-border-color);*/
    border-left: 3px solid var(--section-border-left-color);
    padding: 45px 45px 15px 45px;
    margin-bottom: 40px;
    position: relative;
    box-shadow: 0 6px 3px rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.section.active {
    display: block;
    opacity: 1;
}

.section-main {
  flex: 2;
  font-size: 16px;
  line-height: 1.8;
  color: #c9d1d9;
}

.sidebar-title {
  font-size: 18px;
  display: inline-block;
  margin-bottom: 15px;
  color: #ffffff;
  font-family: 'JetBrains Mono', monospace;
}

.section-content {
  display: flex;
  gap: 30px;
}

.section-title {
    color: #ffffff;
    font-size: 28px;
    margin-bottom: 30px;
    font-weight: 700;
    position: relative;
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    text-shadow: 0 0 20px rgba(249, 115, 22, 0.2);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #ff5d0c, #ff7800, transparent)
}


.section-sidebar {
  flex: 1;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  padding-left: 20px;
  color: #c9d1d9;
  font-size: 14px;
}

.experience-timeline {
    position: relative;
    padding-left: 40px;
    border-left: 2px solid rgba(249, 115, 22, 0.25);
}

.experience-item {
    margin-top: 30px;
    position: relative;
}

.experience-item::before {
    content: '';
    position: absolute;
    left: -48px;
    top: 0;
    width: 10px;
    height: 10px;
    background: #f97316;
    border-radius: 50%;
    border: 2px solid #0d1117;
    box-shadow: 0 0 12px rgba(249, 115, 22, 0.5);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.experience-header-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.experience-role {
    font-size: 20px;
    color: #e6edf3;
    font-weight: 700;
    margin-top: -5px;
}

.experience-company {
    color: #69baff;
    font-size: 16px;
    font-weight: 600;
}

.experience-period {
    color: #f97316;
    font-size: 12px;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 1px;
}

.experience-description {
    color: #ffffff;
    line-height: 1.7;
    margin-bottom: 15px;
    font-size: 14px;
}

.experience-highlights {
    list-style: none;
    letter-spacing: 0.06px;
    padding: 0;
}

.experience-highlights li {
    color: #ffffff;
    padding-left: 25px;
    position: relative;
    margin-bottom: px;
    line-height: 1.6;
    font-size: 13px;
}

.experience-highlights li::before {
    content: '› ';
    position: absolute;
    left: 0;
    margin-top: -4.5px;
    color: #f97316;
    font-size: 18px;
    font-weight: 700;
}

.experience-highlights.green li::before {
    content: '› ';
    position: absolute;
    left: 0;
    margin-top: -4.5px;
    color: #36ff19;
    font-size: 18px;
    font-weight: 700;
}

.experience-highlights.green li {
    margin-bottom: 10px;
}

.experience-highlights li::after {
    content: "";
    display: block;
    border-top: 1.2px solid #ffffff15;
}


.experience-logo {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid rgba(249, 115, 22, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.logo-playful:hover {
    border-color: rgba(249, 115, 22, 0.6);
    box-shadow: 0 6px 16px rgba(249, 115, 22, 0.4);
    background: rgba(249, 115, 22, 0.15);
    animation: squashStretch 0.6s ease;
}

@keyframes squashStretch {
    0% {
        transform: scale(1, 1);
    }
    15% {
        transform: scale(1.15, 0.85);
    }
    30% {
        transform: scale(0.9, 1.1);
    }
    45% {
        transform: scale(1.05, 0.95);
    }
    60% {
        transform: scale(0.98, 1.02);
    }
    75% {
        transform: scale(1.01, 0.99);
    }
    100% {
        transform: scale(1, 1);
    }
}

.experience-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.experience-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.logo-regular:hover {
    border-color: rgba(249, 115, 22, 0.5);
    box-shadow: 0 8px 24px rgba(249, 115, 22, 0.25), 0 4px 8px rgba(0, 0, 0, 0.3);
    background: rgba(249, 115, 22, 0.12);
    transform: translateY(-4px);
}

.logo-playful:hover.ttr {
    border-color: rgb(241, 96, 84);
    box-shadow: 0 2px 24px rgb(241, 96, 84), 0 4px 8px rgba(0, 0, 0, 0.3);
}

.logo-regular:hover.tamusa {
    border-color: rgb(255, 255, 255);
    box-shadow: 0 2px 24px rgba(255, 255, 255, 0.4), 0 4px 8px rgba(0, 0, 0, 0.3);
}

.logo-regular:hover.dg {
    border-color: rgb(244, 232, 15);
    box-shadow: 0 2px 24px rgba(244, 232, 15, 0.4), 0 4px 8px rgba(0, 0, 0, 0.3);
}

.logo-regular:hover img {
    transform: scale(1.08);
    filter: brightness(1.1);
}

.logo-regular {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}


.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.project-card {
    background: rgb(23, 27, 39);
    /*border: 2px solid rgba(106, 111, 197, 0.45);*/
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    box-shadow: 1px 7px 2px rgba(0, 0, 0, 0.5), 0 -1px 0px rgba(255, 255, 255, 0);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    /*background: rgba(255, 252, 92, 0.96);*/
}

.project-card:hover {
    transform: translateY(-6px);
    transform: scale(1.08);
    box-shadow: 0px 15px 15px rgba(0, 0, 0, 0.5), 0 -1px 0px rgba(255, 255, 255, 0);
}

.project-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.08), rgba(14, 165, 233, 0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    border-bottom: 4px solid rgba(39, 41, 62, 0.21);
}

.project-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-title {
    color: #e6edf3;
    font-size: 17px;
    letter-spacing: -0.6px;
    margin-bottom: 15px;
    font-weight: 700;
}

.project-meta {
    display: flex;
    gap: 8px;
    margin-bottom: -5px;
    flex-wrap: wrap;
}

.tech-tag {
    background: rgba(249, 115, 22, 0.12);
    color: #fb923c;
    padding: 4px 10px;
    font-weight: 600;
    border-radius: 3px;
    font-size: 10px;
    border: 1px solid rgba(249, 115, 22, 0.25);
    letter-spacing: 0.5px;
}

.tech-tag.company {
    background: #22943f69;
    border-color: rgba(156, 247, 24, 0.25);
    color: #fff;
}

a {
    color: #fff;
}

.project-desc {
    color: #fff;
    line-height: 1.7;
    margin-top: 15px;
    margin-bottom: -10px;
}
.project-desc li {
    font-size: 12px;
    letter-spacing: -0.4px;
}

.project-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.project-metrics {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
}

.metric {
    color: #0ea5e9;
    font-family: 'JetBrains Mono', monospace;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.skill-category {
    padding: 30px;
    border-radius: 4px;
    transition: all 0.3s ease;
    background: rgb(23, 27, 39);
    display: flex;
    flex-direction: column;
    box-shadow: 1px 7px 2px rgba(0, 0, 0, 0.5), inset 0px 4px 0px rgba(80, 135, 255, 0.89), 0 -1px 0px rgba(255, 255, 255, 0);
}

.skill-category:hover {

    transform: translateY(-4px);
    transform: scale(1.05);
    box-shadow: 0px 15px 15px rgba(0, 0, 0, 0.5), inset 0px 4px 0px rgba(80, 135, 255, 0.89), 0 -1px 0px rgba(255, 255, 255, 0)
}

.skill-category h3 {
    color: #ffffff;
    margin-bottom: 25px;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    /*text-decoration: underline;*/
}

.skill-category h3::after {
    display: block;
    content: "";
    margin-top: 4px;
}

.tech-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.tech-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    padding-bottom: 12px;
}

.tech-item:last-child {
    border-bottom: none;
}

.tech-name {
    display: block;
    color: #8dff59;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
}

.tech-experience {
    color: #fff;
    font-size: 14px;
    line-height: 1.5;
}

p {
    font-size: 14px;
    color: #fff;
    line-height: 1.8;
    letter-spacing: -0.5px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.contact-block {
    background: rgba(25, 30, 37, 0.85);
    /*border: 1px solid rgba(249, 115, 22, 0.25);*/
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    border-radius: 4px;
    box-shadow: 1px 7px 2px rgba(0, 0, 0, 0.5), inset 0px 4px 0px rgba(255, 255, 255, 0.8), 0 -1px 0px rgba(255, 255, 255, 0)
}

.contact-block:hover {
    /*border-color: rgba(249, 115, 22, 0.5);*/
    /*background: rgba(20, 25, 32, 0.9);*/
    transform: translateY(-4px);
    transform: scale(1.05);
    box-shadow: 0px 15px 15px rgba(0, 0, 0, 0.5), inset 0px 4px 0px rgba(255, 255, 255, 0.9), 0 -1px 0px rgba(255, 255, 255, 0)
}

.contact-block:hover .contact-link {
    transition: all 0.3s ease;
    display: block;
    transform: scale(1.15) ;
}

.contact-icon {
    font-size: 32px;
    margin-bottom: 15px;
}

.contact-label {
    color: #65ff76;
    font-size: 15px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 600;
}

.contact-value {
    color: #c9d1d9;
    font-weight: 500;
    font-size: 13px;
}

.contact-link {
    color: #c9d1d9;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #f7ff05;
    text-decoration: underline;
}

/* MAX WIDTH OPTIONS */
@media (max-width: 768px) {
    .hero-header {
        padding: 40px 25px;
    }
    
    .section {
        padding: 30px 20px;
    }
    
    .nav-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .project-grid, .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .experience-timeline {
        padding-left: 25px;
    }
}
