/* Root element styles */
:root {
  --main-bg-color-start: #b2fefa;
  --main-bg-color-end: #0ed2f7;
  --text-color: #222222;
  --heading-color: #000000;
  --hover-color: #556b2f;
  --border-color: #bbbbbb;
  --input-border-color: #d1d1d1;
  --section-spacing: 180px;
  --content-padding: 80px;
  --nav-height: 60px;
  --nav-gap: calc(var(--nav-height) * 1.65);
}

/* Global styles */
body {
  margin: 0;
  padding: 0;
  font-family: "Raleway", Helvetica, Arial, sans-serif;
  color: var(--text-color);
  background: linear-gradient(to bottom, var(--main-bg-color-start) 0%, var(--main-bg-color-end) 100%);
  background-attachment: fixed;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

.element-light {
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* Navigation styles */
.element-light .nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
  height: var(--nav-height);
  padding: 0 var(--content-padding);
  box-sizing: border-box;
  background: none;
  backdrop-filter: none;
}

.element-light .link {
  margin-right: auto;
}

.element-light .menu-items {
  display: flex;
}

.element-light .div-wrapper,
.element-light .link-2,
.element-light .link-3,
.element-light .link-4,
.element-light .link-5 {
  margin: 0 0 0 20px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.element-light .div-wrapper:hover,
.element-light .link-2:hover,
.element-light .link-3:hover,
.element-light .link-4:hover,
.element-light .link-5:hover {
  transform: scale(1.1);
  filter: brightness(1.2);
}

.element-light .text-wrapper,
.element-light .div,
.element-light .text-wrapper-2,
.element-light .text-wrapper-3,
.element-light .text-wrapper-4,
.element-light .text-wrapper-5 {
  color: var(--heading-color);
  font-size: 17px;
  font-weight: 400;
  white-space: nowrap;
}

.element-light .text-wrapper {
  font-size: 25px;
  font-weight: 700;
}

/* Mobile menu toggle button (hidden by default) */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

/* Header styles */
.element-light .header {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  padding: calc(var(--nav-height) * 0.9) var(--content-padding) 0;
  box-sizing: border-box;
}

.element-light .heading-strong {
  margin-bottom: 20px;
}

.element-light .hi-i-m-william-van {
  font-size: 60px;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 20px;
}

.element-light .product-manager {
  font-size: 24px;
  font-weight: 300;
  line-height: 1.4;
  max-width: 800px;
}

.element-light .product-manager .text-wrapper-5 {
  font-weight: 700;
  font-size: 26px;  /* Slightly larger than the surrounding text */
}

/* Main content styles */
.element-light .main {
  width: 100%;
  max-width: 1200px;
  margin: var(--section-spacing) auto 0;
  padding: 0 var(--content-padding);
  box-sizing: border-box;
}

.element-light .article,
.element-light .article-2,
.element-light .article-3 {
  margin-bottom: var(--section-spacing);
  padding-top: var(--nav-gap);
  margin-top: calc(-1 * var(--nav-gap));
}

/* Subheading and sub-body alignment */
.container {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  margin-bottom: 40px;
}

/* Subheading styling */
.subheading {
  flex: 1;
  font-size: 32px;
  font-weight: bold;
  padding-right: 100px;
  white-space: nowrap;
}

.sub-body {
  flex: 2;
  text-align: left;
  max-width: 800px;
  margin-top: -20px;
  line-height: 1.0;
}

.heading-link a, 
.heading-link-2 a, 
.heading-link-3 a, 
.heading-link-4 a,
.heading-link-5 a {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-color);
  text-decoration: none;
}

.heading-link a:hover, 
.heading-link-2 a:hover, 
.heading-link-3 a:hover, 
.heading-link-4 a:hover,
.heading-link-5 a:hover {
  color: var(--hover-color);
  text-decoration: none;
}

.element-light p,
.element-light .i-m-a-product,
.element-light .p,
.element-light .text-wrapper-9,
.element-light .a-search-engine-for,
.element-light .text-wrapper-12 {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 30px;
  max-width: 800px;
}

/* Button styles - See My Resume & LinkedIn */
.element-light .button-wrapper,
.element-light .link-5,
.element-light .send-message-wrapper {
  display: inline-block;
  margin-right: 10px;
}

.element-light .button,
.element-light .see-my-linkedin-wrapper,
.element-light .send-message {
  display: inline-block;
  border: 1px solid #000000;
  border-radius: 4px;
  padding: 10px 20px;
  text-decoration: none;
  color: #000000;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  background-color: transparent;
  cursor: pointer;
}

.element-light .button:hover,
.element-light .see-my-linkedin-wrapper:hover,
.element-light .send-message:hover {
  transform: scale(1.05);
  filter: brightness(1.2);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Project styles */
.element-light .heading-link,
.element-light .heading-link-2,
.element-light .heading-link-3,
.element-light .heading-link-4,
.element-light .heading-link-5 {
  font-size: 24px;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 15px;
}

.element-light .small-pigeon,
.element-light .small-punctuation,
.element-light .small-awesomelistr,
.element-light .small-nathanko-com {
  font-size: 14px;
  margin-bottom: 15px;
}

/* Form styles */
.element-light .form {
  width: 100%;
  max-width: 600px;
}

.element-light .label-name,
.element-light .label-email,
.element-light .label-message {
  display: block;
  margin-bottom: 15px;
  font-weight: 600;
}

.element-light .input,
.element-light .input-2,
.element-light .textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 25px;
  border: 1px solid var(--input-border-color);
  border-radius: 4px;
  font-size: 16px;
}

.element-light .textarea {
  height: 150px;
  resize: vertical;
}

/* Footer styles */
.element-light .footer {
  width: 100%;
  max-width: 1200px;
  margin: var(--section-spacing) auto 0;
  padding: 30px var(--content-padding);
  border-top: 1px solid #e1e1e1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  box-sizing: border-box;
}

.element-light .footer img {
  margin-right: 10px;
}

.element-light .element-william-van {
  font-size: 14px;
}

/* Media queries for responsiveness */
@media (max-width: 768px) {
  :root {
    --content-padding: 20px;
    --section-spacing: 80px;
  }

  .element-light .nav {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    padding: 20px var(--content-padding);
  }

  .element-light .link {
    margin-right: 0;
    margin-bottom: 10px;
  }

  .mobile-menu-toggle {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
  }

  .element-light .menu-items {
    display: none;
    flex-direction: column;
    width: 100%;
    padding-top: 20px;
  }

  .element-light .menu-items.show {
    display: flex;
  }

  .element-light .div-wrapper,
  .element-light .link-2,
  .element-light .link-3,
  .element-light .link-4,
  .element-light .link-5 {
    margin: 10px 0;
  }

  .element-light .header {
    height: auto;
    padding-top: 100px;
  }

  .element-light .hi-i-m-william-van {
    font-size: 36px;
  }

  .element-light .product-manager {
    font-size: 18px;
  }

  .element-light .product-manager .text-wrapper-5 {
    font-size: 20px;  /* Adjusted for mobile */
  }

  .container {
    flex-direction: column;
  }

  .subheading {
    padding-right: 0;
    margin-bottom: 20px;
  }

  .sub-body {
    margin-top: 0;
  }

  .element-light .button-wrapper,
  .element-light .link-5 {
    display: block;
    margin-bottom: 10px;
  }

  .element-light .form {
    max-width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
  }

  .element-light .input,
  .element-light .input-2,
  .element-light .textarea {
    width: 100%;
    box-sizing: border-box;
  }

  .element-light .send-message-wrapper {
    width: 100%;
    text-align: center;
  }

  .element-light .send-message {
    width: 100%;
    max-width: 200px;
  }
}

@media (max-width: 480px) {
  :root {
    --content-padding: 15px;
    --section-spacing: 60px;
  }

  .element-light .hi-i-m-william-van {
    font-size: 28px;
  }

  .element-light .product-manager {
    font-size: 16px;
  }

  .element-light .product-manager .text-wrapper-5 {
    font-size: 18px;  /* Adjusted for smaller mobile screens */
  }

  .element-light .subheading {
    font-size: 24px;
  }

  .element-light p,
  .element-light .i-m-a-product,
  .element-light .p,
  .element-light .text-wrapper-9,
  .element-light .a-search-engine-for,
  .element-light .text-wrapper-12 {
    font-size: 16px;
  }

  .element-light .heading-link a, 
  .element-light .heading-link-2 a, 
  .element-light .heading-link-3 a, 
  .element-light .heading-link-4 a,
  .element-light .heading-link-5 a {
    font-size: 18px;
  }

  .element-light .form {
    padding: 0 10px;
  }

  .element-light .send-message {
    max-width: 100%;
  }
}

/* Ensure content doesn't overflow on mobile */
.element-light {
  max-width: 100vw;
  overflow-x: hidden;
}

/* Ensure images and other elements don't cause horizontal scrolling */
img, video, iframe {
  max-width: 100%;
  height: auto;
}

/* New styles for Skills 6-8 */
.element-light .heading-link-6,
.element-light .heading-link-7,
.element-light .heading-link-8 {
  font-size: 24px;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 15px;
}

.heading-link-6 a,
.heading-link-7 a,
.heading-link-8 a {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-color);
  text-decoration: none;
}

.heading-link-6 a:hover,
.heading-link-7 a:hover,
.heading-link-8 a:hover {
  color: var(--hover-color);
  text-decoration: none;
}

.skill-proof {
  font-size: 16px;
  font-weight: 400;
  margin-top: -5px;
  margin-bottom: 20px;
  color: #333;
}
