@import url("https://fonts.cdnfonts.com/css/thegoodmonolith");
.codrops-header {
    z-index: 33;
}
/* @font-face {
  font-family: "PP Neue Montreal";
  src: url("https://fonts.cdnfonts.com/s/64587/PPNeueMontreal-Medium.woff2")
    format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
} */

/* ===== CSS VARIABLES ===== */
:root {
  /* Colors */
  --color-bg: #111111;
  --color-text: #ffffff;
  --color-text-muted: rgba(255, 255, 255, 0.7);
  --color-text-dim: rgba(255, 255, 255, 0.6);
  --color-dot: #444;
  --color-star: rgba(209, 255, 255, 1);
  /* Typography */
  --font-body: "TheGoodMonolith", sans-serif;
  --font-title: "PP Neue Montreal", sans-serif;
  --font-size-base: 0.75rem;
  --font-size-h2: 2rem;
  --font-size-h1: 3rem;
  --letter-spacing-title: -0.03em;
  --line-height: 1.4;
  /* Spacing */
  --spacing-base: 1rem;
  --spacing-sm: 0.75rem;
  --spacing-xs: 0.25rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.8s ease;
  /* Effects */
  --blur-amount: 5px;
}

/* ===== RESET & BASE STYLES ===== */
*,
*:before,
*:after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: var(--line-height);
  margin: 0;
  font-size: var(--font-size-base);
  overflow-x: hidden;
} */


/* body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("https://img.freepik.com/premium-photo/white-dust-scratches-black-background_279525-2.jpg?w=640");
  background-repeat: repeat;
  opacity: 0.05;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 1;
} */

/* h2,
h3 {
  font-weight: normal;
  margin-bottom: var(--spacing-sm);
}

h2 {
  font-family: var(--font-title);
  font-size: var(--font-size-h2);
  letter-spacing: var(--letter-spacing-title);
  text-transform: uppercase;
  margin-bottom: var(--spacing-md);
}

p {
  margin-bottom: var(--spacing-xs);
  opacity: 0.7;
}

ul {
  list-style: none;
} */

/* ===== INTERACTIVE ELEMENTS ===== */
/* Global link style with hover effect */
/* a,
.links span {
  position: relative;
  cursor: pointer;
  color: var(--color-text);
  padding: 0;
  display: inline-block;
  z-index: 1;
  text-decoration: none;
  font-size: var(--font-size-base);
  opacity: 0.7;
  transition: color var(--transition-medium);
}

a::after,
.links span::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: var(--color-text);
  z-index: -1;
  transition: width 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

a:hover::after,
.links span:hover::after {
  width: 100%;
}

a:hover,
.links span:hover {
  color: black;
  mix-blend-mode: difference;
  opacity: 1;
} */




/* Bottom bar */
.bottom-bar {
  margin-top: auto;
  padding-top: var(--spacing-lg);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--spacing-base);
  align-items: flex-end;
  width: 100%;
  position: relative;
  z-index: 5;
}

.coordinates {
  grid-column: 1 / span 3;
  opacity: var(--color-text-dim);
}

.links {
  grid-column: 5 / span 4;
  text-align: center;
}

.info {
  grid-column: 9 / span 4;
  text-align: right;
  opacity: var(--color-text-dim);
}

.links span {
  margin: 0 var(--spacing-base);
}

/* ===== LOGO COMPONENT ===== */
.logo-container {
  margin-bottom: var(--spacing-md);
  display: block;
  width: 3rem;
  height: 1.5rem;
  position: relative;
}

.logo-circles {
  position: relative;
  width: 100%;
  height: 100%;
}

.circle {
  position: absolute;
  border-radius: 50%;
  transition: transform var(--transition-medium);
  width: 1.4rem;
  height: 1.4rem;
  background-color: var(--color-text);
  top: 50%;
}

.circle-1 {
  left: 0;
  transform: translate(0, -50%);
}

.circle-2 {
  left: 0.8rem;
  transform: translate(0, -50%);
  mix-blend-mode: exclusion;
}

.logo-container:hover .circle-1 {
  transform: translate(-0.5rem, -50%);
}

.logo-container:hover .circle-2 {
  transform: translate(0.5rem, -50%);
}



/* ===== WEBGL SECTION ===== */
.sticky-container {
    position: relative;
    height: 500vh;
    width: 100%;
    margin: 0;
}
.webgl-wrap {
    position: sticky;
    top: 50%;
    transform: translateY(-50%);
}
.webgl-section {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  max-width:90%;
  height: 57vh;
  margin:0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  overflow: hidden;
  will-change: transform, opacity, filter;
   transform-origin: center center;
   border-radius: clamp(24px, 4vw, 40px);
}

.canvas-container {
  width: 100%;
  height: 100%;
  position: relative;
  will-change: transform, opacity, filter;
  display: flex;
  justify-content: center;
  align-items: center;
}

