@import url("https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&display=swap");

/* ----- GLOBAL ------ */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Figtree", sans-serif;
  font-style: normal;
  font-optical-sizing: auto;
  font-weight: 400;
  background-color: #fdfffc;
  color: #011627;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
}

body a {
  color: #fdfffc;
}

hr.divider {
  border: none;
  border-top: 2px solid #011627;
  width: 100%;
  display: block;
}

/* ----- SIDEBAR ------ */
.sidebar {
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 56px;
  height: 100%;
  position: fixed;
  margin: 0;
  padding: 0;
  overflow: visible;
  background-color: #fdfffc;
  transition: width 0.3s;
  box-shadow: 1px 2px 5px rgba(0, 0, 0, 0.1);
}

.sidebar:hover {
  width: 200px;
}

.sidebar a {
  display: flex;
  align-items: center;
  padding: 16px;
  color: #011627 !important;
  text-decoration: none;
  position: relative;
  transition: transform 0.2s, background 0.2s, color 0.2s;
}

.sidebar a i {
  width: 28px;
  text-align: center;
  font-size: 1.2rem;
}

/* Mobile */
@media (max-width: 770px) {
  .sidebar {
    width: 50px;
  }
  .sidebar a {
    padding: 14px;
  }
  .sidebar a i {
    font-size: 0.9rem;
  }
}

/* ----- SOCIAL LINKS ----- */
.social-links {
  background: #011627;
  color: #fdfffc !important;
}

.social-links a {
  background: #011627;
  color: #fdfffc !important;
  border-bottom: 1px solid #fdfffc;
}

#linkedin:hover {
  background: #0077b5;
  color: #fdfffc !important;
}

#instagram:hover {
  background: radial-gradient(
    circle at 30% 107%,
    #fdf497 0%,
    #fdf497 5%,
    #fd5949 45%,
    #d6249f 60%,
    #285aeb 90%
  );
  color: #fdfffc !important;
}

#github:hover {
  background: #181717;
  color: #fdfffc !important;
}

/* Tooltip */
.sidebar a .tooltip {
  margin-left: 10px;
  opacity: 0;
  visibility: hidden;
  white-space: nowrap;
  transition: opacity 0.3s;
}

.sidebar:hover a .tooltip {
  opacity: 1;
  visibility: visible;
}

.sidebar a:hover .tooltip,
.sidebar a:hover i {
  color: #fdfffc;
}

.sidebar a:hover {
  background-color: #011627;
}

/* ----- CONTENT SHIFT ON HOVER ----- */
.content {
  z-index: 0;
  margin-left: 56px;
  height: 1000px;
  transition: margin-left 0.3s;
}

@media (max-width: 770px) {
  .content {
    margin-left: 50px;
  }
}

.sidebar:hover ~ .content {
  margin-left: 200px;
}

/* ----- PDF MODAL ----- */
#pdfModal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  text-align: center;
}

#pdfBox {
  position: relative;
  width: 90%;
  height: 90%;
  padding: 16px;
  background: #fdfffc;
  border-radius: 8px;
  box-sizing: border-box;
  overflow: hidden;
}

#pdfViewer {
  width: 100%;
  height: calc(100% - 32px);
  border: none;
}

.pdf-controls {
  display: flex;
  justify-content: center;
  width: 100%;
  gap: 12px;
  padding-bottom: 8px;
  box-sizing: border-box;
}

.pdf-controls button,
.pdf-controls a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  font-size: 1rem;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #011627;
  transition: opacity 0.2s ease;
}

.pdf-controls button:hover,
.pdf-controls a:hover,
.pdf-controls button:focus,
.pdf-controls a:focus {
  opacity: 0.7;
  outline: none;
}

.pdf-controls i {
  font-size: 1.1rem;
  line-height: 1;
}

/* ----- BUY ME A COFFEE ----- */
.coffee-btn {
  height: 45px !important;
  width: 162.75px !important;
}
