@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap");

* {
  margin: 0;
  border: none;
  padding: 0;
  outline: none;
  box-sizing: border-box;
  text-decoration: none;
  font-family: "Poppins", sans-serif;
}

body {
  background-color: #1f242d;
}

a {
  color: #f2f2f2;
  text-decoration: none;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #778aac;
  padding: 25px 9%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
}

.navbar .logo {
  color: #f2f2f2;
  font-size: 30px;
  font-weight: 600;
}

.navbar .logo span {
  color: #778aac;
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

.navbar ul li a {
  font-size: 20px;
  font-weight: 500;
  transition: 0.5s;
}

.navbar ul li:hover a,
.navbar ul li a.active {
  color: #94acd7;
  transition: 0.4s ease;
}

.bars-animation {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: -1;
  display: flex;
}

.bars-animation .bar {
  width: 100%;
  height: 100%;
  position: relative;
  background: #1f242d;
  transform: translateY(-100%);
  animation: show-bars 0.5s ease-in-out forwards;
  animation-delay: calc(0.1s * var(--i));
}

@keyframes show-bars {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(0%);
  }
}

.services {
  width: 100vw;  
  height: 100vh;
  background: #1f242d;
  padding: 9% 9% 0;
}

.resume {
  width: 100vw;
  height: 100vh;
  background: #1f242d;
  padding: 9% 9% 0;
}

.home {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100vh;
  padding: 60px 9% 0;
  color: #fff;
  gap: 50px;
  background: #1f242d;
}

.home-info h1 {
  font-size: 55px;
}

.home-info h2 {
  font-size: 32px;
  margin-top: -10px;
  display: inline-block;
}

.home-info h2 span {
  position: relative;
  display: inline-block;
  color: transparent;
  -webkit-text-stroke: .07rem #94acd7;
  animation: display-text 4s linear infinite;
  animation-delay: calc(-2s * var(--i));
}

@keyframes display-text {
  25%,
  100% {
    display: none;
  }
}

.home-info h2 span::before {
  content: attr(data-text);
  position: absolute;
  width: 0;
  border-right: 2px solid #94acd7;
  color: #94acd7;
  white-space: nowrap;
  overflow: hidden;
  animation: fill-text 2s linear infinite;
}

@keyframes fill-text {
  10%, 100% {
    width: 0;
  }
  70%, 90% {
    width: 100%;
  }
}

.home-info p {
  font-size: 16px;
  margin: 10px 0 25px;
}

.home-info .btn-sci {
  display: flex;
  align-items: center;
}

.btn {
  display: inline-block;
  padding: 10px 30px;
  background: #94acd7;
  border: 2px solid #94acd7;
  border-radius: 40px;
  box-shadow: 0 0 10px #94acd7;
  font-size: 16px;
  color: #1f242d;
  font-weight: 600;
  transition: 0.5s;
}

.btn:hover {
  background: transparent;
  color: #94acd7;
  box-shadow: none;
}

.sci {
  display: flex;
  margin-left: 20px;
  gap: 15px;
}

.sci a {
  display: inline-flex;
  padding: 8px;
  border: 2px solid #94acd7;
  border-radius: 50%;
  font-size: 20px;
  color: #94acd7;
  transition: 0.5s;
}

.sci a:hover {
  background: #94acd7;
  color: #323946;
  box-shadow: 0 0 10px #94acd7;
}

.home-img .img-box {
  position: relative;
  display: flex;
  width: 32vw;
  height: 32vw;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  padding: 5px;
  overflow: hidden;
}

