@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

.home-page {
  --home-max: 1180px;
  background: var(--bg-app);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  overflow-x: clip;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.home-page a {
  text-decoration: none;
}

.home-loader {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at top, rgba(88, 101, 242, 0.18), transparent 35%),
    var(--bg-app);
}

.home-loader-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 28px 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-panel);
  color: var(--text-secondary);
  font-size: 14px;
}

.home-app.hidden,
.home-loader.hidden {
  display: none !important;
}

.home-container {
  width: min(100% - clamp(16px, 4vw, 32px), var(--home-max));
  margin: 0 auto;
}

.home-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  background: rgba(15, 17, 23, 0.88);
  backdrop-filter: blur(12px);
}

.home-nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
}

.home-nav-brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
}

.home-nav-brand strong {
  display: block;
  font-size: 15px;
}

.home-nav-brand span {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
}

.home-nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.home-nav-link {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease, background 0.15s ease;
}

.home-nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.home-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: white;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.15s ease, transform 0.15s ease;
}

.home-nav-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.home-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--border);
}

.home-hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(88, 101, 242, 0.22), transparent 40%),
    radial-gradient(circle at 80% 0%, rgba(124, 135, 255, 0.12), transparent 35%);
  pointer-events: none;
}

.home-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.home-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.home-hero-title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.home-hero-description {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 56ch;
}

.home-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.home-hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.home-hero-btn:hover {
  transform: translateY(-2px);
}

.home-hero-btn-primary {
  background: linear-gradient(135deg, var(--accent), #7c87ff);
  color: white;
  box-shadow: 0 10px 30px rgba(88, 101, 242, 0.28);
}

.home-hero-btn-primary:hover {
  box-shadow: 0 14px 34px rgba(88, 101, 242, 0.36);
}

.home-hero-btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.home-hero-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(88, 101, 242, 0.35);
}

.home-hero-brand {
  display: flex;
  justify-content: center;
}

.home-hero-image-wrap {
  width: min(100%, 420px);
  aspect-ratio: 16 / 10;
  border-radius: 28px;
  border: 1px solid var(--border-strong);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.home-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-hero-icon-wrap {
  width: min(100%, 280px);
  aspect-ratio: 1;
  border-radius: 28px;
  border: 1px solid var(--border-strong);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  padding: 24px;
}

.home-hero-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 20px;
}

.home-section {
  padding: 72px 0;
}

.home-section-alt {
  background:
    radial-gradient(circle at top right, rgba(88, 101, 242, 0.08), transparent 30%),
    rgba(255, 255, 255, 0.02);
  border-block: 1px solid var(--border);
}

.home-section-head {
  margin-bottom: 28px;
}

.home-section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.02em;
}

.home-section-subtitle {
  margin-top: 10px;
  color: var(--text-secondary);
  max-width: 60ch;
}

.home-section-head.is-centered {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.home-section-head.is-centered .home-section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

.home-section-contact {
  position: relative;
  overflow: hidden;
}

.home-section-contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(88, 101, 242, 0.14), transparent 42%),
    radial-gradient(circle at 20% 100%, rgba(67, 181, 129, 0.08), transparent 35%);
  pointer-events: none;
}

.home-section-contact .home-container {
  position: relative;
  z-index: 1;
}

.home-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-panel);
  padding: 24px;
}

.home-about-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  align-items: stretch;
}

.home-about-story {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  min-height: 100%;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(88, 101, 242, 0.08), rgba(255, 255, 255, 0.02)),
    var(--bg-panel);
}

.home-about-story::before {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #7c87ff, transparent);
}

.home-about-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #c8ceff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-about-story p {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.75;
  margin: 0;
}

.home-highlight-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  min-height: 100%;
}

.home-highlight-card {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-height: 0;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(88, 101, 242, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.home-highlight-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(88, 101, 242, 0.16);
  font-size: 18px;
  flex-shrink: 0;
}

.home-highlight-card p {
  margin: 0;
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.55;
  font-weight: 500;
}

.home-work-category {
  margin-bottom: 36px;
}

.home-work-category:last-child {
  margin-bottom: 0;
}

.home-work-category h3 {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-weight: 600;
}

.home-work-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.home-work-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 18px 16px 16px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}

.home-work-card:hover {
  transform: translateY(-3px);
  border-color: rgba(88, 101, 242, 0.35);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
}

.home-work-card-top {
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

.home-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.home-status-pill.is-online {
  background: var(--success-soft);
  color: #7dffb0;
}

.home-status-pill.is-offline {
  background: rgba(242, 63, 67, 0.12);
  color: #ff9ea1;
}

.home-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}

.home-work-card-icon {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: linear-gradient(135deg, var(--accent), #7c87ff);
  display: grid;
  place-items: center;
  color: white;
  font-weight: 700;
  font-size: 22px;
}

.home-work-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-work-card-name {
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  line-height: 1.35;
}

.home-work-card-uptime {
  margin: 0;
  font-size: 12px;
  color: var(--text-secondary);
}

body.home-modal-open {
  overflow: hidden;
}

.home-bot-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.home-bot-modal.hidden {
  display: none !important;
}

.home-bot-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.home-bot-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 8, 14, 0.72);
  backdrop-filter: blur(6px);
}

.home-bot-modal-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 360px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transform: translateY(12px) scale(0.96);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.home-bot-modal.is-open .home-bot-modal-shell {
  transform: translateY(0) scale(1);
}

