/* ============ Design A · Refined Dark & Gold ============ */
:root {
  --bg: #131313;
  --card: #1b1b1b;
  --card-2: #222222;
  --line: #2a2a2a;
  --line-2: #3a3a3a;
  --text: #ece7dc;
  --muted: #b9b3a6;
  --dim: #8a8478;
  --gold: #c0a062;
  --gold-2: #e6cf78;
  --display: "Bricolage Grotesque", "Poppins", system-ui, sans-serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 20px;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--gold);
  text-decoration: none;
}
a:hover {
  color: var(--gold-2);
}
img {
  max-width: 100%;
}
strong {
  color: var(--text);
  font-weight: 700;
}
s {
  color: var(--dim);
}
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(19, 19, 19, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.headerinsets {
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nameStyle {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.logomatch {
  color: var(--gold);
}
nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 28px;
}
nav a {
  color: var(--text);
  font-size: 16px;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
nav a:hover,
nav li.current a {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* ---------- buttons ---------- */
.btnfilled {
  display: inline-block;
  font-family: var(--body);
  font-size: 16px;
  font-weight: 500;
  color: #131313;
  background: var(--gold);
  border: 0;
  border-radius: 999px;
  padding: 14px 28px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.btnfilled:hover {
  background: var(--gold-2);
  color: #131313;
  transform: translateY(-1px);
}
.btncenterdiv {
  text-align: center;
  margin-top: 40px;
}
.customLink {
  color: var(--gold);
  border-bottom: 1px solid rgba(192, 160, 98, 0.4);
}
.customLink:hover {
  border-bottom-color: var(--gold-2);
}

/* ---------- divider ---------- */
.squig {
  margin: 0 auto;
  max-width: 1056px;
  height: 1px;
  background: var(--line);
  font-size: 0;
  color: transparent;
  overflow: hidden;
}

/* ---------- home: showcase ---------- */
#showcase {
  max-width: 1120px;
  margin: 0 auto;
  padding: 88px 32px 80px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 40px;
  align-items: end;
}
#showcase .container {
  grid-column: span 7;
  padding: 0;
}
#showcase h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(42px, 6.4vw, 78px);
  line-height: 1;
  letter-spacing: -0.02em;
}
#showcase > p {
  grid-column: span 5;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}
.teabr {
  display: none;
}
.emoji {
  display: inline;
}

/* ---------- home: projects ---------- */
#bottomblock {
  max-width: 1120px;
  margin: 0 auto;
  padding: 72px 32px 80px;
}
#bottomblock .container {
  padding: 0;
}
.heading {
  margin: 0 0 40px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.flex-container {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.flex-container .column {
  display: block;
}
.pblink {
  display: block;
}
.projectblock {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}
.projectblock img {
  width: auto;
  max-width: 78%;
  max-height: 360px;
  object-fit: contain;
}
.pblink:hover .projectblock {
  border-color: var(--gold);
  background: var(--card-2);
  transform: translateY(-4px);
}

/* ---------- headings used on inner pages ---------- */
#aboutheading {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(38px, 5.6vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

/* ---------- work page ---------- */
#apps {
  max-width: 1120px;
  margin: 0 auto;
  padding: 80px 32px 40px;
}
#workhead {
  margin-bottom: 56px;
}
.workblock {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 28px;
}
.workdetails {
  grid-column: span 5;
  padding: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}
.workimage {
  grid-column: span 7;
  background: var(--card-2);
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
}
.workblock:nth-of-type(even) .workdetails {
  order: 2;
}
.workblock:nth-of-type(even) .workimage {
  order: 1;
}
#wtitle {
  margin: 0 0 8px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 34px;
  line-height: 1.1;
}
#wdescription {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}
.workdetails hr {
  width: 100%;
  border: 0;
  border-top: 1px solid var(--line-2);
  margin: 22px 0 16px;
}
#used {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--gold);
}
#wstackused {
  margin: 4px 0 0;
  color: var(--dim);
  font-size: 15px;
}
#wicons {
  display: flex;
  gap: 12px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.actionIcon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  transition: border-color 0.2s, background 0.2s;
}
.actionIcon:hover {
  border-color: var(--gold);
  background: rgba(192, 160, 98, 0.1);
}
.actionIcon img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

