
/* ===========================
   VARIABLES & THEME
   =========================== */

:root {
    --primary: oklch(0.65 0.25 260);
    --primary-foreground: oklch(0.95 0.01 65);
    --background: oklch(0.08 0.005 285.823);
    --foreground: oklch(0.92 0.01 65);
    --card: oklch(0.15 0.008 285.885);
    --card-foreground: oklch(0.92 0.01 65);
    --border: oklch(1 0 0 / 12%);
    --input: oklch(1 0 0 / 18%);
    --ring: oklch(0.65 0.25 260);
    --radius: 0.65rem;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===========================
   RESET & BASE STYLES
   =========================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    overflow-x: clip;
    width: 100%;
    position: relative;
    margin: 0;
    padding: 0;
}

body.dark {
    background-color: var(--background);
    color: var(--foreground);
}

/* ===========================
   BACKGROUND LAYER
   =========================== */

.bg-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.bg-layer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13, 27, 42, 0.85) 0%, rgba(30, 41, 59, 0.9) 100%);
    pointer-events: none;
}

/* ===========================
   CONTENT WRAPPER
   =========================== */

.content {
    position: relative;
    z-index: 10;
}

/* ===========================
   CONTAINER
   =========================== */

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    box-sizing: border-box;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* ===========================
   GLASSMORPHISM EFFECTS
   =========================== */

.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1.5rem;
}

.glass-sm {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 1rem;
}

.glass-lg {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 2rem;
}

/* ===========================
   HEADER/NAVIGATION
   =========================== */

.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 50;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .header-inner {
        height: 5rem;
        padding: 0 2rem;
    }
}

/* Brand Logo */
.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: var(--transition);
}

.brand-logo {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    transition: var(--transition);
}

.brand:hover .brand-logo {
    box-shadow: 0 0 20px rgba(102, 153, 255, 0.4);
}

.brand-text {
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, #6699ff, #4488ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: none;
}

@media (min-width: 640px) {
    .brand-text {
        display: inline;
    }
}

/* Desktop Navigation */
.nav {
    display: none;
    align-items: center;
    gap: 0.5rem;
}

@media (min-width: 768px) {
    .nav {
        display: flex;
    }
}

.nav-link {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

/* CV Button Wrapper */
.btn-cv-link {
    display: none;
    text-decoration: none;
}

@media (min-width: 640px) {
    .btn-cv-link {
        display: block;
    }
}

/* Download Button (Tsiangana) */
.botao {
  width: 125px;
  height: 45px;
  border-radius: 20px;
  border: none;
  box-shadow: 1px 1px rgba(107, 221, 215, 0.37);
  padding: 5px 10px;
  background-color: rgb(59, 190, 230);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-weight: 505;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  filter: drop-shadow(0 0 10px rgba(59, 190, 230, 0.568));
  transition: 0.5s linear;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.botao .mysvg {
  display: none;
}

.botao:hover {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  transition: 0.5s linear;
}

.botao:hover .texto {
  display: none;
}

.botao:hover .mysvg {
  display: inline;
}

.botao:hover::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 3px;
  background-color: rgb(59, 190, 230);
  margin-left: 0px;
  animation: animate 0.9s linear infinite;
  bottom: 15px;
}

.botao:hover::before {
  content: "";
  position: absolute;
  top: -3px;
  left: -3px;
  width: calc(100% + 6px);
  height: calc(100% + 6px);
  border: 3.5px solid transparent;
  border-top: 3.5px solid #fff;
  border-right: 3.5px solid #fff;
  border-radius: 50%;
  animation: animateC 2s linear infinite;
  box-sizing: border-box;
}

@keyframes animateC {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes animate {
  0% { transform: translateY(0); }
  100% { transform: translateY(10px); opacity: 0; }
}

/* Hamburger Menu */
.hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

@media (min-width: 768px) {
    .hamburger {
        display: none;
    }
}

.hamburger:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
}

/* Mobile Navigation */
.nav-mobile {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    flex-direction: column;
    gap: 0;
    animation: slideDown 0.3s ease-out;
}

.nav-mobile.active {
    display: flex;
}

@media (min-width: 768px) {
    .nav-mobile {
        display: none !important;
    }
}

.nav-link-mobile {
    display: block;
    padding: 0.75rem 1rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.nav-link-mobile:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-left-color: #6699ff;
}

/* ===========================
   HERO SECTION
   =========================== */

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 5rem;
    padding-bottom: 2rem;
}

