/* Global Styles */
body {
    font-family: 'Overpass Mono', monospace;
    margin: 0;
    padding: 0;
    background-image: url('../images/paper background.png');
    background-size: cover;
    background-position: center;
    color: black;
    display: flex;
    flex-direction: column; 
    min-height: 100vh; 
}


.navbar {
    display: flex;
    justify-content: space-between; 
    align-items: center; 
    padding: 0.5rem 5%;
    background: #fff; 
    border: 1px solid black; 
    border-radius: 5px; 
    font-family: 'Overpass Mono', monospace; 
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); 
    width: 80%;
    margin: 20px auto 80px;
    font-size: 1.3rem;
}

.navbar a {
    margin: 0 1rem;
    text-decoration: none;
    color: black;
}


.navbar-left {
    font-weight: bold; 
}

.navbar-right {
    display: flex;
    gap: 1rem;
}

.navbar-right a {
    margin-left: 1rem; 
    text-decoration: none; 
    color: black; 
    font-weight: normal; 
}

.navbar-right a:hover {
    text-decoration: underline;
}

/* mobile menu */

.hamburger-menu {
    display: none; /* Hide by default */
    font-size: 1.5rem;
    cursor: pointer;
}

.navbar-right.active {
    display: flex;
}

@media (max-width: 768px) {
    .hamburger-menu{
        display: block; /* show on mobile */
    }

    .navbar-right {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 5%;
        background: #fff;
        border: 1px solid black;
        border-radius: 5px;
        padding: 1rem;
        width: 50%;
        z-index: 1000;
    }

    .navbar-right.active {
        display: flex; 
    }
}

main {
    flex: 1;
}

h1, h2 {
    text-align: center;
    font-family: 'Courier New', monospace;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    img {
        max-width: 100%;
        height: auto;
    }
}

.home-header {
    background-color: #d1cdcf;
    padding: 1rem;
    margin: 0 auto;
    width: 80%;
    max-width: 900px;
    height: 100%;
    border: 1px solid black;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    text-align: center;
}


.home-header::before {
    content: '';
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%) scale(5);
    width: 200px;
    height: 20px;
    background: url('../images/binder clip.png') no-repeat center/contain;
    background-size: contain;
}

.home-header h1 {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: inline-block;
    padding: 0.5rem 5%;
    width: 40%;
    text-align: center;
    margin: 1rem auto;
    border-radius: 5px;
    font-size: 120%;
}

.home-header p {
    font-size: 1.1rem;
    text-align: left;
    background-color: #ffffff;
    padding: 1rem;
    margin: -10rem auto 1rem;
    margin-left: 6rem;
    width: 50%;
    display: inline-block;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    left: -20%;
    top: -90px;
}

.home-headshot {
    width: 220px;
    height: 240px;
    background: url('../images/headshot.jpg') center/cover no-repeat;
    border: 1px solid black;
    border-radius: 30px;
    margin: 1rem auto;
    position: relative;
    top: -10%;
    left: 30%;
}

.buttons {
    margin-bottom: 10px;
    margin-top: -20px;
  }
  
  button {
    background-color: black;
    color: white;
    border: none;
    padding: 15px 30px;
    margin-right: 60px;
    font-size: 19px;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
    font-family: 'Courier New', monospace;
  }
  
  button:hover {
    transform: scale(1.1);
    background-color: #333;
  }
  
  button:active {
    transform: scale(1);
  }

/* kindle fire size */
@media (max-width: 940px){
    .home-header p {
        width: 60%;
        top: -50px;
        left: -170px;
    }

    .home-headshot {
        width: 150px;
        height: 170px;
        top: 1px;
        left: 230px;
    }
}

.projects {
    text-align: center;
    margin: 0.5rem auto;
    font-family: 'Overpass Mono', monospace;
}

.projects h1 {
    background: #fff !important;
    display: inline-block;
    padding: 0.5rem 5%;
    border: 1px solid black;
    border-radius: 5px;
    width: 80%;
    text-align: center;
    margin: 1rem auto;
    font-size: 1.5rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5rem;
    width: 80%;
    margin: 0rem 20rem;
}

