@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700;900&family=Outfit:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,400;0,600;1,400&display=swap');

/* --- CUSTOM PROPERTIES (DESIGN SYSTEM) --- */
:root {
  --font-base: 'Outfit', 'Noto Sans KR', sans-serif;
  --font-title: 'Outfit', 'Noto Sans KR', sans-serif;

  /* Color Palette */
  --color-bg-light: #f8fafc;
  --color-bg-white: #ffffff;
  --color-bg-dark: #0b0f19;
  --color-bg-darker: #070a10;
  
  --color-text-dark: #0f172a;
  --color-text-muted: #64748b;
  --color-text-light: #f1f5f9;
  --color-text-white: #ffffff;
  
  /* Primary & Accent (Bronze/Gold Art theme) */
  --color-primary: #1e293b;
  --color-primary-light: #334155;
  --color-accent: #c5a880;
  --color-accent-hover: #d3ba96;
  --color-accent-dark: #8c6d48;
  --color-success: #10b981;
  --color-error: #ef4444;

  /* Gradients */
  --grad-dark: linear-gradient(135deg, #1e293b 0%, #070a10 100%);
  --grad-accent: linear-gradient(135deg, #c5a880 0%, #9e7f55 100%);
  --grad-accent-hover: linear-gradient(135deg, #d3ba96 0%, #b39268 100%);

  /* Shadow & Blur */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 20px -2px rgba(0,0,0,0.08), 0 2px 8px -1px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 30px -5px rgba(0,0,0,0.1), 0 4px 12px -2px rgba(0,0,0,0.05);
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.25);
  --glass-bg-dark: rgba(11, 15, 25, 0.8);
  --glass-border-dark: rgba(255, 255, 255, 0.08);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-base);
  background-color: var(--color-bg-light);
  color: var(--color-text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  word-break: keep-all;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font-base);
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- LAYOUT UTILITIES --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.section-dark {
  background: var(--grad-dark);
  color: var(--color-text-light);
}

.text-center {
  text-align: center;
}

.section-title {
  font-family: var(--font-title);
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 20px;
  position: relative;
}

.section-subtitle {
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto 60px auto;
  font-size: 1.1rem;
}

.section-dark .section-subtitle {
  color: #94a3b8;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.btn-primary {
  background: var(--grad-accent);
  color: var(--color-bg-darker);
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(197, 168, 128, 0.3);
}

.btn-primary:hover {
  background: var(--grad-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(197, 168, 128, 0.4);
}

.btn-outline {
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
}

.btn-outline:hover {
  background: var(--color-accent);
  color: var(--color-bg-darker);
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--color-bg-dark);
  color: var(--color-text-white);
}

.btn-dark:hover {
  background: var(--color-primary);
  transform: translateY(-2px);
}

/* --- HEADER & NAVIGATION --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
  color: var(--color-text-white);
}

header.scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 12px 0;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--glass-border);
  color: var(--color-text-dark);
}

header.scrolled-dark {
  background: var(--glass-bg-dark);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 12px 0;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--glass-border-dark);
  color: var(--color-text-white);
}

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

.logo {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
}

.logo span {
  color: var(--color-accent);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

nav a {
  font-size: 0.95rem;
  font-weight: 500;
  padding: 8px 0;
  position: relative;
  color: inherit;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: var(--transition);
}

nav a:hover {
  color: var(--color-accent);
}

header.scrolled nav a:hover {
  color: var(--color-accent-dark);
}

nav a:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  color: inherit;
}

/* --- HERO SECTION --- */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  background: var(--grad-dark);
  position: relative;
  overflow: hidden;
  color: var(--color-text-white);
  padding-top: 80px;
}

.hero-slider-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.hero-slides {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

/* 어두운 오버레이 추가 (글씨 가독성 확보) */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(11, 15, 25, 0.08) 0%, rgba(7, 10, 16, 0.15) 100%);
  z-index: 2;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 700px;
  transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.hero-content.fade-out {
  opacity: 0;
  transform: translateY(15px);
}

/* 화살표 내비게이션 */
.hero-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--color-text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: var(--transition);
}

.hero-nav-btn:hover {
  background: var(--color-accent);
  color: var(--color-bg-darker);
  border-color: var(--color-accent);
  box-shadow: 0 0 15px rgba(197, 168, 128, 0.4);
}

.hero-nav-btn.prev {
  left: 30px;
}

.hero-nav-btn.next {
  right: 30px;
}