.hero-grid {
    display: flex;
    flex-direction: column-reverse;
    gap: 3rem;
    align-items: center;
    text-align: center;
}

@media (min-width: 768px) {
    .hero-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        text-align: left;
    }
}

.hero-content {
    animation: slideInLeft 0.6s ease-out forwards;
}

.hero-title {
    font-size: clamp(2rem, 8vw, 3.75rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1.5px;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: clamp(2.8rem, 9vw, 4.375rem);
        line-height: 0.95;
        margin-bottom: 1rem;
    }
}

.text-gradient {
    background: linear-gradient(135deg, #6699ff, #4488ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 700;
    margin-bottom: 1.25rem;
    letter-spacing: -0.5px;
}

@media (max-width: 768px) {
    .hero-subtitle {
        font-size: 0.95rem;
        line-height: 1.4;
        margin-bottom: 0.75rem;
    }
}

.hero-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 2.5rem;
    line-height: 1.8;
    font-weight: 400;
}

@media (max-width: 768px) {
    .hero-description {
        width: 90%;
        max-width: 340px;
        margin: 0 auto 2rem auto;
        font-size: 0.9rem;
        line-height: 1.6;
        text-wrap: balance;
    }
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: center;
}

@media (min-width: 640px) {
    .hero-cta {
        flex-direction: row;
        justify-content: center;
    }
}

@media (min-width: 768px) {
    .hero-cta {
        justify-content: flex-start;
    }
}

.hero-image {
    animation: slideInRight 0.6s ease-out forwards;
    animation-delay: 0.2s;
}

.hero-image .glass-lg {
    padding: 0.25rem;
    overflow: hidden;
}

.profile-img {
    width: 100%;
    height: auto;
    max-width: 400px;
    border-radius: 1.75rem;
    object-fit: cover;
    aspect-ratio: 1;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    display: block;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .profile-img {
        max-width: 320px; /* Aumentado para melhor visualização */
    }
}

@media (max-width: 480px) {
    .profile-img {
        max-width: 260px; /* Aumentado para melhor visualização */
    }
}


.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: none;
}

.scroll-indicator i {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ===========================
   BUTTONS
   =========================== */

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
}

.btn-primary:hover {
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 20px rgba(102, 153, 255, 0.3);
    transform: translateY(-2px);
}

/* ===========================
   SOCIAL LINKS
   =========================== */

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

@media (min-width: 768px) {
    .social-links {
        justify-content: flex-start;
    }
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.75rem;
    color: white;
    text-decoration: none;
    font-size: 1.25rem;
    transition: var(--transition);
}

.social-icon:hover {
    box-shadow: 0 0 20px rgba(102, 153, 255, 0.3);
    transform: translateY(-2px);
}

/* ===========================
   FEATURES SECTION
   =========================== */

.features-section {
    padding: 4rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2rem;
    transition: var(--transition);
}

.feature-card:hover {
    box-shadow: 0 0 30px rgba(102, 153, 255, 0.2);
    transform: translateY(-4px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
    color: #6699ff;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    background: rgba(102, 153, 255, 0.1);
    border-radius: 0.75rem;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
}

.feature-desc {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.95rem;
    line-height: 1.6;
    font-weight: 400;
}

/* ===========================
   SECTION STYLES
   =========================== */

.section-padding {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 3.5rem;
    letter-spacing: -1px;
    line-height: 1.2;
}

/* ===========================
   ABOUT SECTION (HOLO)
   =========================== */

.about-holo-section {
  position: relative;
  width: 100%;
  min-height: 400px;
  background: #000;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  margin-top: 2rem;
  border: 1px solid rgba(0, 162, 255, 0.2);
}

@media (max-width: 768px) {
  .about-holo-section {
    padding: 30px 15px;
    min-height: auto;
  }
  .holo-content-wrapper {
    padding: 20px !important;
  }
  .holo-content-wrapper .about-text {
    font-size: 0.95rem !important;
  }
  .tech-badges img {
    height: 25px;
  }
}

.stars-container {
  position: absolute;
  width: 100%;
  height: 100%;
  perspective: 500px;
  transform-style: preserve-3d;
  pointer-events: none;
}

.star-layer {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 0.8;
}

.star-layer:nth-child(1) { transform: translateZ(-50px); }
.star-layer:nth-child(2) { transform: translateZ(-100px); opacity: 0.6; }
.star-layer:nth-child(3) { transform: translateZ(-200px); opacity: 0.4; }


.star-layer::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(1px 1px at 10% 10%, white 100%, transparent),
    radial-gradient(1px 1px at 20% 20%, white 100%, transparent),
    radial-gradient(2px 2px at 30% 30%, white 100%, transparent),
    radial-gradient(1px 1px at 40% 40%, white 100%, transparent),
    radial-gradient(2px 2px at 50% 50%, white 100%, transparent);
}

