/* ======================================================
   C.K. Mura — Personal Website Styles
   Faithful recreation of http://ckmura.com/
   ====================================================== */

/* ----- Reset / Normalize ----- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  line-height: 1.15;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: white;
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 2;
  color: #333;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

a {
  color: white;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Quicksand', sans-serif;
  font-weight: normal;
  line-height: 1.1;
  color: inherit;
  margin: 0;
}

p {
  margin: 0 0 1.5rem;
}

/* ----- Sections: Alternating Colors (matching original) ----- */
/* Odd sections: white bg, black text */
/* Even sections: dark gray bg, white text */
section {
  overflow-x: hidden;
  position: relative;
}

/* ===========================
   NAVIGATION
   =========================== */
.navbar {
  background-color: black;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100px;
  position: relative;
  z-index: 100;
}

.nav-toggle-checkbox {
  display: none;
}

.nav-toggle-label {
  display: block;
  text-align: center;
  color: white;
  line-height: 40px;
  cursor: pointer;
  font-family: 'Open Sans', sans-serif;
}

.nav-links {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

.nav-links > li {
  width: 100%;
}

.nav-links > li > a {
  display: block;
  text-align: center;
  color: white;
  line-height: 40px;
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  padding: 0.25rem 0;
  transition: opacity 0.2s ease;
}

.nav-links > li > a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.nav-toggle-checkbox:checked + .nav-links {
  display: block;
}

/* Desktop nav */
@media (min-width: 768px) {
  .nav-toggle-label {
    display: none;
  }

  .navbar {
    flex-direction: row;
    justify-content: center;
  }

  .nav-links,
  .nav-toggle-checkbox:checked + .nav-links {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: auto;
    gap: 0;
  }

  .nav-links > li {
    width: auto;
    margin: 0 1.5rem;
  }

  .nav-links > li > a {
    display: inline-flex;
    line-height: inherit;
  }
}

/* ===========================
   HERO SECTION
   =========================== */
.hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 95vh;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 0% 50%;
  background-attachment: fixed;
  z-index: 1;
}

/* iOS fix: fixed background attachment not supported */
@supports (-webkit-overflow-scrolling: touch) {
  .hero-bg {
    background-attachment: scroll;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 70%;
  text-align: center;
  word-wrap: break-word;
}

.hero-title {
  font-family: 'Quicksand', sans-serif;
  font-size: 4rem;
  color: #ffffff;
  text-shadow: rgba(0, 0, 0, 0.5) 0px 2px 6px;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.hero-subtitle {
  font-family: 'Open Sans', sans-serif;
  font-size: 1.5rem;
  color: #ffffff;
  text-shadow: rgba(0, 0, 0, 0.5) 0px 2px 6px;
  margin: 1.5rem 0;
  line-height: 1;
}

/* Max height cap on large screens */
@media (min-width: 1280px) {
  .hero-section {
    max-height: 60vw;
  }
}

/* ===========================
   PORTFOLIO SECTION
   (Odd position in original → dark background since the hero is before it)
   Matching: dark gray #3f3f3f bg, white text
   =========================== */
.portfolio-section {
  background-color: #3f3f3f;
  color: white;
  padding: 3rem 0;
}

.section-inner {
  width: 70%;
  margin: 0 auto;
}

.section-heading {
  font-family: 'Quicksand', sans-serif;
  font-size: 2rem;
  text-align: center;
  margin: 1.5rem 0;
  line-height: 1;
}

.portfolio-table {
  margin: auto;
  border-collapse: collapse;
}

.portfolio-table tr td {
  padding: 2em;
  font-family: 'Open Sans', sans-serif;
}

.portfolio-table a {
  color: white;
  text-decoration: none;
}

.portfolio-table a:hover {
  text-decoration: underline;
}

/* ===========================
   ABOUT SECTION
   White bg, black text (matching original odd section)
   =========================== */
.about-section {
  background-color: white;
  color: black;
  padding: 3rem 0;
  min-height: 10em;
}

.about-text {
  display: flex;
  align-content: space-around;
  flex-wrap: wrap;
}

.about-text > p {
  flex: 1 0 50%;
  min-width: 300px;
  padding: 1rem 0;
}

.about-section a {
  color: inherit;
}

/* ===========================
   CONTACT SECTION
   Dark gray bg, white text (matching original even section)
   =========================== */
.contact-section {
  background-color: #3f3f3f;
  color: white;
  padding: 3rem 0;
  min-height: 10em;
}

.contact-content {
  display: flex;
  align-content: space-around;
  flex-wrap: wrap;
}

.contact-info {
  flex: 1 0 50%;
  min-width: 300px;
  padding: 1rem 0;
}

.contact-description {
  flex: 1 0 50%;
  min-width: 300px;
  padding: 1rem 0;
}

.contact-section a {
  color: inherit;
}

/* ===========================
   FOOTER
   Black bg, white text
   =========================== */
.footer-section {
  background-color: black;
  color: white;
  padding: 4em 0;
}

.footer-inner {
  width: 70%;
  margin: 0 auto;
}

.footer-copyright {
  text-align: center;
}

.footer-social {
  margin: 1rem auto;
  width: 50%;
  display: flex;
  justify-content: space-evenly;
  font-size: 2em;
}

.footer-social a {
  color: white;
  transition: opacity 0.2s ease;
}

.footer-social a:hover {
  opacity: 0.7;
  text-decoration: none;
}

/* ===========================
   RESPONSIVE ADJUSTMENTS
   =========================== */
@media (max-width: 1024px) {
  html {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 0.875rem;
  }

  .section-inner {
    width: 90%;
  }

  .hero-content {
    width: 85%;
  }

  .hero-title {
    font-size: 3rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  /* Stack portfolio table on small screens */
  .portfolio-table tr td {
    padding: 1em;
    display: block;
    text-align: center;
  }

  .footer-social {
    width: 80%;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .navbar {
    height: auto;
    flex-direction: column;
    padding: 0.5rem 0;
  }
}
