@import url('https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&display=swap');

:root {
    --dark-blue : #000f55;
    --light-yellow : #EEE7D7;
}

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

body {
    font-family: "Figtree", sans-serif;
    color: #000f55;
    background-color: var(--light-yellow);
  opacity: 0;
  animation: pageFadeIn 0.6s ease forwards;
  will-change: opacity;
}


@keyframes pageFadeIn {
  to { opacity: 1; }
}


html, body {
  height: 100%;
  overflow: hidden;
  overflow-x: hidden;
}

.main-container {
  width: 1440px;
  margin: 0 auto;
  position: relative;
}

/* navigation start */
nav {
    position: relative;
    z-index: 10;
    margin-left: 150px;
}

nav ul {
    position: relative;
    list-style: none;
}

nav ul li {
    position: absolute;
    left: 0;
    /* Span the full decorative column (its widest shape is 388px) and centre the
       text. Every shape is centre-aligned within that column, so centring the
       label on the same axis lands it dead-centre over its block — independent
       of word length, and with no transform to clash with the fall-in animation. */
    width: 388px;
    text-align: center;
}

nav ul li:nth-child(1) { top: 90px; }    /* home */
nav ul li:nth-child(2) { top: 254px; }   /* portfolio */
nav ul li:nth-child(3) { top: 335px; }   /* process */
nav ul li:nth-child(4) { top: 450px; }   /* payment */
nav ul li:nth-child(5) { top: 645px; }   /* contact */

/* foreground start */

.left-foreground-animate,
.left-foreground {
    position: absolute;
    left: 150px;
    top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0px;
}


.right-foreground-animate {
    position: absolute;
    right: 150px;
    top: 305px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0px;
}

.vertical-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    gap: 0px;
    align-self: flex-end;
}

.horizontal-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    gap: 60px;
}

.horizontal-wrapper2 {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    gap: 140px;
}

.right-foreground-animate .foreground-text {
    text-align: center;
}

.right-foreground-animate .foreground-text h1 {
    font-family: "Figtree", sans-serif;
    font-size: 72px;
    font-weight: normal;
    line-height: 100%;
    color: #000f55;
    padding-bottom: 4px;
}

.right-foreground-animate .foreground-text p.subheading {
    font-family: "Figtree", sans-serif;
    font-size: 32px;
    font-weight: normal;
    line-height: 100%;
    color: #000f55;
    margin-top: 20px;
}


.right-foreground-nonindex {
    position: absolute;
    right: 150px;
    top: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 75px;
}

.writing-card {
    position: relative;
    width: 700px;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    justify-content: space-between;
    align-items: center;
    background-image: url('./images/Rectangle16-3.svg');
    background-position: center 40px;
    background-size: 80%;
    background-repeat: no-repeat;
    margin-bottom: 10px;
}

.writing-text {
    display: flex;
    z-index: 1;
    flex-direction: column;
    gap: 20px;
    text-decoration: none;
    position: absolute;
    top: 10px;
    left: 100px;
}

.title {
    font-size: 20px;
    font-weight: bold;
    line-height: 100%;
}

.writing-subtitle {
    font-size: 20px;
    line-height: 150%;
    opacity: 0.5;
}

.writing-response {
    font-size: 20px;
    line-height: 150%;
}

.scroll-container{
    width: 650px;
    height: 800px;
    overflow-y: scroll;
    overflow-x: hidden;
}

.scroll-container::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.right-foreground-contact {
    position: absolute;
    right: 150px;
    top: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-position: center 20px;
    background-size: 80%;
    background-repeat: no-repeat;
    background-image: url('./images/Rectangle17-5.svg');
    width: 600px;
    height: 600px;

}

.contact-text {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    max-width: 400px;
    position: absolute;
    top: 70px;
}

.contact-text h1 {
    font-size: 24px;
    line-height: 150%;
    font-weight: normal;
}

/* underline links in contact section */
.contact-text p, .contact-text a {
    font-size: 24px;
    line-height: 150%;
    text-decoration: underline;
}

.contact-text p.no-underline {
    text-decoration: none;
}

.contact-text a:link,
.contact-text a:visited {
  color: #000f55;
  text-decoration: underline;
}

.contact-text a:hover {
  opacity: 0.5;
}

.contact-text a:active {
  color: var(--dark-blue);
}

/* underline links in writing section */
.writing-text a {
    font-size: 19px;
    line-height: 150%;
    text-decoration: underline;
}

.writing-text a:link,
.writing-text a:visited {
  color: #000f55;
  text-decoration: underline;
}

.writing-text a:hover {
  opacity: 0.5;
}

.writing-text a:active {
  color: var(--dark-blue);
}

/* underline links in writing section */
.data-text a {
    line-height: 150%;
    text-decoration: underline;
}

