:root{
  --bg: #f6f8fb;
  --bg-start: rgba(135, 206, 235, 0.5); /* requested */
  --bg-end: rgba(255, 255, 255, 0.96);
  --accent: #0b4fd6;   
  --accent-strong: #053067;  /* polished blue accent */
  --muted: #6b7280;
  --error: #b00020;     /* muted gray text */
  --text: #0f1724;   
  --card: #ffffff;    /* main text color */
  --card-border: #e6eef9;
  --card-padding: 28px;
  --radius: 12px;
  --max-width: 1000px;
  --gap: 28px;
  --profile-width: 280px; /* width of vertical-rect image column */
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body{
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient( to right, #1cb5e0, #008080 );
}

#profile_card{
    width: 85%;
    background: #87ceeb;
    border-radius: 20px;
    padding: 1.5rem 2.5rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.profile_header{
    display: flex;
    align-items: center;
    gap: 3.5rem;
}

.profile_header figure img{
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #000046;
}

.bio{
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.bio_name{
    font-size: 2.3rem;
    font-weight: 600;
    color: #000046;
}

.bio_job{
    font-size: 1.2rem;
}

.short_bio{
    font-size: 1.25rem;
    line-height: 2rem;
}

.buttons{
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn{
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
    background-color: #000046;
    border: none;
    outline: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.5s ease-out;
}

.btn a{
    text-decoration: none;
    color: #fff;
}

.btn:hover{
    background-color: #1cb5e0;
    color: #000;
}

.btn a:focus, .btn a:focus-visible{
    color: #1cb5e0;
}

.btn:hover a {
    color: #000;
}

.header_info{
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 0.5rem;
    width: 100%;
}

#work_hire{
    width: 55%;
    padding: 1rem;
}

#work_hire h2{
    font-size: 1.75rem;
    font-weight: 500;
    color: #000046;
    text-align: center;
    margin-bottom: 0.8rem;
}

#work_hire .craft_info{
    font-size: 1rem;
    color: #000046;
    line-height: 1.8rem;
    margin-bottom: 1rem;
}

.social_links{
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 1.5rem;
    list-style: none;
    margin-top: 1rem ;
}

.social_links li a{
    text-decoration: none;
    cursor: pointer;
}
.social_links li a:focus img, .social_links li a:focus-visible img{
    border-radius: 4px;
    padding: 0.1rem;
    outline: 3px solid Highlight;
    outline-offset: 5px;
}

.social_links li a img{
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 50%;
}

#hobbies-dislikes{
    width: 35%;
}

.hobbies h2, .dislikes h2{
    font-size: 1.5rem;
    font-weight: 500;
    color: #000046;
    text-align: center;
    border-bottom: 2px solid #000046;
}

.hobbies_list, .dislikes_list{
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1rem auto;
}



/* About page styling */
main#about_me_page {
  max-width: 90%;
  margin: 3rem auto;
  padding: 34px;
}

/* Page heading */
main#about_me_page > h2 {
  margin: 0 0 1.125rem 5rem;
  font-size: 3.5rem;
  letter-spacing: -0.2px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #000046;
}

/* small link on heading */
main#about_me_page > h2 span a {
  font-size: 1.5rem;
  color: #000046;
  text-decoration: none;
  border-bottom: 1px dashed rgba(11,79,214,0.12);
  padding-bottom: 2px;
  transition: all 0.5s ease-out;
}
main#about_me_page > h2 span a:focus,
main#about_me_page > h2 span a:hover {
  color: #1cb5e0;
  border-bottom: 2px solid rgb(0, 0, 139);
  outline: none;
}

/* Intro section layout: two columns horizontally
   - key_information (flex: 1) + profile (fixed width)
   - align-items: stretch so profile height follows key_information
*/
#notes_image {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 2rem;
  width: 100%  ;
  margin-top: 2rem;
  margin-bottom: 3rem;
}

#key_notes{
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 58%;
    height: 100%;
}

#profile {
  width: 34%;
  overflow: hidden;
  border: 3px solid #000046;
  border-radius: 20px;
}


