* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #0f1020;
  color: white;
}

a {
  color: inherit;
  text-decoration: none;
}

.back {
  position: fixed;
  top: 22px;
  left: 22px;
  z-index: 50;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(15, 16, 32, 0.75);
  backdrop-filter: blur(12px);
  color: white;
  font-weight: 900;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.project-hero {
  min-height: 90vh;
  padding: 120px 8% 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-hero h1 {
  font-size: clamp(48px, 8vw, 105px);
  line-height: 0.95;
  max-width: 1050px;
  margin-bottom: 28px;
}

.project-hero p {
  max-width: 850px;
  font-size: 22px;
  line-height: 1.7;
  color: #d8d8e8;
}

.badge {
  width: fit-content;
  padding: 10px 18px;
  border-radius: 999px;
  margin-bottom: 25px;
  font-weight: 900;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 35px;
}

.btn {
  padding: 16px 26px;
  border-radius: 14px;
  font-weight: 900;
  transition: 0.25s;
}

.btn:hover {
  transform: translateY(-4px);
}

.section {
  padding: 90px 8%;
}

.section h2 {
  font-size: 44px;
  margin-bottom: 22px;
}

.section p {
  color: #c9c9d6;
  font-size: 18px;
  line-height: 1.7;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 35px;
}

.info-card {
  padding: 28px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.info-card h3 {
  font-size: 24px;
  margin-bottom: 12px;
}

.demo-section {
  padding: 90px 8%;
}

.demo-section h2 {
  font-size: 44px;
  margin-bottom: 35px;
}

.browser {
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.45);
}

.browser-bar {
  height: 58px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 22px;
}

.dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
}

.red { background: #ff5f57; }
.yellow { background: #ffbd2e; }
.green { background: #28c840; }

.browser-title {
  margin-left: 14px;
  font-weight: 900;
}

.toast {
  position: fixed;
  right: 25px;
  bottom: 25px;
  padding: 16px 20px;
  border-radius: 16px;
  color: white;
  font-weight: 900;
  opacity: 0;
  transform: translateY(120px);
  transition: 0.3s;
  z-index: 999;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* discord demo */

.discord-hero {
  background:
    radial-gradient(circle at top left, rgba(88, 101, 242, 0.75), transparent 34%),
    radial-gradient(circle at bottom right, rgba(35, 39, 42, 1), transparent 38%),
    #090b14;
}

.discord-hero .badge,
.discord-btn {
  background: #5865f2;
}

.discord-btn.secondary {
  background: rgba(255, 255, 255, 0.1);
}

.discord-demo-section {
  background: #090b14;
}

.discord-browser {
  background: #313338;
  border: 1px solid #41434a;
}

.discord-browser .browser-bar {
  background: #1e1f22;
}

.discord-app {
  min-height: 760px;
  display: grid;
  grid-template-columns: 80px 260px 1fr;
  background: #313338;
  color: #dbdee1;
}

.discord-servers {
  background: #1e1f22;
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.server-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: #5865f2;
  display: grid;
  place-items: center;
  font-weight: 900;
  cursor: pointer;
}

.server-icon.dark {
  background: #313338;
}

.discord-menu {
  background: #2b2d31;
  padding: 24px;
}

.discord-menu h3 {
  margin-bottom: 20px;
}

.discord-menu button {
  width: 100%;
  padding: 13px;
  border: none;
  margin-bottom: 8px;
  border-radius: 8px;
  background: transparent;
  color: #b5bac1;
  text-align: left;
  font-weight: 800;
  cursor: pointer;
}

.discord-menu button.active,
.discord-menu button:hover {
  background: #404249;
  color: white;
}

.discord-content {
  padding: 32px;
}

.d-tab {
  display: none;
}

.d-tab.active {
  display: block;
}

.discord-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.discord-stat {
  padding: 24px;
  border-radius: 18px;
  background: #2b2d31;
  border: 1px solid #41434a;
}

.discord-stat strong {
  display: block;
  color: white;
  font-size: 38px;
}

.discord-panel {
  background: #2b2d31;
  border: 1px solid #41434a;
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 20px;
}

.discord-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.discord-actions button,
.discord-panel button {
  padding: 13px 17px;
  border: none;
  border-radius: 10px;
  background: #5865f2;
  color: white;
  font-weight: 900;
  cursor: pointer;
}

.discord-panel input,
.discord-panel select {
  width: 100%;
  margin-top: 12px;
  padding: 14px;
  background: #1e1f22;
  border: 1px solid #41434a;
  border-radius: 10px;
  color: white;
}

.discord-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 18px;
}

.discord-table th,
.discord-table td {
  padding: 15px;
  border-bottom: 1px solid #41434a;
  text-align: left;
}

.discord-pill {
  padding: 7px 12px;
  background: rgba(88, 101, 242, 0.22);
  color: #cfd3ff;
  border-radius: 999px;
  font-weight: 900;
}

/* excel demo */

.excel-hero {
  background:
    radial-gradient(circle at top left, rgba(16, 185, 129, 0.55), transparent 34%),
    radial-gradient(circle at bottom right, rgba(20, 184, 166, 0.32), transparent 38%),
    #071611;
}

.excel-hero .badge,
.excel-btn {
  background: linear-gradient(90deg, #0f9f6e, #14b8a6);
}

.excel-btn.secondary {
  background: rgba(255, 255, 255, 0.1);
}

.excel-demo-section {
  background: #eef3f8;
  color: #0f172a;
}

.excel-browser {
  background: white;
  border: 1px solid #d9e2ec;
}

.excel-browser .browser-bar {
  background: #0f172a;
  color: white;
}

.excel-app {
  min-height: 780px;
  background: #f4f7fb;
}

.excel-topbar {
  height: 78px;
  background: white;
  border-bottom: 1px solid #d9e2ec;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 34px;
}

.excel-logo {
  font-size: 25px;
  font-weight: 900;
  color: #0f9f6e;
}

.excel-nav {
  display: flex;
  gap: 12px;
}

.excel-nav button {
  border: none;
  background: transparent;
  font-weight: 900;
  cursor: pointer;
  padding: 10px 14px;
  border-radius: 10px;
  color: #475569;
}

.excel-nav button.active,
.excel-nav button:hover {
  background: #dcfce7;
  color: #0f9f6e;
}

.excel-layout {
  display: grid;
  grid-template-columns: 290px 1fr;
  min-height: 702px;
}

.excel-sidebar {
  background: #0f172a;
  color: white;
  padding: 30px;
}

.excel-sidebar button {
  display: block;
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 12px;
  margin-bottom: 12px;
  background: transparent;
  color: #cbd5e1;
  font-weight: 900;
  cursor: pointer;
  text-align: left;
}

.excel-sidebar button.active,
.excel-sidebar button:hover {
  background: #1e293b;
  color: white;
}

.excel-content {
  padding: 35px;
}

.e-tab {
  display: none;
}

.e-tab.active {
  display: block;
}

.excel-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 20px;
}

.excel-card {
  background: white;
  border: 1px solid #d9e2ec;
  border-radius: 22px;
  padding: 24px;
}

.excel-card strong {
  display: block;
  font-size: 38px;
  color: #0f9f6e;
}

.excel-panel {
  background: white;
  border: 1px solid #d9e2ec;
  border-radius: 22px;
  padding: 26px;
  margin-top: 25px;
}

.excel-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.excel-form input,
.excel-form select {
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  background: white;
}

.excel-form button,
.excel-delete,
.excel-save {
  border: none;
  border-radius: 12px;
  padding: 14px 18px;
  background: #0f9f6e;
  color: white;
  font-weight: 900;
  cursor: pointer;
}

.excel-delete {
  background: #ef4444;
}

.excel-table {
  width: 100%;
  border-collapse: collapse;
}

.excel-table th,
.excel-table td {
  padding: 15px;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
}

.excel-status {
  padding: 7px 12px;
  border-radius: 999px;
  font-weight: 900;
}

.excel-ok {
  background: #dcfce7;
  color: #15803d;
}

.excel-wait {
  background: #fef3c7;
  color: #a16207;
}

/* portfolio demo */

.portfolio-hero {
  background:
    radial-gradient(circle at top left, rgba(124, 92, 255, 0.7), transparent 35%),
    radial-gradient(circle at bottom right, rgba(255, 79, 216, 0.38), transparent 38%),
    #111227;
}

.portfolio-hero .badge,
.portfolio-btn {
  background: linear-gradient(90deg, #7c5cff, #ff4fd8);
}

.portfolio-btn.secondary {
  background: rgba(255, 255, 255, 0.1);
}

.portfolio-demo-section {
  background: #111227;
}

.portfolio-browser {
  background: #090a16;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.portfolio-browser .browser-bar {
  background: #1c1d33;
}

.portfolio-app {
  min-height: 780px;
  background:
    radial-gradient(circle at top left, rgba(124, 92, 255, 0.35), transparent 30%),
    radial-gradient(circle at bottom right, rgba(255, 79, 216, 0.25), transparent 35%),
    #0f1020;
  padding: 38px;
}

.p-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 70px;
}

.p-logo {
  font-size: 28px;
  font-weight: 900;
}

.p-logo span {
  color: #ff4fd8;
}

.p-nav button {
  border: none;
  background: transparent;
  color: #d7d7e8;
  font-weight: 900;
  margin-left: 18px;
  cursor: pointer;
}

.p-nav button.active,
.p-nav button:hover {
  color: #ff4fd8;
}

.p-tab {
  display: none;
}

.p-tab.active {
  display: block;
}

.p-home {
  max-width: 900px;
}

.p-home h3 {
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1;
  margin-bottom: 20px;
}

.p-home p {
  color: #c9c9d6;
  font-size: 20px;
  line-height: 1.6;
}

.p-projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

.p-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 24px;
  padding: 25px;
}

.p-card h3 {
  margin-bottom: 12px;
}

.p-contact {
  max-width: 720px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 24px;
  padding: 28px;
}

.p-contact input,
.p-contact textarea {
  width: 100%;
  margin-bottom: 14px;
  padding: 15px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08);
  color: white;
}

.p-contact button {
  border: none;
  border-radius: 12px;
  padding: 14px 18px;
  color: white;
  font-weight: 900;
  background: linear-gradient(90deg, #7c5cff, #ff4fd8);
  cursor: pointer;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 35px;
}

.tags span {
  padding: 10px 15px;
  border-radius: 999px;
  background: rgba(124, 92, 255, 0.16);
  color: #d9d1ff;
  font-weight: 800;
}

footer {
  padding: 35px 8%;
  color: #999;
  background: #0f1020;
}

@media (max-width: 900px) {
  .excel-layout,
  .discord-app {
    grid-template-columns: 1fr;
  }

  .discord-servers {
    display: none;
  }

  .project-hero,
  .section,
  .demo-section {
    padding-left: 6%;
    padding-right: 6%;
  }
}