/* ============================================
   ENHANCED BLOG CARD PROFESSIONAL LOOK
   ============================================ */
.masonry-item {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  background: #fff;
  border: 1.5px solid #ececec;
  box-shadow: 0 4px 24px 0 rgba(25,28,33,0.07), 0 1.5px 6px 0 rgba(25,28,33,0.03);
  transition: box-shadow 0.3s cubic-bezier(0.34,1.56,0.64,1), transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
  animation: fadeInUp 0.7s cubic-bezier(0.34,1.56,0.64,1);
}
.masonry-item:hover {
  box-shadow: 0 12px 36px 0 rgba(25,28,33,0.13), 0 4px 16px 0 rgba(25,28,33,0.07);
  transform: translateY(-6px) scale(1.012);
}
.masonry-item .card-image-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg,rgba(0,0,0,0.08) 0%,rgba(0,0,0,0.18) 100%);
}
.masonry-item img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1.5rem 1.5rem 0 0;
  object-fit: cover;
}
.masonry-item .p-7 {
  position: relative;
  z-index: 2;
  background: rgba(255,255,255,0.97);
  border-radius: 0 0 1.5rem 1.5rem;
}
/* ============================================
   GLOBAL ANIMATIONS & TRANSITIONS
   ============================================ */

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

/* Hide scrollbar for Chrome, Safari and Opera */
html::-webkit-scrollbar {
  display: none;
}

body {
  overflow-x: hidden;
}

/* ============================================
   FADE IN ANIMATIONS
   ============================================ */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes typewriter {
  0% {
    width: 0;
    opacity: 1;
  }
  99% {
    opacity: 1;
  }
  100% {
    opacity: 1;
  }
}

@keyframes blinkDot1 {
  0%, 100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
}

@keyframes blinkDot2 {
  0%, 100% {
    opacity: 0.3;
  }
  33%, 83% {
    opacity: 1;
  }
}

