:root {
  --bg: #0f1724;
  /* deep slate */
  --card: #0b1220;
  --muted: #94a3b8;
  --accent: #22c55e;
  /* green */
  --accent-2: #38bdf8;
  /* sky */
  --glass: rgba(255, 255, 255, 0.02);
}

* {
  box-sizing: border-box
}

body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  margin: 0;
  background: linear-gradient(180deg, var(--bg), #071023);
  color: #e6eef8;
  -webkit-font-smoothing: antialiased
}

.topnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  background: linear-gradient(180deg, rgba(11, 18, 32, 0.6), rgba(11, 18, 32, 0.35));
  z-index: 60
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px
}

.logo {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
  color: #0f1724
}

.title h1 {
  margin: 0;
  font-size: 18px
}

.title .tag {
  margin: 0;
  color: var(--muted);
  font-size: 13px
}

.tabs {
  display: flex;
  gap: 10px
}

.tab {
  background: transparent;
  border: 0;
  color: var(--muted);
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600
}

.tab:hover {
  color: var(--accent);
  background: rgba(124, 58, 237, 0.06)
}

.tab.active {
  color: white;
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.2), rgba(79, 70, 229, 0.12));
  box-shadow: 0 6px 18px rgba(2, 6, 23, 0.6)
}

.container {
  max-width: 1100px;
  margin: 36px auto;
  padding: 0 22px
}

.panel {
  display: none
}

.panel.active {
  display: block
}

.hero {
  background: linear-gradient(160deg, rgba(34, 197, 94, 0.08), rgba(56, 189, 248, 0.06));
  padding: 32px;
  border-radius: 16px;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px
}

.hero h2 {
  margin: 0 0 8px 0;
  font-size: 28px
}

.hero p {
  margin: 0 0 12px 0;
  color: var(--muted)
}

.cta {
  color: var(--accent);
  font-weight: 600
}

.eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-2);
  font-weight: 700
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #041018
}

.btn.ghost {
  border-color: rgba(255, 255, 255, 0.2);
  color: #e6eef8;
  background: rgba(255, 255, 255, 0.02)
}

.hero-card {
  background: var(--card);
  padding: 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.03)
}

.hero-card ul {
  padding-left: 18px;
  margin: 10px 0 0 0;
  color: var(--muted)
}

.highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px
}

.card {
  background: var(--card);
  padding: 18px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.03)
}

.card h3 {
  margin-top: 0
}

.skills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 6px 0
}

.skills li {
  background: var(--glass);
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 600
}

.projects-grid,
.solution-grid,
.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px
}

.proj {
  background: var(--card);
  padding: 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.03)
}

.proj a {
  color: var(--accent);
  font-weight: 700
}

.solution {
  background: var(--card);
  padding: 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.03)
}

.solution h3 {
  margin-top: 0
}

.platform {
  background: linear-gradient(140deg, rgba(34, 197, 94, 0.08), rgba(56, 189, 248, 0.06));
  padding: 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-decoration: none;
  color: #e6eef8;
  display: flex;
  flex-direction: column;
  gap: 6px
}

.platform span {
  font-weight: 700
}

.platform small {
  color: var(--muted)
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  background: var(--card);
  padding: 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.03)
}

.contact-grid h4 {
  margin: 0 0 6px 0
}

.embed {
  margin-top: 12px
}

.embed-frame {
  height: 600px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.04)
}

.embed-frame iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0
}

.embed-note {
  color: var(--muted);
  margin-top: 8px;
  font-size: 14px
}

.footer {
  max-width: 1100px;
  margin: 44px auto;
  color: var(--muted);
  font-size: 13px;
  padding: 0 22px
}

@media (max-width:720px) {
  .highlights {
    grid-template-columns: 1fr
  }

  .hero {
    grid-template-columns: 1fr
  }

  .logo {
    width: 44px;
    height: 44px;
    font-size: 20px
  }

  .tabs {
    gap: 6px
  }

  .embed-frame {
    height: 420px
  }

  .ide-main {
    grid-template-columns: 1fr !important;
    grid-template-rows: 1fr 200px
  }

  .ide-toolbar {
    flex-direction: column;
    gap: 10px
  }

  .ide-ai-bar {
    grid-template-columns: 1fr
  }

  .ide-ai-actions {
    flex-direction: row;
    justify-content: flex-start
  }
}

/* ===== Python IDE Styles ===== */
.ide-subtitle {
  color: var(--muted);
  margin-bottom: 20px;
  font-size: 15px
}

