@import url('./CSS/navbar.css');
@import url('./CSS/about.css');
@import url('./CSS/contact.css');
@import url('./CSS/overthewire.css');
@import url('./Bandit/Bandit-CSS/bandit03.css');
@import url('./Bandit/Bandit-CSS/bandit06.css');

:root {
  --bg: #1e262e;
  --bg-deep: #141b22;
  --bg-card: #27333e;
  --accent: #dc3545;
  --accent-hover: #f04b5c;
  --white: #ffffff;
  --muted: #aab4bf;
  --light-bg: #f6f7f8;
}

* {
  box-sizing: border-box;
  font-family: "Righteous", sans-serif;
}


html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
  margin: 0;
  padding: 0;
}

html, body {
  overflow-x: hidden;
}

::selection {
  background: var(--accent);
  color: white;
}

.hello {
  color: var(--accent);
}

a {
  padding: 0;
  color: white;
  text-decoration: none;
}

/* ==========================================
   NAVBAR
========================================== */

header {
  position: sticky;
  top: 0;
  z-index: 9999;
}

.nav-content {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  min-height: 70px;
  padding: 0 5%;
  background: rgba(14, 20, 26, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.navbar, .nav-content, .qa-navlist, .dropdown {
  overflow: visible;
}

.navbar {
  position: relative;
}

.logo,
.alt-nav {
  margin: 0;
}

.logo {
  width: 52px;
  height: 52px;
}

img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.logo img {
  width: 50px;
  height: 50px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  object-fit: cover;
  transition: border-color 0.3s, transform 0.3s;
}

.logo img:hover {
  border-color: var(--accent);
  transform: rotate(-8deg);
}

.qa-navlist {
  width: auto;
  gap: 8px;
}

.dropdown .dropbtn {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.nav-content a, .dropdown .dropbtn {
  font-size: 18px;
  transition: color 0.25s, background 0.25s;
}

.qa-navlist > a,
.dropdown .dropbtn {
  padding: 12px 17px;
  border-radius: 8px;
}

.qa-navlist > a:hover,
.dropdown:hover .dropbtn,
.dropdown:focus-within .dropbtn {
  color: var(--accent);
  background: rgba(220, 53, 69, 0.08);
}

.dropdown {
  position: relative;
  flex-shrink: 0;
  overflow: visible;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 190px;
  padding: 8px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  overflow: hidden;
}

.dropdown-content a {
  display: block;
  padding: 13px 15px;
  color: #ffffff;
  background: transparent;
  border-radius: 8px;
  font-size: 14px;
  white-space: nowrap;
  transition:
    background 0.25s ease,
    color 0.25s ease;
}

.dropdown-content a:hover,
.dropdown-content a:focus-visible {
  background: rgba(220, 53, 69, 0.15);
  color: #f04b5c;
}

.dropdown-content a:hover {
  background: rgba(220, 53, 69, 0.15);
}

.dropdown:focus-within .dropdown-content {
  display: block;
}

.dropdown:hover > .dropdown-content,
.dropdown:focus-within > .dropdown-content {
  display: block;
}

.alt-nav {
  background: var(--accent);
  border-radius: 9px;
  height: auto;
  transition: background 0.3s, transform 0.3s;
}

.alt-nav a {
  display: block;
  padding: 12px 20px;
}

.alt-nav:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.alt-nav a:hover {
  background: transparent;
}

/* ==========================================
   HERO — ORIGINAL DESIGN, REFINED
========================================== */

.firstsec {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: calc(100svh - 82px);
  height: auto;
  overflow: hidden;
  background:
    radial-gradient(
      ellipse at 85% 35%,
      rgba(220, 53, 69, 0.09),
      transparent 45%
    ),
    radial-gradient(
      ellipse at 15% 90%,
      rgba(84, 116, 143, 0.12),
      transparent 55%
    ),
    var(--bg);
}

.firstsec::after {
  content: "";
  position: absolute;
  right: -180px;
  top: 15%;
  width: 480px;
  height: 480px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 50%;
  box-shadow:
    0 0 0 75px rgba(255, 255, 255, 0.012),
    0 0 0 150px rgba(255, 255, 255, 0.008);
  pointer-events: none;
}

.cont {
  position: relative;
  z-index: 1;
  flex: 1;
  height: auto;
  min-height: 520px;
  padding: 100px 9% 55px;
  justify-content: center;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0;
  color: white;
}

.cont-prin {
  max-width: 1080px;
}

.cont .cont-prin p {
  font-size: clamp(2.7rem, 5.3vw, 5.7rem);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.025em;
  margin: 0;
}

.cont .cont-prin .hello {
  display: inline-block;
  margin-bottom: 10px;
}

.cont-sec {
  max-width: 620px;
  margin-top: 28px;
  padding-left: 22px;
  border-left: 3px solid var(--accent);
}

.cont-sec p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.15vw, 1.1rem);
  line-height: 1.8;
  letter-spacing: 0.01em;
}

/* ==========================================
   EXPERIENCE AND PROJECT COUNTERS
========================================== */

.contFoot {
  position: relative;
  z-index: 1;
  gap: 20px;
  padding: 0 9% 65px;
  display: flex;
  color: white;
}

.firstFoot,
.secFoot {
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 20px 28px;
  min-width: 210px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    background 0.3s ease;
}

.firstFoot:hover,
.secFoot:hover {
  transform: translateY(-5px);
  border-color: rgba(220, 53, 69, 0.45);
  background: rgba(255, 255, 255, 0.06);
}

.contFoot h5 {
  margin: 0;
  font-size: 3.3rem;
  line-height: 1;
  font-weight: 400;
}

.contFoot p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.con-type {
  width: 550px;
  height: auto;
  margin: 0;
  border-radius: 0;
}

/* ==========================================
   SKILLS — KEEP THE ANIMATED SPHERE
========================================== */

.second {
  height: auto;
  min-height: 480px;
  padding: 75px 9%;
  gap: 60px;
  justify-content: space-between;
  background: var(--light-bg);
  color: var(--bg-deep);
  display: flex;
  flex-direction: row;
  align-items: center;
}

.skills {
  width: 45%;
  max-width: 500px;
}

.skills h2 {
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 400;
  margin: 0 0 22px;
  line-height: 1.1;
}

.skills p {
  max-width: 440px;
  margin: 0;
  color: #67727c;
  font-size: 1.08rem;
  line-height: 1.85;
}

.sphere {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45%;
  min-height: 340px;
}

.tagcloud {
  color: var(--accent);
  font-size: 1rem;
}

.tagcloud--item {
  cursor: default;
  transition: color 0.25s;
}

.tagcloud--item:hover {
  color: var(--bg-deep);
}

/* ==========================================
   DEVELOPMENT AND CYBERSECURITY
========================================== */

.third {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: white;
  height: auto;
  padding: 105px 6%;
  gap: 30px;
  background:
    linear-gradient(
      180deg,
      var(--bg) 0%,
      #18212a 100%
    );
}

.type1,
.type2 {
  display: flex;
  flex-direction: row;
  width: min(1160px, 100%);
  min-height: 330px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.13);
  transition:
    transform 0.35s ease,
    border-color 0.35s ease;
}

