@import url(./root.css);

*, *::before, *::after { box-sizing: border-box; }
html {
  min-height: 100%;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overflow-y: scroll;
  zoom: 1;
}

html::-webkit-scrollbar {
  display: none;
}

::selection {
  background: var(--accent);
  color: var(--btn-text);
}

body {
  margin: 0;
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.2s ease, color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

main {
  padding-inline: 18px;
}

body i {
    margin-right: 6px;
}

a {
  color: var(--accent);
}

img {
  pointer-events: none;
}

textarea::-webkit-scrollbar {
  width: 8px;
}

textarea::-webkit-scrollbar-track {
  background: var(--glass);
  border-radius: 10px;
}

textarea::-webkit-scrollbar-thumb {
  cursor: pointer;
  background: var(--accent);
  border-radius: 10px;
}

.actions-container {
  position: fixed;
  top: 20px;
  right: 0px;
  height: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 100;
}
.contain-btns {
  display: flex;
  flex-direction: row;
  gap: 10px;
}
.contain-btns a {
  text-decoration: none;
}
.theme-display {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  width: 50px;
  aspect-ratio: 1 / 1;
  padding: 8px;
  background: var(--bg);
  border: 2px solid var(--accent);
  border-radius: 20px;
  box-sizing: border-box;
}
.theme-display i {
  margin: 0 auto;
  font-size: 20px;
}
.auth-btn {
  display: flex;
  align-items: center;
  cursor: pointer;
  color: var(--text);
  padding: 20px;
  max-width: 120px;
  max-height: 50px;
  height: 100%;
  background: var(--bg);
  border: 2px solid var(--accent);
  border-right: none;
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
}
.auth-btn i {
  font-size: 18px;
  margin: 0 auto;
}

.bg-circles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}
.bg-circles span {
  position: absolute;
  display: block;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.15;
  filter: blur(80px);
  animation: float linear infinite;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, -60px) scale(1.1); }
}

.muted { color: var(--muted); }
.accent { color: var(--accent); }
.wrap { max-width: 1000px; margin: 0 auto; }

header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
  padding: 18px; 
}
.brand { display: flex; flex-direction: row; align-items: center; gap: 12px; width: 100%; }
.brand .text {
  display: flex;
  flex-direction: column;
}
.brand .text h1 {
  font-size: 20px;
}
.brand .text p {
  font-size: 18px;
}
.logo {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 16px;
  background: linear-gradient(135deg, #62e7ffff, #8f87ffff, #b15effff, #8f87ffff, #0bbef5ff);
  background-size: 200% 200%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--btn-text);
  font-weight: 800;
  font-size: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: gradientShift 5s ease infinite;
}
.logo-fallback {
  position: absolute;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--btn-text);
  z-index: 1;
}
.logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  border-radius: 16px;
  z-index: 2;
  display: block;
}
.logo:hover { transform: scale(1.1) rotate(-5deg); box-shadow: 0 4px 8px rgba(0,0,0,0.2), 0 8px 30px rgba(0,0,0,0.1); animation: anicon 0.6s ease forwards;}
@keyframes gradientShift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
.brand h1 { font-size: 16px; margin: 0; }
.brand p { font-size: 13px; margin: 0; color: var(--muted); }