.project-card {
    background-color: #B0BFDA;
    padding: 1rem;
    border-radius: 10px;
    height: 76%;
    width: 350px;
    position: relative;
    left: -20%;
    margin-bottom: 10%;
    margin-top: 5%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.project-blurb {
    font-family: 'Manjari', sans-serif;
    padding: 3rem;
    width: 90%;
    margin-left: -10%;
    margin-top: -10%;
    font-size: 20px;
    line-height: 30px;
}

.project-blurb h2{
    font-family: 'Manjari', sans-serif;
}

.project-logo {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 120px;
}

.project-logo img {
    max-width: 100%;
    max-height: 150%;
    object-fit: contain;
}

.project-card:hover {
    transform: scale(1.1);
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.2);
}

/* mobile projects grid */
@media (max-width: 768px){
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        width: 100vw;
        margin: 1rem auto;
    }

    .project-card {
        width: 100vw;
        height: 100%;
        left: 0;
        margin: 0 auto;
        margin-bottom: 2rem;
    }

    .project-card h2{
        margin-left: -1rem;
    }
    .project-blurb {
        width: 100%;
        margin-left: -6%;
        margin-top: 1%;
        padding: 3rem;
        text-align: left;
        line-height: 30px;
        font-size: 19px;
    }
}


@media (max-width: 1500px){
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 1rem auto;
    }

    .project-card {
        width: 80%;
        height: auto;
        left: 0;
        margin: 0 auto;
        margin-bottom: 4rem;
        padding: 1rem;
    }

    .project-blurb {
        width: 90%;
        margin-left: 2%;
        margin-top: 1%;
        padding: 1rem;
    }
}


@media (min-width: 1200px) {
    .projects-grid {
        width: 90%; 
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem; 
    }

    .project-card {
        padding: 2rem; 
        font-size: 1.2rem; 
    }

    .project h1 {
        max-width: 80%;
    }

}

/* intro section on home */
.intro {
    text-align: center;
    margin: 0.5rem auto;
    font-family: 'Overpass Mono', monospace;
}

.intro h1 {
    background: #fff;
    display: block;
    padding: 0.5rem 5%;
    width: 80%;
    text-align: center;
    margin: 1rem auto;
    border-radius: 5px;
}

.intro p {
    font-size: 1.2rem;
    color: #555;
}

