* {
  margin: 0;
  padding: 0.5rem;
  box-sizing: border-box;
  font-family: "Palatino";
}

html {
  scroll-behavior: smooth;
}

/* fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

body {
  background-color: #120C1A;
  opacity: 1;
  background: #120C1A
    radial-gradient(#552e7153 10%, transparent 1%);
    background-size: 20px 20px;
  color: #E6CAE8;
  text-align: center;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background:  transparent;
  padding: 0rem;

  z-index: 1000;
  isolation: isolate;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-left, .nav-right {
  display: flex;
}

#currentPath {
  display: inline-block;
  font-weight: regular;
  color: white;
}

.blink {
  animation: blink 3.5s infinite;
}

@keyframes blink {
  0%, 50%, 100% { opacity: 1; }
  25%, 75% { opacity: 0; }
}

/* Optional: style links */
#currentPath a {
  color: white;
  text-decoration: none;
}

.pathway,
.nav {
  margin: 0;
  padding: 0;
}

.pathway ul{
  display: flex;
  gap: 5px;
  padding: 0;
  margin: 0;
  list-style: none; 
}

.pathway li {
  margin: 0;
  padding: 0;
}

nav {
  display: flex;
  flex-direction: column;
  align-items: left;
  gap: 0rem;
}

nav ul {
  display: flex;
  gap: 0rem;
  list-style: none;
}

nav a {
  color: #e5e7eb;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.2s ease;
}

nav a:hover {
  color: #b38f8c;
  transform: translateY(-2px);
}


/* Hero */
.hero {
  height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.hero span {
  color: #A380B3;
}

.hero img {
  width: 45px;
  height: 45px;
  object-fit:contain;
}

.hero svg{
  display: inline;
  padding: 0%;
  margin: 0;
  transition:0.3s ease;
}

.hero h5{
  padding-top: 17px;
}

.hero svg:hover{
  transform: translateY(-5px);
}

.hero button {
  margin-top: 1rem;
  padding: 0.6rem 1.4rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  background: #552E71;
  color: #ffffff;
  transition: all 0.3s ease;
  font-family: "Ogg Trial", Ogg-Text-TRIAL, Book-Italic, Arial, sans-serif;
}

.hero button:hover {
  background: #a32bff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(203, 56, 248, 0.4);
}

/* Sections */
section {
  padding: 2rem 2rem;
  max-width: 900px;
  background-color: transparent;
  text-align: left;
  scroll-margin-top: 80px;
}

section h2,
section h3 {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

section h2.visible,
section h3.visible {
  opacity: 1;
  transform: translateY(0);
}

section#home,
section#projects,
section#cards, 
section#contact,
section#templates{
  background-color: transparent;
  margin: auto;
}


.templates{
  display: flex;
  width: 100%;
  background-color: #1A1025;
  box-shadow: 0px 10px 12px #020617;
  border-radius: 12px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.templates img{
  width: 50px;
  height: 50px;
  padding: 0rem;
  object-fit:contain;
  transition: 0.3s ease;
}

.site{
  height: 100px;
  width: 100px;
  text-align: center;
}

.site img{
  display: inline;
  padding: 0%;
  margin-right: 5px;
  margin-left: 5px;
  transition:0.3s ease;
}

.site img:hover{
  transform: translateY(-5px);
}

.cards{
  display: flex;
  padding: 0;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.tools{
  width: 270px;
  padding: 0.5rem;
  background-color:#1A1025;
  border-radius: 12px;
  border: 0px solid #A380B3;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0px 10px 12px #020617;
}

.tools img {
  width: 40px;
  height: 40px;
  padding: 0rem;
  object-fit:contain;
  transition: 0.3s ease;
}

.langs{
  width: 270px;
  padding: 0.5rem;
  background-color:#1A1025;
  border-radius: 12px;
  border: 0px solid #A380B3;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0px 10px 12px #020617;
}


.langs img {
  width: 40px;
  height: 40px;
  padding: 0rem;
  object-fit:contain;
  transition: 0.3s ease;
}

.clicks{
  width: 270px;
  padding: 0.5rem;
  background-color:#1A1025;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0px 10px 12px #020617;
  }

.clicks svg{
  width: 40px;
  height: 40px;
  padding: 0rem;
  transition: 0.3s ease;
}

.clicks-row{
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  align-items: center;
}

.clicks button{
  background-color: #1A1025;
  border-radius: 12px;
  border: 0px;
  cursor: pointer;
  padding: 0rem;
  margin: 0rem;
  display: flex;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0px 0px 15px #A380B3;
}
.clicks button:hover{
  background-color: #552E71;
}
.skill {
  width: 40px;
  height: 40px;
  padding: 0%;
  position: relative;
  display: inline-block;
}

.bubble {
  position: absolute;
  bottom: 130%;
  left: 50%;
  transform: translateX(-50%);
  
  background: #A380B3;
  color: white;
  padding: 6px 10px;
  font-size: 13px;
  border-radius: 8px;

  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 10;
}

/* arrow */
.bubble::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: #A380B3 transparent transparent transparent;
}

.skill:hover .bubble {
  opacity: 1;
}

/* Projects */

.projects-grid{
  background: #1A1025;
  display: flex;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0px 10px 12px #020617;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
}

.CalorieScope {
  background: #020617;
  max-width: 300px;
  max-height: 600px;
  padding: 1rem;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 8px 20px rgba(192, 112, 44, 1);
  justify-content: center;
}

.CalorieScope:hover {
  transform: translateY(-5px);
}

.CalorieScope a {
  color: #BE6F2A;
  text-decoration: none;
  display: block;
  padding: 0rem;
}

.CalorieScope img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  margin-bottom: 1rem;
  display: block;
  justify-content: center;
}

.contact{
  display: flex;
  width: 100%;
  background-color: #1A1025;
  box-shadow: 0px 10px 12px #020617;
  border-radius: 12px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.links svg{
  display: inline;
  padding: 0%;
  margin-right: 5px;
  margin-left: 5px;
  transition:0.3s ease;
}

.links svg:hover{
  transform: translateY(-5px);
}

/* Footer */
footer {
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 0%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 10px;
  background: #1A1025;
  text-align: left;
}