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

html {
  font-size: 17.5px;
}

/* Scale up absolute pixel text utility overrides for better legibility */
.text-\[7\.5px\] {
  font-size: 11px !important;
}
.text-\[8px\] {
  font-size: 11.5px !important;
}
.text-\[8\.5px\] {
  font-size: 12px !important;
}
.text-\[9px\] {
  font-size: 13px !important;
}
.text-\[10px\] {
  font-size: 14px !important;
}
.text-\[11px\] {
  font-size: 15px !important;
}

/* Improve text contrast on light theme globally for better accessibility/readability */
html:not(.dark) .text-zinc-400 {
  color: #52525b !important; /* zinc-600 */
}
html:not(.dark) .text-zinc-500 {
  color: #27272a !important; /* zinc-800 */
}


:root {
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
  font-family: var(--font-sans);
  overflow-x: hidden;
  scroll-behavior: smooth;
  transition: background-color 0.4s ease, color 0.4s ease;
}

.font-serif-custom {
  font-family: var(--font-serif);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-fade-in {
  animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Smooth zoom-in on hover for images */
.hover-zoom img {
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.hover-zoom:hover img {
  transform: scale(1.05);
}

/* Active navigation underline style */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -4px;
  left: 0;
  background-color: currentColor;
  transition: width 0.3s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Hide scrollbars but keep functionality */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Custom Scrollbar for global window */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
.dark ::-webkit-scrollbar-track {
  background: #0f0f0f;
}
::-webkit-scrollbar-thumb {
  background: #c5c5c5;
  border-radius: 4px;
}
.dark ::-webkit-scrollbar-thumb {
  background: #333;
}
::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Card glassmorphism overlays */
.glass-panel {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.dark .glass-panel {
  background: rgba(18, 18, 18, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Page Section visibility classes for SPA */
.spa-section {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.spa-section.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Custom styles for Flowex premium design */
.text-gold {
  background: linear-gradient(135deg, #f59e0b 0%, #b45309 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-gold {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #b45309 100%);
}

.border-gold {
  border-color: #d97706;
}

/* Timeline Layout */
.timeline-line::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background-color: #e4e4e7;
  z-index: 0;
}
.dark .timeline-line::before {
  background-color: #27272a;
}
@media (max-width: 768px) {
  .timeline-line::before {
    left: 24px;
    transform: none;
  }
}

/* Lock Back to Top button size in pixels */
#back-to-top {
  width: 40px !important;
  height: 40px !important;
}

/* Drop shadow overrides */
.shadow-premium {
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.04), 0 1px 1px rgba(0, 0, 0, 0.02);
}
.dark .shadow-premium {
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3), 0 1px 1px rgba(255, 255, 255, 0.02);
}

/* Infinite Logo Marquee Animation */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.animate-marquee {
  display: flex;
  width: max-content;
  animation: marquee 25s linear infinite;
}

.animate-marquee:hover {
  animation-play-state: paused;
}


