/* ================================
   CSS Reset & Base Styles
   ================================ */

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Unbounded', sans-serif;
  background-color: #eae9f9;
  color: rgba(0, 0, 0, 0.9);
  line-height: 1.5;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ================================
   CSS Custom Properties
   ================================ */

:root {
  --color-primary: #9747ff;
  --color-primary-light: rgba(151, 71, 255, 0.25);
  --color-primary-dark: #7a2dd1;
  --color-text-primary: rgba(0, 0, 0, 0.9);
  --color-text-secondary: #222222;
  --color-text-muted: #483c5e;
  --color-divider: #bb2bbe;
  --color-bg: #eae9f9;
  --color-white: #ffffff;
  --color-black: #000000;

  --font-primary: 'Unbounded', sans-serif;
  --font-secondary: 'Amatic SC', cursive;

  --container-max-width: 960px;
  --spacing-xs: 8px;
  --spacing-sm: 12px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 48px;
  --spacing-xxl: 64px;
  --spacing-xxxl: 80px;

  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;
  --border-radius-xl: 40px;
  --border-radius-full: 160px;

  --transition-base: 0.3s ease;
  --transition-fast: 0.15s ease;
  --shadow-card: 0 2px 24px rgba(0, 0, 0, 0.08);
  --shadow-button: 0 2px 24px rgba(0, 0, 0, 0.16);
  --shadow-modal: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* ================================
   Layout & Container
   ================================ */

.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

@media (max-width: 768px) {
  .container {
    padding: 0 var(--spacing-md);
  }
}

/* ================================
   Watercolor Background
   ================================ */

.watercolor-bg {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 1366px;
  height: 331px;
  background-image: url('../images/watercolors.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
  pointer-events: none;
}

.watercolor-bg--top {
  top: 0;
}

.watercolor-bg--bottom {
  position: relative;
  bottom: auto;
  transform: translateX(-50%) scale(-1, -1);
  margin-top: 0;
  padding-bottom: var(--spacing-xxxl);
}

@media (max-width: 1366px) {
  .watercolor-bg {
    width: 100%;
  }
}

/* ================================
   Header
   ================================ */

.header {
  padding: 179px 0 var(--spacing-xl) 0;
  position: relative;
  z-index: 1;
}

.header__profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-xl);
  text-align: center;
}

.header__avatar {
  width: 160px;
  height: 160px;
  border-radius: var(--border-radius-full);
  object-fit: cover;
  box-shadow: var(--shadow-card);
}

.header__title h1 {
  font-size: 56px;
  font-weight: 900;
  line-height: 64px;
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-xs);
}

.header__subtitle {
  font-size: 32px;
  font-weight: 200;
  line-height: 40px;
  color: var(--color-black);
}

.divider {
  color: var(--color-divider);
  padding: 0 8px;
}

@media (max-width: 768px) {
  .header {
    padding: 80px 0 var(--spacing-lg) 0;
  }

  .header__avatar {
    width: 120px;
    height: 120px;
  }

  .header__title h1 {
    font-size: 36px;
    line-height: 42px;
  }

  .header__subtitle {
    font-size: 20px;
    line-height: 28px;
  }
}

/* ================================
   Navigation
   ================================ */

.nav {
  margin: 0 0 var(--spacing-xxxl) 0;
  position: relative;
  background-color: transparent;
}

.nav--bottom {
  margin: var(--spacing-xxxl) 0;
}

.nav__divider {
  height: 6px;
  background-color: transparent;
  background-image: url('../images/svgs/squiggle/divider.svg');
  background-repeat: repeat-x;
  background-size: auto 6px;
  background-position: center;
}

.nav__menu {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-lg);
  padding: var(--spacing-lg) 0;
  background-color: transparent;
}

.nav__link {
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  text-transform: uppercase;
  color: var(--color-text-primary);
  transition: color var(--transition-base);
  position: relative;
  padding-bottom: 2px;
}

.nav__link:hover {
  color: var(--color-primary);
}

.nav__link--active {
  font-weight: 900;
  color: var(--color-black);
  position: relative;
}

.nav__link--active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 6px;
  background-image: url('../images/svgs/squiggle/navigation.svg');
  background-repeat: repeat-x;
  background-size: auto 6px;
  background-position: center;
}

