/******************** GLOBAL STYLES ********************/
body {
  background-color: #090d19;
  color: #fff;
  font-family: 'Cormorant SC', serif;
  background-image: url(BG.jpg);
  background-size: contain;
  background-repeat: no-repeat;
  overflow-x: hidden;
}

#headunderline {
  height: 2px;
  background-color: yellow;
  width: 100%;
}

/* General navbar style */
.custom-navbar {
  background: rgba(9, 13, 25, 0.85); /* Semi-transparent for glass effect */
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
  z-index: 999;
}

/* Brand logo */
.brand-logo {
  font-size: 1.5rem;
  color: #ccc;
  font-weight: bold;
  transition: color 0.3s ease;
}

.brand-logo:hover {
  color: #fff;
}

/* Navigation links */
.nav-link {
  color: #f0f0f0;
  font-weight: 500;
  position: relative;
  margin: 0 10px;
  padding: 8px 0;
  transition: all 0.3s ease-in-out;
}

/* Animated underline on hover */
.nav-animated::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: 0;
  left: 0;
  background: rgb(255, 255, 112);
  transition: width 0.4s ease-in-out;
}

.nav-animated:hover::after {
  width: 100%;
}

.nav-animated:hover {
  color: rgb(255, 255, 112);
  font-weight: bold;
  transform: scale(1.05);
}

/* Responsive nav-item spacing */
.navbar-nav .nav-item {
  padding: 0 5px;
}

/* Adjust toggler icon color */
.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.3);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23f0f0f0' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(240, 240, 240, 0.7)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Optional: Scroll shrink effect */
.custom-navbar.scrolled {
  background: rgba(9, 13, 25, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
}

/******************** HOME ********************/
.container {
  margin-top: 10%;
}

#name,
#home,
#typed-text {
  color: rgb(255, 255, 112);
  text-align: center;
  font-size: 2rem;
  font-weight: bold;
}

.homeicon ul {
  padding-left: 0;
}

.homeicon ul li {
  list-style: none;
  display: inline;
}

.homeicon ul li i {
  color: rgb(255, 255, 112);
  font-size: 23px;
  transition: all 0.3s ease;
}

.homeicon ul li i:hover {
  color: white;
  font-size: 30px;
}

/******************** ANIMATIONS ********************/
.hidden,
.ef,
.animate-on-scroll,
.animate-about,
.animate-image,
.skill-left,
.resume-animate,
#e,
#d {
  opacity: 0;
  transition: all 0.8s ease-out;
}

.visible {
  opacity: 1;
  transform: translateY(0) !important;
}

.hidden {
  transform: translateY(20px);
}

.animate-about,
.resume-animate,
.skill-left {
  transform: translateY(40px);
}

.animate-image {
  transform: translateX(-40px);
}

.animate-left {
  transform: translateX(-40px);
}

.animate-right {
  transform: translateX(40px);
}

/******************** PROFILE RING ANIMATION ********************/
.profile-wrapper {
  position: relative;
  display: inline-block;
  padding: 2px;
  border-radius: 50%;
}

.profile-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  border-radius: 50%;
  border: 2px solid transparent;
  background: conic-gradient(silver 0deg, transparent 120deg, transparent 360deg);
  z-index: 1;
  animation: spinRing 2s linear infinite;
}

@keyframes spinRing {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.profile-wrapper img {
  display: block;
  width: 100%;
  border-radius: 50%;
  position: relative;
  z-index: 2;
  box-shadow: -30px 10px 40px #17203a;
}

/******************** ABOUT ********************/
#about {
  text-align: center;
  color: rgb(255, 255, 112);
}

#aboutimg {
  box-shadow: -30px 10px 50px #17203a;
  border: solid gray 1px;
}

#aboutdb {
  background-color: #090d19;
  color: #fff;
  border: 2px solid #fff;
  padding: 8px 16px;
  font-size: 16px;
  margin: 10px 2px 0 60px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.4s;
  box-shadow: -30px 10px 50px #17203a;
}

#aboutdb:hover {
  background-color: rgb(255, 255, 78);
  color: #020202;
}

.col-sm-8 span {
  color: rgb(245, 245, 168);
  font-weight: 550;
}

.col-sm-8 ul {
  list-style-type: none;
}

/******************** SERVICE ********************/
#service {
  text-align: center;
  color: rgb(255, 255, 112);
  margin-bottom: -50%;
}

