
:root {
    --light-grey: #f2f2f2;
    --white: #ffffff;
    --text-color: #333333;
    --navy-blue: #001f3f;
    --hover-highlight: #00509e;
    --box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

header h1 {
    display: flex;
    align-items: center;
    gap: 8px; /* Adjust spacing between logo and text as desired */
}

.logo {
    height: 2em; /* Matches the height of the text */
    width: auto; /* Maintains the image's aspect ratio */
}


header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.2rem 2rem;
    background: var(--navy-blue);
    color: var(--white);
    box-shadow: var(--box-shadow);
}

header nav a {
    color: var(--white);
    text-decoration: none;
    margin: 0 1rem;
    font-weight: bold;
    transition: color 0.3s;
}

header nav a:hover {
    color: var(--hover-highlight);
}

.hero {
    text-align: center;
    padding: 5rem 1rem;
    height: 200px;
    background: var(--light-grey);
    color: var(--text-color);
    position: relative;
    overflow: hidden;
}

.headshot-container {
    position: absolute;
    left: 10px; /* Adjust if needed for desired spacing from left */
    top: 120px; /* Fixed distance from the top, always the same on every screen */
    width: min(50vw, 400px);
    height: min(50vw, 400px);
    border-radius: 50%;
    border: 10px solid white;
    overflow: hidden;
    background: var(--light-grey);
    z-index: 2;
}


/* Position and style the Mechanical Engineer text below the headshot */
.section-title1 {
    margin: 0;
    font-size: 2rem;
    color: var(--navy-blue);
  }



.headshot-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.marquee {
    position: absolute;
    left: 420px;
    top: 50%;
    transform: translateY(-50%);
    width: calc(100% - 420px);
    overflow: hidden;
    height: 300px;
    display: flex;
    align-items: center;
}

.marquee-content {
    display: flex;
    animation: marquee 30s linear infinite;
}

.box {
    flex-shrink: 0;
    width: 300px;
    height: 300px;
    margin-right: 20px;
    background: var(--white);
    border-radius: 16px;
    text-align: center;
    position: relative;
    overflow: hidden; /* Ensures rounded corners always visible 
    box-shadow: var(--box-shadow);*/
}

.box img {
    position: absolute;
    top: 20px; /* Adjust this to position image vertically */
    left: 50%;
    transform: translateX(-50%);
    width: 160px; /* Adjust width as needed */
    height: 160px; /* Adjust height as needed */
    object-fit: contain;
    z-index: 1;
    opacity: 0.9; /* Optional slight transparency for background effect */
}

.box h3 {
    position: relative;
    z-index: 2;
    margin-top: 170px; /* Adjust this to move text vertically down */
    margin-bottom: 5px;
}

.box p {
    position: relative;
    font-size: 13px;
    z-index: 2;
    margin-top: 0;
    padding: 0 5px; /* Adds horizontal spacing if needed */
}

.marquee::before,
.marquee::after {
    content: "";
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 5;
}

.marquee::before {
    left: 0;
    background: linear-gradient(to right, var(--light-grey), transparent);
}

.marquee::after {
    right: 0;
    background: linear-gradient(to left, var(--light-grey), transparent);
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.about-box {
    background: var(--light-grey);
    border-radius: 16px;
    padding: 2rem;
    font-size: 1rem;
    line-height: 1.7;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  }

@media (max-width: 600px) {
    .about-box {
        width: 95%;          /* Slightly wider on smaller screens for better readability */
        padding: 15px;       /* Reduced padding on smaller screens */
    }
}

.about-section {
    display: flex;
    flex-direction: column;
    margin-left: 440px; /* shifts content away from headshot */
    padding-right: 2rem;
  }
  
  .title-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
  }
  
  .title-bar {
    width: 8px;
    height: 40px;
    background-color: var(--navy-blue);
    border-radius: 4px;
  }
  
  .about-content {
    max-width: 700px;
    flex: 1;
    min-width: 280px;
  }


.section {
    padding: 3rem 2rem;
    background: var(--white);
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    color: var(--text-color);
}

