@font-face {
  font-family: 'BCC Purno';
  src: url('font/BCC Purno.woff2') format('woff2'),
    url('font/BCC Purno.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

:root {
  --bg-dark: #050505;
  --card-bg: #111111;
  --card-border: #222222;
  --primary-green: #00FF41;
  /* Tech Green */
  --text-main: #FFFFFF;
  --text-muted: #888888;
  --accent-hover: #00CC33;
  --grid-gap: 16px;
  --radius: 16px;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-bangla: 'BCC Purno', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-heading);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  position: relative;
  overflow-x: hidden;
}

/* Background Pattern */
.matrix-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(circle at 1px 1px, #1a1a1a 1px, transparent 0);
  background-size: 40px 40px;
  z-index: -1;
  pointer-events: none;
}

.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.03;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  z-index: -1;
}

/* Main Layout */
.main-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, minmax(180px, auto));
  gap: var(--grid-gap);
  /* Desktop Layout Map */
  grid-template-areas:
    "profile profile stats stats"
    "profile profile design services"
    "skills  gallery dev    contact";
}

/* Card Base */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
}

.card:hover {
  border-color: var(--primary-green);
  box-shadow: 0 8px 32px rgba(0, 255, 65, 0.05);
  transform: translateY(-2px);
}

.card-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--primary-green);
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 1. Profile Card */
.profile-card {
  grid-area: profile;
  justify-content: space-between;
}

.profile-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.status-badge {
  background: rgba(0, 255, 65, 0.1);
  color: var(--primary-green);
  padding: 6px 12px;
  border-radius: 50px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(0, 255, 65, 0.2);
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background-color: var(--primary-green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 255, 65, 0.7);
  }

  70% {
    box-shadow: 0 0 0 6px rgba(0, 255, 65, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(0, 255, 65, 0);
  }
}

.profile-pic-wrapper {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--primary-green);
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-content h1 {
  font-size: 2.5rem;
  line-height: 1.1;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.profile-content h2 {
  font-size: 1.25rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-bottom: 1.5rem;
}

.profile-content p {
  color: #ccc;
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 90%;
  margin-bottom: 2rem;
}

.company-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 8px 12px;
  border-radius: 8px;
}

/* 2. Services Card (Replaced Social Strip) */
.services-card {
  grid-area: services;
  justify-content: center;
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.service-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-main);
  padding: 8px;
  border-radius: 8px;
  transition: background 0.2s;
}

.service-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.service-item i {
  color: var(--primary-green);
  width: 20px;
  text-align: center;
}

/* 3. Stats */
.stats-card {
  grid-area: stats;
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-green);
  font-family: var(--font-mono);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* 4 & 6. Projects */
.project-card {
  position: relative;
  justify-content: space-between;
}

.design-project {
  grid-area: design;
}

.dev-project {
  grid-area: dev;
}

.project-info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.project-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tags span {
  font-size: 0.7rem;
  color: var(--bg-dark);
  background: var(--text-muted);
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 600;
}

.project-link {
  position: absolute;
  bottom: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  background: var(--card-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-green);
  text-decoration: none;
  transition: all 0.3s;
}

.project-link:hover {
  background: var(--primary-green);
  color: var(--bg-dark);
  transform: rotate(-45deg);
}

.project-icon-bg {
  position: absolute;
  bottom: -20px;
  right: -20px;
  font-size: 8rem;
  color: rgba(255, 255, 255, 0.02);
  pointer-events: none;
}

/* 5. Skills */
.skills-card {
  grid-area: skills;
}

.skill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  border: 1px solid var(--card-border);
  padding: 6px 10px;
  border-radius: 6px;
  color: var(--text-muted);
  transition: all 0.2s;
  cursor: default;
}

.skill-pill:hover {
  border-color: var(--primary-green);
  color: var(--primary-green);
  background: rgba(0, 255, 65, 0.05);
}

/* 7. Gallery */
.gallery-card {
  grid-area: gallery;
  padding: 0;
}

.gallery-card .card-label {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  background: rgba(0, 0, 0, 0.6);
  padding: 4px 8px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

.gallery-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-card:hover .gallery-img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 16px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  transform: translateY(100%);
  transition: transform 0.3s;
}

