:root {
    --green: #00FF00;
    --white: #FFFFFF;
    --black: #000000;
    --blue: #0000FF;
    --red: #FF0000;
    --yellow: #FFFF00;
    --gray: #808080;
    --light-gray: #D3D3D3;
    --dark-gray: #969696;
    --orange: #FFA500;
    --purple: #800080;
    --pink: #FFC0CB;
    --brown: #A52A2A;
    --cyan: #00FFFF;
    --magenta: #FF00FF;
    --dark-purple: #4B0082;
    --light-purple: #9b29dd;
    --dark-blue: #00004e;
    --light-blue:#0707eb;

    --transparent-light-gray: rgba(211, 211, 211, 0.5);
}

@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

html {
    scroll-behavior: smooth;
}

body {
    height: 100vh;
    margin: 0;
    background: radial-gradient(circle, var(--light-blue), var(--dark-blue));
    transition: background 0.1s;
    color: black;
}

.navbar {
    width: 95%;
    height: 80px;
    background: linear-gradient(90deg, var(--dark-gray), var(--light-gray));
    display: flex;
    position: fixed;   
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);

    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 0 3rem;
}

.logo {
    grid-column: 1;
    color: var(--black);
    font-size: 1.8rem;
    font-weight: bold;
    letter-spacing: 2px;
    flex: 1;
}

.nav-links {
    grid-column: 2;
    justify-self: center;
    list-style: none;
    display: flex;
    gap: 2.5rem;
    margin: 0 auto;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--black);
    font-size: 1.1rem;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 3px;
    position: relative;
    transition: all 0.3s ease;
}

/* Subtle hover background */
.nav-links a:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--white);
}

/* Option 1: underline animation */
.nav-links a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--black);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:hover::after {
  width: 100%;
}

.sites {
    border: none;
    outline: none;
    box-shadow: none;
    background: none;
    cursor: pointer;
    width: 50px;
    height: 50px;
    margin-left: 15px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.sites:hover {
    transform: scale(1.2);
    opacity: 0.8;
}

body {
    margin: 0;
    padding-top: 40px;
}

section {
    scroll-margin-top: 60px;
    padding: 40px 20px;
}

.about-section {
    padding: 100px 50px;
}

.about-section h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5rem;
    color: var(--black);
    height: auto;
}

.about-section p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--black);
    margin-bottom: 20px;
    text-align: center;
}

.about-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.about-content .about-text {
    flex: 1;
    min-width: 250px;
    border-radius: 100px;
    padding: 20px;
    background-color: var(--light-gray);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-size: 1.2rem;
    color: var(--black);
    border: solid;
    border-radius: 20px;
    border-color: black;
    border-width: 3px;
}

.about-content .about-text p {
    text-align: left;
}

.about-content .jacob_photo {
    flex: 1;
    min-width: 200px;
    text-align: center;
}

.about-content .jacob_photo img {
    max-width: 100%;
    height: auto;
    border: solid;
    border-radius: 200px;
    border-color: black;
    border-width: 3px;
    background-color: var(--transparent-light-gray);
}

.projects-section {
    padding: 50 20px;
    text-align: center;
}

.projects-section h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: var(--black);
    background-color: var(--light-gray);
    border: solid;
    border-radius: 20px;
    width: 20%; 
    margin: 0 auto 30px auto;
}

.projects-section h3 {
    font-size: auto;
    margin-bottom: 30px;
    color: var(--black);
}

.projects-section p {
    font-size: auto;
    margin-bottom: 30px;
    color: var(--black);
}

.projects-section li {
    font-size: auto;
    margin-bottom: 10px;
    color: var(--black);
}

.projects-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    position: relative;
}

.project-slide {
    min-width: 300px;
    max-width: 600px;
    padding: 20px;
    border: 3px solid var(--black);
    border-radius: 10px;
    background-color: var(--light-gray);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.project-slide.active {
    position: relative;
    opacity: 1;
    transform: translateX(0);
}

.project-slide img {
    max-width: 100%;
    border-radius: 8px;
}

button.prev, button.next {
    font-size: 2rem;
    background: var(--light-gray);
    border-radius: 100%;
    cursor: pointer;
    color: var(--dark-gray);
    z-index: 10;
    transition: transition 0.5s ease, color 0.5s ease, background-color 0.5s ease;
}

button.prev {
    left: -60px;
}

button.next {
    right: -60px;
}

button.prev:hover, button.next:hover {
    color: var(--black);
    background-color: var(--gray);
    transform: scale(1.2);
}

.resume-section {
    padding: 40px 20px;
}

.resume-section h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: var(--black);
    background-color: var(--light-gray);
    border: solid;
    border-radius: 20px;
    width: 20%; 
    margin: 0 auto 30px auto;
    text-align: center;
}

.resume-content {
    display: flex;
    align-items: flex-start;  /* aligns top edges */
    gap: 40px;                /* space between text and image */
    flex-wrap: wrap;          /* makes it responsive on small screens */
}

.resume-text {
    flex: 1;
    min-width: 250px;
    border-radius: 100px;
    padding: 20px;
    background-color: var(--light-gray);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-size: 1.2rem;
    color: var(--black);
    border: solid;
    border-radius: 20px;
    border-color: black;
    border-width: 3px;
    text-align: center;
}

.resume-image {
    flex: 1;
    min-width: 250px;
}

.resume-image img {
    width: auto;              
    max-width: 80%;
    height: auto;
    border: solid 3px var(--black);
    border-radius: 10px;
    display: block;
    margin: 0 auto;
}

.contact-section {
  max-width: 70%;
  margin: 50px auto;
  padding: 20px;
  background: var(--light-gray);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: center;
}

.contact-section h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.contact-section ul {
  list-style: none;
  padding: 0;
  margin: 10px 0 20px;
}

.contact-section li {
  font-size: 1rem;
  margin: 5px 0;
}

#contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#contact-form input,
#contact-form textarea {
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
}

#contact-form button {
  padding: 12px;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  background-color: var(--blue);
  color: white;
  cursor: pointer;
  transition: background 0.3s ease;
}

#contact-form button:hover {
  background-color: #005fa3;
}

.form-status {
  margin-top: 15px;
  font-size: 0.95rem;
  color: green;
}
