:root {
  --gold-color: #bca368;
}

body {
  margin: 40px;
}

.background {
  position: relative;
  width: 100vw;
  height: 100vh;
  margin: 0px auto 60px auto;
  max-width: 200px;   /* our page width */
  min-width: 200px;
  max-height: 200px;   /* our page width */
  min-height: 200px;
}

.background-img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: opacity 0.5s ease; /* Smooth fade-in and fade-out */
}

.flicker-img {
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: opacity 0.5s ease; /* Smooth fade-in and fade-out */
  animation: flicker 3.0s infinite;
  -webkit-animation: flicker 3.0s infinite;
}

@keyframes flicker {
  0%, 10%, 20% { opacity: 1; }
  5%, 15%, 25% { opacity: 0; }
  30% { opacity: 1; }
  35% { opacity: 0; }
  100% { opacity: 0; }
}

@-webkit-keyframes flicker {
  0%, 10%, 20% { opacity: 1; }
  5%, 15%, 25% { opacity: 0; }
  30% { opacity: 1; }
  35% { opacity: 0; }
  100% { opacity: 0; }
}

.clickable, .draggable {
  position: absolute;
  z-index: 1;
  width: 150px;
  height: 150px;
  cursor: pointer;
  transition: opacity 0.5s ease; /* Smooth fade-in and fade-out */
}

#img2 {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 4;
  transition: opacity 0.5s ease; /* Smooth fade-in and fade-out */
  opacity: var(--switch-from-opacity);
}

#img2:hover {
  opacity: var(--switch-to-opacity);
}

/* Material Design Card Styles */
.card-container {
  position: relative;
  width: 100%;
  gap: 20px;
  padding: 20px;
  z-index: 3;
  display: flex;
  justify-content: space-around;
}

.card {
  padding: 20px;
  margin: 20px;
  max-width: 1000px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); /* Soft shadow */
  background-color: var(--secondary-color);
  color: var(--text-color);
}

.card:hover {
  transform: scale(1.1); /* Scale the card on hover */
}

.founder-image {
  width: 200px;
  height: 200px;
  border-radius: 10%;
  margin-bottom: 20px;
}

.card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  align-items: center; 
}

@media (max-width: 768px) {
  .card-container {
    flex-direction: column; /* Stack items vertically */
  }
}

h2 {
  margin: 0;
  font-size: 1.5em;
}

p {
  margin: 5px 0 15px;
  color: #888888;
  font-size: 1.2em;
}

@media (max-width: 1000px) {
  p {
    font-size: 0.7em;
    color: #888888;
  }
}

.subtitle {
  color: #888888;
  font-size: 1.0em;
}

.bio {
  margin-top: 10px;
  font-size: 1.1em;
}

.icons img {
  width: 24px;
  height: 24px;
  margin-right: 10px;
}

.icons {
  display: flex;
  margin-top: 30px;
}

.icon-wrapper {
  position: relative;
  margin-right: 15px;
  font-size: 16px;
}

.icon-image {
  font-size: 32px;
}

.icon-image:hover {
  color: var(--gold-color);
}

.bubble {
  display: none;
  position: absolute;
  top: 45px;
  left: -5px;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.bubble::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 10px;
  border-width: 0 10px 10px;
  border-style: solid;
  border-color: transparent transparent #ddd transparent;
}

.bubble::after {
  content: '';
  position: absolute;
  top: -8px;
  left: 12px;
  border-width: 0 8px 8px;
  border-style: solid;
  border-color: transparent transparent white transparent;
}

.bubble a {
  text-decoration: none;
  color: #555;
}

.bubble a:hover {
  color: var(--gold-color);
}

#email-bubble-card1, #instagram-bubble-card1, 
#email-bubble-card2, #instagram-bubble-card2 {
  transition: opacity 1s ease-out, visibility 0s linear 1s; /* Fade-out with delay for visibility */
  opacity: 1;
  visibility: visible;
}

#email-bubble-card1.hidden, #instagram-bubble-card1.hidden, 
#email-bubble-card2.hidden, #instagram-bubble-card2.hidden {
  opacity: 0;
  visibility: hidden; /* Make invisible but still in the flow */
}

.title-section {
  margin: 10px;
  padding: 20px 40px 10px 40px;
  text-decoration: none;
  text-align: center;
  font-size: 20px;
  font-weight: 400;

  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); /* Soft shadow */
  background-color: var(--secondary-color);
  color: var(--text-color);
}

.title-section:hover {
  transform: scale(1.1); /* Scale the card on hover */
}

.middle-section {
  padding: 32px;
  text-decoration: none;
  text-align: center;
  font-size: 20px;
  font-weight: 700;

  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); /* Soft shadow */
  background-color: var(--secondary-color);
  color: var(--text-color);
}

.middle-section:hover {
  transform: scale(1.01); /* Scale the card on hover */
}

.bottom-section {
  margin-top: 50px;
  margin-bottom: 30px;
  margin: 50px 20px 30px 20px;
  text-decoration: none;
  text-align: center;
}

/* Dark Theme */
.dark-theme {
  --primary-color: #121212;
  --secondary-color: #1e1e1e;
  --text-color: #ffffff;
  --switch-from-opacity: 0.0;
  --switch-to-opacity: 1.0;
}

/* Light Theme */
.light-theme {
  --primary-color: #ffffff;
  --secondary-color: #f5f5f5;
  --text-color: #000000;
  --switch-from-opacity: 1.0;
  --switch-to-opacity: 0.0;
}

/* Apply Theme Variables */
#theme-container {
  background-color: var(--primary-color);
  color: var(--text-color);
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
}

#contact {
  background-color: var(--secondary-color);
  padding: 40px 200px;
  margin: 40px auto;
  max-width: 1000px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); /* Soft shadow */
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

@media (max-width: 1000px) {
  #contact {
    padding: 40px 20px;
  }
}

#contact:hover {
  transform: scale(1.1); /* Scale the card on hover */
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-control {
  color: var(--text-color);
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
}

label i {
  margin-right: 12px;
  color:  var(--text-color);
  font-size: 18px;
}

label i:hover {
  color: var(--gold-color);
}

input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

textarea {
  width: 100%;
  height: 150px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

input::placeholder, 
textarea::placeholder {
    color: #888; /* Set the desired color */
    font-style: italic; /* Optional: add styling such as italic */
}

.form-control:focus {
  outline: none !important;
  border-color: var(--gold-color) !important;
  box-shadow: 0 0 5px rgba(255, 255, 255, 0) !important;
}

button {
  background-color: #555555;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

button:hover {
  background-color: var(--gold-color);
}

.input-group-text {
  display: flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  text-align: center;
  white-space: nowrap;
  background-color: var(--primary-color);
  border: 1px solid var(--primary-color);
  border-radius: 0.25rem;
}

