html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}
:root {
    --main-color: black; /* Example: A shade of blue */
    --secondary-color: blue; /* Example: A shade of gray */
    --accent-color: white; /* Optional: For specific accents */
    --button-hover-color: rgba(0, 0, 255, 0.5);

  }
  
body {
    margin: 0;
    padding: 0;
    font-family: "Montserrat", sans-serif;
    background-color: var(--accent-color);
    color: var(--main-color);
    display: flex;
    flex-direction: column;
}
a, a:visited {
    text-decoration: none;
    color: inherit;
}

button {
    all: unset;
    color: var(--accent-color);
    background-color:var(--secondary-color);   
}
button:hover {
    cursor: pointer;
    background-color: var(--button-hover-color);
}
nav {
    display: flex;
    align-items: center;
    width: 100%;
    position: fixed;
    font-size: medium;
    top: 0;
    background-color: inherit;
    z-index: 1000;
    box-shadow: 5px 5px 10px 2px #D3D3D3; 
}

nav * {
    margin: 0;
    padding: 0;
}

nav a {
    color: var(--main-color); 
    float: left;
    text-align: center;
    text-decoration: none;
    width: fit-content;
    font-weight: bolder;
    white-space: nowrap;
}
nav .title {
    padding: 1rem 2rem;
}
nav div {
    position: absolute;
    right: 0;
    
}
nav div a {
    margin-right: 2rem;
    font-weight: normal;
}

nav .dropdown {
    float: left;
    position: relative;
}

nav .icon {
    height: auto;
    display: none;
    color: var(--main-color); 
    cursor: pointer;
}
@media screen and (max-width: 600px) {
    nav {
        display: block;
        margin: 0;
    }
    nav a.icon {
      float: right;
      display: block;
      margin: 0;
      padding: 0.9rem 2rem;
    }
    nav div {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out;
        position: static;
    }
    nav div a{
        width: auto;
        padding-left: 2rem;
    }
    
  }
  @media screen and (max-width: 600px) {
    
    .main-nav.responsive {position: fixed;}
    
    .main-nav a.icon {
      position: absolute;
      right: 0;
      top: 0;
    }
    .main-nav.responsive div {
        max-height: 20rem;
    }
    .main-nav a{
      float: none;
      display: block;
      text-align: left;
      margin: 0;
      padding: 1rem 1rem 1rem 1.5rem;
    }

  }

section{
    display: flex;
    flex-direction: column;
    padding: 2rem 0;
}


.intro {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 12.5rem 0;
    background: radial-gradient(circle at top right, blue 0%, white 30%);
}


.intro-text {
    text-align: left;
    display: flex;
    flex-direction: column;
    width: 50%;
    margin: 0;
}

.intro-text h1 {
    margin: 0;
    font-size: 60px;
    font-weight: 700;
}
.intro-text h2 {
    margin:1rem 0 0 0;
    font-size: 35px;
    font-weight: 600;
    color: var(--main-color);
}
.intro-text p {
    width: 70%;
}
.intro-text h5 {
    font-size: 20px;
    font-weight: 300;
}

.intro button {
    margin-top: 2rem;
    display: block;
    font-weight:600;
    font-size: 125%;
    border-radius: 8px;
    padding: 0.75rem 2rem;
    width: fit-content;
}

