/* Loader */
#loader {
  position: fixed;
  inset: 0;
  background: #E1DDDE;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
}

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

.dots span {
  width: 14px;
  height: 14px;
  background: #D0A8A6;
  border-radius: 50%;
  animation: bounce 0.6s infinite alternate;
}

.dots span:nth-child(2) { animation-delay: 0.1s; }
.dots span:nth-child(3) { animation-delay: 0.2s; }
.dots span:nth-child(4) { animation-delay: 0.3s; }
.dots span:nth-child(5) { animation-delay: 0.4s; }

@keyframes bounce {
  from {
    transform: translateY(0px);
    opacity: 0.7;
  }
  to {
    transform: translateY(-12px);
    opacity: 1;
  }
}

/* Lock scroll before loaded */
html,
body {
  height: 100%;
}

body:not(.loaded) {
  overflow: hidden;
}

html:not(.loaded) {
  overflow: hidden;
}


/* Main Body */

body:not(.loaded) * {
  animation-play-state: paused !important;
}

.page-section {
  display: none;
}

.page-section.active {
  display: block;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

body {
  background: #E1DDDE;
}

.page-section {
  display: none;
}

.page-section.active {
  display: block;
}

img {
  pointer-events: auto;
  -webkit-user-drag: none;
}

/* Side scroll */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #E1DDDE;
}

::-webkit-scrollbar-thumb {
  background-color: #433535;
  border-radius: 6px;
  border: 3px solid #E1DDDE;
}

* {
  scrollbar-width: thin;
  scrollbar-color: #433535 #E1DDDE;
   -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  
  -webkit-tap-highlight-color: transparent;
}

/* Scroll to Top Button */
#scrollTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background-color: #B67674;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.2s ease, background-color 0.3s ease, color 0.3s ease;
  z-index: 1000;
}

#scrollTopBtn.show {
  opacity: 1;
  pointer-events: auto;
}

.arrow-up {
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 12px solid #E1DDDE;
  transition: border-bottom-color 0.3s ease;
}

/* Nav Bar */
.navbar {
  background-color: #322a2a;
  border-bottom: 4px solid #d4b8aa;
  display: flex;
  justify-content: center;
  padding: 0.4rem 2rem;

  position: fixed;     
  top: 0;        
  left: 0;
  width: 100%;     
  z-index: 1000;  
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.8rem;
}

.nav-links a {
  color: #e1ddde;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.6rem; 
  padding: 0.25rem 0.6rem; 
  border: 2px solid transparent;
  border-radius: 999px;

  transition: color 0.2s ease, border 0.2s ease;
}

.nav-links a:hover {
  color: #cca898;
  border: 2px solid #cca898;
  background-color: transparent;
}

.mobile-text {
  display: none;
}

@media (max-width: 768px) {
  .nav-links a {
    font-size: 0.5rem;
    padding: 0.2rem 0.4rem;
    transition: none;
  }

  .nav-links {
    gap: 1rem;
  }

  .desktop-text {
    display: none;
  }

  .mobile-text {
    display: inline;
  }
}

.page-section {
  display: none;
  padding-top: 37px;
}

.page-section.active {
  display: block;
}

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

.nav-links li {
  opacity: 0;
  animation: fadeIn 0.5s forwards;
}

.nav-links li:nth-child(1) {
  animation-delay: 0.2s;
}
.nav-links li:nth-child(2) {
  animation-delay: 0.4s;
}
.nav-links li:nth-child(3) {
  animation-delay: 0.6s;
}
.nav-links li:nth-child(4) {
  animation-delay: 0.8s;
}
.nav-links li:nth-child(5) {
  animation-delay: 1s;
}

/* Home Page */
.layout {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  height: 100vh;
  overflow: hidden;
  background: #cea7a4;
}

.hero-image {
  background: url("home/block.webp") center/cover no-repeat;
}

.content-panel {
  background: #cfc8c9;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
  position: relative;
  overflow: hidden;
}

.content-inner {
  max-width: 400px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-stamp {
  position: absolute;
  bottom: -240px;
  left: -220px;
  width: 520px;
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}

.hero-logo {
  width: 220px;
  height: auto;
  pointer-events: none;
  margin-bottom: 10px;
}

.hero-name {
  font-weight: bold;
  font-size: 1.3rem;
  color: #312829;
  letter-spacing: 2px;
  margin: 0;
}

.hero-handle {
  font-weight: bold;
  font-size: 0.9rem;
  color: #6C5A5A;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.social-icons img {
  width: 20px;
  height: 20px;
  transition: transform 0.25s ease, filter 0.25s ease;

  filter: brightness(0) saturate(100%) 
          invert(35%) sepia(12%) saturate(470%) 
          hue-rotate(314deg) brightness(92%) contrast(90%);
}

.social-icons a:hover img {
  transform: scale(1.15);

  filter: brightness(0) saturate(100%) 
          invert(14%) sepia(6%) saturate(690%) 
          hue-rotate(308deg) brightness(90%) contrast(92%);
}

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

.hero-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #6c5a5a;
  color: #E1DDDE;
  font-weight: bold;
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.75rem;
  transition: all 0.2s ease;
}

