:root {
    --text-color: #1a1c20;
    --link-color: #4a76ee;
    --background-color: #eeeff1;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    max-width: 1400px;
    margin: 0 auto;
}

a {
    color: var(--link-color);
    text-decoration: none;
}

/*NAVBAR*/

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(238, 239, 241, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 50px;
    height: 80px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}

nav .left,
nav .center,
nav .right {
    display: flex;
    align-items: center;
}

nav .left a {
    color: var(--text-color);
    font-size: 22px;
    font-weight: 600;
    white-space: nowrap;
}

nav .center {
    flex: 1;
    justify-content: center;
    gap: 80px;
    white-space: nowrap;
}

nav .center a {
    position: relative;
    color: var(--text-color);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

nav .center a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    width: 100%;
    height: 2px;
    background-color: var(--link-color);
    transition: transform 0.3s ease;
}

nav .center a.active::after {
    transform: translateX(-50%) scaleX(1);
}

nav .center a.active {
    color: var(--link-color);
}

nav .center a:hover::after {
    transform: translateX(-50%) scaleX(1);
}

nav .center a:hover {
    color: var(--link-color);
}

nav .right a {
    color: var(--text-color);
    margin: 0 10px;
    white-space: nowrap;
}

nav .right a:last-child {
    color: var(--background-color);
    background-color: var(--text-color);
    padding: 5px 15px;
    border-radius: 5px;
}

nav .right a span {
    margin-left: 5px;
}

/*SECTION 1: Hero*/
.hero-section {
    min-height: 90vh;
    display: flex;
    justify-content: space-between;
    margin: 50px 0px;
    align-items: center;
    gap: 40px;
    box-sizing: border-box;
}

.hero-section .text {
    flex: 5;
}

.hero-section .text h2 {
    font-size: 45px;
}

.location-info-aboutme {
    margin-top: 10px;
}

.hero-section .headshot {
    flex: 2;
    display: flex;
    justify-content: right;
}

.hero-section .headshot img {
    width: 325px;
    border-radius: 50%;
}

/*SECTION 2: Career path*/
.careerpath-section {
    min-height: 90vh;
    box-sizing: border-box;
}

.careerpath-section h2 {
    text-align: center;
    font-size: 45px;
    margin-bottom: 80px;
}

.careerpath-section .career-grid {
    display: flex;
    justify-content: space-evenly;
    align-items: flex-start;
    gap: 60px;
    flex-wrap: wrap;
    border: 2px solid #ccc;
    border-radius: 10px;
    padding: 20px 0;
    box-sizing: border-box;
    position: relative;
}

.careerpath-section .career-grid::before {
    content: "";
    position: absolute;
    top: 20px; 
    bottom: 20px;
    left: 50%; 
    width: 2px; 
    background-color: #ccc; 
    transform: translateX(-50%); 
}

.career-column {
    flex: 1 1 45%;
    max-width: 500px;
    text-align: center;
}

.company-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.company-header img {
    width: 70px;
    height: auto;
    margin-top: 10px;
}

.company-header i {
    font-size: 50px;
    transition: color 0.2s;
    margin-top: 15px;
}

.date {
    margin-bottom: 10px;
    color: var(--text-color);
}

.description {
    text-align: left;
    color: var(--text-color);
}

.bullet {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
}

.bullet-icon {
    font-size: 10px;
    margin-top: 8px;
    color: var(--text-color);
}

.company-header i:hover {
    filter: brightness(90%);
}

/*SECTION 3: Skills*/
.skills-section {
    min-height: 90vh;
    box-sizing: border-box;
}

.skills-section h2 {
    text-align: center;
    font-size: 45px;
    margin-bottom: 40px;
}

.skills-container {
    border: 2px solid #ccc;
    border-radius: 15px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.skills-columns {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
}

.skill-column {
    flex: 1;
    text-align: center;
    padding: 20px;
    position: relative;
}

.skill-column:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 10%;
    height: 80%;
    width: 2px;
    background-color: #ccc;
}

.skill-title {
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 20px;
    position: relative;
    padding-bottom: 10px;
    white-space: nowrap;
}

.skill-title::after {
    content: "";
    display: block;
    width: 60%;
    height: 2px;
    background-color: #ccc;
    margin: 10px auto 0 auto;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    justify-content: flex-start;
    white-space: nowrap;
}

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

.skill-item span {
    color: var(--text-color);
}

/*SECTION 4: Portfolio*/
.portfolio-section {
  min-height: 90vh;
  box-sizing: border-box;
  margin-top: 60px;
  margin-bottom: 50px;
}

