/* =======================================
   CAN - Computer Algorithm Network
   styles.css
======================================= */

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: 'Noto Sans KR', sans-serif;
  background: #0d0f17;
  color: #e2e8f0;
  line-height: 1.6;
  overflow-x: hidden;
  /* 아이폰 홈 인디케이터 / 노치 영역 대응 */
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img {
  max-width: 100%; display: block;
  -webkit-user-drag: none;
  -webkit-user-select: none;
  user-select: none;
  pointer-events: none;
}

/* ── VARIABLES ── */
:root {
  --primary: #6c63ff;
  --primary-light: #8b85ff;
  --accent: #00d4ff;
  --accent2: #ff6584;
  --bg: #0d0f17;
  --bg2: #131622;
  --bg3: #1a1d2e;
  --card: #1e2130;
  --card2: #252840;
  --border: rgba(108, 99, 255, 0.2);
  --text: #e2e8f0;
  --text-muted: #8892a4;
  --text-light: #cbd5e0;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-card: 0 8px 32px rgba(0,0,0,0.3);
  --transition: 0.3s ease;
}


/* ── COMMON ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.section-dark { background: var(--bg2); }
.section-accent { background: linear-gradient(135deg, #1a0a3a 0%, #0a1a3a 100%); }

.section-header { text-align: center; margin-bottom: 64px; }
.section-header h2 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 900; margin-bottom: 16px; }
.section-header p { color: var(--text-muted); font-size: 1.05rem; max-width: 500px; margin: 0 auto; }

.section-tag {
  display: inline-block;
  background: rgba(108, 99, 255, 0.15);
  color: var(--primary-light);
  border: 1px solid var(--border);
  padding: 4px 16px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-family: 'JetBrains Mono', monospace;
}
.section-tag.light {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.8);
  border-color: rgba(255,255,255,0.2);
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  letter-spacing: 0.02em;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(108,99,255,0.4);
}
.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(108,99,255,0.5);
}
.btn-outline {
  border-color: var(--primary);
  color: var(--primary-light);
  background: transparent;
}
.btn-outline:hover {
  background: rgba(108,99,255,0.1);
  transform: translateY(-2px);
}
.btn-white {
  background: #fff;
  color: var(--primary);
  font-weight: 700;
}
.btn-white:hover { background: #f0f0ff; transform: translateY(-2px); }
.btn-full { width: 100%; }

/* =======================================
   NAVBAR
======================================= */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(13, 15, 23, 0.8);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: all var(--transition);
}
#navbar.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}
.nav-container {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  height: 68px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.4rem; font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}
.logo-bracket { color: var(--accent); }
.nav-links {
  display: flex; align-items: center; gap: 8px;
}
.nav-links a {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition);
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,0.05); }
.nav-links a.active { color: var(--primary-light); }
.nav-links .nav-cta {
  background: var(--primary);
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 100px;
  font-weight: 700;
  animation: pulse-cta 2s infinite;
}
.nav-links .nav-cta:hover { background: var(--primary-light); }
@keyframes pulse-cta {
  0%, 100% { box-shadow: 0 0 0 0 rgba(108,99,255,0.4); }
  50% { box-shadow: 0 0 0 6px rgba(108,99,255,0); }
}
.hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* =======================================
   HERO