.img-box::before,
.img-box::after {
  content: "";
  position: absolute;
  width: 50rem;
  height: 50rem;
  background: conic-gradient(transparent, transparent, transparent, #94acd7);
  transform: rotate(0deg);
  animation: rotate-border 10s linear infinite;
}

.img-box::after {
  animation-delay: -5s;
}

@keyframes rotate-border {
  100% {
    transform: rotate(360deg);
  }
}

.img-item {
  position: relative;
  width: 100%;
  height: 100%;
  background: #323946;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
  overflow: hidden;
  border: 0.1px solid #1f242d;
}

.img-item img {
  width: 100%;
  height: 100%;
  object-fit: cover; 
  position: static; 
}

.heading {
  font-size: 4.5rem;
  text-align: center;
  margin-bottom: 2rem;
  color: #fff;
}

.heading span {
  color: #94acd7;
}

.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.services-container .services-box {
  background: #323946;
  padding: 3rem 2.5rem;
  border-radius: 1rem;
  transition: .5s;
  border: .2rem solid #1f242d;
}

.services-container .services-box:hover {
  border-color: #94acd7;
  transform: scale(1.02);
}

.services-box .icon {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.services-box .icon i {
  font-size: 4.5rem;
  color: #94acd7;
  transition: .5s;
}

.services-box:hover .icon :not(a i) {
  color: #94acd7;
}

.services-box .icon a {
  display: flex;
  background: white;
  border-radius: 50%;
  padding: 1rem;
  transition: .5s;
}

.services-box:hover .icon a {
  background: #94acd7;
}

.services-box .icon a i {
  font-size: 3rem;
  color: #323946;
  transform: rotate(225deg);
}

.services-box h3 {
  font-size: 2.5rem;
  margin: .5rem 0 2rem;
  transition: .5s;
  color: #fff;
}

.services-box:hover h3 {
  color: #94acd7;
}

.services-box p {
  font-size: 1.6rem;
  line-height: 2.5rem;
  color: #fff;
}

.services-box .icon a:hover i {
  transform: rotate(180deg);
}

.resume-container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
}

.resume-box h2 {
  font-size: 4.5rem;
  color: #fff;
}

.resume-box p {
  font-size: 1.6rem;
  color: #fff;
}

.resume-box .desc {
  margin: 2rem 0 2.5rem;
  color: #fff;
}

.resume-box .resume-btn {
  width: 100%;
  height: 5.3rem;
  background: #323946;
  border: .2rem solid #1f242d;
  font-size: 1.6rem;
  color: white;
  font-weight: 500;
  margin-bottom: 2rem;
  border-radius: .8rem;
  cursor: pointer;
}

.resume-box .resume-btn.active {
  border-color: #94acd7;
  color: #94acd7;
}

.resume-detail {
  display: none;
  background: #1f242d;
}

.resume-detail.active {
  display: block;
}

.resume-box .heading {
  font-size: 3.5rem;
  text-align: left;
}

.resume-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
  gap: 2rem;
  height: 45rem;
  overflow: auto;
}

.resume-list::-webkit-scrollbar {
  width: .7rem;
}

.resume-list::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 1rem;
}

.resume-list:hover::-webkit-scrollbar-thumb {
  background: #94acd7;
}

