/*
Theme Name: ElectroHacking
Theme URI: https://electrohacking.com/
Description: Responsive Astra child theme for the ElectroHacking learning platform.
Author: ElectroHacking
Version: 0.3.1
Text Domain: electrohacking
*/

:root {
  --eh-bg: #060a0d;
  --eh-surface: #0d151a;
  --eh-surface-2: #111d23;
  --eh-text: #f4f8fa;
  --eh-muted: #9eb0b9;
  --eh-cyan: #13c8ff;
  --eh-lime: #b7ff00;
  --eh-line: rgba(255, 255, 255, 0.1);
  --eh-radius: 22px;
  --eh-max: 1200px;
}

html { scroll-behavior: smooth; }
body { background: var(--eh-bg); color: var(--eh-text); }
.eh-home *, .eh-home *::before, .eh-home *::after { box-sizing: border-box; }
.eh-home { overflow: hidden; background: var(--eh-bg); color: var(--eh-text); }
.eh-wrap { width: min(calc(100% - 40px), var(--eh-max)); margin-inline: auto; }
.eh-section { padding: 92px 0; }
.eh-section--soft { background: linear-gradient(180deg, rgba(19,200,255,.035), rgba(183,255,0,.025)); border-block: 1px solid var(--eh-line); }
.eh-kicker { margin: 0 0 12px; color: var(--eh-lime); font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.eh-heading { max-width: 720px; margin: 0; font-size: clamp(2rem, 4.5vw, 4rem); line-height: 1.04; letter-spacing: -.04em; }
.eh-copy { max-width: 650px; color: var(--eh-muted); font-size: 1.06rem; }
.eh-button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 22px; border: 1px solid transparent; border-radius: 999px; background: var(--eh-lime); color: #071006 !important; font-weight: 800; text-decoration: none !important; transition: transform .2s ease, box-shadow .2s ease; }
.eh-button:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(183,255,0,.16); }
.eh-button--ghost { border-color: var(--eh-line); background: transparent; color: var(--eh-text) !important; }
.eh-button--small { min-height: 42px; padding-inline: 18px; }

.eh-hero { position: relative; min-height: 760px; display: grid; align-items: center; padding: 130px 0 90px; background: radial-gradient(circle at 78% 32%, rgba(19,200,255,.17), transparent 27%), radial-gradient(circle at 85% 62%, rgba(183,255,0,.12), transparent 25%); }
.eh-hero::before { content: ""; position: absolute; inset: 0; opacity: .22; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(to bottom, #000, transparent 85%); }
.eh-hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); gap: 60px; align-items: center; }
.eh-hero h1 { max-width: 790px; margin: 0; font-size: clamp(3.3rem, 8vw, 7.2rem); line-height: .88; letter-spacing: -.065em; }
.eh-gradient { color: transparent; background: linear-gradient(90deg, var(--eh-cyan), var(--eh-lime)); background-clip: text; -webkit-background-clip: text; }
.eh-hero__lead { max-width: 680px; margin: 26px 0 32px; color: var(--eh-muted); font-size: clamp(1.05rem, 2vw, 1.3rem); }
.eh-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.eh-hero__visual { position: relative; }
.eh-logo-orbit { width: min(100%, 470px); aspect-ratio: 1; margin: auto; padding: 48px; border: 1px solid rgba(19,200,255,.28); border-radius: 50%; box-shadow: 0 0 90px rgba(19,200,255,.12); animation: eh-float 6s ease-in-out infinite; }
.eh-logo-orbit img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.eh-signal { position: absolute; display: flex; gap: 8px; align-items: center; padding: 10px 14px; border: 1px solid var(--eh-line); border-radius: 999px; background: rgba(8,14,18,.88); color: var(--eh-muted); font-size: .8rem; backdrop-filter: blur(12px); }
.eh-signal::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--eh-lime); box-shadow: 0 0 12px var(--eh-lime); }
.eh-signal--one { top: 14%; left: -5%; }.eh-signal--two { right: -4%; bottom: 18%; }
@keyframes eh-float { 50% { transform: translateY(-12px); } }

.eh-tracks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 44px; }
.eh-card { position: relative; min-height: 330px; display: flex; flex-direction: column; padding: 28px; overflow: hidden; border: 1px solid var(--eh-line); border-radius: var(--eh-radius); background: var(--eh-surface); text-decoration: none !important; transition: transform .25s ease, border-color .25s ease; }
.eh-card:hover { transform: translateY(-6px); border-color: rgba(19,200,255,.45); }
.eh-card__number { color: var(--eh-cyan); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .8rem; }
.eh-card h3 { margin: auto 0 8px; color: var(--eh-text); font-size: 1.6rem; }
.eh-card p { margin: 0 0 22px; color: var(--eh-muted); }
.eh-card__link { color: var(--eh-lime); font-weight: 800; }

.eh-path { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: start; }
.eh-steps { display: grid; gap: 12px; counter-reset: path; }
.eh-step { display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: 23px; border: 1px solid var(--eh-line); border-radius: 18px; background: var(--eh-surface); }
.eh-step__badge { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: rgba(19,200,255,.1); color: var(--eh-cyan); font: 800 .8rem ui-monospace, monospace; }
.eh-step h3 { margin: 0 0 5px; font-size: 1.15rem; }.eh-step p { margin: 0; color: var(--eh-muted); }

.eh-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.eh-post { padding: 25px; border: 1px solid var(--eh-line); border-radius: 18px; background: var(--eh-surface); }
.eh-post time { color: var(--eh-cyan); font-size: .78rem; }.eh-post h3 { margin: 18px 0; font-size: 1.35rem; }.eh-post a { color: var(--eh-text); text-decoration: none; }.eh-post__more { color: var(--eh-lime) !important; font-weight: 700; }
.eh-empty { grid-column: 1 / -1; padding: 36px; border: 1px dashed var(--eh-line); border-radius: 18px; color: var(--eh-muted); text-align: center; }

.eh-cta { padding: 46px; display: flex; justify-content: space-between; align-items: center; gap: 30px; border: 1px solid rgba(183,255,0,.22); border-radius: 28px; background: linear-gradient(135deg, rgba(19,200,255,.11), rgba(183,255,0,.09)); }
.eh-cta h2 { max-width: 720px; margin: 0; font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1.04; }

@media (max-width: 980px) {
  .eh-hero { min-height: auto; }.eh-hero__grid, .eh-path { grid-template-columns: 1fr; }.eh-hero__visual { max-width: 500px; margin: auto; }.eh-tracks { grid-template-columns: repeat(2, 1fr); }.eh-path { gap: 40px; }.eh-posts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .eh-wrap { width: min(calc(100% - 28px), var(--eh-max)); }.eh-section { padding: 66px 0; }.eh-hero { padding-top: 90px; }.eh-hero__grid { gap: 42px; }.eh-hero h1 { font-size: clamp(3rem, 17vw, 5rem); }.eh-logo-orbit { padding: 30px; }.eh-signal { display: none; }.eh-tracks, .eh-posts { grid-template-columns: 1fr; }.eh-card { min-height: 260px; }.eh-cta { padding: 30px 24px; align-items: flex-start; flex-direction: column; }.eh-button { width: 100%; }.eh-actions { display: grid; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .eh-logo-orbit { animation: none; } * { transition-duration: .01ms !important; } }
