/* === Portfolio Grid Section === */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2em;
    justify-items: center;
    align-items: start;
    margin: 2em 0 2.5em 0;
}
.portfolio-item {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(34,46,58,0.10);
    padding: 1.2em 1em 1em 1em;
    max-width: 350px;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: box-shadow 0.2s, transform 0.2s;
}
.portfolio-item:hover {
    box-shadow: 0 6px 24px rgba(186,132,55,0.18);
    transform: translateY(-4px) scale(1.03);
}
.portfolio-item img {
    width: 790px;
    height: 480px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1em;
    box-shadow: 0 1px 6px rgba(34,46,58,0.10);
    max-width: 90vw;
    max-height: 60vw;
}
.portfolio-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1em;
    color: #222e3a;
    margin-top: 0.2em;
    text-align: center;
    font-weight: bold;
}
@media (max-width: 900px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}
/* === Portfolio Testimonials Section === */
.testimonials {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 2.5em 0 2.5em 0;
    text-align: center;
}
.testimonials h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    margin-bottom: 1.2em;
    color: #333;
}
.testimonial-grid {
    display: flex;
    flex-direction: row;
    gap: 2.5em;
    justify-content: center;
    flex-wrap: wrap;
}
.testimonial {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(34,46,58,0.10);
    padding: 2em 1.5em 1.5em 1.5em;
    max-width: 350px;
    min-width: 260px;
    margin: 0.5em 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.testimonial p {
    font-size: 1.08em;
    color: #222e3a;
    margin-bottom: 0.7em;
    font-style: italic;
}
.testimonial span {
    font-size: 1em;
    color: #ba8437;
    font-weight: bold;
}
.testimonial-stars {
    margin-bottom: 0.5em;
}
.star {
    color: #ffb347;
    font-size: 1.3em;
    margin: 0 0.05em;
    text-shadow: 0 1px 2px #e0c08a;
}
@media (max-width: 900px) {
    .testimonial-grid {
        flex-direction: column;
        align-items: center;
    }
}
/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Open+Sans:wght@400&display=swap');

/* Homepage */
.homepage {
    background-image: url('assets/giojakelogo/payson-wick-vGLXKqCY66Y-unsplash.jpg'); /* Replace with actual image */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: flex-start; /* Positions content toward the top */
    justify-content: top;
    padding-top: 20px; /* Adjusts vertical spacing */
    text-align: left;
    color: #FFFDFA;
    flex-direction: column; /* Ensures content stacks */
}

.home-contact-btn {
            display: inline-block;
            margin: 2.5em auto 0 auto;
            padding: 1.2em 3em;
            background: rgba(34,46,58,0.85); /* Match navbar, slightly transparent */
            color: #fff;
            border: none;
            border-radius: 32px;
            font-size: 1.5em;
            font-weight: bold;
            text-decoration: none;
            box-shadow: 0 2px 16px rgba(34,46,58,0.10);
            transition: background 0.2s, color 0.2s, box-shadow 0.2s;
            text-align: center;
        }
        .home-contact-btn:hover, .home-contact-btn:focus {
            background: #ffb347;
            color: #222e3a;
            box-shadow: 0 4px 24px rgba(255,179,71,0.18);
        }
        .homepage {
            text-align: center;
        }

/* Styling for H1 */
.homepage h1 {
    font-size: 3rem; /* Makes H1 larger */
    font-weight: bold;
    margin-bottom: 10px; /* Adds spacing between H1 and P */
    font-family: 'Montserrat', sans-serif;
    padding-left: 30px;
}

/* Styling for P */
.homepage p {
    font-size: 1.3rem; /* Smaller than H1 */
    max-width: 600px; /* Limits width for readability */
    font-family: 'Montserrat', sans-serif;
    padding-left: 30px;
}


body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navigation Bar */
nav {
    background-color: #333;
    color: #FFFDFA;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    font-family: 'Montserrat', sans-serif;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    max-width: 100%;
    height: auto;
    width: 150px; /* Adjust the default size */
}

.menu a {
    color: #FFFDFA;
    text-decoration: none;
    margin: 0 15px;
    padding: 10px 15px; /* Add padding for better hover effect */
    font-family: 'Montserrat', sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Hover Effect */
.menu a:hover {
    background-color: #BA8437;
    color: #333;
    border-radius: 5px; /* Optional: Adds rounded corners */
}

/* Hamburger menu for mobile */
.hamburger {
    display: none;
    font-size: 2em;
    cursor: pointer;
}

/*Contact Form */
/* === Contact Form Styles === */
#contactForm {
  max-width: 800px;
  margin: 40px auto;
  padding: 25px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#contactForm label {
  display: block;
  margin-top: 15px;
  font-weight: 600;
  color: #333;
}

#contactForm input[type="text"],
#contactForm input[type="email"],
#contactForm textarea,
#contactForm select {
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  box-sizing: border-box;
}

#contactForm textarea {
  resize: vertical;
}

#contactForm input[type="checkbox"] {
  margin-right: 8px;
  vertical-align: middle;
}

