:root {
  --primary-bg: #F5FFFA;
  --secondary-bg: #E3FDFD;
  --tertiary-bg: #F0FFFF;
  --dark-teal-bg: #004C4C;

  --primary-text: #40514E;
  --secondary-text: #A0522D; /* Sienna */
  --tertiary-text: #006666;
  --white-text: #FFFFFF;
  --light-text-footer: #EAF6F6;

  --btn-bg-start: #008080;
  --btn-bg-end: #004c4c;
  --btn-hover-start: #30e3cb;
  --btn-hover-end: #2bc4ad;

  --border-color-chilli: #008080;
  --border-color-cubic: #D2691E;
  --box-shadow-color: rgba(210, 105, 30, 0.5);
  --hr-color: grey;

  /* Slide Switch Colors */
  --switch-bg-on: #f0a060;
  --switch-bg-off: #004C4C;
  --slider-bg: white;
}

:root.dark-mode {
  --primary-bg: #1a1a1a;
  --secondary-bg: #2a2a2a;
  --tertiary-bg: #3a3a3a;
  --dark-teal-bg: #f0a060;

  --primary-text: #e0e0e0;
  --secondary-text: #f0a060;
  --tertiary-text: #80c0c0;
  --white-text: #FFFFFF;
  --light-text-footer: #a0a0a0;

  --btn-bg-start: #f0a060;
  --btn-bg-end: #f0a060;
  --btn-hover-start: #ffc181;
  --btn-hover-end: #ffb161;

  --border-color-chilli: #80c0c0;
  --border-color-cubic: #f0a060;
  --box-shadow-color: rgba(0,0,0,0.8);
  --hr-color: #555;

  /* Slide Switch Colors - Dark Mode */
  --slider-bg: #e0e0e0;
}

body {
  background-color: var(--primary-bg);
  margin: 0;
  text-align: center;
  font-family: "Merriweather", serif;
  color: var(--primary-text);
}

h1 {
  color: var(--primary-text);
  font-family: "Sacramento", cursive;
  font-size: clamp(2.5rem, 5vw + 1rem, 5.625rem);
  margin: 50px auto 0 auto;
}

h2 {
  font-family: "Montserrat", sans-serif;
  margin-top: 0;
  font-size: clamp(1.5rem, 3vw + 1rem, 2.6rem);
  /* color: var(--primary-text); */
  font-weight: normal;
  padding-bottom: 10px;
}

.top-container h2 {
  color: var(--secondary-text);
}

h3 {
  font-family: "Montserrat", sans-serif;
  margin-top: 0;
  font-size: clamp(1.2rem, 2.5vw + 0.5rem, 1.8rem);
  color: var(--tertiary-text);
}

h4, h5 {
  color: var(--tertiary-text);
}

:root.dark-mode .middle-container h2,
:root.dark-mode .middle-container h3,
:root.dark-mode .middle-container h4,
:root.dark-mode .middle-container h5 {
  color: var(--secondary-text);
}

p {
  line-height: 2;
  font-size: clamp(1rem, 2vw + 0.5rem, 1.2rem);
}

.quote-color {
  color: var(--secondary-text);
  font-size: clamp(0.9rem, 1.8vw + 0.4rem, 1.1rem);
  font-style: italic;
  display: block;
  background-color: var(--tertiary-bg);
  padding: 1.5rem 2rem;
  margin: 2rem auto;
  border-radius: 8px;
  width: 60%;
}

hr {
  border-style: none;
  border-top-style: dotted;
  border-width: 8px;
  border-color: var(--hr-color);
  width: 5%;
  margin: 100px auto;
}

.circular {
  border-radius: 50%;
  background-color: var(--secondary-bg);
  overflow: hidden;
  margin: auto;
  position: relative;
  width: 180px;
  height: 180px;
}

.top-container {
  position: relative;
  padding-top: 100px;
  background-color: var(--secondary-bg);
}

/* Slide Switch Styles */
.switch {
  position: absolute;
  top: 20px;
  left: 20px;
  display: inline-block;
  width: 60px;
  height: 34px;
  z-index: 1000;
}

.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--switch-bg-off);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: var(--slider-bg);
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: var(--switch-bg-on);
}

