@import url("https://fonts.googleapis.com/css2?family=Hind+Mysuru:wght@300;400;500;600;700&display=swap");
/* https://fonts.google.com/specimen/Hind+Mysuru */

.hind-mysuru-light {
  font-family: "Hind Mysuru", serif;
  font-weight: 300;
  font-style: normal;
}

.hind-mysuru-regular,
p {
  font-family: "Hind Mysuru", serif;
  font-weight: 400;
  font-style: normal;
}

.hind-mysuru-medium,
h3 {
  font-family: "Hind Mysuru", serif;
  font-weight: 500;
  font-style: normal;
}

.hind-mysuru-semibold,
h2 {
  font-family: "Hind Mysuru", serif;
  font-weight: 600;
  font-style: normal;
}

.hind-mysuru-bold,
h1 {
  font-family: "Hind Mysuru", serif;
  font-weight: 700;
  font-style: normal;
}

/* Light Theme */
html[data-theme="light"] {
  --text: #0c0d0e;
  --background: #f5f7f9;
  --primary: #3781ca; /*#0056b3;*/
  --secondary: #87baed; /*#b8b3c2;*/
  --accent: #459ef6; /*#559ce7;*/
}

/* Dark Theme */
html[data-theme="dark"] {
  --text: #f1f2f3;
  --background: #06080a;
  --primary: #367fc9; /*#4da3ff;*/
  --secondary: #124578; /*#423d4c;*/
  --accent: #0961b9; /*#185eaa;*/
}

body {
  color: var(--text);
  background-color: var(--background);
  transition: all 300ms ease;
}

* {
  margin: 0;
  padding: 0;
  font-family: "Hind Mysuru", serif;
}

html {
  scroll-behavior: smooth;
}

p {
  font-size: large;
  padding: 1rem;
}

img {
  pointer-events: none;
}

/* DEKSTOP NAV */

nav,
.nav-links {
  display: flex;
  background-color: var(--primary);
  color: var(--background);
}

nav {
  justify-content: space-around;
  align-items: center;
  height: 10vh;
}

.nav-links {
  gap: 2rem;
  list-style: none;
  font-size: 1.5rem;
}

.nav-link-item {
  color: var(--background);
  text-decoration: none;
}

.nav-link-item:hover {
  color: var(--secondary);
}

.logo {
  font-size: 2rem;
}

/* HAMBURGER-MENU todo */

#hamburger-nav {
  display: none;
}

.hamburger-menu {
  position: relative;
  display: inline-block;
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 24px;
  width: 30px;
  cursor: pointer;
}

/* SECTION */

.section-div {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center; /* Vertical centering to be used in combination with display: flex */
  gap: 3%;
  min-height: fit-content;
  max-width: 70%;
  min-width: fit-content;
  /*todo: remove*/
  /* border-style: solid;
  border-color: blue; */
}

.section-title {
  font-size: 300%;
  justify-content: center;
  color: var(--primary);
}

section {
  display: flex;
  justify-content: center;
  min-height: fit-content;
  padding: 2vh 10%;
  box-sizing: border-box;
  margin-bottom: 5%;
  /*todo: remove*/
  /* border-style: solid;
  border-color: red; */
}

#title-name {
  font-size: 8em;
  color: var(--primary);
}

[data-theme="dark"] #title-name {
  color: var(--text);
}

#profile-pic {
  max-width: 30%;
  height: auto;
  border-radius: 50%;
  margin: auto 0;
  object-fit: contain;
}

#profile-div {
  flex-direction: row;
  height: 85vh;
}

#profile-bio {
  text-align: center;
  align-items: center;
  justify-content: center;
  max-width: 60%;
}

#profile-buttons {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 1rem;
}

.profile-icons {
  max-width: 1rem; /* https://www.iconfinder.com/search?q=&family=evericons&price=free */
  height: auto;
}

#p-cv,
#p-contact {
  padding: 0.3em;
  font-size: 1rem;
  margin-top: 0.4rem;
}

