/* 색상 변수 정의 */
:root {
  --bg-color: #1b1c2a;       /* 배경색 */
  --bg-dark: #12121c;        /* 스크롤 시 navbar 색상 */
  --text-color: #ffffff;     /* 기본 텍스트 */
  --text-sub: #a1a1b5;       /* 서브 텍스트 */
  --card-bg: #232437;        /* 카드 배경 */
  --card-text: #b8b8c6;      /* 카드 본문 */
  --primary: #00ffd0;        /* 메인 포인트 색 */
  --primary-hover: #01ac8c;  /* hover 시 포인트 색 */
}

/* 기본 스타일 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: sans-serif,"Segoe UI", Roboto,
               Helvetica, Arial, "Apple Color Emoji",
               "Segoe UI Emoji", "Segoe UI Symbol";
  background: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 10%;
  position: fixed;
  width: 100%;
  background: var(--bg-color);
  z-index: 1000;
  transition: background 0.3s;
}
.navbar .logo {
  font-size: 22px;
  font-weight: bold;
  color: var(--text-color);
}
.navbar ul {
  display: flex;
  list-style: none;
}
.navbar ul li {
  margin-left: 30px;
}
.navbar ul li a {
  text-decoration: none;
  font-weight: 700;
  color: var(--text-color);
  transition: color 0.3s;
}
.navbar ul li a:hover {
  color: var(--primary);
}

/* Hero */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  padding: 0 10%;
}

#particles-js {
    position: absolute;
    inset: 0; /* top:0; right:0; bottom:0; left:0; */
    width: 100%;
    height: 100%;
    z-index: 0; /* 배경 역할 */
    pointer-events: none; /* 인터랙션 차단 (버튼 클릭 방해하지 않음) */
}

#nodeCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0; /* 배경 역할 */
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center; /* 제목을 가운데 정렬 */
}

.hero-content h1 {
  font-size: 50px;
  margin: 0 0 20px 0;
}

.hero-content hh {
  color: var(--primary);
  font-weight: bold;
}

.hero-content span {
  color: var(--text-color);
  font-weight: bold;
}

.hero-content p {
  max-width: 500px;
  margin-bottom: 30px;
  color: var(--text-sub);
}

.hero-content .btn {
  padding: 12px 24px;
  background: var(--primary-hover);
  color: var(--text-color);
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  transition: background 0.3s;
}
.hero-content .btn:hover {
  background: var(--primary);
}

.projects {
  padding: 80px 10%;
}
.projects h2 {
  font-size: 28px;
  margin-bottom: 40px;
}

.projects h2 a{
  font-size: 28px;
  margin-bottom: 40px;
  text-decoration: none;
  color: var(--text-color);
  transition: color 0.3s;
}

.projects h2 span {
  color: var(--primary);
  margin-left: 10px;
  border-bottom: 3px solid var(--primary);
}

.prizes {
  padding: 80px 10%;
}
.prizes h2 {
  font-size: 28px;
  margin-bottom: 40px;
}
.prizes h2 span {
  color: var(--primary);
  margin-left: 10px;
  border-bottom: 3px solid var(--primary);
}

/* prizes tab UI */
.prizes-wrap {
  display: flex;
  flex-direction: column; /* tabs on top, panels below */
  gap: 12px;
}
.prize-tabs {
  display: flex;
  gap: 12px;
  justify-content: flex-start; /* tabs row */
}
.prize-tabs .tab {
  background: transparent;
  border: none;
  color: var(--text-color);
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 6px;
  font-size: 28px;
  font-weight: bold;
}
.prize-tabs .tab.active,
.prize-tabs .tab:hover {
  background: rgba(0, 0, 0, 0.18);
  color: var(--primary);
  font-weight: bold;
}
.prize-panels {
  padding-left: 30px;
  width: 100%;
}
.panel {
  display: none;
}
.panel.active {
  display: block;
}
.plain-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}
.plain-list li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--card-text);
}
.plain-list li strong {
  color: var(--primary);
  margin-right: 8px;
}