======================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 30% 50%, rgba(108,99,255,0.12) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 20%, rgba(0,212,255,0.08) 0%, transparent 50%),
              var(--bg);
}
#bgCanvas {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.6;
}
.hero-content {
  position: relative; z-index: 1;
  text-align: center; padding: 120px 24px 80px;
  max-width: 800px;
}
.hero-tag {
  display: inline-block;
  background: rgba(0,212,255,0.1);
  color: var(--accent);
  border: 1px solid rgba(0,212,255,0.3);
  padding: 6px 20px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 28px;
  animation: fadeInDown 0.8s ease;
}
.hero-title {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #fff 0%, var(--primary-light) 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  min-height: 1.2em;
  animation: fadeInUp 0.8s ease 0.2s both;
}
.cursor {
  -webkit-text-fill-color: var(--accent);
  animation: blink 1s infinite;
  font-weight: 300;
}
@keyframes blink { 0%,50% { opacity: 1; } 51%,100% { opacity: 0; } }
.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  line-height: 1.8;
  animation: fadeInUp 0.8s ease 0.4s both;
}
.hero-sub strong { color: var(--primary-light); }
.hero-buttons {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; flex-wrap: wrap;
  margin-bottom: 64px;
  animation: fadeInUp 0.8s ease 0.6s both;
}
.hero-stats {
  display: flex; align-items: center; justify-content: center; gap: 40px;
  padding: 28px 40px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  animation: fadeInUp 0.8s ease 0.8s both;
}
.stat { text-align: center; }
.stat-num {
  font-size: 2.2rem; font-weight: 900;
  font-family: 'JetBrains Mono', monospace;
  background: linear-gradient(135deg, #fff, var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat span { font-size: 1.4rem; font-weight: 700; color: var(--primary-light); }
.stat p { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }
.stat-div { width: 1px; height: 40px; background: var(--border); }

.scroll-down {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.scroll-down span {
  display: block; width: 2px; height: 10px;
  background: var(--text-muted);
  border-radius: 1px;
  animation: scrollAnim 1.5s infinite;
}
.scroll-down span:nth-child(2) { animation-delay: 0.2s; }
.scroll-down span:nth-child(3) { animation-delay: 0.4s; }
@keyframes scrollAnim {
  0%, 100% { opacity: 0.2; } 50% { opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =======================================
   ABOUT
======================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-text h3 {
  font-size: 1.8rem; font-weight: 700; margin-bottom: 20px;
  background: linear-gradient(135deg, #fff, var(--primary-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.about-text p {
  color: var(--text-muted); margin-bottom: 16px; line-height: 1.8;
}
.about-values { margin-top: 32px; display: flex; flex-direction: column; gap: 20px; }
.value-item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 16px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.value-item:hover {
  border-color: var(--primary);
  transform: translateX(4px);
}
.value-icon { font-size: 1.5rem; flex-shrink: 0; }
.value-item h4 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; color: #fff; }
.value-item p { font-size: 0.88rem; color: var(--text-muted); margin: 0; }

/* Code card */
.about-card-wrap { perspective: 1000px; }
.about-card {
  background: #1a1d2e;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card), 0 0 60px rgba(108,99,255,0.1);
  transition: transform 0.3s ease;
}
.about-card:hover { transform: rotateY(-4deg) rotateX(2deg); }
.card-header {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 20px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #ff5f57; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #28ca41; }
.card-title { margin-left: auto; font-size: 0.82rem; color: var(--text-muted); font-family: 'JetBrains Mono', monospace; }
.code-block {
  padding: 28px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.88rem;
  line-height: 1.8;
  color: #abb2bf;
}
.kw { color: #c678dd; }
.fn { color: #61afef; }
.str { color: #98c379; }
.num { color: #d19a66; }

/* =======================================
   ACTIVITIES
======================================= */
.activities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.activity-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all 0.4s ease;
  opacity: 0;
  transform: translateY(24px);
}
.activity-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.activity-card:hover {
  border-color: var(--primary);
  background: var(--card2);
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(108,99,255,0.15);
}
.activity-icon { font-size: 2.5rem; margin-bottom: 20px; }
.activity-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 12px; color: #fff; }
.activity-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 20px; }
.activity-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.activity-tags li {
  padding: 4px 12px;
  background: rgba(108,99,255,0.12);
  border: 1px solid rgba(108,99,255,0.25);
  border-radius: 100px;
  font-size: 0.75rem;
  color: var(--primary-light);
  font-weight: 600;
}

/* =======================================
   MEMBERS
======================================= */
.members-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.member-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: all var(--transition);
}
.member-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}
.member-card.executive {
  border-color: rgba(255, 215, 0, 0.3);
  background: linear-gradient(135deg, var(--card), #1e1a10);
}
.member-avatar { margin-bottom: 20px; }
.avatar-placeholder {
  width: 80px; height: 80px;
  background: linear-gradient(135deg, var(--bg3), var(--card2));
  border: 2px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  margin: 0 auto;
  transition: all var(--transition);
}
.avatar-photo {
  width: 100px; height: 100px;
  border-radius: 50%;
  border: 2px solid var(--border);
  overflow: hidden;
  margin: 0 auto;
  transition: all var(--transition);
}
.avatar-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.member-card:hover .avatar-placeholder,
.member-card:hover .avatar-photo {
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(108,99,255,0.3);
}
.member-info h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.member-role {
  display: inline-block;
  padding: 3px 14px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(108,99,255,0.15);
  color: var(--primary-light);
  border: 1px solid var(--border);
  margin-bottom: 8px;
}
.member-role.president {
  background: rgba(255, 215, 0, 0.12);
  color: #ffd700;
  border-color: rgba(255,215,0,0.3);
}
.member-role.vp {
  background: rgba(0,212,255,0.12);
  color: var(--accent);
  border-color: rgba(0,212,255,0.3);
}
.member-info > p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 16px; }
.member-skills { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; }
.member-skills span {
  padding: 3px 10px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

/* =======================================
   GALLERY
======================================= */
.gallery-filter {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 8px;
  margin-bottom: 40px;
}
.filter-btn {
  padding: 8px 22px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  font-family: 'Noto Sans KR', sans-serif;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(108,99,255,0.3);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 16px;
}
.gallery-item { overflow: hidden; border-radius: var(--radius); }
.gallery-item.large { grid-column: span 2; }
.gallery-item.tall { grid-row: span 2; }
.gallery-img {
  width: 100%; height: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.4s ease;
}
.gallery-img:hover { transform: scale(1.03); }
.gallery-img::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(108,99,255,0.8), rgba(0,0,0,0.4));
  opacity: 0; transition: opacity 0.3s ease; z-index: 1;
  border-radius: var(--radius);
}
.gallery-img:hover::before { opacity: 1; }
.gallery-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 20px;
  z-index: 2;
  transform: translateY(20px); opacity: 0;
  transition: all 0.3s ease;
}
.gallery-img:hover .gallery-overlay { transform: translateY(0); opacity: 1; }
.gallery-overlay h4 { font-size: 1rem; font-weight: 700; color: #fff; }
.gallery-overlay p { font-size: 0.82rem; color: rgba(255,255,255,0.7); }

/* Gallery image placeholders with gradients */
.news-1 { background: linear-gradient(135deg, #1a1050 0%, #2d1b69 50%, #6c63ff 100%); }
.news-2 { background: linear-gradient(135deg, #0d3b5e 0%, #1a6e9f 50%, #00d4ff 100%); }
.event-1 { background: linear-gradient(135deg, #1a2f1a 0%, #2d5a27 50%, #4caf50 100%); }
.event-2 { background: linear-gradient(135deg, #3a1a1a 0%, #6b2d2d 50%, #e74c3c 100%); }
.study-1 { background: linear-gradient(135deg, #1a1a3a 0%, #2d2d6b 50%, #3f51b5 100%); }
.study-2 { background: linear-gradient(135deg, #1a3a3a 0%, #1a6b6b 50%, #00bcd4 100%); }
.project-1 { background: linear-gradient(135deg, #3a2a10 0%, #6b4f1a 50%, #ff9800 100%); }
.project-2 { background: linear-gradient(135deg, #2a1a3a 0%, #5a2d6b 50%, #9c27b0 100%); }

/* Add decorative icons to gallery placeholders */
.hackathon-1::after, .hackathon-2::after, .event-1::after, .event-2::after,
.study-1::after, .study-2::after, .project-1::after, .project-2::after {
  content: '';
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem;
  opacity: 0.2;
}

/* =======================================
   NOTICE
======================================= */
.notice-wrap { max-width: 800px; margin: 0 auto; }
.notice-list { display: flex; flex-direction: column; gap: 12px; }
.notice-item {
  display: flex; align-items: center; gap: 20px;
  padding: 22px 28px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
}
.notice-item:hover {
  border-color: var(--primary);
  background: var(--card2);
  transform: translateX(4px);
}
.notice-item.pinned {
  border-color: rgba(255, 215, 0, 0.3);
  background: linear-gradient(90deg, rgba(255,215,0,0.05), var(--card));
}
.notice-badge {
  flex-shrink: 0;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(108,99,255,0.15);
  color: var(--primary-light);
  border: 1px solid var(--border);
  white-space: nowrap;
}
.notice-badge.pin {
  background: rgba(255,215,0,0.1);
  color: #ffd700;
  border-color: rgba(255,215,0,0.3);
}
.notice-badge.event {
  background: rgba(0,212,255,0.1);
  color: var(--accent);
  border-color: rgba(0,212,255,0.3);
}
.notice-content { flex: 1; min-width: 0; }
.notice-content h4 {
  font-size: 0.98rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.notice-content p { font-size: 0.85rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notice-date { font-size: 0.78rem; color: var(--text-muted); font-family: 'JetBrains Mono', monospace; display: block; margin-top: 4px; }
.notice-arrow { color: var(--primary-light); font-size: 1.2rem; flex-shrink: 0; transition: transform var(--transition); }
.notice-item:hover .notice-arrow { transform: translateX(4px); }

/* =======================================
   RECRUIT
======================================= */
.recruit-wrap {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: start;
}
.recruit-text h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900; margin-bottom: 20px;
  color: #fff;
}
.recruit-text > p { color: rgba(255,255,255,0.7); font-size: 1.05rem; margin-bottom: 36px; line-height: 1.8; }
.recruit-list { display: flex; flex-direction: column; gap: 20px; margin-bottom: 36px; }
.recruit-list li { display: flex; align-items: flex-start; gap: 16px; }
.recruit-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 2px; }
.recruit-list strong { display: block; font-size: 0.95rem; color: #fff; margin-bottom: 4px; }
.recruit-list p { font-size: 0.88rem; color: rgba(255,255,255,0.6); }

.recruit-form {
  background: rgba(255,255,255,0.05);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.recruit-form h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 28px; color: #fff; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: 0.85rem; font-weight: 600;
  color: rgba(255,255,255,0.7); margin-bottom: 8px;
}
.form-group input, .form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  color: #fff;
  font-size: 0.9rem;
  font-family: 'Noto Sans KR', sans-serif;
  transition: all var(--transition);
  resize: vertical;
}
.form-group select {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  color: #fff;
  font-size: 0.9rem;
  font-family: 'Noto Sans KR', sans-serif;
  transition: all var(--transition);
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238892a4' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.form-group select option { background: #1e2130; color: #fff; }
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  background-color: rgba(108,99,255,0.1);
  box-shadow: 0 0 0 3px rgba(108,99,255,0.2);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(255,255,255,0.3); }
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(108,99,255,0.1);
  box-shadow: 0 0 0 3px rgba(108,99,255,0.2);
}

/* =======================================
   FOOTER
======================================= */
.footer-section { padding: 80px 0 0; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1.5fr;
  gap: 48px; padding-bottom: 64px;
  border-bottom: 1px solid var(--border);
}
.footer-logo {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.6rem; font-weight: 700; color: #fff;
  margin-bottom: 16px;
}
.footer-brand p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 24px; }
.social-links { display: flex; gap: 12px; }
.social-btn {
  width: 40px; height: 40px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition);
}
.social-btn svg { width: 18px; height: 18px; }
.social-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}
.footer-links h4, .footer-contact-info h4 {
  font-size: 0.95rem; font-weight: 700; color: #fff;
  margin-bottom: 20px;
}
.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.88rem; color: var(--text-muted); transition: color var(--transition); }
.footer-links a:hover { color: var(--primary-light); }
.footer-contact-info ul { display: flex; flex-direction: column; gap: 12px; }
.footer-contact-info li { display: flex; align-items: flex-start; gap: 12px; font-size: 0.88rem; color: var(--text-muted); }
.contact-icon { flex-shrink: 0; font-size: 1rem; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 28px 0;
  font-size: 0.82rem; color: var(--text-muted);
  flex-wrap: wrap; gap: 8px;
}

/* =======================================
   TOAST
======================================= */
.toast {
  position: fixed; bottom: 32px; right: 32px;
  background: var(--card2);
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  padding: 16px 24px;
  font-size: 0.9rem; color: #fff;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  transform: translateY(80px); opacity: 0;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 9999; max-width: 320px;
  pointer-events: none;
}
.toast.show { transform: translateY(0); opacity: 1; }

/* =======================================
   RESPONSIVE
======================================= */
@media (max-width: 1024px) {
  .activities-grid { grid-template-columns: repeat(2, 1fr); }
  .members-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .about-grid { gap: 40px; }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .section-header { margin-bottom: 40px; }
  .hamburger { display: flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #0d0f17;
    flex-direction: column; align-items: stretch;
    padding: 12px 16px 20px;
    gap: 4px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 16px 40px rgba(0,0,0,0.6);
    /* 애니메이션 */
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0s linear 0.25s;
    pointer-events: none;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0s linear 0s;
    pointer-events: all;
  }
  .nav-links a { padding: 12px 16px; border-radius: var(--radius); }
  .nav-links .nav-cta { text-align: center; border-radius: var(--radius); }

  /* Hero */
  .hero-content { padding: 100px 20px 60px; }
  .hero-stats { gap: 16px; padding: 20px; flex-wrap: wrap; justify-content: space-around; }
  .stat-div { display: none; }

  /* About */
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-card-wrap { margin-top: 8px; }
  .code-block { font-size: 0.78rem; overflow-x: auto; padding: 20px; }

  /* Activities & Members */
  .activities-grid { grid-template-columns: repeat(2, 1fr); }
  .activity-card { padding: 24px 20px; }
  .members-grid { grid-template-columns: repeat(2, 1fr); }

  /* Gallery */
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .gallery-item.large { grid-column: span 1; }
  .gallery-item.tall { grid-row: span 1; }

  /* Notice: allow text to wrap */
  .notice-item { flex-wrap: wrap; padding: 16px 20px; gap: 10px; align-items: flex-start; }
  .notice-content h4 { white-space: normal; }
  .notice-content p { white-space: normal; }
  .notice-arrow { margin-left: auto; }

  /* Recruit & Footer */
  .recruit-wrap { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 2fr 1fr 1.5fr; gap: 24px; padding-bottom: 48px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .section { padding: 60px 0; }
  .section-header { margin-bottom: 28px; }

  /* Hero */
  .hero-content { padding: 88px 16px 48px; }
  .hero-sub { font-size: 0.98rem; }
  .hero-stats { flex-direction: row; flex-wrap: wrap; gap: 12px 8px; padding: 16px 12px; justify-content: space-around; }
  .stat { flex: 1; min-width: 80px; flex-direction: column; align-items: center; }
  .stat-num { font-size: 1.5rem; }
  .hero-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .btn { padding: 12px 14px; font-size: 0.88rem; }

  /* Activities */
  .activities-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .activity-card { padding: 16px 12px; }
  .activity-icon { font-size: 1.6rem; margin-bottom: 8px; }
  .activity-card h3 { font-size: 0.95rem; margin-bottom: 8px; }
  .activity-card p {
    font-size: 0.82rem;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .activity-tags { gap: 5px; }
  .activity-tags li { font-size: 0.68rem; padding: 3px 8px; }

  /* Members */
  .members-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .member-card { padding: 16px 10px; }
  .member-avatar { margin-bottom: 12px; }
  .avatar-photo { width: 72px; height: 72px; }
  .avatar-placeholder { width: 60px; height: 60px; font-size: 1.4rem; }
  .member-info h3 { font-size: 0.95rem; margin-bottom: 6px; }
  .member-role { font-size: 0.7rem; padding: 2px 10px; margin-bottom: 6px; }
  .member-info > p { font-size: 0.78rem; margin-bottom: 10px; }
  .member-skills { gap: 4px; }
  .member-skills span { font-size: 0.68rem; padding: 2px 7px; }

  /* Gallery */
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }

  /* Notice: fully stacked */
  .notice-item { flex-direction: column; align-items: flex-start; padding: 14px 16px; gap: 8px; }
  .notice-arrow { display: none; }
  .notice-badge { font-size: 0.7rem; }

  /* Recruit & Form */
  .recruit-form { padding: 20px; }

  /* Footer: 브랜드 전체폭 + 링크/연락처 2열 */
  .footer-section { padding: 60px 0 0; }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px 16px;
    padding-bottom: 36px;
  }
  .footer-brand {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 12px 20px;
  }
  .footer-brand p { margin-bottom: 0; font-size: 0.85rem; }
  .footer-logo { margin-bottom: 8px; font-size: 1.3rem; }
  .social-links { justify-content: flex-end; }
  .footer-links h4, .footer-contact-info h4 { font-size: 0.88rem; margin-bottom: 14px; }
  .footer-links a, .footer-contact-info li { font-size: 0.82rem; }
  .footer-contact-info li span:last-child { word-break: break-all; }
  .toast { bottom: 16px; right: 16px; left: 16px; max-width: none; }
}
