/* HEXK Common Styles */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300&family=Noto+Sans+KR:wght@300;400;500;600;700&display=swap');

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

:root {
  --primary-color: #009922;
  --secondary-color: #00CC33;
  --text-color: #000000;
  --bg-color: #ffffff;
  --card-bg: rgba(255, 255, 255, 0.95);
  --border-color: rgba(0, 153, 34, 0.3);
  --hover-color: rgba(0, 153, 34, 0.05);
  --font-english: 'Fira Code', monospace;
  --font-korean: 'Noto Sans KR', 'Malgun Gothic', sans-serif;
}

body {
  font-family: 'Noto Sans KR', 'Malgun Gothic', sans-serif;
  font-weight: 300;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

html {
  overflow-x: hidden;
}

* {
  font-family: 'Noto Sans KR', 'Malgun Gothic', sans-serif;
  font-weight: 300;
}

/* Korean Text - Light Weight Only */
*:lang(ko) {
  font-family: 'Noto Sans KR', 'Malgun Gothic', sans-serif;
  font-weight: 300;
}

/* Font Awesome Icons - Preserve Icon Font */
.fa, .fas, .far, .fal, .fab {
  font-family: 'Font Awesome 6 Free', 'Font Awesome 6 Brands' !important;
  font-weight: 900 !important;
}

/* Matrix Canvas */
#matrix-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.15;
  pointer-events: none;
}

/* Main Content Wrapper */
.content-wrapper {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header Styles */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #ffffff;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding: 1rem 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-color);
  font-size: 1.5rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  gap: 0.5rem;
}

.logo img {
  height: 70px;
  width: auto;
}

.logo:hover {
  opacity: 0.8;
}

.logo-text {
  color: var(--text-color);
}

/* Navigation Styles */
nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-item {
  position: relative;
}

.nav-link {
  color: var(--text-color);
  text-decoration: none;
  font-size: 1.1rem;
  padding: 0.5rem 1rem;
  display: block;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  border-radius: 4px;
}

.nav-link:hover {
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  background: rgba(0, 204, 51, 0.05);
}

/* Dropdown Menu */
.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  min-width: 220px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
  border-radius: 4px;
}

.dropdown-content::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
  background: transparent;
}

.dropdown:hover .dropdown-content,
.dropdown-content:hover {
  display: block;
}

.dropdown-content a {
  color: var(--text-color);
  padding: 0.8rem 1.2rem;
  text-decoration: none;
  display: block;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.dropdown-content a:hover {
  background: rgba(0, 204, 51, 0.08);
  color: var(--primary-color);
  padding-left: 1.5rem;
}

/* Language Selector */
.language-selector {
  position: relative;
}

.language-button {
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.2);
  color: var(--text-color);
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-family: var(--font-main);
  font-size: 0.9rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 4px;
}

.language-button:hover {
  background: rgba(0, 204, 51, 0.08);
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.language-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  min-width: 150px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
  margin-top: 0.5rem;
  border-radius: 4px;
}

.language-selector.active .language-dropdown {
  display: block;
}

.language-dropdown a {
  color: var(--text-color);
  padding: 0.7rem 1rem;
  text-decoration: none;
  display: block;
  transition: all 0.3s ease;
  font-size: 0.85rem;
}

.language-dropdown a:hover {
  background: rgba(0, 204, 51, 0.08);
  color: var(--primary-color);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.2);
  color: var(--text-color);
  font-size: 1.2rem;
  width: 40px;
  height: 40px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 4px;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.menu-toggle:hover {
  background: rgba(0, 204, 51, 0.08);
  color: var(--primary-color);
  border-color: var(--primary-color);
}

/* Main Content Area */
main {
  flex: 1;
  margin-top: 80px;
}

/* Footer Styles */
footer {
  position: relative;
  z-index: 1;
  background: rgba(250, 250, 250, 0.98);
  border-top: 1px solid var(--border-color);
  padding: 3rem 2rem 2rem;
  margin-top: auto;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 3rem;
  align-items: start;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo img {
  max-width: 120px;
  height: auto;
}

.footer-logo-text {
  color: var(--primary-color);
  font-size: 1.3rem;
  font-weight: 700;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-column h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1rem;
  font-family: 'Noto Sans KR', 'Malgun Gothic', sans-serif;
  font-weight: 300;
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 0.5rem;
}

.footer-column ul li a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  font-family: 'Noto Sans KR', 'Malgun Gothic', sans-serif;
  font-weight: 300;
}

.footer-column ul li a:hover {
  color: var(--primary-color);
  padding-left: 0.5rem;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-email {
  color: var(--text-color);
  font-size: 0.85rem;
  font-family: 'Noto Sans KR', 'Malgun Gothic', sans-serif;
  font-weight: 300;
}

.footer-email a {
  color: var(--primary-color);
  text-decoration: none;
}

.footer-social {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-color);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.social-icon:hover {
  background: var(--hover-color);
  color: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-3px);
}

.footer-lang {
  margin-top: 1rem;
}

.footer-bottom {
  max-width: 1400px;
  margin: 2rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: rgba(0, 0, 0, 0.5);
  font-size: 0.8rem;
  font-family: 'Noto Sans KR', 'Malgun Gothic', sans-serif;
  font-weight: 300;
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  background: transparent;
  border: 2px solid var(--primary-color);
  border-radius: 10px;
  color: var(--primary-color);
  text-decoration: none;
  font-family: 'Noto Sans KR', 'Malgun Gothic', sans-serif;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.btn:hover {
  background: var(--primary-color);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 153, 34, 0.25);
}

.btn-primary {
  background: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 204, 51, 0.3);
}

/* Responsive Design */

/* Tablet */
@media (max-width: 1024px) {
  header {
    padding: 1rem 1.5rem;
  }
  
  .nav-menu {
    gap: 1.5rem;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 768px) {
  header {
    padding: 1rem;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  nav {
    gap: 1rem;
  }
  
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    flex-direction: column;
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    gap: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .nav-item {
    width: 100%;
  }
  
  .nav-link {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
  }
  
  .dropdown-content {
    position: static;
    display: none;
    border: none;
    margin-top: 0;
    background: rgba(240, 255, 240, 0.8);
  }
  
  .dropdown.active .dropdown-content {
    display: block;
  }
  
  main {
    padding: 1rem;
  }
  
  footer {
    padding: 2rem 1rem 1rem;
  }
  
  .footer-links {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .footer-social {
    gap: 0.8rem;
  }
  
  .social-icon {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .logo {
    font-size: 1.2rem;
  }
  
  .btn {
    padding: 0.7rem 1.5rem;
    font-size: 0.85rem;
  }
}