.grid-plane {
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  background-image: linear-gradient(rgba(0, 162, 255, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 162, 255, 0.15) 1px, transparent 1px);
  background-size: 40px 40px;
  transform: perspective(500px) rotateX(60deg);
  transform-origin: center;
  animation: none;
  opacity: 0.3;
  pointer-events: none;
}


.holo-content-wrapper {
  position: relative;
  z-index: 20;
  width: 100%;
  max-width: 800px;
  background: rgba(0, 24, 55, 0.7);
  backdrop-filter: blur(12px);
  border: 2px solid rgba(0, 162, 255, 0.5);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 0 20px rgba(0, 162, 255, 0.3), inset 0 0 15px rgba(0, 162, 255, 0.2);
  color: #fff;
}

.holo-title-small {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #00a2ff;
  margin-bottom: 1rem;
  display: block;
}

.corner-accent {
  position: absolute;
  width: 20px;
  height: 20px;
  border-style: solid;
  border-width: 3px;
  border-color: rgba(0, 162, 255, 0.8);
}

.corner-accent:nth-child(1) { top: -5px; left: -5px; border-right: none; border-bottom: none; }
.corner-accent:nth-child(2) { top: -5px; right: -5px; border-left: none; border-bottom: none; }
.corner-accent:nth-child(3) { bottom: -5px; left: -5px; border-right: none; border-top: none; }
.corner-accent:nth-child(4) { bottom: -5px; right: -5px; border-left: none; border-top: none; }

.scan-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 162, 255, 0.8), transparent);
  animation: none;
  opacity: 0.5;
}


.data-chips-container {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.data-chip-mini {
  padding: 4px 10px;
  background: rgba(0, 162, 255, 0.1);
  border: 1px solid rgba(0, 162, 255, 0.4);
  border-radius: 4px;
  font-size: 10px;
  font-family: monospace;
  color: #00a2ff;
}

/* ===========================
   SKILLS CARDS (UIVERSE)
   =========================== */

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 2rem 0;
}

.card {
  width: 250px;
  height: 150px;
  padding: 0.5rem;
  background: rgba(198, 198, 198, 0.15);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  border-bottom: 3px solid rgba(255, 255, 255, 0.2);
  border-left: 2px rgba(255, 255, 255, 0.3) outset;
  box-shadow: -20px 30px 20px rgba(0, 0, 0, 0.2);
  transform: skewX(10deg);
  transition: all .4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
  color: white;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  position: relative;
}

.card:hover, .card.active {
  height: 300px;
  transform: skew(0deg) scale(1.05);
  background: rgba(198, 198, 198, 0.25);
  z-index: 10;
}

.align {
  padding: 0.5rem 1rem;
  display: flex;
  flex-direction: row;
  gap: 5px;
  align-self: flex-start;
}