#profile img {
  width: 100%;
  height: 100%;
}


#key_information {
  width: 100%;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 1rem;
}

/* Each subsection spacing */
#key_information > section {
  margin-bottom: 18px;
}

#key_information > section:last-child {
    margin-bottom: 0;
}

/* About bio area */
#about_bio p {
  font-size: 1.2rem;
  margin: 0 0 8px 0;
  color: #000046;
  line-height: 1.7rem;
  letter-spacing: 0.05rem;
  text-align: justify;
}

/* Sub-headings for sections */
#Goals, #a-l-c {
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem   ;
    height: 100%;
}

#Goals h3, #a-l-c h3 {
  background-color: #000046;
  width: fit-content;
  margin: 0 0 0.8rem 0;
  padding: 0.5rem;
  font-size: 1.05rem;
  color: #1cb5e0;
  font-weight: 600;
  letter-spacing: -0.2px;
}

#Goals h3{
    border-top-right-radius: 0.8rem;
}

#a-l-c h3{
    border-bottom-left-radius: 0.8rem;
}


.my_list {
  margin: 0;
  padding: 0;
  list-style: none;
}


.my_list li {
  margin: 0 0 0.8rem 0;
  padding: 0;
  line-height: 1.5;
  color: var(--text);
}


#extra_thoughts h3, #note_to_self h3 {
    color: #000046;
    margin-bottom: 0.4rem;
    padding: 0.1rem 0;
    width: fit-content;
}


.note {
  margin: 0;
  font-style: normal;
  color: #000046;
  line-height: 1.5rem;
  letter-spacing: 0.05rem;
  text-align: justify;
  background: linear-gradient(180deg, rgba(0,128,128,0.4), transparent);
  padding: 10px;
  border-radius: 8px;
  border: 1px solid rgba(11,79,214,0.04);
}


/* Small accessibility and focus helpers */
a:focus {
  outline: 3px solid rgba(11,79,214,0.18);
  outline-offset: 2px;
}




/* ---------- Card / main container ---------- */
.contact-card,
#contact-page {
  width: 100%;
  max-width: var(--max-width);
  background-color: rgba(135, 206, 235, 0.5);
  border-radius: var(--radius);
  padding: var(--card-padding);
  box-sizing: border-box;
  box-shadow: 0 10px 30px rgba(12,18,30,0.06);
  border: 1px solid rgba(12,18,30,0.04);
}

/* ---------- Headings ---------- */
h1#contact-heading {
  margin: 0 0 8px 0;
  font-size: 1.35rem;
  line-height: 1.15;
  color: var(--accent-strong);
  font-weight: 700;
}

p.lead {
  margin: 0 0 18px 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* ---------- Form layout: two-column grid ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* two equal columns */
  gap: var(--gap);
  align-items: start;
  margin: 0;
}

/* Full-width items span both columns */
.form-grid .full,
.field.full {
  grid-column: 1 / -1;
}

/* Field wrapper */
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ---------- Labels & inputs ---------- */
label {
  font-size: 1.1rem;
  color: var(--text);
  display: inline-block;
}

input[type="text"],
input[type="email"],
textarea {
  font-size: 0.98rem;
  color: var(--text);
  background: #ffffff;
  border: 1px solid rgba(12,18,30,0.08);
  padding: 10px 12px;
  border-radius: 8px;
  box-sizing: border-box;
  transition: box-shadow 160ms ease, border-color 160ms ease;
}

/* textarea sizing */
textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.45;
}

/* Focus styles (keyboard visible) */
input:focus,
textarea:focus,
button:focus {
  outline: none;
  box-shadow: 0 6px 18px rgba(11,79,214,0.08);
  border-color: var(--accent);
}

/* Use :focus-visible where supported for better accessibility */
input:focus-visible,
textarea:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(11,79,214,0.14);
  outline-offset: 2px;
}

/* Placeholder styling */
::placeholder {
  color: #9aa3b2;
}