.resume-list .resume-item {
  background: #323946;
  padding: 3rem 2.5rem;
  border-radius: .8rem;
  height: calc((45rem -2rem) / 2);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.resume-item .year {
  color: #94acd7;
}

.resume-item h3 {
  font-size: 2.2rem;
  color: #fff;
}

.resume-item .company {
  position: relative;
  margin-left: 2rem;
  margin-bottom: 2rem;
  color: #fff;
}

.resume-item .company::before {
  content: '';
  padding: .5rem;
  position: absolute;
  border-radius: 10%;
  top: 50%;
  transform: translateY(-50%);
  background: #94acd7;
  margin-left: -2rem;
}

.resume-detail.skills .resume-list {
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  height: auto;
  overflow: visible;
}

.resume-detail.skills .resume-item {
  position: relative;
  height: auto;
  align-items: center;
}

.resume-detail.skills .resume-item i {
  font-size: 8.5rem;
  transition: .5s;
  color: #94acd7;
}

.resume-detail.skills .resume-item:hover i {
  color:#94acd7;
}

.resume-detail.skills .resume-item span {
  position: absolute;
  top: -20%;
  color: #323946;
  font-size: 1.6rem;
  padding: .5rem 1rem;
  border-radius: .6rem;
  pointer-events: none;
  opacity: 0;
  transform: scale(.9);
  transition: .2s;
  background: #fff;
}

.resume-detail.skills .resume-item:hover span {
  opacity: 1;
  top: -25%;
  transform: scale(1);
  transition: .5s;
}

.resume-detail .about .resume-list {
  height: auto;
  grid-template-columns: repeat(auto-fit, minmax(25rem,1fr));
}

.resume-detail.about .resume-item {
  padding: 0 0 .5rem;
  height: auto;
  background-color: transparent;
}

.resume-detail.about .resume-item p {
  color: #94acd7;
}

.resume-detail.about .resume-item p span {
  color: white;
  margin-left: 1rem;
  font-size: 1.8rem;
}

/* ================== PORTFOLIO SECTION IMPROVEMENTS ================== */
.portfolio {
  width: 100vw;
  height: 100vh;
  background: #1f242d;
  padding: 9% 9% 0;
}

.portfolio-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.portfolio-details-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.portfolio-detail {
  display: none;
  animation: fadeIn 0.5s ease;
}

.portfolio-detail.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.portfolio-carousel-container {
  position: relative;
  width: 100%;
  height: 25rem; 
  overflow: hidden;
}

.portfolio-carousel {
  width: 100%;
  height: 100%;
  position: relative;
}

.img-slide {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease;
}

.img-slide .img-item {
  min-width: 100%;
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
  border-radius: 0;
  background: #323946;
  display: flex;
  align-items: center;
  justify-content: center;
}

.img-slide .img-item img {
  width: 85%;
  height:85%;
  object-fit: contain;
  border-radius: 1rem;
  display: block;
  margin: 0 auto;
}


.portfolio-box .number {
  font-size: 8rem;
  -webkit-text-stroke: 0.07rem white;
  color: transparent;
  line-height: 1;
  margin-bottom: 1rem;
}

.portfolio-box h3 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: #fff;
}

.portfolio-box .desc {
  font-size: 1.6rem;
  line-height: 1.6;
  color: #f2f2f2;
  margin-bottom: 2rem;
}

