@font-face {
  font-family: "SF Pro Display";
  src: url("fonts/SFPRODISPLAYREGULAR.OTF") format("opentype");
  font-weight: normal;
  font-style: normal;
}

html,
body {
  width: 100%;
  background-color: #e9ebec;
  color: #3d3d3d;
  font-family: "SF Pro Display", sans-serif;
}

section,
header,
footer {
  background: transparent;
  text-align: center;
}

footer {
  position: relative;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  background-color: transparent;
  padding: 10px;
}

.mode-toggle-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border: 2px solid white;
  background: white;
  border-radius: 50%;
  cursor: pointer;
  transition: background 1s, border-color 1s;
}

.mode-toggle-btn:hover {
  background: #0c151d;
  border-color: #0c151d;
  color: white;
}

.profile-card {
  display: flex;
  align-items: center;
  padding: 15px;
  border-radius: 10px;
  max-width: 100%;
  margin: 20px auto;
  justify-content: center;
}

.profile-pic-square {
  position: relative;
  width: 120px;
  height: 150px;
  border: 3px solid #004400;
  box-sizing: border-box;
  margin-top: 20px;
  border-radius: 10px;
}

.profile-pic-square img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 7px;
}

.profile-info {
  margin-left: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.profile-info h1 {
  margin: 0;
  font-size: 46px;
  font-weight: bold;
}

.profile-info p {
  margin: 5px 0;
  font-size: 22px;
}

.social-icons {
  display: flex;
  gap: 10px;
  margin-top: 5px;
}

.social-icons a {
  text-decoration: none;
  font-size: 25px;
  color: #3d3d3d;
  transition: background-color 1s ease;
}

.social-icons a:hover {
  color: #004400;
}

.custom-btn {
  width: 200px;
  display: inline-block;
  margin: 10px 10px;
  padding: 12px 20px;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 1s ease;
  background-color: white;
  color: #3d3d3d;
  border: none;
}

.custom-btn:hover {
  background-color: #004400;
  color: white;
}

.custom-btn.active {
  background-color: #004400;
  color: white;
}

.work-card {
  justify-content: center;
  display: flex;
  background-color: white; /* light background */
  border-radius: 10px;
  padding: 5px;
  width: 700px;
  margin: 20px auto;
}

.toggle-btn {
  width: 350px;
  display: inline-block;
  margin: 10px 10px;
  padding: 12px 20px;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.6s ease;
  background-color: white;
  color: #3d3d3d;
  border: none;
}

.toggle-btn:hover {
  background-color: #d7d7d7;
}

.toggle-btn.active {
  background-color: #d7d7d7;
}

.content-section {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin-top: 20px;
}

.about-card {
  display: flex;
  align-items: center;
  padding: 15px;
  border-radius: 10px;
  max-width: 100%;
  margin: 20px auto;
  justify-content: center;
}

.skills-card {
  display: grid;
  grid-template-columns: repeat(4, 2fr); /* 2 columns */
  padding: 15px;
  border-radius: 10px;
  max-width: 100%;
  margin: 25px;
  font-weight: bold;
}

.skill-item i {
  align-items: center;
  padding: 25px;
  border-radius: 10px;
  max-width: 100%;
  margin: 25px auto;
  justify-content: center;
  font-size: 75px;
}

.contact-info {
  align-items: center;
  padding: 15px 0px 0px 5px;
  border-radius: 10px;
  max-width: 20%;
  margin: 20px auto;
  justify-content: center;
  border: #004400 solid 3px;
  background-color: white;
  color: #3d3d3d;
}

.flip-card {
  background-color: transparent;
  width: 360px;
  height: 225px;
  perspective: 1000px;
  margin: 20px auto;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 1s;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 10px;
  overflow: hidden;
  background-color: rgb(215, 215, 215);
  text-align: justify;
}

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

.flip-card-back {
  background-color: #004400;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transform: rotateY(180deg);
  padding: 20px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 columns */
  gap: 20px;
  max-width: 700px;
  margin: 40px auto;
}

.link-btn {
  width: 40px;
  height: 40px;
  border: 10px solid white;
  background: white;
  border-radius: 50%;
  cursor: pointer;
  transition: background 1s, border-color 1s;
  justify-content: center;
}

.link-btn:hover {
  background: #0c151d;
  border-color: #0c151d;
  color: white;
}

.jokes {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 30px 0;
  text-align: center;
}

.joke-item h2 {
  margin: 0;
  font-size: 24px;
  font-weight: bold;
}

.joke-item p {
  margin: 5px 0 0;
  font-size: 14px;
  line-height: 1.4;
}

.table {
  width: 75%;
  margin: 30px auto;
  border-collapse: collapse;
  border-radius: 10px;
  overflow: hidden;
  background-color: #d7d7d7;
}

.table th,
.table td {
  border: none;
  padding: 12px 15px;
  text-align: justify;
  vertical-align: top;
}

.education {
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 30px;
  flex-wrap: wrap;
}

.card {
  width: 18rem;
  background-color: #d7d7d7;
  font-weight: bold;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.card-img-top {
  width: 100%;
  height: 180px;
  object-fit: contain;
  background: d7d7d7;
  padding: 10px;
}

.card-body h5 {
  font-weight: bold;
  font-size: 18px;
}

.card-body p {
  margin: 0;
  font-size: 16px;
  font-weight: normal;
}

.slider-container {
  position: relative;
  width: 90%;
  margin: 0 auto;
  min-height: 200px;
}

.slide {
  display: none;
  text-align: justify;
}

.slide.active {
  display: block;
}

.slider-buttons {
  text-align: center;
  margin-top: 20px;
}

.slider-buttons button {
  padding: 8px 16px;
  margin: 0 10px;
  font-weight: bold;
  background-color: #004400;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.section-divider {
  border-top: 5px dotted black;
  width: 80%;
  margin: 40px auto;
}

.card-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 20px;
  overflow-x: auto;
  padding: 20px 0;
}

.card {
  min-width: 220px;
  flex: 0 0 auto;
  border-radius: 10px;
}

.card-body {
  background-color: #d7d7d7;
}

.slide {
  text-align: center;
}
