/* ==========================================================================
   บริษัท ไทยคาเมล จำกัด (Thai Camel Co., Ltd.) - Corporate Modern Navy Theme CSS
   ========================================================================== */

:root {
  --navy-950: #050e1d;
  --navy-900: #0a192f;
  --navy-850: #0f2444;
  --navy-800: #16325c;
  --navy-700: #1e427b;
  --navy-600: #2b569b;
  --frost-500: #0284c7;
  --frost-400: #38bdf8;
  --frost-300: #7dd3fc;
  --frost-100: #e0f2fe;
  --frost-50: #f0f9ff;
  --accent-amber: #f59e0b;
  --accent-emerald: #10b981;
  --card-bg: #ffffff;
  --card-border: rgba(14, 165, 233, 0.15);
  --shadow-navy: 0 20px 40px -15px rgba(10, 25, 47, 0.25);
  --shadow-glow: 0 0 25px rgba(56, 189, 248, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: 'Kanit', sans-serif;
}

body {
  font-family: 'Kanit', sans-serif;
  background-color: #f8fafc;
  color: #1e293b;
  overflow-x: hidden;
}

/* Typography Enhancements */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Kanit', sans-serif;
  letter-spacing: -0.01em;
}

.font-prompt {
  font-family: 'Prompt', sans-serif;
}

/* Background Gradients & Effects */
.bg-navy-dark {
  background: linear-gradient(135deg, #050e1d 0%, #0a192f 50%, #0f2444 100%);
}

/* =============================================
   Logo Rotation Animations
   ============================================= */

/* Brand wordmark — soft glow, gentle lift on hover */
@keyframes logo-glow-pulse {
  0%, 100% { filter: drop-shadow(0 2px 10px rgba(56, 189, 248, 0.30)); }
  50%      { filter: drop-shadow(0 2px 18px rgba(56, 189, 248, 0.55)); }
}

.brand-logo {
  animation: logo-glow-pulse 4s ease-in-out infinite;
  transition: transform 0.3s ease;
}

.group:hover .brand-logo {
  transform: scale(1.04);
}

@media (prefers-reduced-motion: reduce) {
  .brand-logo { animation: none; }
}


.bg-navy-mesh {
  background-color: #0a192f;
  background-image: 
    radial-gradient(at 0% 0%, rgba(2, 132, 199, 0.25) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(56, 189, 248, 0.15) 0px, transparent 50%),
    radial-gradient(at 50% 50%, rgba(15, 36, 68, 0.5) 0px, transparent 100%);
}

.bg-frost-pattern {
  background-image: radial-gradient(rgba(56, 189, 248, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Glassmorphism Classes */
.glass-nav {
  background: rgba(10, 25, 47, 0.90);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(56, 189, 248, 0.15);
}

.glass-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.glass-card-dark {
  background: rgba(15, 36, 68, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(56, 189, 248, 0.2);
}

/* Glow & Accent Effects */
.glow-accent {
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
}

.glow-text {
  text-shadow: 0 0 15px rgba(56, 189, 248, 0.5);
}

.border-glow-hover {
  transition: all 0.3s ease;
}

.border-glow-hover:hover {
  border-color: rgba(56, 189, 248, 0.8);
  box-shadow: 0 10px 30px -10px rgba(2, 132, 199, 0.3);
  transform: translateY(-4px);
}

/* Custom Navigation Logo & Badges */
.logo-frost-icon {
  background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.4);
}

/* Temperature Tags */
.temp-tag-freeze {
  background: linear-gradient(90deg, #1e3a8a 0%, #0284c7 100%);
  color: #ffffff;
}

.temp-tag-chill {
  background: linear-gradient(90deg, #0369a1 0%, #06b6d4 100%);
  color: #ffffff;
}

.temp-tag-blast {
  background: linear-gradient(90deg, #4338ca 0%, #3b82f6 100%);
  color: #ffffff;
}

/* Custom Estimator Range Sliders */
input[type="range"] {
  accent-color: #0284c7;
}

/* Estimator Selection Cards */
.selector-card {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: 2px solid transparent;
}

.selector-card:hover {
  border-color: rgba(56, 189, 248, 0.5);
  background-color: #f0f9ff;
}

.selector-card.active {
  border-color: #0284c7;
  background-color: #e0f2fe;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

/* Project Filter Tabs */
.filter-btn {
  transition: all 0.2s ease;
}

.filter-btn.active {
  background: #0a192f;
  color: #ffffff;
  border-color: #0a192f;
  box-shadow: 0 4px 12px rgba(10, 25, 47, 0.2);
}

/* Modal Animations */
.modal-backdrop {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-backdrop.show {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  transform: scale(0.92) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-backdrop.show .modal-dialog {
  transform: scale(1) translateY(0);
}

/* Floating Actions */
.floating-btn {
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.floating-btn:hover {
  transform: scale(1.08) translateY(-3px);
}

/* FAQ Accordion Transitions */
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out, padding 0.35s ease;
}

.faq-item.active .faq-content {
  max-height: 500px;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

/* Shimmer Animation for Badges */
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

.shimmer-badge {
  position: relative;
  overflow: hidden;
}

.shimmer-badge::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shimmer 3s infinite;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #0a192f;
}

::-webkit-scrollbar-thumb {
  background: #1e3a8a;
  border-radius: 5px;
  border: 2px solid #0a192f;
}

::-webkit-scrollbar-thumb:hover {
  background: #0284c7;
}
/* Project gallery — cross-fade between photos */
#modal-img {
  transition: opacity 0.25s ease;
  background: #0a192f;
}

#gal-thumbs {
  scrollbar-width: thin;
  scrollbar-color: #245384 #0a192f;
}
#gal-thumbs::-webkit-scrollbar { height: 6px; }
#gal-thumbs::-webkit-scrollbar-track { background: #0a192f; }
#gal-thumbs::-webkit-scrollbar-thumb { background: #245384; border-radius: 99px; }
