/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary-color: #64748b;
  --accent-color: #06b6d4;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --background: #ffffff;
  --background-alt: #f8fafc;
  --border-color: #e2e8f0;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --border-radius: 0.5rem;
  --transition: all 0.3s ease;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Noto Sans", sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--background);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header Styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: var(--transition);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 4rem;
}

.nav-logo h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

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

.nav-link {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover {
  color: var(--primary-color);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.bar {
  width: 1.5rem;
  height: 2px;
  background-color: var(--text-primary);
  margin: 2px 0;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  padding: 8rem 0 4rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  animation: fadeInUp 0.8s ease-out;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-description {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  text-decoration: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-align: center;
  transition: var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background-color: white;
  color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--background-alt);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background-color: transparent;
  color: white;
  border-color: white;
}

.btn-secondary:hover {
  background-color: white;
  color: var(--primary-color);
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInRight 0.8s ease-out 0.2s both;
}

.hero-graphic {
  position: relative;
  width: 300px;
  height: 300px;
}

.graphic-element {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  animation: float 6s ease-in-out infinite;
}

.element1 {
  width: 120px;
  height: 120px;
  top: 20px;
  left: 20px;
  animation-delay: 0s;
}

.element2 {
  width: 80px;
  height: 80px;
  top: 160px;
  right: 40px;
  animation-delay: 2s;
}

.element3 {
  width: 60px;
  height: 60px;
  bottom: 20px;
  left: 60px;
  animation-delay: 4s;
}

/* Services Section */
.services {
  padding: 5rem 0;
  background-color: var(--background-alt);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.section-description {
  font-size: 1.125rem;
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-card.coming-soon {
  opacity: 0.8;
}

.service-icon {
  width: 3rem;
  height: 3rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.service-description {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.service-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.service-link:hover {
  color: var(--primary-dark);
}

.coming-soon-badge {
  background-color: var(--accent-color);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
}

/* About Section */
.about {
  padding: 5rem 0;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.about-features {
  display: grid;
  gap: 1.5rem;
}

.feature h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.feature p {
  color: var(--text-secondary);
  line-height: 1.5;
}

.about-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-graphic {
  position: relative;
  width: 250px;
  height: 250px;
}

.graphic-circle {
  width: 200px;
  height: 200px;
  border: 3px solid var(--primary-color);
  border-radius: 50%;
  position: absolute;
  top: 25px;
  left: 25px;
  animation: rotate 20s linear infinite;
}

.graphic-dots {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.graphic-dots span {
  width: 12px;
  height: 12px;
  background-color: var(--accent-color);
  border-radius: 50%;
  position: absolute;
  animation: pulse 2s ease-in-out infinite;
}

.graphic-dots span:nth-child(1) {
  top: -30px;
  left: -30px;
}
.graphic-dots span:nth-child(2) {
  top: -30px;
  right: -30px;
  animation-delay: 0.5s;
}
.graphic-dots span:nth-child(3) {
  bottom: -30px;
  left: -30px;
  animation-delay: 1s;
}
.graphic-dots span:nth-child(4) {
  bottom: -30px;
  right: -30px;
  animation-delay: 1.5s;
}

/* Contact Section */
.contact {
  padding: 5rem 0;
  background-color: var(--background-alt);
}

.contact-content {
  max-width: 600px;
  margin: 0 auto;
}

.contact-info {
  display: grid;
  gap: 2rem;
}

.contact-item h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.contact-item p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Footer */
.footer {
  background-color: var(--text-primary);
  color: white;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
  margin-bottom: 1rem;
  color: white;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
}

.footer-section a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
}

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

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

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

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.4;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 4rem;
    flex-direction: column;
    background-color: white;
    width: 100%;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
    padding: 2rem 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-toggle {
    display: flex;
  }

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

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

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

  .hero {
    padding: 6rem 0 3rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  .section-title {
    font-size: 2rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.75rem;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 250px;
  }
}

/* Pleos App Specific Styles */
.service-card.pleos-app {
  position: relative;
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  color: white;
  border: 2px solid #3366cc;
}

.service-card.pleos-app .service-title {
  color: white;
  font-weight: 700;
}

.service-card.pleos-app .service-description {
  color: rgba(255, 255, 255, 0.9);
}

.service-card.pleos-app .service-icon {
  color: #60a5fa;
}

.pleos-preview {
  margin: 1.5rem 0;
  position: relative;
  height: 300px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-screenshot {
  width: 200px;
  height: 250px;
  background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
  border-radius: 20px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  overflow: hidden;

  /* 전체적으로 흐리게 처리 */
  filter: blur(2px) opacity(0.7);

  /* 가상의 앱 화면 표현 */
  background-image: radial-gradient(
      circle at 50% 30%,
      rgba(96, 165, 250, 0.3) 0%,
      transparent 50%
    ),
    linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.1) 0%,
      rgba(200, 200, 200, 0.1) 100%
    );
}

.app-screenshot::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  bottom: 20px;
  background: 
    /* 상단 헤더 영역 */ linear-gradient(
      to bottom,
      rgba(100, 100, 100, 0.2) 0px,
      rgba(100, 100, 100, 0.2) 30px,
      transparent 30px
    ),
    /* 가운데 중요 영역 - 포커스 */
      radial-gradient(
        ellipse at center,
        rgba(255, 255, 255, 0.8) 30%,
        transparent 70%
      ),
    /* 하단 메뉴들 - 블러 */
      linear-gradient(
        to top,
        rgba(100, 100, 100, 0.3) 0px,
        rgba(100, 100, 100, 0.3) 60px,
        transparent 60px
      );
  border-radius: 15px;

  /* 가운데만 선명하게, 위아래는 블러 */
  mask: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.5) 25%,
    rgba(0, 0, 0, 1) 40%,
    rgba(0, 0, 0, 1) 60%,
    rgba(0, 0, 0, 0.5) 75%,
    rgba(0, 0, 0, 0.3) 100%
  );
}

.app-screenshot::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 80px;
  background: rgba(96, 165, 250, 0.4);
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.6);

  /* 가운데 영역은 좀 더 선명하게 */
  filter: blur(1px);
}

.screenshot-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 10;
}

.service-card.pleos-app .coming-soon-badge {
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
  color: white;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(96, 165, 250, 0.4);
}

/* 애니메이션 효과 */
.app-screenshot {
  animation: gentle-pulse 3s ease-in-out infinite;
}

@keyframes gentle-pulse {
  0%,
  100% {
    transform: scale(1);
    filter: blur(2px) opacity(0.7);
  }
  50% {
    transform: scale(1.02);
    filter: blur(1.8px) opacity(0.75);
  }
}

/* 호버 효과 */
.service-card.pleos-app:hover .app-screenshot {
  filter: blur(1.5px) opacity(0.8);
  transform: scale(1.05);
  transition: all 0.3s ease;
}

.service-card.pleos-app:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(30, 60, 114, 0.3);
}