/* 하단 인디케이터 도트 */
.hero-dots {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 12px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: var(--transition);
}

.hero-dot:hover {
  background: rgba(255, 255, 255, 0.7);
}

.hero-dot.active {
  background: var(--color-accent);
  transform: scale(1.2);
}

@media (max-width: 768px) {
  .hero-nav-btn {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }
  .hero-nav-btn.prev {
    left: 15px;
  }
  .hero-nav-btn.next {
    right: 15px;
  }
  .hero-dots {
    bottom: 30px;
  }
}

.hero h1 {
  font-family: var(--font-title);
  font-size: 4.2rem;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8), 0 2px 4px rgba(0, 0, 0, 0.9);
}

.hero h1 span {
  color: var(--color-accent);
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8), 0 2px 4px rgba(0, 0, 0, 0.9);
}

.hero p {
  font-size: 1.2rem;
  color: #ffffff;
  margin-bottom: 40px;
  line-height: 1.8;
  font-weight: 400;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 1px 3px rgba(0, 0, 0, 0.9);
}

.hero-btns {
  display: flex;
  gap: 16px;
}

/* --- GREETING & TIMELINE --- */
.intro-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: start;
}

.greeting-text {
  font-size: 1.05rem;
  color: var(--color-text-dark);
  line-height: 1.8;
}

.greeting-text h3 {
  font-family: var(--font-title);
  font-size: 1.8rem;
  margin-bottom: 24px;
  font-weight: 600;
  line-height: 1.4;
}

.greeting-text h3 span {
  color: var(--color-accent-dark);
}

.greeting-text p {
  margin-bottom: 20px;
}

.ceo-sign {
  margin-top: 40px;
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  flex-direction: column;
}

.ceo-sign span {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  font-weight: 400;
  margin-top: 4px;
}

/* Timeline */
.timeline-container {
  background: var(--color-bg-white);
  padding: 40px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid #e2e8f0;
}

.timeline-title {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-primary);
}

.timeline-title i {
  color: var(--color-accent);
}

.timeline {
  position: relative;
  padding-left: 30px;
  border-left: 2px solid #e2e8f0;
}

.timeline-item {
  position: relative;
  margin-bottom: 30px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -37px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--color-accent);
  border: 2px solid var(--color-bg-white);
  box-shadow: 0 0 0 4px rgba(197, 168, 128, 0.2);
}

.timeline-item.active .timeline-dot {
  background-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(30, 41, 91, 0.2);
}

.timeline-date {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-accent-dark);
  margin-bottom: 6px;
}

.timeline-item.active .timeline-date {
  color: var(--color-text-dark);
}

.timeline-content h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.timeline-content p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* --- SERVICES / STRENGTHS --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--color-bg-white);
  color: var(--color-text-dark);
  border-radius: var(--radius-md);
  padding: 40px 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid #e2e8f0;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--grad-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}

.service-card:hover::after {
  transform: scaleX(1);
}

.service-icon {
  font-size: 2.2rem;
  color: var(--color-accent-dark);
  margin-bottom: 24px;
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--color-text-dark);
}

