/* Common styles used across all pages */

/* Font Face Declarations */
@font-face {
  font-family: 'Apple SD Gothic Neo';
  src: url('../fonts/AppleSDGothicNeoUL.ttf') format('truetype');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Apple SD Gothic Neo';
  src: url('../fonts/AppleSDGothicNeoT.ttf') format('truetype');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Apple SD Gothic Neo';
  src: url('../fonts/AppleSDGothicNeoL.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Apple SD Gothic Neo';
  src: url('../fonts/AppleSDGothicNeoR.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Apple SD Gothic Neo';
  src: url('../fonts/AppleSDGothicNeoM.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Apple SD Gothic Neo';
  src: url('../fonts/AppleSDGothicNeoSB.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Apple SD Gothic Neo';
  src: url('../fonts/AppleSDGothicNeoB.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Apple SD Gothic Neo';
  src: url('../fonts/AppleSDGothicNeoEB.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Apple SD Gothic Neo';
  src: url('../fonts/AppleSDGothicNeoH.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* Libre Bodoni Font */
@font-face {
  font-family: 'Libre Bodoni';
  src: url('../fonts/Libre_Bodoni/static/LibreBodoni-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Libre Bodoni';
  src: url('../fonts/Libre_Bodoni/static/LibreBodoni-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Libre Bodoni';
  src: url('../fonts/Libre_Bodoni/static/LibreBodoni-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Libre Bodoni';
  src: url('../fonts/Libre_Bodoni/static/LibreBodoni-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Base styles */
html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: 'Apple SD Gothic Neo', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  background: #f7f7f7;
  color: #222;
  scroll-behavior: smooth;
}

/* Header styles */
header.transparent-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.95);
  color: #222;
  transition: all 0.3s ease;
  transform: translateY(0);
}

header.transparent-header.hidden {
  transform: translateY(-100%);
}

header.transparent-header.scrolled {
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

header.transparent-header::before {
  display: none;
}

.navbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  max-width: 1300px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  letter-spacing: 1px;
  justify-self: start;
}

.logo img {
  height: clamp(40px, 3.5vw, 50px);
  transition: height 0.3s ease;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
  justify-content: flex-end;
}

.nav-links li a {
  color: #222;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Apply Libre Bodoni to English navigation text */
.nav-links li a .lang-en,
.nav-text.lang-en {
  font-family: 'Libre Bodoni', serif;
  font-weight: 600;
  letter-spacing: 0.5px;
  font-size: 0.75rem;
}

.nav-links li a .nav-icon {
  display: none;
  flex-shrink: 0;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #4DD0E1;
  transition: width 0.3s ease;
}

.nav-links li a:hover {
  color: #4DD0E1;
}

.nav-links li a:hover::after {
  width: 100%;
}

/* Active Navigation Link */
.nav-links li a.active {
  color: #4DD0E1;
  font-weight: 600;
}

.nav-links li a.active::after {
  width: 100%;
}

/* Navigation dropdown styles */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-content {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: #fff;
  min-width: 280px;
  max-width: 400px;
  box-shadow: 0 4px 20px rgba(26,35,126,0.15);
  border-radius: 0;
  z-index: 1000;
  border: 1px solid #e0e6ed;
  overflow: hidden;
}

.nav-dropdown-content.show {
  display: block;
}

.nav-achievement-filter {
  display: block;
  padding: 0.9rem 1.2rem;
  color: #1a237e;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background-color 0.2s ease;
  border: none;
  width: 100%;
  text-align: left;
  white-space: normal;
  line-height: 1.4;
  word-wrap: break-word;
}

.nav-achievement-filter:hover {
  background: #f5f7fa;
  color: #3949ab;
}

.nav-achievement-filter.active {
  background: #1a237e;
  color: #fff;
}

.nav-member-filter {
  display: block;
  padding: 0.9rem 1.2rem;
  color: #1a237e;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background-color 0.2s ease;
  border: none;
  width: 100%;
  text-align: left;
  white-space: normal;
  line-height: 1.4;
  word-wrap: break-word;
}

.nav-member-filter:hover {
  background: #f5f7fa;
  color: #3949ab;
}

.nav-member-filter.active {
  background: #1a237e;
  color: #fff;
}

.nav-project-filter {
  display: block;
  padding: 0.9rem 1.2rem;
  color: #1a237e;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background-color 0.2s ease;
  border: none;
  width: 100%;
  text-align: left;
  white-space: normal;
  line-height: 1.4;
  word-wrap: break-word;
}

.nav-project-filter:hover {
  background: #f5f7fa;
  color: #3949ab;
}

.nav-project-filter.active {
  background: #1a237e;
  color: #fff;
}

/* Apply Libre Bodoni to dropdown menu English text */
.nav-project-filter .lang-en,
.nav-achievement-filter .lang-en,
.nav-member-filter .lang-en {
  font-family: 'Libre Bodoni', serif;
  font-weight: 500;
  letter-spacing: 0.3px;
  font-size: 0.9rem;
}

/* Language Switcher */
.lang-switcher {
  position: relative;
  justify-self: end;
}

.lang-globe-btn {
  /* Liquid Glass Base */
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 
    0 8px 32px 0 rgba(31, 38, 135, 0.15),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.5),
    0 1px 0 0 rgba(255, 255, 255, 0.25);
  
  color: #2c3e50;
  padding: 0.6rem 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 0;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.lang-globe-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.4), 
    transparent
  );
  transition: left 0.5s ease;
}

.lang-globe-btn:hover::before {
  left: 100%;
}

.lang-globe-btn:hover {
  background: rgba(0, 210, 190, 0.15);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border-color: rgba(0, 210, 190, 0.5);
  box-shadow: 
    0 12px 48px 0 rgba(0, 210, 190, 0.25),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.6),
    0 2px 4px 0 rgba(0, 210, 190, 0.2);
  color: #00D2BE;
  transform: translateY(-2px) scale(1.02);
}

.lang-globe-btn svg {
  width: 20px;
  height: 20px;
  transition: transform 0.4s ease;
}

.lang-globe-btn:hover svg {
  transform: rotate(180deg);
}

.current-lang {
  font-weight: 600;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  
  /* Liquid Glass Effect */
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 0;
  box-shadow: 
    0 16px 48px 0 rgba(31, 38, 135, 0.2),
    inset 0 1px 2px 0 rgba(255, 255, 255, 0.6),
    0 4px 12px 0 rgba(0, 123, 255, 0.1);
  
  min-width: 180px;
  padding: 0.75rem;
  display: none;
  z-index: 1500;
  overflow: hidden;
}

.lang-dropdown.show {
  display: block;
  animation: dropdownSlideIn 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.lang-option {
  width: 100%;
  padding: 0.75rem 1rem;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #2c3e50;
  font-size: 0.95rem;
  border-radius: 0;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.lang-option::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 210, 190, 0.05);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  z-index: -1;
}

.lang-option:hover::before {
  transform: scaleX(1);
}

.lang-option:hover {
  background: rgba(0, 210, 190, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #00D2BE;
  transform: translateX(4px);
  box-shadow: 
    inset 0 0 0 1px rgba(0, 210, 190, 0.2),
    0 2px 8px rgba(0, 210, 190, 0.1);
}

.lang-option.active {
  background: linear-gradient(135deg, 
    rgba(0, 210, 190, 0.15) 0%, 
    rgba(0, 170, 170, 0.15) 50%,
    rgba(0, 130, 150, 0.15) 100%
  );
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  color: #00D2BE;
  font-weight: 600;
  border: 1px solid rgba(0, 210, 190, 0.2);
  box-shadow: 
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.3),
    0 2px 8px rgba(0, 210, 190, 0.15);
}

.lang-name {
  font-weight: 500;
  transition: font-weight 0.3s ease;
}

.lang-option.active .lang-name {
  font-weight: 600;
}

.lang-code {
  color: #5c6bc0;
  font-size: 0.85rem;
  padding: 0.2rem 0.5rem;
  background: rgba(92, 107, 192, 0.1);
  border-radius: 0;
  transition: all 0.3s ease;
}

.lang-option:hover .lang-code {
  background: rgba(0, 210, 190, 0.15);
  color: #00D2BE;
}

.lang-option.active .lang-code {
  background: rgba(0, 210, 190, 0.2);
  color: #00D2BE;
  font-weight: 600;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes dropdownSlideIn {
  from { 
    opacity: 0; 
    transform: translateY(-12px) scale(0.95);
  }
  to { 
    opacity: 1; 
    transform: translateY(0) scale(1);
  }
}

/* Mobile Navigation - Icon Only */
@media (max-width: 1002px) {
  .navbar {
    padding: 0.8rem 1rem;
    gap: 0.8rem;
    grid-template-columns: auto 1fr auto;
  }

  .logo img {
    height: clamp(28px, 4.5vw, 40px) !important;
  }

  .nav-links {
    gap: clamp(0.3rem, 1.5vw, 0.5rem);
    justify-content: flex-end;
  }
  
  .lang-switcher {
    justify-self: end;
    margin-right: 0;
    padding-right: 0;
  }
  
  .nav-links li {
    position: relative;
  }
  
  .nav-links li a {
    padding: clamp(0.4rem, 1.5vw, 0.6rem);
    padding-bottom: clamp(0.4rem, 1.5vw, 0.6rem);
    position: relative;
  }
  
  .nav-links li a .nav-icon {
    display: block;
    width: clamp(18px, 4vw, 22px);
    height: clamp(18px, 4vw, 22px);
  }
  
  .nav-links li a .nav-text {
    display: none;
  }
  
  .nav-links li a::after {
    display: none;
  }
  
  /* Tooltip for mobile icons */
  .nav-links li a::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    background: rgba(26, 35, 126, 0.95);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 0;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }
  
  .nav-links li a:hover::before,
  .nav-links li a:active::before {
    opacity: 1;
    transform: translateX(-50%) scale(1);
    bottom: -40px;
  }
  
  /* Tooltip arrow */
  .nav-links li a:hover::after,
  .nav-links li a:active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 6px solid rgba(26, 35, 126, 0.95);
    opacity: 1;
    z-index: 1000;
  }
  
  /* Dropdown?� 모바?�에???��? */
  .nav-dropdown-content {
    display: none !important;
  }
  
  /* ?�어 ?�택 버튼 - ?�이콘만 ?�시 */
  .lang-globe-btn {
    padding: clamp(0.4rem, 1.5vw, 0.6rem);
    padding-right: clamp(0.4rem, 1.5vw, 0.6rem);
    padding-left: clamp(0.4rem, 1.5vw, 0.6rem);
    min-width: auto;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    box-shadow: none;
    border-radius: 0;
    margin-right: 0;
  }
  
  .lang-switcher {
    margin-right: 0;
  }
  
  .lang-globe-btn::before {
    display: none;
  }
  
  .lang-globe-btn:hover {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    box-shadow: none;
    transform: none;
    color: #4DD0E1;
  }
  
  .lang-globe-btn:hover svg {
    transform: none;
  }
  
  .lang-globe-btn .lang-text,
  .lang-globe-btn .current-lang {
    display: none;
  }
  
  .lang-globe-btn svg {
    width: clamp(20px, 4.5vw, 24px);
    height: clamp(20px, 4.5vw, 24px);
    margin: 0;
  }
  
  /* 모바일에서는 드롭다운 숨김 */
  .lang-dropdown {
    display: none !important;
  }
  
  .lang-option {
    padding: 0.65rem 0.9rem;
    font-size: 0.9rem;
  }
  
  .lang-code {
    font-size: 0.8rem;
  }
}

/* ?��? 모바???�면 최적??*/
@media (max-width: 500px) {
  .navbar {
    padding: 0.6rem 0.8rem;
    gap: 0.5rem;
    grid-template-columns: auto 1fr auto;
  }

  .logo img {
    height: clamp(24px, 5.5vw, 36px) !important;
  }

  .nav-links {
    gap: clamp(0.2rem, 1vw, 0.3rem);
    justify-content: center;
  }
  
  .lang-switcher {
    justify-self: end;
    margin-right: 0;
    padding-right: 0;
  }
  
  .nav-links li a {
    padding: clamp(0.3rem, 1vw, 0.4rem);
    padding-bottom: clamp(0.3rem, 1vw, 0.4rem);
  }
  
  .nav-links li a .nav-icon {
    width: clamp(16px, 3.5vw, 18px);
    height: clamp(16px, 3.5vw, 18px);
  }
  
  .lang-globe-btn {
    padding: clamp(0.3rem, 1vw, 0.4rem);
    padding-right: clamp(0.3rem, 1vw, 0.4rem);
    padding-left: clamp(0.3rem, 1vw, 0.4rem);
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    box-shadow: none;
    border-radius: 0;
    margin-right: 0;
  }
  
  .lang-switcher {
    margin-right: 0;
  }
  
  .lang-globe-btn::before {
    display: none;
  }
  
  .lang-globe-btn:hover {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    box-shadow: none;
    transform: none;
    color: #4DD0E1;
  }
  
  .lang-globe-btn:hover svg {
    transform: none;
  }
  
  .lang-globe-btn .lang-text,
  .lang-globe-btn .current-lang {
    display: none;
  }
  
  .lang-globe-btn svg {
    width: clamp(18px, 4vw, 20px);
    height: clamp(18px, 4vw, 20px);
  }
  
  /* 모바일에서는 드롭다운 숨김 */
  .lang-dropdown {
    display: none !important;
  }
}

/* Section styles */
.section {
  max-width: 1300px;
  margin: 2rem auto;
  padding: 1.5rem;
  background: #fff;
  border-radius: 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Page Banner Styles */
.page-banner {
  background: linear-gradient(135deg, #f5f7fa 0%, #e8eaf6 100%);
  text-align: center;
  padding: 3rem 2rem;
  margin: 0;
  width: 100vw;
  max-width: none;
  border-radius: 0;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}

.page-banner-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-title {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1a237e;
  letter-spacing: -0.5px;
}

.page-subtitle {
  font-size: 1.2rem;
  color: #5c6bc0;
  line-height: 1.6;
  margin-bottom: 0;
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 9000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: auto;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
}

.modal-content {
  background: #fff;
  margin: auto;
  padding: 0;
  border-radius: 0;
  width: 85%;
  max-width: 720px;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: modalFadeIn 0.3s ease-out;
  overflow: hidden;
  max-height: 90vh;
}

.close-btn {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  font-size: 1.8rem;
  color: #1a237e;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.5rem;
  line-height: 1;
  z-index: 10;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.close-btn:hover {
  opacity: 1;
}

@keyframes modalFadeIn {
  from { 
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* Filter and Sorting Styles */
.sort-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
  justify-content: center;
}

.sort-container label {
  font-weight: 500;
  color: #1a237e;
  font-size: 0.95rem;
}

.sort-container select {
  padding: 0.5rem 1rem;
  border: 1px solid #e0e6ed;
  border-radius: 0;
  background: #fff;
  color: #1a237e;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sort-container select:focus {
  outline: none;
  border-color: #1a237e;
  box-shadow: 0 0 0 2px rgba(26, 35, 126, 0.1);
}

/* Tag styles */
.tag {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 0;
  font-size: 0.85rem;
  font-weight: 500;
  background: #e8eaf6;
  color: #1a237e;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

/* Page Banner Styles - Enhanced Responsive */
.page-banner {
  position: relative;
  /* ?�면 비율???�라 ?�적?�로 ?�이 조정 */
  height: clamp(200px, 25vh, 400px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #1a237e 0%, #3949ab 50%, #5c6bc0 100%);
  transition: height 0.3s ease-out;
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.page-banner.scrolled {
  height: clamp(120px, 15vh, 250px);
}

.page-banner-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  transition: transform 0.3s ease-out;
}

.page-banner.scrolled .page-banner-background {
  transform: scale(1.05);
}

/* ?��?지/비디??반응??처리 - ?�면 비율???�라 최적??*/
.page-banner-image,
.page-banner-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  max-width: none;
  object-fit: cover;
  object-position: center center;
  filter: brightness(0.7);
  z-index: 1;
  transition: filter 0.3s ease-out, transform 0.3s ease-out;
  /* ?�능 최적??*/
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* 가�??�면 (?�?�드 ?�크�? */
@media (min-aspect-ratio: 16/9) {
  .page-banner-image,
  .page-banner-video {
    width: 100%;
    height: auto;
  }
}

/* ?�로 ?�면 (모바???�로 모드) */
@media (max-aspect-ratio: 9/16) {
  .page-banner-image,
  .page-banner-video {
    width: auto;
    height: 100%;
  }
}

/* 중간 비율 ?�면 (?�블�? ?�반 모니?? */
@media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 16/9) {
  .page-banner-image,
  .page-banner-video {
    width: 100vw;
    height: 100%;
  }
}

/* ?�트???�?�드 ?�면 (21:9 ?�상) */
@media (min-aspect-ratio: 21/9) {
  .page-banner-image,
  .page-banner-video {
    width: 100%;
    height: auto;
    object-position: center center;
  }
}

/* ?�트?????�면 (매우 좁�? 모바?? */
@media (max-aspect-ratio: 1/2) {
  .page-banner-image,
  .page-banner-video {
    width: auto;
    height: 100%;
    object-position: center center;
  }
  
  .page-banner {
    height: clamp(100px, 20vh, 280px);
    padding: 1rem 0.8rem;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
  }
  
  .page-banner-content {
    padding: 0 0.8rem;
    max-width: 95%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
  }
  
  .page-banner-title {
    font-size: clamp(0.9rem, 5vw, 1.8rem) !important;
    line-height: 1.2;
    margin: 0 0 0.5rem 0;
  }
  
  .page-banner-subtitle {
    font-size: clamp(0.75rem, 3.5vw, 0.9rem) !important;
    line-height: 1.3;
    margin: 0;
  }
}

.page-banner.scrolled .page-banner-image,
.page-banner.scrolled .page-banner-video {
  filter: brightness(0.5);
  transform: translate(-50%, -50%) scale(1.05);
}

.page-banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 35, 126, 0.1);
  z-index: 2;
  transition: background 0.3s ease-out;
}

.page-banner.scrolled .page-banner-overlay {
  background: rgba(26, 35, 126, 0.15);
}

.page-banner-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: white;
  max-width: 800px;
  padding: 0 2rem;
  margin: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

.page-banner.scrolled .page-banner-content {
  transform: scale(0.9);
}

.page-banner-title {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  transition: font-size 0.3s ease-out;
}

.page-banner.scrolled .page-banner-title {
  font-size: clamp(1.2rem, 3.5vw, 2rem);
}

.page-banner-subtitle {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  opacity: 0.9;
  margin: 0;
  font-weight: 300;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  font-family: 'Apple SD Gothic Neo', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Page banner responsive styles */
@media (max-width: 768px) {
  /* Reduce top padding on mobile for all pages except home */
  main {
    padding-top: 20px !important;
  }
  
  .page-banner {
    height: clamp(140px, 18vh, 280px);
    padding: 1.5rem 1rem;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    max-width: 100%;
  }
  
  .page-banner.scrolled {
    height: clamp(90px, 10vh, 180px);
    padding: 1rem 0.8rem;
  }
  
  .page-banner-content {
    padding: 0 1rem;
    max-width: 95%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
  }
  
  .page-banner-title {
    font-size: clamp(1.2rem, 5vw, 2rem) !important;
    line-height: 1.3;
    margin: 0 0 0.8rem 0;
    word-break: keep-all;
  }
  
  .page-banner-subtitle {
    font-size: clamp(0.8rem, 3vw, 1rem) !important;
    line-height: 1.4;
    max-width: 95%;
    margin: 0;
    word-break: keep-all;
  }
  
  .logo img {
    height: clamp(26px, 4vw, 38px) !important;
  }
}

@media (max-width: 480px) {
  .page-banner {
    height: clamp(100px, 16vh, 220px);
    padding: 1rem 0.8rem;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    max-width: 100%;
  }
  
  .page-banner.scrolled {
    height: clamp(70px, 8vh, 140px);
    padding: 0.8rem 0.6rem;
  }
  
  .page-banner-content {
    padding: 0 0.8rem;
    max-width: 98%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
  }
  
  .page-banner-title {
    font-size: clamp(1rem, 6vw, 1.8rem) !important;
    line-height: 1.2;
    margin: 0 0 0.6rem 0;
    word-break: keep-all;
  }
  
  .page-banner-subtitle {
    font-size: clamp(0.75rem, 3.5vw, 0.9rem) !important;
    line-height: 1.3;
    max-width: 98%;
    margin: 0;
    word-break: keep-all;
  }
  
  .logo img {
    height: clamp(22px, 3.5vw, 32px) !important;
  }
}

/* Very small mobile screens (320px and below) */
@media (max-width: 320px) {
  .page-banner {
    height: clamp(70px, 12vh, 160px);
    padding: 0.6rem 0.5rem;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    max-width: 100%;
  }
  
  .page-banner.scrolled {
    height: clamp(50px, 6vh, 100px);
    padding: 0.4rem 0.3rem;
  }
  
  .page-banner-content {
    padding: 0 0.3rem;
    max-width: 99%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
  }
  
  .page-banner-title {
    font-size: clamp(0.8rem, 7vw, 1.3rem) !important;
    line-height: 1.1;
    margin: 0 0 0.3rem 0;
    word-break: keep-all;
  }
  
  .page-banner-subtitle {
    font-size: clamp(0.65rem, 4.5vw, 0.75rem) !important;
    line-height: 1.2;
    max-width: 100%;
    margin: 0;
    word-break: keep-all;
  }
  
  .logo img {
    height: clamp(18px, 3vw, 28px) !important;
  }
}

/* ?�면 ?�전 ?�??- 가�?모드 */
@media (max-height: 500px) and (orientation: landscape) {
  .page-banner {
    height: clamp(100px, 50vh, 200px);
  }
  
  .page-banner.scrolled {
    height: clamp(80px, 40vh, 150px);
  }
  
  .page-banner-title {
    margin-bottom: 0.25rem;
  }
  
  .page-banner-subtitle {
    display: none; /* 가�?모드?�서 공간 ?�약 */
  }
}

/* Footer Styles */
.footer {
  background: #1a237e;
  color: #fff;
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4rem;
}

.footer-section h3 {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  color: #fff;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

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

.footer-social a {
  color: #fff;
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.footer-social a:hover {
  color: #4DD0E1;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 1rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #4DD0E1;
}

.footer-contact-info p {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.8);
}

.footer-contact-info i {
  font-size: 1.2rem;
  color: #4DD0E1;
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

/* Utility classes */
.lang {
  transition: opacity 0.3s ease;
  /* Hide all language elements by default to prevent flashing */
  opacity: 0;
  visibility: hidden;
}

/* Show language elements after language is determined */
.lang.lang-visible {
  opacity: 1;
  visibility: visible;
}

/* Responsive design */
@media (max-width: 900px) {
  header.transparent-header {
    position: static;
    width: 100%;
    background: #fff;
    color: #1a237e;
    box-shadow: 0 2px 12px rgba(26,35,126,0.10);
    border-radius: 0;
    margin: 0 auto;
    max-width: 96vw;
    left: 0;
    right: 0;
    top: 0;
    backdrop-filter: none;
    transition: background 0.3s, color 0.3s;
  }
  
  .navbar {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0.5rem;
  }
  
  .logo {
    color: #1a237e;
  }
  
  .nav-links li a {
    color: #1a237e;
  }
}

@media (max-width: 768px) {
  .page-title {
    font-size: 2.2rem;
  }
  
  .page-subtitle {
    font-size: 1.1rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .footer-section {
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-contact-info p {
    justify-content: center;
  }
  
  .modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    width: 100%;
    height: 100vh;
    border-radius: 0;
    max-height: 100vh;
  }
}

@media (max-width: 600px) {
  .navbar { 
    flex-direction: column; 
    gap: 1rem; 
  }
  
  .section { 
    padding: 1rem; 
  }
  
  .modal-content { 
    padding: 1rem; 
  }
  
  header.transparent-header {
    max-width: 98vw;
    border-radius: 0;
    padding: 0;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 0.8rem 1rem;
  }
  
  .section {
    margin: 1rem auto;
    padding: 1rem;
  }
  
  .modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    width: 95%;
    max-width: none;
    max-height: 90vh;
    border-radius: 0;
  }
}

/* iPhone 최적??(iPhone 14, 13, 12 ?�리�? */
@media screen and (max-width: 428px) and (-webkit-device-pixel-ratio: 3) {
  body {
    font-size: 16px; /* iOS �?방�? */
    -webkit-text-size-adjust: 100%;
  }
  
  .header {
    padding: 0.5rem 1rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }
  
  .nav-menu {
    font-size: 0.9rem;
    gap: 0.5rem;
  }
  
  .nav-menu li a {
    padding: 0.7rem 1rem;
    border-radius: 0;
  }
  
  .page-banner-title {
    font-size: 2rem !important;
    line-height: 1.2;
  }
  
  .page-banner-subtitle {
    font-size: 1rem !important;
    line-height: 1.4;
  }
  
  .section {
    padding: 1rem 0.75rem;
    margin: 0.75rem auto;
  }
  
  /* ?�치 ?�역 최적??*/
  button, .filter-btn, .achievement-filter {
    min-height: 44px; /* iOS 권장 ?�치 ?�역 */
    padding: 0.75rem 1rem;
  }
  
  /* ?�크�?최적??*/
  .page-banner, .section {
    -webkit-overflow-scrolling: touch;
  }
}

/* 갤럭??S ?�리�?최적??(Galaxy S22, S23 ?? */
@media screen and (max-width: 412px) and (min-device-pixel-ratio: 2.5) {
  body {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
  }
  
  .header {
    padding: 0.5rem 1rem;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  }
  
  .nav-menu {
    gap: 0.4rem;
    font-size: 0.85rem;
  }
  
  .page-banner-title {
    font-size: 1.8rem !important;
    margin-bottom: 0.5rem;
  }
  
  .page-banner-subtitle {
    font-size: 0.95rem !important;
    line-height: 1.5;
  }
  
  /* 그리???�이?�웃 최적??*/
  .grid, .showcase-grid, .gallery-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }
  
  /* 카드 ?�이?�웃 조정 */
  .card, .project-card, .member-card {
    margin-bottom: 1rem;
    border-radius: 0;
  }
}

/* ?�형 모바??기기 (iPhone SE, Galaxy S Mini ?? */
@media screen and (max-width: 375px) {
  .header {
    padding: 0.4rem 0.8rem;
  }
  
  .logo img {
    height: clamp(20px, 3vw, 28px) !important;
  }
  
  .nav-menu {
    font-size: 0.8rem;
    gap: 0.3rem;
  }
  
  .nav-menu li a {
    padding: 0.6rem 0.8rem;
  }
  
  .page-banner {
    height: clamp(80px, 14vh, 180px);
    padding: 0.8rem 0.6rem;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
  }
  
  .page-banner.scrolled {
    height: clamp(60px, 8vh, 120px);
    padding: 0.6rem 0.5rem;
  }
  
  .page-banner-content {
    padding: 0 0.5rem;
    max-width: 98%;
  }
  
  .page-banner-title {
    font-size: clamp(0.9rem, 6.5vw, 1.5rem) !important;
    line-height: 1.1;
    margin-bottom: 0.4rem;
    word-break: keep-all;
  }
  
  .page-banner-subtitle {
    font-size: clamp(0.7rem, 4vw, 0.8rem) !important;
    line-height: 1.2;
    max-width: 100%;
    margin: 0 auto;
    word-break: keep-all;
  }
  
  .section {
    padding: 0.8rem 0.6rem;
  }
  
  .filter-btn, .achievement-filter {
    font-size: 0.8rem;
    padding: 0.6rem 0.9rem;
  }
}

/* 가�?모드 최적??*/
@media screen and (max-height: 500px) and (orientation: landscape) {
  .page-banner {
    height: clamp(80px, 40vh, 150px);
    padding: 0.8rem 1rem;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
  }
  
  .page-banner.scrolled {
    height: clamp(60px, 30vh, 120px);
    padding: 0.6rem 0.8rem;
  }
  
  .page-banner-content {
    padding: 0 1rem;
    max-width: 95%;
  }
  
  .page-banner-title {
    font-size: clamp(0.9rem, 4vw, 1.5rem) !important;
    margin-bottom: 0.25rem;
    line-height: 1.2;
  }
  
  .page-banner-subtitle {
    font-size: clamp(0.75rem, 2.5vw, 0.85rem) !important;
    line-height: 1.3;
  }
  
  .header {
    padding: 0.3rem 1rem;
  }
  
  main {
    padding-top: 60px !important;
  }
}

/* PWA 지??�??�전 ?�역 */
@supports (padding: max(0px)) {
  .header {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }
  
  .section {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }
  
  .footer {
    padding-bottom: max(2rem, env(safe-area-inset-bottom));
  }
}