.red, .yellow, .green {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.red { background-color: #ff605c; }
.yellow { background-color: #ffbd44; }
.green { background-color: #00ca4e; }

.card-icon-container {
  text-align: center;
  margin: 1rem 0;
  font-size: 3rem;
  color: #6699ff;
  transition: .4s;
}

.card:hover .card-icon-container, .card.active .card-icon-container {
  transform: scale(0.8);
  margin: 0.5rem 0;
}

.card h2 {
  text-align: center;
  margin: 0.5rem;
  color: rgb(218, 244, 237);
  font-size: 1.2rem;
}

.card .content-text {
  opacity: 0;
  transform: translateY(20px);
  transition: all .4s ease;
  padding: 0 1.5rem;
  text-align: center;
  pointer-events: none;
}

.card:hover .content-text, .card.active .content-text {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.card .content-text p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}

.card .tech-badges-mini {
  margin-top: 1rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

@media (max-width: 768px) {
  .card { transform: skewX(0deg); width: 100%; max-width: 320px; }
}

/* ===========================
   PORTFOLIO SECTION
   =========================== */

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.project-card {
    overflow: hidden;
    transition: var(--transition);
}

.project-card:hover {
    box-shadow: 0 0 30px rgba(102, 153, 255, 0.2);
    transform: translateY(-4px);
}

.project-image {
    display: block;
    width: 100%;
    height: 12rem;
    object-fit: cover;
    object-position: center;
    transition: transform 0.35s ease;
}

.project-card:hover .project-image {
    transform: scale(1.1);
}

.project-body {
    padding: 2rem;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
}

.project-desc {
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    line-height: 1.6;
    font-weight: 400;
}

.project-link {
    color: #6699ff;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.project-link:hover {
    color: #88bbff;
}

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

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-info {
    padding: 2.5rem;
}

.contact-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 2rem;
    letter-spacing: -0.5px;
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-item {
    margin-bottom: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.contact-label {
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.contact-link {
    color: #6699ff;
    text-decoration: none;
    transition: var(--transition);
}

.contact-link:hover {
    color: #88bbff;
}

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

.contact-form-wrapper {
    padding: 2.5rem;
}

.form-status {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 0.75rem;
    display: none;
    animation: slideDown 0.3s ease-out;
}

.form-status.show {
    display: block;
}

.form-status.success {
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.5);
    color: #86efac;
}

.form-status.error {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.5);
    color: #fca5a5;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.form-input {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 153, 255, 0.1);
}

.form-textarea {
    resize: none;
    min-height: 8rem;
}

.form-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

@media (min-width: 640px) {
    .form-actions {
        flex-direction: row;
    }
}

.form-actions .btn {
    flex: 1;
}

/* ===========================
   FOOTER
   =========================== */

.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    padding: 2rem 0;
}

.footer-text {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

/* ===========================
   ANIMATIONS
   =========================== */

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }

/* Page Loader */
.loader-wrapper {
    position: fixed;
    inset: 0;
    background: #08090a;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s;
}

/* Scroll Progress Bar */
.scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 1000;
    pointer-events: none;
}

.scroll-progress-bar {
    height: 100%;
    background: linear-gradient(to right, #6699ff, #4488ff);
    width: 0%;
    transition: width 0.1s ease-out;
}


/* ===========================
   PROJECTS BUTTON (ANIMATED SVG)
   =========================== */

.Projects-Button-Link {
    text-decoration: none;
    display: inline-block;
}

.Projects-Button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    gap: 10px;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    background: linear-gradient(120deg, #6699ff, #4488ff);
    transition: all 0.3s;
    box-shadow: 0px 10px 10px rgba(102, 153, 255, 0.166);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    text-align: center;
    height: auto;
    width: fit-content;
}

.IconContainer {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    position: relative;
}

.svgBG {
    width: 25px;
    height: auto;
}

.svgFG {
    width: 9px;
    height: auto;
    z-index: 2;
    position: absolute;
}

.Projects-Button .text {
    color: rgb(240, 240, 240);
    font-weight: 500;
    font-size: 16px;
}

.Projects-Button:hover .svgFG {
    animation: clockwise 2s linear infinite;
}

.Projects-Button:hover .svgBG {
    animation: anti-clockwise 2s linear infinite;
}

@keyframes clockwise {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes anti-clockwise {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(-360deg);
    }
}

.Projects-Button:hover {
    background: linear-gradient(120deg, #4488ff, #3366dd);
    box-shadow: 0px 15px 20px rgba(102, 153, 255, 0.3);
    transform: translateY(-2px);
}

.Projects-Button:active {
    transform: translateY(0px);
}


/* ===========================
   HERO REFINEMENT — MIDNIGHT BLUE EDITORIAL
   =========================== */

.bg-layer {
    background:
        radial-gradient(circle at 72% 18%, rgba(43, 110, 255, 0.12), transparent 28%),
        linear-gradient(135deg, #07111f 0%, #0d1a2b 52%, #101b2c 100%);
}

.hero-section {
    position: relative;
    isolation: isolate;
    min-height: min(900px, 100vh);
    padding-top: 7.5rem;
    padding-bottom: 5rem;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at 23% 43%, rgba(54, 125, 255, 0.17), transparent 32%),
        radial-gradient(circle at 74% 48%, rgba(35, 104, 223, 0.13), transparent 31%);
}

.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.16;
    background-image: linear-gradient(rgba(139, 184, 255, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(139, 184, 255, 0.08) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 78%);
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: clamp(3rem, 7vw, 7rem);
    align-items: center;
    text-align: left;
}

.hero-content {
    max-width: 650px;
    animation: none;
}

.hero-kicker {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1.5rem;
    color: rgba(184, 211, 255, 0.62);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    line-height: 1;
}

.hero-kicker span {
    display: inline-block;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #75a9ff;
    box-shadow: 0 0 10px rgba(117, 169, 255, 0.9);
}

.hero-title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
    margin-bottom: 0;
    font-size: clamp(3.3rem, 7.5vw, 6.2rem);
    font-weight: 800;
    letter-spacing: -0.07em;
    line-height: 0.93;
}

.hero-greeting {
    color: rgba(246, 249, 255, 0.9);
    font-size: 0.33em;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1;
}


.hero-title-accent {
    width: 4.5rem;
    height: 3px;
    margin: 1.35rem 0 1.55rem;
    border-radius: 999px;
    background: linear-gradient(90deg, #78adff, #2e70e8, transparent);
    box-shadow: 0 0 16px rgba(63, 132, 255, 0.55);
}

.hero-subtitle {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
    color: rgba(224, 235, 255, 0.88);
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.4;
}

.subtitle-divider {
    color: #6d9fff;
    font-size: 1.15em;
    font-weight: 400;
}

.hero-description {
    max-width: 560px;
    margin-bottom: 2rem;
    color: rgba(210, 222, 242, 0.68);
    font-size: 1rem;
    line-height: 1.8;
    text-wrap: balance;
}

.hero-cta {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.85rem;
    margin-bottom: 1.75rem;
}

.Projects-Button-Link.Projects-Button {
    min-height: 3.15rem;
    padding: 0.78rem 1.35rem;
    border-radius: 0.75rem;
    color: #f7fbff;
    background: linear-gradient(120deg, #3e82f5, #225ac4);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.24);
}

.Projects-Button-Link.Projects-Button:hover {
    color: #fff;
    box-shadow: 0 16px 36px rgba(48, 116, 255, 0.38);
    transform: translateY(-3px);
}

.hero-cta .btn-secondary {
    min-height: 3.15rem;
    padding-inline: 1.4rem;
    color: rgba(234, 241, 255, 0.88);
    background: rgba(255, 255, 255, 0.045);
    border-color: rgba(151, 187, 255, 0.22);
}

.hero-cta .btn-secondary:hover {
    background: rgba(99, 153, 255, 0.1);
    border-color: rgba(151, 187, 255, 0.42);
}

.hero-image {
    display: flex;
    justify-content: center;
    width: 100%;
    animation: none;
}

.hero-image-frame {
    position: relative;
    width: min(100%, 460px);
    padding: 1.1rem 1.1rem 0;
}

.hero-image-frame::before {
    content: '';
    position: absolute;
    inset: 9% 2% 10% 7%;
    border: 1px solid rgba(100, 158, 255, 0.24);
    border-radius: 2rem;
    transform: rotate(4deg);
    box-shadow: 0 0 60px rgba(38, 105, 233, 0.18);
}

.hero-image-frame .glass-lg {
    position: relative;
    z-index: 1;
    padding: 0.55rem;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(120, 170, 255, 0.18), rgba(255, 255, 255, 0.055));
    border: 1px solid rgba(151, 193, 255, 0.38);
    border-radius: 1.6rem;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38), 0 0 52px rgba(48, 121, 255, 0.2);
}

.hero-image-orbit {
    position: absolute;
    z-index: 0;
    top: 4%;
    right: -3%;
    width: 82%;
    aspect-ratio: 1;
    border: 1px solid rgba(92, 151, 255, 0.24);
    border-radius: 50%;
    transform: rotate(-18deg);
}

.hero-image-orbit::after {
    content: '';
    position: absolute;
    top: 8%;
    right: 12%;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #72a6ff;
    box-shadow: 0 0 15px 4px rgba(114, 166, 255, 0.6);
}

.profile-img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    max-width: none;
    aspect-ratio: 4 / 5;
    height: clamp(360px, 40vw, 510px);
    border-radius: 1.25rem;
    object-fit: cover;
    object-position: center 30%;
    filter: saturate(0.9) contrast(1.04);
    box-shadow: none;
    animation: profileFloat 15s ease-in-out infinite;
}

.hero-image-meta {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 0.25rem 0;
    color: rgba(189, 214, 255, 0.55);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.17em;
}

.meta-line {
    width: 2.5rem;
    height: 1px;
    background: rgba(126, 173, 255, 0.42);
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    bottom: 1.5rem;
    color: rgba(193, 215, 255, 0.48);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.scroll-indicator i {
    font-size: 0.85rem;
    color: rgba(127, 174, 255, 0.74);
}

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

@media (max-width: 767px) {
    .hero-section {
        min-height: auto;
        padding-top: 7rem;
        padding-bottom: 5.5rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2.4rem;
        text-align: center;
    }

    .hero-image {
        grid-row: 1;
    }

    .hero-content {
        grid-row: 2;
        max-width: 100%;
    }

    .hero-kicker {
        justify-content: center;
        margin-bottom: 1.15rem;
        font-size: 0.58rem;
        letter-spacing: 0.19em;
    }

    .hero-title {
        align-items: center;
        font-size: clamp(3.1rem, 15vw, 5rem);
    }


    .hero-title-accent {
        margin: 1.1rem auto 1.2rem;
    }

    .hero-subtitle {
        justify-content: center;
        font-size: 1rem;
    }

    .hero-description {
        width: 90%;
        max-width: 560px;
        margin: 0 auto 1.75rem;
        font-size: 0.92rem;
        line-height: 1.7;
    }

    .hero-cta {
        justify-content: center;
        flex-wrap: wrap;
        margin-bottom: 1.5rem;
    }

    .hero-image-frame {
        width: min(100%, 350px);
        padding-inline: 0.8rem;
    }

    .hero-image-meta {
        justify-content: center;
        font-size: 0.5rem;
    }

    .hero-image-orbit {
        right: -5%;
    }

    .scroll-indicator {
        bottom: 1rem;
    }
}

@media (max-width: 420px) {
    .hero-section {
        padding-top: 6.5rem;
    }

    .hero-kicker {
        gap: 0.45rem;
        letter-spacing: 0.12em;
    }

    .hero-cta > a {
        width: 100%;
    }

    .hero-cta .Projects-Button {
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===========================
   SELECTED UX REFINEMENTS
   =========================== */

:where(a, button, input, textarea):focus-visible {
    outline: 3px solid rgba(117, 169, 255, 0.92);
    outline-offset: 3px;
}

.nav-link,
.nav-link-mobile,
.btn,
.botao,
.hamburger {
    min-height: 44px;
}

.nav-link,
.nav-link-mobile,
.btn,
.botao {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hamburger {
    min-width: 44px;
}

.social-icon {
    min-width: 44px;
    min-height: 44px;
}

.hero-name {
    display: block;
    color: #83adff;
    font-size: 0.95em;
    font-weight: 800;
    letter-spacing: -0.07em;
    line-height: 0.93;
    text-shadow: 0 0 22px rgba(76, 137, 255, 0.2);
}

.project-card:hover {
    box-shadow: 0 12px 28px rgba(15, 38, 76, 0.32);
}

.project-link,
.contact-link {
    color: #8bb7ff;
}

.project-link:hover,
.contact-link:hover {
    color: #c2d9ff;
}

.form-input:focus {
    border-color: rgba(117, 169, 255, 0.8);
    box-shadow: 0 0 0 3px rgba(102, 153, 255, 0.18);
}

/* Remove a transformação agressiva do botão de CV, mantendo o CTA estável. */
.botao:hover {
    width: 125px;
    height: 45px;
    border-radius: 20px;
}

.botao:hover .texto {
    display: inline;
}

.botao:hover .mysvg,
.botao:hover::before,
.botao:hover::after {
    display: none;
    animation: none;
}

@media (max-width: 767px) {
    .profile-img {
        height: 390px;
    }

    .hero-cta > a,
    .form-actions .btn {
        min-height: 44px;
    }
}

@media (max-width: 420px) {
    .container {
        padding-inline: 1rem;
    }

    .profile-img {
        height: 360px;
    }

    .project-body,
    .contact-info,
    .contact-form-wrapper {
        padding: 1.5rem;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .hero-grid {
        gap: 2.5rem;
    }

    .profile-img {
        height: 430px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .profile-img,
    .project-card,
    .project-image,
    .scroll-indicator,
    .scroll-reveal {
        animation: none !important;
        transition: none !important;
    }
}

/* Tokens consolidados para manter o sistema visual consistente. */
:root {
    --accent: #83adff;
    --accent-strong: #3e82f5;
    --focus-ring: rgba(117, 169, 255, 0.92);
    --surface-hover: rgba(255, 255, 255, 0.1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

.brand picture,
.hero-image picture,
.project-card picture {
    display: block;
}

:where(a, button, input, textarea):focus-visible {
    outline-color: var(--focus-ring);
}

.hero-name {
    color: var(--accent);
}

.project-link,
.contact-link {
    color: var(--accent);
}

.project-link:hover,
.contact-link:hover {
    color: #c2d9ff;
}

.loader-wrapper.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
