/* GENERAL */


@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap");


* {
    margin: 0;
    padding: 0;
}

  body {
    font-family: "Poppins", sans-serif ;
  }

  html {
    scroll-behavior: smooth;
  }

  p {
    color: rgb(85, 85, 85);
  }

  /* TRANSITION */

 a, .btn {
   transition: all 300ms ease; 
 } 

 /* DESKTOP NAV */ 

nav, .nav-links {
display: flex;
}

nav {
    justify-content: space-around;
    align-items: center;
    height: 17vh;
}

.nav-links {
    gap: 2rem;
    list-style: none;
    font-size: 1.5rem;
}

a {
    color: black;
    text-decoration: none;
    text-decoration-color: white;
}

a:hover {
    color: gray;
    text-decoration: underline;
    text-underline-offset: 1rem;
    text-decoration-color: rgb(181,181,181);
}

.logo {
    font-size: 2rem;
}

.logo:hover {
cursor: default;
}

/*HAMBURGER MENU */
#hamburger-nav {
    display: none;
}

.hamburger-menu {
    position: relative;
    display: inline-block;
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 24px;
    width: 30px;
    cursor: pointer;
}

.hamburger-icon span {
    width: 100%;
    height: 2px;
    background-color: black;
    transition: all 0.3 ease-in-out;
}

.menu-links {
    display: none;
     /* anchor the menu to the right side of the viewport near the profile section */
    position: fixed;
    top: 8vh; /* aligns with the profile area (adjustable) */
    right: 2rem;
    background-color: #ffffff;
    width: auto;
    max-height: 0;
    overflow: hidden;
    transition: all 0.25s ease-in-out;
    opacity: 0;
    visibility: hidden;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    z-index: 9999;
    padding: 0.25rem 0;
}

.menu-links a {
    display: block;
    padding: 0.5rem 1.25rem;
    text-align: left;
    font-size: 1.25rem;
    color: black;
    text-decoration: none;
    transition: background-color 0.2s ease-in-out;
}

.menu-links li {
    list-style: none;
}

.menu-links.open {
    display: flex;
    flex-direction: column;
    max-height: 400px;
    opacity: 1;
    visibility: visible;
}

.menu-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.hamburger-icon.open span:first-child {
    transform: rotate(45deg) translate(7px,7px);
} 

.hamburger-icon.open span:nth-child(2) {
    opacity: 0;
}

.hamburger-icon.open span:last-child {
    transform: rotate(-45deg) translate(10px,-5px);
}

.hamburger-icon-span:first-child {
    transform: none;
}

.hamburger-icon-span:first-child {
    opacity: 1;
}

/* SECTIONS */

section {
    padding-top: 4vh;
    height: 96vh;
    margin: 0 10rem;
    box-sizing: border-box;
    min-height: fit-content;
}

.section-container {
display: flex;
}

/* PROFILE SECTION */

 #profile {
    display: flex;
justify-content: center;
gap: 5rem;
height: 10vh;
}

.section__pic-container {
    display: flex;
    height: 400px;
    width: 400px;
    margin: 0 auto;
}

.section__text {
align-self: center;
text-align: center;
}

.section__text p {
    font-weight: 600;
}

.section__text__p1 {
    text-align: center;
}

.section__text__p2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.title {
    font-size: 3rem;
    text-align: center;
}

#socials-container {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    gap: 1rem;
}

/* ICONS */

.icon {
    cursor: pointer; 
    height: 2rem;
}

/* BUTTONS */

.btn-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn {
    transition: all 300ms ease;
    padding: 1rem;
    width: 8rem;
    border-radius: 2rem;
}

.btn-color-1,
 .btn-color-2 {
    border: rgb(53,53,53) 0.1rem solid;
}

.btn-color-1:hover
 .btn-color-2:hover {
    cursor: pointer;
}

.btn-color-1,
 .btn-color-2:hover {
    background: rgb(53,53,53);
    color: white;
}

.btn-color-1:hover {
    background: rgb(0,0,0);
}

.btn-color-2 {
    background: none;
}