nav.themes { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
nav.themes i { margin: 0; }
.theme-btn {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; border: 1px solid var(--glass-border);
  background: var(--card); cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease;
}
.theme-btn i { color: var(--text); }
.theme-btn:hover { transform: translateY(-2px) scale(1.1); box-shadow: 0 0 10px var(--accent); }
.theme-btn.active { outline: 3px solid var(--accent); }

.hero { display: grid; grid-template-columns: 1fr 280px; gap: 24px; align-items: start; margin-bottom: 32px; }

.card {
  background: var(--card);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--glass-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card .rower {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}
.card .rower .actions {
  display: flex;
  flex-direction: row;
  gap: 10px;
  font-size: 20px;
}
.card .rower .actions a {
  cursor: pointer;
  color: var(--muted);
  transition: color 0.2s ease;
}
.card .rower .actions a:hover {
  color: var(--text);
}

.card.intro { min-height: 320px; display: flex; flex-direction: column; justify-content: space-between; }
.intro h2 { margin: 0 0 8px 0; }
.intro p { margin: 0; color: var(--muted); }

.skills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.skill {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px dashed var(--glass-border);
  background: transparent;
  color: var(--muted);
  transition: transform 0.2s ease, background 0.3s ease, color 0.3s ease;
}
.skill:hover { transform: scale(1.1); background: var(--accent); color: var(--btn-text); cursor: pointer; font-weight: bold; }
.skill:hover i { color: var(--btn-text); }

.contact-small { padding: 20px; height: 100%; display: flex; flex-direction: column; gap: 12px; border: 2px solid var(--accent)}
.contact-small p { margin: 0; padding-bottom: 10px; }
.contact-small a {
  display: inline-block;
  padding: 10px;
  border-radius: 10px;
  text-decoration: none;
  background: var(--accent);
  color: var(--btn-text);
  font-weight: 600;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.contact-small a:hover { transform: scale(1.01); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-height: 100vh;
  padding-top: 20px;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;ì
}
.projects-grid::-webkit-scrollbar {
  display: none;
}
.project {
  flex: 0 0 auto;
  width: 100%;
  position: relative;
  min-height: 180px;
  padding: 16px;
  border-radius: 14px;
  background: var(--card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.project-banner {
  width: 100%;
  height: 120px;
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
}
.project-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.4s ease;
  transform-origin: center center;
  will-change: transform;
}
.project .extra {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--accent);
  color: var(--btn-text);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.project:hover { transform: translateY(-2px) scale(1.01); }
.project:hover .project-banner img { transform: scale(1.2); filter: brightness(1.1); }
.project h3 { margin: 0 0 8px 0; }
.project p { margin: 0; padding-left: 10px; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tag { font-size: 12px; padding: 6px 8px; border-radius: 999px; border: 1px solid var(--glass-border); color: var(--muted); }

.trusted-devs {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-height: 100px;
  overflow-y: auto;
  scroll-behavior: smooth;
  border-radius: 10px;
  border: 5px solid var(--glass-border);
}
.trusted-devs::-webkit-scrollbar {
  display: none;
}
.dev-card {
  border-radius: 10px;
  width: 100%;
  height: auto;
}
.dev-card .clickable {
  position: relative;
  display: flex;
  flex-direction: row;
  background: transparent;
  padding: 10px;
  width: 100%;
  height: 100%;
  align-items: center;
  overflow: hidden;
  z-index: 1;
}
.dev-card .clickable::before {
  content: "";
  position: absolute;
  border-radius: 5px;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: var(--glass-border);
  z-index: 0;
  transition: width 0.3s ease;
}
.dev-card .clickable:hover::before {
  width: 100%;
}
.dev-card .clickable > * {
  position: relative;
  z-index: 1;
}
.dev-card .clickable:hover {
  cursor: pointer;
}
.dev-card .clickable:hover .btns i {
  animation: anicon 0.6s ease forwards;
}
.clickable .avatar img {
  background: var(--accent);
  border-radius: 50%;
  border: 2px solid var(--glass-border);
  width: 42px;
  height: 42px;
}
.clickable .infos {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  margin-inline: 10px;
}
.clickable .infos .name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}
.clickable .infos .name i {
  font-size: 16px;
  margin-right: 0;
}
.clickable .infos .type {
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
}
.clickable .infos .type i {
  font-size: 12px;
  margin: 0;
}
.clickable .btns {
  display: flex;
  flex-direction: row;
  color: var(--accent);
}
.clickable .btns i {
  display: block;
  margin: 0 auto;
  font-size: 20px;
  padding-inline: 10px;
}

.btn {
  padding: 10px 16px;
  border-radius: 12px;
  border: 0;
  font-weight: 700;
  cursor: pointer;
  background: var(--accent);
  color: var(--btn-text);
  text-decoration: none;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.btn a {
  text-decoration: none;
  color: var(--btn-text);
}
.btn:hover { transform: translateY(-3px); }
.btn.secondary { background: transparent; color: var(--text); border: 1px solid var(--glass-border); }

footer { margin-top: 40px; text-align: center; font-size: 13px; color: var(--muted); padding: 12px 0; }

form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}
form input,
form textarea,
form button {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  outline: 1px solid var(--glass-border);
  font-family: inherit;
  font-size: 14px;
  background: transparent;
  color: var(--text);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
form input::placeholder,
form textarea::placeholder {
  color: rgba(var(--accent), 0.5);
}
form textarea { height: 180px; resize: none; grid-column: 1 / -1; }
form input:focus, form textarea:focus { transform: scale(1.01); box-shadow: 0 6px 15px rgba(0,0,0,0.15); outline: 1px solid var(--accent); }
form button { grid-column: 1 / -1; }
form button:hover { transform: translateY(-2px) scale(1); }

.scroll {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 8px;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  background: var(--accent);
  z-index: 999;
  transition: width 0.1s ease;
}

.divider-with-text {
  display: flex;
  font-weight: bold;
  align-items: center;
  gap: 12px;
  margin: 6 0 8px 0;
}
.divider-with-text::before,
.divider-with-text::after {
  content: "";
  flex: 1 1 0;
  height: 1px;
  background: var(--accent);
}
.divider-with-text span {
  font-size: 12px;
  color: var(--accent);
  padding: 0 6px;
  white-space: nowrap;
}
.divider-simple {
  width: 100%;
  height: 1px;
  background: var(--accent);
  margin: 6px 0 8px 0;
}
.article-divider {
  display: none;
}

#contact {
    border: 2px solid var(--accent);
}

.icanim {
  transition: transform 0.3s ease;
}
.icanim:hover,
.btn:hover .icanim,
.theme-btn:hover .icanim,
.contact-small a:hover .icanim {
  animation: anicon 0.6s ease forwards;
}

@keyframes anicon {
  0% {
    transform: scale(1) rotate(0deg) translateY(0);
  }
  40% {
    transform: scale(1.2) rotate(0deg) translateY(0);
  }
  70% {
    transform: scale(1) rotate(-10deg) translateY(-4px);
  }
  100% {
    transform: scale(1) rotate(-5deg) translateY(-2px);
  }
}

@media (max-width: 620px) { .hero { grid-template-columns: 1fr; } .projects-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 620px) { .projects-grid { grid-template-columns: 1fr; } header { flex-direction: column; align-items: flex-start; gap: 12px; width: 100%;} }
@media (max-width: 620px) { form { grid-template-columns: 1fr; } form textarea, form button { grid-column: 1 / -1; } }
@media (max-width: 620px) { nav.themes { display: flex; width: 100%; justify-content: center; gap: 8px; } .theme-btn { width: 36px; height: 36px; border-radius: 8px; } .theme-btn i { font-size: 14px; } }
@media (max-width: 620px) { .skills { width: 100%; justify-content: center; } .article-divider { display: flex; align-items: center; gap: 12px; margin: 6 0 8px 0; } }

.wave {
  display: inline-block;
  transform: rotate(-20deg);
  transform-origin: 70% 70%;
  animation: wave-hand 2s infinite ease-in-out;
}

@keyframes wave-hand {
  0%   { transform: rotate(-20deg); }
  20%  { transform: rotate(10deg); }
  40%  { transform: rotate(-10deg); }
  60%  { transform: rotate(15deg); }
  80%  { transform: rotate(0deg); }
  100% { transform: rotate(-20deg); }
}

@media (hover: none) {
.btn:hover,
.card:hover,
.skill:hover,
.theme-btn:hover,
.contact-small a:hover,
.project:hover {
    transform: none;
    box-shadow: none;
}
.btn:active {
    transform: translateY(-3px);
}
.skill:active {
    transform: scale(1.1);
    font-weight: bold;
    background: var(--accent);
    color: var(--btn-text);
}
.theme-btn:active {
    transform: translateY(-2px) scale(1.1);
}
.contact-small a:active {
    transform: scale(1.05);
}
.icanim:active,
.btn:active .icanim,
.theme-btn:active .icanim,
.contact-small a:active .icanim {
  animation: anicon 0.6s ease forwards;
}
}

.auth-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
  align-content: center;
  justify-content: center;
  z-index: 9999;
}

.auth-modal-content {
  background: var(--bg);
  color: var(--text);
  margin: 10% auto;
  padding: 20px;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  min-height: 300px;
  height: auto;
  max-height: 600px;
  border: 2px solid var(--accent);
  box-shadow: 0 0 200px 5px var(--accent);
  position: relative;
  animation: fadeIn 0.3s ease-in-out;
}

.auth-modal-content .text {
  padding: 10px;
  background: var(--glass);
  border: 2px solid var(--glass-border);
  border-radius: 20px;
}

.auth-modal-content .buttons {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  margin-block: 50px;
}

.auth-modal-content .buttons a {
  transition: all 0.2s ease-in-out;
}

.auth-modal-content .buttons a:hover {
  background: var(--glass);
  color: var(--text);
  transform: none;
}

.auth-modal-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}

.auth-modal-footer {
  display: flex;
  flex-direction: column;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.auth-close {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
  align-content: center;
  justify-content: center;
  z-index: 9999;
}

.modal-content {
  background: var(--bg);
  color: var(--text);
  margin: 10% auto;
  padding: 20px;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  height: auto;
  max-height: 600px;
  border: 2px solid var(--accent);
  box-shadow: 0 0 10px var(--shadow);
  position: relative;
  animation: fadeIn 0.3s ease-in-out;
}

.modal-content #devBio {
  padding: 10px;
  background: var(--glass);
  border: 2px solid var(--glass-border);
  border-radius: 20px;
}

.modal-content #devSkills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.modal-content #devSkills .skill {
  background: var(--glass);
  padding: 4px 8px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-size: 14px;
}

.modal-content #devSkills .skill:hover {
  background: var(--accent);
  color: var(--btn-text);
}

