@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --primary: #3fc3e4;
  --primary-dark: #d3e4e7;
  --primary-light: #4ade80;
  --secondary: #f0fdfa;
  --accent: #fff;
  --text: #1F2937;
  --text-dark: #111827;
  --gray: #6B7280;
  --gradient-card: linear-gradient(135deg, #F0FDFA 0%, #E0F2FE 100%);
  --gradient-hero: linear-gradient(135deg, #0afcf4 0%, #2a94ca 100%);
  --shadow-light: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-heavy: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

html {
  background: #ffffff;
  -webkit-background-clip: padding-box;
  background-clip: padding-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: #ffffff;
  background: var(--gradient-card);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  -webkit-background-clip: padding-box;
  background-clip: padding-box;
}

.container {
  width: 90%;
  max-width: 900px;
  margin: 0 auto;
}

/* ===== NAVBAR ===== */
.navbar {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(20px) !important;
  box-shadow: var(--shadow-light);
  padding: 1rem 0;
  border-bottom: 1px solid rgba(10, 252, 196, 0.1);
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  transition: all 0.3s ease;
  width: 100%;
}

.navbar-scrolled {
  padding: 0.6rem 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(30px);
  box-shadow: var(--shadow-medium);
}

.navbar-scrolled .nav-container {
  gap: 0.6rem;
}

.navbar-scrolled .logo {
  margin-bottom: 0.2rem;
}

.navbar-scrolled .logo-img {
  height: 35px;
}

.navbar-scrolled .nav-links a {
  padding: 0.3rem 0.7rem;
  font-size: 0.9rem;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  transition: transform 0.3s ease;
}

.logo-img {
  height: 40px;
  width: auto;
  transition: all 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.logo:hover .logo-img {
  transform: scale(1.05) rotate(2deg);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 80%;
}

.nav-links a:hover {
  color: var(--text);
}

/* ===== HERO SECTION ===== */
.hero {
  background: var(--gradient-hero);
  color: var(--accent);
  padding: 6rem 0 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

.hero-inner {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  animation: fadeInUp 1s ease-out;
}

.hero .subhead {
  margin-bottom: 2.5rem;
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 1s ease-out 0.2s both;
}

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

.main-btn {
  background: var(--accent);
  color: var(--primary-dark);
  border: none;
  padding: 1rem 2.5rem;
  border-radius: 3rem;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-medium);
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 1s ease-out 0.4s both;
}

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

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

.main-btn:hover {
  background: var(--secondary);
  color: var(--primary-dark);
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--shadow-heavy);
}

/* ===== FEATURES SECTION ===== */
.features {
  background: var(--accent);
  padding: 5rem 0 4rem 0;
  text-align: center;
  position: relative;
}

.features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.features h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 3rem;
  color: var(--text-dark);
  font-weight: 700;
  letter-spacing: -0.01em;
  position: relative;
}

.features h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  justify-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-item {
  background: var(--gradient-card);
  border-radius: 1.5rem;
  box-shadow: var(--shadow-light);
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 400px;
  transition: all 0.4s ease;
  border: 1px solid rgba(10, 252, 196, 0.1);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.feature-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-hero);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.feature-item:hover::before {
  transform: scaleX(1);
}

.feature-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-heavy);
  border-color: rgba(10, 252, 196, 0.3);
}

.feature-images {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  height: auto;
  align-items: center;
}

.feature-images .feature-img {
  width: 120px;
  height: 120px;
  border-radius: 0.8rem;
  transition: all 0.3s ease;
  margin: 0;
  object-fit: contain;
}

.feature-item:hover .feature-images .feature-img {
  transform: scale(1.05);
}

.feature-img {
  width: 100%;
  max-width: 280px;
  height: 400px;
  margin: 0 auto 1.5rem;
  border-radius: 1rem;
  transition: all 0.3s ease;
  object-fit: contain;
}

.feature-item:hover .feature-img {
  transform: scale(1.05);
}

.feature-item h3 {
  color: var(--text-dark);
  margin-bottom: 1rem;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.feature-item p {
  color: var(--text);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Image Slider for first card */
.image-slider {
  position: relative;
  width: 100%;
  max-width: 280px;
  height: 400px;
  overflow: hidden;
  border-radius: 1rem;
  margin: 0 auto 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-slider .feature-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.95);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 1rem;
  margin: 0;
  max-width: 280px;
}

.image-slider .feature-img.active {
  opacity: 1;
  transform: scale(1);
}

.image-slider .feature-img:nth-child(1) {
  animation: slideShow 9s infinite;
}

.image-slider .feature-img:nth-child(2) {
  animation: slideShow 9s infinite 3s;
}

.image-slider .feature-img:nth-child(3) {
  animation: slideShow 9s infinite 6s;
}

@keyframes slideShow {
  0%, 33.33% {
    opacity: 1;
    transform: scale(1);
  }
  33.34%, 100% {
    opacity: 0;
    transform: scale(0.95);
  }
}

.feature-item:hover .image-slider .feature-img {
  transform: none;
}

/* ===== CONTACT SECTION ===== */
.contact {
  background: #F0FDFA;
  background: var(--gradient-card);
  padding: 5rem 0 4rem 0;
  text-align: center;
  position: relative;
  -webkit-background-clip: padding-box;
  background-clip: padding-box;
}

.contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%230afcc4" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
  opacity: 0.5;
  pointer-events: none;
}

