/* Dark Theme Styles for Dr. Julio Vasconcelos Website */

body.dark-theme {
  background-color: #050a1c;
  color: #e2e8f0; /* Lighter text color for better readability */
  background-image: radial-gradient(circle at 25% 25%, rgba(30, 60, 180, 0.05) 1%, transparent 10%),
    radial-gradient(circle at 75% 75%, rgba(30, 60, 180, 0.05) 1%, transparent 10%),
    linear-gradient(rgba(20, 30, 80, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 30, 80, 0.1) 1px, transparent 1px);
  background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
}

/* Hero Section */
.hero-dark {
  padding: 80px 0;
  min-height: 50vh;
  display: flex;
  align-items: center;
}

.hero-dark-enhanced {
  position: relative;
  min-height: 72vh;
  isolation: isolate;
  overflow: hidden;
}

.hero-dark-enhanced::before,
.hero-dark-enhanced::after {
  content: "";
  position: absolute;
  inset: auto;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  filter: blur(20px);
  opacity: 0.32;
  z-index: 0;
  pointer-events: none;
}

.hero-dark-enhanced::before {
  top: -6rem;
  left: -7rem;
  background:
    radial-gradient(circle at 30% 30%, rgba(96, 165, 250, 0.6), transparent 62%);
  animation: driftOrb 14s ease-in-out infinite;
}

.hero-dark-enhanced::after {
  right: -8rem;
  bottom: -8rem;
  background:
    radial-gradient(circle at 50% 50%, rgba(14, 165, 233, 0.45), transparent 64%);
  animation: driftOrb 18s ease-in-out infinite reverse;
}

.hero-dark-enhanced .container,
.home-section .container {
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 36rem;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.1rem;
  padding: 0.55rem 0.95rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.52);
  color: #93c5fd;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 14px 30px rgba(2, 8, 23, 0.25);
}

.hero-lead {
  max-width: 32rem;
  color: #cbd5e1;
  font-size: 1.15rem;
  line-height: 1.75;
}

.hero-pulse-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.hero-pulse-strip span {
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.58));
  border: 1px solid rgba(148, 163, 184, 0.16);
  color: #dbeafe;
  font-size: 0.92rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  animation: pulseChip 4.5s ease-in-out infinite;
}

.hero-pulse-strip span:nth-child(2) {
  animation-delay: 0.4s;
}

.hero-pulse-strip span:nth-child(3) {
  animation-delay: 0.8s;
}

.hero-actions .btn {
  min-width: 12rem;
}

.hero-portrait-frame {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 28rem);
  padding: 1.25rem;
  border-radius: 2rem;
  background:
    linear-gradient(160deg, rgba(30, 41, 59, 0.94), rgba(15, 23, 42, 0.82));
  border: 1px solid rgba(96, 165, 250, 0.22);
  box-shadow: 0 24px 90px rgba(2, 8, 23, 0.45);
  transform: translate3d(var(--hero-shift-x, 0px), var(--hero-shift-y, 0px), 0);
  transition: transform 220ms ease-out, box-shadow 220ms ease-out;
}

.hero-portrait-frame::after {
  content: "";
  position: absolute;
  inset: 0.75rem;
  border-radius: 1.4rem;
  border: 1px solid rgba(191, 219, 254, 0.1);
  pointer-events: none;
}

.hero-portrait-glow {
  position: absolute;
  inset: 8% 10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.24), transparent 72%);
  filter: blur(12px);
  pointer-events: none;
}

.home-profile-image {
  width: min(100%, 19rem);
  height: min(100vw - 4rem, 19rem);
  position: relative;
  z-index: 1;
  animation: portraitFloat 8s ease-in-out infinite;
}

[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition:
    opacity 700ms ease,
    transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: transform, opacity;
}

[data-reveal="fade-left"] {
  transform: translate3d(32px, 12px, 0);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.home-section {
  position: relative;
}

.home-section::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.25), transparent);
}

.info-card,
.dark-theme .service-card,
.event-card {
  position: relative;
  overflow: hidden;
}

.info-card::before,
.dark-theme .service-card::before,
.event-card::before {
  content: "";
  position: absolute;
  inset: -40% auto auto -20%;
  width: 10rem;
  height: 10rem;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.12), transparent 68%);
  opacity: 0;
  transition: opacity 260ms ease, transform 260ms ease;
  transform: translate3d(-1rem, -1rem, 0);
  pointer-events: none;
}

