

/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #ECDAC0;
  --text: #1f2933;
  --muted: #30220e;
  --accent: #F24236;
  --soft-bg: #F1E3D0;
  --faint: #C4AA85;
}

body {
  font-family: "Nunito Sans", sans-serif;
  position:relative;
  color: var(--muted);
  background-color: var(--bg);
  line-height: 1.7;
}

p {
  margin-top:1em;
  margin-bottom:1em;
}

ul {
  margin-left:1em;
}

.spacer {
  margin-top:4em;
  background-color: var(--muted);
  height:2px;
  margin-bottom:4em;
}

.button {
  font-size:1.2rem;
  background: var(--muted);
  border-radius: 999px;
  box-shadow: var(--muted) 0 10px 20px -10px;
  box-sizing: border-box;
  color: var(--bg);
  text-decoration: none;
  line-height: 24px;
  opacity: 1;
  outline: 0 solid transparent;
  padding: 8px 18px;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  width: fit-content;
  word-break: break-word;
  border: 0;
  transition:0.2s;
  outline:solid 1px var(--bg);
}

.clamp-text {
  font-size: clamp(0.75rem, 2.2vw, 1rem);
}

.button:hover {
  color: var(--accent);
  transition:0.2s;
  box-shadow: var(--accent) 0 10px 20px -10px;
  outline:solid 1px var(--accent);
}

/* Layout */
.container {
  max-width: 1100px;
  margin: auto;
  padding: 2rem 1.5rem;
}

.wide-container {
  max-width: 1600px;
  margin: auto;
  padding: 2rem 1.5rem;
  box-sizing:border-box;
}

.narrow {
  max-width: 700px;
}

/* Header */
.site-header {
  position: sticky;
  z-index: 1;
  top: 0;
  background: var(--muted);
  backdrop-filter: blur(10px);
  /* filter: drop-shadow(-5px 5px 10px rgba(0, 0, 0, 0.5)); */
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1600px;
  margin: auto;
  padding: 2rem 1.5rem;
}

.brand {
  font-weight: 600;
  color:var(--bg);
}

.nav a {
  margin-left: 1.5rem;
  color: var(--bg);
  font-weight: 500;
}

.nav a:hover {
  color: var(--accent);
}

/* Hero */
.hero {
  width: 100%;
  margin: 1em auto;
  padding: 2rem 1.5rem;
  background: url("img/abstract-bg.png") no-repeat left bottom / cover;
  background-blend-mode: overlay;
  position: relative;
  border-radius: 12px;
  border: 4px solid black;
  display: flex;
  flex-direction: column;
  gap: 2rem; /* space between header and right content */
  box-sizing: border-box;
}

.h-line{
  margin: 0;
  line-height: 0.5;
  font-size: clamp(2rem, 6vw, 4rem);
}
.word-cycle {
  font-family: unna, serif;
  font-style: italic;
  font-size: clamp(2.5rem, 10vw, 10rem);
  white-space: nowrap;
  display: block;
  position: relative;
  line-height:1;
  margin-top:0.1em;
  margin-bottom:1.3em;
}

.word-cycle span {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  animation: cycle 8s infinite;
  display: inline-block;
}

/* stagger each word */
.word-cycle span:nth-child(1) { animation-delay: 0s; }
.word-cycle span:nth-child(2) { animation-delay: 2s; }
.word-cycle span:nth-child(3) { animation-delay: 4s; }
.word-cycle span:nth-child(4) { animation-delay: 6s; }

@keyframes cycle {
  0%   { opacity: 0; }
  10%  { opacity: 1; }
  25%  { opacity: 1; }
  35%  { opacity: 0; }
  100% { opacity: 0; }
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 4rem);
  /*font-weight: 500;*/
  margin-bottom: 1.5rem;
}

.hero .word-cycle {
  color: var(--accent);

}

.hero-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;  /* Align paragraphs to the right */
  gap: 1rem;  /* Space between paragraphs */
  width: 100%;
}

.glow-text {
    text-shadow: 3px 3px 5px #ddbe92,
              -3px -3px 5px #ddbe92,
              -3px 3px 5px #ddbe92,
              3px -3px 5px #ddbe92;
}

.hero-right .button-container {
  display: flex;
  position: relative;
  justify-content: center;  /* Center button relative to the paragraphs */
  width: 100%;  /* Ensure the button takes full width */
  margin-top:1rem;
}

.hero-right .button {
  text-align: center;  /* Center text inside the button */
  width: auto;  /* Let the button take its natural width */
}

.center {
  display:grid;
  justify-items:center;
  width:100%;
}

.hero p {
  max-width: 600px;
  width: 100%;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.5rem);
  margin: 0;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section h2 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  font-weight: 500;
}

.muted {
  background: var(--soft-bg);
}

/* Work Grid */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.work-card {
  padding: 2rem;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e5e7eb;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.work-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.06);
}

.work-card h3 {
  margin-bottom: 0.75rem;
  font-weight: 500;
}


/* About Me */

.about-me-text{
    margin-top:3em;
}

@media (max-width: 600px) {
  .about-me-text{
    margin-top:0;
  }
}

/* Contact */
.contact-link {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 500;
  color: var(--accent);
}

/* Footer */
.site-footer {
  padding: 2rem;
  text-align: center;
  color: var(--faint);
  font-size: 0.9rem;
}

/* Image Cards */
.image-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 10 / 14;
  background-color: #e5e7eb;
  border:solid;
  border-color:black;
  border-width: 4px;
  margin:50px;
  filter:drop-shadow(-15px 15px 30px black);
  transition: transform 0.4s ease;

}

.image-card-square {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 1/1;
  background-color: #e5e7eb;
  border:solid;
  border-color:black;
  border-width: 4px;
  margin:50px;
  filter:drop-shadow(-10px 10px 20px black);
  max-width:80%;

}

    /* Image */
.image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  
}

    /* Overlay */
.image-card__overlay {
  position: absolute;
  inset: 0;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #ffffff;
}

    /* Text */
.image-card__title {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
  margin-left:0.7rem;
}

.image-card__text {
  font-size: 0.95rem;
  opacity: 0.9;
  max-width: 90%;
}

    /* Subtle Hover (optional) */
.image-card:hover {
  transform:scale(1.03);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1100px;
  margin: auto;
  padding: 0;
}

/* Column content */
.two-col__item {
  min-width: 0; /* Prevent overflow with long content */
}






/* Responsive behavior */

@media (max-width: 600px) {
  .nav {
    display: none;
  }
}

@media (max-width: 768px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}


@media (max-width: 900px) {
  .work-grid {
    grid-template-columns: 1fr 1fr;
  }


  .work-grid {
    grid-template-columns: 1fr;
  }

  .word-cycle {
    font-size: clamp(2rem, 8vw, 5rem);
  }

  .hero h1 {
    font-size: clamp(2rem, 6vw, 3rem);
  }

  .hero {
    padding: 1rem 0.5rem;
  }
}

@media (max-width: 1024px) {
  .hero {
    padding: 1.5rem 1rem;
    gap: 1.5rem;
  }

  .hero h1 {
    font-size: clamp(3rem, 6vw, 4rem);
  }

  .hero-right {
    justify-items: start; /* align left on smaller screens */
  }

  .hero p {
    max-width: 100%;
    font-size: clamp(1rem, 2vw, 1.25rem);
  }
}