.btn-color-2:hover {
    border: rgb(255,255,255) 0.1rem solid;
}

.btn-container {
    gap: 1rem;
}

/* ABOUT SECTION */

#about {
    position: relative;
}
    
.about-containers {
    gap: 2rem;
    margin-bottom: 2rem;
    margin-top: 2rem;
}

/* Center the experience boxes specifically when inside #experience */
#experience .about-containers {
    display: flex;
    justify-content: center;
    gap: 2rem;
    align-items: start;
    flex-wrap: wrap;
}

#experience .details-container {
    max-width: 28rem;
    flex: 0 1 28rem;
}

@media (max-width: 900px) {
    #experience .about-containers {
        flex-direction: column;
        align-items: stretch;
    }
    #experience .details-container {
        max-width: none;
        width: 100%;
    }
}

.about-details-container {
    justify-content: center;
    flex-direction: column;
}

.about-details-container, .about-details-container {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.about-pics {
    border-radius: 2rem;
}

.arrow {
    position: absolute;
    right: -5rem;
    bottom: 2.5rem;
}

.details-container {
    padding: 1.5rem;
    flex: 1;
    background: white;
    border-radius: 2rem;
    border-width: 0.1rem solid rgb(163,163,163);
    border-style: solid;
    border-image: initial;
    border: rgb(53, 53, 53) 0.5rem solid;
    border-color: rgb(163,163,163);
    text-align: center;
}


.section-container {
    display: flex;
    gap: 4rem;
    height: 80%;
}

.section__pic-container {
    height: 400px;
    width: 400px;
    margin: 0 auto;
}

.text-container {
    padding: 0 2rem;
    text-align: justify;
} 
/*EXPERIENCE SECTION */

#experience {
    position: relative;
}

.experience-sub-title {
    color: rgb(85,85,85);
    font-weight: 800;
    font-size: 1.75rem;
    margin-bottom: 2rem;
}

.experience-details-container {
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.article-container {
    display: flex;
    text-align: initial;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 2.5rem;
    justify-content: space-around;
}

article {
    display: flex;
    width: 10rem;
    justify-content: space-around;
    gap: 0.5rem;
}

article .icon {
    cursor: default;
}

/* PROJECTS SECTION */

#projects {
    position: relative;
    scroll-margin-top: 70px;
}

.color-container {
    border-color: rgb(163,163,163);
    background: rgb(250,250,250);
}

.project-img {
    border-radius: 2rem;
    width: 90%;
    height: 90%;
}

.project-title {
    margin: 1rem;
    color: black;
}

.project-btn {
    color: black;
    border-color: rgb(163,163,163);
}

/* Projects grid: three columns on desktop, responsive stack on small screens */
.about-containers { /* reuse the existing container class used in projects */
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.details-container.color-container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.article-container { /* ensure project images scale inside their card */
    display: block;
}

.project-img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

@media (max-width: 900px) {
    .about-containers {
        grid-template-columns: 1fr;
    }
    #projects { padding-bottom: 4rem; }
}

/* CONTACT */

#contact {
    display: flex;
    justify-content: center;
    flex-direction: column;
    height: 10vh;
}

.contact-info-upper-container {
    display: flex;
    justify-content: center;
    border-radius: 2rem;
    border: rgb(53, 53, 53) 0.1rem solid;
    border-color: rgb(163,163,163);
    background:(250,250,250);
    margin: 2rem auto;
    padding: 0.5rem;
}

.contact-info-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem;
}

.contact-info-container-p {
    font-size: smaller;
}

.contact-icon {
    cursor: default;
}

.email.icon {
    height: 2.5rem;
}
.contact-form-wrapper {
    max-width: 960px;
    margin: 0 auto 2.5rem;
    padding: 0 1rem;
    box-sizing: border-box;
}

.contact-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem 1rem;
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(16,24,40,0.06);
    border: 1px solid rgba(16,24,40,0.06);
    align-items: start;
}

.contact-form label {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    color: #222;
    margin-bottom: 0.25rem;
}