/* intro section for mobile */
@media (max-width: 768px) {
    .home-header {
        width: 90%;
        padding: 1rem;
        margin: 0 auto;
    }

    .home-header h1 {
        width: 90%;
        font-size: 1.5rem;
        margin: 1rem auto;
    }

    .home-header p {
        width: 90%;
        font-size: 1rem;
        position: static;
        left: 0;
        top: 0;
        margin: 1rem auto;
    }

    .home-headshot {
        width: 140px;
        height: 160px;
        position: static;
        left: 0;
        right: 0;
        margin: 1rem auto;
    }

    .buttons {
        margin-top: 1rem;
        margin-bottom: 1rem;
    }

    button {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}


/* typing animation on home */
.typing-text {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    width: 0;
    animation: typing 2s steps(10, end) forwards;
}

@keyframes typing {
    from { width: 0; }
    to { width: 40%; }
}

.typing-text::after {
    content: "|";
    display: inline-block;
    animation: blink 1s steps(2, start) infinite;
}

@keyframes blink {
    from, to { opacity: 1; }
    50% { opacity: 0; }
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

/* experience page */
.experience {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 2rem auto;
    width: 80%;
}

.experience-card {
    font-family: 'Manjari', sans-serif;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 1.3rem;
    margin: 2% 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


/* for small screens */
@media (max-width: 768px) {

    .experience {
        width: 98%;
        max-width: 1000px;
    }

    .experience-card{
        flex-direction: column;
        text-align: center;
        align-items: flex-start;
    }

    .experience-card h2 {
        font-size: 1.1rem;
        max-height: 2.6em;
        width: 20rem;
        margin-left: 0.5rem;
    }

    .experience-text {
        width: 20rem;
    }

    .experience-text p {
        line-height: 1.2;
        padding-bottom: -1rem;
        width: 18rem;
        margin-left: 0.5rem;
        margin-top: 2rem;
        text-align: left;
        font-size: 1.2rem;
    }

    .experience-logo img {
        max-width: 100px;
    }
}

a.experience-card {
    text-decoration: none;
    color: inherit;
    display: flex;
}

.experience-text {
    flex: 2;
    max-width: 70%;
}

.experience-logo {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-left: auto;
    padding-right: -20rem;
}

.experience-logo img {
    max-width: 65%;
    height: auto;
    position: static;
}

.experience-card:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  }


.experience-card h2 {
    font-size: 1.5rem;
    margin: 0;
    color: #010B0B;
    font-family: 'Manjari', sans-serif;
    text-align: left;
}

.highlight {
    color: #6882B2;
}

/* about page */
.about-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin: 2rem 0;
    padding: 0 5%;
}

.blurb {
    font-family: 'Overpass Mono', sans-serif;
    font-size: 1.6rem;
    background: #B0BFDA;
    padding: 1rem;
    border-radius: 20px;
    height: auto;
    width: 80%;
    margin: 0 auto;
    line-height: 30px;
    margin-bottom: 7%;
    color: #000000;
    margin-top: 2%;
}

/* skills section */
.skills {
    text-align: center;
    margin: 2rem 0;
    color: #000000;
}

.skills h2 {
    background: #fff;
    display: inline-block;
    padding: 0.5rem 5%;
    border: 1px solid black;
    border-radius: 5px;
    width: 80%;
    text-align: center;
    margin: 1rem auto;
    font-size: 1.5rem;

}

.skills-container {
    display: flex;
    justify-content: space-around;
    margin: 0 auto;
    width: 80%;
}

.skills-column {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    font-weight: bold;
    font-family: 'Manjari', sans-serif;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    font-family: 'Manjari', sans-serif;
    color: #000000;
    font-size: 1.5rem;
    justify-items: center;
    margin: 1rem auto;
    width: 100%;
}

.skill-item {
    font-size: 3rem;
    color: #555;
    cursor: pointer;
    transition: transform 0.3s ease, color 0.3s ease;
    position: relative;
}

.skill-item:hover {
    color: #0077b5;
    transform: scale(1.2);
}

.skill-item::after {
    content: attr(title); 
    position: absolute;
    bottom: -2rem; 
    left: 50%;
    transform: translateX(-50%);
    background-color: #333; 
    color: #fff; 
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 0.8rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    white-space: nowrap; 
}

.skill-item:hover::after {
    opacity: 1; 
}

.skill-item:focus {
    /* Add styles for focused skill item */
    background-color: #ccc;
    border: 1px solid #666;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.skill-item:focus::after {
    /* Display skill item's title when focused */
    content: attr(title);
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #363535;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.skills-grid h2 {
    grid-column: 1 / -1;
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #B0BFDA;
  }
  
  .languages {
    grid-column: 1;
  }
  
  .frameworks {
    grid-column: 2;
  }
  
  .languages h3, .frameworks h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #B0BFDA;
  }
  
  .languages i, .frameworks i {
    font-size: 3rem;
    color: #000000;
    margin: 10px;
  }
  
.skills-grid i {
    font-size: 3rem;
    color: #000000;
    margin: 10px;
  }

  .skills-grid h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #B0BFDA;
  }

  /* about me blurb on mobile */
  @media (max-width: 768px) {
    .blurb {
        font-size: 1.1rem;
        padding: 1rem;
        width: 90%;
        line-height: 1.6;
        margin: 2rem auto;
    }
}

  /* skills section for mobile */
  @media (max-width: 786px){
    .skills-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

    .skills-column {
        font-size: 1.2rem;
    }

    .languages, .frameworks {
        grid-column: 1/-1;
    }

    .languages h3, .frameworks h3 {
        text-align: center;
    }

    .languages i, .frameworks i {
        font-size: 1rem;
    }

    .skill-item:focus::after {
        display: block;
    }
}

/* contact me section */
.contact {
    text-align: center;
    margin: 2rem auto;
    margin-top: -2rem;
  }

.contact-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
  }

.contact-icons a {
    font-size: 2.5rem;
    color: #000000;
    text-decoration: none;
    transition: transform 0.2s ease, color 0.2s ease;
  }

  .contact-icons a:hover {
    transform: scale(1.2);
    color: #2D4571;
  }

/* footer */
footer {
    background: #fff;
    padding: 1rem;
    text-align: right;
    font-family: 'Courier New', monospace;
    font-size: 1.3rem;
}

footer .contact-links a {
    display: inline-block;
    margin: 0 10px;
    text-decoration: none;
    color: #333;
    position: relative;
}

footer .contact-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 5px;
    background-color: transparent;
    border-bottom: 2px solid #333;
    border-bottom-style: wavy;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

footer .contact-links a:hover::after {
    opacity: 1;
}

@media (max-width: 786px){
    footer {
        padding: 0.5rem;
        font-size: 1.4rem;
    }
}