/* ============================================
   SHIN CHON SULLUNG TANG — CUSTOM STYLES
   Premium Dark Luxury | Midnight + Mint
   ============================================ */

/* Custom Properties */
:root {
  --midnight: #0a1628;
  --midnight-dark: #060f1e;
  --midnight-light: #0f1f38;
  --mint: #5eead4;
  --mint-dark: #2dd4bf;
  --offwhite: #f0f4f8;
  --gold: #d4a853;
  --gold-light: #e8c47c;
}

/* Base */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--midnight);
  color: var(--offwhite);
  font-family: 'Inter', system-ui, sans-serif;
  overflow-x: hidden;
}

.font-playfair {
  font-family: 'Playfair Display', Georgia, serif;
}

.font-inter {
  font-family: 'Inter', system-ui, sans-serif;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--midnight-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--mint)/30;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--mint)/50;
}

/* Selection */
::selection {
  background: rgba(94, 234, 212, 0.2);
  color: var(--offwhite);
}

/* Navbar */
#navbar {
  background: transparent;
  transition: background 0.5s ease, box-shadow 0.5s ease, backdrop-filter 0.5s ease;
}

#navbar.scrolled {
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

/* Nav Links */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--mint);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link:hover {
  color: var(--mint) !important;
}

/* Mobile Menu */
.mobile-link {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

#mobile-menu.open .mobile-link {
  opacity: 1;
  transform: translateY(0);
}

#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }

/* Menu Toggle */
.menu-line {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

#menu-toggle.active .menu-line:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}
#menu-toggle.active .menu-line:nth-child(2) {
  opacity: 0;
}
#menu-toggle.active .menu-line:nth-child(3) {
  transform: translateY(-4px) rotate(-45deg);
  width: 1.25rem;
}

/* Scroll Animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Scroll Dot Animation */
@keyframes scrollDot {
  0% { top: -12px; opacity: 0; }
  50% { opacity: 1; }
  100% { top: 40px; opacity: 0; }
}

.animate-scroll-dot {
  animation: scrollDot 1.8s ease-in-out infinite;
}

/* Image Hover */
img {
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Form Inputs */
input:focus,
textarea:focus {
  background: rgba(255,255,255,0.07) !important;
}

input::placeholder,
textarea::placeholder {
  color: rgba(240, 244, 248, 0.15);
}

/* Button Focus */
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 2px;
}

/* Responsive */
@media (max-width: 768px) {
  .font-playfair {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
  }
}

/* Print */
@media print {
  body { background: white; color: black; }
  nav, #hero, #experience, footer { display: none; }
}
