/* 기본 초기화 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: #0b0c10;
  color: #c5c6c7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ============================
   1. 상단 헤더 영역
============================ */
header {
  padding: 24px 40px 16px 40px;
  background: rgba(11, 12, 16, 0.9);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  border-bottom: none; /* 기존 전체 가로선 제거 */
}

footer {
  margin-top: auto;
  background-color: #060709;
  padding: 24px 40px;
  border-top: none; /* 기존 전체 가로선 제거 */
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* 1. 상단 로고 (마스코트 + VOLTAGE AURA 살짝 아래로 내림) */
.logo {
  margin-top: 6px;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #66fcf1;
}

.mascot-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #00f2fe;
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.4);
}

/* 2. 상단 우측 SNS 아이콘 (오른쪽 최상단 고정 및 크기 확대) */
header .social-links {
  position: absolute;
  top: 20px;
  right: 40px;
  display: flex;
  gap: 20px;
  align-items: center;
  z-index: 999;
}

header .social-links a {
  font-size: 22px;
  color: #a0a5ad;
  transition: all 0.2s ease;
}

header .social-links a:hover {
  color: #66fcf1;
  transform: translateY(-2px);
}

/* 3. 메뉴 영역 (아이콘 아래, 오른쪽 정렬) */
.gnb {
  margin-top: 22px;
}

.gnb ul {
  list-style: none;
  display: flex;
  justify-content: flex-end;
  padding-right: 15px;
  gap: 32px;
}

.gnb ul li a {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  display: flex;
  align-items: baseline;
  gap: 6px;
  transition: color 0.2s ease;
}

.gnb ul li a span {
  font-size: 11px;
  color: #717782;
  font-weight: 400;
}

.gnb ul li a:hover {
  color: #66fcf1;
}

/* ============================
   2. 중앙 메인 비디오 영역 & 컨트롤러
============================ */
.hero-section {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 130px;
  margin-bottom: 120px;
  overflow: hidden;
  position: relative;
}

/* 비디오를 감싸는 컨테이너: 영상 폭에 맞춰 위아래 경계선 추가 */
.video-container {
  position: relative;
  width: 85%;
  max-width: 1100px;
  display: flex;
  justify-content: center;
  
  /* 비디오 위아래 여백을 살짝 주면서 선 긋기 */
  padding-top: 24px;
  padding-bottom: 24px;
  border-top: 1px solid rgba(102, 252, 241, 0.35);    /* 영상 가로폭 맞춤 상단선 */
  border-bottom: 1px solid rgba(102, 252, 241, 0.35); /* 영상 가로폭 맞춤 하단선 */
  box-shadow: 0 0 15px rgba(102, 252, 241, 0.08);     /* 은은한 네온 글로우 */
}

.bg-video {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  outline: none;
}

/* 우측 하단 컨트롤러 바 (정지, 음소거, 볼륨) */
.video-controls {
  position: absolute;
  bottom: 40px;
  right: 25px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(11, 12, 16, 0.75);
  padding: 8px 16px;
  border-radius: 30px;
  border: 1px solid rgba(102, 252, 241, 0.3);
  backdrop-filter: blur(8px);
  z-index: 10;
  transition: all 0.3s ease;
}

.video-controls:hover {
  border-color: #66fcf1;
  box-shadow: 0 0 15px rgba(102, 252, 241, 0.35);
}

/* 컨트롤러 내 버튼 공통 스타일 */
.ctrl-btn {
  background: none;
  border: none;
  color: #66fcf1;
  font-size: 17px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
  transition: transform 0.2s ease, color 0.2s ease;
}

.ctrl-btn:hover {
  transform: scale(1.15);
  color: #ffffff;
}

/* 볼륨 슬라이더 트랙 */
.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 70px;
  height: 4px;
  background: #1f2833;
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

/* 슬라이더 조절 핸들 (Chrome/Edge/Safari) */
.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #66fcf1;
  box-shadow: 0 0 6px #66fcf1;
  cursor: pointer;
}

/* 슬라이더 조절 핸들 (Firefox) */
.volume-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #66fcf1;
  box-shadow: 0 0 6px #66fcf1;
  border: none;
  cursor: pointer;
}

/* ============================
   3. 하단 푸터 영역
============================ */
footer {
  margin-top: auto;
  background-color: #060709;
  padding: 24px 40px;
  border-top: 1px solid #1a1e24;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.footer-logo a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  color: #888;
}

.mascot-img-sm {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #00f2fe;
}

/* 4. 하단 우측 SNS 아이콘 */
footer .social-links {
  display: flex;
  gap: 18px;
  align-items: center;
}

footer .social-links a {
  font-size: 22px;
  color: #a0a5ad;
  transition: all 0.2s ease;
}

footer .social-links a:hover {
  color: #66fcf1;
  transform: translateY(-2px);
}

.footer-info p {
  font-size: 12px;
  line-height: 1.8;
  color: #777;
}

