.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
  margin-top: 22px;
}

.work-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.06);
  padding: 18px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.07);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.work-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.12);
}

.work-card h3 {
  margin: 0 0 6px 0;
  font-size: 18px;
  color: #0f172a;
}

.work-card p {
  margin: 0 0 10px 0;
  font-size: 14px;
  color: #444;
}

.work-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #666;
  gap: 8px;
  flex-wrap: wrap;
}

.work-card a {
  text-decoration: none;
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0,0,0,0.06);
  color: #0f172a;
}

/* Landing hero enhancements */
.hero-subtitle {
  margin-top: 10px;
  font-size: 18px;
  color: #0f172a;
}

.interest-chips {
  margin: 10px 0 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.interest-chips li {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: #e5e7eb;
  font-size: 12px;
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: saturate(120%);
}

.interest-chips li:hover {
  background: rgba(34, 211, 238, 0.14);
  border-color: rgba(34, 211, 238, 0.35);
}

/* Security-themed background */
.security-bg {
  position: relative;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b  50%, #334155 100%);
  background-size: 400% 400%;
  animation: securityGradient 12s ease infinite;
  overflow: hidden;
}

.security-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 25% 25%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(6, 182, 212, 0.08) 0%, transparent 50%),
    linear-gradient(90deg, transparent 49%, rgba(59, 130, 246, 0.03) 50%, transparent 51%),
    linear-gradient(0deg, transparent 49%, rgba(59, 130, 246, 0.02) 50%, transparent 51%);
  background-size: 100px 100px, 120px 120px, 50px 50px, 50px 50px;
  animation: networkGrid 20s linear infinite;
  opacity: 0.6;
}

.security-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at top, rgba(59, 130, 246, 0.05) 0%, transparent 60%),
    radial-gradient(ellipse at bottom right, rgba(139, 92, 246, 0.04) 0%, transparent 60%);
  animation: securityPulse 8s ease-in-out infinite alternate;
}

@keyframes securityGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes networkGrid {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

@keyframes securityPulse {
  0% { opacity: 0.3; }
  100% { opacity: 0.6; }
}

/* Ensure hero content stays on top */
#hero {
  position: relative;
  z-index: 10;
}

/* Restore original particle visibility */
#hero.jumbotron {
  background-color: transparent !important;
  background: transparent !important;
}

/* Dark background for the page */
body {
  background-color: #0b1220;
  color: #e5e7eb;
}

.footer, .navbar-static-bottom {
  background-color: transparent;
}

/* Keep cards readable */
.work-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
}

.work-card h3, .work-card p, .work-meta, .badge {
  color: #e5e7eb;
}

.section-title {
  color: #e5e7eb;
}

/* Accent color (teal) */
.text-color-main,
.hero-title .text-color-main {
  color: #0f766e !important;
}

/* Ensure 'My Work' button text is visible and consistent */
#my-work .contact-wrapper__text,
#my-work p {
  color: #e5e7eb !important;
}

/* Align with original animation: gradient fill via :after + width transition */
.cta-btn--hero {
  border: 2px solid #0f766e !important;
  -webkit-text-fill-color: #0f766e !important;
  color: #0f766e !important;
}

.cta-btn--hero:after {
  background-image: linear-gradient(135deg, #14b8a6, #0f766e) !important;
}

.cta-btn--hero:hover {
  -webkit-text-fill-color: #ffffff !important;
  color: #ffffff !important;
}

/* Make 'View Resume' easy to read */
.cta-btn--resume {
  background: transparent !important;
  border: 2px solid #0f766e !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* Use white fill on hover for strongest contrast */
.cta-btn--resume:after {
  background: #ffffff !important;
}

.cta-btn--resume:hover {
  color: #0f766e !important;
  -webkit-text-fill-color: #0f766e !important;
}

/* Prevent typed text from wrapping to next line */
.element {
  white-space: normal;
}

/* Skeleton loading for work cards */
.skeleton .sk-title, .skeleton .sk-line, .skeleton .sk-meta {
  background: linear-gradient(90deg, rgba(255,255,255,0.06), rgba(255,255,255,0.12), rgba(255,255,255,0.06));
  background-size: 200% 100%;
  animation: skShimmer 1.2s infinite;
  border-radius: 6px;
}
.skeleton .sk-title { height: 16px; width: 60%; margin-bottom: 10px; }
.skeleton .sk-line { height: 12px; width: 100%; margin-bottom: 8px; }
.skeleton .sk-meta { height: 12px; width: 40%; margin-top: 12px; }
@keyframes skShimmer { 0% { background-position: 0 0; } 100% { background-position: -200% 0; } }

.work-card-title {
  font-size: 18px;
  margin: 0 0 6px 0;
}
.work-card-desc {
  margin: 0 0 12px 0;
  color: #cbd5e1;
}
.work-stat { display: inline-flex; align-items: center; gap: 6px; }
.work-topics { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.work-badge { background: rgba(255,255,255,0.10); padding: 2px 8px; border-radius: 999px; font-size: 12px; }

/* Remove angled separators */
.section-angle-bottom::after,
.section-angle-top::before { display: none !important; }

/* Subtle parallax gradient background for sections */
#my-work, #contact {
  position: relative;
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.08), rgba(56, 189, 248, 0.06));
  background-attachment: fixed; /* parallax-like effect */
}

#my-work > .container, #contact > .container {
  position: relative; z-index: 1;
}

/* Remove parallax background for sections */
#my-work, #contact { background: none; background-attachment: initial; }

/* Restore angled section separators */
.section-angle-bottom {
  position: relative;
  padding-bottom: 80px;
}
.section-angle-bottom::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 110px;
  /* Accent stripe + subtle teal-tinted gradient */
  background:
    linear-gradient(0deg, #22d3ee 0 4px, transparent 4px),
    linear-gradient(135deg, rgba(20, 184, 166, 0.20), rgba(34, 211, 238, 0.16));
  transform: skewY(-3deg);
  transform-origin: 100% 0;
  box-shadow: 0 -8px 24px rgba(0,0,0,0.18) inset;
}

.section-angle-top {
  position: relative;
  padding-top: 100px;
}
.section-angle-top::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -50px;
  height: 110px;
  /* Accent stripe + subtle teal-tinted gradient */
  background:
    linear-gradient(0deg, #22d3ee 0 4px, transparent 4px),
    linear-gradient(135deg, rgba(20, 184, 166, 0.20), rgba(34, 211, 238, 0.16));
  transform: skewY(-3deg);
  transform-origin: 0 100%;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18) inset;
}

/* Ensure content sits above angled backgrounds */
.section-angle-bottom > .container,
.section-angle-top > .container { position: relative; z-index: 2; }

.section-divider-line {
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, transparent, rgba(34,211,238,0.45), transparent);
  box-shadow: 0 0 12px rgba(34,211,238,0.18);
  margin: 24px 0 0 0;
}