@media (max-width: 800px) {
  .prize-tabs { overflow-x: auto; }
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.card {
  background: var(--card-bg);
  padding: 20px;
  border-radius: 10px;
  transition: transform 0.3s;
}
.projects .card {
  cursor: pointer;
}
.card:hover {
  transform: translateY(-8px);
}
.card h3 {
  margin-bottom: 15px;
  color: var(--primary);
}
.card p {
  font-size: 14px;
  color: var(--card-text);
}

.skill {
  padding: 80px 10%;
}
.skill h2 {
  font-size: 28px;
  margin-bottom: 40px;
}
.skill h2 span {
  color: var(--primary);
  margin-left: 10px;
  border-bottom: 3px solid var(--primary);
}


.skill .grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0px;
}

.skill-img {
  width: auto;
  height: auto;
  margin: 0;
}

.skill-img img {
  width: 100px;
  height: auto;
  object-fit: cover;
}

/* 🎆 각 기술 아이콘에 홀로그램 효과 */
.skill-img {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.skill-img img {
  width: 100px;
  height: auto;
  transition: all 0.6s ease;
  filter: drop-shadow(0 0 5px rgba(0,255,255,0.3));
}

/* ✨ 이미지 위에 빛이 스치는 효과 */
.skill-img::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    120deg,
    transparent 30%,
    rgba(0,255,255,0.5),
    transparent 70%
  );
  transform: translateX(-100%) rotate(25deg);
  opacity: 0;
  transition: all 0.8s ease;
  pointer-events: none;
}



.skill-img:hover img {
  filter: drop-shadow(0 0 15px #0ff) brightness(1.2);
  transform: scale(1.05);
}



/* Contact */
.contact {
  padding: 80px 10%;
  text-align: center;
}
.contact h2 {
  font-size: 26px;
  margin-bottom: 20px;
  color: var(--primary);
}
.contact form {
  max-width: 500px;
  margin: auto;
  display: flex;
  flex-direction: column;
}
.contact input,
.contact textarea {
  margin: 10px 0;
  padding: 12px;
  border: none;
  border-radius: 5px;
  outline: none;
}
.contact button {
  margin-top: 10px;
  padding: 12px;
  background: var(--primary);
  border: none;
  color: var(--text-color);
  font-size: 16px;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}
.contact button:hover {
  background: var(--primary-hover);
}


/* needed styles */
.accordion-toggle { cursor: pointer; }
.accordion-content {
  overflow: hidden;
  max-height: 0;
  transition: max-height 280ms ease;
}
.accordion-row.active .accordion-content {
  /* Hint to the browser this property may change when active; harmless and avoids empty-ruleset lint errors */
  will-change: max-height;
}

.contact-icons a {
    margin: 0 10px;
    font-size: 1.5rem;
    color: #4c4c4c;
    text-decoration: none;
}

.contact-icons a:hover {
    color: #888888;
}

.uhgro {
  display: none;
}

footer {
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
    color: #b0b0b0;
    border-top: 1px solid #ddd;
}

.contact-icons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    margin-bottom: 30px;
    justify-content: center;
}

.icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-size: cover;
    background-position: center;
    text-indent: -9999px; /* 텍스트 숨김 */
}

/* 각각의 아이콘 이미지 지정 */
.icon.email {
    background-image: url('./icons/gmail.png');
}

.icon.instagram {
    background-image: url('./icons/instagram.png');
}

.icon.github {
    background-image: url('./icons/github.png');
}

.icon.backjoon {
    background-image: url('./icons/code.png');
}

.contact-icons .icon {
  filter: invert(1) brightness(2);
  transition: filter 160ms ease, opacity 160ms ease;
}
.contact-icons .icon:hover {
  opacity: 0.9;
  filter: invert(1) brightness(1.6);
}
