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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: #26313a;
  background:
    linear-gradient(rgba(255, 255, 255, 0.24) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    radial-gradient(circle at top left, rgba(149, 198, 224, 0.9), transparent 42%),
    radial-gradient(circle at bottom right, rgba(226, 192, 174, 0.86), transparent 42%),
    linear-gradient(135deg, #edf7fb 0%, #dbe8f0 38%, #efe1d8 72%, #f8efe9 100%);
  background-size: 44px 44px, 44px 44px, 140% 140%, 150% 150%, 180% 180%;
  background-attachment: fixed;
  animation: background-flow 12s ease-in-out infinite alternate;
  overflow-x: hidden;
  position: relative;
  isolation: isolate;
}

body::before {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, 0.22) 42%, transparent 64%),
    linear-gradient(245deg, transparent 28%, rgba(149, 198, 224, 0.16) 48%, transparent 70%);
  filter: blur(28px);
  opacity: 0.9;
  animation: light-flow 16s ease-in-out infinite alternate;
}

body::after {
  content: "";
  position: fixed;
  inset: -30%;
  z-index: -1;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      118deg,
      transparent 0 8rem,
      rgba(255, 255, 255, 0.16) 8rem 10rem,
      transparent 10rem 17rem
    ),
    linear-gradient(70deg, rgba(149, 198, 224, 0.12), transparent 42%, rgba(226, 192, 174, 0.14));
  filter: blur(18px);
  mix-blend-mode: soft-light;
  opacity: 0.82;
  animation: ambient-ribbons 20s linear infinite;
}

@keyframes background-flow {
  0% {
    background-position: 0 0, 0 0, 0% 0%, 100% 100%, 0% 50%;
  }

  50% {
    background-position: 8px 5px, 5px 8px, 18% 10%, 82% 88%, 55% 45%;
  }

  100% {
    background-position: 15px 12px, 12px 15px, 35% 22%, 65% 72%, 100% 50%;
  }
}

@keyframes light-flow {
  0% {
    transform: translate3d(-8%, -4%, 0) rotate(0deg);
  }

  100% {
    transform: translate3d(10%, 7%, 0) rotate(8deg);
  }
}

@keyframes ambient-ribbons {
  0% {
    transform: translate3d(-7%, -3%, 0) rotate(0deg);
  }

  50% {
    transform: translate3d(4%, 5%, 0) rotate(3deg);
  }

  100% {
    transform: translate3d(9%, -2%, 0) rotate(0deg);
  }
}

img {
  max-width: 100%;
  display: block;
}

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

p {
  margin-bottom: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 0.55rem 5%;
  backdrop-filter: blur(16px);
  background: rgba(248, 250, 252, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
}

.navbar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.55rem 1.3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.48), rgba(238, 232, 224, 0.24)),
    rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(99, 89, 75, 0.12);
  border-radius: 0.8rem;
  box-shadow: 0 8px 18px rgba(59, 47, 39, 0.08);
  backdrop-filter: blur(18px) saturate(115%);
}

