* {
  box-sizing: border-box;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
} 

.about {
  display: flex;
  justify-content: space-between;
  padding: 80px 10% 40px;
}

.about-left h1 {
  font-size: 48px;
  margin: 0;
}

.about-span {
  margin-top: 10px;
  color: #555;
}

/* RECTANGLES */
.about-right {
  position: relative;
  width: 260px;
  height: 260px;
}

.photo {
  position: absolute;
  width: 160px;
  height: 200px;
  border-radius: 14px;
  background-size: cover;
  background-position: center;

  background-color: #666;
  transform: rotate(0deg);
  top: 0;
  right: 0;
  background-image:url('assets/headshot.png')
}

/* TOP CIRCLES */
.badges-section {
  display: flex;
  justify-content: center;
  gap: 60px;
  padding: 40px 10%;
}

.badge {
  text-align: center;
}

.badge img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
}

.badge p {
  margin-top: 10px;
}

/* FUN FACTS */
.fun-facts {
  padding: 60px 10%;
  text-align: center;
}

.fun-facts h2 { font-size: 42px; margin-bottom: 60px; }

.facts {
  display: flex;
  flex-direction: row; /* Changed from column to row */
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap; 
}

.fact {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  flex: 1;
  min-width: 200px;
}

.fact img { width: 70px; height: 70px; object-fit: cover; }

/* CONTACT PANEL */
.contact {
  max-width: 400px;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  font-family: sans-serif;
  background: #fff;
}

.tab-header {
  display: flex;
  background: #f4f4f4;
  border-bottom: 1px solid #ddd;
}

.tab-btn {
  flex: 1;
  padding: 12px;
  border: none;
  cursor: pointer;
  background: none;
  transition: 0.3s;
  font-weight: bold;
  color: #666;
}

.tab-btn.active {
  background: #fff;
  color: #007bff;
  border-bottom: 2px solid #007bff;
}

.tab-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tab-content input, .tab-content textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.send-btn {
  background: #007bff;
  color: white;
  border: none;
  padding: 10px;
  border-radius: 4px;
  cursor: pointer;
}

.send-btn:hover {
  background: #0056b3;
}

.tab-content.hide-me {
  display: none !important;
}


/* TESTIMONIALS */
.testimonial-wrapper {
  max-width: 900px;
  height: 500px;
  margin: 40px auto;
  padding: 40px;
  background: #ffffff;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  text-align: center;
  position: relative;
  transition: transform 0.3s ease;
  
  display: flex;
  flex-direction: column;
  justify-content: center; 
}

.testimonial-wrapper:hover {
  transform: translateY(-5px);
}

#testimonial-content {
  flex-grow: 1; 
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: opacity 0.3s ease-in-out;
  overflow: hidden;
}

.testimonial-text {
  font-style: italic;
  font-size: 1.1rem;
  color: #333;
  line-height: 1.6;
}

.testimonial-author {
  margin-top: 15px;
  color: #3498db;
  font-weight: bold;
}

.controls {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
}

.progress-container {
  flex-grow: 1;
  height: 8px;
  background: #eee;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

#progress-bar {
  width: 0%;
  height: 100%;
  background: #3498db;
  transition: width 0.05s linear;
}

#pause-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 0;
}

#pause-btn img {
  width: 24px;
  height: 24px;
}

#dot-container {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.dot {
  width: 10px;
  height: 10px;
  background-color: #ccc;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot:hover {
  background-color: #999;
}

.dot.active-dot {
  background-color: #3498db;
  transform: scale(1.3);
}

/*###############*/

/*html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  box-sizing: border-box;
  font-size: 1.6rem;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: inherit;
}

.container {
  margin: 0 auto;
  max-width: 110rem;
  min-height: 100vh;
  padding: 4rem;

  font-family: sans-serif;
}*/

section {
  display: grid;
  gap: 2rem;
}

summary {
  display: flex;
  align-items: center;
  background-color: #ffbca8;
  padding: 1rem;
  cursor: pointer;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::before {
  display: inline-block;
  content: "\00d7";
  margin-right: 5px;
  color: #b33c1d;
  font-weight: 900;
  transform: rotateZ(-135deg);
  transition: all 0.4s ease-in-out;
}

summary + p {
  padding: 1rem;
  background: #ffd0c2; 
}

details[open] summary::before {
  transform: rotate(0);
}

details[open] summary + p {
  animation: slide-down 0.5s ease-in-out;
}

@keyframes slide-down {
  0% {
    opacity: 0;
    transform: translateY(-1rem);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
