/* ============================================
   최영미 개인 홈페이지 - 스타일시트
   컬러: 딥 네이비 #1a3a5c + 골드 #c8a96e
============================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:    #1a3a5c;
  --navy-dark: #0f2540;
  --navy-light: #2a527a;
  --gold:    #c8a96e;
  --gold-light: #dfc08a;
  --white:   #ffffff;
  --gray-50: #f8f9fb;
  --gray-100:#f0f2f5;
  --gray-300:#d1d5db;
  --gray-500:#6b7280;
  --gray-700:#374151;
  --text:    #1f2937;
  --radius:  12px;
  --shadow:  0 4px 24px rgba(26,58,92,0.10);
  --shadow-lg: 0 8px 40px rgba(26,58,92,0.16);
  --transition: 0.3s ease;
  --font: 'Noto Sans KR', sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.7;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------- Utility ---------- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.mt-32 { margin-top: 32px; }

/* ---------- Header / Nav ---------- */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-100);
  transition: box-shadow var(--transition);
}
#header.scrolled { box-shadow: var(--shadow); }

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--navy);
  letter-spacing: -0.5px;
}

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

.nav-menu a {
  padding: 8px 14px;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--gray-700);
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
}
.nav-menu a:hover { color: var(--navy); background: var(--gray-50); }

.nav-cta {
  background: var(--navy) !important;
  color: var(--white) !important;
  padding: 9px 20px !important;
  border-radius: 8px !important;
}
.nav-cta:hover { background: var(--navy-light) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--transition);
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  padding-top: 68px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, var(--navy-light) 100%);
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 40%, rgba(200,169,110,0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(200,169,110,0.07) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  flex: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 24px 60px;
  display: flex;
  align-items: center;
  gap: 60px;
  width: 100%;
}

.hero-text { flex: 1; }

.hero-label {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--gold-light);
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.hero-title {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 900;
  color: var(--white);
  letter-spacing: -2px;
  line-height: 1.05;
  margin-bottom: 16px;
}

.hero-sub {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 300;
  color: rgba(255,255,255,0.80);
  line-height: 1.6;
  margin-bottom: 28px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}

.badge {
  padding: 5px 14px;
  border: 1px solid rgba(200,169,110,0.6);
  border-radius: 100px;
  font-size: 0.82rem;
  color: var(--gold-light);
  font-weight: 500;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy-dark);
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200,169,110,0.4);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.08);
  transform: translateY(-2px);
}
.btn-full { width: 100%; }

/* Hero Photo */
.hero-photo {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  position: relative;
}

.photo-frame {
  width: 320px;
  height: 400px;
  border-radius: 24px;
  overflow: hidden;
  border: 3px solid rgba(200,169,110,0.5);
  box-shadow: 0 24px 64px rgba(0,0,0,0.45), 0 0 0 8px rgba(200,169,110,0.08);
  position: relative;
  z-index: 2;
  background: var(--navy-dark);
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.caricature-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Decorative orbiting rings behind photo */
.photo-deco {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}
.photo-deco-1 {
  width: 360px;
  height: 360px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 1.5px dashed rgba(200,169,110,0.35);
  animation: rotateDeco 18s linear infinite;
}
.photo-deco-2 {
  width: 420px;
  height: 420px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 1px dashed rgba(200,169,110,0.18);
  animation: rotateDeco 28s linear infinite reverse;
}
.photo-deco-1::after,
.photo-deco-2::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.8;
}
@keyframes rotateDeco {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Hero Stats */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: rgba(255,255,255,0.06);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 28px 24px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0 40px;
  flex: 1;
  max-width: 180px;
}
.stat strong {
  font-size: 2rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}
.stat span {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.15);
}

/* ---------- Section Base ---------- */
.section { padding: 100px 0; }
.section-alt { background: var(--gray-50); }

