/* Hero gradient */
.hero-gradient {
  background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 40%, #000000 100%);
}

/* Code decoration in hero */
.code-decoration {
  position: absolute;
  font-family: 'Courier New', monospace;
  color: rgba(59, 130, 246, 0.04);
  font-size: 14px;
  line-height: 1.8;
  white-space: pre;
  pointer-events: none;
  user-select: none;
}

.code-decoration.left {
  top: 10%;
  left: 5%;
}

.code-decoration.right {
  bottom: 10%;
  right: 5%;
}

/* Scroll animations */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.fade-in-group .fade-in:nth-child(1) { transition-delay: 0s; }
.fade-in-group .fade-in:nth-child(2) { transition-delay: 0.1s; }
.fade-in-group .fade-in:nth-child(3) { transition-delay: 0.15s; }
.fade-in-group .fade-in:nth-child(4) { transition-delay: 0.2s; }
.fade-in-group .fade-in:nth-child(5) { transition-delay: 0.25s; }
.fade-in-group .fade-in:nth-child(6) { transition-delay: 0.3s; }

/* Tech badge hover */
.tech-badge {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tech-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

/* Service card hover */
.service-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

/* CTA button pulse */
.cta-pulse {
  animation: pulse-blue 2s ease-in-out infinite;
}

@keyframes pulse-blue {
  0%, 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4); }
  50% { box-shadow: 0 0 0 12px rgba(59, 130, 246, 0); }
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Nav inner height transition */
.nav-inner {
  height: 80px;
  transition: height 0.3s ease;
}

.nav-scrolled .nav-inner {
  height: 64px;
}

/* Nav logo size transition */
.nav-logo {
  transition: height 0.3s ease;
}

.nav-scrolled .nav-logo {
  height: 40px !important;
}

@media (min-width: 640px) {
  .nav-scrolled .nav-logo {
    height: 44px !important;
  }
}

/* Nav transition */
.nav-scrolled {
  background: #ffffff !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08);
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 100%;
  height: 2px;
  background: #3B82F6;
  transition: transform 0.25s ease;
}

.nav-link:hover::after {
  transform: translateX(-50%) scaleX(1);
}

/* Contact pill button */
.nav-contact-pill {
  color: #3B82F6;
  border: 1.5px solid #3B82F6;
  border-radius: 9999px;
  padding: 6px 20px;
  transition: background 0.25s ease, color 0.25s ease;
}

.nav-contact-pill:hover {
  background: #3B82F6;
  color: #fff;
}

/* Hamburger lines */
.hamburger-lines {
  width: 24px;
  height: 18px;
  position: relative;
  cursor: pointer;
}

.hamburger-lines span {
  display: block;
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: #4b5563;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger-lines span:nth-child(1) { top: 0; }
.hamburger-lines span:nth-child(2) { top: 8px; }
.hamburger-lines span:nth-child(3) { top: 16px; }

.hamburger-lines.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger-lines.open span:nth-child(2) {
  opacity: 0;
}

.hamburger-lines.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile nav link accent */
.mobile-nav-link {
  position: relative;
  border-left: 3px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.mobile-nav-link:hover {
  border-left-color: #3B82F6;
  background: rgba(59, 130, 246, 0.05);
}

/* Mobile menu animation */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.mobile-menu.open {
  max-height: 400px;
}

/* Terminal cursor blink */
.cursor-blink::after {
  content: '|';
  animation: blink 1s step-end infinite;
}

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

/* ===== News Page ===== */

/* Compact hero variant */
.hero-compact {
  min-height: 40vh;
}

/* News card */
.news-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: block;
  text-decoration: none;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

/* Thumbnail zoom on hover */
.news-card-img img {
  transition: transform 0.3s ease;
}

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

/* Badge pill */
.news-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 9999px;
  overflow: hidden;
  line-height: 1.4;
}

/* Filter tabs */
.filter-tab {
  padding: 6px 18px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #6b7280;
  border-radius: 9999px;
  border: 1.5px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-tab:hover {
  color: #374151;
  background: #f3f4f6;
}

.filter-tab.active {
  color: #3B82F6;
  border-color: #3B82F6;
  background: rgba(59, 130, 246, 0.05);
}

/* Skeleton pulse */
.news-skeleton {
  background: white;
}

.news-skeleton div {
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}

@keyframes skeleton-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Line clamp for teaser text */
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