.ide-container {
  background: var(--card);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  margin-bottom: 24px;
  display: flex;
  flex-direction: row;
  min-height: 620px;
}

.ide-sidebar {
  width: 200px;
  min-width: 200px;
  background: rgba(0, 0, 0, 0.4);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.ide-sidebar-header {
  padding: 12px 14px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.ide-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.ide-toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04)
}

.ide-file-tabs {
  display: none;
}

.ide-file-tabs-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 6px;
  flex: 1;
  overflow-y: auto;
}

/* Tree structure styles */
.ide-tree-folder {
  user-select: none;
}

.ide-tree-folder-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.15s;
  color: var(--muted);
  font-weight: 500;
  font-size: 13px;
}

.ide-tree-folder-header:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #e6eef8;
}

.ide-tree-toggle {
  display: inline-block;
  width: 16px;
  text-align: center;
  font-size: 11px;
  line-height: 1;
  user-select: none;
}

.ide-tree-file {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.15s;
  color: var(--muted);
  font-size: 13px;
}

.ide-tree-file:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #e6eef8;
}

.ide-tree-file.active {
  background: rgba(34, 197, 94, 0.15);
  color: var(--accent);
  font-weight: 600;
}

.ide-tree-icon {
  display: inline-block;
  width: 18px;
  text-align: center;
  font-size: 14px;
  line-height: 1;
}

.ide-tree-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ide-file-tab {
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 0.15s;
}

.ide-file-tab:hover {
  background: rgba(255, 255, 255, 0.08);
}

.ide-file-tab.active {
  background: rgba(34, 197, 94, 0.15);
  color: var(--accent)
}

.ide-new-file {
  background: transparent;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  color: var(--muted);
  padding: 8px 14px;
  margin: 6px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  text-align: left;
}

.ide-new-file:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent)
}

.ide-actions {
  display: flex;
  align-items: center;
  gap: 10px
}

.ide-ai-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(8, 12, 24, 0.35)
}

.ide-ai-input {
  display: flex;
  flex-direction: column;
  gap: 8px
}

.ide-ai-modes {
  display: flex;
  gap: 4px
}

.ide-ai-mode {
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.2s ease
}

.ide-ai-mode:hover {
  color: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.2)
}

.ide-ai-mode.active {
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent);
  border-color: rgba(56, 189, 248, 0.4)
}

.ide-ai-mode.active[data-mode="ask"] {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.4)
}

.ide-ai-mode.active[data-mode="agents"] {
  background: rgba(168, 85, 247, 0.15);
  color: #a855f7;
  border-color: rgba(168, 85, 247, 0.4)
}

.ide-ai-hints {
  display: flex;
  gap: 6px;
  flex-wrap: wrap
}

.ide-ai-hint {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap
}

.ide-ai-hint:hover {
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent)
}

.ide-ai-input label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-2);
  font-weight: 700
}

.ide-ai-input textarea {
  resize: vertical;
  min-height: 64px;
  max-height: 180px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e6eef8;
  padding: 10px 12px;
  border-radius: 8px;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial
}

.ide-ai-scope {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0
}

.ide-toggle {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
  cursor: pointer
}

.ide-toggle input {
  opacity: 0;
  width: 0;
  height: 0
}

.ide-toggle-slider {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  transition: background 0.25s ease
}

.ide-toggle-slider::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.25s ease
}

.ide-toggle input:checked+.ide-toggle-slider {
  background: rgba(34, 197, 94, 0.85)
}

.ide-toggle input:checked+.ide-toggle-slider::before {
  transform: translateX(16px)
}

.ide-ai-scope-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  user-select: none
}

.ide-ai-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  min-width: 180px
}

.ide-btn {
  padding: 8px 16px;
  border-radius: 8px;
  border: none;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease
}

.ide-btn.run {
  background: linear-gradient(135deg, var(--accent), #16a34a);
  color: #041018
}

.ide-btn.ai {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.85), rgba(99, 102, 241, 0.85));
  color: #041018
}

.ide-btn.ai-run {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.9), rgba(16, 185, 129, 0.9));
  color: #041018
}

.ide-btn.run:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3)
}

.play-icon {
  font-size: 10px
}

.ide-btn.clear {
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.1)
}

.ide-btn.clear:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #e6eef8
}

.ide-theme-select {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer
}

.ide-main {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  min-height: 450px;
  flex: 1;
}