.data-text a:link,
.data-text a:visited {
  color: #000f55;
  text-decoration: underline;
}

.data-text a:hover {
  opacity: 0.5;
}

.data-text a:active {
  color: var(--dark-blue);
}

/* portfolio carousel */
.carousel {
    margin-top: 30px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.carousel-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.carousel-track {
    position: relative;
    width: 560px;
    height: 760px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease;
}

.carousel-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.carousel-slide img {
    max-width: 100%;
    max-height: 720px;
    object-fit: contain;
    display: block;
}

.carousel-slide figcaption {
    font-size: 18px;
    text-align: center;
    color: var(--dark-blue);
}

.carousel-arrow {
    flex: none;
    background: transparent;
    border: none;
    color: var(--dark-blue);
    font-family: "Figtree", sans-serif;
    font-size: 56px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
    transition: opacity 0.2s linear;
}

.carousel-arrow:hover {
    opacity: 0.5;
}

.carousel-dots {
    display: flex;
    gap: 12px;
}

.carousel-dot {
    width: 11px;
    height: 11px;
    padding: 0;
    border: 2px solid var(--dark-blue);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transition: background 0.2s linear;
}

.carousel-dot.is-active {
    background: var(--dark-blue);
}

/* services page (commission process) */
.services {
    color: var(--dark-blue);
    padding-right: 24px;
}

.services-heading {
    font-size: 30px;
    font-weight: bold;
    margin-bottom: 24px;
}

.services p {
    font-size: 18px;
    line-height: 160%;
    margin-bottom: 18px;
}

.services a {
    color: var(--dark-blue);
    text-decoration: underline;
}

.services a:hover {
    opacity: 0.5;
}

.services-list {
    margin: 0 0 18px 22px;
}

.services-list li {
    font-size: 18px;
    line-height: 160%;
    margin-bottom: 12px;
}

.services .pricing-table {
    margin-bottom: 26px;
    font-size: 18px;
    width: auto;
}

.services .pricing-table th,
.services .pricing-table td {
    padding: 12px 28px 12px 0;
}

/* pricing table (process page) */
.pricing-panel {
    width: 620px;
    margin-top: 40px;
    background: var(--light-yellow);
    padding: 40px 50px;
}

.pricing-panel .title {
    color: var(--dark-blue);
    margin-bottom: 24px;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    color: var(--dark-blue);
    font-size: 24px;
}

.pricing-table th,
.pricing-table td {
    text-align: left;
    padding: 22px 10px;
}

.pricing-table thead th {
    font-weight: bold;
    border-bottom: 2px solid var(--dark-blue);
}

.pricing-table tbody th {
    font-weight: bold;
}

.pricing-table tbody tr + tr th,
.pricing-table tbody tr + tr td {
    border-top: 1px solid rgba(0, 15, 85, 0.4);
}

/* commission / payments form */
.commission-panel {
    width: 520px;
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.commission-note {
    font-size: 20px;
    line-height: 150%;
    opacity: 0.6;
    max-width: 460px;
}

.commission-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.commission-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 20px;
}

.commission-field > span {
    opacity: 0.5;
}

.commission-field input {
    font-family: "Figtree", sans-serif;
    font-size: 20px;
    color: var(--dark-blue);
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--dark-blue);
    padding: 8px 4px;
    outline: none;
}

.commission-field input:focus {
    border-bottom-width: 3px;
}

.amount-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 2px solid var(--dark-blue);
}

.amount-wrap:focus-within {
    border-bottom-width: 3px;
}

.amount-wrap .amount-prefix {
    font-size: 20px;
}

.amount-wrap input {
    border-bottom: none;
    flex: 1;
}

.commission-submit {
    font-family: "Figtree", sans-serif;
    font-size: 22px;
    color: var(--light-yellow);
    background: var(--dark-blue);
    border: none;
    padding: 14px 0;
    margin-top: 6px;
    cursor: pointer;
    transition: opacity 0.2s linear;
}

.commission-submit:hover {
    opacity: 0.8;
}

.commission-submit:disabled {
    opacity: 0.5;
    cursor: default;
}

.commission-error {
    color: #a11;
    font-size: 18px;
    min-height: 18px;
}

.right-foreground-art {
    position: absolute;
    right: 150px;
    top: 50px;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.scroll-container-art {
    width: 650px;
    height: 800px;
    overflow-y: scroll;
    overflow-x: hidden;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    justify-items: center;
    gap: 18px 24px;
    align-items: start;
}

.scroll-container-art::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.art-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 0;             /* remove any external margin */
    padding: 0;
    box-sizing: border-box;
}

.art-item {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;  /* cap each thumbnail width */
  max-width: 300px;     
}

