
/* ========================================
   GAUSSVANPELT — INNER PAGES
   Modern styling for existing pages
======================================== */

:root {
  --page-bg: #1e262e;
  --page-surface: #27333e;
  --page-dark: #141b22;
  --page-red: #dc3545;
  --page-text: #f5f7fa;
  --page-muted: #aebbc7;
  --page-border: rgba(255, 255, 255, 0.1);
}

body {
  min-height: 100vh;
}

/* ========================================
   PROJECTS
======================================== */

#proj-title {
  width: min(1160px, calc(100% - 48px));
  margin: 70px auto 25px;
  color: var(--page-text);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 400;
  letter-spacing: 0.015em;
}

.cont-projs,
.cont-cert {
  width: min(1160px, calc(100% - 48px));
  height: auto;
  margin: 0 auto 55px;
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(min(240px, 100%), 1fr)
  );
  gap: 22px;
  align-items: stretch;
  justify-content: stretch;
}

/* Hide the original empty orange placeholders. */

.cont-projs + .cont-projs {
  display: none;
}

.cont-projs a.ns {
  display: block;
  color: inherit;
  text-decoration: none;
}

.cont-projs figure {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--page-surface);
  border: 1px solid var(--page-border);
  border-radius: 16px;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.cont-projs figure > * {
  grid-area: auto;
}

.cont-projs figure:hover {
  transform: translateY(-5px);
  border-color: rgba(220, 53, 69, 0.55);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.15);
}

.cont-projs figure img.box-one {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 0;
  background: var(--page-dark);
  transition: transform 0.3s ease;
}

.cont-projs figure:hover img {
  transform: scale(1.025);
}

.cont-projs figure figcaption {
  display: block;
  flex: 1;
  padding: 20px;
  clip-path: none;
  background: transparent;
  color: var(--page-text);
  font-size: 1rem;
  line-height: 1.5;
}

.cont-cert img.pic-cert-one {
  display: block;
  width: 100%;
  height: 205px;
  padding: 10px;
  border-radius: 12px;
  background: white;
  object-fit: contain;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.cont-cert img.pic-cert-one:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

/* ========================================
   ABOUT
======================================== */

.main {
  width: 100%;
  max-width: 1300px;
  height: auto;
  min-height: calc(100vh - 82px);
  margin: 0 auto;
  padding: 75px 6% 100px;
  gap: 55px;
  justify-content: center;
}

.headline {
  display: block;
  width: 100%;
  max-width: 1050px;
}

.head-intro {
  width: 100%;
  margin: 0;
  border-right: none;
  white-space: normal;
  overflow: visible;
  animation: none;
  font-size: clamp(1.9rem, 3.5vw, 3.25rem);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.intro {
  display: flex;
  flex-direction: row-reverse;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: auto;
  gap: clamp(30px, 6vw, 90px);
}

.intro-two {
  flex: 1;
  min-width: 0;
  margin: 0;
}

.about-me {
  display: block;
  width: 100%;
  margin: 0;
  color: var(--page-muted);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 400;
  line-height: 1.85;
  text-wrap: pretty;
}

.foto-about {
  width: clamp(220px, 30vw, 390px);
  height: auto;
  aspect-ratio: 1;
  border: 5px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.24);
}

.tit-dev-tools {
  margin: 32px 0 20px;
  color: var(--page-red);
  font-size: clamp(1.2rem, 2vw, 1.7rem);
}

.dev-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  padding: 0;
  font-size: 1.7rem;
  letter-spacing: normal;
  color: var(--page-text);
}

.dev-tools i {
  transition:
    color 0.25s ease,
    transform 0.25s ease;
}

.dev-tools i:hover {
  color: var(--page-red);
  transform: translateY(-4px);
}

/* ========================================
   CONTACT
======================================== */

.cont-main {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  max-width: 1250px;
  height: auto;
  min-height: calc(100vh - 82px);
  margin: 0 auto;
  padding: 90px 6%;
  gap: clamp(30px, 6vw, 100px);
}

.cont-one {
  flex: 1;
  width: auto;
  height: auto;
  min-width: 0;
  max-width: 560px;
  margin: 0;
}

.cont-tit {
  margin: 0 0 35px;
  font-size: clamp(2.7rem, 5vw, 4.7rem);
  font-weight: 400;
  line-height: 1.15;
}

.cont-one form.form-contact {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 18px;
  padding: 0;
}

.cont-one form.form-contact > .form-contact {
  padding: 0;
}

.cont-one .line {
  display: block;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 17px 18px;
  color: white;
  background: var(--page-dark);
  border: 1px solid var(--page-border);
  border-radius: 10px;
  outline: none;
  font-size: 1rem;
  font-weight: 400;
  transition:
    border-color 0.25s,
    box-shadow 0.25s;
}

.cont-one .line::placeholder {
  color: #9da9b6;
}

.cont-one .line:focus {
  border-color: var(--page-red);
  box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.1);
}

.cont-one #name,
.cont-one #email,
.cont-one #message {
  padding: 17px 18px;
}

.cont-one #message {
  min-height: 145px;
  resize: vertical;
}

