:root {
  --primary: #0052cc;
  --primary-dark: #003d99;
  --primary-light: #4c9aff;
  --secondary: #00c7b7;
  --secondary-light: #00e6d3;
  --accent: #ff6b35;
  --dark: #0a1628;
  --dark-light: #1a2744;
  --gray-900: #172b4d;
  --gray-700: #344563;
  --gray-500: #5e6c84;
  --gray-300: #a5adba;
  --gray-100: #f4f5f7;
  --white: #ffffff;
  --gradient-primary: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
  --gradient-hero: linear-gradient(
    135deg,
    #0a1628 0%,
    #1a2744 50%,
    #0052cc 100%
  );
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont,
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-700);
  background: var(--white);
  overflow-x: hidden;
}

/* ==================== LOADER ==================== */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  text-align: center;
  position: relative;
}

.loader-plane {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  animation: loaderFly 2s ease-in-out infinite;
}

.loader-plane svg {
  width: 40px;
  height: 40px;
  fill: var(--secondary);
}

@keyframes loaderFly {
  0%,
  100% {
    transform: translateX(-50%) translateY(0) rotate(-5deg);
  }
  50% {
    transform: translateX(-50%) translateY(-10px) rotate(5deg);
  }
}

.loader-logo {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 2rem;
  letter-spacing: -1px;
}
.loader-logo span {
  color: var(--secondary);
}

.loader-bar {
  width: 200px;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
}
.loader-progress {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 10px;
  animation: loading 1.5s ease-in-out forwards;
}

@keyframes loading {
  0% {
    width: 0;
  }
  100% {
    width: 100%;
  }
}

/* ==================== NAVBAR ==================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 1rem 2rem;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--gray-700);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}
.nav-links a:hover {
  color: var(--secondary);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--secondary);
  color: var(--dark);
}
.btn-primary:hover {
  background: var(--secondary-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 199, 183, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--dark);
  cursor: pointer;
}

/* ==================== HERO BLOG ==================== */
.blog-hero {
  padding: 8rem 2rem 4rem;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

.blog-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Flying elements */
.blog-hero-plane {
  position: absolute;
  opacity: 0.1;
  animation: flyAcross 30s linear infinite;
}

.blog-hero-plane svg {
  fill: var(--secondary);
  width: 30px;
  height: 30px;
  transform: rotate(90deg);
}
.blog-hero-plane.plane-1 {
  top: 20%;
  animation-delay: 0s;
}
.blog-hero-plane.plane-2 {
  top: 60%;
  animation-delay: -15s;
}

@keyframes flyAcross {
  0% {
    left: -5%;
  }
  100% {
    left: 105%;
  }
}

/* Clouds */
.blog-hero-cloud {
  position: absolute;
  opacity: 0.08;
  animation: floatCloud 40s linear infinite;
}

.blog-hero-cloud svg {
  fill: var(--white);
  width: 80px;
  height: 40px;
}

.blog-hero-cloud.cloud-1 {
  top: 15%;
  animation-duration: 45s;
}

.blog-hero-cloud.cloud-2 {
  top: 45%;
  animation-duration: 35s;
  animation-delay: -15s;
}

.blog-hero-cloud.cloud-2 svg {
  width: 60px;
  height: 30px;
}

.blog-hero-cloud.cloud-3 {
  top: 75%;
  animation-duration: 50s;
  animation-delay: -25s;
}

.blog-hero-cloud.cloud-3 svg {
  width: 100px;
  height: 50px;
}

@keyframes floatCloud {
  0% {
    left: -15%;
  }
  100% {
    left: 110%;
  }
}

.blog-hero-cloud.cloud-4 {
  top: 30%;
  animation-duration: 55s;
  animation-delay: -8s;
}

.blog-hero-cloud.cloud-4 svg {
  width: 50px;
  height: 25px;
}

.blog-hero-cloud.cloud-5 {
  top: 55%;
  animation-duration: 42s;
  animation-delay: -30s;
}

.blog-hero-cloud.cloud-5 svg {
  width: 70px;
  height: 35px;
}

.blog-hero-cloud.cloud-6 {
  top: 85%;
  animation-duration: 38s;
  animation-delay: -20s;
}

.blog-hero-cloud.cloud-6 svg {
  width: 55px;
  height: 28px;
}

.hero-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(0, 199, 183, 0.15) 0%,
    transparent 70%
  );
  top: -200px;
  right: -200px;
  pointer-events: none;
}

.blog-hero-container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.blog-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  color: var(--secondary);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.6s ease forwards;
}

.blog-hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -2px;
  animation: fadeInUp 0.6s ease forwards;
  animation-delay: 0.2s;
  opacity: 0;
}

.blog-hero p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  margin: 0 auto 2rem;
  animation: fadeInUp 0.6s ease forwards;
  animation-delay: 0.4s;
  opacity: 0;
}