@media (max-width: 768px) {
  .nav__menu {
    flex-wrap: wrap;
    gap: var(--spacing-md);
  }

  .nav__link {
    font-size: 14px;
  }
}

/* ================================
   Main Content & Albums
   ================================ */

.main {
  position: relative;
  z-index: 1;
  margin-bottom: var(--spacing-xxxl);
}

.albums__title {
  font-size: 40px;
  font-weight: 900;
  line-height: 32px;
  text-transform: uppercase;
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-xxl);
  text-align: center;
}

.albums__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
  justify-items: center;
}

@media (max-width: 968px) {
  .albums__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .albums__title {
    font-size: 28px;
    margin-bottom: var(--spacing-xl);
  }

  .albums__grid {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin: 0 auto;
  }
}

/* ================================
   Album Card
   ================================ */

.album-card {
  background: var(--color-white);
  border-radius: 0;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  width: 100%;
  max-width: 293px;
  padding: var(--spacing-xs) var(--spacing-xs) var(--spacing-md) var(--spacing-xs);
}

.album-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.12);
}

.album-card__image-container {
  width: 100%;
  height: 240px;
  overflow: hidden;
  position: relative;
  margin-bottom: var(--spacing-sm);
  touch-action: pan-y;
}

.album-card__image-track {
  display: flex;
  height: 100%;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.album-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
  user-select: none;
  pointer-events: none;
}

.album-card__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-xs);
}

.album-card__title {
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  color: var(--color-black);
  text-align: center;
  text-transform: uppercase;
  width: 100%;
}

.album-card__dots {
  display: flex;
  gap: 4px;
  align-items: center;
  justify-content: center;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-primary-light);
  transition: background-color var(--transition-fast);
}

.dot.active {
  background-color: var(--color-primary);
}

/* ================================
   Contact CTA
   ================================ */

.contact-cta {
  display: flex;
  justify-content: center;
  margin: var(--spacing-xl) 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--spacing-lg);
  height: 48px;
  border-radius: var(--border-radius-xl);
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
  text-transform: uppercase;
  transition: all var(--transition-base);
  cursor: pointer;
}

.btn--primary {
  background-color: var(--color-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-button);
}

.btn--primary:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 32px rgba(151, 71, 255, 0.3);
}

@media (max-width: 768px) {
  .btn {
    width: 100%;
    max-width: 320px;
  }
}

/* ================================
   Footer
   ================================ */

.footer {
  position: relative;
  z-index: 1;
  padding: var(--spacing-xl) 0 0 0;
  margin-top: var(--spacing-xxxl);
  margin-bottom: 0;
}

.footer__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-md);
}

.footer__text {
  font-size: 10px;
  font-weight: 700;
  line-height: 18px;
  color: var(--color-text-muted);
  text-transform: uppercase;
}

.footer__icon {
  width: 36px;
  height: 24px;
  object-fit: contain;
}

/* ================================
   Modal
   ================================ */

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  animation: fadeIn 0.3s ease;
}

.modal.active {
  display: block;
}

.modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.modal__content {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-black);
  overflow: hidden;
  animation: slideUp 0.3s ease;
  display: flex;
  flex-direction: column;
}

.modal__close {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.6);
  color: var(--color-white);
  font-size: 32px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition-base);
  z-index: 10;
}

.modal__close:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.modal__main-image {
  position: relative;
  background-color: var(--color-black);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  flex: 1;
  overflow: hidden;
  touch-action: pan-y;
  padding: 0 60px;
}

.modal__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
}

.modal__nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background-color: transparent;
  color: rgba(255, 255, 255, 0.7);
  font-size: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  z-index: 1001;
  cursor: pointer;
}

.modal__nav:hover {
  color: var(--color-white);
  transform: translateY(-50%) scale(1.1);
}

.modal__nav--prev {
  left: var(--spacing-sm);
}

.modal__nav--next {
  right: var(--spacing-sm);
}

.modal__thumbnails {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: safe center;
  gap: var(--spacing-xs);
  padding: var(--spacing-md);
  background-color: var(--color-black);
  overflow-x: auto;
  overflow-y: hidden;
  z-index: 1001;
  scrollbar-width: none;
}

.modal__thumbnails::before,
.modal__thumbnails::after {
  content: '';
  margin: auto;
}

.modal__thumbnails::-webkit-scrollbar {
  display: none;
}

.modal__thumbnail {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  cursor: pointer;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  border: 3px solid transparent;
  transition: all var(--transition-fast);
}