.btn {
  transition: all 300ms ease;
  padding: 0.5rem;
  gap: 1rem;
  width: fit-content;
  border-radius: 2rem;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  background-color: var(--primary);
  color: var(--background);
}

.btn:hover {
  cursor: pointer;
  background-color: var(--secondary);
  color: var(--text);
}

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

.scrolling {
  margin: 1em auto;
  height: 2.6em;
  overflow: hidden;
  width: 100%;
}

.flip-ul,
.flip {
  height: 13.5em;
  margin: 0px;
  padding: 0px;
  width: 100%;
}

.flip {
  list-style-type: none;
  margin: 0.4em auto;
  height: 1em !important;
  font-size: 2em;
  width: 100%;
}

.t {
  animation-name: titleflip;
  animation: titleflip 10s ease-in-out infinite;
}

@-webkit-keyframes titleflip {
  0%,
  20% {
    transform: translate(0px, -12.5em);
  }
  20%,
  40% {
    transform: translate(0px, -9.375em);
  }
  40%,
  60% {
    -webkit-transform: translate(0px, -6.44em);
  }
  60%,
  80% {
    transform: translate(0px, -3.44em);
  }
  80%,
  100% {
    transform: translate(0px, -0.315em);
  }
  100%,
  0% {
    transform: translate(0px, -12.5em);
  }
}

/* ABOUT SECTION */

#about-div {
  height: 40vh;
  justify-content: center;
  min-width: 80%;
}

/* EXPERIENCE SECTION */

.design-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--background);
  border: 2px solid var(--accent);
  min-height: 100vh;
  padding: 100px 0;
  font-family: Jost;
}

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

.timeline {
  width: 80%;
  height: auto;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.timeline-content {
  padding: 20px;
  background: var(--secondary); /*#1f1f1f;*/
  -webkit-box-shadow: 5px 5px 10px var(--accent), -5px -5px 10px var(--primary);
  box-shadow: 5px 5px 10px var(--accent), -5px -5px 10px var(--primary);
  border-radius: 5px;
  color: var(--text);
  padding: 1rem;
  transition: 0.4s ease;
  overflow-wrap: break-word !important;
  margin: 1rem;
  margin-bottom: 20px;
  border-radius: 6px;
}

.timeline-component {
  margin: 0px 20px 30px 20px;
}

@media screen and (min-width: 768px) {
  .timeline {
    display: grid;
    grid-template-columns: 1fr 3px 1fr;
  }
  .timeline-middle {
    position: relative;
    background-image: linear-gradient(45deg, var(--primary), var(--secondary), var(--accent));
    width: 3px;
    height: 100%;
  }
  .main-middle {
    opacity: 0;
  }
  .timeline-circle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-image: linear-gradient(45deg, var(--primary), var(--text), var(--accent));
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
  }
}

#timeline-dashed {
  background: repeating-linear-gradient(
    var(--primary),
    var(--primary) 10px,
    var(--background) 10px,
    var(--background) 20px,
    var(--accent) 20px,
    var(--accent) 30px
  );
}

/* FOOTER SECTION */

footer {
  background-color: var(--secondary);
  text-align: center;
  padding: 1rem 0;
}

#footer-text {
  font-size: 0.875rem;
}

/* EDUCATION SECTION */

.card-row-div {
  display: flex;
  justify-content: center;
  flex-direction: row;
  gap: 2rem;
  flex-wrap: wrap;
  margin: 3rem;
}

.card-div {
  border-radius: 1rem;
  padding: 1rem;
  text-align: center;
  width: 40%;
  background-color: var(--secondary);
  display: flex;
  justify-content: space-around;
  flex-direction: column;
}

#education-div {
  min-height: 20vh;
}

.fa-school,
.fa-user-graduate,
.fa-scroll {
  font-size: 2rem;
}

/* CONTACT SECTION */

.contact-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 2.5rem;
}

.contact-link:hover {
  color: var(--secondary);
}