.logo {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.nav-links {
  width: 100%;
  padding-top: 0.45rem;
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.2rem;
  font-size: 0.95rem;
  border-top: 1px solid rgba(100, 116, 139, 0.24);
}

.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  color: #334155;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.25rem;
  height: 2px;
  background: rgba(15, 23, 42, 0.65);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus,
.nav-links a[aria-current="page"] {
  color: #0f172a;
  transform: translateY(-2px);
}

.nav-links a:hover::after,
.nav-links a:focus::after,
.nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-links a:active {
  transform: translateY(1px) scale(0.96);
}

.mini-icon {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 0.95rem;
  height: 0.95rem;
  color: currentColor;
  vertical-align: -0.12em;
}

.mini-icon::before,
.mini-icon::after {
  content: "";
  position: absolute;
  display: block;
}

.icon-about::before {
  inset: 0.12rem 0.24rem;
  border: 2px solid currentColor;
  border-radius: 999px 999px 0.3rem 0.3rem;
}

.icon-about::after {
  top: 0;
  left: 0.31rem;
  width: 0.32rem;
  height: 0.32rem;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: rgba(255, 252, 247, 0.6);
}

.icon-workshops::before {
  inset: 0.08rem 0.16rem 0.18rem;
  border: 2px solid currentColor;
  border-radius: 0.16rem;
}

.icon-workshops::after {
  left: 0.28rem;
  right: 0.28rem;
  top: 0.3rem;
  height: 2px;
  background: currentColor;
  box-shadow: 0 0.22rem 0 currentColor;
}

.icon-contact::before {
  inset: 0.18rem 0.08rem;
  border: 2px solid currentColor;
  border-radius: 0.18rem;
}

.icon-contact::after {
  left: 0.2rem;
  right: 0.2rem;
  top: 0.28rem;
  height: 0.38rem;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
}

.icon-skills::before {
  left: 0.12rem;
  top: 0.12rem;
  width: 0.56rem;
  height: 0.56rem;
  border: 2px solid currentColor;
  transform: rotate(45deg);
}

.icon-skills::after {
  right: 0.06rem;
  bottom: 0.08rem;
  width: 0.32rem;
  height: 0.32rem;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.icon-arrow {
  width: 0.85rem;
  height: 0.85rem;
  transition: transform 0.2s ease;
}

.icon-arrow::before {
  left: 0.12rem;
  right: 0.08rem;
  top: 0.38rem;
  height: 2px;
  background: currentColor;
}

.icon-arrow::after {
  right: 0.08rem;
  top: 0.22rem;
  width: 0.32rem;
  height: 0.32rem;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

.icon-back {
  width: 0.85rem;
  height: 0.85rem;
}

.icon-back::before {
  left: 0.08rem;
  right: 0.12rem;
  top: 0.38rem;
  height: 2px;
  background: currentColor;
}

.icon-back::after {
  left: 0.08rem;
  top: 0.22rem;
  width: 0.32rem;
  height: 0.32rem;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.hero {
  min-height: calc(100vh - 7rem);
  padding: 4.5rem 5% 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  max-width: 1000px;
  text-align: center;
  padding: 3rem 4rem;
}

.small-heading {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.8rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7a6659;
}

h1,
h2,
h3 {
  line-height: 1.2;
  color: #111827;
}

h1 {
  margin-bottom: 1.4rem;
  font-size: clamp(2.5rem, 7vw, 5rem);
  letter-spacing: -0.03em;
}

.page-title {
  font-size: clamp(2.3rem, 5vw, 4rem);
}

h2 {
  margin-bottom: 1.2rem;
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.02em;
}

h3 {
  margin-bottom: 0.7rem;
  font-size: 1.25rem;
}

.hero-text {
  max-width: 720px;
  margin: 0 auto 2rem;
  font-size: 1.15rem;
  color: #4f5f66;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.4rem;
  border-radius: 0.35rem;
  font-weight: 700;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.button:hover,
.button:focus {
  transform: translateY(-2px);
}

.primary-button {
  background: #1e293b;
  color: #ffffff;
  box-shadow: 0 14px 0 rgba(15, 23, 42, 0.18), 0 20px 36px rgba(15, 23, 42, 0.16);
}

.primary-button:hover,
.primary-button:focus {
  background: #0f172a;
}

.secondary-button {
  background: rgba(255, 255, 255, 0.65);
  color: #1e293b;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 10px 0 rgba(148, 163, 184, 0.18), 0 18px 30px rgba(15, 23, 42, 0.12);
}

.section {
  padding: 5rem 5%;
}

.page-section {
  min-height: calc(100vh - 12rem);
  padding-top: 7rem;
}

.about-page .page-section {
  min-height: auto;
  padding-bottom: 2rem;
}

.about-page .about-detail-section {
  padding-top: 2rem;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
}

.two-column {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: start;
}

#about .two-column > div:last-child {
  padding-top: 1.1rem;
}

.glass-card {
  border: 1px solid rgba(99, 89, 75, 0.14);
  border-radius: 0.9rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.44), rgba(255, 250, 244, 0.24)),
    rgba(255, 255, 255, 0.2);
  box-shadow: 8px 10px 0 rgba(126, 112, 96, 0.11), 0 24px 55px rgba(58, 48, 42, 0.1);
  backdrop-filter: blur(18px) saturate(118%);
}

.skills-section {
  padding-top: 2rem;
}

.skills-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.skills-list li {
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.42), rgba(255, 250, 244, 0.18)),
    rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 8px 18px rgba(58, 48, 42, 0.08);
  backdrop-filter: blur(16px) saturate(120%);
  font-size: 0.95rem;
  color: #4b5563;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2.5rem;
}