#contactForm button[type="submit"] {
  margin-top: 20px;
  padding: 12px 20px;
  font-size: 1rem;
  background-color: #333;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#contactForm button[type="submit"]:hover {
  background-color: #BA8437;
  color: #333;
}

/* === Responsive Styling === */
@media (max-width: 600px) {
  #contactForm {
    padding: 20px;
    margin: 20px 10px;
  }

  #contactForm label {
    font-size: 0.95rem;
  }

  #contactForm input,
  #contactForm textarea,
  #contactForm select {
    font-size: 0.95rem;
  }

  #contactForm button {
    width: 100%;
  }
}

/* Responsive Styling */
@media screen and (max-width: 768px) {

    .homepage {
            background-size: auto; /* Adjusts for smaller screens */
            background-repeat: repeat; /* Allows tiling if necessary */
    }

    .menu {
        display: none;
        flex-direction: column;
        background: #444;
        position: absolute;
        top: 60px;
        right: 0;
        width: 100%;
        text-align: center;
    }
    
    .menu.show {
        display: flex;
    }  

    .hamburger {
        display: block;
    }
    .logo img {
        width: 120px; /* Reduce size for smaller screens */
    }

    .about-columns {
        flex-direction: column;
        gap: 1.5em;
    }
    .about-img-col img {
        max-width: 90vw;
    }
    .about-text-col {
         max-width: 98vw;
    }
}

/* Content */
.content {
    padding: 20px;
    text-align: center;
    font-family: 'Open Sans', sans-serif;
}

 header {
    padding-left: 20px; /* Adjust as needed*/ 
    padding-right: 20px;
} 

main {
    padding-left: 20px; /* Adjust as needed */
    padding-right: 50px;
    flex: 1
}

/*ABOUT PAGE */
.about-text {
    padding-left: 20px;
    padding-right: 20px;
    text-align: left;
    max-width: 800px;
    font-family: 'Open Sans', sans-serif;
    flex: 1;
}

.about-columns {
    display: flex;
    gap: 2.5em;
    align-items: center;
    justify-content: center;
    margin: 2em 0 2.5em 0;
}

.about-img-col img {
     max-width: 350px;
     width: 100%;
     border-radius: 18px;
     box-shadow: 0 2px 12px rgba(34,46,58,0.10);
}

.about-text-col {
     max-width: 600px;
}

/* Footer */
footer {
    background-color: #333;
    color: #FFFDFA;
    text-align: center;
    width: 100%;
    bottom: 0;
    font-family: 'Open Sans', sans-serif;
}

 .footer-socials {
    margin-top: 0.5em;
    padding-bottom: 1.2em;
  }
 .footer-socials a {
    display: inline-block;
    margin: 0 0.3em;
    color: #ffb347;
    transition: color 0.2s;
  }
        .footer-socials a:hover {
            color: #fff;
        }
  .footer-socials svg {
    vertical-align: middle;
  }
      

/* Contact Form Valid/Invalid Styles */
#contactForm input:valid,
#contactForm textarea:valid,
#contactForm select:valid {
  background-color: inherit;
  border-color: inherit;
  position: relative;
  padding-right: 2.2em;
}
#contactForm input:valid:not(:placeholder-shown)::after,
#contactForm textarea:valid:not(:placeholder-shown)::after,
#contactForm select:valid:not([value=""]):after {
  content: '\2714'; /* Green checkmark */
  color: #4CAF50;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2em;
  pointer-events: none;
}
#contactForm input:invalid:focus::after,
#contactForm textarea:invalid:focus::after,
#contactForm select:invalid:focus::after {
  content: '\2716'; /* Red X */
  color: #e53935;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2em;
  pointer-events: none;
}

.input-error,
.input-valid {
  background-color: inherit !important;
  border-color: inherit !important;
}
.input-valid-check::after {
  content: '\2714';
  color: #4CAF50;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2em;
  pointer-events: none;
}
.input-error-check::after {
  content: '\2716';
  color: #e53935;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2em;
  pointer-events: none;
}

/* === Resume Page Enhancements === */

/* Header + Profile Image */
.page-header {
    text-align: center;
    padding: 5px 20px;
}

.profile-pic img {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin: 20px auto;
    display: block;
}

/* Name Styling */
.page-header h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    margin: 0;
    color: #333;
}

/* Resume Section */
.resume-viewer {
    text-align: center;
    margin: 20px auto;
    max-width: 900px;
    padding: 0 20px;
}

.resume-viewer h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #333;
}

.resume-viewer iframe {
    width: 100%;
    height: 600px;
    border: none;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

/* Connect Section */
.contact-links {
    text-align: center;
    margin: 40px auto;
    max-width: 300px;
    padding: 0 20px;
}

.contact-links h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: #333;
}

/* Styled Links as Buttons */
.contact-links a {
    display: block;
    background-color: #333;
    color: #fff;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    margin: 10px 0;
    padding: 12px 20px;
    border-radius: 32px;
    transition: background-color 0.3s ease, color 0.3s ease;
    box-shadow: 0 2px 16px rgba(34,46,58,0.10);
}

.contact-links a:hover {
    background-color: #ffb347;
    color: #222e3a;
    box-shadow: 0 4px 24px rgba(255,179,71,0.18);
}