.contact-form label span[aria-hidden="true"] {
    color: #d23f31;
    margin-left: 0.25rem;
    font-weight: 700;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: 0.75rem 0.85rem;
    font-size: 1rem;
    border-radius: 8px;
    border: 1px solid #dcdcdc;
    background: #fbfbfb;
    color: #111;
    box-sizing: border-box;
    font-family: inherit;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
    line-height: 1.45;
}

.contact-form textarea,
.contact-form .form-status,
.contact-form .btn-container {
    grid-column: 1 / -1;
}

.contact-form .btn {
    padding: 0.9rem 1.25rem;
    border-radius: 10px;
    width: auto;
    min-width: 160px;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(10, 20, 50, 0.06);
}

.contact-form .btn-container {
    display: flex;
    justify-content: center;
    margin-top: 0.5rem;
}

.contact-form .form-status {
    text-align: center;
    font-size: 0.95rem;
    color: #2d6a4f; /* success green */
    min-height: 1.25rem;
}

.contact-form input.error,
.contact-form textarea.error {
    border-color: #d23f31;
    box-shadow: 0 0 0 3px rgba(210,63,49,0.06);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #4b9cff;
    box-shadow: 0 6px 18px rgba(75,156,255,0.08);
}

.contact-info-upper-container {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.contact-form .helper {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    grid-column: 1 / -1;
    margin-top: 0.25rem;
}

// ...existing code...
/* CONTACT FORM STYLES - professional, responsive */

.contact-form-wrapper {
    max-width: 960px;
    margin: 0 auto 2.5rem;
    padding: 0 1rem;
    box-sizing: border-box;
}

.contact-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem 1rem;
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(16,24,40,0.06);
    border: 1px solid rgba(16,24,40,0.06);
    align-items: start;
}

/* Labels */
.contact-form label {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    color: #222;
    margin-bottom: 0.25rem;
}

/* Required marker */
.contact-form label span[aria-hidden="true"] {
    color: #d23f31;
    margin-left: 0.25rem;
    font-weight: 700;
}

/* Inputs & textarea */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: 0.75rem 0.85rem;
    font-size: 1rem;
    border-radius: 8px;
    border: 1px solid #dcdcdc;
    background: #fbfbfb;
    color: #111;
    box-sizing: border-box;
    font-family: inherit;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
    line-height: 1.45;
}

/* Make the message field span full width */
.contact-form textarea,
.contact-form .form-status,
.contact-form .btn-container {
    grid-column: 1 / -1;
}

/* Button styling (enhance existing .btn rules) */
.contact-form .btn {
    padding: 0.9rem 1.25rem;
    border-radius: 10px;
    width: auto;
    min-width: 160px;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(10, 20, 50, 0.06);
}

/* Center button container */
.contact-form .btn-container {
    display: flex;
    justify-content: center;
    margin-top: 0.5rem;
}

/* Status message */
.contact-form .form-status {
    text-align: center;
    font-size: 0.95rem;
    color: #2d6a4f; /* success green */
    min-height: 1.25rem;
}

/* Error state helper (JS can toggle .error on inputs) */
.contact-form input.error,
.contact-form textarea.error {
    border-color: #d23f31;
    box-shadow: 0 0 0 3px rgba(210,63,49,0.06);
}

/* Focus state */
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #4b9cff;
    box-shadow: 0 6px 18px rgba(75,156,255,0.08);
}