.footer-info p span {
  margin-right: 15px;
}

.footer-info .copyright {
  margin-top: 8px;
  color: #555;
}

/* ============================================================
   서브 페이지 공통 스타일 (회사 소개, 업무 영역, 게임 등)
============================================================ */

/* 본문 전체 컨테이너: 헤더와 푸터에 가려지지 않게 여백 확보 및 가운데 정렬 */
.sub-page-container {
  flex: 1;
  max-width: 1000px;
  width: 90%;
  margin: 140px auto 100px auto; /* 상단 고정 헤더 피해서 아래로 내림 */
  padding: 0 20px;
}

/* 서브 페이지 상단 타이틀 */
.sub-header {
  text-align: center;
  margin-bottom: 50px;
}

.sub-title {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: 3px;
  color: #66fcf1;
  text-shadow: 0 0 15px rgba(102, 252, 241, 0.4);
  margin-bottom: 12px;
}

.sub-subtitle {
  font-size: 16px;
  color: #8f9aa7;
}

/* 카드 배치 그리드 */
.about-content {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

/* 소개 내용 카드 */
.about-card {
  background: rgba(18, 22, 30, 0.65);
  border: 1px solid rgba(102, 252, 241, 0.2);
  border-radius: 12px;
  padding: 30px 35px;
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.about-card:hover {
  border-color: #66fcf1;
  box-shadow: 0 12px 30px rgba(102, 252, 241, 0.15);
  transform: translateY(-3px);
}

.about-card h2 {
  font-size: 20px;
  color: #ffffff;
  margin-bottom: 14px;
}

.about-card p {
  font-size: 15px;
  line-height: 1.8;
  color: #c5c6c7;
}

/* 현재 활성화된 메뉴 하이라이트 (선택사항) */
.gnb ul li a.active {
  color: #66fcf1;
  text-shadow: 0 0 8px rgba(102, 252, 241, 0.6);
}

/* ============================================================
   업무 영역 (Services) 카드 스타일
============================================================ */

/* 2열 그리드 배치 */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

/* 개별 서비스 카드 */
.service-card {
  background: rgba(18, 22, 30, 0.65);
  border: 1px solid rgba(102, 252, 241, 0.2);
  border-radius: 12px;
  padding: 35px 30px;
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.service-card:hover {
  border-color: #66fcf1;
  box-shadow: 0 12px 30px rgba(102, 252, 241, 0.15);
  transform: translateY(-4px);
}

/* 카드 상단 네온 아이콘 */
.service-icon {
  font-size: 28px;
  color: #66fcf1;
  margin-bottom: 20px;
  width: 54px;
  height: 54px;
  border-radius: 10px;
  background: rgba(102, 252, 241, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(102, 252, 241, 0.2);
}

.service-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 14px;
  line-height: 1.7;
  color: #a0a5ad;
}

/* 모바일/작은 화면 반응형 (1열 정렬) */
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   게임 (Games) 개발 중 상태창 스타일
============================================================ */
.games-status-box {
  background: rgba(18, 22, 30, 0.65);
  border: 1px dashed rgba(102, 252, 241, 0.35); /* 공사 중 느낌의 점선 테두리 */
  border-radius: 16px;
  padding: 60px 40px;
  text-align: center;
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.status-icon-wrap {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(102, 252, 241, 0.1);
  border: 1px solid rgba(102, 252, 241, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: #66fcf1;
  margin-bottom: 24px;
}

.games-status-box h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #ffffff;
  margin-bottom: 16px;
}

.status-desc {
  font-size: 15px;
  line-height: 1.8;
  color: #a0a5ad;
  max-width: 600px;
  margin-bottom: 35px;
}

/* 로딩 게이지 바 */
.dev-progress-box {
  width: 100%;
  max-width: 480px;
  margin-bottom: 40px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #66fcf1;
  margin-bottom: 8px;
}

.progress-bar-bg {
  width: 100%;
  height: 8px;
  background: #1f2833;
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar-fill {
  width: 35%; /* 게이지 차있는 정도 */
  height: 100%;
  background: linear-gradient(90deg, #00f2fe, #4facfe);
  box-shadow: 0 0 10px #00f2fe;
  border-radius: 4px;
}

/* 유튜브 바로가기 네온 버튼 */
.neon-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(102, 252, 241, 0.1);
  border: 1px solid #66fcf1;
  color: #66fcf1;
  padding: 12px 26px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.neon-btn:hover {
  background: #66fcf1;
  color: #0b0c10;
  box-shadow: 0 0 20px rgba(102, 252, 241, 0.5);
  transform: translateY(-2px);
}

/* ============================================================
   문의하기 (Contact) 폼 스타일
============================================================ */
.contact-box {
  background: rgba(18, 22, 30, 0.65);
  border: 1px solid rgba(102, 252, 241, 0.2);
  border-radius: 16px;
  padding: 40px;
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  max-width: 680px;
  margin: 0 auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: #66fcf1;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 입력 필드 (인풋, 텍스트에어리어) */
.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(11, 12, 16, 0.8);
  border: 1px solid #1f2833;
  border-radius: 8px;
  padding: 14px 16px;
  color: #ffffff;
  font-size: 14px;
  outline: none;
  font-family: inherit;
  transition: all 0.2s ease;
}

.form-group textarea {
  resize: vertical;
}

/* 클릭/포커스 시 네온 테두리 */
.form-group input:focus,
.form-group textarea:focus {
  border-color: #66fcf1;
  box-shadow: 0 0 10px rgba(102, 252, 241, 0.3);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #555b66;
}

/* 전송 버튼 */
.submit-btn {
  margin-top: 10px;
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.2), rgba(102, 252, 241, 0.3));
  border: 1px solid #66fcf1;
  color: #66fcf1;
  padding: 15px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  transition: all 0.2s ease;
}

.submit-btn:hover {
  background: #66fcf1;
  color: #0b0c10;
  box-shadow: 0 0 20px rgba(102, 252, 241, 0.5);
  transform: translateY(-2px);
}

/* 하단 카톡 오픈채팅 빠른 링크 박스 */
.contact-quick {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #8f9aa7;
}

.kakao-quick-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fee500;
  color: #191919;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  transition: transform 0.2s;
}

.kakao-quick-btn:hover {
  transform: translateY(-2px);
}

@media (max-width: 600px) {
  .contact-quick {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
}

/* ============================================================
   실시간 접속자 배지 & 네온 채팅창 스타일
============================================================ */

/* 접속자 배지 */
.live-status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(18, 22, 30, 0.75);
  border: 1px solid rgba(102, 252, 241, 0.4);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  color: #66fcf1;
  box-shadow: 0 0 10px rgba(102, 252, 241, 0.2);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #00ff66;
  box-shadow: 0 0 8px #00ff66;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* 우측 하단 고정 채팅 위젯 */
.chat-widget {
  position: fixed;
  bottom: 25px;
  left: 25px; /* 왼쪽 하단에 배치 (우측 하단 비디오 컨트롤러와 겹치지 않게!) */
  z-index: 9999;
}

.chat-toggle-btn {
  height: 44px;
  padding: 0 18px;
  border-radius: 30px;
  background: rgba(11, 12, 16, 0.9);
  border: 1.5px solid #66fcf1;
  color: #66fcf1;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 0 15px rgba(102, 252, 241, 0.35);
  backdrop-filter: blur(6px);
  transition: all 0.2s ease;
}

.chat-toggle-btn i {
  font-size: 16px;
}

.chat-toggle-btn:hover {
  transform: translateY(-2px) scale(1.03);
  background: #66fcf1;
  color: #0b0c10;
  box-shadow: 0 0 20px rgba(102, 252, 241, 0.6);
}

/* 채팅창 팝업 박스 */
.chat-window {
  display: none;
  flex-direction: column;
  width: 320px;
  height: 400px;
  background: rgba(11, 12, 16, 0.95);
  border: 1px solid #66fcf1;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 15px rgba(102, 252, 241, 0.25);
  overflow: hidden;
  margin-bottom: 15px;
}

.chat-widget.open .chat-window {
  display: flex;
}

.chat-header {
  padding: 12px 16px;
  background: rgba(102, 252, 241, 0.15);
  border-bottom: 1px solid rgba(102, 252, 241, 0.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #66fcf1;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 1px;
}

.chat-close-btn {
  background: none;
  border: none;
  color: #a0a5ad;
  font-size: 20px;
  cursor: pointer;
}

.chat-messages {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}

.chat-msg {
  background: rgba(255, 255, 255, 0.05);
  padding: 6px 10px;
  border-radius: 6px;
  line-height: 1.4;
  word-break: break-all;
}

.chat-msg strong {
  color: #66fcf1;
  margin-right: 4px;
}

.chat-msg small {
  font-size: 10px;
  color: #717782;
  margin-left: 6px;
}

.chat-msg.system {
  color: #717782;
  font-size: 11px;
  text-align: center;
  background: none;
}

/* 채팅 입력 폼 */
.chat-input-form {
  display: flex;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px;
  gap: 6px;
  background: #060709;
}

.chat-input-nick {
  width: 65px;
  background: #12161e;
  border: 1px solid #1f2833;
  color: #66fcf1;
  border-radius: 6px;
  padding: 6px;
  font-size: 11px;
  text-align: center;
  outline: none;
}

.chat-input-form input[type="text"]#chatInput {
  flex: 1;
  background: #12161e;
  border: 1px solid #1f2833;
  color: #ffffff;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12px;
  outline: none;
}

.chat-input-form input:focus {
  border-color: #66fcf1;
}

.chat-input-form button {
  background: #66fcf1;
  color: #0b0c10;
  border: none;
  border-radius: 6px;
  padding: 0 12px;
  cursor: pointer;
  font-size: 12px;
}