.gallery-card:hover .gallery-overlay {
  transform: translateY(0);
}

/* 8. Contact & Social */
.contact-card {
  grid-area: contact;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-social-horizontal {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px 0;
}

.social-icon {
  font-size: 1.4rem;
  color: var(--text-muted);
  transition: color 0.3s, transform 0.3s;
}

.social-icon:hover {
  color: var(--primary-green);
  transform: scale(1.2);
}

.c-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.c-item:hover {
  color: var(--primary-green);
}

.cta-btn {
  width: 100%;
  padding: 12px;
  background: var(--primary-green);
  color: var(--bg-dark);
  border: none;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
}

.cta-btn:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 15px rgba(0, 255, 65, 0.4);
}

/* Mobile Responsive */
@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
    grid-template-areas:
      "profile profile"
      "stats   stats"
      "services skills"
      "design  dev"
      "gallery gallery"
      "contact contact";
  }

  .services-card {
    justify-content: flex-start;
  }
}

@media (max-width: 650px) {
  body {
    padding: 20px 10px;
  }

  .bento-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "profile"
      "stats"
      "services"
      "skills"
      "design"
      "dev"
      "gallery"
      "contact";
    gap: 12px;
  }

  .card {
    padding: 20px;
  }

  .profile-content h1 {
    font-size: 1.8rem;
  }

  .profile-content h2 {
    font-size: 1rem;
  }

  .stats-card {
    flex-wrap: wrap;
    gap: 16px;
    justify-content: space-between;
    padding: 20px;
  }

  .stat-item {
    align-items: flex-start;
    min-width: 80px;
  }

  .stat-value {
    font-size: 2rem;
  }

  .profile-header {
    flex-direction: column-reverse;
    gap: 20px;
    align-items: center;
    text-align: center;
  }

  .profile-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .gallery-card {
    min-height: 250px;
  }

  .gallery-img {
    height: 100%;
    object-fit: cover;
  }

  .project-link {
    bottom: 16px;
    right: 16px;
  }

  .contact-social-horizontal {
    justify-content: center;
  }
}

/* News Ticker */
.news-ticker-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 40px;
  background: black;
  border-bottom: 1px solid var(--primary-green);
  display: flex;
  align-items: center;
  z-index: 1000;
  font-family: var(--font-bangla);
  box-shadow: 0 5px 20px rgba(0, 255, 65, 0.1);
}

.ticker-label {
  background: var(--primary-green);
  color: var(--bg-dark);
  height: 100%;
  padding: 0 15px;
  display: flex;
  align-items: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  z-index: 2;
  white-space: nowrap;
}

.ticker-wrapper {
  flex: 1;
  overflow: hidden;
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.ticker-content {
  display: inline-block;
  white-space: nowrap;
  padding-left: 100%;
  animation: ticker 450s linear infinite;
  color: var(--text-main);
  font-size: 1.2rem;
}

.ticker-item {
  display: inline-block;
  padding-right: 50px;
}

.ticker-item::after {
  content: "///";
  color: var(--primary-green);
  margin-left: 20px;
  opacity: 0.5;
}

/* Pause animation on hover */
.news-ticker-container:hover .ticker-content {
  animation-play-state: paused;
}

@keyframes ticker {
  0% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(-100%, 0, 0);
  }
}

/* Adjust body padding */
body {
  padding-top: 60px;
  /* Space for top ticker */
}

/* News Badge Styles */
.news-badge {
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 4px;
  margin-right: 8px;
  font-weight: 700;
  vertical-align: 2px;
  text-transform: uppercase;
  font-family: var(--font-heading);
  letter-spacing: 0.5px;
  display: inline-block;
}

.badge-national {
  background-color: var(--primary-green);
  color: var(--bg-dark);
}

.badge-international {
  background-color: transparent;
  color: var(--primary-green);
  border: 1px solid var(--primary-green);
}

/* Update ticker item hover effect */
.ticker-item a:hover {
  text-decoration: underline;
  color: var(--primary-green) !important;
}

/* =============================================
   Vertical Menu & Navigation
   ============================================= */