.portfolio-box .tech {
  font-size: 1.6rem;
  color: #94acd7;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.live-github {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

.live-github a {
  position: relative;
  display: inline-flex;
  width: 5rem;
  height: 5rem;
  align-items: center;
  justify-content: center;
  background: #323946;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.live-github a i {
  font-size: 2.5rem;
  color: #f2f2f2;
  transition: all 0.3s ease;
}

.live-github a:hover {
  background: #94acd7;
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(124, 240, 61, 0.4);
}

.live-github a:hover i {
  color: #1f242d;
}

.live-github a span {
  position: absolute;
  top: -60%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.4rem;
  white-space: nowrap;
  background: white;
  color: #94acd7;
  padding: 0.5rem 1rem;
  border-radius: 0.6rem;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

.live-github a:hover span {
  opacity: 1;
  top: -70%;
}

.navigation {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  gap: 1rem;
  z-index: 10;
}

.navigation button {
  width: 5rem;
  height: 5rem;
  background: rgba(50, 57, 70, 0.7);
  border: 2px solid #94acd7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.navigation button i {
  font-size: 2.5rem;
  color: #94acd7
}

.navigation button:hover {
  background: #94acd7;
}

.navigation button:hover i {
  color: #1f242d;
}

.navigation button.disabled {
  border-color: #1f242d;
  pointer-events: none;
}

.navigation button.disabled i {
  color: #1f242d;
}


.contact-container {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: flex-start;
  background: #1f242d;
  padding: 9% 9% 5%;
  min-height: calc(100vh - 100px);
  width: 100%;
}

.contact-container .contact-box:first-child {
  align-self: center;
}

.contact-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  margin-top: 0;
  padding: 0;
}

.contact-box h2 {
  font-size: 4.5rem;
  color: #fff;
}

.contact-box p {
  font-size: 1.6rem;
  color: #fff;
}

.contact-box .desc {
  margin: 1.5rem 0 2.5rem;
}

.contact-box .contact-detail {
  display: flex;
  align-items: center;
  margin: 2rem 0;
}

.contact-detail i {
  display: inline-flex;
  background: #323946;
  font-size: 3rem;
  color: #94acd7;
  padding: 1.2rem;
  border-radius: .6rem;
  margin-right: 1.5rem;
}

.contact-detail .detail p:first-child {
  color: #94acd7;
}

.contact-box form {
  background: #323946;
  padding: 2.5rem 2.5rem;
  border-radius: 1rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.5rem;
  height: auto;
  box-sizing: border-box;
  max-width: 420px;
  width: 100%;
  margin: 0;
}

.contact-form-box {
  background: #323946;
  padding: 2.5rem 2.5rem;
  border-radius: 1rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.5rem;
  height: 100%;
  box-sizing: border-box;
  max-width: 100%;
  width: 100%;
  margin: 0;
  position: relative;
}

.contact-form-box input,
.contact-form-box textarea {
  background: #23272f;
  color: #fff;
  border: 1.5px solid #2e3440;
  border-radius: 0.5rem;
  padding: 1.2rem 1.5rem;
  font-size: 1.5rem;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 0.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: none;
}

.contact-form-box input:focus,
.contact-form-box textarea:focus {
  border-color: #94acd7;
  outline: none;
  box-shadow: 0 0 0 2px rgba(148, 172, 215, 0.2);
}

.contact-form-box .field-box {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.contact-form-box textarea {
  min-height: 120px;
  max-height: 240px;
}

.contact-form-box input::placeholder,
.contact-form-box textarea::placeholder {
  color: #b0b8c9;
  opacity: 1;
  font-size: 1.4rem;
}

.contact-form-box .thank-you-popup {
  position: absolute;
  top: -3.5rem;
  left: 50%;
  transform: translate(-50%, -100%);
  background: #94acd7;
  color: #fff;
  padding: 1.2rem 2rem;
  border-radius: 1rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  z-index: 1000;
  font-size: 1.5rem;
  text-align: center;
  min-width: 180px;
  max-width: 90vw;
  width: auto;
  margin-top: 0;
  opacity: 0.98;
  letter-spacing: 0.5px;
  transition: opacity 0.3s, top 0.3s;
  line-height: 1.4;
  word-break: break-word;
  display: none;
}

.contact-form-box .thank-you-popup.show {
  display: block;
}

@media screen and (max-width: 900px) {
  .contact-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 9% 5% 5%;
  }
  .contact-form-box {
    max-width: 100%;
    width: 100%;
    margin: 0;
  }
}

@media screen and (max-width: 992px) {
  .portfolio-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .portfolio-carousel-container {
    order: -1;
    height: 30rem;
  }
  
    .home-img .img-box {
    width: 25rem;
    height: auto;          
    max-width: 100%;
    max-height: 25rem;     
    margin: 0 auto 3rem;
    border-radius: 50%;
    object-fit: cover;
  }

  
  .home-content {
    text-align: center;
  }

 
  .contact-box {
    order: 2; 
  }
}

@media screen and (max-width: 768px) {
  .home-img .img-box {
    width: 22rem;
    height: auto;          
    max-width: 90%;
    max-height: 22rem;    
  }
  
  .portfolio-carousel-container {
    height: 25rem;
  }

 
  .contact-box .field-box {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .contact-box {
    padding: 1.5rem;
    margin-top: 0;
  }
}

@media screen and (max-width: 600px) {
  .home {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 120px 3% 0; 
    gap: 2rem;
    height: auto;
  }
  .home-img {
    order: -1;
    width: 100%;
    display: flex !important;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    margin-top:5rem;
  }
  .home-img .img-box {
    width: 18rem;
    height: 18rem;
    max-width: 80vw;
    max-height: 18rem;
    margin: 0 auto 1.5rem auto;
    display: block !important;
  }
  .home-info {
    width: 100%;
    text-align: center;
  }
}


.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  position: fixed;
  top: 2rem;
  right: 2rem;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #fff;
  border-radius: 3px;
  transition: all 0.3s ease;
}

@media screen and (max-width: 600px) {
  .hamburger {
    display: flex;
    z-index: 1000;
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: #94acd7;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    transition: right 0.5s ease;
    z-index: 999;
    padding: 2rem;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  }
  
  .nav-links.active {
    right: 0;
  }

  .nav-links li a {
    color: #fff;
    font-size: 1.8rem;
    padding: 1rem 2rem;
    display: block;
    width: 100%;
    text-align: center;
    transition: all 0.3s ease;
  }

  .nav-links li a:hover,
  .nav-links li a:focus {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
  }
  
  .hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
  
  .home-img .img-box {
    width: 20rem;
    height: auto;          
    max-width: 85%;
    max-height: 20rem;     
    margin-bottom: 2rem;
  }
  
  
  .contact-box {
    width: 100%;
    padding: 1rem;
    margin-top: 2rem;
  }

  .contact-box h2 {
    text-align: center;
    font-size: 2.4rem;
    margin-bottom: 1.5rem;
  }

  .contact-box form {
    padding: 0.5rem;
  }

  .thank-you-popup {
  position: absolute;
  top: -4rem;
  left: 50%;
  transform: translate(-50%, 0);
  background: #94acd7;
  color: #fff;
  padding: 1.5rem 2rem;
  border-radius: 1rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  z-index: 10000;
  font-size: 2.4rem;
  text-align: center;;
  width: 60%;
  margin-top: 0;
  opacity: 0.98;
  letter-spacing: 1px;
  transition: opacity 0.3s;
}
}

@media screen and (max-width: 450px) {
  html {
    font-size: 50%;
  }
  
  .home-img .img-box {
    width: 18rem;
    height: 18rem;
    max-width: 80%;
  }
  
  .portfolio-carousel-container {
    height: 20rem;
  }

 
  .contact-box {
    padding: 0.5rem;
  }

  .contact-box .btn {
    width: 100%;
  }
}

@media screen and (max-width: 400px) {
  .home-info .content,
  .resume-box h2,
  .resume-box .heading,
  .resume-box .desc,
  .resume-detail .about .resume-item,
  .resume-list .resume-item {
    text-align: center;
  }
  
  .home-info .btn-sci {
    flex-direction: column-reverse;
    align-items: center;
    gap: 1.5rem;
  }

  .home-info .btn-sci .sci {
    margin-left: 0;
    margin-bottom: 2rem;
  }
  
  .contact-box form {
    padding: 0.5rem 0;
  }

  .contact-box h2 {
    font-size: 2.2rem;
  }
  
  .portfolio {
    padding: 5% 3% 0;
  }
  
  .live-github {
    justify-content: center;
    gap: 1rem;
  }
  
  .home-img .img-box {
    width: 16rem;
    height: 16rem;
    max-width: 75%;
  }


  

 
  .nav-links {
    width: 80%;
  }
}

@media screen and (max-width: 350px) {
  .home-img .img-box {
    width: 14rem;
    height: 14rem;
    max-width: 70%;
  }

  .img-item {
    order: 2;
    width: 80%;
    max-width: 250px;
    border-radius: 50%;
    margin-top: 2rem;
  }
  
  
  .contact-box form {
    padding: 0;
  }

  .contact-box h2 {
    font-size: 2rem;
  }
}


.home-img, 
.contact-box, 
.contact-box form,
.home-img .img-box {    
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}


.home-img .img-box {
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.thank-you-popup {
  position: absolute;
  top: 1.5rem;
  left: 50%;
  transform: translate(-50%, 0);
  background: #94acd7;
  color: #fff;
  padding: 0.7rem 1.5rem;
  border-radius: 0.7rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  z-index: 10000;
  font-size: 1.4rem;
  text-align: center;
  display: none;
  min-width: 180px;
  max-width: 90vw;
  width: auto;
  margin-top: 0;
  opacity: 0.98;
  letter-spacing: 0.5px;
  transition: opacity 0.3s;
  line-height: 1.4;
  word-break: break-word;
}
.thank-you-popup.show {
  display: block;
}