/* Contact info area (left/top of form) */
.contact-info-upper-container {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

/* Small helper text */
.contact-form .helper {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    grid-column: 1 / -1;
    margin-top: 0.25rem;
}

/* Responsive: stack on small screens */
@media (max-width: 900px) {
    .contact-form {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    .contact-form .btn {
        width: 100%;
        min-width: 0;
    }
    .contact-form .helper {
        text-align: left;
    }
}
```// filepath: c:\Users\mdoug\OneDrive\Documents\GitHub\html-css-js-portfolio-tutorial\style.css
// ...existing code...
/* CONTACT FORM STYLES - professional, responsive */

.contact-form-wrapper {
    max-width: 960px;
    margin: 0 auto 2.5rem;
    padding: 0 1rem;
    box-sizing: border-box;
}

.contact-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem 1rem;
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(16,24,40,0.06);
    border: 1px solid rgba(16,24,40,0.06);
    align-items: start;
}

/* Labels */
.contact-form label {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    color: #222;
    margin-bottom: 0.25rem;
}

/* Required marker */
.contact-form label span[aria-hidden="true"] {
    color: #d23f31;
    margin-left: 0.25rem;
    font-weight: 700;
}

/* Inputs & textarea */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: 0.75rem 0.85rem;
    font-size: 1rem;
    border-radius: 8px;
    border: 1px solid #dcdcdc;
    background: #fbfbfb;
    color: #111;
    box-sizing: border-box;
    font-family: inherit;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
    line-height: 1.45;
}

/* Make the message field span full width */
.contact-form textarea,
.contact-form .form-status,
.contact-form .btn-container {
    grid-column: 1 / -1;
}

/* Button styling (enhance existing .btn rules) */
.contact-form .btn {
    padding: 0.9rem 1.25rem;
    border-radius: 10px;
    width: auto;
    min-width: 160px;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(10, 20, 50, 0.06);
}

/* Center button container */
.contact-form .btn-container {
    display: flex;
    justify-content: center;
    margin-top: 0.5rem;
}

/* Status message */
.contact-form .form-status {
    text-align: center;
    font-size: 0.95rem;
    color: #2d6a4f; /* success green */
    min-height: 1.25rem;
}

/* Error state helper (JS can toggle .error on inputs) */
.contact-form input.error,
.contact-form textarea.error {
    border-color: #d23f31;
    box-shadow: 0 0 0 3px rgba(210,63,49,0.06);
}

/* Focus state */
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #4b9cff;
    box-shadow: 0 6px 18px rgba(75,156,255,0.08);
}

/* Contact info area (left/top of form) */
.contact-info-upper-container {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

/* Small helper text */
.contact-form .helper {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    grid-column: 1 / -1;
    margin-top: 0.25rem;
}

/* Responsive: stack on small screens */
@media (max-width: 900px) {
    .contact-form {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    .contact-form .btn {
        width: 100%;
        min-width: 0;
    }
    .contact-form .helper {
        text-align: left;
    }
}

.contact-form-wrapper {
    max-width: 960px;
    margin: 0 auto 2.5rem;
    padding: 0 1rem;
    box-sizing: border-box;
}

.contact-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem 1rem;
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(16,24,40,0.06);
    border: 1px solid rgba(16,24,40,0.06);
    align-items: start;
}

````css
// ...existing code...
/* CONTACT FORM STYLES - professional, responsive */

.contact-form-wrapper {
    max-width: 960px;
    margin: 0 auto 2.5rem;
    padding: 0 1rem;
    box-sizing: border-box;
}

.contact-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem 1rem;
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(16,24,40,0.06);
    border: 1px solid rgba(16,24,40,0.06);
    align-items: start;
}

/* Labels */
.contact-form label {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    color: #222;
    margin-bottom: 0.25rem;
}

/* Required marker */
.contact-form label span[aria-hidden="true"] {
    color: #d23f31;
    margin-left: 0.25rem;
    font-weight: 700;
}

/* Inputs & textarea */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: 0.75rem 0.85rem;
    font-size: 1rem;
    border-radius: 8px;
    border: 1px solid #dcdcdc;
    background: #fbfbfb;
    color: #111;
    box-sizing: border-box;
    font-family: inherit;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
    line-height: 1.45;
}

/* Make the message field span full width */
.contact-form textarea,
.contact-form .form-status,
.contact-form .btn-container {
    grid-column: 1 / -1;
}

/* Button styling (enhance existing .btn rules) */
.contact-form .btn {
    padding: 0.9rem 1.25rem;
    border-radius: 10px;
    width: auto;
    min-width: 160px;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(10, 20, 50, 0.06);
}

/* Center button container */
.contact-form .btn-container {
    display: flex;
    justify-content: center;
    margin-top: 0.5rem;
}

/* Status message */
.contact-form .form-status {
    text-align: center;
    font-size: 0.95rem;
    color: #2d6a4f; /* success green */
    min-height: 1.25rem;
}

/* Error state helper (JS can toggle .error on inputs) */
.contact-form input.error,
.contact-form textarea.error {
    border-color: #d23f31;
    box-shadow: 0 0 0 3px rgba(210,63,49,0.06);
}

/* Focus state */
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #4b9cff;
    box-shadow: 0 6px 18px rgba(75,156,255,0.08);
}

/* Contact info area (left/top of form) */
.contact-info-upper-container {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

/* Small helper text */
.contact-form .helper {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    grid-column: 1 / -1;
    margin-top: 0.25rem;
}

/* Responsive: stack on small screens */
@media (max-width: 900px) {
    .contact-form {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    .contact-form .btn {
        width: 100%;
        min-width: 0;
    }
    .contact-form .helper {
        text-align: left;
    }
}
```// filepath: c:\Users\mdoug\OneDrive\Documents\GitHub\html-css-js-portfolio-tutorial\style.css
// ...existing code...
/* CONTACT FORM STYLES - professional, responsive */

.contact-form-wrapper {
    max-width: 960px;
    margin: 0 auto 2.5rem;
    padding: 0 1rem;
    box-sizing: border-box;
}

.contact-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem 1rem;
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(16,24,40,0.06);
    border: 1px solid rgba(16,24,40,0.06);
    align-items: start;
}

/* Labels */
.contact-form label {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    color: #222;
    margin-bottom: 0.25rem;
}

/* Required marker */
.contact-form label span[aria-hidden="true"] {
    color: #d23f31;
    margin-left: 0.25rem;
    font-weight: 700;
}

/* Inputs & textarea */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: 0.75rem 0.85rem;
    font-size: 1rem;
    border-radius: 8px;
    border: 1px solid #dcdcdc;
    background: #fbfbfb;
    color: #111;
    box-sizing: border-box;
    font-family: inherit;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
    line-height: 1.45;
}

