/* ---------- Section shared ---------- */
* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  height: 100%;
--bg: rgb(16, 2, 24);
--card: #190a27;
--border: #29054e;
--text: #ffffff;
--accent: #1e7c73;
--accent-hover: #48a19a;  
}
body {
  font-family: "Ubuntu Mono", "Fira Code", Consolas, monospace;
  background: var(--bg);
  color: var(--text);
  margin: 0;
  min-height: 100vh;
}

footer {
  scroll-snap-align: start;
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 2, 20, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  transition: border-color 0.2s;
}
header:hover { border-color: var(--accent); }
.logo {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--accent);
  text-shadow: 0 0 10px rgba(57, 217, 194, 0.3);
}
nav {
  display: flex;
  gap: 1.5rem;
}
nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.2s;
}
nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0%;
  height: 2px;
  background: var(--accent);
  transition: width 0.2s;
}
nav a:hover {
  color: var(--text);
}
nav a:hover::after {
  width: 100%;
}
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 6px;
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  font-family: inherit;
}
@media (max-width: 700px) {
  nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 0 0 8px 8px;
    padding: 1rem 1.5rem;
    gap: 1rem;
  }
  nav.open { display: flex; }
  .nav-toggle { display: inline-block; }
}

section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1rem;
}
.section-title {
  font-size: 2.2rem;
  font-weight: 600;
  margin: 0 0 0.4rem;
  color: var(--accent);
  letter-spacing: 0.5px;
  text-shadow: 0 0 14px rgba(57, 217, 194, 0.35);
  text-align: center;
  margin: 0 0 0.9rem;
}
.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0 0 2rem;
}



/* - About Section */
.about {
  text-align: center;
  padding: 4rem 1rem 3rem;
}

.about .role {
  color: var(--text);
  font-size: 1rem;
  margin: 0 0 0.75rem;
}
.about .subtitle {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 1rem;
  font-size: 0.9rem;
  line-height: 1.7;
}
.about-links {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}
.btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  border: 1px solid var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.15s, box-shadow 0.15s, transform 0.15s;
}
.btn:hover {
  background: rgba(57, 217, 194, 0.18);
  box-shadow: 0 0 14px rgba(57, 217, 194, 0.25);
  transform: translateY(-1px);
}
.btn.ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}
.btn.ghost:hover {
  color: var(--text);
  border-color: var(--accent);
  box-shadow: none;
}
.about, section {
  scroll-snap-align: start;
  scroll-snap-stop: always;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* - Skills Section -  */
.layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 760px) {
  .layout { grid-template-columns: 1fr; }
}

.list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.row-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0.9rem 1.1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  color: var(--text);
  text-align: left;
  transition: border-color 0.2s;
}
.row-header:hover, .row-header.active {
  border-color: var(--accent);
}
.row-header.active {
  background: var(--accent-soft);
}
.row-header .name {
  font-size: 0.95rem;
  font-weight: 600;
}
.chevron {
  color: var(--accent);
  font-size: 0.8rem;
  transition: transform 0.2s;
}

.panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}
.panel-placeholder {
  margin: auto;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.panel-content {
  display: flex;
  flex-direction: column;
}
.panel-content h3 {
  margin: 0 0 0.75rem;
  font-size: 1.4rem;
  color: var(--accent);
}
.description{
  margin: 0 0 1.25rem;
  font-size: 1.25rem;
  color: var(--text-muted);
  line-height: 1.7;
  text-align: left;
}
.panel-content img {
  width: 100%;
  height: 320px;
  object-fit:contain;
  border-radius: 8px;
  background: #190a27;		
}

.img-caption {
  margin-top: 1px;
  text-align: center;
  font-size: 1rem;
  color: #ffffff;
  font-style: italic;
}
.projects-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 900px) {
  .projects-row { grid-template-columns: 1fr; }
}

.slideshow {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  background: #1c242e;
}
.slideshow img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.slideshow img.visible {
  opacity: 1;
}

.caption {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  min-height: 1.2rem;
  text-align: center;
}

/* ---------- Contact ---------- */
.contact-card {
  max-width: 480px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 18px rgba(57, 217, 194, 0.12);
}
.contact-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 1.5rem;
  line-height: 1.7;
}
.contact-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.7rem 1.2rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  color: var(--text);
  background: none;
  text-decoration: none;
  font-size: 0.85rem;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.2s, color 0.4ss, background 0.6s;
}
.contact-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}
.copy-wrap {
  position: relative;
  display: inline-flex;
}

.copy-toast {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  background: var(--accent);
  color: var(--card);
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  white-space: nowrap;
  z-index: 10;
}
.copy-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.icon-row {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: none;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.6s;
}
.icon-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}


.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 1rem;
}
.overlay.open {
  display: flex;
}
.box {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
  max-width: 480px;
  width: 100%;
}
.box h2 {
  color: var(--accent);
  margin: 0 0 1rem;
  font-size: 1.1rem;
}
.box p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.7;
  margin: 0 0 0.9rem;
  text-align: left;
}
.close {
  position: absolute;
  top: 0.75rem;
  right: 0.9rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.3rem;
  cursor: pointer;
  line-height: 1;
}
.close:hover {
  color: var(--accent);
}


footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1rem 1.5rem;
  text-align: center;
  margin-top: 2rem;
}
.footer-socials {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.footer-socials a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8rem;
  border: 1px solid var(--border);
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  transition: color 0.2s, border-color 0.2s;
}
.footer-socials a:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.footer-bottom {
  color: var(--text-muted);
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.back-to-top {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 6px;
  padding: 0.3rem 0.7rem;
  font-size: 0.75rem;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.back-to-top:hover {
  border-color: var(--accent);
  color: var(--accent);
}