.contact h2 {
  color: var(--text-dark);
  margin-bottom: 2rem;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  position: relative;
  z-index: 2;
}

.contact h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 450px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

input, textarea {
  padding: 1rem 1.2rem;
  border: 2px solid rgba(10, 252, 196, 0.2);
  border-radius: 1rem;
  font-size: 1rem;
  font-family: inherit;
  resize: none;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(10, 252, 196, 0.1);
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-2px);
}

textarea {
  min-height: 120px;
}

.btn {
  background: var(--gradient-hero);
  color: var(--accent);
  border: none;
  padding: 1rem 2.5rem;
  border-radius: 3rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-medium);
  position: relative;
  overflow: hidden;
}

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

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  background: linear-gradient(135deg, #2b57b6 0%, #0afcc4 100%);
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--shadow-heavy);
}

#formMessage {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--text-dark);
  font-weight: 500;
  position: relative;
  z-index: 2;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--accent);
  text-align: center;
  padding: 3rem 0 4rem 0;
  color: var(--gray);
  font-size: 1rem;
  border-top: 1px solid rgba(10, 252, 196, 0.1);
  position: relative;
  margin-bottom: 2rem;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer .btn {
  margin-bottom: 0;
  font-size: 0.95rem;
  padding: 0.8rem 2rem;
  text-decoration: none;
}

.footer p {
  margin: 0;
  font-weight: 500;
  opacity: 0.8;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .feature-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}



@media (max-width: 480px) {
  html {
    background: #ffffff !important;
  }
  
  body {
    background: #ffffff !important;
  }
  
  .feature-list {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .container {
    width: 100%;
    padding: 0 0.8rem;
  }
  
  .navbar {
    padding: 0.8rem 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(25px);
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    width: 100%;
  }
  
  .navbar-scrolled {
    padding: 0.4rem 0;
    background: rgba(255, 255, 255, 0.99);
    backdrop-filter: blur(35px);
  }
  
  .navbar-scrolled .nav-container {
    gap: 0.3rem;
  }
  
  .navbar-scrolled .logo {
    margin-bottom: 0.1rem;
  }
  
  .navbar-scrolled .logo-img {
    height: 32px;
  }
  
  .navbar-scrolled .nav-links a {
    padding: 0.2rem 0.5rem;
    font-size: 0.8rem;
  }
  
  .nav-container {
    padding: 0 0.8rem;
    flex-direction: column;
    gap: 0.6rem;
    align-items: center;
  }
  
  .logo {
    margin-bottom: 0.3rem;
  }
  
  .logo-img {
    height: 40px;
  }
  
  .nav-links {
    gap: 0.6rem;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .nav-links a {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.4rem;
    backdrop-filter: blur(10px);
  }
  
  .hero {
    padding: 2.5rem 0 1.5rem 0;
  }
  
  .hero h1 {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
  }
  
  .hero .subhead {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }
  
  .main-btn {
    padding: 0.7rem 1.8rem;
    font-size: 0.95rem;
  }
  
  .features {
    padding: 2.5rem 0;
  }
  
  .features h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
  }
  
  .feature-item {
    padding: 1.2rem 0.8rem;
    margin-bottom: 0.8rem;
  }
  
  .feature-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
  }
  
  .feature-item p {
    font-size: 0.9rem;
    line-height: 1.4;
  }
  
  .feature-images {
    gap: 0.5rem;
    height: auto;
  }
  
  .feature-images .feature-img {
    width: 90px;
    height: 90px;
  }
  
  /* 480px 이하에서 호버 효과 완전 제거 */
  .feature-item:hover,
  .feature-item:hover .feature-img {
    transform: none !important;
    box-shadow: var(--shadow-light) !important;
  }
  
  .feature-item:hover::before {
    transform: scaleX(0) !important;
  }
  
  .feature-item:hover .feature-images .feature-img {
    transform: none !important;
  }
  
  .image-slider {
    max-width: 280px;
    height: 400px;
    margin: 0 auto 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .feature-img {
    max-width: 280px;
    height: 400px;
    object-fit: contain;
  }
  
  .contact {
    padding: 2.5rem 0;
    background: #F0FDFA !important;
  }
  
  .contact::before {
    display: none;
  }
  
  .contact h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
  }
  
  .contact-form {
    gap: 1.2rem;
  }
  
  .contact-form input,
  .contact-form textarea {
    padding: 0.7rem;
    font-size: 0.9rem;
  }
  
  .btn {
    padding: 0.7rem 1.8rem;
    font-size: 0.95rem;
  }
  
  .footer {
    padding: 2rem 0 1.5rem 0;
  }
  
  .footer p {
    font-size: 0.9rem;
  }
} 