/* Make the message field span full width */
.contact-form textarea,
.contact-form .form-status,
.contact-form .btn-container {
    grid-column: 1 / -1;
}

/* Button styling (enhance existing .btn rules) */
.contact-form .btn {
    padding: 0.9rem 1.25rem;
    border-radius: 10px;
    width: auto;
    min-width: 160px;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(10, 20, 50, 0.06);
}

/* Center button container */
.contact-form .btn-container {
    display: flex;
    justify-content: center;
    margin-top: 0.5rem;
}

/* Status message */
.contact-form .form-status {
    text-align: center;
    font-size: 0.95rem;
    color: #2d6a4f; /* success green */
    min-height: 1.25rem;
}

/* Error state helper (JS can toggle .error on inputs) */
.contact-form input.error,
.contact-form textarea.error {
    border-color: #d23f31;
    box-shadow: 0 0 0 3px rgba(210,63,49,0.06);
}

/* Focus state */
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #4b9cff;
    box-shadow: 0 6px 18px rgba(75,156,255,0.08);
}

/* Contact info area (left/top of form) */
.contact-info-upper-container {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

/* Small helper text */
.contact-form .helper {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    grid-column: 1 / -1;
    margin-top: 0.25rem;
}

/* Responsive: stack on small screens */
@media (max-width: 900px) {
    .contact-form {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    .contact-form .btn {
        width: 100%;
        min-width: 0;
    }
    .contact-form .helper {
        text-align: left;
    }
}

/* CONTACT FORM STYLES - professional, responsive */

.contact-form-wrapper {
    max-width: 960px;
    margin: 0 auto 2.5rem;
    padding: 0 1rem;
    box-sizing: border-box;
}

.contact-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem 1rem;
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(16,24,40,0.06);
    border: 1px solid rgba(16,24,40,0.06);
    align-items: start;
}

/* Labels */
.contact-form label {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    color: #222;
    margin-bottom: 0.25rem;
}

/* Required marker */
.contact-form label span[aria-hidden="true"] {
    color: #d23f31;
    margin-left: 0.25rem;
    font-weight: 700;
}

/* Inputs & textarea */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: 0.75rem 0.85rem;
    font-size: 1rem;
    border-radius: 8px;
    border: 1px solid #dcdcdc;
    background: #fbfbfb;
    color: #111;
    box-sizing: border-box;
    font-family: inherit;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
    line-height: 1.45;
}