input:focus + .slider {
  box-shadow: 0 0 0 1px var(--switch-bg-on);
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

.middle-container {
  margin: 100px 0;
  position: relative;
}

.bottom-container {
  padding: 50px 0 20px;
  background-color: var(--dark-teal-bg);
  min-height: 100px;
}

:root.dark-mode .bottom-container {
  background-color: #f0a060;
}

:root.dark-mode .bottom-container a {
  color: #5D4037;
}

:root.dark-mode .bottom-container a:hover {
  color: #FFFFFF;
}

:root.dark-mode .bottom-container .copyright {
  color: #5D4037;
}

:root.dark-mode .middle-container h3 {
  color: #f0a060 !important;
}

:root.dark-mode .projects li a{
  color: #f0a060
}

.star-divider {
  text-align: center;
  font-size: 1.8rem;
  color: var(--secondary-text);
  margin: 2rem 0;
  letter-spacing: 0.2em;
  clear: both;
}

.skill-row {
  width: 50%;
  margin: 100px auto;
  text-align: left;
}

.skills-grid {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  margin: 50px auto;
  width: 80%;
  text-align: left;
}

.technical-skills, .cybersecurity-skills {
  flex: 1;
  min-width: 300px;
  margin: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--border-color-cubic);
  border-radius: 8px;
  box-shadow: 0 4px 8px var(--box-shadow-color);
}

.technical-skills ul, .cybersecurity-skills ul {
  list-style-type: none;
  padding: 0;
}

.technical-skills li, .cybersecurity-skills li {
  margin-bottom: 0.5rem;
}

.pro {
  text-decoration: underline;
}

.underline-text {
  text-decoration: underline;
}

.intro {
  width: 30%;
  margin: auto;
}

.image-crop {
  width: 200px;
  height: 200px;
  overflow: hidden;
  border-radius: 50%;
  position: relative;
  margin: 0 auto;
}

.computer {
  width: 30%;
  height: auto;
  float: left;
  margin-right: 30px;
  border-radius: 50%;
  border-style: solid;
  border-color: var(--primary-bg);
  position: relative;
  max-width: 130%;
  display: block;
  z-index: 1;
}

.chilli-img {
  width: 30%;
  height: auto;
  float: right;
  margin-left: 30px;
  border-radius: 50%;
  border-style: solid;
  border-color: var(--border-color-chilli);
}

.cubic {
  width: 28%;
  height: auto;
  float: left;
  margin-right: 30px;
  border-radius: 50%;
  border-style: solid;
  border-color: var(--border-color-cubic);
}

.awards-quote {
  margin-top: 80px;
}

.contact-me {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding-bottom: 150px;
}

.contact-message {
  width: 40%;
  margin: 20px auto 5px;
  justify-content: center !important;
}

.copyright{
  color: var(--light-text-footer);
  font-size: 0.75rem;
  padding: 20px 0;
}

.top-cloud {
  width: 150px;
  height: auto;
  position: absolute;
  right: 300px;
  top: 40px;
}

.bottom-cloud {
  width: 150px;
  height: auto;
  position: absolute;
  left: 250px;
  bottom: 300px;
}

.mountain-img {
  max-width: 60%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.btn {
  background: var(--btn-bg-start);
  background-image: linear-gradient(to bottom, var(--btn-bg-start), var(--btn-bg-end));
  border-radius: 8px;
  box-shadow: 0px 1px 3px #66BFBF;
  font-family: "Montserrat", sans-serif;
  color: var(--white-text);
  font-size: 20px;
  padding: 10px 20px;
  text-decoration: none;
}

.btn:hover {
  background: var(--btn-hover-start);
  background-image: linear-gradient(to bottom, var(--btn-hover-start), var(--btn-hover-end));
  text-decoration: none;
}

a .btn {
  display: block;
  margin: 50px auto;
  text-align: center;
}

a {
  color: var(--light-text-footer);
  font-family: "Montserrat", sans-serif;
  margin: 10px 20px;
  text-decoration: none;
}
 a:hover {
   color: var(--white-text);
 }

ul {
  list-style-type: none;
  padding: 0;
}

.side-by-side-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  margin: 0 auto;
}

.gems-found, .projects {
  width: 45%;
}

.gems-found li {
  margin-bottom: 1rem;
}

.projects li a{
  display: block;
  margin-top: 5px;
  color: #008080;
}

.projects li {
  margin-bottom: 2rem;
}

.projects a {
  color: var(--light-link-projects);
  margin: 0;
}

.projects a:hover {
  text-decoration: underline;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* For screens smaller than 800px (tablets and mobile phones) */
@media (max-width: 800px) {
  .skill-row {
    width: 80%;
    text-align: center;
  }

  .computer,
  .chilli-img,
  .cubic {
    float: none;
    margin: 20px auto;
    width: 50%;
  }

  .top-cloud,
  .bottom-cloud {
    display: none;
  }

  .intro {
    width: 80%;
  }

  .side-by-side-container {
    flex-direction: column;
    align-items: center;
  }

  .gems-found, .projects {
    width: 90%;
    margin-bottom: 2rem;
  }
}