.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 900;
  color: var(--navy);
  letter-spacing: -1px;
  margin-bottom: 14px;
}
.section-desc {
  font-size: 1rem;
  color: var(--gray-500);
  max-width: 540px;
  margin: 0 auto;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 260px 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* About caricature column */
.about-caricature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.about-caricature-wrap {
  width: 220px;
  height: 260px;
  border-radius: 20px;
  overflow: hidden;
  border: 3px solid rgba(200,169,110,0.35);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(160deg, #1e4a72 0%, #0f2540 100%);
}
.about-caricature-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.about-caricature-tags {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
.about-caricature-tags span {
  display: block;
  text-align: center;
  padding: 7px 12px;
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--navy);
}

.about-message h3,
.about-info h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}

.about-message p {
  color: var(--gray-700);
  margin-bottom: 14px;
  line-height: 1.8;
}

.profile-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 32px;
}
.profile-table th,
.profile-table td {
  padding: 12px 14px;
  font-size: 0.92rem;
  border-bottom: 1px solid var(--gray-100);
  text-align: left;
}
.profile-table th {
  width: 80px;
  color: var(--gray-500);
  font-weight: 500;
  background: var(--gray-50);
}
.profile-table td { color: var(--text); font-weight: 500; }

.awards-title { margin-top: 28px !important; }

.awards-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.awards-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: linear-gradient(90deg, rgba(26,58,92,0.04) 0%, transparent 100%);
  border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0;
}
.award-year {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold);
  min-width: 36px;
}

/* ---------- Expertise ---------- */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.expertise-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
  transition: transform var(--transition), box-shadow var(--transition);
}
.expertise-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.expertise-icon { font-size: 2.2rem; margin-bottom: 16px; }

.expertise-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.expertise-card p {
  font-size: 0.88rem;
  color: var(--gray-500);
  line-height: 1.7;
}

/* ---------- Lectures ---------- */
.lectures-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.lecture-card {
  display: flex;
  gap: 20px;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.lecture-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}

.lecture-num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--gray-100);
  line-height: 1;
  min-width: 40px;
}

.lecture-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.4;
}

.lecture-body p {
  font-size: 0.86rem;
  color: var(--gray-500);
  margin-bottom: 14px;
  line-height: 1.65;
}

.lecture-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.tag {
  padding: 3px 10px;
  background: var(--gray-100);
  border-radius: 100px;
  font-size: 0.76rem;
  color: var(--gray-700);
  font-weight: 500;
}
.time {
  margin-left: auto;
  font-size: 0.78rem;
  color: var(--gold);
  font-weight: 600;
}

.lectures-cta {
  text-align: center;
  padding: 40px;
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  border-radius: 16px;
  color: rgba(255,255,255,0.85);
}
.lectures-cta p { margin-bottom: 20px; font-size: 1.05rem; }

/* ---------- Credentials ---------- */
.credentials-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.timeline-col h3,
.cert-col h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 28px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 24px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold), var(--gray-300));
}

.tl-item {
  position: relative;
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}
.tl-item::before {
  content: '';
  position: absolute;
  left: -21px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--gold);
}

.tl-year {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold);
  min-width: 38px;
  padding-top: 2px;
}

.tl-content {
  display: flex;
  flex-direction: column;
}
.tl-content strong {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 2px;
}
.tl-content span {
  font-size: 0.82rem;
  color: var(--gray-500);
}

/* Cert list */
.cert-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cert-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: var(--white);
  border-radius: 10px;
  border: 1px solid var(--gray-100);
  box-shadow: 0 2px 8px rgba(26,58,92,0.05);
}

.cert-icon { font-size: 1.4rem; flex-shrink: 0; }

.cert-item div {
  display: flex;
  flex-direction: column;
}
.cert-item strong {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 3px;
}
.cert-item span {
  font-size: 0.8rem;
  color: var(--gray-500);
}