.portfolio-section h2 {
  text-align: center;
  font-size: 45px;
  margin-bottom: 30px;
}

.portfolio-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 60px;
  flex-wrap: wrap;
  margin: 0 auto;
}

.media-wrapper {
  position: relative;
  width: 100%;
  max-width: 800px;
  overflow: hidden;
}

#project-video {
  display: none;
  width: 720px;
  height: 405px;
  border-radius: 10px;
}

.media-controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
  font-size: 14px;
  color: #fff;
  cursor: pointer;
}

.portfolio-image {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.portfolio-image img {
  max-width: 720px;
  border-radius: 10px;
}

.portfolio-controls {
  display: flex;
  justify-content: center;
  gap: 50px;
}

.portfolio-btn {
  background: none;
  border: 2px solid #333;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.3s ease;
}

.portfolio-btn:hover {
  background: #333;
  color: #fff;
}

.portfolio-info {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  max-width: 500px;
}

.portfolio-info h3 {
  font-size: 25px;
  margin-bottom: 15px;
}

.portfolio-info p {
  line-height: 1.5;
  color: #555;
  color: var(--text-color);
}

#project-steam {
  display: none;
  text-align: center;
  margin-top: 25px;
  font-size: 40px;
  color: #171a21;
  transition: transform 0.3s ease, color 0.3s ease;
}

#project-steam:hover {
  color: #1b2838;
  transform: scale(1.1);
}

/*SECTION 5: Contact*/
.contact-section {
    min-height: 90vh;
    box-sizing: border-box;
    padding-top: 50px;
}

.contact-section h2 {
    font-size: 45px;
}

.contact-section .group {
    display: flex;
    gap: 50px;
}

.contact-section .group .text {
    flex: 3;
    margin-top: 20px;
}

.contact-section .group form {
    flex: 3;
    display: flex;
    flex-direction: column;
}

.contact-section .group form input,
.contact-section .group form textarea {
    font-family: 'Poppins', sans-serif;
    border: 2px solid var(--text-color);
    background-color: transparent;
    padding: 10px;
    margin-bottom: 15px;
    outline: none;
    resize: none;
    transition: border-color 0.2s;
}

.contact-section .group form input:focus,
.contact-section .group form textarea:focus {
    border-color: var(--link-color);
}

.contact-section .group form button {
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    color: #fff;
    background-color: var(--link-color);
    border: none;
    height: 50px;
    cursor: pointer;
    transition: .1s;
}

.contact-section .group form button:hover {
    filter: brightness(90%);
}