/* Side-by-side layout next to headshot */
.split-about {
    display: flex;
    justify-content: space-between;
    align-items: stretch;       /* 🟡 Left side stays top-aligned */
    max-width: 1800px;
    margin: 60px auto;
    padding: 3rem 2rem;
    gap: 2rem;
    min-height: 600px;          /* Optional: helps with centering effect */
  }
  
  .right-column {
    display: flex;
    justify-content: center;
    align-items: center;        /* ✅ Vertically center only this column */
  }
  
  .left-column,
  .right-column {
    flex: 1;
    min-width: 300px;
  }

  
  /*
  .about-box {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    font-size: 1rem;
    line-height: 1.7;
    box-shadow: none;
  }*/
  
  /* Responsive fallback */
  @media (max-width: 1024px) {
    .split-about {
      flex-direction: column;
      max-width: 90%;
      padding: 0 1rem;
    }
  
    .left-column,
    .right-column {
      width: 100%;
    }
  }
  
  
  /*
  .section-title1 {
    position: absolute;
    bottom: -50px; /* adjust to fine-tune vertical spacing 
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--navy-blue);
    color: white;
    font-size: 1.8rem;
    padding: 10px 20px;
    border-radius: 12px;
    display: inline-block;
    white-space: nowrap;
  }*/
  