.type1:hover,
.type2:hover {
  transform: translateY(-5px);
  border-color: rgba(220, 53, 69, 0.3);
}

.typeimg {
  display: block;
  width: 45%;
  min-height: 330px;
  height: auto;
  object-fit: cover;
  border-radius: 0;
  transition: filter 0.4s;
}

.type1:hover .typeimg,
.type2:hover .typeimg {
  filter: contrast(1.08) brightness(1.06);
}

.text-type {
  display: flex;
  align-items: center;
  text-align: left;
  width: 55%;
  padding: clamp(28px, 4.5vw, 65px);
  color: #d7dfe6;
  font-size: clamp(0.95rem, 1.15vw, 1.1rem);
  font-weight: 400;
  line-height: 1.85;
  letter-spacing: 0.015em;
}

/* ==========================================
   SUBSCRIPTION SECTION
========================================== */

.fourth {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 95px 6%;
  background: var(--light-bg);
  color: var(--bg-deep);
}

.four {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  width: min(760px, 100%);
  padding: 0;
  background: transparent;
}

.subs {
  font-size: clamp(2.9rem, 5vw, 4.5rem);
  font-weight: 400;
  line-height: 1.2;
  margin-top: 0;
  margin-bottom: 0;
}

.mes {
  margin-bottom: 0;
  text-align: center;
  margin-top: 15px;
  color: #66727d;
  font-size: 1.05rem;
  line-height: 1.6;
}

