/* Modern Style CSS for Bareunmedi Website - Luxury Edition */
/* This file enhances the existing style.css with trendy and luxurious design elements */

/* Import Google Fonts - Adding premium fonts for luxury feel */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&family=Playfair+Display:wght@400;500;600;700;800&family=Montserrat:wght@300;400;500;600;700&display=swap');

:root {
  /* Luxury Color Palette */
  --primary: #0a2463;         /* Deep royal blue */
  --primary-light: #3e5fb3;   /* Refined blue for hover states */
  --primary-dark: #061a4a;    /* Rich navy for active states */
  --secondary: #00a896;       /* Elegant teal accent */
  --accent: #e63946;          /* Vibrant red for CTAs */
  --gold: #d4af37;            /* Luxury gold accent */
  --gold-light: #f2d675;      /* Light gold for hover states */
  --silver: #c0c0c0;          /* Silver accent */
  --text-dark: #1a1a2e;       /* Deep navy for main text */
  --text-medium: #2c3e50;     /* Rich gray for secondary text */
  --text-light: #5d6d7e;      /* Sophisticated gray for tertiary text */
  --bg-light: #f8f9fa;        /* Refined light background */
  --bg-white: #ffffff;        /* Pure white background */
  --bg-dark: #0f1c2e;         /* Deep background for contrast sections */
  --shadow-sm: 0 2px 5px rgba(0,0,0,0.08), 0 1px 1px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 10px rgba(0,0,0,0.09), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 15px 25px -5px rgba(0,0,0,0.08), 0 10px 10px -5px rgba(0,0,0,0.04);
  --shadow-gold: 0 5px 15px rgba(212, 175, 55, 0.15);
  --transition-fast: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-normal: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-slow: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;
}

/* Base Styles */
body {
  font-family: 'Montserrat', 'Pretendard', 'Malgun Gothic', sans-serif;
  color: var(--text-dark);
  line-height: 1.7;
  background-color: var(--bg-white);
  transition: var(--transition-normal);
  letter-spacing: 0.01em;
}

/* Typography Enhancements */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

h1 {
  font-weight: 700;
  position: relative;
  margin-bottom: 1.5rem;
}

h2 {
  font-weight: 700;
  position: relative;
  padding: 40px 0 30px 0;
  text-align: center;
  margin-bottom: 1.5rem;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 2px;
  background: linear-gradient(to right, var(--gold), var(--primary));
  border-radius: 2px;
}

h2::before {
  content: '';
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  width: 40px;
  height: 2px;
  background: linear-gradient(to right, var(--gold), var(--primary));
  border-radius: 2px;
  opacity: 0.6;
}

h3 {
  font-weight: 600;
  margin-bottom: 1rem;
}

h4 {
  font-weight: 600;
  margin-bottom: 0.75rem;
}

/* Link Styles */
a {
  color: var(--primary);
  transition: var(--transition-fast);
  text-decoration: none;
}

a:hover, a:focus {
  color: var(--primary-light);
  text-decoration: none;
}

/* Button Enhancements */
.btn {
  border-radius: var(--border-radius-md);
  transition: var(--transition-normal);
  font-weight: 500;
  padding: 0.75rem 2rem;
  box-shadow: var(--shadow-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  background-color: rgba(255, 255, 255, 0.1);
  transition: var(--transition-normal);
  z-index: -1;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn:hover::after {
  height: 100%;
}

.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover, .btn-primary:focus {
  background-color: var(--primary-light);
  border-color: var(--primary-light);
}

.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
  border-width: 2px;
}

.btn-outline-primary:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  color: white;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  border: none;
  color: var(--text-dark);
  box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
  box-shadow: 0 7px 20px rgba(212, 175, 55, 0.3);
  color: var(--text-dark);
}

/* Navbar Modernization */
.navbar {
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  padding: 1rem 0;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
  padding: 0.75rem 0;
}

