@import url("./code-box.css");
@import url("./sideBar.css");
@import url("./project-card.css");

:root {
  --base-clr: #0b1020;
  --base-gradient-end: #0b1020;
  --base-sidebar-clr: #0f172a;
  --surface-clr: #111827;
  --surface-muted-clr: #172033;
  --surface-raised-clr: #1f2937;
  --line-clr: #283449;
  --hover-clr: #818cf8;
  --accent-muted-clr: #38bdf8;
  --text-clr: #f8fafc;
  --secondary-text-clr: #cbd5e1;
  --quiet-text-clr: #94a3b8;
}

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: auto 1fr;
  background: var(--base-clr);
  color: var(--text-clr);
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 8%, rgba(129, 140, 248, 0.18), transparent 26rem),
    radial-gradient(circle at 82% 26%, rgba(56, 189, 248, 0.12), transparent 22rem),
    linear-gradient(180deg, rgba(15, 23, 42, 0.32), rgba(11, 16, 32, 0.12));
  opacity: 0.95;
}

nav,
main {
  position: relative;
  z-index: 1;
}

main {
  width: 100%;
  min-width: 0;
  padding: 0 32px;
}

main p {
  color: var(--secondary-text-clr);
}

.container {
  position: relative;
  width: min(1120px, 100%);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 32px 0 48px;
  border-bottom: 1px solid var(--line-clr);
}

.container h1 {
  margin-bottom: 20px;
  color: var(--text-clr);
  font-family: "Manrope", "IBM Plex Sans", sans-serif;
  font-size: clamp(2.2rem, 4.4vw, 3.85rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: 0;
}

.container h2 {
  color: var(--text-clr);
  font-family: "Manrope", "IBM Plex Sans", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0;
}

#toptitle {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.7fr);
  grid-template-areas:
    "name code"
    "nickname code"
    "desc code"
    "skills skills";
  align-content: center;
  gap: 14px 32px;
}

#toptitle > .myname {
  grid-area: name;
  margin: 0;
  max-width: 720px;
  padding-bottom: 8px;
  background:
    linear-gradient(90deg, rgba(129, 140, 248, 0.7), rgba(56, 189, 248, 0.28), transparent 72%)
    left bottom / 72% 3px no-repeat;
  text-shadow: 0 10px 34px rgba(129, 140, 248, 0.16);
}

#toptitle > .nickname {
  grid-area: nickname;
  margin: -14px 0 0 22px;
  color: var(--secondary-text-clr);
  font-size: clamp(1.85rem, 3.8vw, 3rem);
}

#toptitle > .short-description {
  grid-area: desc;
  max-width: 560px;
  margin: 0;
  font-size: 1rem;
}

#toptitle .code-container {
  grid-area: code;
  width: 100%;
  max-width: 460px;
  align-self: center;
  justify-self: end;
}

#toptitle .home-skills-panel {
  grid-area: skills;
  width: 100%;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line-clr);
}

.home-skills-header {
  margin-bottom: 16px;
}

.home-skills-header h2 {
  margin: 0 0 4px;
  font-size: 1.35rem;
}

.home-skills-header p {
  max-width: 680px;
  margin: 0;
  color: var(--quiet-text-clr);
  font-size: 0.92rem;
}

.skills-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.skill-group-card,
.skills-secondary {
  border: 1px solid var(--line-clr);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(31, 41, 55, 0.72), transparent 56%),
    var(--surface-clr);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.skill-group-card {
  position: relative;
  padding: 14px;
}

.skill-group-card::before {
  content: "";
  position: absolute;
  top: 14px;
  right: 14px;
  width: 28px;
  height: 1px;
  background: var(--accent-muted-clr);
}

.skill-group-card h3,
.skills-secondary h3 {
  margin: 0 0 10px;
  color: var(--text-clr);
  font-family: "Manrope", "IBM Plex Sans", sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0;
}

.skill-group-card ul,
.skills-secondary-list {
  list-style: none;
}

.skill-group-card ul {
  display: grid;
  gap: 8px;
}

.skill-group-card li,
.skills-secondary-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--secondary-text-clr);
  font-size: 0.86rem;
  line-height: 1.35;
}

.skills-secondary {
  margin-top: 12px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(129, 140, 248, 0.14), transparent 36%),
    linear-gradient(180deg, rgba(31, 41, 55, 0.72), transparent 56%),
    var(--surface-clr);
  box-shadow:
    inset 0 1px 0 rgba(129, 140, 248, 0.24),
    0 2px 8px rgba(0, 0, 0, 0.18);
}

.skills-secondary-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.skill-tech-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--hover-clr);
}

.skill-tech-icon img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.skill-tech-icon i {
  font-size: 0.95rem;
}

#about-me {
  display: grid;
  gap: 20px;
  align-content: center;
}

#about-me > h1 {
  margin-bottom: 0;
}

#side-project > h1 {
  margin-bottom: 28px;
}

#about-me .about-me-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: 24px;
  align-items: start;
}

.about-me-story {
  padding: 24px;
  border: 1px solid var(--line-clr);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(129, 140, 248, 0.13), transparent 34%),
    linear-gradient(180deg, rgba(17, 24, 39, 0.98), var(--surface-clr));
  box-shadow:
    inset 0 1px 0 rgba(56, 189, 248, 0.2),
    0 2px 8px rgba(0, 0, 0, 0.18);
}

.about-me-story p {
  margin: 0;
  color: var(--secondary-text-clr);
  font-size: 0.98rem;
  line-height: 1.78;
}

.about-me-story p + p {
  margin-top: 16px;
}

.skill-highlight,
.soft-highlight {
  color: var(--text-clr);
  font-weight: 700;
}

.about-me-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 260px 180px;
  gap: 12px;
}

.about-photo {
  min-height: 160px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-clr);
  border-radius: 8px;
  background: var(--surface-clr);
  filter: saturate(0.98) contrast(1.01);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.about-photo-main {
  grid-column: 1 / -1;
}

.about-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.side-projects {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.project {
  width: 600px;
  height: 350px;
  margin: 24px;
  display: flex;
  border: 1px solid var(--line-clr);
}

.project-info {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.project-info > img {
  height: 280px;
  border-radius: 8px;
}

.description > p {
  font-size: 0.7rem;
}

.project-skills > p {
  display: block;
  margin-top: 0;
  font-size: 1rem;
}

.copy-feedback-toast {
  position: fixed;
  right: 24px;
  bottom: 28px;
  z-index: 1400;
  max-width: min(320px, calc(100vw - 32px));
  padding: 12px 14px;
  border: 1px solid var(--line-clr);
  border-radius: 8px;
  background: var(--surface-muted-clr);
  color: var(--text-clr);
  font-size: 0.9rem;
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease;
}

.copy-feedback-toast.is-visible {
  opacity: 1;
}

.copy-feedback-toast[data-tone="info"] {
  border-color: var(--hover-clr);
}
