/* ------------------------
   GLOBAL RESET & BASE STYLES
------------------------ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Titillium Web", sans-serif;
  scrollbar-width: auto;
  scrollbar-color: #653692 #F79939;
  scroll-behavior: smooth;
}

a {
  color: inherit;
  text-decoration: inherit;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #F79939;
}

::-webkit-scrollbar-thumb {
  background-color: #653692;
  border-radius: 6px;
  border: 2px solid #F79939;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #F79939;
}

body {
  background-color: #F79939;
  color: #653692;
  overflow-x: hidden;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(0, 0, 0, 0.2) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 1px, transparent 1px);
  background-size: 10em 10em;
  pointer-events: none;
  z-index: -1;
  opacity: 0.3;
}

/* ------------------------
   HEADER / NAVIGATION
------------------------ */
header {
  position: relative;
  width: 100%;
  padding: 2.618rem; /* golden ratio spacing */
}

#Logo img {
  height: auto;
  max-height: 8rem;
  width: auto;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.HWSA {
  background: rgba(101, 54, 146, 0.1);
  backdrop-filter: blur(8px);
  padding: 1rem 1.618rem; /* golden ratio padding */
  border-radius: 1rem;
  display: flex;
  align-items: center;
  gap: 1.618rem; /* golden ratio spacing */
  font-size: clamp(1rem, 2vw, 1.618rem);
  font-weight: 600;
  color: #653692;
}

.HWSA div {
  cursor: pointer;
  transition: all 0.3s ease;
}

.HWSA div:hover {
  opacity: 0.9;
  transform: scale(1.1) translateY(.1em);
}

.HWSA div::after {
  content: "";
  display: block;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, #653692, #653692);
  transition: width 0.3s ease;
}

.HWSA div:hover::after {
  width: 100%;
}

/* ------------------------
   HERO / TITLE
------------------------ */
.title-wrap {
  width: 100%;
  margin-top: 4.236rem; /* golden ratio spacing */
  margin-bottom: 4.236rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  user-select: none;
}

#GD {
  letter-spacing: 0.7rem;
  font-size: clamp(1.25rem, 2.6vw, 2.618rem);
  font-weight: 300;
}

#intro {
  font-weight: 900;
  font-size: clamp(2.618rem, 9vw, 8.618rem);
  line-height: 1.1;
}

/* ------------------------
   BANNERS / PROJECT CARDS
------------------------ */
.project-card,
.banner-block {
  box-shadow: 0 10px 6px rgba(0, 0, 0, 0.1);
}

.banner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 1.618rem;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.banner-block {
  text-decoration: none;
  color: inherit;
  flex-direction: column;
  display: flex;
  align-items: center;
  background: #fff2;
  border-radius: 0.7rem;
  height: auto;
  overflow: hidden;
  transition: transform .2s, opacity .2s;
}

.banner-block:hover {
  transform: translateY(-4px);
  opacity: 0.9;
}

.banner-block img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
}

.banner-info {
  padding: 1.618rem;
  width: 100%;
}

.banner-block h3,
.project-card h3 {
  font-size: clamp(1.618rem, 2.5vw, 2.618rem);
  margin-bottom: 0.3rem;
}

.banner-block p,
.project-card p {
  font-size: clamp(1rem, 2.5vw, 1.618rem);
  opacity: 0.7;
}

.grid {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.618rem 1.618rem; /* golden ratio padding */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.618rem;
}

.project-card {
  text-decoration: none;
  color: inherit;
  display: block;
  background: #fff2;
  border-radius: 0.7rem;
  overflow: hidden;
  transition: transform .2s, opacity .2s;
}

.project-card:hover {
  transform: translateY(-4px);
  opacity: 0.9;
}

.project-card img {
  width: 100%;
  height: auto;
  display: block;
}

.project-card .info {
  padding: 1.618rem; /* golden ratio padding */
}

/* ------------------------
   ABOUT ME SECTION
------------------------ */
.purple {
  background-color: #653692;
  color: #F79939;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.618rem; /* golden ratio spacing */
  align-items: center;
  padding: 2.618rem; /* golden ratio padding */
  user-select: none;
  text-align: left;
}

.purple img {
  display: block; /* removes weird bottom space */
  margin: 0 auto; /* centers on small screens */
  height: auto;
  width: auto;
  max-width: 40em;
}

.purple-text {
  margin: 0;
}

.purple-text h2 {
  font-size: clamp(2.618rem, 6vw, 4.236rem);
  font-weight: 900;
  margin: 0;
  line-height: 1.1;
}

.purple-text p {
  font-size: clamp(1.618rem, 4vw, 2.618rem);
  font-weight: 600;
  line-height: 1.5;
  margin-top: 1rem;
}

b {
  font-weight: 800;
  cursor: pointer;
  display: inline-block;
  transition: all .2s;
}

b:hover {
  transform: scale(1.2) translateY(.1em);
  filter: brightness(2);
}

/* ------------------------
   MEDIA QUERIES
------------------------ */
@media (max-width: 1558px) {
  .banner-block {
    height: auto;
  }
  .banner-block img,
  .banner-info {
    width: 100%;
  }
  header {
    flex-direction: row;
    padding: 1.618rem 1rem;
  }
  .HWSA {
    gap: 1rem;
    font-size: clamp(1rem, 2vw, 1.618rem);
  }
  #Logo img {
    height: 2.618rem;
  }
}

@media (max-width: 500px) {
  #Logo img {
    display: none;
  }

  .HWSA {
    gap: 1rem;
    font-size: clamp(0.95rem, 2vw, 1.25rem);
  }

  .purple {
    grid-template-columns: 1fr; /* stack image and text */
    text-align: center;
    line-height: 0;
    align-items: start;
  }

  .purple img {
  display: block;
  margin: 0 auto;
  height: auto;
  width: auto;
  max-width: 40em;
  }

  .purple-text h2 {
    font-size: clamp(2rem, 6vw, 3.618rem);
     margin: 0;
  }

  .purple-text p {
    font-size: clamp(1rem, 4vw, 1.618rem);
     margin: 0;
  }

  #GD {
    font-size: clamp(1rem, 4vw, 1.618rem);
  }

  #intro {
    font-size: clamp(2rem, 8vw, 4.236rem);
  }

  .banner-block h3,
  .project-card h3 {
    font-size: clamp(1.25rem, 4vw, 2rem);
  }

  .banner-block p,
  .project-card p {
    font-size: clamp(0.95rem, 4vw, 1.618rem);
  }
}