/* Make the message field span full width */
.contact-form textarea,
.contact-form .form-status,
.contact-form .btn-container {
    grid-column: 1 / -1;
}

/* Button styling (enhance existing .btn rules) */
.contact-form .btn {
    padding: 0.9rem 1.25rem;
    border-radius: 10px;
    width: auto;
    min-width: 160px;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(10, 20, 50, 0.06);
}

/* Center button container */
.contact-form .btn-container {
    display: flex;
    justify-content: center;
    margin-top: 0.5rem;
}

/* Status message */
.contact-form .form-status {
    text-align: center;
    font-size: 0.95rem;
    color: #2d6a4f; /* success green */
    min-height: 1.25rem;
}

/* Error state helper (JS can toggle .error on inputs) */
.contact-form input.error,
.contact-form textarea.error {
    border-color: #d23f31;
    box-shadow: 0 0 0 3px rgba(210,63,49,0.06);
}

/* Focus state */
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #4b9cff;
    box-shadow: 0 6px 18px rgba(75,156,255,0.08);
}

/* Contact info area (left/top of form) */
.contact-info-upper-container {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

/* Small helper text */
.contact-form .helper {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    grid-column: 1 / -1;
    margin-top: 0.25rem;
}

#contact {
    padding: 3.5rem 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(180deg, #f6f8fb 0%, #ffffff 100%);
    height: auto; /* allow content to size naturally */
}

/* Card wrapper: visually cropped, centered */
.contact-form-wrapper {
    width: 100%;
    max-width: 760px; /* narrower card */
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

/* Make the form itself the card */
.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.25rem;
    background: linear-gradient(180deg,#ffffff 0%, #fbfdff 100%);
    padding: 1.75rem;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(16,24,40,0.10);
    border: 1px solid rgba(16,24,40,0.06);
    align-items: start;
}

.contact-form label {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    color: #222;
    margin-bottom: 0.4rem;
}

/* Inputs: crisp edges, subtle inner shadow */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 0.75rem 0.85rem;
    font-size: 1rem;
    border-radius: 10px;
    border: 1px solid #e6e9ef;
    background: #ffffff;
    color: #111;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}

/* Message field spans full width */
.contact-form textarea,
.contact-form .form-status,
.contact-form .btn-container {
    grid-column: 1 / -1;
}

.contact-form .btn {
    background: #0b61ff;
    color: #fff;
    border: none;
    padding: 0.9rem 1.25rem;
    border-radius: 10px;
    min-width: 160px;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(11,97,255,0.18);
    transition: transform .18s ease, box-shadow .18s ease;
}
.contact-form .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(11,97,255,0.20);
}

/* Status message styling */
.contact-form .form-status {
    text-align: center;
    font-size: 0.95rem;
    color: #2d6a4f;
    min-height: 1.25rem;
    margin-top: 0.25rem;
}

/* Compact contact info area above the card */
.contact-info-upper-container {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

@media (max-width: 900px) {
    .contact-form {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 0.75rem;
    }
    .contact-form .btn { width: 100%; min-width: 0; }
    #contact { padding: 2rem 1rem; }
}

/* FOOTER SECTION */

footer {
    height: 26vh;
    margin: 0 1rem;
}

footer p {
    text-align: center;
}

/* Responsive: show hamburger on small screens */
@media (max-width: 900px) {
    #desktop-nav { display: none; }
    #hamburger-nav { display: flex; align-items: center; justify-content: space-between; padding: 0 1rem; }
    section { margin: 0 1.5rem; }
    /* move the fixed menu down slightly on small screens */
    .menu-links { top: 12vh; right: 1rem; }
    #profile { flex-direction: column; gap: 1rem; align-items: center; }
    .section__pic-container { margin: 0; }
    .section__text { text-align: center; }
}