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

:root {
  --navy: #0f1f3d;
  --navy-light: #1a3060;
  --gold: #c9a84c;
  --gold-light: #e2c77a;
  --slate: #64748b;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Color utilities */
.text-navy { color: var(--navy); }
.text-gold { color: var(--gold); }
.text-gold-light { color: var(--gold-light); }
.bg-navy { background-color: var(--navy); }
.bg-gold { background-color: var(--gold); }
.gold-bg { background-color: var(--gold); }

/* Logo mark */
.logo-mark {
  background: linear-gradient(135deg, var(--gold) 0%, #a07830 100%);
}

/* Gold button */
.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, #b8923e 100%);
  color: white;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(201, 168, 76, 0.3);
}
.btn-gold:hover {
  background: linear-gradient(135deg, #d4b05c 0%, var(--gold) 100%);
  box-shadow: 0 6px 20px rgba(201, 168, 76, 0.45);
  transform: translateY(-1px);
}

/* Gold badge */
.badge-gold {
  background: linear-gradient(135deg, var(--gold) 0%, #b8923e 100%);
  color: white;
}

/* Focus ring gold */
.focus\:border-gold:focus { border-color: var(--gold); }
.focus\:ring-gold\/20:focus { --tw-ring-color: rgba(201, 168, 76, 0.2); }

/* Hero section */
.hero-bg {
  background-image: url('https://images.pexels.com/photos/2090645/pexels-photo-2090645.jpeg?auto=compress&cs=tinysrgb&w=1920');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero-overlay {
  background: linear-gradient(
    135deg,
    rgba(15, 31, 61, 0.88) 0%,
    rgba(15, 31, 61, 0.65) 50%,
    rgba(15, 31, 61, 0.55) 100%
  );
}

/* Stats card */
.stats-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Scroll indicator animation */
@keyframes scrollDown {
  0% { transform: translateY(-100%); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateY(100%); opacity: 0; }
}
.scroll-dot {
  animation: scrollDown 2s ease-in-out infinite;
  height: 40%;
}

/* Fade-in-up animation for hero */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

/* Project card animation */
@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.project-card {
  animation: cardFadeIn 0.6s ease both;
}

/* Scroll reveal */
@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* CTA banner */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 50%, #0d2d5e 100%);
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

/* Service card hover border effect */
.service-card {
  position: relative;
  overflow: hidden;
}
.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transition: width 0.4s ease;
}
.service-card:hover::after {
  width: 100%;
}

/* Notice board hover */
.line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--navy);
}

/* Mobile menu transition */
[x-cloak] { display: none !important; }

/* Selection color */
::selection {
  background-color: var(--gold);
  color: white;
}

/* Form focus states */
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

/* Smooth image loading */
img {
  transition: opacity 0.3s ease;
}

/* Print styles */
@media print {
  .hero-bg { background-attachment: scroll; }
  header, footer { display: none; }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-bg {
    background-attachment: scroll;
  }
  .fade-in-up {
    animation-duration: 0.6s;
  }
}