.service-card p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* --- INQUIRY FORM (ONLINE CONTACT) --- */
.inquiry-wrapper {
  max-width: 800px;
  margin: 0 auto;
  background: var(--color-bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 50px;
  border: 1px solid #e2e8f0;
}

.inquiry-wrapper-dark {
  background: rgba(15, 23, 42, 0.4);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 50px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 14px 18px;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  background-color: var(--color-bg-light);
  font-family: var(--font-base);
  font-size: 0.95rem;
  color: var(--color-text-dark);
  transition: var(--transition);
}

.section-dark .form-group input,
.section-dark .form-group select,
.section-dark .form-group textarea {
  background-color: rgba(7, 10, 16, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--color-text-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-accent);
  outline: none;
  background-color: var(--color-bg-white);
  box-shadow: 0 0 0 4px rgba(197, 168, 128, 0.15);
}

.section-dark .form-group input:focus,
.section-dark .form-group select:focus,
.section-dark .form-group textarea:focus {
  border-color: var(--color-accent);
  background-color: rgba(7, 10, 16, 0.9);
}

.file-upload-wrapper {
  position: relative;
  border: 2px dashed #cbd5e1;
  padding: 24px;
  border-radius: var(--radius-sm);
  text-align: center;
  background-color: var(--color-bg-light);
  transition: var(--transition);
}

.section-dark .file-upload-wrapper {
  border: 2px dashed rgba(255, 255, 255, 0.15);
  background-color: rgba(7, 10, 16, 0.4);
}

.file-upload-wrapper:hover {
  border-color: var(--color-accent);
}

.file-upload-wrapper input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.file-upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.section-dark .file-upload-label {
  color: #94a3b8;
}

.file-upload-label i {
  font-size: 1.8rem;
  color: var(--color-accent);
}

.privacy-policy-wrapper {
  margin-top: 10px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.section-dark .privacy-policy-wrapper {
  color: #94a3b8;
}

.privacy-policy-wrapper input[type="checkbox"] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: var(--color-accent);
}

.privacy-policy-wrapper span a {
  text-decoration: underline;
  color: var(--color-accent);
}

.inquiry-btn {
  margin-top: 30px;
  width: 100%;
}

/* --- MAP & CONTACT INFO --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  margin-top: 80px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-info-title {
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.info-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.info-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(197, 168, 128, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent-dark);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.info-text h5 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.info-text p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.map-container {
  height: 380px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid #e2e8f0;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* --- PORTFOLIO GALLERY PAGE --- */
.portfolio-header {
  height: 40vh;
  display: flex;
  align-items: center;
  background: var(--grad-dark);
  color: var(--color-text-white);
  padding-top: 80px;
}

.portfolio-header-content {
  max-width: 600px;
}

.portfolio-header h1 {
  font-family: var(--font-title);
  font-size: 2.8rem;
  margin-bottom: 12px;
}

.portfolio-header p {
  color: #cbd5e1;
  font-size: 1.05rem;
}

/* Filter Tabs */
.filter-tabs-wrapper {
  margin-bottom: 50px;
  display: flex;
  justify-content: center;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  background-color: var(--color-bg-white);
  padding: 8px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  border: 1px solid #e2e8f0;
}

.filter-btn {
  padding: 10px 24px;
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
}

.filter-btn:hover {
  color: var(--color-text-dark);
}

.filter-btn.active {
  background: var(--grad-accent);
  color: var(--color-bg-darker);
  font-weight: 600;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  min-height: 200px;
}

.gallery-item {
  background: var(--color-bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid #e2e8f0;
  transition: var(--transition);
  cursor: pointer;
  opacity: 1;
  transform: scale(1);
}

.gallery-item.hide {
  opacity: 0;
  transform: scale(0.8);
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  padding: 0;
  margin: 0;
  border: none;
}

.gallery-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}

.gallery-img-wrapper {
  height: 220px;
  overflow: hidden;
  position: relative;
  background-color: #e2e8f0;
}

.gallery-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover .gallery-img-wrapper img {
  transform: scale(1.08);
}

.gallery-category {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--color-bg-dark);
  color: var(--color-accent);
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  z-index: 5;
}

.gallery-info {
  padding: 20px;
}

.gallery-info h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gallery-info p {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Load More */
.load-more-container {
  margin-top: 60px;
  display: flex;
  justify-content: center;
}

/* --- LIGHTBOX MODAL --- */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(7, 10, 16, 0.95);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 30px;
  font-size: 2.2rem;
  color: var(--color-text-white);
  opacity: 0.7;
  transition: var(--transition);
}

.lightbox-close:hover {
  opacity: 1;
  transform: scale(1.1);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.5rem;
  color: var(--color-text-white);
  opacity: 0.5;
  padding: 20px;
  transition: var(--transition);
}

