html,
body {
  width: 100%;
  margin: 0px;
  padding: 0px;
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  height: 100%;
}
.star {
  position: fixed;
  pointer-events: none;
  will-change: transform, opacity;
  font-size: 18px;
  transform-origin: center;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.6));
  animation-name: starFloat;
  animation-timing-function: cubic-bezier(.2,.9,.3,1);
}

/* star animation */
@keyframes starFloat {
  0% { opacity:1; transform: translate3d(0,0,0) rotate(0deg) scale(1); }
  100% { opacity:0; transform: translate3d(var(--tx,0px), var(--ty,-40px), 0) rotate(var(--rot,360deg)) scale(0.5); }
}

header {
  height: 100px;
  margin: 0;
  padding: 0;

}

.interactive {
  height: 60px;
  display: grid;
  grid-template-columns: 50% 50%;
  background-color: rgb(5, 5, 56);
  color: aliceblue;
}

.iconsub {
  display: flex;
  font-size: 20px;
  justify-content: space-evenly;
  margin-top: 1rem;
  width: 10rem;
}

.icons {
  display: flex;
  justify-content: flex-end;
  margin-right: 5rem;
}

.iconsub a {
  cursor: pointer;
  text-decoration: none;
  color: white;
  transition: 0.4s ease-out;
}

.iconsub a:hover {
  transform: scale(1.2);
}

.address {
  display: grid;
  grid-template-columns: 41% 32% 21%;
  justify-content: space-between;
  align-items: center;
}

.location {
  margin-left: 20px;

}

.address i {
  margin: 10px;
}

nav {
  height: 12px;
  box-shadow: 1px 0px 4px 1px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 1rem;
  color: rgb(12, 1, 1);
  position: relative;

}

nav h2.logo {
  font-weight: bold;
  font-size: xx-large;
}

nav .bars {
  position: absolute;
  right: 1rem;
  font-size: xx-large;
  display: none;
}

ul.nav-links {
  display: flex;
  margin-left: 1040px;
}

li.nav-link {
  list-style: none;
  margin: 0.5rem 1rem;
  padding: 0.4rem;
  display: flex;
  align-items: center;
}

.nav-link:hover {
  text-decoration: underline;
  color: #000000;
  border-radius: 10px;
}

.nav-link.auth {
  border: 0px solid rgb(17, 1, 1);
  border-radius: 10px;
  padding: 8px 10px;
  text-decoration: none;
  margin: 10px;
  background-color: rgb(0, 76, 255);
  box-shadow: 2px 2px 6px #898ca4;
  color: #faf8f8;
}

li.nav-link a {
  color: inherit;
  text-decoration: none;
}

.auth button {
  text-decoration: none;
  color: rgb(5, 4, 4);
  cursor: pointer;
  transition: 2s;
}

.auth span {
  cursor: pointer;
  display: inline-block;
  position: relative;
  transition: 0.5s;
}

.auth span:after {
  content: '\00bb';
  position: absolute;
  opacity: 0;
  top: 0;
  right: -20px;
  transition: 0.5s;
}

.auth:hover span {
  padding-right: 25px;
}

.auth:hover span:after {
  opacity: 1;
  right: 0;
}

#menu-icon {
  font-size: 36px;
  color: #020101;
  display: none;
}

@media (min-width: 600px) and (max-width: 991px) {
  .address {
    grid-template-columns: 87% 32% 21%;

  }

  #menu-icon {
    display: block;
    cursor: pointer;
    float: right;
  }

  .navbar {
    position: absolute;
    top: 15%;
    left: 0;
    width: 100%;
    height: 300px;
    padding: 0.5rem 4%;
    background-color: rgb(0 0 0 / 80%);
    display: none;
    z-index: 2;
  }

  .navbar a {
    color: #e6e5f0;
    margin: 19px 0px 23px 10px;
    font-size: 19px;
    transition: 0.3s;
    margin: 20px;
  }

  .kit:hover {
    background-color: white;
    width: 150px;
    height: 40px;
  }

  ul.nav-links {
    display: block;
    color: white;
    margin: 0;
    text-decoration: none;
  }

  li.nav-link {
    padding: 0;
  }

  li .nav-link a {
    width: 100%;
  }

  .nav-link.auth {
    width: 120px;
    height: 24px;

  }
}