/* ---------- Contact ---------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 60px;
  align-items: start;
}

.contact-info { display: flex; flex-direction: column; gap: 20px; }

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  background: var(--gray-50);
  border-radius: 10px;
  border: 1px solid var(--gray-100);
}
.contact-icon { font-size: 1.4rem; flex-shrink: 0; }

.contact-item div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.contact-item strong {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.contact-item a,
.contact-item span {
  font-size: 0.95rem;
  color: var(--navy);
  font-weight: 600;
}
.contact-item a:hover { color: var(--gold); }

.contact-procedure {
  padding: 20px;
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  border-radius: 10px;
  color: rgba(255,255,255,0.9);
}
.contact-procedure h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 14px;
}
.contact-procedure ol {
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contact-procedure li { font-size: 0.88rem; line-height: 1.5; }

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 16px;
  padding: 36px;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-700);
}
.req { color: var(--gold); }

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 14px;
  border: 1.5px solid var(--gray-300);
  border-radius: 8px;
  font-size: 0.92rem;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(26,58,92,0.08);
}

.form-group textarea { resize: vertical; min-height: 100px; }

.form-notice {
  font-size: 0.78rem;
  color: var(--gray-500);
  text-align: center;
  margin-top: 4px;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--navy-dark);
  padding: 48px 0;
  text-align: center;
}
.footer-name {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 6px;
}
.footer-sub {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 14px;
}
.footer-contact {
  margin-bottom: 20px;
}
.footer-contact a {
  font-size: 0.88rem;
  color: var(--gold-light);
  transition: color var(--transition);
}
.footer-contact a:hover { color: var(--white); }
.footer-copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
}
.admin-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.18);
  transition: color 0.2s;
}
.admin-link:hover { color: rgba(255,255,255,0.5); }

/* ---------- Hero intro animations ---------- */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(36px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes heroSlideIn {
  from { opacity: 0; transform: translateX(40px) scale(0.96); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes floatPhoto {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-12px); }
}

.hero-label   { animation: heroFadeUp 0.7s ease 0.1s both; }
.hero-title   { animation: heroFadeUp 0.7s ease 0.25s both; }
.hero-sub     { animation: heroFadeUp 0.7s ease 0.4s both; }
.hero-badges  { animation: heroFadeUp 0.7s ease 0.55s both; }
.hero-actions { animation: heroFadeUp 0.7s ease 0.7s both; }
.hero-photo   { animation: heroSlideIn 0.8s ease 0.3s both; }

/* Photo floating effect */
.photo-frame  { animation: floatPhoto 5s ease-in-out 1.2s infinite; }

/* Nav active link */
.nav-menu a.active { color: var(--navy); font-weight: 700; }

/* ---------- Scroll fade-in ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 1050px) {
  .about-grid { grid-template-columns: 1fr 1fr; }
  .about-caricature { display: none; }
}

@media (max-width: 900px) {
  .hero-content { flex-direction: column-reverse; gap: 40px; text-align: center; }
  .hero-badges, .hero-actions { justify-content: center; }
  .photo-frame { width: 260px; height: 320px; }
  .photo-deco-1 { width: 300px; height: 300px; }
  .photo-deco-2 { width: 350px; height: 350px; }
  .hero-stats { flex-wrap: wrap; gap: 16px; }
  .stat { padding: 0 20px; }
  .stat-divider { display: none; }

  .about-grid { grid-template-columns: 1fr; }
  .about-caricature { flex-direction: row; align-items: flex-start; }
  .about-caricature-wrap { width: 140px; height: 165px; flex-shrink: 0; }
  .about-caricature-tags { flex-direction: row; flex-wrap: wrap; }
  .expertise-grid { grid-template-columns: repeat(2, 1fr); }
  .lectures-grid { grid-template-columns: 1fr; }
  .credentials-wrap { grid-template-columns: 1fr; gap: 40px; }
  .contact-wrap { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 600px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 20px 24px;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--gray-100);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  .nav-menu.open { transform: translateY(0); opacity: 1; pointer-events: all; }
  .nav-menu a { padding: 12px 14px; display: block; }

  .section { padding: 72px 0; }
  .expertise-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }
  .hero-title { letter-spacing: -1px; }
}