.ide-editor-wrapper {
  border-right: 1px solid rgba(255, 255, 255, 0.04)
}

.ide-editor {
  width: 100%;
  height: 450px
}

.ide-output-wrapper {
  display: flex;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.2)
}

.ide-output-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 13px;
  font-weight: 600
}

.ide-status {
  color: var(--accent);
  font-size: 12px;
  background: rgba(34, 197, 94, 0.1);
  padding: 3px 10px;
  border-radius: 12px
}

.ide-output {
  flex: 1;
  margin: 0;
  padding: 14px;
  font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
  font-size: 13px;
  line-height: 1.6;
  color: #a8d8a8;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word
}

/* IDE Features Grid */
.ide-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 24px
}

.ide-feature {
  background: var(--card);
  padding: 18px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.03)
}

.ide-feature h4 {
  margin: 0 0 8px 0;
  font-size: 15px
}

.ide-feature p {
  margin: 0;
  color: var(--muted);
  font-size: 14px
}

/* IDE Examples */
.ide-examples {
  background: var(--card);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.03)
}

.ide-examples h3 {
  margin: 0 0 14px 0;
  font-size: 16px
}

.ide-example-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px
}

.ide-example {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(56, 189, 248, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--accent-2);
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease
}

.ide-example:hover {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(56, 189, 248, 0.15));
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3)
}

/* ===== Technologies Section ===== */
.tech-subtitle {
  color: var(--muted);
  margin-bottom: 28px;
  font-size: 15px
}

/* --- Orbital Hero Animation --- */
.tech-orbit-hero {
  position: relative;
  width: 100%;
  height: 420px;
  margin: 0 auto 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden
}

.tech-orbit-center {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center
}

.tech-orbit-core {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  color: #041018;
  z-index: 11;
  position: relative;
  box-shadow: 0 0 40px rgba(34, 197, 94, 0.4), 0 0 80px rgba(56, 189, 248, 0.2)
}

.tech-orbit-pulse {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.3), transparent 70%);
  animation: orbitPulse 2s ease-in-out infinite
}

@keyframes orbitPulse {
  0%, 100% { transform: scale(1); opacity: 0.6 }
  50% { transform: scale(1.8); opacity: 0 }
}

.tech-orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.06);
  animation-timing-function: linear;
  animation-iteration-count: infinite
}

.ring-1 {
  width: 200px;
  height: 200px;
  animation: orbitSpin 20s linear infinite
}

.ring-2 {
  width: 320px;
  height: 320px;
  animation: orbitSpin 35s linear infinite reverse
}

.ring-3 {
  width: 420px;
  height: 420px;
  animation: orbitSpin 50s linear infinite
}

@keyframes orbitSpin {
  from { transform: rotate(0deg) }
  to { transform: rotate(360deg) }
}

.tech-orbit-item {
  position: absolute;
  width: 42px;
  height: 42px;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  /* Position on the ring */
  left: 50%;
  top: 50%;
  transform: rotate(calc(360deg / var(--total) * var(--i)))
             translateX(calc(50% * var(--total) / var(--total)))
             translateY(-50%);
  /* Calculate position using trig approximation via transform */
  --angle: calc(360deg / var(--total) * var(--i));
  margin-left: -21px;
  margin-top: -21px
}

/* Position items around the ring using individual transforms */
.ring-1 .tech-orbit-item {
  --radius: 100px;
  left: calc(50% + var(--radius) * cos(var(--angle)) - 21px);
  top: calc(50% + var(--radius) * sin(var(--angle)) - 21px)
}

.ring-2 .tech-orbit-item {
  --radius: 160px;
  left: calc(50% + var(--radius) * cos(var(--angle)) - 21px);
  top: calc(50% + var(--radius) * sin(var(--angle)) - 21px)
}

.ring-3 .tech-orbit-item {
  --radius: 210px;
  left: calc(50% + var(--radius) * cos(var(--angle)) - 21px);
  top: calc(50% + var(--radius) * sin(var(--angle)) - 21px)
}

.tech-orbit-item span {
  animation: orbitCounterSpin 20s linear infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px
}

.ring-2 .tech-orbit-item span {
  animation: orbitCounterSpin 35s linear infinite reverse
}

.ring-3 .tech-orbit-item span {
  animation: orbitCounterSpin 50s linear infinite
}

/* Counter-rotate so icons stay upright */
@keyframes orbitCounterSpin {
  from { transform: rotate(0deg) }
  to { transform: rotate(-360deg) }
}

