@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700&display=swap');

:root {
  --primary-color: #333;
  --accent-color: #ffc107;
  --text-muted: #6c757d;
  --bg-light: #f8f9fa;
  --transition-speed: 0.3s;
}

body {
  font-family: 'Noto Sans KR', sans-serif;
  color: var(--primary-color);
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

/* Navbar */
.navbar {
  padding: 0.8rem 0;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: all var(--transition-speed);
}
.navbar-brand { font-weight: 700; font-size: 1.25rem; color: var(--primary-color) !important; }
.nav-link { font-weight: 500; color: var(--primary-color) !important; margin: 0 0.5rem; transition: color var(--transition-speed); }
.nav-link:hover { color: var(--accent-color) !important; }

/* Hero Section */
.hero-section {
  padding: 60px 0;
  background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
  margin-bottom: 1.5rem;
}
.display-1 { font-size: calc(2.5rem + 3.3vw); letter-spacing: -1px; margin-bottom: 1rem; line-height: 1.2; }
.display-4 { font-size: calc(1.8rem + 1.5vw); }

/* Buttons */
.btn-custom { padding: 0.7rem 1.5rem; border-radius: 50px; font-weight: 600; transition: all var(--transition-speed); white-space: nowrap; }
@media (max-width: 576px) { .btn-custom { padding: 0.6rem 1.2rem; font-size: 0.9rem; width: 100%; } }
.btn-kakao { background-color: #FEE500; color: #000; border: none; }
.btn-kakao:hover { background-color: #e6ce00; }

/* Portfolio Styles */
#categoryFilter {
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 10px;
  justify-content: flex-start !important;
}
#categoryFilter::-webkit-scrollbar { display: none; } /* 스크롤바 숨김 */

.nav-pills .nav-link { color: #333; border-radius: 20px; padding: 0.5rem 1.5rem; transition: all 0.3s; cursor: pointer; white-space: nowrap; }
.nav-pills .nav-link.active { background-color: #333 !important; color: #fff !important; }
.load-more-btn { border-radius: 30px; padding: 0.8rem 2.5rem; font-weight: 600; }

.portfolio-card .image-wrapper {
  position: relative;
  width: 100%;
  padding-top: 100%;
  overflow: hidden;
  background-color: #f8f9fa;
}
.portfolio-card .carousel {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}
.portfolio-card img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.portfolio-card:hover img { transform: scale(1.05); }

.category-badge {
  position: absolute;
  top: 15px; left: 15px;
  z-index: 10;
  background-color: rgba(0,0,0,0.6);
  color: #fff !important;
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  backdrop-filter: blur(4px);
}

/* Admin Dashboard Styles */
.thumb-preview { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; border: 1px solid #ddd; }
.badge { color: #fff !important; }
.login-container { max-width: 400px; margin-top: 100px; }

/* Modal Styles */
#portfolioModal .modal-content {
  border-radius: 24px;
  border: none;
}

@media (min-width: 768px) {
  #portfolioModal .modal-body {
    height: 600px;
    display: flex;
    overflow: hidden;
  }
  #portfolioModal .row { flex: 1; height: 100%; }
  #portfolioModal .col-md-6 { height: 100%; }
  #portfolioModal .carousel,
  #portfolioModal .carousel-inner,
  #portfolioModal .carousel-item { height: 100%; }
  #portfolioModal .carousel-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: 24px 0 0 24px;
  }
  #portfolioModal .p-4.h-100 { overflow-y: auto; }
}

@media (max-width: 767px) {
  #portfolioModal .modal-dialog {
    margin: 10px;
  }
  #portfolioModal .carousel-item img {
    border-radius: 24px 24px 0 0;
    height: 300px !important;
    object-fit: cover;
  }
  #portfolioModal .p-4 {
    padding: 1.5rem !important;
  }
  #portfolioModal h3 {
    font-size: 1.25rem;
  }
}

#portfolioModal .modal-header .btn-close {
  position: absolute;
  right: 15px;
  top: 15px;
  z-index: 1000;
  background-color: white;
  padding: 8px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  opacity: 0.9;
}
#portfolioModal .modal-header .btn-close:hover { opacity: 1; }
#portfolioModal .badge {
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
}

/* Utilities */
.shadow-custom { box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.table-responsive { border-radius: 15px; overflow: hidden; }
img { max-width: 100%; height: auto; }

@media (max-width: 768px) {
  .hero-section { padding: 40px 0; }
  .container { padding-left: 20px; padding-right: 20px; }
  .display-5 { font-size: 1.8rem; }
}
