html {
  font-size: 16px;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}


/* NAV - MOBILE */
.nav-cta--desktop { 
  display: none; 
}

.navbar {
  background: #2B2B2B;
  padding: .75rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.nav-container {
  position: relative;
  display: flex;
  align-items: center;
  padding: 10px 18px;
  gap: 12px;
}

.logo-img {
  height: 45px;
  width: auto;
  display: block;
  transition: opacity 0.2s ease;
}

.logo:hover .logo-img {
  opacity: 0.85;
}

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

.nav-links a {
  display: block;
  padding: 15px 0;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,.10);
  transition: color 0.25s ease, text-decoration-color 0.25s ease, opacity 0.25s ease;
  text-decoration-line: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
}

.nav-links a:hover {
  color: #DB2342;
  text-decoration-color: #DB2342;
  opacity: 0.9;
}

.nav-links.is-open{
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  top: 85px;
  overflow-y: auto;
  background: #2B2B2B; /* change the mobile overlay color */
  padding: 12px 16px;
  border-top: 1px solid rgba(255,255,255,.15); 
  /* border thickness, color, opacity */
}

/* show mobile CTA only when menu is open */
.nav-links.is-open .nav-cta--mobile{
  display: flex; /* use flex so you can center the button */
  margin-top: auto;
  padding-top: 18px;
  justify-content: center;
}

.nav-links.is-open .nav-cta--mobile .cta-button{
  width: 95%;
  text-align: center;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  height: 30px;
  border-radius: 16px;
  background: #BA1C2C;
  color: white;
  font-weight: 400;
  text-decoration: none;
}

/* NAV - MOBILE - BURGER */
.menu-toggle.is-active .bar:nth-child(1){
  transform: translateY(8px) rotate(45deg);
}
.menu-toggle.is-active .bar:nth-child(2){
  opacity: 0;
}
.menu-toggle.is-active .bar:nth-child(3){
  transform: translateY(-8px) rotate(-45deg);
}

/* burger goes to the far right */
.menu-toggle{
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

/* burger lines */
.menu-toggle .bar{
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: transform .2s ease, opacity .2s ease;
}

/* link styling */
.nav-links a{
  display: block;
  padding: 15px 0;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,.10);
}

.hero-section {
  background: #2B2B2B;
  color: #fff;
  padding: 32px 18px 48px;
}

.hero-container {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.hero-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-profile-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin-bottom: 16px;
}

.hero-name {
  margin: 0 0 20px;
  font-size: 2rem;
  line-height: 1.1;
  font-weight: 700;
}

.hero-stats {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #3A3A3A;
  border-radius: 16px;
  padding: 14px;
  text-align: left;
}

.stat-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.stat-text {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.1;
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,.75);
}

.hero-right {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #3A3A3A;
  border-radius: 18px;
  padding: 15px;
  text-decoration: none;
  color: #fff;
}

.project-cover {
  width: 100%;
  height: 140px;
  border-radius: 14px;
  object-fit: cover;
  display: block;
}

.project-content {
  flex: 1;
}

.project-year {
  font-size: 12px;
  font-weight: 400;
  color: rgba(255,255,255,.55);
  margin-left: 6px;
}

.project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.project-title {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 700;
}

.project-description {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: rgba(255,255,255,.8);
}

.project-tag {
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

.project-tag.discontinued {
  background: #FF220C;
  color: #fff;
}

/* NAV - DESKTOP */
@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }
  
.nav-container {
    display: flex;
    align-items: center;
    padding: 10px 0;
    margin: 0 auto;
    width: 100%;
    max-width: 1100px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
  }
  
.nav-links {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 32px;
    margin-left: auto;
    position: static;
    background: none;
    padding: 0;
    border: 0;
  }
  
.nav-links a {
    padding: 0;
    border-bottom: none;
    font-weight: 400;
    font-size: 14px;
  }
  
.nav-cta--mobile { 
  display: none; 
  }
  
.logo { 
  margin-right: 24px; 
  }

.nav-links {
  display: flex;
  gap: 40px;
  margin-left: auto; /* pushes links + CTA group to the right side */
  align-items: center;
}

