/* =====================
   RESET & BASE
===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", sans-serif;
  background: radial-gradient(circle at bottom, #020111, #000000 70%);
  color: #ffffff;
  overflow-x: hidden;
}

/* =====================
   UNIVERSE CANVAS
===================== */
#particles {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: radial-gradient(circle at top, #0b1d3a, #000);
}

/* =====================
   HEADER
===================== */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 70px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  z-index: 1000;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo h2 {
  color: #eaeaff;
  letter-spacing: 2px;
}

/* =====================
   NAV
===================== */
.nav ul {
  display: flex;
  gap: 25px;
  list-style: none;
}

.nav a {
  color: #eaffea;
  text-decoration: none;
  font-size: 15px;
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: #00f6ff;
  transition: 0.4s;
}

.nav a:hover::after {
  width: 100%;
}

/* =====================
   HERO
===================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 70px;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.hero-content h1 {
  font-size: 48px;
}

/* =====================
   MULTICOLOUR TEXT
===================== */
.multi-text {
  font-weight: 800;
  background: linear-gradient(
    90deg,
    #00f6ff,
    #7f00ff,
    #ff0080,
    #00ffcc,
    #00f6ff
  );
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: colorFlow 6s linear infinite;
}

@keyframes colorFlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

.highlight {
  color: #00f6ff;
  text-shadow: 0 0 15px #00f6ff;
}

.hero-description {
  margin: 20px 0;
  opacity: 0.85;
}

/* =====================
   BUTTON
===================== */
.btn-primary {
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(90deg, #00f6ff, #0066ff);
  color: #000;
  text-decoration: none;
  border-radius: 30px;
  font-weight: bold;
  box-shadow: 0 0 20px rgba(0,246,255,0.6);
  transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 0 40px rgba(0,246,255,1);
}

/* =====================
   FLOATING CARD
===================== */
.floating-card {
  width: 160px;
  height: 160px;
  border-radius: 20px;
  background: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
  color: #00f6ff;
  box-shadow: 0 0 30px rgba(0,246,255,0.5);
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

/* =====================
   SECTIONS
===================== */
section {
  padding: 100px 0;
}

.section-title {
  text-align: center;
  font-size: 36px;
  margin-bottom: 60px;
}

.section-title::after {
  content: "";
  width: 80px;
  height: 3px;
  background: #00f6ff;
  display: block;
  margin: 15px auto 0;
}

/* =====================
   CARDS
===================== */
.categoria,
.categoria-habilidade,
.project-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 15px;
  padding: 20px;
  transition: transform 0.4s, box-shadow 0.4s;
}

.categoria:hover,
.categoria-habilidade:hover,
.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 30px rgba(0,246,255,0.5);
}

/* =====================
   SKILLS TAGS
===================== */
.skill-tag,
.tech-tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  margin: 5px;
  background: rgba(0,246,255,0.15);
  border: 1px solid #00f6ff;
  font-size: 13px;
}

/* =====================
   PROJECT GRID
===================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
}

/* =====================
   IMAGE SIZE FIX (IMPORTANT)
===================== */
.small-img {
  width: 30px !important;
  height: auto !important;
  max-width: none !important;
  display: block;
  padding: 30px;
  margin: 20px;
}

/* Project images */
.project-card img {
  width: 80px;
  height: auto;
  object-fit: contain;
}

/* =====================
   FOOTER
===================== */
.footer {
  margin-top: 80px;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 40px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-links a {
  display: block;
  color: #00f6ff;
  text-decoration: none;
  margin: 5px 0;
}

/* =====================
   SCROLL ANIMATION
===================== */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: 1s;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* =====================
   RESPONSIVE
===================== */
@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-image {
    display: flex;
    justify-content: center;
  }

  .nav ul {
    gap: 15px;
  }
}
/* =====================
   RIGHT IMAGE
===================== */
.hero-right {
  display: flex;
  justify-content: center;
}

.image-frame {
  padding: 6px;
  border-radius: 30px;
  background: linear-gradient(
    135deg,
    #7f5cff,
    #5eead4
  );
  box-shadow: 0 0 40px rgba(127,92,255,0.6);
}

.image-frame img {
  width: 280px;
  height: auto;
  border-radius: 24px;
  display: block;
  filter: grayscale(100%);
}

/* =====================
   RESPONSIVE
===================== */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .buttons {
    justify-content: center;
  }

  .tech {
    justify-content: center;
  }

  .hero-left h1 {
    font-size: 42px;
  }
}
.typing-text {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
}

.highlight {
  color: #ffffff;
  border-right: 3px solid #00eaff;
  padding-right: 6px;
  animation: blink 0.7s infinite;
}