.navbar-brand img {
  transition: var(--transition-normal);
  height: 40px;
}

.navbar.scrolled .navbar-brand img {
  height: 35px;
}

.topnav {
  display: flex;
  justify-content: center;
}

.topnav li a {
  position: relative;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 1.2rem;
  transition: var(--transition-normal);
}

.topnav li a::before {
  content: '';
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--gold);
  top: 50%;
  left: 0.5rem;
  transform: translateY(-50%) scale(0);
  opacity: 0;
  transition: var(--transition-normal);
}

.topnav li a:hover {
  color: var(--primary);
}

.topnav li a:hover::before {
  transform: translateY(-50%) scale(1);
  opacity: 1;
}

.topnav li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0.5rem;
  left: 50%;
  background: linear-gradient(to right, var(--gold), var(--primary));
  transition: var(--transition-normal);
  transform: translateX(-50%);
}

.topnav li a:hover::after {
  width: 50%;
}

/* Card Enhancements */
.card {
  border: none;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--border-radius-md);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0);
  transition: var(--transition-slow);
  pointer-events: none;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-7px);
}

.card:hover::after {
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.3);
}

.card-img-top {
  transition: var(--transition-normal);
}

.card:hover .card-img-top {
  transform: scale(1.03);
}

.card-body {
  padding: 1.5rem;
}

.card-title {
  font-family: 'Playfair Display', serif;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.card-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(to right, var(--gold), var(--primary));
}

/* Carousel Modernization */
#carouselVisual {
  margin-top: 120px;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

#carouselVisual::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  box-shadow: inset 0 -100px 70px -50px rgba(0, 0, 0, 0.3);
  pointer-events: none;
  z-index: 1;
}

.carousel-item {
  overflow: hidden;
}

.carousel-item img {
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  width: 100%;
  height: auto;
  display: block;
  filter: brightness(0.95);
}

.carousel-item:hover img {
  transform: scale(1.03);
  filter: brightness(1.05);
}

.carousel-control-prev-icon, .carousel-control-next-icon {
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
  z-index: 2;
}

.carousel-control-prev-icon:hover, .carousel-control-next-icon:hover {
  background-color: var(--bg-white);
  box-shadow: var(--shadow-md);
  transform: scale(1.1);
}

.carousel-indicators {
  z-index: 2;
  bottom: 20px;
}

.carousel-indicators li {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin: 0 5px;
  background-color: rgba(255, 255, 255, 0.5);
  transition: var(--transition-normal);
  position: relative;
  border: 2px solid transparent;
}

.carousel-indicators li.active {
  background-color: var(--bg-white);
  width: 12px;
  height: 12px;
  border: 2px solid var(--gold);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.carousel-caption {
  z-index: 2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  bottom: 40px;
}

.carousel-caption h5 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.carousel-caption p {
  font-size: 1.1rem;
  max-width: 80%;
  margin: 0 auto;
}

/* About Section Enhancement */
.about {
  padding: 2.5rem;
  border-radius: var(--border-radius-md);
  background-color: var(--bg-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  position: relative;
  border-left: 3px solid var(--gold);
}

.about::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 20px;
  width: 50px;
  height: 50px;
  border-top: 2px solid var(--gold);
  border-left: 2px solid var(--gold);
  opacity: 0.5;
  transition: var(--transition-normal);
}

.about::after {
  content: '';
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-bottom: 2px solid var(--gold);
  border-right: 2px solid var(--gold);
  opacity: 0.5;
  transition: var(--transition-normal);
}

.about:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

.about:hover::before, .about:hover::after {
  opacity: 0.8;
  width: 70px;
  height: 70px;
}

.about h4 {
  color: var(--primary);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.about h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background: linear-gradient(to right, var(--gold), var(--primary));
}

/* Map Section Enhancement */
#map {
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 1;
  border: 5px solid white;
}