.tech-orbit-item:hover {
  transform: scale(1.3);
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
  z-index: 20
}

.tech-orbit-item::after {
  content: attr(data-tip);
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  color: var(--accent);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s
}

.tech-orbit-item:hover::after {
  opacity: 1
}

/* --- Category Filters --- */
.tech-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  justify-content: center
}

.tech-filter {
  padding: 8px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.25s ease
}

.tech-filter:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(34, 197, 94, 0.08)
}

.tech-filter.active {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(56, 189, 248, 0.15));
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.2)
}

/* --- Tech Cards Grid --- */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 36px
}

.tech-card {
  position: relative;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  padding: 22px;
  overflow: hidden;
  cursor: default;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              border-color 0.3s,
              box-shadow 0.3s;
  animation: techCardIn 0.5s ease both;
  --accent-color: var(--accent)
}

.tech-card:nth-child(1) { animation-delay: 0.02s }
.tech-card:nth-child(2) { animation-delay: 0.04s }
.tech-card:nth-child(3) { animation-delay: 0.06s }
.tech-card:nth-child(4) { animation-delay: 0.08s }
.tech-card:nth-child(5) { animation-delay: 0.10s }
.tech-card:nth-child(6) { animation-delay: 0.12s }
.tech-card:nth-child(7) { animation-delay: 0.14s }
.tech-card:nth-child(8) { animation-delay: 0.16s }
.tech-card:nth-child(9) { animation-delay: 0.18s }
.tech-card:nth-child(10) { animation-delay: 0.20s }

@keyframes techCardIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95)
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1)
  }
}

.tech-card-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, var(--accent-color), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
  mix-blend-mode: soft-light
}

.tech-card:hover .tech-card-glow {
  opacity: 0.15
}

.tech-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: var(--accent-color);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4),
              0 0 30px color-mix(in srgb, var(--accent-color) 20%, transparent)
}

.tech-card-icon {
  font-size: 32px;
  margin-bottom: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent-color) 15%, transparent), rgba(255,255,255,0.02));
  transition: transform 0.3s, background 0.3s
}

.tech-card:hover .tech-card-icon {
  transform: scale(1.1) rotate(-5deg);
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent-color) 25%, transparent), rgba(255,255,255,0.05))
}

.tech-card h4 {
  margin: 0 0 6px 0;
  font-size: 16px;
  color: #e6eef8
}

.tech-card p {
  margin: 0 0 14px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4
}

/* Skill bar */
.tech-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px
}

.tech-bar-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent-color), color-mix(in srgb, var(--accent-color) 60%, var(--accent-2)));
  border-radius: 4px;
  transition: width 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 0 8px color-mix(in srgb, var(--accent-color) 40%, transparent)
}

.tech-bar-fill.animated {
  width: var(--pct)
}

.tech-level {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-color);
  opacity: 0.8
}

/* Card hidden state for filtering */
.tech-card.hidden {
  display: none
}

.tech-card.fade-in {
  animation: techCardIn 0.4s ease both
}

/* --- Stats Counter --- */
.tech-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 12px;
  padding: 28px;
  background: linear-gradient(160deg, rgba(34, 197, 94, 0.06), rgba(56, 189, 248, 0.04));
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.04)
}

.tech-stat {
  text-align: center;
  padding: 16px
}

.tech-stat-number {
  font-size: 42px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1
}

.tech-stat-plus {
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  margin-left: 2px
}

.tech-stat-label {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  margin-top: 6px
}

/* --- Responsive --- */
@media (max-width: 720px) {
  .tech-orbit-hero {
    height: 300px
  }
  .ring-3 {
    display: none
  }
  .tech-grid {
    grid-template-columns: 1fr
  }
  .tech-filters {
    justify-content: flex-start
  }
  .tech-stats {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media (max-width: 480px) {
  .tech-orbit-hero {
    height: 220px
  }
  .ring-2 {
    display: none
  }
}

/* --- Logo images in cards & orbit --- */
.tech-card-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3))
}

.tech-orbit-item img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.4))
}

.tech-text-icon {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--accent-color, var(--accent));
  text-transform: uppercase;
  line-height: 1
}

.tech-card:hover .tech-card-icon img {
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4)) brightness(1.15)
}

.tech-orbit-item:hover img {
  filter: drop-shadow(0 2px 6px rgba(34,197,94,0.5)) brightness(1.2)
}