.social-links {
    font-size: 150%;
    margin: 1rem 0;
    
}
.social-links div {
    display: inline-flex;
    border: 2px solid var(--secondary-color); 
    color: var(--secondary-color);
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

.social-links i {
    padding: 1rem; 
    color: var(--secondary-color);
}


.headshot {
    width: auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.headshot img {
    width: 20rem;
    height: 20rem;
    border-radius: 50%;
    border: 0.25rem solid var(--secondary-color);
}
.hidden {
    opacity: 0;
    transition: all 1s;
}
.show {
    opacity: 1;
}

.section-title{
    text-align: center;
    text-decoration: underline;
    text-underline-offset: 15px;
    font-size: 250%;
    margin-bottom: 5rem;
}
.section-title span {
    color: var(--secondary-color);

}
.experience {
    text-align: center;
    background-color:  rgba(0, 0, 255, 0.605);
}
.work-experience-content {
    display: flex;
    flex-direction: column;
    margin: 0 1rem;
    margin: 0 auto;
    justify-content: center;
}

.work-box {
    display: flex;
    flex-direction: row;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    margin: 2% 0.25%;
}

.logo-box {
    width: fit-content;
    height: 12rem;
    display: flex;
    background-color: white;
    align-items: center;
    justify-content: center;
    border: 3px solid;
    border-radius: 25px;
    padding: 0.5rem;
    margin: 5%;
}
.logo{
    width: 12rem;
    height: relative;
}
.work-info {
    width: fit-content;
    background:rgba(255,255,255,.4);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    text-align: left;
    box-sizing: border-box;
    padding: 1rem 2rem;
    margin-right: 5%;
}
.work-info a {
    color: inherit;
    display: block;
    color: var(--secondary-color);
    font-weight: 600;
    border: 2px solid var(--secondary-color);
    border-radius: 10px;
    text-decoration: none;
    padding :1rem;
    width: fit-content;
}


.work-info span {
    line-height: 1.2;
}
.work-info h3 {
    font-size: x-large;
    padding-bottom: 0;
}
.work-info h4 {
    margin-top: 0;
    font-size: larger;
}
.work-info .key-skills {
    font-weight: 700;
    font-size: medium;
}
.work-info span {
    line-height: 1.0;
}

.projects-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    text-align: left;
    justify-content: space-evenly;
}

.project-item {
    width: 22.5rem;
    height: fit-content;
    line-height: 1.2;
    background-color: var(--accent-color);
    border: 3px solid black;
    box-shadow: 0 0 15px 10px lightgray; 
    border-radius: 10px;
    vertical-align: bottom;
    box-sizing: border-box;
    padding: 2rem 2rem 0rem;
    margin-bottom: 2rem;
    background-color: rgba(255, 255, 255, 0.586) ;
}


.project-item div img {
    width: 100%;
    height: auto;
    border: 2px solid gray;
    border-radius: 10px;
}
.project-item h3 {
    font-size: 1.2rem;
}
.project-item h4 {
    margin: 0;
    font-size: 1rem;
    color: var(--secondary-color);
}
.project-item button {
    color: var(--accent-color);
    font-weight: 600;
    background-color: var(--secondary-color);
    padding: 1rem 2rem;
    border-radius: 25px;
    margin: 1rem 0;
}
.project-item button:hover {
    background-color: var(--button-hover-color);
}

.skills {
    display: flex;
    text-align: center;
    align-content: center;
    background-color: rgba(0, 0, 255, 0.605);
}
.skill-list {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 5rem;
    gap: 0.25rem;
    margin: 1rem auto;
}
.skills i {
    font-size: 3rem;
    padding: 0.75rem;
    bottom: 0;
}
.icon-container {
    width: fit-content;
    height: 5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end; 
}
.bubble {
    display: none;
    position: relative;
    background-color: black;
    color: white;
    font-size: 1rem;
    text-align: center;
    width: fit-content;
    height: fit-content;
    border: 1px black solid;
    padding: 0.75rem;
}
.bubble:after {
    content: '';
    position: absolute;
    display: none;
    width: 0;
    z-index: 1;
    border-style: solid;
    border-color: black transparent;
    border-width: 20px 20px 0;
    bottom: -30%;
    left: 50%;
    margin-left: -20px;
}

.contact-form {
    width: 20rem;
    padding-bottom: 2rem;
    justify-content: center;
    text-align: center;
}

.contact-form input, textarea {
    all: unset;
    text-align: left;
    box-sizing: border-box;
    border: 2px solid;
    width: 100%;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}
::placeholder {
    color: inherit;
}
.contact-form input[type = submit] {
    all: unset;
    width: 50%;
    border-radius: 15px;
    text-align: center;
    font-weight: 600;
    color: var(--accent-color);
    background-color: var(--secondary-color); 
    padding: 0.75rem 1rem;
    margin: 0 auto;
}
.contact-form input[type = submit]:hover {
    background-color: var(--button-hover-color);
    cursor: pointer;
}
footer {
    background-color: black;
    color: white;
    text-align: center;
    padding: 1rem;
}
.hidden {
    opacity: 0;
    transform: translateY(-5%);
}
.show {
    opacity: 1;
    transform: translateY(0);
}
@media(hover:hover) {
    nav a:hover{
        color: var(--secondary-color);
      } 
    .main-nav.responsive div a:hover {
        background-color: lightslategray;
    }
    .social-links div:hover {
        background-color: var(--secondary-color); 
    }
    .social-links i:hover {
        color: var(--accent-color);
    }
    .work-info a:hover {
        background-color: var(--secondary-color);
        color: black;
    }
    .icon-container i:hover {
        font-size: 3.5rem;
        transition: font-size 0.2s;
    }
    .icon-container:hover .bubble, .bubble:after {
        display: block;
    }
}
@media screen and (max-width:600px) {
    .intro {
        flex-direction: column-reverse;
        padding: 5rem 0;
    }
    
    .intro-text {
        margin-top: 2rem;
        text-align: center;
        padding-bottom: 2rem;
        padding-left: 0;
        width: 100%;
    }
    .intro-text h1 {
        font-size: 225%;

    }
    .intro-text h2 {
        font-size: 150%;
        margin-bottom: 0;
    }
    .intro-text p {
        margin: 1rem auto;
    }
    .social-links {
        width: 100%;
        text-align: center;
    }
    .social-links div {
        margin: 0.5rem;
    }
    .social-links i {
        padding: 0.75rem; 
    }
    .intro-text button {
        margin: 1rem auto;
        font-size: 100%;
    }
    .headshot {
        width: 100%;
    }
    .headshot img {
        width: 15rem;
        height: 15rem;
        margin-right: 0;
    }
    
    .work-experience-content {
        width: 100%;
        flex-direction: column;
        justify-content: center;
        margin: 0;
    }
    .work-box {
        flex-direction: column;
        justify-content: center;
        margin: 0;
    }
   
    .work-info {
        text-align: center;
        justify-content: center;
        margin:  2.5%;
    }
    .work-info a, a:visited {
        margin: 0 auto;
    }

    .projects-container {
        flex-direction: column;
    }
    .project-item {
        width: 75%;
    }
    .skill-list{
        width: 70%;
        flex-wrap: wrap;
        height: fit-content;
        margin-bottom: 2rem;

    }
    .skills .icon-container {
        background:rgba(255,255,255,.4);
        box-sizing: border-box;
        width: 5rem;
        height: 5rem;
        border-radius: 10px;
        margin: 0.5rem;
    }

    .skills i {
        font-size: 2rem;
    }
    .icon-container i:hover {
        font-size: 2.25rem;
        opacity: 0.5;
    }
    .bubble, .bubble:after {
        all: unset;
        display: block;
        font-size: 2vw;
    }
}