.portfolio {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.portfolio-item {
    background: var(--light-grey);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0px 6px 8px rgba(0, 0, 0, 0.2);
}

.contact-form {
    display: flex;
    flex-direction: column;
    max-width: 600px;
    margin: 0 auto;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 0.75rem;
    border: 1px solid var(--light-grey);
    border-radius: 5px;
    font-size: 1rem;
    box-shadow: inset 0px 2px 4px rgba(0, 0, 0, 0.1);
}

.contact-form button {
    padding: 0.75rem;
    background: var(--navy-blue);
    color: var(--white);
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.contact-form button:hover {
    background: var(--hover-highlight);
}

footer {
    text-align: center;
    padding: 1rem;
    background: var(--light-grey);
    color: var(--text-color);
    margin-top: 2rem;
}

.resume-section {
    text-align: center;
    padding-top: 2rem;
  }
  
  .resume-container {
    display: flex;
    justify-content: center;
    margin: 0 auto 2rem;
    width: 90%;
    max-width: 1200px;
  }
  
  .resume-container iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: 600px;
    border-radius: 12px;
    box-shadow: var(--box-shadow);
    background-color: transparent;
  }
  
  /* Professional Download Button Styling */
  .download-btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: var(--navy-blue);
    color: var(--white);
    font-weight: bold;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
  }
  
  .download-btn:hover {
    background-color: var(--hover-highlight);
    transform: translateY(-4px);
  }
  
  /* Responsive adjustments */
  @media (max-width: 768px) {
    .resume-container iframe {
      height: 450px;
    }
  }
  
  @media (max-width: 480px) {
    .resume-container iframe {
      height: 400px;
    }
  
    .download-btn {
      width: 90%;
    }
  }
  .slideshow-container {
    max-width: 100%;
    aspect-ratio: 16 / 9;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(to bottom right, #e2e6f0, #c7cbd9);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15); /* ✅ Soft, professional shadow */

  }
  
  .slide {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover; /* You can use "contain" if you want full image in frame */
    opacity: 0;
    transition: opacity 1s ease-in-out;
    border-radius: 16px;
  }
  
  .slide.active {
    opacity: 1;
    z-index: 1;
  }
  
  .sketchfab-embed-wrapper iframe {
    width: 100%;
    height: 350px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
  }

  .view-more-wrapper {
    text-align: center;
    margin-top: 2rem;
  }
  
  .view-more-btn {
    display: inline-block;
    padding: 1.2rem 4rem;
    min-width: 280px;
    background-color: var(--navy-blue);
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    border-radius: 40px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .view-more-btn:hover {
    background-color: var(--hover-highlight);
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  }
  
  .read-more {
    display: inline-block;
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--navy-blue);
    position: relative;
    padding: 0.5rem 0;
    text-decoration: none;
    transition: color 0.3s ease;
  }
  
  .read-more::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background-color: var(--navy-blue);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    border-radius: 2px;
  }
  
  .read-more:hover {
    color: var(--hover-highlight);
  }
  
  .read-more:hover::after {
    transform: scaleX(1);
    background-color: var(--hover-highlight);
  }

  .post-img {
    width: 100%;
    max-height: 180px;
    object-fit: contain;
    border-radius: 10px;
    margin-bottom: 1rem;
  }
  .about-section2 {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .about-image {
    width: min(350px, 60vw);
    height: min(350px, 60vw);
    border-radius: 50%;
    overflow: hidden;
    border: 8px solid var(--white);
    background: var(--light-grey);
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
  }

  .about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .about-text {
    max-width: 900px;
    color: var(--text-color);
    font-size: 1.1rem;
    padding: 0 1rem;
    line-height: 1.8;
  }

  .skills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
  }

  .skill-category {
    background: var(--light-grey);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--box-shadow);
    width: 300px;
    text-align: left;
    transition: transform 0.3s ease;
  }

  .skill-category:hover {
    transform: translateY(-5px);
  }

  .skill-category h3 {
    color: var(--navy-blue);
    margin-top: 0;
  }

  .skill-category ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
  }

  .skill-category ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--white);
  }

  .skill-category ul li:last-child {
    border-bottom: none;
  }

  .section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--navy-blue);
  }

  footer {
    text-align: center;
    padding: 1rem;
    background: var(--light-grey);
    color: var(--text-color);
    margin-top: 2rem;
  }

  @media (max-width: 900px) {
    /* Layout header with title on the left and hamburger on the right */
    header {
      display: flex !important;
      justify-content: space-between !important; /* push title to left */
      align-items: center !important;
      position: relative !important;
      height: 60px;      /* keep your fixed height */
      padding: 0 1rem;   /* horizontal padding only */
    }
  
    /* Ensure the logo + name sit naturally at the left */
    .nav-title {
      position: static !important; /* flow normally in flex */
      margin: 0;                   /* remove any unwanted margins */
      font-size: 1.5rem !important;
      white-space: nowrap;         /* prevent wrapping */
      display: flex;
      align-items: center;
      gap: 0.5rem;                 /* small spacing between logo & text */
    }
  
    /* Hamburger stays pinned to right, vertically centered */
    .hamburger {
      display: block !important;
      position: absolute !important;
      top: 50% !important;
      right: 1rem !important;
      transform: translateY(-50%) !important;
      background: none !important;
      border: none !important;
      font-size: 1.8rem !important;
      color: white !important;
      cursor: pointer !important;
      z-index: 20 !important;
    }
  
    /* Hide the nav by default, reveal on .show */
    #nav-menu {
      display: none !important;
      flex-direction: column;
      background: var(--navy-blue);
      width: 100%;
      position: absolute;
      top: 100%;
      left: 0;
      padding: 0;
      margin: 0;
      z-index: 10;
    }
    #nav-menu.show {
      display: flex !important;
    }
    #nav-menu a {
      display: block;
      padding: 1rem;
      color: white;
      text-decoration: none;
      border-top: 1px solid rgba(255,255,255,0.2);
      text-align: center;
    }
  
    /* ...your other phone‑screen tweaks here... */
    .download-btn,
    .view-more-btn,
    .read-more,
    a.launch-link,
    .contact-form button {
      padding: 0.5rem 1rem !important;   /* smaller tap target */
      font-size: 0.9rem !important;      /* smaller text */
      min-width: auto !important;        /* remove any forced width */
    }
  }

  /* MakerWorld Profile Button */
.makerworld-link {
  margin-top: 2rem;
}

.makerworld-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: #3ccb57;        /* MakerWorld orange-ish */
  color: #ffffff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.makerworld-btn:hover {
  background: #37ac7d;
}

.makerworld-logo {
  height: 2em; /* Matches the height of the text */
  width: auto;
}

  