.art-thumb {
  width: 300px;
  height: 225px;
  object-fit: cover;
  display: block;
  transition: filter 0.3s ease;
}

.art-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 15, 85, 0);
  transition: background-color 0.25s ease;
}

.art-item:hover::after {
  background-color: rgba(0, 15, 85, 0.15);
}


.art-info {
  text-align: center;
  margin-top: 5px;
  margin-bottom: 0;
  padding: 0;
}

.art-info p {
  font-size: 16px;
}

.art-text {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 10px;
  padding-left: 6px;
  display: block;
  text-align: left;
  grid-column: 1 / -1;
}

.art-text h1 {
    font-size: 20px;
    font-weight: bold;
}

.lightbox {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 100;
}

.lightbox:target {
  display: flex;
  animation: fadeIn 0.3s ease forwards;
}

.lightbox img {
  max-width: 100%;
  max-height: 70vh;
}

.lightbox .lightbox-media {
  max-width: 100%;
  max-height: 70vh;
}

.lightbox-caption {
  color: #EEE7D7;
  font-size: 18px;
  margin-top: 15px;
  text-align: center;
}

.lightbox .close {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lightbox:target .close {
  outline: none;
}


/* animations */
.left-foreground-animate img,
.right-foreground-animate img,
.nav-bar-animate li {
    opacity: 0;
    transform: translateY(-120px);
    animation: fall-in 0.5s cubic-bezier(0.3, 1.3, 0.3, 1) forwards;
}

@keyframes fall-in {
  0% {
    opacity: 0;
    transform: translateY(-120px);
  }
  70% {
    opacity: 1;
    transform: translateY(5px); 
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.left-foreground-animate img.b1 { animation-delay: 1s; }
.left-foreground-animate img.b2 { animation-delay: 0.9s; }
.left-foreground-animate img.b3 { animation-delay: 0.8s; }
.left-foreground-animate img.b4 { animation-delay: 0.7s; }
.left-foreground-animate img.b5 { animation-delay: 0.6s; }
.left-foreground-animate img.b6 { animation-delay: 0.5s; }
.left-foreground-animate img.b7 { animation-delay: 0.4s; }
.left-foreground-animate img.b8 { animation-delay: 0.3s; }
.left-foreground-animate img.b9 { animation-delay: 0.2s; }
.left-foreground-animate img.b10 { animation-delay: 0.1s; }
.left-foreground-animate img.b11 { animation-delay: 0.2s; }

.right-foreground-animate img.b1 { animation-delay: 1s; }
.right-foreground-animate img.b3 { animation-delay: 0.9s; }
.right-foreground-animate img.b8 { animation-delay: 0.8s; }
.right-foreground-animate img.b7 { animation-delay: 0.7s; }
.right-foreground-animate img.b4 { animation-delay: 0.6s; }
.right-foreground-animate img.b6 { animation-delay: 0.5s; }
.right-foreground-animate img.b5 { animation-delay: 0.4s; }
.right-foreground-animate img.b2 { animation-delay: 0.3s; }

.nav-bar-animate li:nth-child(1) { animation-delay: 1s; }
.nav-bar-animate li:nth-child(2) { animation-delay: 0.7s;}
.nav-bar-animate li:nth-child(3) { animation-delay: 0.6s; }
.nav-bar-animate li:nth-child(4) { animation-delay: 0.5s; }
.nav-bar-animate li:nth-child(5) { animation-delay: 0.2s; }


.foreground-text h1 {
  position: relative;
  overflow: hidden;
}

.foreground-text h1::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--light-yellow);
  transform: translateX(0);
  animation: mask-reveal 1s ease forwards 1s;
}

.foreground-text p.subheading {
  position: relative;
  overflow: hidden;
}

.foreground-text p.subheading::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--light-yellow);
  transform: translateX(0);
  animation: mask-reveal 1.8s ease forwards 1.6s;
}

@keyframes mask-reveal {
  100% {
    transform: translateX(100%);
  }
}

nav ul li a {
  position: relative;
  font-size: 32px;
  background-color: #000f5533;
  color: var(--dark-blue);
  text-decoration: none;
}

nav ul li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 3px;
  width: 100%;
  height: 3px;
  background-color: var(--dark-blue);
  opacity: 0;
  transition: opacity 0.2s linear;
}

nav ul li a:hover::after {
  opacity: 1;
  transition-delay: 0s;
}


@keyframes fade-rise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.art-item,
.writing-card {
  opacity: 0;
  animation: fade-rise 0.6s ease forwards;
}

.writing-card:nth-child(1) { animation-delay: 0.1s; }
.writing-card:nth-child(2) { animation-delay: 0.2s; }
.writing-card:nth-child(3) { animation-delay: 0.3s; }
.writing-card:nth-child(4) { animation-delay: 0.4s; }