.vertical-menu {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(17, 17, 17, 0.85);
  padding: 16px 10px;
  border-radius: 0 16px 16px 0;
  border: 1px solid var(--card-border);
  border-left: none;
  z-index: 1500;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.35s cubic-bezier(0.4, 0.0, 0.2, 1),
    opacity 0.35s ease;
}

.menu-item {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.15rem;
  border-radius: 12px;
  transition: all 0.3s ease;
  text-decoration: none;
  position: relative;
}

.menu-item:hover,
.menu-item.active {
  background: rgba(0, 255, 65, 0.1);
  color: var(--primary-green);
}

.menu-item.active::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 20px;
  background: var(--primary-green);
  border-radius: 0 4px 4px 0;
  box-shadow: 0 0 8px rgba(0, 255, 65, 0.5);
}

/* Tooltip on hover */
.menu-item::after {
  content: attr(title);
  position: absolute;
  left: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%) translateX(-6px);
  background: rgba(17, 17, 17, 0.95);
  color: var(--primary-green);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid var(--card-border);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
}

.menu-item:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* Mobile Menu Toggle Button */
.mobile-menu-btn {
  display: none;
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 58px;
  height: 58px;
  background: var(--primary-green);
  color: var(--bg-dark);
  border: none;
  border-radius: 50%;
  font-size: 1.4rem;
  z-index: 2000;
  box-shadow: 0 4px 20px rgba(0, 255, 65, 0.35);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(0, 255, 65, 0.5);
}

.mobile-menu-btn:active {
  transform: scale(0.95);
}

/* Mobile Overlay */
.menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1400;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.menu-overlay.visible {
  display: block;
  opacity: 1;
}

/* =============================================
   Resume Page Styles
   ============================================= */
.resume-wrapper {
  max-width: 900px !important;
}

.resume-card {
  padding: 48px !important;
}

.resume-header {
  margin-bottom: 40px;
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 30px;
}

.resume-header h1 {
  font-size: 2.8rem;
  margin-bottom: 10px;
  color: var(--text-main);
  line-height: 1.1;
}

.resume-header h2 {
  font-size: 1.3rem;
  color: var(--primary-green);
  font-family: var(--font-mono);
  font-weight: 400;
  margin-bottom: 20px;
}

.contact-info {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.contact-info span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-info i {
  color: var(--primary-green);
}

.resume-section {
  margin-bottom: 36px;
}

.section-title {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 20px;
  border-left: 3px solid var(--primary-green);
  padding-left: 14px;
  font-family: var(--font-mono);
}

.resume-item {
  margin-bottom: 24px;
  padding-left: 16px;
  border-left: 1px solid var(--card-border);
  transition: border-color 0.3s;
}

.resume-item:hover {
  border-left-color: var(--primary-green);
}

.item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
  flex-wrap: wrap;
  gap: 8px;
}

.item-header h4 {
  font-size: 1.15rem;
  color: var(--text-main);
}

.item-header .date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--primary-green);
  white-space: nowrap;
}

.company {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-style: italic;
}

.resume-item p {
  color: #bbb;
  line-height: 1.6;
  font-size: 0.9rem;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-tag {
  background: rgba(255, 255, 255, 0.05);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--text-main);
  border: 1px solid var(--card-border);
  transition: all 0.3s;
  cursor: default;
}

.skill-tag:hover {
  border-color: var(--primary-green);
  color: var(--primary-green);
  background: rgba(0, 255, 65, 0.05);
}