/* ---------- Error messages ---------- */
/* Hidden by default; show when aria-hidden="false" or .visible class is added */
.error {
  display: none;
  font-size: 0.92rem;
  color: var(--error);
  margin-top: 6px;
}

/* Show via aria attribute (your JS toggles this) */
.error[aria-hidden="false"],
.error.visible {
  display: block;
}

/* Error state for inputs */
input[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: rgba(176,0,32,0.85);
  box-shadow: 0 4px 12px rgba(176,0,32,0.06);
}

/* ---------- Success message ---------- */
.success {
  display: none;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(11,79,214,0.06);
  background: linear-gradient(90deg, rgba(11,79,214,0.04), rgba(11,79,214,0.02));
  color: var(--accent-strong);
  font-size: 0.97rem;
}

/* show when aria-hidden is false (JS should toggle this) */
.success[aria-hidden="false"],
.success.visible {
  display: block;
}

/* ---------- Actions (submit) ---------- */
.form-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
}

/* Submit button */
button[type="submit"] {
  background-color:#000046;
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.98rem;
  box-shadow: 0 6px 18px rgba(11,79,214,0.06);
  transition: all 0.5s ease-out;
}

/* hover/active states */
button[type="submit"]:hover {
  background-color: #1cb5e0;
  color: #000046;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(11,79,214,0.08);
}
button[type="submit"]:active {
  transform: translateY(0);
}

/* Disabled state example (if you choose to disable during submit) */
button[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ---------- Utility / small text ---------- */
.small-status {
  font-size: 0.95rem;
  color: var(--muted);
}

/* Keep consistent gap between form and card bottom */
.contact-card .form-actions + * {
  margin-top: 10px;
}






























































































































































@media (max-width:1024px) {
    #profile_card{
        width: 100%;
    }
}

@media (max-width:900px) {
    .profile_header figure img{
        width: 210px;
        height: 210px;
    }
    .bio_name{
        font-size: 2rem;
    }
    .short_bio{
        font-size: 1.1rem;
        line-height: 1.9rem;
        text-align: justify;
    }
    #work_hire{
        padding: 1rem 0;
    }
    #work_hire .craft_info{
        text-align: justify;
    }
    .social_links li a img{
        width: 45px;
        height: 45px;
    }
}

@media (max-width:800px) {
    .header_info{
        flex-direction: column;
        gap: 2rem;
    }
    #work_hire{
        width: 100%;
    }
    #work_hire .craft_info{
        font-size: 1.2rem;
        line-height: 2rem;
    }
    #hobbies-dislikes{
        width: 100%;
    }
    .hobbies h2, .dislikes h2{
        border: none;
        position: relative;
    }
    .hobbies h2::before, .dislikes h2::before{
        position: absolute;
        content: '';
        display: block;
        width: 90px;
        height: 3px;
        background: #000046;
        top:30px;
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width:750px) {
    .profile_header{
        flex-direction: column;
        gap: 1.5rem;
    }
    .profile_header figure img{
        width: 250px;
        height: 250px;
    }
    .bio{
        align-items: center;
        text-align: center;
    }
    .bio_name{
        font-size: 2.5rem;
    }
    .short_bio{
        font-size: 1.2rem;
        line-height: 1.9rem;
    }
    .header_info{
        border-top: 3px solid #000046;
    }
    .social_links{
        display: flex;
        justify-content:space-evenly;
    }
    .social_links li a img{
        width: 40px;
        height: 40px;
    }
    #hobbies-dislikes{
        display: flex;
        justify-content: space-around;
    }
    .hobbies_list, .dislikes_list{
        margin: 1.5rem auto;
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: center;
    }
    .hobbies_list li, .dislikes_list li{
        font-size: 1.1rem;
        text-align: center;
    }
}