.nav-cta--desktop {
  display: block;
  margin-left: 24px; /* spacing between links and CTA */
}

.nav-cta--desktop .cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 3px 40px;
  border-radius: 5px;
  background: #DB2342;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

/* HERO - DESKTOP */
  .hero-section {
    padding: 56px 24px 72px;
  }

  .hero-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 48px;
    align-items: start;
  }

  .hero-left {
    align-items: stretch;
    text-align: left;
  }
  
  .hero-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
  
  .hero-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-content: start;
  }

  .hero-profile-img {
    width: 180px;
    height: 180px;
  }

  .hero-name {
    font-size: 2.5rem;
  }

  .hero-stats {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  
  .project-cover {
    height: 140px;
  }
  
}

/* BLOG - MOBILE */
.blog-section {
  background: #ffffff;
  color: #111111;
  min-height: 100vh;
  padding: 40px 18px 72px;
}

.blog-container {
  max-width: 760px;
  margin: 0 auto;
}

.blog-header {
  margin-bottom: 36px;
}

.blog-title {
  margin: 0 0 10px;
  font-size: 2rem;
  line-height: 1.1;
  font-weight: 700;
  color: #DB2342;
}

.blog-subtitle {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.6;
  color: rgba(17, 17, 17, 0.68);
}

.blog-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.blog-card,
.blog-card:visited {
  display: block;
  background: #ffffff;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 18px;
  padding: 22px 20px;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.blog-card:hover {
  transform: translateY(-2px);
  border-color: rgba(17, 17, 17, 0.18);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.blog-card-title {
  margin: 0 0 12px;
  font-size: 1.3rem;
  line-height: 1.3;
  font-weight: 700;
  color: #111111;
}

.blog-card-description {
  margin: 0 0 14px;
  font-size: 0.98rem;
  line-height: 1.7;
  color: rgba(17, 17, 17, 0.72);
}

.blog-card-description--desktop {
  display: none;
}

.blog-card-description--mobile {
  display: block;
}

.blog-read-more {
  display: inline-block;
  color: #DB2342;
  font-size: 0.95rem;
  font-weight: 600;
}

@media (min-width: 768px) {
  .blog-section {
    padding: 56px 24px 88px;
  }

  .blog-title {
    font-size: 2.6rem;
  }

  .blog-card {
    padding: 26px 24px;
  }

  .blog-card-title {
    font-size: 1.55rem;
  }

  .blog-card-description--mobile {
    display: none;
  }

  .blog-card-description--desktop {
    display: block;
  }
}

/* ARTICLE */
.article-page {
  background: #ffffff;
  color: #111111;
  padding: 32px 18px 80px;
}

.article-container {
  max-width: 760px;
  margin: 0 auto;
}

.article-header {
  margin-bottom: 28px;
}

.article-meta {
  margin: 0 0 10px;
  font-size: 0.92rem;
  color: rgba(17, 17, 17, 0.58);
}

.article-title {
  margin: 0 0 14px;
  font-size: 2rem;
  line-height: 1.12;
  font-weight: 700;
  color: #111111;
}

.article-subtitle {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.7;
  color: rgba(17, 17, 17, 0.72);
}

.article-hero {
  margin: 0 0 32px;
}

.article-hero img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
}

.article-content {
  font-size: 1rem;
  line-height: 1.85;
  color: #222222;
}

.article-content p {
  margin: 0 0 1.35em;
}

.article-content h2 {
  margin: 2.1em 0 0.7em;
  font-size: 1.35rem;
  line-height: 1.25;
  color: #111111;
}

.article-footer-link {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(17, 17, 17, 0.10);
}

.back-link {
  display: inline-block;
  color: #DB2342;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}

.back-link:hover {
  text-decoration: underline;
}

.article-video {
  margin: 24px 0 28px;
}

.article-video iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  border-radius: 18px;
  display: block;
}

@media (min-width: 768px) {
  .article-page {
    padding: 72px 24px 100px;
  }

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

  .article-subtitle {
    font-size: 1.08rem;
  }

  .article-content {
    font-size: 1.05rem;
  }

  .article-content h2 {
    font-size: 1.5rem;
  }
}
