/*
Theme Name: YANN CYBER SECURITY
Author: YD Labs
Version: 5.1.0 (Nav Update)
*/

:root {
  --bg-dark: #030303;
  --bg-panel: #0a0a0a;
  --text-main: #e0e0e0;
  --text-muted: #888888;
  --neon-cyan: #00f3ff;
  --neon-pink: #ff0055;
  --header-height: 70px;
}

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

body {
  font-family: 'Rajdhani', sans-serif;
  background: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
  padding-top: var(--header-height); /* 헤더 높이만큼 밀어주기 */
}

a { text-decoration: none; color: inherit; transition: 0.3s; }

/* 헤더 레이아웃 */
.yd_header {
  position: fixed; top: 0; left: 0; width: 100%; height: var(--header-height);
  background: rgba(3, 3, 3, 0.95);
  border-bottom: 1px solid rgba(0, 243, 255, 0.3);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%; z-index: 9999;
}

.yd_brand { 
  font-family: 'Orbitron'; font-size: 24px; font-weight: 900; 
  color: #fff; letter-spacing: 1px; text-transform: uppercase;
  text-shadow: 0 0 10px var(--neon-cyan);
}

.yd_status_dot {
  font-size: 11px; margin-left: 10px; color: var(--neon-cyan); 
  vertical-align: middle; letter-spacing: 0;
}

/* 데스크탑 메뉴 */
.yd_nav_desktop ul { display: flex; list-style: none; gap: 30px; }
.yd_nav_desktop a {
  font-family: 'Orbitron'; font-size: 14px; font-weight: 600; color: #aaa;
  position: relative;
}
.yd_nav_desktop a:hover { color: var(--neon-cyan); text-shadow: 0 0 8px var(--neon-cyan); }
.yd_nav_desktop a::after {
  content: ''; position: absolute; bottom: -5px; left: 0; width: 0%; height: 2px;
  background: var(--neon-cyan); transition: 0.3s;
}
.yd_nav_desktop a:hover::after { width: 100%; }

/* 모바일 토글 버튼 */
.yd_mobile_toggle {
  display: none; flex-direction: column; gap: 6px; cursor: pointer;
  width: 30px; height: 25px;
}
.yd_mobile_toggle span {
  display: block; width: 100%; height: 2px; background: var(--neon-cyan);
  transition: 0.3s; box-shadow: 0 0 5px var(--neon-cyan);
}

/* 모바일 메뉴 오버레이 */
.yd_mobile_menu_overlay {
  position: fixed; top: var(--header-height); left: 0; width: 100%; height: 0;
  background: rgba(5, 5, 5, 0.98); overflow: hidden; transition: 0.4s ease;
  z-index: 9998; border-bottom: 1px solid var(--neon-cyan);
}
.yd_mobile_menu_overlay.active { height: calc(100vh - var(--header-height)); }

.yd_nav_mobile {
  display: flex; flex-direction: column; align-items: center; padding-top: 50px;
}
.yd_mobile_link {
  font-family: 'Orbitron'; font-size: 22px; color: #fff; margin-bottom: 30px;
  font-weight: 700; opacity: 0; transform: translateY(20px); transition: 0.5s;
}
.yd_mobile_menu_overlay.active .yd_mobile_link { opacity: 1; transform: translateY(0); }
.yd_mobile_link:hover { color: var(--neon-cyan); letter-spacing: 2px; }

/* 반응형 처리 */
@media (max-width: 900px) {
  .yd_nav_desktop { display: none; }
  .yd_mobile_toggle { display: flex; }
  .yd_status_dot { display: none; } /* 모바일에서 숨김 */
}

/* 공통 UI 요소 (기존 유지) */
.yd_hero { position: relative; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 0 20px; background: #000; overflow: hidden; }
.yd_hero h1 { font-family: 'Orbitron'; font-size: 56px; line-height: 1.1; margin-bottom: 24px; color: #fff; text-shadow: 0 0 30px rgba(0, 243, 255, 0.5); z-index: 2; }
.yd_hero p { font-size: 18px; color: #ccc; margin-bottom: 40px; font-weight: 500; z-index: 2; max-width: 800px; }
.yd_btn { display: inline-block; padding: 18px 45px; background: rgba(0, 243, 255, 0.05); color: var(--neon-cyan); border: 1px solid var(--neon-cyan); font-family: 'Orbitron'; font-weight: 700; font-size: 16px; letter-spacing: 2px; cursor: pointer; transition: all 0.3s ease; position: relative; z-index: 2; box-shadow: 0 0 15px rgba(0, 243, 255, 0.1); }
.yd_btn:hover { background: var(--neon-cyan); color: #000; box-shadow: 0 0 40px var(--neon-cyan); }
.yd_btn_secondary { border-color: var(--neon-pink); color: var(--neon-pink); background: rgba(255, 0, 85, 0.05); }
.yd_btn_secondary:hover { background: var(--neon-pink); color: #fff; box-shadow: 0 0 40px var(--neon-pink); }
.yd_grid { max-width: 1200px; margin: 0 auto 100px; padding: 0 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.yd_card { background: var(--bg-panel); border: 1px solid #333; transition: 0.3s; position: relative; overflow: hidden; }
.yd_card:hover { border-color: var(--neon-cyan); box-shadow: 0 0 30px rgba(0, 243, 255, 0.1); transform: translateY(-5px); }
.yd_card_body { padding: 30px; }
.yd_card h3 { font-family: 'Orbitron'; color: #fff; margin-bottom: 15px; font-size: 22px; }
.yd_card p { color: #888; font-size: 16px; }
.yd_content { max-width: 1000px; margin: 0 auto 100px; padding: 0 20px; position: relative; z-index: 10; }
.yd_article { background: rgba(10,10,10,0.9); padding: 50px; border: 1px solid #222; box-shadow: 0 20px 50px rgba(0,0,0,0.5); backdrop-filter: blur(10px); }
.yd_article h2 { font-family: 'Orbitron'; color: var(--neon-cyan); margin: 60px 0 25px; font-size: 30px; border-bottom: 1px solid #333; padding-bottom: 15px; }
.yd_article p { font-size: 17px; color: #ccc; margin-bottom: 25px; text-align: justify; }
.yd_vault { text-align: center; padding: 140px 20px; background: #050505; border-top: 1px solid #222; position: relative; }
.yd_footer { text-align: center; padding: 40px; color: #444; font-size: 13px; background: #000; border-top: 1px solid #111; font-family: 'Orbitron'; }
html { scroll-behavior: smooth; }