#map::after {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--border-radius-md);
  pointer-events: none;
  z-index: 2;
}

/* List Styling */
.list-dot li {
  position: relative;
  padding-left: 0;
  margin-bottom: 0.8rem;
  line-height: 1.7;
}

.list-dot li::before {
  content: none;
}

.list-dot li strong {
  color: var(--primary);
  font-weight: 600;
  margin-right: 0.3rem;
}

/* Footer Enhancement */
.footerwrap {
  background-color: var(--bg-light);
  padding: 4rem 0 2rem;
  position: relative;
  overflow: hidden;
}

.footerwrap::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(to right, var(--gold), var(--primary), var(--gold));
  opacity: 0.7;
}

.footerwrap hr {
  border-color: rgba(10, 36, 99, 0.1);
  margin: 1.5rem 0;
}

.footer-copy {
  color: var(--text-medium);
  line-height: 1.8;
}

.footer-copy strong {
  color: var(--primary);
  font-weight: 600;
}

.footer-sns ul {
  display: flex;
  gap: 1.2rem;
  justify-content: flex-end;
}

.footer-sns ul li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: var(--bg-white);
  color: var(--primary);
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.footer-sns ul li a i {
  font-size: 1.2rem;
  transition: var(--transition-normal);
}

.footer-sns ul li a:hover {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--bg-white);
  transform: translateY(-5px) rotate(5deg);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.footer-sns ul li a:hover i {
  transform: scale(1.2);
}

.mt-2 {
  color: var(--text-light);
  font-size: 0.9rem;
  text-align: center;
  margin-top: 2rem !important;
  position: relative;
  padding-top: 1rem;
}

.mt-2::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 2px;
  background: linear-gradient(to right, var(--gold), var(--primary));
  border-radius: 2px;
}

/* Back to Top Button */
#pagetop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  transition: var(--transition-normal);
  opacity: 0;
  transform: translateY(20px);
}

#pagetop.show {
  opacity: 1;
  transform: translateY(0);
}

#pagetop a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

#pagetop a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  opacity: 0;
  transition: var(--transition-normal);
}

#pagetop a:hover {
  transform: translateY(-5px) rotate(5deg);
  box-shadow: 0 10px 20px rgba(10, 36, 99, 0.2);
}

#pagetop a:hover::before {
  opacity: 0.8;
}

#pagetop a img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
  position: relative;
  z-index: 1;
  transition: var(--transition-normal);
}

#pagetop a:hover img {
  transform: translateY(-3px);
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
  #carouselVisual {
    margin-top: 0;
    border-radius: 0;
  }
  
  .about {
    padding: 1.5rem;
  }
  
  h2 {
    font-size: 24px;
  }
  
  h2::after {
    width: 40px;
  }
  
  #pagetop {
    bottom: 20px;
    right: 20px;
  }
  
  #pagetop a {
    width: 40px;
    height: 40px;
  }
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide-up {
  animation: slideUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide-right {
  animation: slideRight 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide-left {
  animation: slideLeft 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scale-in {
  animation: scaleIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.bounce-in {
  animation: bounceIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal {
  position: relative;
  overflow: hidden;
}

.reveal::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--gold) 100%);
  transform: translateX(-100%);
  animation: reveal 1.2s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes slideRight {
  from { transform: translateX(-30px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slideLeft {
  from { transform: translateX(30px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes scaleIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes bounceIn {
  0% { transform: scale(0.3); opacity: 0; }
  40% { transform: scale(1.05); opacity: 1; }
  60% { transform: scale(0.95); }
  100% { transform: scale(1); }
}

@keyframes reveal {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

/* Luxury Accents */
.gold-accent {
  position: relative;
}

.gold-accent::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(to right, var(--gold), var(--gold-light));
  border-radius: 2px;
}

.luxury-shadow {
  box-shadow: var(--shadow-md), 0 5px 15px rgba(212, 175, 55, 0.1);
}