.info-card:hover::before,
.dark-theme .service-card:hover::before,
.event-card:hover::before {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.dark-theme .service-card:hover,
.event-card:hover,
.info-card:hover {
  box-shadow: 0 18px 40px rgba(2, 8, 23, 0.24);
}

.event-image-wrapper img {
  transition: transform 560ms ease;
}

.event-card:hover .event-image-wrapper img {
  transform: scale(1.05);
}

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

@keyframes pulseChip {
  0%,
  100% {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 0 rgba(59, 130, 246, 0);
  }
  50% {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 0.8rem rgba(59, 130, 246, 0.12);
  }
}

@keyframes driftOrb {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(1.5rem, 1rem, 0) scale(1.06);
  }
}

/* Updated Profile Image Styling */
.profile-container {
  position: relative;
  display: inline-block;
  margin-bottom: 2rem;
}

.profile-image {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #3b82f6;
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.3);
}

/* Remove any overlay styling that might be causing issues */
.profile-overlay {
  display: none;
}

/* Hero Section Typography */
.hero-dark h1.name-title {
  font-size: 3rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
  letter-spacing: 2px;
}

.hero-dark .crp-number {
  font-size: 1.2rem;
  color: #3b82f6 !important;
  margin-bottom: 2rem;
  font-weight: 500;
}

/* Updated Specialties Styling */
.specialties {
  margin: 2rem 0;
  position: relative;
  padding: 20px 0;
}

.specialty-divider {
  width: 60px;
  height: 3px;
  background: #3b82f6;
  margin: 0 auto 1.5rem;
  position: relative;
  left: auto;
  top: auto;
  bottom: auto;
  transform: none;
}

.specialty-title {
  font-size: 1.3rem;
  color: #e2e8f0;
  margin-bottom: 0.5rem;
  font-weight: 400;
}

/* Action Buttons */
.action-buttons {
  margin-top: 2rem;
}