/* slideshow (replaces the old Bootstrap carousel) */
.carousel {
  position: relative;
  width: 100%;
  height: 100%;
}
.carousel-inner {
  position: relative;
  width: 100%;
  height: 100%;
}
.carousel-item {
  display: none;
  align-items: center;
  justify-content: center;
}
.carousel-item.active {
  display: flex;
  animation: fadein 0.5s ease;
}
@keyframes fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.projectImageLs {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  border-radius: 10px;
}
.projectImage {
  height: 420px;
  max-width: 100%;
  object-fit: contain;
  border-radius: 10px;
}

/* ---------- about page ---------- */
#aboutme {
  max-width: 1120px;
  margin: 0 auto;
  padding: 80px 32px 40px;
}
.about {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 40px;
  align-items: center;
  padding: 56px 0;
}
.aboutleft {
  grid-column: span 5;
}
.aboutleft img {
  width: 100%;
  max-height: 420px;
}
.aboutright {
  grid-column: span 7;
}
.vertical {
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--gold);
  margin-bottom: 20px;
}
.aboutright p {
  margin: 0;
  font-size: 19px;
  line-height: 1.75;
  color: var(--muted);
}

.skillicons {
  padding: 56px 0;
}
.iconholder {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}
.tooltip {
  position: relative;
  width: 84px;
  height: 84px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, transform 0.2s;
}
.tooltip:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
}
.tooltip img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}
.tooltiptext {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: #131313;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  padding: 4px 10px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.tooltip:hover .tooltiptext {
  opacity: 1;
}

.contactRight {
  grid-column: span 5;
}
.contactLeft {
  grid-column: span 7;
}
.about:has(.contactRight) {
  align-items: start;
}
.abouttitle {
  margin: 0 0 24px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 34px;
  line-height: 1.1;
}
#contactDesc {
  margin: 0;
  color: var(--muted);
  line-height: 1.9;
}
#contactDesc strong {
  color: var(--dim);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}
#ideaForm {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.formField {
  width: 100%;
  font-family: var(--body);
  font-size: 16px;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: 14px 16px;
  outline: none;
  resize: vertical;
  transition: border-color 0.2s;
}
.formField::placeholder {
  color: var(--dim);
}
.formField:focus {
  border-color: var(--gold);
}

/* ---------- footer ---------- */
footer {
  padding: 48px 32px 56px;
  text-align: center;
}
.bottomDesign {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 16px;
}
.icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity 0.2s, transform 0.2s;
}
.bottomDesign a:hover .icon {
  opacity: 1;
  transform: translateY(-2px);
}
.footer-text {
  margin: 0;
  color: var(--dim);
  font-size: 15px;
}

/* ---------- back to top ---------- */
#btnscroll {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  display: none;
  background: var(--gold);
  color: #131313;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
}
#btnscroll:hover {
  background: var(--gold-2);
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  #showcase,
  .workblock,
  .about {
    grid-template-columns: 1fr;
  }
  #showcase .container,
  #showcase > p,
  .workdetails,
  .workimage,
  .aboutleft,
  .aboutright,
  .contactRight,
  .contactLeft {
    grid-column: auto;
  }
  .workblock:nth-of-type(even) .workdetails,
  .workblock:nth-of-type(even) .workimage {
    order: 0;
  }
  .flex-container {
    grid-template-columns: 1fr;
  }
  #showcase {
    padding-top: 56px;
    gap: 28px;
  }
  .workdetails {
    padding: 32px 24px;
  }
  .workimage {
    min-height: 0;
    padding: 20px;
  }
  .aboutleft img {
    max-height: 280px;
  }
}
@media (max-width: 560px) {
  body {
    font-size: 16px;
  }
  .container,
  .headerinsets,
  #apps,
  #aboutme,
  #bottomblock,
  #showcase {
    padding-left: 20px;
    padding-right: 20px;
  }
  .nameStyle {
    font-size: 20px;
  }
  nav ul {
    gap: 18px;
  }
  .projectImage {
    height: 340px;
  }
  .tooltip {
    width: 72px;
    height: 72px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}
