html{
scroll-behavior: smooth;
}
body{
    background: linear-gradient(to bottom, #f9f9f7, #eae0f0);
}

.nav {
    display: flex;
    align-items: center;
    background-color: #f9f9f7;
    padding: 5px 10px;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    gap: 5px;
    box-sizing: border-box;
    height: 60px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    font-family:"serif";
    justify-content: space-between;
}
.nav-links {
    display: flex;
    gap: 25px;
}
.nav a{
    color: #472950;
    padding: 10px 15px;
    font-size: 16px;
    text-decoration:none;
    justify-content: right;
    font-size:16px;
}

h1{
    font-size: 50px;
    font-family: "Gravitas One", serif;
    font-weight: 400;
    font-style: normal;
    color:#472950;
}
.headshot{
    height: 50px;
    width: 50px;
    object-fit:cover;
    border-radius:50%;
    justify-content: left;
}
    body{
    font-size:20px;
    padding-top:70px;
}
    h2{
    color:#472950;
    font-family: "Gravitas One", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 30px;
}

/*description and jobs I'm looking for*/
.hero {
  text-align: center;
  padding: 100px 20px 60px;
}

.hero h2 {
  font-size: 28px;
  color: #5c3b7b;
  margin-bottom: 20px;
}

.hero p {
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto 30px;
  color: #472950;
}
ul, p{
    color:#472950;
}
.cta-button {
  background-color: #472950;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: 0.2s ease;
}

.cta-button:hover {
  background-color: #5c3b7b;
}

.img-slide{
    width:100%;
    height:400px;
    object-fit:cover;
    display:block;
}
.img-slide-container{
    position:relative;
    width:100%;
}
#intro {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #f6eaf8;
    font-size: 40px;
    font-family: "Gravitas One", serif;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
    white-space: nowrap;
}
.typewriter-text {
    position: absolute;
    top: 50%;              
    left: 50%;             
    transform: translate(-50%, -50%);     
    font-size: 60px;    
    font-family: "Gravitas One", serif;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
    white-space: nowrap;
    z-index: 2;
}
.jobs{
    list-style: none;
}


/*Skills*/
.skills{
    scroll-margin-top: 130px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skills_list{
    list-style: none;
    padding-left:0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.skills_list li {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #c0a4c4;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  color:#ffffff
}

.skills_list li:hover {
  background: #472950;
  color: white;
}

.skills_list i {
  font-size: 18px;
}

.job_list{
    text-align:left
}
h4{
    color:#472950;
    margin-bottom: 0;
}
h3{
    color:#472950;
    margin-bottom: 0;
}

/*projects section*/
.projects {
    scroll-margin-top: 120px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 350px));
    justify-content: center;
    gap: 30px;
    padding: 20px 0;
}

.project-card{
    padding:20px;
    border-radius:12px;
    box-shadow:0 4px 12px rgba(0,0,0,0.1);
    border:2px solid transparent;
    transition: transform 0.2s ease;
    align-items: center;
}
.project-card:hover {
  border-color:#472950;
  background-color:#c0a4c493;
}
.project-card .project-img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}
.cheer-img{
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}
.cheer-img img {
    height: 120px;
    max-height: 120px;
    width: auto;
    max-width: 150px;
    border-radius: 8px;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.cheer-img img:hover {
    transform: scale(1.05);
}

@media (max-width: 500px) {
    .cheer-img img {
        height: 90px;
        max-width: 120px;
    }
}

.cheer-closeup{
    height: 150px;
    width: auto;
}
.project-card .buttons a {
  margin-right: 8px;
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid #472950;
  text-decoration: none;
  color: #472950;
  transition: 0.2s ease;
}

.project-card .buttons a:hover {
  background: #472950;
  color: white;
}
.project-card .tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 10px 0;
}

.tech li{
    display: inline-flex;
    flex-wrap:wrap;
    align-items: center;
    gap: 8px;
    background: #c0a4c4;
    padding: 5px 10px;
    font-size: 14px;
    border-radius: 999px;
    color:#472950;
    width:fit-content;
}

/*Experience*/
.experience h3, .experience h4{
    margin-bottom: 5px;
}

.job_list{
    margin-bottom:20px;
    text-align: left;

}
.experience{
    scroll-margin-top: 80px;
}

/*footer*/
.footer{
    margin-top:150px;
    bottom:0;
    width:100%;
    background-color:#eae0f0;
    z-index:1000;
    text-align:center;
}
.footer a{
    margin:0 10px;
    font-size: 30px;
    color:#c0a4c4;
    text-decoration:none;
}

.footer a:hover {
  color: #472950;
  transform: scale(1.1);
  transition: 0.2s ease;
}

/*Graphic Design Close up Page*/
.header {
    text-align: center;
    padding: 40px 20px;
}

.header h1 {
    font-family: "Gravitas One", serif;
    font-size: 48px;
    color: #472950;
    margin-bottom: 10px;
}

.header p {
    font-size: 18px;
    color: #5c3b7b;
}

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    padding: 20px 10px;
    justify-items: center;
}

.gallery-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 100%;
    text-align: center;
}

.gallery-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.gallery-card p {
    padding: 10px 15px;
    font-size: 16px;
    color: #472950;
    font-weight: 500;
}

.lightbox{
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
}

/* Enlarged image */
.lightbox-content {
    display: block;
    margin: auto;
    max-width: 90%;
    max-height: 85vh;
    border-radius: 10px;
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}

.footer {
    text-align: center;
    margin-top: 50px;
}

.back-button {
    text-decoration: none;
    color: white;
    background-color: #472950;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    transition: 0.3s ease;
}

.back-button:hover {
    background-color: #5c3b7b;
}

/*Skills*/
.coursework{
    scroll-margin-top: 130px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/*Mobile CSS*/
@media (max-width: 600px) {

    /* Smaller header text */
    .header h1 {
        font-size: 32px; /* CHANGE: prevent huge text on phones */
    }

    .header p {
        font-size: 16px;
    }

    /* Reduce spacing */
    .header {
        padding: 20px 10px;
    }

    /* Make cards tighter */
    .gallery {
        gap: 15px;
    }

    /* Improve tap feel */
    .gallery-card {
        border-radius: 10px;
    }

    /* Make back button easier to tap */
    .back-button {
        padding: 12px 18px;
        font-size: 16px;
    }
}