/* Base styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
}

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

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

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

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

::-webkit-scrollbar-thumb {
    background: #1E90FF;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1a7fe6;
}

/* Glassmorphism effect */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Hover effects */
.hover-grow {
    transition: transform 0.3s ease;
}

.hover-grow:hover {
    transform: scale(1.02);
}

/* Custom shadows */
.shadow-glow {
    box-shadow: 0 0 20px rgba(30, 144, 255, 0.2);
}

/* Responsive typography */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem !important;
    }
    
    h2 {
        font-size: 2rem !important;
    }
}

/* Logo pulse animation */
@keyframes glowPulse {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 8px rgba(30, 144, 255, 0.6));
    }
    50% {
        transform: scale(1.06);
        filter: drop-shadow(0 0 20px rgba(30, 144, 255, 1));
    }
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 8px rgba(30, 144, 255, 0.6));
    }
}

.logo-pulse {
    animation: glowPulse 6s ease-in-out infinite;
}

/* Bottom CTA logo size (≈ 3x usual button height) */
.cta-logo {
    height: 15rem;          /* roughly 3x a typical button height */
    max-width: 100%;
    object-fit: contain;
}

/* -----------------------------
   Blog carousel + modal
------------------------------ */

.blog-track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox hide */
}
.blog-track::-webkit-scrollbar { display: none; } /* Chrome hide */

.blog-card {
  min-width: 320px;
  max-width: 420px;
  flex: 0 0 auto;
  scroll-snap-align: start;

  border: 1px solid rgba(217, 217, 217, 0.12);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  padding: 1.5rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(30, 144, 255, 0.55);
  box-shadow: 0 0 30px rgba(30, 144, 255, 0.12);
}

.blog-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.blog-pill {
  font-size: 0.75rem;
  font-weight: 700;
  color: #0A0E27;
  background: rgba(30, 144, 255, 0.9);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}

.blog-time {
  font-size: 0.8rem;
  color: rgba(217, 217, 217, 0.75);
}

.blog-h3 {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 0.65rem;
}

.blog-p {
  color: rgba(217, 217, 217, 0.78);
  font-size: 0.98rem;
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.blog-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.blog-open {
  font-weight: 800;
  padding: 0.6rem 0.9rem;
  border-radius: 0.75rem;
  background: rgba(30, 144, 255, 0.12);
  border: 1px solid rgba(30, 144, 255, 0.35);
  color: rgba(217, 217, 217, 0.95);
  transition: background 0.2s ease, transform 0.2s ease;
}
.blog-open:hover {
  background: rgba(30, 144, 255, 0.18);
  transform: translateY(-1px);
}

.blog-link {
  color: rgba(30, 144, 255, 0.95);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.blog-link:hover { opacity: 0.9; }

.blog-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(30, 144, 255, 0.35);
  background: rgba(30, 144, 255, 0.10);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}
.blog-nav-btn:hover {
  background: rgba(30, 144, 255, 0.16);
  transform: translateY(-1px);
}

/* Modal */
.blog-modal-wrap {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.blog-modal-card {
  width: min(920px, 100%);
  border-radius: 1.25rem;
  border: 1px solid rgba(30, 144, 255, 0.35);
  background: rgba(10, 14, 39, 0.92);
  box-shadow: 0 0 50px rgba(30, 144, 255, 0.12);
  overflow: hidden;
}

.blog-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 2.25rem;
  line-height: 1;
  color: rgba(217, 217, 217, 0.7);
}
.blog-modal-close:hover {
  color: rgba(30, 144, 255, 0.95);
}
.blog-nav-btn svg {
  width: 22px;
  height: 22px;
}
/* Ensure anchor jumps aren't hidden behind the fixed navbar */
#blog { scroll-margin-top: 110px; }

/* -----------------------------
   Blog article typography (no Tailwind Typography plugin)
------------------------------ */

.blog-article h2 {
  font-size: 1.5rem;
  line-height: 1.25;
  font-weight: 800;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

.blog-article p {
  color: rgba(217, 217, 217, 0.9);
  line-height: 1.75;
  margin: 0.85rem 0;
}

.blog-article ul {
  margin: 0.75rem 0 1rem;
  padding-left: 1.25rem;
}

.blog-article li {
  color: rgba(217, 217, 217, 0.9);
  margin: 0.35rem 0;
}

.blog-article strong {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 800;
}