canvas#space {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* ===== ANIMATED TEXT ===== */
.animated-text {
  position: absolute;
  top: auto;
  left: 50%;
  transform: translate(-50%, calc(-50% + 40px));
  color: var(--color-text);
  /* font-family: var(--font-title); */
  /* font-size: var(--font-size-h1); */
  font-size:3.5rem;
  font-weight:bold;
  text-align: center;
  opacity: 0;
  z-index: 20;
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-title);
  pointer-events: none;
  width: 80%;
  max-width: 800px;
  transform-origin: center center;
  will-change: opacity, transform, filter;
  filter: blur(8px);
  transition: filter 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== ADDITIONAL SECTION ===== */
.additional-section {
  width: 100%;
  height: 50vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--spacing-lg);
  position: relative;
  /* z-index: 20; */
  overflow: hidden;
}
.additional-section.top {
  margin-top:20vh;
  margin-bottom:20vh;
}
.additional-section.bottom {
  margin-top:0;
  align-items: center;
}

.additional-content {
  max-width: 800px;
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}
.additional-content h2 {
    font-size:3rem;
    color:#3a2338;
    font-family: 'Noto_B', sans-serif;
    font-weight: 600;
    margin-bottom:2rem;
    /* background: linear-gradient( 135deg, rgba(0, 0, 0, 0.95) 0%, rgba(62, 0, 93, 0.78) 35%, rgba(132, 0, 49, 0.72) 70%, rgba(11, 0, 0, 0.92) 100% );
    background-clip: border-box;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 12px rgba(180, 120, 220, 0.08), 0 1px 2px rgba(255, 255, 255, 0.18); */
}
.additional-content.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced width for paragraphs */
.additional-content p {
  font-size: 18px;
  line-height: 1.6;
  opacity: 0.8;
  margin-bottom: var(--spacing-base);
  /* max-width: 560px; */
  margin-left: auto;
  margin-right: auto;
  background: linear-gradient( 135deg, rgb(117, 24, 28) 0%, rgb(143, 50, 98) 35%, rgba(93, 0, 37, 0.72) 70%, rgba(39, 0, 0, 0.92) 100% );
  background-clip: border-box;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 12px rgba(180, 120, 220, 0.08), 0 1px 2px rgba(255, 255, 255, 0.18);
}

.section-transition {
  position: relative;
  overflow: hidden;
}

.main-identity {
    position: relative;
    padding: 140px 6vw;
}

.identity-inner {
    max-width: 1180px;
    margin: 0 auto;
}

.identity-title {
    max-width: 760px;
    margin-bottom: 80px;
    margin:0 auto
}

.identity-title .eyebrow {
    display: inline-block;
    margin-bottom: 22px;
    font-size: 13px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(177, 50, 50, 0.55)
}

.identity-title h2 {
    font-size: clamp(34px, 5vw, 50px);
    line-height: 1.25;
    letter-spacing: -0.04em;
    margin-bottom: 28px;
    font-weight: 600;
    font-family: 'Noto_B';
    color: #3a2338;

    /* background: linear-gradient( 135deg, rgba(0, 0, 0, 0.95) 0%, rgba(62, 0, 93, 0.78) 35%, rgba(132, 0, 49, 0.72) 70%, rgba(11, 0, 0, 0.92) 100% );
    background-clip: border-box;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 12px rgba(180, 120, 220, 0.08), 0 1px 2px rgba(255, 255, 255, 0.18); */


}

.identity-title p {
    font-size: 18px;
    line-height: 1.6;
    color: rgba(63, 48, 71, 0.68);
    margin-bottom: 3rem;
    background: linear-gradient( 135deg, rgb(117, 24, 28) 0%, rgb(143, 50, 98) 35%, rgba(93, 0, 37, 0.72) 70%, rgba(39, 0, 0, 0.92) 100% );
    background-clip: border-box;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 12px rgba(180, 120, 220, 0.08), 0 1px 2px rgba(255, 255, 255, 0.18);
}

.identity-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 70px;
}

.identity-card {
    padding: 34px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 24px;
    background: rgba(255,255,255,0.27);
    backdrop-filter: blur(16px);
}

.identity-card span {
    display: block;
    margin-bottom: 34px;
    font-size: 1rem;
    font-weight:600;
    color: rgba(87, 56, 132, 0.4);
}

.identity-card h3 {
    font-size: 28px;
    margin-bottom: 16px;
    /* color:rgba(43, 23, 71, 0.7); */
    background: linear-gradient( 135deg, rgba(38, 8, 63, 0.95) 0%, rgba(18, 2, 28, 0.78) 35%, rgba(93, 0, 37, 0.72) 70%, rgba(255, 255, 255, 0.92) 100% );
    background-clip: border-box;
    background-clip: border-box;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 12px rgba(180, 120, 220, 0.08), 0 1px 2px rgba(255, 255, 255, 0.18);
}

.identity-card p {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(94, 79, 125, 0.62);
}