.lightbox-nav:hover {
  opacity: 1;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-content {
  max-width: 1100px;
  width: 90%;
  display: block;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox.active .lightbox-content {
  transform: scale(1);
}

.lightbox-img-pane {
  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 650px;
  max-height: 80vh;
}

.lightbox-img-pane img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.lightbox-info-pane {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.lightbox-info-pane .category {
  display: inline-block;
  color: var(--color-accent-dark);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.lightbox-info-pane h2 {
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 20px;
  line-height: 1.3;
}

.lightbox-info-pane p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --- ADMIN DASHBOARD PAGE --- */
.admin-container {
  padding-top: 140px;
  padding-bottom: 100px;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: start;
}

.admin-card {
  background: var(--color-bg-white);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-md);
  border: 1px solid #e2e8f0;
}

.admin-card-title {
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 24px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 12px;
}

.login-form-wrapper {
  max-width: 400px;
  margin: 140px auto;
}

/* Drag & Drop */
.drag-drop-zone {
  border: 2px dashed #cbd5e1;
  padding: 30px 20px;
  border-radius: var(--radius-sm);
  text-align: center;
  cursor: pointer;
  background-color: var(--color-bg-light);
  transition: var(--transition);
  margin-bottom: 15px;
}

.drag-drop-zone.dragover {
  border-color: var(--color-accent);
  background-color: rgba(197, 168, 128, 0.05);
}

.drag-drop-zone i {
  font-size: 2.2rem;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.drag-drop-text {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

#file-preview {
  margin-top: 15px;
  display: none;
  position: relative;
}

#file-preview img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.preview-remove-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.preview-remove-btn:hover {
  background: var(--color-error);
}

/* Progress Bar */
.progress-bar-container {
  display: none;
  width: 100%;
  height: 8px;
  background-color: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
  margin: 15px 0;
}

.progress-bar {
  height: 100%;
  width: 0;
  background: var(--grad-accent);
  transition: width 0.1s linear;
}

/* Admin Item List Table */
.admin-table-wrapper {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.9rem;
}

.admin-table th {
  font-weight: 600;
  color: var(--color-text-muted);
  background-color: var(--color-bg-light);
}

.admin-table td img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.admin-btn-delete {
  padding: 6px 12px;
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--color-error);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 500;
}

.admin-btn-delete:hover {
  background-color: var(--color-error);
  color: #fff;
}

/* --- FOOTER --- */
footer {
  background-color: var(--color-bg-darker);
  color: #94a3b8;
  padding: 60px 0 30px 0;
  border-top: 1px solid var(--glass-border-dark);
  font-size: 0.85rem;
}

footer .container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-logo {
  color: var(--color-text-white);
  font-size: 1.4rem;
  font-family: var(--font-title);
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-logo span {
  color: var(--color-accent);
}

.footer-info {
  max-width: 600px;
}

.footer-info p {
  margin-bottom: 8px;
}

.footer-links {
  display: flex;
  gap: 40px;
}

.footer-links-col h4 {
  color: var(--color-text-white);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-links-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-col a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 30px;
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.footer-socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.footer-socials a:hover {
  background-color: var(--color-accent);
  color: var(--color-bg-darker);
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 992px) {
  .intro-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .lightbox-content {
    max-height: 95vh;
  }
  
  .lightbox-img-pane {
    height: auto;
    max-height: 80vh;
  }
  
  .admin-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }
  
  .hero h1 {
    font-size: 2.6rem;
  }
  
  .hero p {
    font-size: 1.05rem;
  }
  
  nav {
    display: none; /* In production we would add a hamburger menu */
  }
  
  .mobile-menu-btn {
    display: block;
    color: var(--color-text-white);
  }
  
  .scrolled .mobile-menu-btn {
    color: var(--color-text-dark);
  }
  
  .scrolled-dark .mobile-menu-btn {
    color: var(--color-text-white);
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .form-group.full-width {
    grid-column: span 1;
  }
  
  .inquiry-wrapper {
    padding: 30px 20px;
  }
  
  .footer-top {
    flex-direction: column;
    gap: 30px;
  }
}

/* --- DROPDOWN NAVIGATION MENU --- */
nav ul li {
  position: relative;
}

nav ul li.dropdown {
  padding-right: 5px;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--glass-bg-dark);
  border: 1px solid var(--glass-border-dark);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-sm);
  padding: 8px 0;
  min-width: 170px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  box-shadow: var(--shadow-md);
  z-index: 1001;
}

header.scrolled .dropdown-menu {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
}

header.scrolled-dark .dropdown-menu {
  background: var(--glass-bg-dark);
  border: 1px solid var(--glass-border-dark);
}

.dropdown-menu li {
  width: 100%;
}

.dropdown-menu a {
  display: block;
  padding: 10px 18px !important;
  font-size: 0.9rem !important;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8) !important;
  width: 100%;
  text-align: center;
  transition: var(--transition);
}

.dropdown-menu a::after {
  display: none !important;
}

.dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: var(--color-accent) !important;
}

header.scrolled .dropdown-menu a {
  color: var(--color-text-dark) !important;
}

header.scrolled .dropdown-menu a:hover {
  background: rgba(15, 23, 42, 0.05) !important;
  color: var(--color-accent-dark) !important;
}

header.scrolled-dark .dropdown-menu a {
  color: var(--color-text-white) !important;
}

header.scrolled-dark .dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: var(--color-accent) !important;
}

nav ul li.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 768px) {
  .dropdown-menu {
    display: none !important; /* Hide dropdown menus on mobile and use direct gallery page filter buttons for clarity */
  }
}