.modal__thumbnail:hover {
  opacity: 0.8;
}

.modal__thumbnail.active {
  border-color: var(--color-white);
}

.modal__thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .modal__main-image {
    padding: 0;
  }

  .modal__nav {
    display: none;
  }

  .modal__thumbnails {
    padding: var(--spacing-sm);
  }

  .modal__thumbnail {
    width: 60px;
    height: 60px;
  }
}

/* ================================
   Animations
   ================================ */

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================================
   Utility Classes
   ================================ */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.no-scroll {
  overflow: hidden;
}

/* ================================
   Skills Page
   ================================ */

.skills {
  margin-bottom: var(--spacing-xxxl);
}

.skills__title {
  font-size: 40px;
  font-weight: 900;
  line-height: 32px;
  text-transform: uppercase;
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-xxl);
  text-align: center;
}

.skills__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-xxl);
  margin-bottom: var(--spacing-xxl);
}

@media (max-width: 768px) {
  .skills__grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }
}

.skill {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
}

.skill__header {
  display: flex;
  gap: var(--spacing-md);
  align-items: flex-start;
}

.skill__icon-wrapper {
  width: 30px;
  flex-shrink: 0;
  margin-top: var(--spacing-xs);
  display: flex;
  align-items: flex-start;
  justify-content: right;
}

.skill__icon {
  width: auto;
  height: auto;
  display: block;
}

.skill__title {
  font-size: 32px;
  font-weight: 900;
  line-height: 40px;
  color: var(--color-black);
  text-transform: none;
  margin: 0;
}

.skill__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  padding-left: 0;
  margin-left: 58px;
}

.skill__list li {
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  color: var(--color-black);
  position: relative;
  padding-left: var(--spacing-xs);
}

.skill__list li::before {
  content: '•';
  position: absolute;
  left: -12px;
  font-size: 32px;
  font-weight: 200;
  color: var(--color-primary);
  line-height: 14px;
  top: 4px;
}

/* Section Divider */
.section-divider {
  height: 6px;
  background-image: url('../images/svgs/squiggle/divider.svg');
  background-repeat: repeat-x;
  background-size: auto 6px;
  background-position: center;
  margin: var(--spacing-xxxl) 0;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

/* Jobs & Collaborators */
.jobs {
  margin-bottom: var(--spacing-xxxl);
}

.jobs__title {
  font-size: 40px;
  font-weight: 900;
  line-height: 32px;
  text-transform: uppercase;
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-xxl);
  text-align: center;
}

.jobs__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-xxxl);
  max-width: 960px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .jobs__grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }
}

.jobs__column {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
  align-items: center;
}

.job__name {
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-black);
  text-align: center;
}

/* Clients */
.clients {
  margin-bottom: var(--spacing-xxxl);
}

.clients__title {
  font-size: 40px;
  font-weight: 900;
  line-height: 32px;
  text-transform: uppercase;
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-xxl);
  text-align: center;
}

.clients__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-md);
  max-width: 960px;
  margin: 0 auto;
}

.client__name {
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-secondary);
}

.client__divider {
  font-size: 16px;
  color: var(--color-primary);
  width: 2px;
  height: 24px;
  display: inline-block;
  background-color: var(--color-primary);
}

@media (max-width: 768px) {

  .skills__title,
  .jobs__title,
  .clients__title {
    font-size: 28px;
    margin-bottom: var(--spacing-xl);
  }

  .skill__title {
    font-size: 24px;
    line-height: 32px;
  }

  .skill__list {
    padding-left: 24px;
  }
}

/* ================================
   About Page
   ================================ */

.about {
  max-width: 960px;
  margin: 0 auto var(--spacing-xxxl) auto;
}

.about__title {
  font-size: 40px;
  font-weight: 900;
  line-height: 32px;
  text-transform: uppercase;
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-xl);
  text-align: center;
}

.about__content {
  text-align: center;
}

.about__content p {
  font-size: 24px;
  font-weight: 200;
  line-height: 32px;
  color: var(--color-black);
  letter-spacing: 1px;
  margin-bottom: var(--spacing-xl);
}

.about__content p:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .about__title {
    font-size: 28px;
    margin-bottom: var(--spacing-lg);
  }

  .about__content p {
    font-size: 18px;
    line-height: 28px;
  }
}