@media (max-width:500px) {
    body{
        padding: 0;
    }
    #profile_card{
        padding: 1rem 1.5rem;
        border-radius: 0px;
        background-color: rgba(135, 206, 235, 0.5);
    }
    .profile_header figure img{
        width: 200px;
        height: 200px;
    }
    .bio_name{
        font-size: 2rem;
    }
    .short_bio{
        font-size: 1rem;
        line-height: 1.8rem;
    }
    #work_hire .craft_info{
        font-size: 1rem;
        line-height: 1.8rem;
        text-align: center;
    }
    #hobbies-dislikes{
        display: flex;
        flex-direction: column;

    }
    .hobbies_list li, .dislikes_list li{
        font-size: 1.3rem;
    }
}

@media (max-width:380px) {
    body{
        padding:0;
    }
    #profile_card{
        padding: 0rem;
    }
    .profile_header figure img{
        width: 150px;
        height: 150px;
    }
    .bio{
        margin: auto 0.8rem;
    }
    .bio_name{
        font-size: 1.5rem;
    }
    .short_bio{
        font-size: 0.9rem;
        line-height: 1.6rem;
    }
    #work_hire .craft_info{
        font-size: 1rem;
        line-height: 1.8rem;
        margin: auto 0.5rem 1rem 0.5rem;
    }
    .social_links{
        display: flex;
        justify-content: center;
        gap: 1rem;
    }
    .social_links li a img{
        width: 25px;
        height: 25px;
    }
    .hobbies_list li, .dislikes_list li{
        font-size: 1rem;
    }
}



/** About page responsive styling */

@media (max-width: 1024px) {
  main#about_me_page {
    padding: 28px;
    margin: 2.25rem auto;
    max-width: 92%;
  }

  #notes_image {
    gap: 1.25rem;
  }

  /* Make key_notes a bit wider and profile a touch smaller */
  #key_notes { width: 62%; }
  #profile { width: 36%; }

  /* keep headings readable */
  main#about_me_page > h2 {
    font-size: 2.6rem;
    margin: 0 0 1rem 3.5rem;
  }
}

@media(max-width:890px) {
  #notes_image {
    flex-direction: column-reverse; /* profile above key_notes */
    align-items: stretch;
    gap: 1rem;
  }

  /* full width columns within notes image area */
  #key_notes,
  #profile {
    width: 100%;
  }

  /* Make profile a vertical-rect with a reasonable height */
  #profile {
    height: 340px;        /* fixed visual rectangle on tablets */
    border-radius: 14px;
  }
  #profile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
}


@media (max-width: 768px) {
  main#about_me_page {
    padding: 22px;
    margin: 1.75rem auto;
  }


  /* Adjust heading and spacing */
  main#about_me_page > h2 {
    font-size: 2.2rem;
    margin: 0 0 0.9rem 1.25rem;
  }


   #key_information {
    flex-direction: column;
    align-items: stretch; /* keep stretching behavior for consistency */
    gap: 0.9rem;
  }

  #Goals, #a-l-c {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: start;
    padding: 0.9rem;
    min-height: auto;
  }


  /* make lists comfortable to read on small devices */
  .my_list {
    padding-left: 1rem;
    font-size: 0.98rem;
    max-height: none;  /* let them grow naturally in the document flow */
  }

}

/* ---------------------------
   Large phones / small tablets (<= 600px)
   Collapse Goals & Area-of-low-confidence to stacked rows
   --------------------------- */
@media (max-width: 600px) {
  main#about_me_page {
    padding: 18px;
    margin: 1.25rem auto;
  }

  /* Ensure profile remains on top (column-reverse still applies) */
  #notes_image {
    gap: 0.75rem;
  }

  /* Reduce heading sizes for compact screens */
  main#about_me_page > h2 {
    font-size: 1.6rem;
    margin: 0 0 0.6rem 0.5rem;
  }

  main#about_me_page > h2 span a{
    font-size: 1rem;
  }

  /* Slightly reduce note paragraph text */
  .note {
    font-size: 0.95rem;
    padding: 8px;
  }

  /* profile visual size for phones */
  #profile {
    height: 300px;
    border-radius: 12px;
  }
  #profile img {
    height: 100%;
  }
}

/* ---------------------------
   Small phones (<= 420px)
   Tighten padding and scale typography for very small screens
   --------------------------- */