.identity-stats {
    position:relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid rgba(255,255,255,0.14);
    /* border-bottom: 1px solid rgba(255,255,255,0.20); */
    /* glass background */
    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.08) 0%,
            rgba(255, 255, 255, 0.03) 35%,
            rgba(190, 160, 255, 0.08) 65%,
            rgba(255, 170, 210, 0.07) 100%
        );

    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);

    box-shadow:
        0 8px 32px rgba(120, 90, 180, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        inset 0 -1px 0 rgba(255, 255, 255, 0.04);
    overflow:hidden;
    border-radius: 23px
}
/* 은은한 빛 번짐 */
.identity-stats::before {
    content: "";
    position: absolute;
    top: -30%;
    left: -10%;
    width: 45%;
    height: 180%;
    background: radial-gradient(
        circle,
        rgba(210, 180, 255, 0.16) 0%,
        rgba(210, 180, 255, 0.04) 45%,
        transparent 70%
    );
    pointer-events: none;
    z-index: 0;
}

/* 핑크빛 하이라이트 */
.identity-stats::after {
    content: "";
    position: absolute;
    right: -10%;
    bottom: -20%;
    width: 40%;
    height: 160%;
    background: radial-gradient(
        circle,
        rgba(255, 185, 220, 0.14) 0%,
        rgba(255, 185, 220, 0.03) 45%,
        transparent 70%
    );
    pointer-events: none;
    z-index: 0;
}

/* 내용이 위로 올라오게 */
.identity-stats > div {
    position: relative;
    z-index: 2;
    padding: 32px 0;
}

.identity-stats div {
    padding: 77px 0;
}

.identity-stats strong {
    display: block;
    position:relative;
    font-size: 40px;
    margin-bottom: 8px;
    background: linear-gradient( 135deg, rgba(38, 8, 63, 0.95) 0%, rgba(60, 7, 95, 0.78) 35%, rgba(236, 53, 126, 0.72) 70%, rgba(255, 255, 255, 0.92) 100% );
    background-clip: border-box;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 12px rgba(180, 120, 220, 0.08), 0 1px 2px rgba(255, 255, 255, 0.18);
}
.identity-stats strong::after {
    display:none;
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 30%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.25),
        transparent
    );
    pointer-events: none;
    z-index: -1;
    transform: translateX(-50%);
}

.identity-stats span {
    font-size: 14px;
    color: rgba(192, 102, 160, 0.85);
}


.fade-up {
    opacity: 0;
    transform: translateY(40px);
    filter: blur(8px);
    will-change: transform, opacity;
}


@media screen and (max-width: 768px) {  
  .additional-section.top {
    height:80vh
  }
  .additional-content h2 {
    font-size:2rem
  }
  .sticky-container {
    height: 320vh;
  }
  .webgl-section {
    width:100%;
    max-width: 96vw;
    height:90vh;
    border-radius:30px;
  }
  .animated-text {
    font-size:2rem;
  }
  .main-identity {
        padding: 100px 24px;
    }


    .identity-stats {
    grid-template-columns: 1fr;

    background:
      radial-gradient(
        circle at 20% 20%,
        rgba(210, 180, 255, 0.18) 0%,
        rgba(210, 180, 255, 0.07) 35%,
        transparent 70%
      ),
      radial-gradient(
        circle at 80% 75%,
        rgba(255, 185, 220, 0.16) 0%,
        rgba(255, 185, 220, 0.06) 38%,
        transparent 72%
      ),
      linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.13) 0%,
        rgba(255, 255, 255, 0.06) 38%,
        rgba(190, 160, 255, 0.12) 68%,
        rgba(255, 170, 210, 0.10) 100%
      );
  }

  .identity-stats::before {
    top: 5%;
    left: -45%;
    width: 120%;
    height: 55%;
    background: radial-gradient(
      circle,
      rgba(210, 180, 255, 0.18) 0%,
      rgba(210, 180, 255, 0.06) 45%,
      transparent 72%
    );
  }

  .identity-stats::after {
    right: -45%;
    bottom: 0%;
    width: 120%;
    height: 60%;
    background: radial-gradient(
      circle,
      rgba(255, 185, 220, 0.17) 0%,
      rgba(255, 185, 220, 0.06) 45%,
      transparent 72%
    );
  }

    
    .identity-grid,
    .identity-stats {
        grid-template-columns: 1fr;
    }

    .identity-title {
        margin-bottom: 50px;
    }
    .identity-title h2.mobile-version {
        font-size: 1.8rem;
    }

    .identity-card {
        padding: 28px;
    }

    .identity-stats div {
        border-bottom: 1px solid rgba(255,255,255,0.12);
        padding:50px 0;
    }

    .identity-stats div:last-child {
        border-bottom: none;
    }
    .identity-stats strong {
        font-size: 25px;
    }

    .additional-content p {
        font-size: 1rem;
    }
    .identity-stats span {
        font-size: 16px;
    }
}
