@import url("https://fonts.googleapis.com/css2?family=Birthstone&family=Libre+Baskerville:wght@400;700&display=swap");

/* Base */

:root {
  --sunset-top: #a80000;
  --sunset-mid: #a80000;
  --sunset-bottom: #a80000;
  --shadow-dark: rgba(0, 0, 0, 0.55);
  --text-main: #050505;
  --text-soft: #262626;
  --card-bg: rgba(255, 255, 255, 0.9);
  --card-bg-soft: rgba(255, 255, 255, 0.75);
  --border-soft: rgba(0, 0, 0, 0.12);
  --max-width: 1040px;
  --radius-soft: 18px;
  --shadow-soft: 0 20px 50px rgba(0, 0, 0, 0.25);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Libre Baskerville", serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at top left, rgba(0, 0, 0, 0.4), transparent 55%),
    radial-gradient(circle at bottom right, rgba(0, 0, 0, 0.5), transparent 55%),
    linear-gradient(180deg, var(--sunset-top), var(--sunset-mid), var(--sunset-bottom));
  min-height: 100vh;
  line-height: 1.7;
}

/* Layout */

.section {
  padding: 4rem 1.5rem;
}

.section-alt {
  background-color: rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(12px);
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-header {
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.95);
}

.section-header h2 {
  margin: 0 0 0.35rem;
  font-family: "Birthstone", cursive;
  font-weight: 400;
  font-style: normal;
  font-size: 2.5rem;
  line-height: 1;
}

.section-header p {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.95);

}

/* Header */

.site-header {
  padding: 1.5rem 1.5rem 0;
}

.header-bar {
  max-width: var(--max-width);
  margin: 0 auto 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
  justify-content: space-between;
}

/* Brand */

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-icon {
  width: 56px;
  height: 56px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px var(--shadow-dark));
}

.brand-text {
  display: flex;
  flex-direction: column;
  color: rgba(255, 255, 255, 0.95);
}

.brand-name {
  margin: 0;
  font-family: "Birthstone", cursive;
  font-weight: 400;
  font-style: normal;
  font-size: 2.2rem;
  line-height: 1;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.95);
}

.brand-tagline {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.95);

}

/* Navigation */

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0.4rem 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  border-radius: 999px;
  background-color: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

.main-nav a {
  text-decoration: none;
  color: #fdfdfd;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding-bottom: 0.08rem;
  border-bottom: 1px solid transparent;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  border-bottom-color: #fdfdfd;
}

/* Hero */

.hero {
  max-width: var(--max-width);
  margin: 0 auto 2rem;
  border-radius: 32px;
  padding: 3.5rem 2.5rem;
  background: linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.95),
      rgba(255, 255, 255, 0.8),
      rgba(255, 255, 255, 0.9)
    );
  box-shadow: var(--shadow-soft);
}

.hero-inner {
  max-width: 720px;
}

.hero-title {
  margin: 0 0 0.75rem;
  font-family: "Birthstone", cursive;
  font-weight: 400;
  font-style: normal;
  font-size: 4.5rem;
  line-height: 0.95;
  letter-spacing: 0.04em;
}

.hero-subtitle {
  margin: 0;
  font-size: 0.98rem;
  color: var(--text-soft);
}

/* Content blocks */

.item {
  padding: 1.6rem 1.8rem;
  border-radius: var(--radius-soft);
  background-color: var(--card-bg-soft);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  margin-bottom: 1.5rem;
}

.item-header h3 {
  margin: 0 0 0.3rem;
  font-family: "Birthstone", cursive;
  font-weight: 400;
  font-style: normal;
  font-size: 2.1rem;
  line-height: 1;
}

.item-meta {
  margin: 0 0 0.8rem;
  font-size: 0.85rem;
  color: var(--text-soft);
}

/* Projects */

.projects-stack .section-inner {
  display: grid;
  gap: 2rem;
}

.project {
  padding: 1.6rem 1.8rem;
  border-radius: var(--radius-soft);
  background-color: var(--card-bg);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
}

.project h3 {
  margin: 0 0 1rem;
  font-family: "Birthstone", cursive;
  font-weight: 400;
  font-style: normal;
  font-size: 2.2rem;
  line-height: 1;
}

.project p {
  margin: 1rem 0 0;
}

.card-meta {
  margin: 0.8rem 0 0;
  font-size: 0.85rem;
  color: var(--text-soft);
}

/* Slideshow */

.slideshow {
  position: relative;
  overflow: hidden;
  margin: 0;
  border-radius: var(--radius-soft);
  background-color: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--border-soft);
}

.slides {
  display: flex;
  transition: transform 0.4s ease;
}

.slides img {
  width: 100%;
  aspect-ratio: 16 / 9;
  flex: 0 0 100%;
  object-fit: cover;
  display: block;
}

.slideshow button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.35);
  background: rgba(255, 255, 255, 0.82);
  color: var(--text-main);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.prev {
  left: 0.75rem;
}

.next {
  right: 0.75rem;
}

.slideshow button:hover,
.slideshow button:focus-visible {
  background: var(--text-main);
  color: #fff;
}

.slideshow figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: var(--text-soft);
  background-color: rgba(255, 255, 255, 0.72);
}

.embed-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin: 0;
  border-radius: var(--radius-soft);
  border: 1px solid var(--border-soft);
  background-color: rgba(255, 255, 255, 0.75);
}

.embed-container iframe {
  display: block;
  width: 100%;
  height: 600px;
  border: 0;
}

/* Software / Process */

.skills-layout {
  display: grid;
  gap: 1.6rem;
}

.skills-layout h3 {
  margin: 0;
  font-family: "Birthstone", cursive;
  font-weight: 400;
  font-style: normal;
  font-size: 1.9rem;
  line-height: 1;
  color:rgba(255, 255, 255, 0.95);
}

.tag-list {
  list-style: none;
  padding: 0;
  margin: 0.7rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.tag-list li {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border-soft);
  font-size: 0.85rem;
}

/* Contact */

.contact-details p {
  margin: 0.25rem 0;
  color: rgba(255, 255, 255, 0.95);
}

.contact-details a {
  color: var(--text-main);
  text-decoration-thickness: 1px;
}

.contact-details a:hover,
.contact-details a:focus-visible {
  text-decoration-thickness: 2px;
}

/* Footer */

.site-footer {
  padding: 2.5rem 1.5rem 3rem;
  text-align: center;
  font-size: 0.9rem;
  color: #f5f5f5;
}

/* Responsive */

@media (min-width: 640px) {
  .hero {
    padding: 4rem 3rem;
  }

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

  .section {
    padding: 4.5rem 2rem;
  }
}

@media (min-width: 768px) {
  .project {
    padding: 2rem 2.2rem;
  }

  .project h3 {
    font-size: 2.6rem;
  }

  .skills-layout {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
