/* I&M Studio Redesign Site styles.css */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Pretendard', -apple-system, sans-serif;
  background: #FFFFFF;
  color: #0C1B3A;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

@keyframes wave {
  0%, 100% {
    transform: scaleY(0.35);
  }
  50% {
    transform: scaleY(1);
  }
}

@keyframes marqueeL {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes marqueeR {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes streamUp {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-50%);
  }
}

@keyframes softpulse {
  0% {
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.45);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(22, 163, 74, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0);
  }
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

@keyframes logoHue {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

.logo-text {
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, #D1478C, #2E8BC0, #D1478C, #2E8BC0, #D1478C);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  -webkit-text-stroke: 0.5px transparent;
  paint-order: stroke fill;
}
}

/* Custom Interactive Hover Classes */

.nav-link {
  font-size: 14.5px;
  font-weight: 500;
  color: #46566F;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: #1D4ED8;
}

.btn-cta {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: #1D4ED8;
  padding: 9px 17px;
  border-radius: 9px;
  box-shadow: 0 8px 18px -8px rgba(29, 78, 216, 0.6);
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-cta:hover {
  background: #1A45BE;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1D4ED8;
  color: #fff;
  padding: 15px 26px;
  border-radius: 11px;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 14px 30px -12px rgba(29, 78, 216, 0.65);
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-hero-primary:hover {
  background: #1A45BE;
  transform: translateY(-1px);
}

.btn-hero-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: #0C1B3A;
  border: 1px solid #D5DEEC;
  padding: 15px 24px;
  border-radius: 11px;
  font-weight: 600;
  font-size: 15px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.btn-hero-ghost:hover {
  border-color: #1D4ED8;
  color: #1D4ED8;
}

.feature-card {
  background: #fff;
  border: 1px solid #E8EDF5;
  border-radius: 16px;
  padding: 28px;
  transition: all 0.25s ease;
}

.feature-card:hover {
  border-color: #C9D7F5;
  box-shadow: 0 16px 36px -16px rgba(16, 40, 90, 0.22);
  transform: translateY(-3px);
}

.btn-contact-mail {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #fff;
  color: #0C1B3A;
  padding: 16px 30px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 16px 32px -14px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn-contact-mail:hover {
  transform: translateY(-2px);
}

.footer-mail-link {
  font-size: 15px;
  color: #9DB2D8;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-mail-link:hover {
  color: #fff;
}

/* Responsive Utilities */
@media (max-width: 768px) {
  .responsive-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  
  .nav-toggle {
    display: flex !important;
  }
  
  .nav-menu {
    display: none !important;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid #EAEFF7;
    flex-direction: column;
    padding: 20px 28px;
    gap: 18px !important;
    align-items: stretch !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
  }
  
  .nav-menu.active {
    display: flex !important;
  }

  .nav-menu a {
    width: 100%;
    display: block;
    padding: 8px 0;
  }

  .nav-menu .btn-cta {
    text-align: center;
    margin-top: 6px;
  }
}

/* Mobile Toggle Button */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 22px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 100;
}

.nav-toggle span {
  width: 100%;
  height: 2.2px;
  background-color: #0C1B3A;
  border-radius: 4px;
  transition: all 0.25s ease-in-out;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ===== Language Toggle (i18n) ===== */

/* Default: Korean visible, English hidden */
.lang-en {
  display: none;
}

.lang-ko {
  display: inline;
}

/* When English mode is active */
html[lang="en"] .lang-en {
  display: inline;
}

html[lang="en"] .lang-ko {
  display: none;
}

/* Block-level variants (for block containers like <p>, <h2>) */
html[lang="en"] p > .lang-en,
html[lang="en"] h1 > .lang-en,
html[lang="en"] h2 > .lang-en,
html[lang="en"] h3 > .lang-en,
html[lang="en"] h4 > .lang-en,
html[lang="en"] li > .lang-en {
  display: inline;
}

/* Language Toggle Button */
.lang-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 32px;
  padding: 0 10px;
  border: 1.5px solid #D5DEEC;
  border-radius: 8px;
  background: transparent;
  font-size: 12.5px;
  font-weight: 700;
  color: #46566F;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
  font-family: inherit;
  flex-shrink: 0;
}

.lang-toggle-btn:hover {
  border-color: #1D4ED8;
  color: #1D4ED8;
  background: #EEF3FF;
}

/* Contact buttons — only one visible at a time */
a.btn-contact-mail.lang-ko,
a.btn-contact-mail.lang-en {
  display: none;
}

a.btn-contact-mail.lang-ko {
  display: inline-flex;
}

html[lang="en"] a.btn-contact-mail.lang-ko {
  display: none;
}

html[lang="en"] a.btn-contact-mail.lang-en {
  display: inline-flex;
}

@media (max-width: 768px) {
  .lang-toggle-btn {
    margin-top: 6px;
  }
}