@media (max-width: 851px) {
    /*NAVBAR*/
    nav {
        padding: 0 20px; 
    }

    nav .left a {
        font-size: 18px;
    }

    nav .center {
        gap: 20px;
    }

    nav .center a {
        font-size: 16px;
    }

    nav .right a {
        font-size: 18px;
    }

    nav .right a:last-child {
        color: var(--text-color);
        background-color: transparent;
        padding: 0;
    }

    nav .right a span {
        display: none;
    }

    /*SECTION 1: Hero*/
    .hero-section {
        padding: 0 50px;
    }

    .hero-section .text h2 {
        font-size: 35px;
    }

    /*SECTION 2: Career path*/
    .careerpath-section {
        padding: 0 50px;
    }

    .careerpath-section h2 {
        font-size: 35px;
    }

    .company-name{
        font-size: 16px;
    }

    .company-header img {
        width: 60px;
        height: auto;
        margin-top: 10px;
    }

    .company-header i {
        font-size: 40px;
        transition: color 0.2s;
        margin-top: 15px;
    }

    .location-info {
        font-size: 14px;
    }

    .date {
        font-size: 14px;
    }

    .description {
        padding-left: 12px;
        font-size: 14px;
    }

    .bullet-icon {
        font-size: 8px;
        margin-top: 6px;
    }

    /*SECTION 3: Skills*/
    .skills-section {
        padding: 0 50px;
    }

    .skills-section h2 {
        font-size: 35px;
    }

    .skills-columns {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 30px;
        position: relative;
    }

    .skill-column {
        flex: 1 1 calc(50% - 40px);
        max-width: 45%;
        position: relative;
        text-align: center;
    }

    .skill-column:nth-child(odd)::after {
        content: "";
        position: absolute;
        right: -15px;
        top: 10%;
        height: 80%;
        width: 2px;
        background-color: #ccc;
    }

    .skill-column:nth-child(even)::after,
    .skill-column:last-child::after {
        display: none;
    }

    .skill-column:last-child {
        flex: 1 1 100%;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /*SECTION 4: Portfolio*/
    .portfolio-section {
        padding: 0 50px;
        margin-bottom: 80px;
    }

    .portfolio-section h2 {
        font-size: 35px;
    }

    .media-controls {
        font-size: 10px;
    }

    /*SECTION 5: Contact*/
    .contact-section {
        padding: 0 50px;
        padding-bottom: 25px;
    }

    .contact-section h2 {
        font-size: 35px;
    }
}

@media (max-width: 800px){
    /*SECTION 1: Hero*/
    .hero-section {
        margin-top: 100px;
    }

}

@media (max-width: 740px) {
    /*NAVBAR*/
    nav {
        padding: 0 10px; 
    }

    nav .left a {
        font-size: 16px;
    }

    nav .center {
        gap: 15px;
    }

    nav .center a {
        font-size: 14px;
    }

    nav .right a {
        font-size: 16px;
    }
    
    /*SECTION 1: Hero*/
    .hero-section {
        flex-direction: column-reverse;
        padding-top: 50px;
    }

    .hero-section .text h2{
        text-align: center;
        margin-bottom: 10px;
    }

    .hero-section .headshot img {
        width: 225px;
    }

    /*SECTION 2: Career path*/
    .careerpath-section {
        margin-top: 80px;
    }

    .careerpath-section h2 {
        margin-bottom: 40px;
    }

    .careerpath-section .career-grid {
        flex-direction: column;
        padding-left: 60px;
    }

    .careerpath-section .career-grid::before {
        width: 80%;
        height: 2px;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    /*SECTION 3: Skills*/
    .skills-section {
        margin-top: 80px;
    }

    /*SECTION 4: Portfolio*/
    .portfolio-section {
        margin-top: 80px;
    }


    /*SECTION 5: Contact*/
    .contact-section h2 {
        text-align: center;
    }

    .contact-section .group {
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    /*NAVBAR*/
    nav .left a {
        font-size: 14px;
    }

    nav .center a {
        font-size: 12px;
    }

    nav .right a {
        font-size: 14px;
    }

    /*SECTION 1: Hero*/
    .hero-section{
        padding: 0 20px;
    }

    .hero-section .text{
       font-size: 14px;
    }

    .hero-section .text h2 {
        font-size: 30px;
    }

    /*SECTION 2: Career path*/
    .careerpath-section h2{
        font-size: 30px;
    }
    
    .careerpath-section .career-grid {
        flex-direction: column;
        padding-right: 60px;
    }

    /*SECTION 3: Skills*/
    .skills-section h2 {
        font-size: 30px;
    }

    .skills-columns {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .skill-column {
        flex: 1 1 100%;
        max-width: 100%;
        position: relative;
    }

    .skill-column::after,
    .skill-column:nth-child(odd)::after,
    .skill-column:nth-child(even)::after,
    .skill-column:last-child::after {
        content: none;
        display: none;
    }

    /*SECTION 4: Portfolio*/
    .portfolio-section h2 {
        font-size: 30px;
    }

    .portfolio-info h3 {
        font-size: 20px;
    }

    #project-video {
        width: 480px;
        height: 270px;
    }

    .portfolio-image img {
        width: 100%;
        max-width: 100%;
        height: auto;
    }

    /*SECTION 5: Contact*/
    .contact-section {
        padding: 0 20px;
        padding-bottom: 25px;
    }

    .contact-section h2 {
        font-size: 30px;
    }
}

@media (max-width: 480px) {
    /* NAVBAR */
    nav .left a {
        font-size: 12px; 
    }

    nav .center {
        gap: 10px;
    }

    nav .center a {
        font-size: 10px;
    }

    nav .right a {
        font-size: 12px;
        margin: 0 5px;
    }

    /*SECTION 2: Career path*/
    .company-name{
        font-size: 14px;
    }

    .company-header img {
        width: 50px;
        height: auto;
        margin-top: 10px;
    }

    .company-header i {
        font-size: 30px;
        transition: color 0.2s;
        margin-top: 15px;
    }

    .location-info {
        font-size: 12px;
    }

    .date {
        font-size: 12px;
    }

    .description {
        font-size: 10px;
    }

    .bullet-icon {
        font-size: 4px;
        margin-top: 4px;
    }

    /*SECTION 4: Portfolio*/
    .media-controls {
        font-size: 8px;
    }

    #project-video {
        width: 360px;
        height: 203px;
    }
}

@media (max-width: 391px) {
    /*NAVBAR*/
    nav .left a {
        font-size: 10px;
    }

    nav .center a {
        font-size: 8px;
    }

    nav .right a {
        font-size: 10px;
        margin: 0 3px;
    }

    /*SECTION 3: Skills*/
    .skill-title {
        font-size: 16px;
    }
}