.resume-download {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

.resume-download .cta-btn {
  width: auto;
  padding: 14px 40px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 0.9rem;
}

/* =============================================
   Desktop: offset body to make room for menu
   ============================================= */
@media (min-width: 1025px) {
  body {
    padding-left: 90px;
  }
}

/* =============================================
   Tablet & Mobile: slide-in menu + mobile button
   ============================================= */
@media (max-width: 1024px) {
  .vertical-menu {
    left: 0;
    top: 0;
    transform: translateX(-100%);
    height: 100vh;
    width: 80px;
    border-radius: 0;
    align-items: center;
    justify-content: center;
    padding: 30px 12px;
    border-right: 1px solid var(--card-border);
    border-left: none;
    opacity: 0;
  }

  .vertical-menu.open {
    transform: translateX(0);
    opacity: 1;
  }

  .mobile-menu-btn {
    display: flex;
  }
}

@media (max-width: 650px) {
  .resume-card {
    padding: 24px !important;
  }

  .resume-header h1 {
    font-size: 1.8rem;
  }

  .resume-header h2 {
    font-size: 1rem;
  }

  .item-header {
    flex-direction: column;
    gap: 4px;
  }

  .contact-info {
    flex-direction: column;
    gap: 10px;
  }
}

/* =============================================
   Projects Page Styles
   ============================================= */
.projects-wrapper {
  max-width: 1100px !important;
  padding-bottom: 60px;
}

.text-green {
  color: var(--primary-green);
}

/* Hero Header */
.projects-hero {
  text-align: center;
  margin-bottom: 50px;
  padding: 20px 0;
}

.hero-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--primary-green);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.projects-hero h1 {
  font-size: 3.2rem;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.1;
}

.projects-hero p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
  font-size: 1rem;
}

/* Filter Tabs */
.project-filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 8px 20px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--primary-green);
  color: var(--primary-green);
  background: rgba(0, 255, 65, 0.06);
  box-shadow: 0 0 12px rgba(0, 255, 65, 0.1);
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* Individual Project Tile */
.project-tile {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: default;
}

.project-tile:hover {
  border-color: var(--primary-green);
  box-shadow: 0 12px 40px rgba(0, 255, 65, 0.07);
  transform: translateY(-4px);
}

.project-tile.hidden {
  display: none;
}