.modal-content #devSkills .skill i {
  all: unset;
  font-size: 18px;
}

.modal-content .buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.modal-content .show-less {
  text-decoration: underline;
  color: var(--text);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-size: 14px;
}

.modal-content .show-less:hover {
  filter: brightness(0.9);
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.modal-header img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  object-fit: cover;
}

.close {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

@keyframes fadeIn {
  from {opacity: 0; transform: scale(0.95);}
  to {opacity: 1; transform: scale(1);}
}

.halloween .halloween-decor {
  position: fixed;
  z-index: 1000;
  pointer-events: none;
}

.halloween .spiderweb {
  top: 0px;
  left: 0px;
  width: 100%;
  max-width: 120px;
  height: auto;
}

.halloween .pumpkin {
  bottom: 0;
  right: 0;
  width: 100px;
}

.popup {
  position: fixed;
  left: 50%;
  bottom: 0;
  gap: 10px;
  transform: translateX(-50%) translateY(100px);
  background: var(--bg, #000000);
  border-radius: 12px;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: none;
  border: 1px solid var(--accent);
  width: 90%;
  max-width: 400px;
  z-index: 1000;
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.5s ease, box-shadow 0.2s ease;
}

.popup:hover {
  box-shadow: 0 0 20px var(--accent);
}

.popup .close-btn {
  position: absolute;
  top: -10px;
  left: -10px;
  background: var(--accent);
  color: var(--bg, #000000);
  border: 2px solid var(--bg, #000000);
  padding: 6px 8px;
  border-radius: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, color 0.3s ease;
}

.popup .close-btn:hover {
  background: var(--bg, #000000);
  color: var(--text);
}

.popup.show {
  opacity: 1;
}

.popup.hide {
  opacity: 0;
}

.popup .text {
  flex: 1;
  margin-right: 10px;
  text-align: left;
  font-weight: 600;
  font-size: 18px;
}

.popup.final {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  bottom: 20px;
}



.main-nav {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  gap: 10px; 
}

.main-nav a {
  text-decoration: none;
  color: var(--muted); 
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 18px;
  border-radius: 12px; 
  position: relative;
  overflow: hidden;
  transition: color 0.3s ease, background-color 0.3s ease;
  z-index: 1;
}


.main-nav a:hover {
  color: var(--text); 
  background-color: var(--glass); 
}


.main-nav a::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: var(--accent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
  opacity: 0.2;
  z-index: -1;
}

.main-nav a:hover::before {
  width: 200%;
  height: 200%;
}


.main-nav a:last-child {
  background-color: var(--accent-t); 
  color: var(--accent);
  border: 1px solid var(--accent);
}

.main-nav a:last-child:hover {
  background-color: var(--accent);
  color: var(--btn-text);
}