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

:root {
  --primary-color: #6366f1;
  --secondary-color: #a855f7;
  --dark-color: #0f172a;
  --light-color: #f8fafc;
  --white: #ffffff;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
  line-height: 1.6;
  color: var(--dark-color);
  background-color: var(--white);
}

/* Navigation */
.navbar {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

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

.logo {
  font-size: 1.5rem;
  color: var(--dark-color);
  font-weight: 800;
}

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

.nav-menu a {
  text-decoration: none;
  color: #64748b;
  font-weight: 500;
  transition: var(--transition);
}

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

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: radial-gradient(circle at top right, #e0e7ff 0%, #ffffff 50%, #f3e8ff 100%);
  padding: 0 2rem;
}

.badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-color);
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.hero-content h2 {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  margin-bottom: 1.5rem;
  font-weight: 900;
  line-height: 1.1;
  color: var(--dark-color);
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  color: #475569;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.cta-button {
  background: var(--dark-color);
  color: var(--white);
  border: none;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition);
}

.cta-button.secondary {
  background: transparent;
  color: var(--dark-color);
  border: 2px solid var(--dark-color);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* About Section */
.about {
  padding: 8rem 2rem;
  background: var(--dark-color);
  color: var(--white);
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
}

.about-text h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--white);
}

.about-text p {
  font-size: 1.5rem;
  line-height: 1.6;
  color: #94a3b8;
  max-width: 900px;
  margin-bottom: 4rem;
}

.stats {
  display: flex;
  gap: 4rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-item strong {
  font-size: 3rem;
  color: var(--primary-color);
}

.stat-item span {
  color: #64748b;
}

/* Services Section */
section {
  padding: 8rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 4rem;
}

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

.service-card {
  background: #f8fafc;
  padding: 3rem 2rem;
  border-radius: 24px;
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.05);
}

.service-card:hover {
  background: var(--white);
  box-shadow: 0 20px 40px rgba(0,0,0,0.05);
  transform: translateY(-5px);
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  display: block;
}

/* Portfolio Section */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
}

.portfolio-item {
  border-radius: 24px;
  overflow: hidden;
  background: #f1f5f9;
  transition: var(--transition);
}

.portfolio-content {
  padding: 2rem;
}

.portfolio-placeholder {
  height: 250px;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #64748b;
  border-radius: 16px;
  margin-bottom: 1.5rem;
}

.preview-btn {
  margin-top: 1.5rem;
  background: var(--dark-color);
  color: var(--white);
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  width: 100%;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(10px);
}

.modal-content {
  background-color: var(--white);
  margin: 5vh auto;
  border-radius: 32px;
  width: 90%;
  max-width: 1000px;
  overflow: hidden;
  position: relative;
}

.preview-display {
  height: 500px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-info {
  padding: 3rem;
}

.close-btn {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 2.5rem;
  cursor: pointer;
  color: var(--dark-color);
  z-index: 10;
}

/* Inquiry Form */
.inquiry {
  background: #f8fafc;
  max-width: 100%;
}

.inquiry-container {
  max-width: 800px;
  margin: 0 auto;
}

.inquiry-form {
  background: var(--white);
  padding: 4rem;
  border-radius: 32px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.05);
}

.form-group {
  margin-bottom: 2rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--dark-color);
}

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1rem;
}

.submit-button {
  width: 100%;
  padding: 1.2rem;
  background: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
}

/* Footer */
.footer {
  background: var(--dark-color);
  color: var(--white);
  padding: 6rem 2rem 3rem;
  text-align: center;
}

.footer-bottom {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #64748b;
}

@media (max-width: 768px) {
  .hero-content h2 { font-size: 3rem; }
  .stats { flex-direction: column; gap: 2rem; }
  .inquiry-form { padding: 2rem; }
}