/* Tile Visual Header (CSS abstract art) */
.tile-visual {
  height: 220px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg,
      var(--accent-2, #0a0a0a) 0%,
      color-mix(in srgb, var(--accent-1, #00FF41) 15%, #111) 50%,
      var(--accent-2, #0a0a0a) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tile-icon {
  font-size: 3.5rem;
  color: var(--accent-1, var(--primary-green));
  opacity: 0.3;
  z-index: 1;
  transition: all 0.5s ease;
}

.project-tile:hover .tile-icon {
  opacity: 0.7;
  transform: scale(1.15);
}

/* CSS Patterns */
.tile-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  transition: opacity 0.4s;
}

.project-tile:hover .tile-pattern {
  opacity: 0.15;
}

.pattern-diagonal {
  background: repeating-linear-gradient(45deg,
      var(--accent-1, #00FF41) 0,
      var(--accent-1, #00FF41) 1px,
      transparent 0,
      transparent 50%);
  background-size: 20px 20px;
}

.pattern-grid {
  background-image:
    linear-gradient(var(--accent-1, #00FF41) 1px, transparent 1px),
    linear-gradient(90deg, var(--accent-1, #00FF41) 1px, transparent 1px);
  background-size: 30px 30px;
}

.pattern-circles {
  background-image: radial-gradient(circle,
      var(--accent-1, #00FF41) 1px,
      transparent 1px);
  background-size: 24px 24px;
}

.pattern-dots {
  background-image: radial-gradient(circle,
      var(--accent-1, #00FF41) 2px,
      transparent 2px);
  background-size: 16px 16px;
}

.pattern-wave {
  background: repeating-linear-gradient(-55deg,
      var(--accent-1, #00FF41) 0,
      var(--accent-1, #00FF41) 1px,
      transparent 0,
      transparent 12px);
}

/* Animated glow line on hover */
.tile-visual::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg,
      transparent,
      var(--accent-1, var(--primary-green)),
      transparent);
  transform: scaleX(0);
  transition: transform 0.5s ease;
}

.project-tile:hover .tile-visual::after {
  transform: scaleX(1);
}

/* Tile Info */
.tile-info {
  padding: 24px;
}

.tile-info h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  font-weight: 600;
  transition: color 0.3s;
}

.project-tile:hover .tile-info h3 {
  color: var(--primary-green);
}

.tile-info p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 14px;
}

.tile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.tile-tags span {
  font-size: 0.7rem;
  color: var(--bg-dark);
  background: var(--text-muted);
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tile-meta {
  display: flex;
  gap: 20px;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  padding-top: 14px;
  border-top: 1px solid var(--card-border);
}

.tile-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tile-meta i {
  color: var(--primary-green);
  font-size: 0.7rem;
}

/* CTA Section */
.projects-cta {
  text-align: center;
  margin-top: 60px;
  padding: 40px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
}

.projects-cta p {
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.projects-cta .cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: auto;
  padding: 14px 36px;
  text-decoration: none;
  font-size: 0.9rem;
}

/* Projects Responsive */
@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .projects-hero h1 {
    font-size: 2rem;
  }

  .tile-visual {
    height: 180px;
  }
}

@media (max-width: 480px) {
  .projects-hero h1 {
    font-size: 1.6rem;
  }

  .project-filters {
    gap: 6px;
  }

  .filter-btn {
    font-size: 0.7rem;
    padding: 6px 14px;
  }

  .tile-info {
    padding: 18px;
  }

  .tile-info h3 {
    font-size: 1.15rem;
  }
}

/* =============================================
   Blog Page Styles — Grid Layout with Thumbnails
   ============================================= */
.blog-wrapper {
  max-width: 1100px !important;
  padding-bottom: 60px;
}

.blog-hero {
  text-align: center;
  margin-bottom: 50px;
  padding: 20px 0;
}

.blog-hero h1 {
  font-size: 3.2rem;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.1;
}

.blog-hero p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
  font-size: 1rem;
}

/* Blog Grid — 2 columns */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* Blog Card */
.blog-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  border-color: var(--primary-green);
  box-shadow: 0 12px 40px rgba(0, 255, 65, 0.06);
  transform: translateY(-4px);
}

/* Thumbnail */
.blog-thumb {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  text-decoration: none;
}

.blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.4s ease;
  filter: brightness(0.85) saturate(0.9);
}

.blog-card:hover .blog-thumb img {
  transform: scale(1.08);
  filter: brightness(1) saturate(1);
}

/* Gradient overlay on image */
.blog-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      transparent 50%,
      rgba(5, 5, 5, 0.85) 100%);
  pointer-events: none;
}

/* Category Badge */
.blog-category {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: var(--primary-green);
  color: var(--bg-dark);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Card Body */
.blog-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-meta {
  display: flex;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.blog-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.blog-meta i {
  color: var(--primary-green);
  font-size: 0.65rem;
}

.blog-card-body h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.35;
  transition: color 0.3s;
}

.blog-card:hover .blog-card-body h2 {
  color: var(--primary-green);
}

.blog-excerpt {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}

/* Expandable Content */
.blog-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    padding 0.4s ease;
  padding: 0;
  border-top: 0px solid transparent;
}

.blog-content.expanded {
  max-height: 2000px;
  padding: 20px 0 10px;
  border-top: 1px solid var(--card-border);
}

/* Article Typography */
.blog-content h3 {
  font-size: 1.05rem;
  color: var(--text-main);
  margin: 18px 0 8px;
  padding-left: 12px;
  border-left: 3px solid var(--primary-green);
}

.blog-content h3:first-child {
  margin-top: 0;
}

.blog-content p {
  color: #bbb;
  font-size: 0.88rem;
  line-height: 1.75;
  margin-bottom: 12px;
}

.blog-content strong {
  color: var(--text-main);
}

/* Read More Button */
.read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 7px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  align-self: flex-start;
  margin-top: auto;
}

.read-more-btn:hover {
  border-color: var(--primary-green);
  color: var(--primary-green);
  background: rgba(0, 255, 65, 0.05);
}

.read-more-btn i {
  font-size: 0.6rem;
  transition: transform 0.3s;
}

.read-more-btn.active i {
  transform: rotate(180deg);
}

/* Blog Responsive */
@media (max-width: 900px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .blog-card-body h2 {
    font-size: 1.05rem;
  }
}

@media (max-width: 650px) {
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .blog-hero h1 {
    font-size: 2rem;
  }

  .blog-card-body {
    padding: 18px;
  }

  .blog-card-body h2 {
    font-size: 1.15rem;
  }

  .blog-thumb {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 400px) {
  .blog-hero h1 {
    font-size: 1.6rem;
  }

  .blog-meta {
    flex-direction: column;
    gap: 4px;
  }

  .blog-content p {
    font-size: 0.82rem;
  }
}