:root {
  --primary: #6366f1;
  --secondary: #8b5cf6;
  --accent: #ec4899;
  --dark: #0f172a;
  --light: #f8fafc;
  --glass: rgba(255, 255, 255, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background: var(--dark);
  color: var(--light);
  overflow-x: hidden;
  position: relative;
}

.profile-photo {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid rgba(99, 102, 241, 0.6);
  margin-bottom: 0px;
  box-shadow: 0 0 40px rgba(99, 102, 241, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-photo:hover {
  transform: scale(1.05);
  box-shadow: 0 0 60px rgba(236, 72, 153, 0.8);
}

/* Background Animado */
.bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(45deg, #0f172a, #1e293b, #334155);
}

.bg-animation::before,
.bg-animation::after {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.3;
  animation: float 20s infinite ease-in-out;
}

.bg-animation::before {
  background: var(--primary);
  top: -200px;
  left: -200px;
  animation-delay: 0s;
}

.bg-animation::after {
  background: var(--accent);
  bottom: -200px;
  right: -200px;
  animation-delay: 10s;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(50px, 50px) scale(1.1);
  }
}

/* Grid Pattern */
.grid-pattern {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-image: linear-gradient(
      rgba(99, 102, 241, 0.1) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(99, 102, 241, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.3;
}

/* Navbar Glassmorphism */
nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  padding: 15px 40px;
  display: flex;
  gap: 30px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

nav a {
  color: var(--light);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9em;
  transition: all 0.3s ease;
  position: relative;
}

nav a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0 50px;
}

.hero-content {
  padding-top: 80px;
  text-align: center;
  max-width: 900px;
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.glitch {
  font-size: 4em;
  font-weight: 900;
  font-family: "Space Grotesk", sans-serif;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
  position: relative;
  animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
  0%,
  100% {
    filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.5));
  }
  50% {
    filter: drop-shadow(0 0 40px rgba(236, 72, 153, 0.8));
  }
}

.hero-subtitle {
  font-size: 1.5em;
  font-weight: 300;
  margin-bottom: 30px;
  opacity: 0.8;
}

.hero-description {
  font-size: 1.1em;
  line-height: 1.8;
  opacity: 0.7;
  max-width: 700px;
  margin: 0 auto 40px;
}

/* Glass Cards */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 100px 50px;
}

.section {
  margin-bottom: 150px;
}

.section-title {
  font-size: 3em;
  font-weight: 700;
  margin-bottom: 60px;
  text-align: center;
  position: relative;
  font-family: "Space Grotesk", sans-serif;
}

.section-title::before {
  content: "";
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 10px;
}

/* Education Cards - FLEXBOX */
.education-grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.glass-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  padding: 40px;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  flex: 1;
}

.glass-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: left 0.7s ease;
}

.glass-card:hover::before {
  left: 100%;
}

.glass-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(99, 102, 241, 0.3);
  border-color: rgba(99, 102, 241, 0.5);
}

.degree-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 0.8em;
  font-weight: 600;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.degree-title {
  font-size: 1.8em;
  font-weight: 700;
  margin-bottom: 15px;
  color: #fff;
}

.institution {
  font-size: 1em;
  opacity: 0.8;
  line-height: 1.8;
}

/* Research Interests - FLEXBOX (Bento Grid Style) */
.bento-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.bento-item {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  transition: all 0.4s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  flex: 1 1 calc(25% - 15px); /* 4 colunas */
  min-width: 200px;
}

/* Items que ocupam 2 colunas (50%) */
.bento-item:nth-child(1) {
  flex: 1 1 calc(50% - 10px);
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.1),
    rgba(139, 92, 246, 0.1)
  );
}

.bento-item:nth-child(4) {
  flex: 1 1 calc(50% - 10px);
  background: linear-gradient(
    135deg,
    rgba(236, 72, 153, 0.1),
    rgba(99, 102, 241, 0.1)
  );
}

.bento-item:nth-child(7) {
  flex: 1 1 calc(50% - 10px);
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.1),
    rgba(236, 72, 153, 0.1)
  );
}

.bento-item::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.3), transparent);
  transform: translate(-50%, -50%);
  transition: all 0.6s ease;
  border-radius: 50%;
}

.bento-item:hover::before {
  width: 300%;
  height: 300%;
}

.bento-item:hover {
  transform: scale(1.05);
  border-color: var(--primary);
  box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4);
}

.bento-icon {
  font-size: 2.5em;
  margin-bottom: 15px;
  display: block;
}

.bento-text {
  font-weight: 600;
  font-size: 1em;
  position: relative;
  z-index: 1;
}

/* Current Position - Featured Card */
.featured-card {
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.1),
    rgba(236, 72, 153, 0.1)
  );
  backdrop-filter: blur(20px);
  border: 2px solid rgba(99, 102, 241, 0.3);
  border-radius: 40px;
  padding: 60px;
  position: relative;
  overflow: hidden;
}

.featured-card::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.1), transparent);
  animation: rotate 30s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.featured-content {
  position: relative;
  z-index: 1;
}

.featured-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), var(--secondary));
  padding: 10px 25px;
  border-radius: 25px;
  font-weight: 700;
  font-size: 0.9em;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.featured-title {
  font-size: 2.5em;
  font-weight: 700;
  margin-bottom: 20px;
}

.featured-text {
  font-size: 1.2em;
  line-height: 1.9;
  opacity: 0.9;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(15px);
  }
}

.scroll-indicator::after {
  content: "↓";
  font-size: 2em;
  color: var(--primary);
}

/* Responsive - FLEXBOX */
@media (max-width: 1024px) {
  .bento-item {
    flex: 1 1 calc(50% - 10px); /* 2 colunas em tablets */
  }

  .bento-item:nth-child(1),
  .bento-item:nth-child(4),
  .bento-item:nth-child(7) {
    flex: 1 1 calc(100% - 0px); /* 100% em tablets */
  }
}

@media (max-width: 768px) {
  .glitch {
    font-size: 3em;
  }

  nav {
    padding: 15px 20px;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .container {
    padding: 50px 20px;
  }

  .bento-item {
    flex: 1 1 100%; /* 1 coluna em mobile */
  }

  .bento-item:nth-child(1),
  .bento-item:nth-child(4),
  .bento-item:nth-child(7) {
    flex: 1 1 100%;
  }

  .featured-card {
    padding: 40px 30px;
  }

  .section-title {
    font-size: 2em;
  }

  .hero {
    padding: 0 20px;
  }
}

@media (max-width: 480px) {
  .glitch {
    font-size: 2.5em;
  }

  nav {
    padding: 12px 15px;
    gap: 10px;
  }

  nav a {
    font-size: 0.8em;
  }

  .hero-subtitle {
    font-size: 1.2em;
  }

  .section-title {
    font-size: 1.8em;
  }
}