/* Cursor blink */
@keyframes blink {
  0% { border-color: transparent; }
  50% { border-color: #00eaff; }
  100% { border-color: transparent; }
}

/* Responsive */
@media (max-width: 768px) {
  .typing-text {
    font-size: 2.2rem;
  }
}
/* =====================
   CONTACT SECTION
===================== */
.contato {
  position: relative;
  padding: 120px 0;
  background: ;
}

.contato .container {
  max-width: 800px;
  margin: auto;
  text-align: center;
}

/* Title already exists (.section-title) */
.contato .section-title {
  margin-bottom: 40px;
}

/* Contact Card */
.contact-card {
  background: ;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 40px;
  backdrop-filter: blur(12px);
  box-shadow: ;
}

/* Text */
.contact-card p {
  font-size: 16px;
  opacity: 0.85;
  margin-bottom: 30px;
}

/* Contact Info */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 15px;
}

.contact-item i {
  color: #00f6ff;
  font-size: 18px;
  text-shadow: 0 0 10px #00f6ff;
}

.contact-item a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s;
}

.contact-item a:hover {
  color: #00f6ff;
}

/* CTA Button */
.contact-btn {
  margin-top: 35px;
  display: inline-block;
  padding: 14px 36px;
  border-radius: 40px;
  background: linear-gradient(90deg, #00f6ff, #0066ff);
  color: #000;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 0 25px rgba(0,246,255,0.6);
  transition: transform 0.3s, box-shadow 0.3s;
}

.contact-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 0 45px rgba(0,246,255,1);
}

/* =====================
   RESPONSIVE CONTACT
===================== */
@media (max-width: 768px) {
  .contact-card {
    padding: 30px 20px;
  }

  .contact-item {
    font-size: 14px;
  }
}
/* =====================
   TOGGLE BUTTON
===================== */
.toggle-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toggle-input {
  display: none;
}

.toggle-label {
  width: 55px;
  height: 28px;
  background: rgba(0,246,255,0.2);
  border-radius: 50px;
  display: flex;
  align-items: center;
  padding: 3px;
  cursor: pointer;
  transition: background 0.4s;
  box-shadow: 0 0 15px rgba(0,246,255,0.3);
}

.toggle-label:hover {
  background: rgba(0,246,255,0.4);
  box-shadow: 0 0 25px rgba(0,246,255,0.6);
}

.toggle-ball {
  width: 22px;
  height: 22px;
  background: #00f6ff;
  border-radius: 50%;
  transform: translateX(0);
  transition: transform 0.4s, background 0.4s;
  box-shadow: 0 0 10px #00f6ff;
}

/* When toggled */
.toggle-input:checked + .toggle-label .toggle-ball {
  transform: translateX(27px);
  background: #ff6a00;
  box-shadow: 0 0 15px #ff6a00;
}

.toggle-input:checked + .toggle-label {
  background: rgba(255,106,0,0.2);
  box-shadow: 0 0 20px rgba(255,106,0,0.6);
}
/* =====================
   MOBILE TOGGLE MENU
===================== */
.menu-toggle {
  display: none;
  width: 32px;
  height: 24px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 1100;
}

.menu-toggle span {
  height: 3px;
  width: 100%;
  background: #00f6ff;
  border-radius: 4px;
  transition: 0.4s;
  box-shadow: 0 0 10px #00f6ff;
}

/* Toggle animation */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* =====================
   MOBILE NAV STYLE
===================== */
@media (max-width: 900px) {
  .menu-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(0,0,0,0.92);
    backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: right 0.5s ease;
  }

  .nav.active {
    right: 0;
  }

  .nav ul {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }

  .nav a {
    font-size: 22px;
    text-transform: uppercase;
    letter-spacing: 2px;
  }
}
/* ===== BASE ===== */
body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  background: radial-gradient(circle at bottom, #0a0018, #020014 70%);
  color: #ffffff;
  overflow-x: hidden;
}

/* ===== CANVAS ===== */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
}

/* ===== ANIMATED GRADIENT LAYER ===== */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(
    130deg,
    rgba(60, 0, 120, 0.55),
    rgba(20, 10, 80, 0.55),
    rgba(10, 40, 120, 0.45)
  );
  animation: deepFlow 18s ease-in-out infinite;
  z-index: -2;
}

@keyframes deepFlow {
  0% {
    transform: translateX(0) translateY(0);
    filter: hue-rotate(0deg);
  }
  50% {
    transform: translateX(-2%) translateY(2%);
    filter: hue-rotate(15deg);
  }
  100% {
    transform: translateX(0) translateY(0);
    filter: hue-rotate(0deg);
  }
}