:root {
  --text-color: #fff;
  --btn-text-color: #886666;
  --btn-background-color: #de0e0e;
}

.h-100 {
  height: 100%;
}
#container {
  height: 100vh;
  background-image: url("../images/bg.png");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  padding: 50px 0px;
}

@media (max-width: 768px) {
  #container {
    padding: 0px;
  }
}

#main-nav {
  width: 1260px;
  margin: 0 auto 20px;
  background-color: #880e4f;
}

#main-nav ul {
  margin: 0px;
  padding: 0px;
  list-style: none;
  display: flex;
  justify-content: space-evenly;
}

#main-nav ul li {
  width: 100%;
  text-align: center;
}

#main-nav ul li a {
  display: block;
  padding: 10px 20px;
  color: #880e4f;
  background-color: #fce4ec;
  text-decoration: none;
  font-weight: bold;
}

#main-nav ul li a:hover {
  background-color: #ad1457;
  color: white;
}

@media (max-width: 768px) {
  #main-nav {
    position: fixed;
    z-index: 100;
  }
  #main-nav ul li a span {
    display: none;
  }
}

.wrapper {
  background-color: #880e4f;
  width: 1260px;
  margin: 0 auto;
  height: calc(100vh - 200px);
  border-radius: 20px;
  position: relative;
  box-shadow: 12px 10px 18px 1px rgb(30 21 21);
}

.wrapper > .row {
  position: absolute;
  width: 100%;
  height: 100%;
  color: #fff;
}

/* Breakpoints
1400px - xxl
1200px - xl
 992px - lg
 768px - md
 576px - sm
 */

@media (max-width: 1400px) {
  .wrapper,
  #main-nav {
    width: 1160px;
  }
}

@media (max-width: 1200px) {
  .wrapper,
  #main-nav {
    width: 970px;
  }
}

@media (max-width: 992px) {
  .wrapper,
  #main-nav {
    width: 760px;
  }
}

@media (max-width: 768px) {
  .wrapper,
  #main-nav {
    width: 100%;
  }
  .wrapper {
    height: 100%;
  }
  .wrapper > .row {
    position: static;
    width: 100%;
    height: auto;
  }
}

.intro {
  text-align: center;
  height: 100%;
  background-color: #fce4ec;
  color: black;
  padding: 50px 0px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
}

.intro a {
  color: #880e4f;
}

.intro ul {
  margin: 0px;
  padding: 0px;
  list-style: none;
  display: flex;
  justify-content: space-evenly;
}

@media (max-width: 768px) {
  .intro {
    display: none;
  }
}

.content {
  position: relative;
  overflow-x: hidden;
  perspective: 400px;
  border-left: 2px solid #c2185b; /* ← vertical line */
}

.content > section {
  overflow-y: scroll;
}

@media (max-width: 768px) {
  .content {
    position: absolute;
    top: 0px;
    width: 100%;
  }
}

.btn-custom {
  background-color: white;
  color: black;
  border: 2px solid #c2185b;
  font-weight: 600;
  font-size: 1 rem;
  text-decoration: none;
}
.btn-custom:hover {
  background-color: #ad1457;
  color: black;
  border-color: #880e4f;
}

#Home {
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  transition-duration: 1s;
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink {
  50% {
    border-color: transparent;
  }
}

#Home h1 {
  font-family: "Satisfy", cursive;
  overflow: hidden;
  white-space: nowrap;
  font-size: 5em;
  text-shadow: 2px 2px 8px black;
  color: var(--text-color);
  animation: typing 1s steps(20, end) forwards, blink 0.7s step-end infinite;
}

#Home p {
  font-size: 2em;
  color: var(--text-color);
}

#Home img {
  display: none;
}

@media (max-width: 768px) {
  #Home h1 {
    font-size: 3em;
    color: var(--text-color);
  }
  #Home img {
    display: inline-block;
  }
}

#About,
#Skills,
#Projects,
#Contacts {
  padding: 50px;
  position: absolute;
  z-index: 10;
  top: 0px;
  height: 100%;
  width: 100%;
  background-color: #fce4ec;
  color: #880e4f;
  transition-duration: 1s;
  transform: translateX(-100%);
}
#About h2,
#Skills h2,
#Projects h2,
#Contacts h2 {
  letter-spacing: 1px;
  margin-bottom: 20px;
  margin-bottom: 30px;
  border-bottom: 2px solid #c2185b;
}
#About p {
  text-align: justify;
}
#About ul li {
  letter-spacing: 1px;
}
#About ul li span {
  color: #141313;
  font-weight: bold;
}

#About .icon {
  color: black;
  font-size: 2em;
}