.section-heading p {
  color: #56656b;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.project-card {
  overflow: hidden;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.16);
}

.project-image {
  min-height: 220px;
}

.placeholder-image {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(219, 234, 254, 0.9), rgba(255, 255, 255, 0.35)),
    radial-gradient(circle at top right, rgba(191, 219, 254, 0.8), transparent 40%);
  color: #64748b;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.project-content {
  padding: 1.5rem;
}

.project-content p {
  color: #475569;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.3rem;
  font-weight: 700;
  color: #7a3f2f;
  border-bottom: 2px solid rgba(122, 63, 47, 0.34);
}

.text-link:hover,
.text-link:focus {
  color: #0f172a;
}

.text-link:hover .icon-arrow,
.text-link:focus .icon-arrow {
  transform: translateX(3px);
}

.workshop-list {
  display: grid;
  gap: 1.1rem;
}

.workshop-item {
  position: relative;
  padding: 1.2rem 2rem;
  border-radius: 0.85rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.42), rgba(255, 248, 239, 0.22)),
    rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(126, 112, 96, 0.15);
  box-shadow: 7px 8px 0 rgba(126, 112, 96, 0.1), 0 18px 36px rgba(58, 48, 42, 0.09);
  backdrop-filter: blur(16px) saturate(112%);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.workshop-item:nth-child(even) {
  margin-left: 1.4rem;
}

.workshop-item:hover {
  transform: translate(-2px, -2px);
  box-shadow: 10px 11px 0 rgba(126, 112, 96, 0.12), 0 22px 42px rgba(58, 48, 42, 0.11);
}

.workshop-item p {
  color: #56656b;
}

.feature-card {
  padding: 3rem;
}

.contact-card {
  max-width: 900px;
  padding: 2.4rem 4rem;
  text-align: center;
}

.back-home-row {
  margin-top: 2rem;
}

.site-footer {
  padding: 2rem 5%;
  text-align: center;
  font-size: 0.9rem;
  color: #64748b;
}

.template-note {
  margin-top: 0.5rem;
  font-size: 0.8rem;
}

/* Responsive design */

@media (max-width: 800px) {
  .navbar {
    align-items: center;
    flex-direction: column;
  }

  .nav-links {
    justify-content: center;
    gap: 0.8rem;
  }

  .hero {
    padding-top: 5rem;
  }

  .hero-content {
    padding: 2.5rem 1.5rem;
  }

  .two-column {
    grid-template-columns: 1fr;
  }

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

  .feature-card {
    padding: 2rem;
  }

  .workshop-item:nth-child(even) {
    margin-left: 0;
  }
}

@media (max-width: 520px) {
  .site-header {
    position: static;
  }

  .nav-links {
    align-items: center;
    flex-direction: column;
  }

  .hero {
    min-height: auto;
    padding: 4rem 5%;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .button {
    width: 100%;
    text-align: center;
  }

  .section {
    padding: 3.5rem 5%;
  }

  .contact-card {
    padding: 2rem 1.5rem;
  }
}