.email-input {
  display: flex;
  width: min(560px, 100%);
  margin-top: 32px;
  flex-direction: row;
  align-items: stretch;
  gap: 10px;
}

.email {
  flex: 1;
  min-width: 0;
  width: auto;
  height: 55px;
  margin: 0;
  padding: 0 18px;
  background: white;
  border: 1px solid #d5dae0;
  border-radius: 9px;
  font-size: 0.9rem;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.email:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.1);
}

.email-butt {
  height: 7.52vh;
  border: 1px solid black;
  border-left: 0;
  background: #DC3545;
  cursor: pointer;
}

#join {
  width: auto;
  height: 55px;
  padding: 0 28px;
  border: none;
  border-radius: 9px;
  background: var(--accent);
  color: white;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

#join:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

#thanks {
  display: none;
  color: var(--accent);
}

/* ==========================================
   FOOTER
========================================== */

footer {
  background: var(--bg-deep);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
  font-size: 3rem;
  min-height: 120px;
  height: auto;
  padding: 25px 6%;
  gap: 25px;
}

.foot-conta {
  display: flex;
  justify-content: center;
  align-items: center;
  width: auto;
  font-size: 0.82rem;
}

.img-foot {
  width: 60px;
  height: 60px;
  padding: 5px;
  margin-right: 10px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.foot-text {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.5;
  text-align: center;
}

.foot-social {
  display: flex;
  font-size: 1.5rem;
  gap: 10px;
}

.foot-social a {
  padding: 0;
}

.foot-soc-img {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  transition:
    transform 0.3s,
    color 0.3s,
    border-color 0.3s;
}

.foot-soc-img:hover {
  transform: translateY(-4px);
  color: var(--accent);
  border-color: var(--accent);
}

/* ==========================================
   RESPONSIVENESS
========================================== */

@media (max-width: 900px) {
  .cont {
    padding: 90px 7% 50px;
  }

  .contFoot {
    padding: 0 7% 50px;
  }

  .second {
    flex-direction: column;
    gap: 20px;
    padding: 75px 7%;
  }

  .skills {
    width: 100%;
    max-width: 600px;
    text-align: center;
  }

  .skills p {
    max-width: none;
  }

  .sphere {
    width: 100%;
    min-height: 340px;
  }

  .type1,
  .type2 {
    min-height: 0;
  }

  .text-type {
    padding: 30px;
  }
}

@media (max-width: 700px) {
  .nav-content {
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 5%;
  }

  .qa-navlist {
    order: 3;
    width: 100%;
    flex-wrap: wrap;
    gap: 0;
  }

  .qa-navlist > a,
  .dropdown .dropbtn {
    padding: 10px;
    font-size: 12px;
  }

  .alt-nav a {
    padding: 10px 15px;
    font-size: 12px;
  }

  .dropdown-content {
    left: auto;
    right: 0;
    min-width: 165px;
  }

  .firstsec {
    min-height: auto;
  }

  .firstsec::after {
    opacity: 0.35;
  }

  .cont {
    min-height: 500px;
    padding: 85px 6% 35px;
  }

  .cont .cont-prin p {
    font-size: clamp(2.3rem, 8vw, 3.7rem);
    letter-spacing: -0.02em;
  }

  .cont-sec {
    margin-top: 25px;
    padding-left: 15px;
  }

  .contFoot {
    flex-wrap: wrap;
    gap: 12px;
    padding: 0 6% 45px;
  }

  .firstFoot,
  .secFoot {
    flex: 1;
    min-width: 135px;
    padding: 18px;
  }

  .contFoot h5 {
    font-size: 2.6rem;
  }

  .type1,
  .type2 {
    flex-direction: column;
  }

  .type2 {
    flex-direction: column-reverse;
  }

  .typeimg {
    width: 100%;
    height: 250px;
    min-height: 0;
  }

  .text-type {
    width: 100%;
    padding: 30px 25px;
    font-size: 0.95rem;
  }

  .third {
    padding: 65px 5%;
  }

  .fourth {
    padding: 75px 6%;
  }

  .email-input {
    flex-direction: column;
  }

  .email,
  #join {
    width: 100%;
  }

  .foot {
    flex-direction: column;
    gap: 15px;
    padding: 30px 6%;
  }

  .foot-conta {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
