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

body {
    background-color: #fffaf4; 
    color: #2D2336;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    padding: 60px 24px;
    line-height: 1.5;
}


header {
    text-align: center;
    margin-bottom: 60px;
}

header h1 {
    font-size: 28px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #4A154B;
}


h2 {
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #6D5B7B;
    margin-bottom: 32px;
    text-align: center;
}

h3 {
   font-size: 24px;
    color: #4A154B;
    font-weight: 600;
    margin-bottom: 25px;
}

nav {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 80px auto 24px auto;
    padding-bottom: 16px;
}

nav a {
    font-size: 14px;
    font-weight: 500;
    color: #8C7B99; 
    text-decoration: none;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

nav a:hover, 
nav a.active-nav {
    color: #4A154B;
    border-bottom: 2px solid #4A154B;
    padding-bottom: 4px;
}


footer {
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid #EAE5E0;
    max-width: 400px;
    margin: 0 auto;
}

footer p {
    font-size: 12px;
    color: #A696B2;
    letter-spacing: 0.5px;
}

.hyperlink {
    color: #8C7B99; 
    text-decoration: none;
    overflow-wrap: anywhere;
}

.hyperlink:hover {
    color: #4A154B;
    border-bottom: 1px solid #4A154B;
    padding-bottom: 4px;
}

.portfolio-container {
    max-width: 1200px;
    margin: 0 auto;
}



.grid-item {
    position: relative;
    overflow: hidden;
    background-color: #2D143D;
    flex: 1 1 calc(33.333% - 32px); 
    min-width: 300px;
    max-width: 380px; 
    aspect-ratio: 4 / 3; 
    border-radius: 4px; 
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background-color: #F7F3EE;
    transition: opacity 0.35s ease, transform 0.35s ease;
}


.hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0; 
    background-color: rgba(45, 20, 61, 0.88); 
    transition: opacity 0.35s ease;
    padding: 24px;
    text-align: center;
    pointer-events: none; 
}

.text-overlay h3 {
    color: #FDFBF9; 
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.text-overlay p {
    color: #D6C7E1; 
    font-size: 13px;
    font-weight: 300;
    line-height: 1.4;
}

.grid-item:hover img {
    opacity: 0.50; 
    transform: scale(1.03); 
}

.grid-item:hover .hover-overlay {
    opacity: 1;
}

/* About Page specific */

.about-text-button {
    display: flex;
    flex: 1 1 400px;      
    flex-direction: column; 
    gap: 18px;            
}


.resume-button,
.project-nav-button {
    display: inline-block;
    text-decoration: none;   
    align-self: flex-start;
    background-color: transparent;
    color: #4A154B;
    border: 2px solid #4A154B;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 30px;
    transition: background-color 0.25s ease, transform 0.2s ease;
}

.resume-button:hover,
.project-nav-button:hover {
    background-color: #2D143D;
    transform: translateY(-1px);
    color: #fffaf4 ;
}

/*Contact Page Specific*/


.about-flexbox,
.contact-flexbox {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 48px;
    margin-top: 40px;
    max-width: 800px;  
    margin-left: auto;
    margin-right: auto;
}

.about-flexbox img,
.contact-flexbox img {
    width: 100%;
    max-width: 320px;
    height: auto;
    border-radius: 4px;
}

.contact-icons {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-item img {
    width: 32px;
    height: 32px;
}

.contact-item p,
.contact-item a {
    margin: 0;
}


/*Project Pages*/

.project-page {
     width: 100%;
     max-width: 1100px;
    margin: 0 auto;
}

.project-title-link {
    flex: 1;
}

.project-title-link h2 {
    text-align: left;
    /*margin-bottom: 24px;*/
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 48px;
    width: 100%;
    margin-bottom: 40px;
}

.project-description {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
}

.portfolio-grid,
.project-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 32px;
    width: 100%;
}

.project-gallery img {
    flex: 1 1 calc(33.333% - 32px); 
    min-width: 300px;
    max-width: 380px; 

    width: 100%;
   height: auto;

    display: block;
    border-radius: 8px; 

     transition: transform 0.3s ease;
   
      position: relative;
}

.project-gallery img:hover {
    transform: scale(1.1);
     z-index: 2;
}

.project-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 48px;
}

.in-progress-text {
     padding: 12px 24px;
     line-height: 2;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
}

.single-next {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    margin-top: 48px;
}

.single-previous {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    margin-top: 48px;
}

.graphic-design-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.graphic-design-img {
  flex: 1 1 calc(33.333% - 32px);

    min-width: 300px;
    max-width: 380px;
    width: 100%;

    height: auto;

    display: block;
    border-radius: 4px;
}


@media (max-width: 768px) {

    body {
        padding: 40px 16px;
    }


    .about-flexbox {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    .about-text-button {
        width: 100%;
        flex: 1 1 auto;
        align-items: center;
        text-align: center;
    }

    .resume-button {
        align-self: center;
    }


    
       .project-header {
        flex-direction: column;
        text-align: center;
    }

    .project-title-link {
        width: 100%;
    }

    .project-title-link h2 {
        text-align: center;
    }

    .project-description {
        width: 100%;
    }

    .portfolio-grid {
        gap: 24px;
    }
    
    .grid-item {
        flex: 1 1 calc(50% - 24px);
    }

}



@media (max-width: 480px) {

    .grid-item {
        flex: 1 1 100%;
    }

    nav {
        gap: 24px;
    }

    .project-gallery img,
    .graphic-design-img {
         flex: 1 1 calc(33.333% - 32px);
    min-width: 300px;
    max-width: 380px;
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    }

}