#e {
  background-color: #090d19;
  border: 1px solid #17203a;
  box-shadow: -30px 10px 50px #17203a;
  margin-top: 9%;
  transform: scale(0.9);
  transition: all 0.6s ease-out;
}

#e.visible {
  transform: scale(1);
}

.card:hover {
  color: rgb(255, 255, 112);
}

.card i {
  font-size: 110px;
  color: #17203a;
  margin: 10% 0 10% 25%;
  transition: transform 0.4s ease;
}

.card i:hover {
  transform: scale(1.1);
  color: rgb(255, 255, 112);
}

.card h3 {
  color: rgb(126, 116, 116);
  font-weight: bold;
}

/******************** SKILLS ********************/
#MySkills {
  text-align: center;
  color: rgb(255, 255, 112);
  margin: 0;
}

#d {
  padding: 20px;
  background-color: #090d19;
  border: 3px solid #17203a;
  box-shadow: -30px 10px 50px #17203a;
  transform: translateY(30px);
}

#d.visible {
  transform: translateY(0);
}

.skill-bar h3 {
  color: rgb(255, 255, 112);
  font-size: 1.2rem;
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.progress {
  width: 100%;
  height: 3px;
  background-color: #17203a;
  overflow: hidden;
  margin-top: 30px;
}

.progress-bar {
  width: 0;
  transition: width 2s ease-out;
}

/******************** RESUME ********************/
#Resume {
  text-align: center;
  color: rgb(255, 255, 112);
  margin-bottom: -60px;
}

#resumeicon {
  margin-left: 21%;
  font-size: x-large;
  color: #17203a;
  margin-top: 20%;
}

.vl {
  border-left: 2px solid rgb(126, 116, 116);
  padding: 20px;
}

.vl p {
  margin: 0;
}

/******************** PORTFOLIO ********************/
#protfolio {
  text-align: center;
  color: rgb(255, 255, 112);
}

.ef {
  width: 20rem;
  margin-top: 10%;
  background-color: #090d19;
  border: 3px solid #17203a;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transform: translateY(50px);
}

.ef img {
  box-shadow: -30px 10px 50px #17203a;
  width: 100%;
  display: block;
  transition: transform 0.3s ease;
}

.ef:hover img {
  transform: scale(1.05);
}

.ef:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.ef.visible {
  transform: translateY(0);
}

/******************** CONTACT ********************/
#contact {
  text-align: center;
  color: rgb(255, 255, 112);
}

#say {
  font-size: xx-large;
  color: #17203a;
}

#says {
  color: rgb(255, 255, 78);
  margin-left: 8%;
}


.vlc {
  width: 60%;
  padding: 1px;
}

.vlc p {
  color: rgb(170, 158, 158);
  margin-left: 5%;
}

.vlc form {
  width: 85%;
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-left: 10px;
  margin-top: 15px;
}

#exampleInputEmail1,
#exampleFormControlTextarea1 {
  width: 77%;
  border: solid #17203a;
  margin-left: 7%;
  margin-top: 8%;
}

#exampleFormControlTextarea1 {
  height: 100px;
}

#mesbot {
  background-color: #090d19;
  color: #fff;
  border: 2px solid #fff;
  padding: 8px 16px;
  font-size: 16px;
  /* margin: 9% 2% 0 30%; */
  font-weight: bold;
  cursor: pointer;
  box-shadow: -30px 10px 50px #17203a;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#mesbot:hover {
  background-color: rgb(255, 255, 78);
  color: #020202;
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255, 255, 112, 0.5);
}
.form-control:focus{
  color:white;
  font-family: 'Times New Roman', Times, serif;
}
.form-control {
  color: white;
  font-family: 'Times New Roman', Times, serif;
}


/******************** RESPONSIVE ********************/
@media (max-width: 787px) {
  .container {
    margin-top: 25%;
  }
}

@media (min-width: 1170px) {
  #pro-con {
    margin-bottom: 14%;
  }
}

@media (min-width: 1485px) {
  #pro-con {
    margin-bottom: 20%;
  }
}

@media (min-width: 1965px) {
  #pro-con {
    margin-bottom: 27%;
  }
}

#e,
#d,
.ef {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}

#e.visible,
#d.visible,
.ef.visible {
  opacity: 1;
  transform: translateY(0);
}