.hero-box:hover {
  background-color: #433535;
  color: #d4b8aa;
}

.side-images {
  display: grid;
  grid-template-rows: 1fr 1fr;
}

.side-img {
  background-size: cover;
  background-position: center;
}

.side-img.top {
  background-image: url("home/block1.webp");
}

.side-img.bottom {
  background-image: url("home/block2.webp");
}

@media (max-width: 1000px) {
  .layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    height: auto;
  }

  .hero-image {
    height: 60vh;
  }

  .content-panel {
    padding: 40px 20px;
  }

  .hero-stamp {
    bottom: -190px;
    left: -260px;
  }

  .side-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .side-img {
    aspect-ratio: 1 / 1;
    width: 100%;
  }
}

/* Contact Section */
.contact-section {
  background-color: #6c5a5a;
  border-top: 4px solid #d4b8aa;
  border-bottom: 4px solid #d4b8aa;
  text-align: center;
  padding: 3rem 0rem;
  position: relative;
  scroll-margin-top: 50px;
}

.contact-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.contact-title {
  color: #d4b8aa;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: bold;
  font-family: serif;
}

.contact-box {
  display: inline-flex;
  align-items: center;
  background-color: #e1ddde;
  color: #6c5a5a;                
  font-family: "Segoe UI", sans-serif;
  font-weight: bold;
  padding: 0.25rem 0.6rem;       
  border-radius: 999px; 
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  font-size: 0.85rem;
  gap: 0.4rem;
}

.contact-box:hover {
  background-color: #433535;     
  color: #d4b8aa;                
}

.mail-icon {
  font-size: 16px; 
  pointer-events: none;
  color: #6c5a5a;                
}

.contact-box:hover .mail-icon {
  color: #d4b8aa;               
}

.contact-asset {
  text-align: center;
  margin-top: 1rem;
  margin-bottom: 0.8rem;
}

.protected-image {
  width: 220px;
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;

  -webkit-user-drag: none;

  pointer-events: none;
}

.contact-rules {
  max-width: 700px;
  margin: 1.2rem auto 0;
  padding: 0 1.5rem;
  text-align: left;
}

.rule {
  display: flex;
  gap: 0.6rem;
  font-family: "Segoe UI", sans-serif;
  font-size: 0.7rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.bullet svg {
  width: 8px;
  height: 8px;
  fill: #d4b8aa;
  margin-top: 0.35rem;
  flex-shrink: 0;
}

.rule-title {
  color: #d4b8aa;
  font-weight: bold;
}

.rule-text {
  color: #e1ddde;
  font-weight: normal;
}

.rule-text strong {
  font-weight: bold;
  color: #e1ddde;
}

.dashed-line {
  width: 100%;
  border-top: 2px dashed #433535;
  position: absolute;
  left: 0;
}

.dashed-line.top {
  top: 0.6rem;  
}

.dashed-line.bottom {
  bottom: 0.6rem;
}

@media (max-width: 768px) {
  .contact-section {
    padding: 2rem 1rem;
  }

  .contact-title {
    font-size: 1.2rem;
  }

  .contact-box {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
  }
}

/*Footer*/
.site-footer {
  background-color: #CCC4C1;
  text-align: center;
  padding: 2rem 1rem;
}

.footer-title {
  font-family: serif;
  font-size: 1.5rem;
  color: #6c5a5a;
  margin-bottom: 1rem;
}

.social-icons {
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.site-footer .social-icons {
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.site-footer .social-icons a img {
  width: 30px;
  height: 30px;

  filter: brightness(0) invert(0) sepia(1) saturate(1000%) hue-rotate(200deg) brightness(0.3);
  transition: filter 0.2s ease, transform 0.2s ease;
}

.site-footer .social-icons a:hover img {
  filter: brightness(0) invert(0) sepia(1) saturate(1000%) hue-rotate(15deg) brightness(0.85);
  transform: scale(1.2);
}

.footer-copy {
  font-family: "Segoe UI", sans-serif;
  font-weight: bold;
  color: #433535;
  font-size: 0.85rem;
  line-height: 1.4;
}

.footer-copy .flower {
  color: #cea7a4;
}

.footer-copy .footer-note {
  font-size: 0.7rem;
  display: block; 
  margin-top: 0.2rem;
}

