/* General Styles */
body 
{
    background-color: whitesmoke;
    color: #333333;
    transition: background-color 0.4s, color 0.4s;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}

h2{
    color: #017371;
    font-size: clamp(1.8rem, calc(9vw + 1rem), 5rem);
    margin-bottom: 10px;
    margin-left: 25px;
}

/* Dark mode */
.dark-mode {
  background-color: #333333;
  color: whitesmoke;
  
  font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}
/* Header */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #017371;
    border: var(--parent);
    display:flex;
    flex-direction: row;
    margin: -8px;
    justify-content: space-between;
}

.header-left {
  display: flex;
  flex-direction: column;
  row-gap: 10px;
  padding-left: 25px
}

.header-left .profile{
    margin-top: -20px;
    padding-bottom: 10px;
}

.dark-mode-toggle{
    margin-left: -15px;
    padding-bottom: 25px;;
}
.dark-mode-toggle .switch{
  float: left;
  margin-top: 10px; 
 }

.dark-mode-toggle .switch{
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
  margin-left: 10px;
}

.dark-mode-toggle .switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.dark-mode-toggle .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 24px;
  
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.5px;
}

.dark-mode-toggle .slider::before {
  position: absolute;
  content: "";
  height: 24px;
  width: 24px;
  left: 0.01px;
  bottom: 0.01px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

/* When checked */
.dark-mode-toggle input:checked + .slider{
  background-color: #333333;
}

/* Move the circle when checked */
.dark-mode-toggle input:checked + .slider::before {
  transform: translateX(26px);
}

.dark-mode-toggle .icon{
  width: 18px;
  height: 18px;
  margin-left: 3px;
  margin-right: 3px;
}

.dark-mode-toggle input:not(:checked) + .slider .sun{
  opacity: 0.9;
}

.dark-mode-toggle input:not(:checked) + .slider .moon{
  opacity: 0.1;
}

.dark-mode-toggle input:checked + .slider .moon{
  opacity: 0.7;
}

.dark-mode-toggle input:checked + .slider .sun{
  opacity: 0.3;
}


.contact-info {
  display: flex;
  align-items: center;
  margin-top: 10px;
}
.contact-info img {
  width: 30px;
  height: 30px;  
  margin-right: 10px;
}

.header-right {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  row-gap: 10px;
  padding-right: 25px;
}

.header-right .topdiv {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 10px;
}

.topmenu {
  color: whitesmoke;
  margin: 10px;
  padding: 2px;
  font-size: 15px;
  text-decoration:none;
  transition: transform 0.3s ease-in-out;
}

.topmenu:hover {
  color: white;
  font-weight: bolder;
  text-decoration: underline;
  transform: scale(1.25);
  /* Add the styles here */
}

/* Main Content */
main {
    display: flex;
    flex-direction: column;
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px;
}

/* About Me Section */
.about-me {
  display: flex;
  flex-direction: row;
  align-items: center;     /* was center */
  justify-content: space-between; /* was space-between */
  gap: 32px; 
}
.profile-img img {
  position: static;   /* was sticky */
  max-width: 400px;
  border: 12px outset #017371;
  box-shadow: 0 3px 10px gray;
  flex: 0 0 320px;
}

.about-me-text {
  flex-grow: 1 1 0;
  font-size: 20px;
  line-height: 1.6;
}

.about-me-text h1{
  color: #017371;
  font-size: clamp(1rem, calc(2.5vw + 1rem), 5rem);
  margin-bottom: 20px;
  text-align: center;
}

.about-me-text img {
  width: 4vh;
  height: 4vh;
  vertical-align: middle;
}


.about-me-text p { margin: 0 0 1rem; }

/* Responsive: stack image over text on narrow screens */
@media (max-width: 900px) {
  .about-me {
    flex-direction: column;
    align-items: center;
    text-align: center; /* keep text left-aligned; change to center if you prefer */
  }
  .profile-img { flex: 0 0 auto; }
}

/* Skills Section*/

.all_skills {
  display: flex;
  flex-direction: row;
  flex-flow: wrap;
  flex: 1 1 auto;
}

.skill {
  border: 2px solid gray;
  display: block;
  background-color: rgba(128, 128, 128, 0.36);
  border-radius: 6px;
  text-align: center;
  margin: 30px;
  padding: 5px;
  width: 200px;
  font-size: 20px;
  box-shadow: 0 3px 10px gray;
  transition: transform 0.3s ease-in-out;
}

.skill:hover{
    transform: scale(1.5);
}

.skill img {
  height: 55px;
  align-items: center;
}


.skills h6 {
  align-items: center;
  font-size: 15px;
  margin-block-start: 50px;
  margin-block-end: 50px;
  font-weight: bold;
  
} 

.skills p {
  align-items: center;
  font-size: 15px;
  margin-block-start: 5px;
  margin-block-end: 5px;
} 

.flex_center {
  display: flex;
  align-items: center;
  justify-content: center;
}

* {box-sizing:border-box}

/* Slideshow container */
.slideshow-container {
  position: relative;
  height: 50vh;
  width: 80vh;
  border: 12px outset #017371;
  box-shadow: 0 3px 10px gray;
  margin: 0 auto;
  overflow: hidden;;
  aspect-ratio: 16 / 9;
  object-fit: cover;;
  transition: transform 0.3s ease-in-out;
}

.slideshow-container:hover{
   transform: scale(1.15);
}

.slideshow-container img, .video { 
  position: absolute;
  top: 0;
  left: 0;  
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%; 
  height: 100%; 
}



.slideshow-container img {
  z-index: 1;
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
}

.slideshow-container:hover img{
  opacity: 0;
  z-index: 0;
  pointer-events: none;
}

.slideshow-container .video {
    z-index: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease-in-out;
  }

.slideshow-container:hover .video {
  z-index: 1;
  opacity: 1;
  pointer-events: auto;
}

/* Hide the images by default */
.mySlides {
  display: none;
}

/* Next & previous buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}

/* Caption text */
.text {
  color: #f2f2f2;
  font-size: 15px;
  padding: 8px 12px;
  position: absolute;
  bottom: 8px;
  width: 100%;
  text-align: center;
  z-index: 2;;
}

/* Number text (1/3 etc) */
.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

/* The dots/bullets/indicators */
.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active, .dot:hover {
  background-color: #717171;
}

/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}