#About h4 {
  font-size: 1.2em;
}

@media (max-width: 1200px) {
  #About ul li {
    font-size: 0.9em;
  }
}

.timeline {
  position: relative;
}

.timeline .box {
  color: #3e3b3b;
  padding: 20px;
  border-radius: 20px;
  width: 50%;
  position: relative;
}

.timeline .box.left {
  padding-left: 0px;
}

.timeline .box .inner-box {
  background-color: white;
  padding: 20px;
}

.timeline .box.right {
  position: relative;
  left: 50%;
  padding-left: 30px;
}

.timeline .box:after {
  content: "";
  position: absolute;
  top: 20%;
  z-index: 1;
  width: 20px;
  height: 20px;
  background-color: #c2185b;
  border-radius: 50%;
}

.timeline .box.left:after {
  right: -13px;
}

.timeline .box.right:after {
  left: -7px;
}

.timeline::after {
  content: "";
  height: 100%;
  left: 50%;
  top: 0%;
  position: absolute;
  border: 2px solid #880e4f;
}

.timeline .box::before {
  content: "";
  position: absolute;
  top: 20%;
  z-index: 2;
  border: 10px solid;
}

.timeline .box.left::before {
  border-color: transparent transparent transparent white;
  right: 0px;
}

.timeline .box.right::before {
  border-color: transparent white transparent transparent;
  left: 10px;
}

/* Skills */
.skillset ul {
  margin: 0px;
  padding: 0px;
  list-style: none;
}

.skillset ul li .progress {
  position: relative;
  display: block;
  width: 100%;
  height: 5px;
  border-radius: 20px;
  background-color: white;
  margin-bottom: 20px;
}

.skillset ul li span {
  display: block;
  height: inherit;
  width: inherit;
  position: relative;
}
.skillset ul li .p-90 {
  width: 90%;
}

.skillset ul li .p-80 {
  width: 80%;
}

.skillset ul li .p-50 {
  width: 50%;
}

.skillset ul li .p-40 {
  width: 40%;
}

.skillset ul li span::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  background-color: #ad1457;
  animation: progressbar 1s linear;
}

/* for animation */
@keyframes progressbar {
  from {
    width: 0%;
  }
  to {
    width: 100%;
  }
}

/* PROJECTS */
#Projects .card {
  color: black;
  margin-bottom: 30px;
  overflow: hidden;
}

#Projects .card img {
  transition-duration: 1s;
}
#Projects .card:hover img {
  transform: scale(1.5, 1.5);
}

#Home.show,
#About.show,
#Skills.show,
#Projects.show,
#Contacts.show {
  transform: translateX(0%);
}

@media (max-width: 768px) {
  #About,
  #Skills,
  #Projects,
  #Contacts {
    margin-top: 20px;
  }
}

/* SHARED POPUP FOR ALL PROJECTS */
#projectOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.6);
  z-index: 200;
  display: none;
}

#projectPopup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 30px 40px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  text-align: center;
  z-index: 201;
  border-radius: 15px;
  width: 90%;
  max-width: 420px;
  display: none;
}

#projectPopup h2 {
  font-size: 24px;
  margin-bottom: 12px;
  color: #5a0076;
}

#projectPopup p {
  font-size: 16px;
  color: #444;
}

#projectPopup button {
  background-color: #8e05c2;
  color: white;
  border: none;
  padding: 10px 22px;
  font-size: 16px;
  border-radius: 8px;
  margin-top: 18px;
  cursor: pointer;
  transition: background 0.3s ease;
}

#projectPopup button:hover {
  background-color: #a91de0;
}

#projectPopup .close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 22px;
  color: #8e05c2;
  cursor: pointer;
}

.profile-pic img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  object-position: center;
}

#Contacts button {
  margin-top: 20px;
  background-color: #880e4f;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

#Contacts button:hover {
  background-color: #c2185b;
}

.contact-box {
  background-color: #ffeef5;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  max-width: 500px;
  font-size: 16px;
  line-height: 1.6;
}

.contact-box a {
  color: #880e4f;
  text-decoration: none;
  font-weight: 500;
}

.contact-box a:hover {
  text-decoration: underline;
}

.qr-section {
  text-align: left;
  margin-top: 20px;
  padding: 10px;
}

.qr-code {
  width: 100px; /* Slightly reduced for better balance */
  margin-top: 0px;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); /* a little stronger for depth */
  transition: transform 0.3s ease;
}

.qr-code:hover {
  transform: scale(1.05); /* adds a modern hover zoom */
}

.qr-section p {
  margin-top: 8px;
  font-size: 1rem;
  color: #800040; /* matching your maroon shade */
  font-weight: 500;
}
