/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #4a00e0;
  /* A deep, elegant purple */
  --secondary-color: #8e2de2;
  --primary-hover: #3c00b3;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --background-light: #f9fafb;
  --white: #ffffff;
  --border-color: #e5e7eb;
  --hero-text-light: #e0d8ff;

  /* Foto styles - untouched */
  --img: 160px;
  --ring1: 28px;
  --line: 2px;
  --ring2: 28px;
  --violet: #7f7ccd;
  --lineColor: rgba(234, 234, 255, 0.425);
  --blue: #6180d2;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Open Sans", sans-serif;
  line-height: 1.8;
  color: var(--text-dark);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.75em;
  color: var(--text-dark);
  letter-spacing: -0.5px;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 1.6rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1.5rem;
  color: var(--text-light);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease-in-out;
}

a:hover {
  color: var(--primary-hover);
}

/* Layout */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 6rem 0;
}

.section-alt {
  background-color: var(--background-light);
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
  font-size: 2.8rem;
}

.section-title::after {
  content: "";
  display: block;
  margin: 0.75rem auto 0;
  width: 70px;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 3.5rem;
  font-size: 1.15rem;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  border-color: var(--border-color);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  max-width: 1140px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem;
}

.nav-brand h1 {
  font-size: 1.8rem;
  background: -webkit-linear-gradient(
    45deg,
    var(--primary-color),
    var(--secondary-color)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
}

.nav-brand span {
  display: none;
  /* Simplified brand */
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 3rem;
}
.nav-brand {
  width: 71px;
  height: 70px;
  border-radius: 50%;
  position: relative;
  background: #111111b9;
  padding: 7px;
  box-sizing: content-box;
  overflow: hidden;
}
.nav-brand::before{
  content: "";
  position: absolute;
  top: 20px;
  left: -12px;
   background: conic-gradient(
    from 0deg,
    transparent 10deg,
    rgba(255,255,255,0.9) 90deg,
    transparent 180deg,
    rgba(255,255,255,0.9) 270deg,
    transparent 360deg
  );
  width: calc(100% + 24px);
  height: calc(100% + 24px);
    animation: brilhoRapido 12s ease-in-out infinite;
  z-index: 0;
  opacity: 0;
  filter: blur(10px);
}
.nav-brand img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
  border-radius: 50%;

}
@keyframes brilhoRapido {
  0% {
    transform: rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  50% {
    transform: rotate(360deg);
    opacity: 0.8;
  }
  60% {
    opacity: 0;
  }
  100% {
    transform: rotate(360deg);
    opacity: 0;
  }
}
  

.nav-link {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.3s ease-in-out;
  color: var(--text-dark);
  font-size: 1rem;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.4s ease-in-out;
}

.nav-link:hover {
  color: var(--primary-color);
}

.nav-link:hover::after {
  width: 100%;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.bar {
  width: 28px;
  height: 3px;
  background-color: var(--text-dark);
  border-radius: 2px;
  transition: all 0.3s ease-in-out;
}

.hamburger.active .bar:nth-child(1) {
  transform: rotate(-45deg) translate(-6px, 7px);
}

.hamburger.active .bar:nth-child(2) {
  opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
  transform: rotate(45deg) translate(-6px, -7px);
}

/* Hero Section */
.hero {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  color: var(--white);
  padding: 9rem 0 2rem;
}

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

.hero-title {
  font-size: 2.9rem;
  color: var(--white);
}

.hero-subtitle {
  font-size: 1.5rem;
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  color: var(--hero-text-light);
}

.hero-description {
  font-size: 1.15rem;
  margin-bottom: 3rem;
  max-width: 520px;
  color: var(--hero-text-light);
}

/* --- UNTOUCHED PHOTO STYLES --- */
.hero-image {
  display: flex;
  justify-content: center;
}

.frame {
  display: grid;
  place-items: center;
  width: calc(var(--img) + 2 * (var(--ring1) + var(--line) + var(--ring2)));
  height: calc(var(--img) + 2 * (var(--ring1) + var(--line) + var(--ring2)));
  border-radius: 50%;
  background: radial-gradient(
    circle,
    transparent calc(var(--img) / 2),
    var(--violet) calc(var(--img) / 2) calc((var(--img) / 2) + var(--ring1)),
    var(--lineColor) calc((var(--img) / 2) + var(--ring1))
      calc((var(--img) / 2) + var(--ring1) + var(--line)),
    var(--blue) calc((var(--img) / 2) + var(--ring1) + var(--line)) 100%
  );
}

.frame img {
  width: var(--img);
  height: var(--img);
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

/* --- END UNTOUCHED PHOTO STYLES --- */

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-family: "Poppins", sans-serif;
  text-align: center;
  transition: all 0.3s ease-in-out;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  font-size: 1.05rem;
}

.btn-primary {
  background-color: var(--white);
  color: var(--primary-color);
  border: 2px solid var(--white);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* General Card Style */
.card {
  background-color: var(--white);
  border-radius: 16px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  border: 1px solid var(--border-color);
  padding: 2rem;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-text {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-top: 2.5rem;
}

.skill-category h3,
.about-hobbies h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.skill-category ul {
  list-style: none;
}

.skill-category li {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border-color);
  font-weight: 600;
  color: var(--text-dark);
}

.hobbies-grid {
  display: grid;
  gap: 1rem;
}

.hobby-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background-color: var(--white);
  border-radius: 12px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

.hobby-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.hobby-icon {
  font-size: 1.8rem;
  color: var(--primary-color);
}

/* Education Section */
.education-category {
  margin-bottom: 4rem;
}

.category-title {
  color: var(--primary-color);
  margin-bottom: 2.5rem;
  font-size: 1.8rem;
  text-align: center;
}

.timeline {
  position: relative;
  padding-left: 2.5rem;
  max-width: 700px;
  margin: 0 auto;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0.5rem;
  top: 0;
  bottom: 0;
  width: 3px;
  background-color: var(--border-color);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}

.timeline-marker {
  position: absolute;
  left: -0.5rem;
  top: 0.3rem;
  width: 1.5rem;
  height: 1.5rem;
  background-color: var(--primary-color);
  border-radius: 50%;
  border: 4px solid var(--background-light);
}

.timeline-content {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
}

.timeline-content h4 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.institution {
  font-weight: 600;
  color: var(--text-dark);
  display: block;
  margin-bottom: 0.25rem;
}

.period {
  color: var(--text-light);
  font-size: 0.9rem;
  display: block;
  margin-bottom: 0.5rem;
}

/* Languages & Courses */
.languages-grid,
.certifications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.language-item,
.cert-item {
  padding: 1.5rem;
  background-color: var(--white);
  border-radius: 12px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

.language-item:hover,
.cert-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.language-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cert-item {
  display: flex;
  flex-direction: column;
}

.cert-item img {
  align-self: flex-end;
  margin-top: 1rem;
}

.language-name,
.cert-item h4 {
  font-weight: 600;
  font-family: "Poppins", sans-serif;
  color: var(--text-dark);
}

.language-level {
  color: var(--primary-color);
  font-weight: 600;
}

.cert-item h4 {
  color: var(--primary-color);
  margin-bottom: 0;
  font-size: 1.1rem;
}

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

.portfolio-card {
  flex-direction: column;
  display: flex;
}

.portfolio-card .card-description {
  flex-grow: 1;
}

.metric {
  background-color: #f5f3ff;
  color: var(--primary-color);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  font-family: "Poppins", sans-serif;
}

.card-link {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  position: relative;
  align-self: flex-start;
}

.card-link::after {
  content: " →";
  transition: transform 0.3s ease;
  display: inline-block;
}

.card-link:hover::after {
  transform: translateX(5px);
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: start;
}

.contact-info h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.contact-icon {
  font-size: 2rem;
  color: var(--primary-color);
}

.contact-method strong {
  display: block;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
  font-family: "Poppins", sans-serif;
}

.contact-method p {
  margin: 0;
}

/* Contact Form */
.contact-form {
  padding: 3rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-dark);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1.2rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  font-family: "Open Sans", sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(74, 0, 224, 0.2);
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

.btn.btn-form {
  width: 100%;
  padding: 1.2rem;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: var(--white);
  border: none;
}

.btn.btn-form:hover {
  background-size: 150% 150%;
  box-shadow: 0 8px 20px rgba(74, 0, 224, 0.3);
}

/* Footer */
.footer {
  background-color: var(--text-dark);
  color: var(--white);
  padding: 3rem 0;
  text-align: center;
}

.footer p {
  margin: 0.5rem 0;
  opacity: 0.6;
  color: var(--white);
}

/* Animations */
.is-visible {
  animation: fadeInUp 0.8s ease-in-out forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content > * {
  opacity: 0;
}

/* Responsive Design */
@media (max-width: 992px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .nav-brand {
    width: 50px;
    height: 50px;
    padding: 5px;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .section {
    padding: 4rem 0;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 0;
    flex-direction: column;
    background-color: var(--white);
    width: 85%;
    height: 100vh;
    text-align: center;
    transition: 0.4s ease-in-out;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding-top: 6rem;
    gap: 1.5rem;
  }

  .nav-menu.active {
    left: 0;
  }

  .hamburger {
    display: flex;
    z-index: 1001;
  }

  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-image {
    grid-row: 1;
    margin-bottom: 3rem;
  }

  .hero-title {
    font-size: 3rem;
  }

  .skills-grid,
  .portfolio-grid,
  .languages-grid,
  .certifications-grid {
    grid-template-columns: 1fr;
  }
}

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

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .btn {
    padding: 1rem 1.5rem;
    width: 100%;
  }
}