.display {
  margin-top: 10px;
}

.name {
  height: 600px;
  background-image: url("media/Myself\ in\ my\ Future\(2\).jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  position: relative;

}

.name::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  z-index: 0;
  background-color: rgba(0, 0, 0, 0.75);
}

.container {
  position: relative;
  z-index: 1;
  color: white;
  padding: 110px;
  text-align: center;
}

.container h1 {
  font-size: 60px;
  text-align: center;
  font-family:Georgia, 'Times New Roman', Times, serif;
  font-style: italic;
  padding-top: 1rem;
}

.container p {
  font-size: 27px;
  margin: 0 0 -29px 0;
  text-align: center;
}

.threecolumn {
  display: flex;
  justify-content: center;
  gap: 3rem;
  font-size: 24px;
}

.buttonOne {
  margin: 0;
  max-width: 56rem;
}

.portfoliobtn {
  margin-left: 200px;
}

.btn {
  margin-top: 4rem;
}

.btn:link,
.btn:visited {
  text-transform: uppercase;
  text-decoration: none;
  padding: 11px 26px;
  border-radius: 100px;
  transition: all .2s;
  position: absolute;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn:active {
  transform: translateY(-1px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.btn-white {
  background-color: #79ddeb;
  color: #0f0e0e;
}

.btn::after {
  content: "";
  display: inline-block;
  height: 100%;
  width: 100%;
  border-radius: 100px;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  transition: all .4s;
}

.btn-white::after {
  background-color: #fff;
}

.btn:hover::after {
  transform: scaleX(1.4) scaleY(1.6);
  opacity: 0;
}

.btn-animated {
  animation: moveInBottom 5s ease-out;
  animation-fill-mode: backwards;
}

@keyframes moveInBottom {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }

  100% {
    opacity: 1;
    transform: translateY(0px);
  }
}

.work {
  background: black;
  position: relative;
  overflow: hidden;
  height: auto;
  padding: 0 50px 50px 50px;
}

#myVideo {
  position: absolute;
  inset: 0;
  /* top:0; right:0; bottom:0; left:0; */
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  z-index: 0;
  pointer-events: none;
  /* allow clicks on content above */
}

/* ensure content sits above the video */
.profile,
.work .container,
.work .profile * {
  position: relative;
  z-index: 1;
}

.profile {
  display: grid;
  grid-template-columns: 71% 33%;
  gap: 20px;
  justify-content: center;
}

.myintro {
  width: 400px;
  background-color: white;
  margin-top: 100px;
  box-shadow: 0px 0px 10px rgb(130, 130, 130);
}

.myphoto {
  display: flex;
  height: 250px;
  width: 250px;
  background-image: url("media/user-icon.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  border-radius: 50px;
  margin: 10px 0px 0px 75px;
}

.myintro h2 {
  margin: -3px 0px 0px 0px;
}

.myintro p {
  font-size: 20px;
  margin: 30px 30px 0px 30px;
  line-height: 2.5;
}

.custom-btn {
  text-decoration: none;
  width: 140px;
  height: 20px;
  color: #fff;
  border-radius: 5px;
  margin-top: 30px;
  padding: 10px;
  font-family: 'Lato', sans-serif;
  font-weight: 500;
  background: transparent;
  cursor: pointer;
  transition: 0.3s ease;
  position: relative;
  display: inline-block;
  box-shadow: inset 2px 2px 2px 0px rgba(255, 255, 255, .5),
    7px 7px 20px 0px rgba(0, 0, 0, .1),
    4px 4px 5px 0px rgba(0, 0, 0, .1);
  outline: none;
}

.btnprof {
  border: none;
  background: rgb(251, 33, 117);
  background: linear-gradient(0deg, rgba(251, 33, 117, 1) 0%, rgba(234, 76, 137, 1) 100%);
  color: #fff;
  overflow: hidden;
  margin: 1rem;
}

.btnprof:hover {
  text-decoration: none;
  color: #fff;
}

.btnprof:before {
  position: absolute;
  content: '';
  display: inline-block;
  top: -180px;
  left: 0;
  width: 30px;
  height: 100%;
  background-color: #fff;
  animation: shiny-btn1 3s ease-in-out infinite;
}

.btnprof:hover {
  opacity: .7;
}

.btnprof:active {
  box-shadow: 4px 4px 6px 0 rgba(255, 255, 255, .3),
    -4px -4px 6px 0 rgba(116, 125, 136, .2),
    inset -4px -4px 6px 0 rgba(255, 255, 255, .2),
    inset 4px 4px 6px 0 rgba(0, 0, 0, .2);
}


@keyframes shiny-btn1 {
  0% {
    -webkit-transform: scale(0) rotate(45deg);
    opacity: 0;
  }

  80% {
    -webkit-transform: scale(0) rotate(45deg);
    opacity: 0.5;
  }

  81% {
    -webkit-transform: scale(4) rotate(45deg);
    opacity: 1;
  }

  100% {
    -webkit-transform: scale(50) rotate(45deg);
    opacity: 0;
  }
}

.extras {
  margin-top: 95px;
  background-color: white;
  margin-left: 60px;
  border-radius: 25px;
  box-shadow: 0px 0px 10px rgb(130, 130, 130);

}

.contactheading {
  margin-top: 70px;
}

.contactheading h2 {
  font-size: 45px;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
}

.contactheading p {
  font-size: 20px;
}

.experience-container {
  width: 721.93px;
  height: 600px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.header {
  background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
  color: white;
  padding: 20px 30px;
  text-align: center;
  flex-shrink: 0;
}

.header h1 {
  font-size: 1.6rem;
  margin-bottom: 5px;
  font-weight: 600;
}

.header p {
  font-size: 0.9rem;
  opacity: 0.9;
}

.content {
  padding: 20px;
  overflow-y: auto;
  flex-grow: 1;
}

.experience-item {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 18px;
  margin-bottom: 15px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
  border-left: 4px solid #2575fc;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.experience-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.experience-item.current {
  border-left-color: #28a745;
}

.company-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.company {
  font-size: 1.2rem;
  font-weight: 600;
  color: #2575fc;
}

.duration {
  background: #e9ecef;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  color: #6c757d;
  white-space: nowrap;
  margin-left: 10px;
}

.role {
  font-size: 1rem;
  font-weight: 500;
  color: #495057;
  margin-bottom: 10px;
}

.description {
  color: #6c757d;
  font-size: 0.9rem;
  margin-bottom: 12px;
  line-height: 1.5;
  text-align: justify;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.skill-tag {
  background: #e7f1ff;
  color: #2575fc;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.skill-animate {
  animation: skillColor 1s ease-in-out infinite alternate;
  text-decoration: none;
}

@keyframes skillColor {
  0% {
    color: #ff00d4;
  }

  100% {
    color: #ff0a0a;
  }
}

/* Respect user preference for reduced motion */
@media (prefers-reduced-motion: reduce) {
  .skill-animate {
    animation: none;
    transition: color 0.3s ease;
  }
}

.achievement {
  background: #fff3cd;
  border-left: 3px solid #ffc107;
  padding: 8px 12px;
  margin-top: 8px;
  border-radius: 0 4px 4px 0;
  font-size: 0.85rem;
}

.current .company {
  color: #28a745;
}

.current .skill-tag {
  background: #e8f5e9;
  color: #28a745;
}

/* Custom scrollbar */
.content::-webkit-scrollbar {
  width: 6px;
}

.content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.content::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 10px;
}

.content::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

footer {
  background-color: #02000d;
  color: white;
  padding: 10px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  flex-wrap: wrap;
}

.footer-segment {
  flex: 1;
  padding: 10px;
  text-align: center;
  min-width: 150px;
}

.footer-segment.myname {
  text-align: left;
}

.footer-segment.contact {
  text-align: right;
}

.social-icons a {
  color: rgb(110, 116, 163);
  margin: 0 10px;
  font-size: 24px;
  text-decoration: none;
}

.social-icons a:hover {
  color: #ddd;
}

.copyright {
  text-align: center;
  padding-top: 15px;
  border-top: 1px inset rgb(110, 116, 163);
  margin-top: 15px;
  font-size: 14px;
  width: 100%;
}


.icon {
  display: inline-block;
  width: 24px;
  height: 24px;
  background-color: white;
  border-radius: 50%;
  vertical-align: middle;
  margin: 0 5px;
}

@media (min-width: 600px) and (max-width: 991px) {
  .threecolumn {
    display: none;
  }

  .btn {
    display: none;
  }

  .threepic {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .profile {
    grid-template-columns: 1fr;
  }

  .bigprofile {
    height: auto;
  }

  .extras {
    width: 88%;
  }

  form.inputform {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    margin-top: -46px;
  }

  .submitbtn {
    margin: 0;
  }

  .myintro {
    margin-left: 140px;
    margin-left: 140px;
    display: inline-grid;
    align-content: center;
    text-align: justify;
  }
}

@media (max-width: 400px) {
  .address {
    display: flex;
    font-size: 10px;
    flex-direction: column;
    justify-content: normal;
  }

  .location {
    height: 2rem;
  }

  .icons {
    margin-right: 6rem;
  }

  .iconsub {
    width: 0rem;
    gap: 1rem;
  }

  #menu-icon {
    display: block;
    cursor: pointer;
    float: right;
  }

  .navbar {
    position: absolute;
    top: 15%;
    left: 0;
    width: 100%;
    height: 25rem;
    padding: 0.5rem 4%;
    background-color: rgb(0 0 0 / 95%);
    display: none;
    z-index: 2;
  }

  .navbar a {
    color: #e6e5f0;
    margin: 19px 0px 23px 10px;
    font-size: 19px;
    transition: 0.3s;
  }

  .kit:hover {
    color: rgb(42, 251, 255);
    text-decoration: none;
  }

  ul.nav-links {
    display: block;
    color: white;
    margin: 0;
    padding: 0;
    text-decoration: none;
  }

  li.nav-link {
    padding: 0;
  }

  .nav-link.auth {
    width: 120px;
    height: 24px;

  }

  .container {
    padding: 50px 20px;
    width: 15rem;
  }

  .container p {
    font-size: 20px;
    margin: 0;
  }

  .container h1 {
    font-size: 30px;
  }

  .work {
    padding: 0 1rem 1rem 2rem;
  }

  .threecolumn {
    font-size: 20px;
    flex-direction: column;
    gap: 15px;
    padding-bottom: 1rem;
  }
  .buttonOne{
    width: 1rem;
  }

  .btn {
    font-size: 11px;
    margin-top: 1rem;
  }

  .portfoliobtn {
    margin-left: 9rem;
  }



  .profile {
    grid-template-columns: 1fr;
  }

  .extras {
    margin-left: -1rem;
    width: 20rem;
    max-height: 100%;
    padding-bottom: 2rem;
  }

  .contactform {
    margin: 0;
  }

  .inputform {
    display: flex;
    flex-direction: column;
    margin-left: 1rem;
  }

  .textinput {
    padding: 10px;
    height: 8rem;
    width: 16rem;
  }

  .submitbtn {
    margin-top: 10px;
  }

  .btcontact {
    margin: 0;
  }

  .myintro {
    margin-top: 3rem;
    width: 20rem;
    margin-left: -1rem;
  }

  .myphoto {
    margin: 0 0 0 2rem;
  }

  .myintro p {
    text-align: center;
  }

  .footer {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .quicklink {
    display: flex;
    flex-direction: column;
  }

  .copyright {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-end;
    flex-direction: column-reverse;
  }
}