.btn-consult {
  background: #3b82f6;
  border: none;
  color: white;
  padding: 12px 30px;
  font-weight: 600;
  border-radius: 25px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-consult:hover {
  background: #2563eb;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
  text-decoration: none;
}

.btn-more {
  border: 2px solid #ffffff;
  color: #ffffff;
  background: transparent;
  padding: 12px 30px;
  font-weight: 600;
  border-radius: 25px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-more:hover {
  background: #ffffff;
  color: #050a1c;
  transform: translateY(-2px);
  text-decoration: none;
}

/* Section Titles */
.section-title {
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
  margin-bottom: 3rem;
  color: #ffffff;
}

.section-title:after {
  content: "";
  position: absolute;
  width: 50px;
  height: 3px;
  background-color: #3b82f6;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}
/* Section Titles message */
.section-title-message {
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
  margin-bottom: 3rem;
  color: #ffffff;
}


/* Info Cards */
.info-card {
  background-color: rgba(15, 23, 42, 0.7);
  border-radius: 10px;
  padding: 25px 15px;
  text-align: center;
  height: 100%;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.icon-container {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  background-color: #3b82f6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.icon-container i {
  font-size: 30px;
  color: white;
}

.info-card h3 {
  margin-bottom: 15px;
  font-size: 1.3rem;
  color: #ffffff;
}

.info-card p {
  color: #cbd5e1;
  font-size: 0.9rem;
}

/* Sections */
.about-section,
.services-section,
.events-section {
  background-color: #0f172a;
}

.about-section h1,
.about-section h2,
.about-section h3 {
  color: #ffffff; /* Bright white for headings */
}

.about-section p,
.about-section li,
.about-section .text-content {
  color: #e2e8f0; /* Light gray for paragraph text */
  font-size: 1.05rem; /* Slightly larger font for better readability */
}

/* Make sure academic and professional sections are readable */
.academic-section,
.professional-section {
  background-color: rgba(15, 23, 42, 0.7); /* Slightly lighter background */
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
}

.academic-section h3,
.professional-section h3 {
  color: #60a5fa; /* Light blue for section headings */
  margin-bottom: 15px;
}

/* Service Cards */
.dark-theme .service-card {
  background-color: #1e293b;
  border: none;
  border-radius: 10px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.dark-theme .service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.dark-theme .service-card .card-body {
  padding: 30px 20px;
}

.dark-theme .service-card h3 {
  margin: 15px 0;
  font-size: 1.3rem;
  color: white;
}

.dark-theme .service-card p {
  color: #cbd5e1;
}

/* Event Cards */
.event-card {
  background-color: #1e293b;
  border: none;
  border-radius: 10px;
  transition: transform 0.3s, box-shadow 0.3s;
  overflow: hidden;
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.event-image-wrapper {
  height: 200px;
  overflow: hidden;
}

.event-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-card .card-body {
  padding: 20px;
}

.card-title {
  color: #fff;
  font-size: 1.2rem;
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.event-card .card-title {
  color: #ffffff;
  font-size: 1.2rem;
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.event-card .card-text {
  color: #cbd5e1;
}

.event-card .text-muted {
  color: #94a3b8 !important;
}

/* Service icons should stand out */
.service-icon {
  color: #60a5fa; /* Light blue for icons */
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* Ensure lists are readable */
.dark-theme ul,
.dark-theme ol {
  color: #e2e8f0;
}

.dark-theme ul li,
.dark-theme ol li {
  margin-bottom: 8px;
}

/* Updated Button Styling */
.dark-theme .btn-primary {
  background-color: #3b82f6;
  border-color: #3b82f6;
  padding: 12px 30px;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.dark-theme .btn-primary:hover {
  background-color: #2563eb;
  border-color: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.dark-theme .btn-outline-light {
  border: 2px solid #ffffff;
  color: #ffffff;
  background: transparent;
  padding: 12px 30px;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.dark-theme .btn-outline-light:hover {
  background-color: #ffffff;
  color: #050a1c;
  border-color: #ffffff;
  transform: translateY(-2px);
}

/* Dark theme navbar */
.dark-theme .navbar {
  background-color: rgba(15, 23, 42, 0.8) !important;
  backdrop-filter: blur(10px);
}

/* Dark theme footer */
.dark-theme footer {
  background: #0f172a;
}

/* Form styling for dark theme */
.dark-theme .form-control,
.dark-theme .form-select {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background-color: rgba(15, 23, 42, 0.5);
  color: #fff;
  transition: all 0.3s ease;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 0.375rem;
}

.dark-theme .form-control-lg {
  padding: 0.875rem 1.25rem;
  font-size: 1.125rem;
  border-radius: 0.5rem;
}

.dark-theme .form-control:focus,
.dark-theme .form-select:focus {
  background-color: rgba(30, 41, 59, 0.7);
  border-color: #3b82f6;
  box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.25);
  color: #fff;
  outline: none;
}

.dark-theme .form-control::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.dark-theme .form-label {
  color: #e2e8f0;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

/* Card styling for dark theme */
.bg-dark-blue {
  background-color: rgba(15, 23, 42, 0.7);
}

.bg-darker {
  background-color: rgba(15, 23, 42, 0.5) !important;
}

/* Invalid feedback for form validation */
.dark-theme .invalid-feedback {
  color: #f87171;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* Responsive */
@media (max-width: 768px) {
  .profile-image {
    width: 150px;
    height: 150px;
  }

  .hero-dark-enhanced {
    min-height: auto;
    padding-top: 5.5rem;
  }

  .hero-dark h1.name-title {
    font-size: 2.2rem;
  }

  .hero-kicker {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
  }

  .hero-lead {
    font-size: 1rem;
    line-height: 1.65;
  }

  .hero-pulse-strip {
    gap: 0.55rem;
  }

  .hero-pulse-strip span {
    font-size: 0.82rem;
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .hero-portrait-frame {
    width: min(100%, 20rem);
    padding: 0.95rem;
  }

  .specialty-title {
    font-size: 1.1rem;
  }

  .hero-dark {
    padding: 60px 0;
  }

  .btn-consult,
  .btn-more {
    padding: 10px 25px;
    font-size: 0.9rem;
    margin: 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-dark-enhanced::before,
  .hero-dark-enhanced::after,
  .hero-pulse-strip span,
  .home-profile-image,
  [data-reveal],
  .hero-portrait-frame,
  .event-image-wrapper img,
  .info-card,
  .dark-theme .service-card,
  .event-card {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }

  [data-reveal] {
    opacity: 1 !important;
  }
}

/* =========================
   Course Cards (padrão fixo)
   ========================= */
.course-card {
  background-color: #1e293b; /* igual ao tema */
  border: none;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Área da imagem com proporção fixa (padroniza a altura) */
.course-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;   /* mantém 16:9 em todos os cards */
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
}

/* Fallback para navegadores sem suporte a aspect-ratio */
@supports not (aspect-ratio: 16 / 9) {
  .course-image-wrapper { height: 200px; }
}

.course-image {
  width: 100%;
  height: 100%;
  object-fit: cover;      /* cobre toda a área sem distorcer */
  object-position: center;
  display: block;
}

/* Placeholder quando não houver imagem */
.course-image-wrapper.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

.course-image-placeholder {
  color: #94a3b8;
  font-size: 0.95rem;
}

/* Título com clamp para evitar variações de altura */
.course-title {
  color: #fff;
  font-size: 1.1rem;
  line-height: 1.25;
  margin-bottom: 0.75rem;

  display: -webkit-box;
  -webkit-line-clamp: 2;       /* limite de 2 linhas */
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.25em * 2); /* reserva espaço p/ 2 linhas */
}

/* Opcional: ajuste fino do parágrafo para manter consistência */
.course-card .card-body p {
  color: #cbd5e1;
  margin-bottom: 0.5rem;
}