.home-bot-flip-card {
  width: 100%;
  perspective: 1200px;
}

.home-bot-flip-inner {
  position: relative;
  min-height: 320px;
  transform-style: preserve-3d;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.home-bot-modal.is-open .home-bot-flip-inner {
  transform: rotateY(180deg);
}

.home-bot-flip-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 22px 20px;
  border-radius: 22px;
  border: 1px solid rgba(88, 101, 242, 0.28);
  background:
    radial-gradient(circle at top, rgba(88, 101, 242, 0.16), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
  backface-visibility: hidden;
}

.home-bot-flip-back {
  transform: rotateY(180deg);
}

.home-bot-modal-back-top {
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

.home-bot-modal-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: linear-gradient(135deg, var(--accent), #7c87ff);
  display: grid;
  place-items: center;
  color: white;
  font-weight: 700;
  font-size: 24px;
}

.home-bot-modal-icon.is-small {
  width: 72px;
  height: 72px;
  font-size: 18px;
}

.home-bot-modal-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-bot-modal-name {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  line-height: 1.3;
}

.home-bot-modal-hint {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
}

.home-bot-modal-uptime {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
}

.home-bot-modal-description {
  margin: 0;
  width: 100%;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-primary);
  text-align: center;
  max-height: 120px;
  overflow-y: auto;
}

.home-bot-modal-close {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.home-bot-modal-close:hover {
  border-color: rgba(88, 101, 242, 0.45);
  background: rgba(88, 101, 242, 0.12);
}

.home-contact-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  max-width: 980px;
  margin: 0 auto;
}

.home-contact-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: min(100%, 220px);
  min-height: 168px;
  padding: 22px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
  color: inherit;
  text-align: center;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.home-contact-box:hover {
  transform: translateY(-4px);
  border-color: rgba(88, 101, 242, 0.42);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
  background:
    radial-gradient(circle at top, rgba(88, 101, 242, 0.12), transparent 65%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
}

.home-contact-box.is-static {
  cursor: default;
}

.home-contact-box.is-static:hover {
  transform: none;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
  border-color: rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
}

.home-contact-email-reveal {
  border: none;
  font: inherit;
  cursor: pointer;
  appearance: none;
}

.home-contact-email-reveal.is-revealed:hover {
  border-color: rgba(88, 101, 242, 0.42);
}

.home-contact-box-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(88, 101, 242, 0.16);
  color: #dbe0ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.home-contact-box-icon svg {
  width: 24px;
  height: 24px;
  display: block;
}

.home-contact-box-icon.is-email {
  background: rgba(88, 101, 242, 0.18);
  color: #c7d0ff;
}

.home-contact-box-icon.is-discord {
  background: rgba(88, 101, 242, 0.22);
  color: #dbe0ff;
}

.home-contact-box-icon.is-server {
  background: rgba(114, 137, 218, 0.2);
  color: #dbe0ff;
}

.home-contact-box-icon.is-whatsapp {
  background: rgba(37, 211, 102, 0.16);
  color: #8ff0b8;
}

.home-contact-box-icon.is-github {
  background: rgba(255, 255, 255, 0.08);
  color: #f5f5f5;
}

.home-contact-box-icon.is-other {
  background: rgba(240, 178, 50, 0.14);
  color: #ffd98a;
}

.home-contact-box strong {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.home-contact-box-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  word-break: break-word;
  line-height: 1.45;
}

.home-contact-email-mask {
  color: var(--text-secondary);
  font-weight: 500;
}

.home-contact-email-reveal.is-revealed .home-contact-email-mask {
  display: none;
}

.home-contact-email-address {
  display: none;
}

.home-contact-email-reveal.is-revealed .home-contact-email-address {
  display: block;
}

.home-contact-email-hint {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
}

.home-contact-email-reveal:not(.is-revealed) .home-contact-email-hint {
  display: none;
}

.home-empty-note {
  text-align: center;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  color: var(--text-secondary);
  font-size: 14px;
}

.home-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 36px;
  background: var(--bg-panel);
}

.home-footer-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 14px;
}

.home-footer-sub {
  font-size: 12px;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .home-hero-inner,
  .home-about-layout {
    grid-template-columns: 1fr;
  }

  .home-about-story {
    min-height: auto;
  }

  .home-highlight-grid {
    min-height: auto;
  }

  .home-highlight-card {
    flex: none;
  }

  .home-hero-brand {
    order: -1;
  }

  .home-hero-image-wrap,
  .home-hero-icon-wrap {
    width: min(180px, 55vw);
  }

  .home-nav {
    flex-direction: column;
    align-items: stretch;
    padding: 12px clamp(14px, 4vw, 24px);
  }

  .home-nav-links {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .home-nav-link,
  .home-nav-btn {
    flex-shrink: 0;
  }

  .home-section {
    padding: clamp(48px, 10vw, 72px) 0;
  }

  .home-contact-box {
    width: min(100%, 280px);
  }

  .home-bot-modal {
    padding: 16px;
  }

  .home-bot-modal-shell {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .home-work-gallery {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr));
  }

  .home-work-card-icon {
    width: 76px;
    height: 76px;
  }

  .home-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .home-hero-btn {
    width: 100%;
    justify-content: center;
  }

  .home-contact-grid {
    flex-direction: column;
    align-items: center;
  }
}