/* Search bar */
.search-bar {
  max-width: 500px;
  margin: 0 auto;
  position: relative;
  animation: fadeInUp 0.6s ease forwards;
  animation-delay: 0.6s;
  opacity: 0;
}

.search-bar input {
  width: 100%;
  padding: 1rem 1.5rem 1rem 3.5rem;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  transition: all 0.3s ease;
}

.search-bar input:focus {
  outline: none;
  box-shadow: var(--shadow-xl), 0 0 0 3px rgba(0, 199, 183, 0.2);
}

.search-bar .search-icon {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-500);
}

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

/* ==================== CATEGORIES ==================== */
.categories-section {
  padding: 2rem 2rem;
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  position: sticky;
  top: 70px;
  z-index: 100;
}

.categories-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.categories-container::-webkit-scrollbar {
  display: none;
}

.category-tag {
  padding: 0.6rem 1.25rem;
  background: var(--gray-100);
  border: none;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-700);
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  font-family: inherit;
}

.category-tag:hover {
  background: var(--gray-300);
}

.category-tag.active {
  background: var(--primary);
  color: var(--white);
}

/* ==================== BLOG GRID ==================== */
.blog-section {
  padding: 4rem 2rem;
  background: var(--gray-100);
  min-height: 60vh;
}

.blog-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Featured post */
.featured-post {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
  background: var(--white);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.featured-post.visible {
  opacity: 1;
  transform: translateY(0);
}

.featured-post:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.featured-image {
  position: relative;
  overflow: hidden;
  min-height: 400px;
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.featured-post:hover .featured-image img {
  transform: scale(1.05);
}

.featured-badge {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 6px;
}

.featured-content {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.post-category {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.featured-content h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.3;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.featured-content h2 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.featured-content h2 a:hover {
  color: var(--primary);
}

.post-excerpt {
  font-size: 1rem;
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: var(--gray-500);
}

.post-meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.post-meta-item i {
  width: 16px;
  height: 16px;
}

/* Blog grid */
.blog-grid-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.blog-grid-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.blog-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(30px);
}

.blog-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.card-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.blog-card:hover .card-image img {
  transform: scale(1.08);
}

.card-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.4rem 0.8rem;
  background: var(--white);
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 4px;
}

.card-content {
  padding: 1.5rem;
}

.card-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.card-content h3 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.card-content h3 a:hover {
  color: var(--primary);
}

.card-excerpt {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.6;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-100);
}

.card-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-avatar {
  width: 36px;
  height: 36px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 600;
  font-size: 0.8rem;
}

.author-info {
  font-size: 0.8rem;
}
.author-info strong {
  color: var(--dark);
  display: block;
}
.author-info span {
  color: var(--gray-500);
}

.read-time {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--gray-500);
}

/* ==================== PAGINATION ==================== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 4rem;
}

.pagination-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--gray-300);
  border-radius: 10px;
  background: var(--white);
  color: var(--gray-700);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.pagination-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.pagination-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.pagination-btn.arrow {
  background: var(--gray-100);
  border: none;
}
.pagination-btn.arrow:hover {
  background: var(--gray-300);
}

/* ==================== NEWSLETTER ==================== */
.newsletter-section {
  padding: 5rem 2rem;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

.newsletter-plane {
  position: absolute;
  opacity: 0.1;
}

.newsletter-plane svg {
  fill: var(--white);
}

.newsletter-plane.np-1 {
  top: 20%;
  left: 5%;
  animation: floatPlane 6s ease-in-out infinite;
}
.newsletter-plane.np-2 {
  bottom: 20%;
  right: 10%;
  animation: floatPlane 6s ease-in-out infinite;
  animation-delay: -3s;
}

@keyframes floatPlane {
  0%,
  100% {
    transform: translateY(0) rotate(-10deg);
  }
  50% {
    transform: translateY(-15px) rotate(10deg);
  }
}

.newsletter-container {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.newsletter-container h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1rem;
  letter-spacing: -1px;
}

.newsletter-container p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.newsletter-form {
  display: flex;
  gap: 1rem;
  max-width: 450px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--white);
}

.newsletter-form input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 199, 183, 0.3);
}

.newsletter-form .btn {
  padding: 1rem 2rem;
}

/* ==================== FOOTER ==================== */
.footer {
  background: var(--dark);
  padding: 4rem 2rem 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--white);
}
.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 300px;
}

.footer-column h4 {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-column ul {
  list-style: none;
}
.footer-column ul li {
  margin-bottom: 0.75rem;
}

.footer-column ul a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-column ul a:hover {
  color: var(--secondary);
  transform: translateX(5px);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
  .featured-post {
    grid-template-columns: 1fr;
  }
  .featured-image {
    min-height: 300px;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 2rem;
    gap: 1rem;
    box-shadow: var(--shadow-lg);
  }

  .nav-links.active {
    display: flex;
  }
  .menu-toggle {
    display: block;
  }
  .categories-section {
    top: 60px;
  }
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .newsletter-form {
    flex-direction: column;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-brand p {
    margin: 0 auto;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
