<style>
/**
 * These styles are used for DEMO purpose only.
 */
*,
:after,
:before {
  box-sizing: border-box;
}

:root {
  color: #18222d;
  background: #ffffff;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
}

body {
  margin: 0;
  -webkit-font-smoothing: antialiased;
  background: #ffffff;
  color: #18222d;
}

.section {
  display: grid;
  place-items: center;
  padding: 4.5rem 1.5rem;
}

.jarallax {
  min-height: 78vh;
  display: grid;
  place-items: center;
  padding: 2rem;
  color: #fff;
  text-align: center;
}

.section-intro {
  min-height: 50vh;
}

.section-copy {
  min-height: 28vh;
}

.section-inner {
  width: min(100%, 64rem);
  text-align: center;
}

.panel {
  padding: 2rem;
  border: 1px solid #dbd4c9;
  border-radius: 1.5rem;
 background-color: #204060;
  box-shadow: 0 18px 40px rgba(24, 34, 45, 0.08);
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.lede {
  max-width: 38rem;
  margin: 1.25rem auto 0;
  line-height: 1.6;
  color: #566171;
}

.section h1,
.jarallax h2 {
  margin: 0;
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  line-height: 0.95;
}

.section p {
  margin: 0;
  line-height: 1.6;
  color: #4b5766;
}

.jarallax::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 16, 24, 0.44);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100%, 42rem);
}

.hero-text {
  margin: 1rem auto 0;
  max-width: 32rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
}

.hero-video {
  min-height: 110vh;
}





/* Lighter background */
.lighter-bg {
    background-color: #ffffff;
  min-width: 100%;
}

/* buttons */
.buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}
* + .buttons {
    margin-top: 20px;
}
a.button {
    display: inline-block;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    padding: 12px;
    border-radius: 4px;
    min-width: 200px;
    background-color: #fff;
    color: #000;
    transition: background-color .3s ease, transform .3s ease, box-shadow .3s ease;
}

/* gap */
.demo-gap {
    padding: 50px;
    overflow: hidden;
}
/* demo-Footer */
.footer {
background-color:#f2f2f2;
    text-align: center;
font-size:16px;
font-weight:700;
}

@media (max-width: 700px) {
  .jarallax,
  .section-intro {
    min-height: 60vh;
  }
}
</style>

<title>3D Buttons with CSS - Complete Example</title>
<style>
:root {
--bg: #0b1220;
--fg: #e5e7eb;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
margin: 0;
background-color:white;
color: var(--fg);
font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
line-height: 1.5;
}
.wrapper { max-width: 900px; margin: 0 auto; padding: 2rem 1rem; }
h1 { font-size: clamp(1.4rem, 1.2rem + 1.2vw, 2rem); margin: 0 0 1rem; }
.lead { color: #cbd5e1; margin-top: 0; }
.section { margin-top: 0.5rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; }

/* 3D button base */
.btn-3d {
--btn-bg-hi: #60a5fa;
--btn-bg-lo: #2563eb;
--btn-edge: #1e3a8a;
--btn-text: #ffffff;

display: inline-flex;
align-items: center;
justify-content: center;
gap: .55em;
appearance: none;
border: 0;
border-radius: .85rem;
padding: .9em 1.2em;
font: 800 1rem/1 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
color: var(--btn-text);
background-image: linear-gradient(180deg, var(--btn-bg-hi), var(--btn-bg-lo));
box-shadow:
0 0 0 1px rgba(255,255,255,.08) inset,
0 .5em 0 var(--btn-edge),
0 .85em 1.2em rgba(0,0,0,.35);
transform: translateY(0);
transition: transform 120ms ease, box-shadow 120ms ease, filter 120ms ease, background 120ms ease;
cursor: pointer;
text-decoration: none;
user-select: none;
-webkit-tap-highlight-color: transparent;
position: relative;
}

/* glossy top highlight */
.btn-3d::before {
content: "";
position: absolute;
inset: 2px 2px auto 2px;
height: 40%;
border-radius: .75rem .75rem .5rem .5rem;
background: linear-gradient(180deg, rgba(255,255,255,.25), rgba(255,255,255,0));
pointer-events: none;
}

/* motion and depth states */
.btn-3d:hover {
transform: translateY(-.15em);
box-shadow:
0 0 0 1px rgba(255,255,255,.1) inset,
0 .6em 0 var(--btn-edge),
0 1.05em 1.35em rgba(0,0,0,.4);
}
.btn-3d:active {
transform: translateY(.45em);
box-shadow:
0 0 0 1px rgba(255,255,255,.14) inset,
0 .2em 0 var(--btn-edge),
0 .5em .9em rgba(0,0,0,.32);
filter: brightness(.98);
}
.btn-3d:focus-visible {
outline: 0;
box-shadow:
0 0 0 3px rgba(255,255,255,.6),
0 0 0 5px rgba(59,130,246,.8),
0 .5em 0 var(--btn-edge),
0 .85em 1.2em rgba(0,0,0,.35);
}

/* sizes */
.btn--sm { font-size: .9rem; padding: .65em .9em; border-radius: .7rem; }
.btn--lg { font-size: 1.125rem; padding: 1.05em 1.4em; border-radius: 1rem; }

/* color themes */
.btn--primary { --btn-bg-hi: #60a5fa; --btn-bg-lo: #2563eb; --btn-edge: #1e3a8a; --btn-text: #fff; }
.btn--success { --btn-bg-hi: #34d399; --btn-bg-lo: #059669; --btn-edge: #065f46; --btn-text: #fff; }
.btn--warning { --btn-bg-hi: #fbbf24; --btn-bg-lo: #d97706; --btn-edge: #92400e; --btn-text: #1f2937; }
.btn--danger { --btn-bg-hi: #fb7185; --btn-bg-lo: #e11d48; --btn-edge: #7f1d1d; --btn-text: #fff; }
.btn--neutral { --btn-bg-hi: #f3f4f6; --btn-bg-lo: #d1d5db; --btn-edge: #6b7280; --btn-text: #111827; }

/* disabled state */
.btn-3d[disabled], .btn-3d[aria-disabled="true"] {
pointer-events: none;
opacity: .65;
filter: saturate(.7) contrast(.9);
transform: none;
box-shadow:
0 0 0 1px rgba(255,255,255,.06) inset,
0 .3em 0 var(--btn-edge),
0 .7em 1em rgba(0,0,0,.28);
cursor: not-allowed;
}
.button-group { display: flex; justify-content: center; gap: 10px; }
/* icon slot */
.btn-3d .icon { display: inline-block; line-height: 0; font-size: 1.1em; }
</style>