/* ========================================
   파이러브 인사이트 - 커스텀 스타일
   ======================================== */

/* 1. Base & Typography */
:root {
  --primary-navy: #0f1729;
  --secondary-navy: #1a2332;
  --dark-navy: #0a0e1a;
  --accent-mint: #00d9ff;
  --accent-cobalt: #3b82f6;
  --text-primary: #ffffff;
  --text-secondary: #a0aec0;
  --text-muted: #718096;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 14px;
  scroll-behavior: smooth;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans KR', sans-serif;
  background: var(--primary-navy);
  color: var(--text-primary);
  line-height: 1.7;
  margin: 0;
  padding: 0;
}

/* 2. Header & Navigation */
header {
  background: rgba(15, 23, 41, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar {
  padding: 1rem 0;
}

.navbar-brand {
  font-size: 1.5rem;
  color: var(--text-primary) !important;
  transition: all 0.3s ease;
}

.navbar-brand:hover {
  transform: translateY(-2px);
}

.nav-link {
  color: var(--text-secondary) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--accent-mint) !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-mint);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 80%;
}

/* 3. Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--primary-navy) 0%, var(--dark-navy) 100%);
  position: relative;
  overflow: hidden;
  padding: 1.5rem 0 !important;
  min-height: auto !important;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(0, 217, 255, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.animate-fade-in {
  animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 4. Buttons */
.btn-accent {
  background: linear-gradient(135deg, var(--accent-mint) 0%, var(--accent-cobalt) 100%);
  border: none;
  color: white;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 217, 255, 0.3);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 217, 255, 0.5);
  color: white;
}

.btn-outline-accent {
  border: 2px solid var(--accent-mint);
  color: var(--accent-mint);
  background: transparent;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn-outline-accent:hover {
  background: var(--accent-mint);
  color: var(--dark-navy);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 217, 255, 0.3);
}

/* Badge style button (non-interactive) */
.btn-badge {
  cursor: default;
  pointer-events: none;
  opacity: 0.9;
}

.btn-badge:hover {
  background: transparent !important;
  color: var(--accent-mint) !important;
  transform: none !important;
  box-shadow: none !important;
}

/* 5. Cards */
.bg-dark-alt {
  background: var(--secondary-navy);
}

.problem-card, .service-card, .process-card, .portfolio-card, .testimonial-card,
.about-card, .tech-stack-card, .solution-card, .tech-intro-card, .why-fast-card,
.maintenance-card, .maintenance-intro, .quality-assurance {
  background: rgba(26, 35, 50, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  transition: all 0.3s ease;
  height: 100%;
}

.problem-card:hover, .service-card:hover, .process-card:hover, .portfolio-card:hover,
.testimonial-card:hover, .maintenance-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-mint);
  box-shadow: 0 8px 30px rgba(0, 217, 255, 0.2);
}

.service-card {
  display: flex;
  flex-direction: column;
}

.service-card .text-accent {
  margin-top: auto;
}

/* About Section */
.feature-item {
  background: rgba(0, 217, 255, 0.05);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.feature-item:hover {
  background: rgba(0, 217, 255, 0.1);
}

/* Technical Section */
.tech-item, .solution-item {
  transition: all 0.3s ease;
}

.tech-item:hover {
  transform: translateX(5px);
}

.solution-item {
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.solution-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* Why Fast Section */
.highlight-box {
  background: rgba(0, 217, 255, 0.1);
  border: 2px solid var(--accent-mint);
  border-radius: 12px;
}

/* Maintenance Section */
.quality-item {
  background: rgba(0, 217, 255, 0.05);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.quality-item:hover {
  background: rgba(0, 217, 255, 0.1);
}

/* Testimonial Cards */
.testimonial-card {
  display: flex;
  flex-direction: column;
}

.testimonial-card .mt-auto {
  margin-top: auto;
}

.process-number {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--accent-mint) 0%, var(--accent-cobalt) 100%);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
}

.portfolio-image {
  height: 200px;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  position: relative;
  transition: all 0.3s ease;
}

.portfolio-image::after {
  content: '\F52D';
  font-family: 'bootstrap-icons';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  color: white;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.portfolio-image:hover::after {
  opacity: 0.8;
}

.portfolio-image:hover {
  transform: scale(1.02);
}

.portfolio-image:hover img {
  filter: brightness(0.7);
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.3s ease;
}

/* 6. Utility Classes */
.text-accent {
  color: var(--accent-mint);
}

.text-muted {
  color: var(--text-muted);
}

section {
  padding: 4rem 0;
}

/* 7. Contact Form */
.contact-form-card {
  background: rgba(26, 35, 50, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
}

.form-control, .form-select {
  background: rgba(15, 23, 41, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
  background: rgba(15, 23, 41, 1);
  border-color: var(--accent-mint);
  box-shadow: 0 0 0 0.2rem rgba(0, 217, 255, 0.25);
  color: var(--text-primary);
}

.form-control::placeholder {
  color: var(--text-muted);
}

.form-label {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

/* 8. Footer */
.footer {
  background: var(--primary-navy);
  color: var(--text-secondary);
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-info p {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.footer-info strong {
  color: #fff;
  font-weight: 700;
}

.footer-links a {
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--accent-mint) !important;
  transform: translateX(5px);
}

.footer a {
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--accent-mint) !important;
}

/* 9. Responsive */
@media (max-width: 768px) {
  .hero-section .display-3 {
    font-size: 2.5rem;
  }

  .hero-section .display-6 {
    font-size: 1.5rem;
  }

  .d-flex.gap-3 {
    flex-direction: column;
  }

  .btn-lg {
    width: 100%;
  }
}

/* 10. Scrollbar Styling */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--dark-navy);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-mint);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cobalt);
}