@keyframes blinkDot3 {
  0%, 100% {
    opacity: 0.3;
  }
  66% {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(60px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-60px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* ============================================
   ANIMATION UTILITY CLASSES
   ============================================ */

.animate-fade {
  animation: fadeIn 0.6s ease-out forwards;
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fade-in-down {
  animation: fadeInDown 0.8s ease-out forwards;
}

.animate-fade-in-left {
  animation: fadeInLeft 0.8s ease-out forwards;
}

.animate-fade-in-right {
  animation: fadeInRight 0.8s ease-out forwards;
}

.animate-slide-up {
  animation: slideInUp 0.8s ease-out forwards;
}

.animate-slide-down {
  animation: slideInDown 0.8s ease-out forwards;
}

.animate-scale {
  animation: scaleIn 0.6s ease-out forwards;
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-bounce {
  animation: bounce 2s infinite;
}

/* Stagger effect for multiple elements */
.animate-stagger > * {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}

.animate-stagger > *:nth-child(1) {
  animation-delay: 0.1s;
}

.animate-stagger > *:nth-child(2) {
  animation-delay: 0.2s;
}

.animate-stagger > *:nth-child(3) {
  animation-delay: 0.3s;
}

.animate-stagger > *:nth-child(4) {
  animation-delay: 0.4s;
}

.animate-stagger > *:nth-child(5) {
  animation-delay: 0.5s;
}

.animate-stagger > *:nth-child(6) {
  animation-delay: 0.6s;
}

/* ============================================
   TYPEWRITER REVEAL STAGING
   ============================================ */

.delayed-content {
  opacity: 0;
  visibility: hidden;
}

.post-typewriter-reveal {
  visibility: visible;
  animation: fadeIn 0.6s ease forwards;
}

.period-dot {
  display: inline-block;
  width: 0.35em;
  text-align: center;
}

/* ============================================
   SCROLL TRIGGERED ANIMATIONS
   ============================================ */

.scroll-animate {
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.scroll-animate.visible {
  opacity: 1;
}

.scroll-animate-up {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.scroll-animate-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-animate-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.scroll-animate-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.scroll-animate-right {
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.scroll-animate-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.scroll-animate-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.scroll-animate-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* ============================================
   NAVIGATION STYLES
   ============================================ */

nav {
  transition: transform 0.35s ease, opacity 0.25s ease, top 0.35s ease;
  transform: translateY(0);
  background-color: rgba(255, 255, 255, 0.8) !important;
  backdrop-filter: blur(10px) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

nav.hide-navbar {
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;
}

nav.show-navbar {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

nav a {
  position: relative;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: #191c21 !important;
}

nav a.text-blue-600,
nav a.text-blue-400 {
  color: #0066cc !important;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: currentColor;
  transition: width 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

nav a:not(.active-nav-link)::after {
  background: #004e9f;
}

nav a:hover::after {
  width: 100%;
}

nav a.active-nav-link {
  color: #0066cc !important;
  border-bottom: 2px solid #0066cc !important;
}

/* ============================================
   BUTTON HOVER EFFECTS
   ============================================ */

.lustre-button,
.lustre-btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  background: linear-gradient(135deg, #004e9f 0%, #0066cc 100%);
  color: #ffffff !important;
  border: none;
}

.lustre-button::before,
.lustre-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.lustre-button:hover::before,
.lustre-btn:hover::before {
  width: 300px;
  height: 300px;
}

.lustre-button:hover,
.lustre-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(0, 78, 159, 0.2);
}

.lustre-button:active,
.lustre-btn:active {
  transform: translateY(-1px);
}

/* ============================================
   IMAGE HOVER EFFECTS
   ============================================ */

.image-hover {
  overflow: hidden;
  border-radius: 0.75rem;
}

.image-hover img {
  transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), 
              filter 0.8s ease-out;
}

.image-hover:hover img {
  transform: scale(1.08);
  filter: brightness(1.1);
}

.image-grayscale {
  filter: grayscale(100%);
}

.image-hover:hover .image-grayscale {
  filter: grayscale(0%);
}

/* ============================================
   TEXT & ELEMENTS HOVER EFFECTS
   ============================================ */

.hover-lift {
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hover-lift:hover {
  transform: translateY(-5px);
}

.hover-scale {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hover-scale:hover {
  transform: scale(1.05);
}

.hover-color {
  transition: color 0.3s ease;
}

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

.hover-glow:hover {
  text-shadow: 0 0 20px rgba(0, 78, 159, 0.5);
}

/* ============================================
   CARD & CONTAINER EFFECTS
   ============================================ */

.card-hover {
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(25, 28, 33, 0.15);
}

.glass-effect {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
}

.glass-effect:hover {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(15px);
}

/* ============================================
   TEXT ANIMATIONS
   ============================================ */

.text-shimmer {
  background: linear-gradient(
    90deg,
    #004e9f 0%,
    #0066cc 50%,
    #004e9f 100%
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

/* ============================================
   SECTION REVEAL ANIMATIONS
   ============================================ */

.section-reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: all 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.section-reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   LOADING & SKELETON EFFECTS
   ============================================ */

@keyframes shimmer-loading {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.skeleton-loading {
  background: linear-gradient(
    90deg,
    #e0e0e0 25%,
    #f0f0f0 50%,
    #e0e0e0 75%
  );
  background-size: 200% 100%;
  animation: shimmer-loading 2s infinite;
}

/* ============================================
   SCROLL BAR STYLING
   ============================================ */

::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #004e9f;
  border-radius: 6px;
  transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: #0066cc;
  box-shadow: 0 0 6px rgba(0, 78, 159, 0.3);
}

/* ============================================
   TRANSITION HELPERS
   ============================================ */

.transition-smooth {
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.transition-fast {
  transition: all 0.15s ease;
}

.transition-slow {
  transition: all 0.6s ease;
}

/* ============================================
   TYPEWRITER EFFECT
   ============================================ */

.typewriter {
  overflow: hidden;
  border-right: 3px solid;
  white-space: nowrap;
  animation: typewriter 4.5s steps(50, end), blink 0.75s step-end infinite;
}

.typewriter.done {
  border-right: none;
  animation: none;
}

/* ============================================
   RESPONSIVE ANIMATIONS
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================
   CURSOR EFFECTS
   ============================================ */

.cursor-pointer {
  cursor: pointer;
  transition: all 0.2s ease;
}

button,
a,
[role="button"] {
  cursor: pointer;
  user-select: none;
}

/* Dark Mode Transitions */
.dark nav {
  background-color: #ffffff !important;
}

.dark a {
  transition: color 0.3s ease;
}

/* ============================================
   PAGE TRANSITION ANIMATIONS
   ============================================ */

/* Page transitions disabled - direct navigation */

.hero-video-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  opacity: 0;
  animation: heroBgIn 1s ease-out 0.4s forwards;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-video-layer::after {
  content: '';
  position: absolute;
  inset: -8%;
  pointer-events: none;
  background:
    radial-gradient(130% 130% at 50% 50%, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0) 60%),
    radial-gradient(80% 80% at 80% 20%, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0) 60%),
    radial-gradient(80% 80% at 20% 80%, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0) 60%);
  mix-blend-mode: screen;
}

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

/* ============================================
   BLOG MASONRY (RESPONSIVE)
   ============================================ */

.masonry {
  column-count: 1;
  column-gap: 1.25rem;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 1.5rem;
}

.card-mag img {
  display: block;
  width: 100%;
  height: auto;
}

@media (min-width: 640px) {
  .masonry {
    column-count: 2;
    column-gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .masonry {
    column-count: 3;
    column-gap: 1.75rem;
  }
}

/* ============================================
   TEAM SOCIAL ICONS
   ============================================ */

.social-links {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.social-pill {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.social-pill img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}

.social-pill:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  border-color: rgba(0, 0, 0, 0.12);
}

/* ============================================
   RESPONSIVE LAYOUT & MOBILE NAV
   ============================================ */

.mobile-menu {
  transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.mobile-menu.is-open {
  transform: translateY(0);
}

body.mobile-menu-open {
  overflow: hidden;
}

@media (max-width: 1024px) {
  nav {
    max-width: 100% !important;
    border-radius: 0 !important;
    top: 0;
  }
}

@media (max-width: 768px) {
  .mobile-menu {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 40px rgba(25, 28, 33, 0.1);
    border-radius: 1rem;
  }

  .footer-headline {
    font-size: clamp(2.75rem, 14vw, 4rem) !important;
  }

  .scroll-indicator {
    display: none !important;
  }

  .hero-grid {
    gap: 1.75rem !important;
  }
}
