/* ===== VARIÁVEIS E RESET ===== */
:root {
  --primary-color: #ff397b;
  --primary-dark: #e6005c;
  --secondary-color: #d1c4e9;
  --accent-color: #ff256e;
  --bg-light: #fce4ec;
  --bg-white: #ffffff;
  --text-dark: #333333;
  --text-muted: #666666;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-light);
  color: var(--text-dark);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== NAVBAR ===== */
.navbar-custom {
  background-color: var(--bg-white);
  backdrop-filter: blur(10px);
  transition: var(--transition);
  padding: 1rem 0;
}

.navbar-brand {
  font-weight: 700;
  color: var(--text-dark);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.brand-icon {
  font-size: 1.8rem;
  animation: sparkle 2s infinite;
}

@keyframes sparkle {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
  }
  50% {
    transform: scale(1.2) rotate(10deg);
  }
}

.brand-text {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar-brand:hover {
  transform: translateY(-2px);
}

.nav-link {
  color: var(--text-dark) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  margin: 0 0.25rem;
  border-radius: 8px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color) !important;
  background-color: rgba(255, 57, 123, 0.1);
  transform: translateY(-2px);
}

.nav-link i {
  font-size: 1.1rem;
}

/* ===== HERO SECTION ===== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(255, 57, 123, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 20s infinite ease-in-out;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  33% {
    transform: translate(30px, -30px) rotate(120deg);
  }
  66% {
    transform: translate(-20px, 20px) rotate(240deg);
  }
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 500px;
}

.hero-buttons .btn {
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border: none;
  box-shadow: 0 4px 15px rgba(255, 57, 123, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 57, 123, 0.4);
}

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

.btn-outline-primary:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-3px);
}

.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 3rem;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.hero-image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-icon {
  font-size: 15rem;
  color: var(--primary-color);
  opacity: 0.1;
  position: relative;
  z-index: 1;
}

.image-decoration {
  position: absolute;
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, rgba(255, 57, 123, 0.2), rgba(209, 196, 233, 0.2));
  border-radius: 50%;
  filter: blur(60px);
  animation: pulse 4s infinite ease-in-out;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.animate-float {
  animation: floatAnimation 6s infinite ease-in-out;
}

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

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

.scroll-indicator i {
  font-size: 2rem;
  color: var(--primary-color);
}

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

/* ===== ANIMATIONS ===== */
.animate-fade-in {
  animation: fadeIn 1s ease-out;
}

.animate-fade-in-delay {
  animation: fadeIn 1s ease-out 0.3s backwards;
}

.animate-fade-in-delay-2 {
  animation: fadeIn 1s ease-out 0.6s backwards;
}

.animate-fade-in-delay-3 {
  animation: fadeIn 1s ease-out 0.9s backwards;
}

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

/* ===== SECTIONS ===== */
.projects-section,
.contact-section,
.about-section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.title-underline {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  margin: 0 auto;
  border-radius: 2px;
}

/* ===== PROJECT CARDS ===== */
.project-item {
  animation: fadeInUp 0.6s ease-out backwards;
}

.project-item:nth-child(1) {
  animation-delay: 0.1s;
}
.project-item:nth-child(2) {
  animation-delay: 0.2s;
}
.project-item:nth-child(3) {
  animation-delay: 0.3s;
}
.project-item:nth-child(4) {
  animation-delay: 0.4s;
}
.project-item:nth-child(5) {
  animation-delay: 0.5s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.project-card {
  border: none;
  border-radius: 16px;
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
  background: var(--bg-white);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.card-img-wrapper {
  position: relative;
  overflow: hidden;
  height: 250px;
}

.card-img-top {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.project-card:hover .card-overlay {
  opacity: 1;
}

.btn-view {
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  transform: translateY(20px);
  transition: var(--transition);
}

.project-card:hover .btn-view {
  transform: translateY(0);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-tags .badge {
  padding: 0.4rem 0.8rem;
  font-weight: 500;
  border-radius: 20px;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.card-text {
  color: var(--text-muted);
  line-height: 1.7;
}

.project-footer {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.project-card-featured {
  background: linear-gradient(135deg, rgba(255, 57, 123, 0.05), rgba(209, 196, 233, 0.05));
}

.card-img-featured {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== CONTACT SECTION ===== */
.contact-card {
  background: var(--bg-white);
  border-radius: 20px;
  border: 2px solid var(--secondary-color);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--bg-light);
  border-radius: 12px;
  transition: var(--transition);
}

.contact-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.contact-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon i {
  font-size: 1.5rem;
  color: white;
}

.contact-info h5 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.contact-info a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.contact-info a:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

/* ===== ABOUT PAGE ===== */
.about-card {
  background: var(--bg-white);
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid var(--secondary-color);
}

.about-image-wrapper {
  position: relative;
  height: 100%;
  min-height: 400px;
  overflow: hidden;
}

.about-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-image-decoration {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  bottom: 20px;
  border: 3px solid var(--primary-color);
  border-radius: 12px;
  pointer-events: none;
}

.about-content {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.about-name {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-role {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-weight: 500;
}

.about-role i {
  color: var(--primary-color);
}

.about-text p {
  margin-bottom: 1rem;
  line-height: 1.8;
  color: var(--text-dark);
}

.highlight-box {
  background: linear-gradient(135deg, rgba(255, 57, 123, 0.1), rgba(209, 196, 233, 0.1));
  padding: 1.5rem;
  border-radius: 12px;
  border-left: 4px solid var(--primary-color);
}

.highlight-box i {
  color: var(--primary-color);
  margin-right: 0.5rem;
}

.skills-section h5 {
  font-weight: 700;
  color: var(--text-dark);
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.skill-badge {
  background: var(--bg-light);
  color: var(--primary-color);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  border: 2px solid var(--secondary-color);
  transition: var(--transition);
}

.skill-badge:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ===== TIMELINE ===== */
.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--primary-color), var(--accent-color));
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
}

.timeline-item:nth-child(odd) {
  flex-direction: row;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-marker {
  width: 20px;
  height: 20px;
  background: var(--primary-color);
  border: 4px solid var(--bg-white);
  border-radius: 50%;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  box-shadow: 0 0 0 4px rgba(255, 57, 123, 0.2);
}

.timeline-content {
  width: 45%;
  background: var(--bg-white);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.timeline-content h5 {
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.timeline-content h6 {
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.timeline-content p {
  color: var(--text-muted);
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-white);
  padding: 2rem 0;
  border-top: 2px solid var(--secondary-color);
  margin-top: 4rem;
}

.footer p {
  color: var(--text-muted);
  margin: 0;
}

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

.social-link {
  width: 40px;
  height: 40px;
  background: var(--bg-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
  border: 2px solid transparent;
}

.social-link:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-3px);
  border-color: var(--primary-color);
}

/* ===== SCROLL TO TOP BUTTON ===== */
.scroll-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  z-index: 1000;
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top-btn:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.scroll-top-btn i {
  font-size: 1.5rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2.5rem;
  }

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

  .hero-stats {
    gap: 2rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .hero-icon {
    font-size: 10rem;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-marker {
    left: 20px;
  }

  .timeline-item {
    flex-direction: row !important;
    padding-left: 60px;
  }

  .timeline-content {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 100px 0 60px;
  }

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

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

  .hero-stats {
    gap: 1.5rem;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .hero-buttons .btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .projects-section,
  .contact-section,
  .about-section {
    padding: 60px 0;
  }

  .social-links {
    justify-content: center;
  }

  .about-image-wrapper {
    min-height: 300px;
  }

  .about-name {
    font-size: 1.5rem;
  }

  .about-role {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }

  .hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .contact-item {
    flex-direction: column;
    text-align: center;
  }

  .project-footer {
    flex-direction: column;
  }

  .project-footer .btn {
    width: 100%;
  }
}
