 
.feature-card,
.project-card,
.contact-link,
.btn-outline-light,
.btn-primary,
.hosting-card {
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  backface-visibility: hidden;
  /* Avoid broad use of will-change; it can make rendering worse on some GPUs (esp. macOS Chrome). Add will-change only to specific elements that need it. */
  perspective: 1000px;
}

 

.btn-primary {
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
  border: 1px solid rgba(0, 160, 255, 0.8);
  color: #ffffff;
  font-weight: 600;
  border-radius: var(--radius-pill);
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease;
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(135deg, var(--accent-blue), var(--primary-blue-soft));
  border-color: rgba(129, 216, 240, 0.9);
  color: #0b1020;
}

.btn-primary:focus-visible,
.btn-outline-light:focus-visible,
.nav-link:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible {
  outline: 3px solid rgba(0, 160, 255, 0.22);
  outline-offset: 2px;
}

.btn-outline-light {
  border-radius: var(--radius-pill);
  border-width: 1px;
  font-weight: 500;
  border-color: var(--accent-soft);
  color: var(--accent-soft);
  transition:
    color 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.btn-outline-light:hover,
.btn-outline-light:focus {
  background: var(--primary-blue);
  border-color: var(--primary-blue);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(0, 102, 255, 0.6);
  transform: translateZ(0) translateY(-2px);
}

 

.hero-badge {
  background: rgba(0, 102, 255, 0.12);
  color: var(--accent-soft);
  padding: 0.4rem 0.9rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(0, 160, 255, 0.4);
}

.hero-panel {
  background: radial-gradient(circle at top left, #111827, #050816);
  border-radius: var(--radius-panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.8rem 1.8rem 1.9rem;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: -40%;
  opacity: 0.14;
  background: radial-gradient(circle at top, #0066ff, transparent 55%);
  pointer-events: none;
}

.hero-panel h2 {
  position: relative;
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
}

.hero-panel p,
.hero-panel ul {
  position: relative;
}

.hero-panel .hero-list {
  list-style: none;
  padding-left: 0;
  margin: 0.9rem 0 0.8rem;
}

.hero-panel .hero-list li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-soft);
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

 

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin-top: 1.6rem;
}

.hero-meta .meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero-meta .meta-item i {
  color: var(--accent-soft);
  transition: transform 0.3s ease;
  will-change: transform;
}

.hero-meta .meta-item i:hover {
  transform: translateZ(0) rotate(-6deg);
}

 

.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  padding: 1.8rem 1.6rem;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 12px 35px rgba(3, 7, 18, 0.9);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease;
}

.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  padding: 1.8rem 1.6rem;
  border: 1px solid var(--border-subtle);
  /* Reduce heavy shadows and only animate transform for smooth GPU acceleration */
  box-shadow: 0 8px 20px rgba(3, 7, 18, 0.85);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}
.feature-card:hover {
  transform: translateY(-4px) translateZ(0);
  /* Shorten shadow blur to reduce paint cost */
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.9);
  border-color: rgba(0, 160, 255, 0.6);
  /* Avoid expensive background radial gradient transition on hover — keep background static */
}

/* Reduce hover shadow intensity for macOS Chrome improvements (applies when .mac-chrome is present on html/body) */
.mac-chrome .feature-card:hover,
.mac-chrome .project-card:hover,
.mac-chrome .hosting-card:hover,
.mac-chrome .services-pill:hover,
.mac-chrome .stack-item:hover {
  transform: translateY(-3px) translateZ(0);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.85) !important;
}
.feature-card ul {
  list-style: none;
  padding-left: 0;
  margin-top: 0.6rem;
  margin-bottom: 0;
}

.feature-card ul li {
  font-size: 0.9rem;
  color: var(--text-soft);
}

 

.hosting-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  padding: 2rem 1.6rem 2.1rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  height: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hosting-card::before {
  content: "";
  position: absolute;
  inset: -20%;
  opacity: 0.12;
  background: radial-gradient(circle at top, var(--primary-blue), transparent 55%);
  pointer-events: none;
}

.hosting-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-soft);
  margin-bottom: 0.9rem;
}

.hosting-label.highlighted {
  color: #facc15;
}

.hosting-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
}

.hosting-price span {
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--accent-soft);
}

.hosting-price small {
  color: var(--text-muted);
  margin-left: 0.1rem;
}

.hosting-features {
  list-style: none;
  padding-left: 0;
  margin: 1.1rem 0 1.4rem;
  flex-grow: 1;
}

.hosting-features li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-soft);
  font-size: 0.92rem;
  margin-bottom: 0.4rem;
}

.hosting-card-featured {
  border-color: rgba(250, 204, 21, 0.85);
  /* Reduce featured card shadow to minimize heavy repainting (esp. on macOS) */
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.95);
}

 

.project-card {
  background: var(--bg-card-soft);
  border-radius: var(--radius-card);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.95);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}

.project-card {
  background: var(--bg-card-soft);
  border-radius: var(--radius-card);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  /* Lower the shadow strength/blur to reduce repaint work */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}
.project-card:hover {
  transform: translateY(-4px) translateZ(0);
  border-color: rgba(0, 160, 255, 0.65);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.95);
}

 

.about-list {
  list-style: none;
  padding-left: 0;
  margin-top: 0.8rem;
}

.about-list li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.about-panel {
  background: radial-gradient(circle at top left, #111827, #050816);
  border-radius: var(--radius-card);
  border: 1px solid var(--border-subtle);
  padding: 1.6rem 1.5rem 1.5rem;
  box-shadow: var(--shadow-soft);
}

.stack-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

 

.contact-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  border: 1px solid var(--border-subtle);
  padding: 2.1rem 2rem 1.7rem;
  box-shadow: var(--shadow-soft);
}

.contact-card .form-label {
  font-size: 0.88rem;
  color: var(--text-soft);
}

.contact-card .form-control,
.contact-card .form-select {
  background-color: #020617;
  border-color: rgba(148, 163, 184, 0.4);
  color: var(--text-main);
  border-radius: 10px;
  font-size: 0.95rem;
}

.contact-card .form-control:focus,
.contact-card .form-select:focus {
  border-color: var(--accent-soft);
  box-shadow: 0 0 0 1px rgba(0, 160, 255, 0.4);
  background-color: #020617;
  color: var(--text-main);
}

 

.site-footer {
  padding: 1.9rem 0;
  background: #020617;
  border-top: 1px solid rgba(255,255,255,0.06);
  color: var(--text-muted);
  font-size: 0.86rem;
}

.footer-meta {
  color: var(--text-muted);
}

/* Footer social link icon */
.site-footer a .bi-facebook {
  color: var(--accent-soft);
  font-size: 1.05rem;
}
.site-footer a:hover .bi-facebook,
.site-footer a:focus .bi-facebook {
  color: var(--primary-blue-soft);
}

.site-footer p {
  margin-bottom: 0;
}

.contact-link {
  display: flex;
  text-decoration: underline;
  color: inherit;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.contact-link:hover {
  color: var(--accent-soft);
  transform: translateX(4px) translateZ(0);
}