@media (max-width: 420px) {
  main#about_me_page {
    padding: 14px;
  }

  main#about_me_page > h2 {
    font-size: 1.35rem;
    margin: 0 0 0.5rem 0.5rem;
    line-height: 1.15;
  }

  /* slightly smaller profile height for very small devices */
  #profile {
    height: 240px;
  }

  /* increase tap targets and spacing a little for finger use */
  #Goals h3, #a-l-c h3 {
    padding: 0.45rem 0.55rem;
    font-size: 0.95rem;
  }

  #Goals, #a-l-c{
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .my_list li {
    margin-bottom: 0.7rem;
    font-size: 0.95rem;
  }
}

/* ---------------------------
   Accessibility improvements for touch devices
   --------------------------- */
@media (hover: none) {
  /* make interactive targets easier to tap on touch-only devices */
  main#about_me_page > h2 span a {
    padding: 6px 10px;
    border-radius: 6px;
  }
}




/* RESPONSIVE STYLES FOR CONTACT FORM */
/* LARGE TABLETS / small laptops (<= 1024px) */
@media (max-width: 1024px) {
  .contact-card,
  #contact-page {
    padding: 22px;
    max-width: 92%;
  }

  h1#contact-heading { font-size: 1.25rem; }

  .form-grid {
    gap: 14px;
    grid-template-columns: 1fr 1fr; /* keep two columns but slightly tighter */
  }

  .form-actions {
    margin-top: 14px;
    gap: 10px;
  }
}

/* TABLETS / LARGE PHONES (<= 768px)
   - Stack the grid into a single column (form fields full width)
   - Make submit area stack vertically for easier tapping
*/
@media (max-width: 768px) {
  .contact-card,
  #contact-page {
    padding: 18px;
  }

  h1#contact-heading { font-size: 1.15rem; }

  /* switch to single-column flow for readability */
  .form-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .form-grid .full,
  .field.full { grid-column: auto; }

  /* Actions stack */
  .form-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-top: 16px;
  }

  /* Make submit more prominent on tablet */
  button[type="submit"] {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
  }

  textarea { min-height: 160px; }
}

/* LARGE PHONES / SMALL SCREENS (<= 600px)
   - Increase tap targets, slightly larger inputs, comfortable spacing
*/
@media (max-width: 600px) {
  .contact-card,
  #contact-page {
    padding: 14px;
  }

  h1#contact-heading { font-size: 1.05rem; }

  .form-grid { gap: 10px; }

  label { font-size: 0.98rem; }
  input[type="text"],
  input[type="email"],
  textarea {
    padding: 12px 14px;
    font-size: 1rem;
  }

  textarea { min-height: 140px; }

  /* Submit button full-width and touch-friendly */
  button[type="submit"] {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    border-radius: 10px;
  }

  /* Keep success & error readable */
  .error, .success { font-size: 0.98rem; }
}

/* VERY SMALL PHONES (<= 420px)
   - Tighten padding, slightly smaller typographic scale
*/
@media (max-width: 420px) {
  .contact-card,
  #contact-page {
    padding: 12px;
  }

  h1#contact-heading { font-size: 1rem; }

  label { font-size: 0.96rem; }
  input[type="text"],
  input[type="email"],
  textarea { font-size: 0.96rem; padding: 10px 12px; }

  textarea { min-height: 120px; }

  button[type="submit"] {
    padding: 12px;
    font-size: 0.98rem;
    border-radius: 10px;
  }
}

/* TOUCH-ONLY DEVICES: remove hover transforms and increase hit areas */
@media (hover: none) {

  /* enlarge interactive targets slightly */
  input[type="text"],
  input[type="email"],
  textarea,
  button[type="submit"] {
    touch-action: manipulation;
  }
}

/* Reaffirm focus-visible for small screens */
@media (max-width: 768px) {
  input:focus-visible,
  textarea:focus-visible,
  button:focus-visible {
    outline: 3px solid rgba(11,79,214,0.16);
    outline-offset: 2px;
  }
}