.cont-one #but-submit {
  width: auto;
  min-width: 180px;
  padding: 16px 24px;
  background: var(--page-red);
  border: none;
  border-radius: 10px;
  color: white;
  font-size: 0.95rem;
  cursor: pointer;
  transition:
    background 0.3s,
    transform 0.3s;
}

.cont-one #but-submit .hello {
  color: white;
}

.cont-one #but-submit:hover {
  background: #ed4b5b;
  transform: translateY(-3px);
}

.cont-two {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  width: 350px;
  height: auto;
  padding: 35px 28px;
  border: 1px solid var(--page-border);
  border-radius: 18px;
  background: var(--page-surface);
}

.cont-info {
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 0;
}

.cont-info i {
  flex: 0 0 34px;
  color: var(--page-red);
  text-align: center;
  font-size: 1.5rem;
}

.cont-info p {
  min-width: 0;
  margin: 0;
  padding: 0;
  color: var(--page-muted);
  line-height: 1.7;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

/* ========================================
   OVERTHEWIRE
======================================== */

.over-main {
  width: 100%;
  height: auto;
  min-height: calc(100vh - 82px);
  padding: 85px 6%;
}

.over-body {
  width: 100%;
  max-width: 950px;
  margin: 0 auto;
  align-items: flex-start;
}

#over-title {
  margin: 0 0 25px;
  font-size: clamp(2.7rem, 5vw, 4rem);
  font-weight: 400;
}

#over-title-intro {
  width: 100%;
  max-width: 700px;
  margin: 0 0 45px;
  color: var(--page-muted);
  text-align: left;
  font-size: 1.1rem;
  line-height: 1.8;
}

.over-bandit {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.over-bandit h2 {
  font-size: 1.8rem;
  font-weight: 400;
}

.over-bandit a.over-link {
  color: white;
}

#over-bandit-1-3 {
  width: 150px;
  height: 105px;
  margin: 0;
  background: var(--page-surface);
  border: 1px solid var(--page-border);
  border-radius: 12px;
  transition:
    transform 0.3s,
    background 0.3s;
}

#over-bandit-1-3:hover {
  background: var(--page-red);
  transform: translateY(-4px);
}

/* ========================================
   BANDIT ARTICLES
======================================== */

#ban03-sec {
  margin: 0;
  padding: 65px 20px;
}

.ban03 {
  box-sizing: border-box;
  width: min(950px, 100%);
  padding: 50px 30px;
  background: var(--page-surface);
  border: 1px solid var(--page-border);
  border-radius: 18px;
}

.con-ban03 {
  width: 100%;
  max-width: 790px;
}

.ban-text,
.ban-list {
  color: var(--page-muted);
  font-size: 1rem;
  line-height: 1.85;
  overflow-wrap: anywhere;
}

.ban-images {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: contain;
}

/* ========================================
   RESPONSIVE LAYOUT
======================================== */

@media (max-width: 900px) {
  .intro {
    flex-direction: column-reverse;
    text-align: center;
  }

  .intro-two {
    width: 100%;
  }

  .dev-tools {
    justify-content: center;
  }

  .cont-main {
    flex-direction: column;
  }

  .cont-one,
  .cont-two {
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 600px) {
  .main,
  .cont-main,
  .over-main {
    padding: 55px 22px;
  }

  .headline {
    text-align: center;
  }

  .cont-projs,
  .cont-cert {
    width: calc(100% - 36px);
    grid-template-columns: 1fr;
    gap: 18px;
  }

  #proj-title {
    width: calc(100% - 36px);
    margin-top: 45px;
  }

  .cont-cert img.pic-cert-one {
    height: 220px;
  }

  .foto-about {
    width: min(280px, 75vw);
  }

  .cont-two {
    padding: 25px 20px;
  }

  #ban03-sec {
    padding: 30px 12px;
  }

  .ban03 {
    padding: 25px 18px;
  }

  .over-bandit a.over-link {
    flex: 1;
  }

  #over-bandit-1-3 {
    width: 100%;
  }
}


/* ==========================================
   ABOUT PAGE — RESPONSIVE TYPEWRITER
========================================== */

.main {
  height: auto;
  min-height: calc(100vh - 82px);
  padding: 65px 6% 90px;
  gap: 50px;
}

.headline {
  display: block;
  width: min(980px, 100%);
  max-width: 100%;
  margin: 0 auto;
}

.head-intro {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;

  font-size: clamp(1.55rem, 2.6vw, 2.65rem);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.02em;

  white-space: normal;
  overflow: visible;
  overflow-wrap: anywhere;

  border-right: none;
  animation: none;
}

/* Cursor displayed during typing */

.head-intro.is-typing::after {
  content: "";
  display: inline-block;
  width: 3px;
  height: 0.9em;
  margin-left: 5px;
  vertical-align: -0.1em;
  background: #dc3545;
  animation: typing-cursor 0.7s step-end infinite;
}

@keyframes typing-cursor {
  50% {
    opacity: 0;
  }
}

@media (max-width: 600px) {
  .main {
    padding: 45px 22px 65px;
    gap: 35px;
  }

  .head-intro {
    font-size: clamp(1.45rem, 5.5vw, 1.9rem);
    line-height: 1.35;
    letter-spacing: -0.015em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .head-intro.is-typing::after {
    animation: none;
  }
}
