@import url("https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@300&display=swap");
:root {
  color-scheme: light;
  --bgOrange: #e84949;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  font-family: "Be Vietnam Pro", sans-serif;
}
body {
  overflow-x: hidden;
}
#wrapper {
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
}

.container {
  max-width: 1200px; /* Stop growing after 1200px */
  width: 100%; /* Take full width on smaller screens */
  margin: 0 auto;
  padding: 0 1rem; /* Add side padding so text doesn't touch the edge */
  box-sizing: border-box;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding-top: 1rem;
}

.logo {
  width: 130px;
  z-index: -1;
}

.logo-container {
  display: flex;
  justify-content: baseline;
  align-items: center;
}

.logo-text {
  margin-left: -2.6rem;
  font-size: 28px;
  font-weight: 600;
}

.nav-items {
  display: flex;
  gap: 2rem;
  padding: 0 4em;
}

.nav-items div {
  font-size: 20px;
  font-weight: 500;
  cursor: pointer;
}

.nav-items div a {
  color: black;
}

a {
  text-decoration: none;
}

.nav-items div:hover {
  transition: 0.4s;
  font-weight: bold;
}
@media (max-width: 1500px) {
  .nav-items {
    padding: 0 8em;
  }
}
@media (max-width: 1000px) {
  .nav-items {
    display: none;
  }
}

/* ── Hamburger menu ── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 200;
}
.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #343d68;
  border-radius: 3px;
  transition: all 0.35s ease;
  transform-origin: center;
}
/* Animate to X when open */
.hamburger.open span:nth-child(1) {
  transform: translateY(9.5px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-9.5px) rotate(-45deg);
}

/* Mobile nav dropdown */
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  position: absolute;
  top: 100%;
  left: -1rem;
  right: -1rem;
  z-index: 150;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease;
}
.mobile-nav.open {
  max-height: 300px;
}
.mobile-nav a {
  display: block;
  padding: 1rem 1.5rem;
  font-size: 18px;
  font-weight: 500;
  color: #343d68;
  border-bottom: 1px solid #eee;
  transition: background 0.2s, color 0.2s;
}
.mobile-nav a:hover {
  background: #f5f5f5;
  color: #e84949;
}

@media (max-width: 1000px) {
  .hamburger {
    display: flex;
  }
  .mobile-nav {
    display: flex;
  }
}


/* 2nd part */
.hero-section {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5rem;
  margin: 4rem auto;
  padding: 0 1rem;
  padding-bottom: 8rem;
}

.faded-text {
  user-select: none;
  font-size: 7em;
  color: rgb(231, 231, 231);

  bottom: -16%;
  left: -5%;
  font-weight: bold;
  transition: all 3s;
}

.hero-section-left {
  /* width: 100%; */
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
}

.hero-section-heading {
  font-size: 35px;
  color: #343d68;
  font-weight: 500;
}

.role {
  color: #4e45d5;
  font-weight: 800;
}

.hero-section-sub-heading {
  font-size: 45px;
  line-height: 45px;
}

.hero-section-description {
  margin-top: 1rem;
  width: 70%;
  font-weight: 500;
}

/* for button hire me */
.btn {
  background-color: #e84949;
  width: fit-content;
  color: white;
  padding: 0.8rem 2.3rem;
  box-shadow: 5px 5px 7px 0px #0000003f;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.5s;
  font-weight: 500;
  border: solid 3px transparent;
  position: relative;
  z-index: 1;
}

.btn::before {
  content: "";
  position: absolute;
  background-color: #fff;
  top: 0px;
  left: 0;
  right: 0;
  bottom: 0px;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
  transition: all 0.8s;
}

.btn:hover::before {
  transform: scaleX(1);
}

.btn:hover {
  border: solid 3px #e84949;
  color: black;
}
#btn-bottom {
  display: none;
}

/* btn end here */

/* ---------------------------------------------- */

/* hero section right */
.hero-section-right {
  position: relative;
}

.absolute {
  position: absolute;
}

/* for picture animation */
.user-image {
  padding: 2.5rem;
  filter: grayscale(1);
  transition: all 1s;
  animation: scaleImage 5s linear infinite;
}

.user-image img {
  object-fit: cover;
  z-index: -9;
}
@keyframes scaleImage {
  0% {
    filter: grayscale(1);
    scale: 1;
  }
  50% {
    filter: grayscale(0);
    scale: 0.9;
    box-shadow: 3px 3px 10px black;
  }
  100% {
    filter: grayscale(1);
    scale: 1;
  }
}

/* for dot animation */
.icon-dots {
  z-index: 9;
  bottom: -1rem;
  right: 0;
  /* animation-name: dotnimation;
    animation-duration: 5s;
    animation-iteration-count: infinite; [OR] use below shorthand*/
  animation: dotanimation 5s infinite;
}
@keyframes dotanimation {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* for cube animation */
.icon-cube {
  z-index: 9;
  top: -0.8em;
  right: 1em;
  animation-name: cubeRotate;
  animation-duration: 4s;
  animation-iteration-count: infinite;
}
@keyframes cubeRotate {
  0% {
    transform: rotateY(0deg) translateY(0px);
  }
  50% {
    transform: rotateY(180deg) translateY(-12px);
  }
  100% {
    transform: rotateY(360deg) translateY(0px);
  }
}

/* for circle animation */
.icon-circle {
  z-index: 9;
  bottom: 0;
  left: 0;
  animation: shakeEffect 6s linear infinite;
}
@keyframes shakeEffect {
  50% {
    bottom: 10%;
    left: 5%;
  }
}

/*for zigzag animation  */
.icon-zigzag {
  z-index: 9;
  top: 1.5em;
  left: -0.3em;
  animation: zigzagAnimation 5s ease-in infinite;
}
@keyframes zigzagAnimation {
  50% {
    top: 2%;
    left: 5%;
  }
}

/* for plus animation */
.icon-plus {
  top: -0.8rem;
  left: 50%;
  animation: shakeEffectPlus 5s ease-in infinite;
}
@keyframes shakeEffectPlus {
  50% {
    top: 3%;
    left: 48%;
  }
}
@media (max-width: 1300px) {
  .hero-section {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 1rem;
    padding-bottom: 3rem;
    margin: 1rem auto;
  }
  .hero-section-description {
    text-align: center;
    margin: auto;
    width: 90%;
  }
  .faded-text {
    display: none;
  }
  #btn-top {
    display: none;
  }
  #btn-bottom {
    margin-top: -4rem;
    display: block;
  }
  .hero-section-right {
    margin-top: -4em;
    scale: 0.75;
  }
}
@media (max-width: 600px) {
  .hero-section-heading {
    font-size: 26px;
  }
  .hero-section-right {
    scale: 0.6;
    margin-top: -6em;
  }
  #btn-bottom {
    margin-top: -6rem;
  }
}
/* Hero Right Section End */

/* ------------------------------------------------------ */

/* project section start */

.project-section {
  background-color: rgb(231, 231, 231);
  margin-top: 4rem;
}

.project-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 0;

  display: flex;
  flex-direction: column;
  gap: 120px;
}

.page-header {
  padding-top: 30px;
  color: #e84949;
  text-align: center;
  font-size: 90px;
}

.project-card {
  width: 90%;
  height: 550px;
  /* background-image: url(./images/projects/Project1.png); */
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
  box-shadow: 0px 0px 35px #1f1f1f;
}

.project-card::after {
  content: "";
  color: #fff;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #1f1f1f9a;
  transform: scaleX(1);
  z-index: 0;
}

.project-card::before {
  content: "";
  position: absolute;
  color: #fff;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, #343d68, #343d68be, #343d687c);
  transform: scaleX(0);
  transform-origin: left;
  transition: all 0.4s;
  z-index: 1;
}
.project-card:hover::before {
  transform: scaleX(1);
}

.project-number {
  position: absolute;
  font-size: 200px;
  font-weight: 600;
  color: white;
  z-index: 10;
  display: none;
}
.project-card:hover .project-number {
  display: block;
  color: rgb(255, 255, 255);
}
.project-number-right {
  left: -40px;
  top: -45px;
}

.project-number-left {
  right: -40px;
  top: -45px;
}

.project-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: white;
  padding: 2em;
  bottom: 20%;
  position: absolute;
  z-index: 5;
  transition: all 0.4s;
}
.project-content-left {
  left: 10%;
}
.project-content-right {
  right: 10%;
}

.project-skills-container {
  max-width: 60%;
  width: fit-content;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  transition: all 0.2s;
  border-radius: 5px;
}
.project-skill {
  width: 40px;
}
.project-heading {
  font-size: 50px;
  font-weight: bold;
  line-height: 3rem;
}
.project-subheading {
  font-size: 16px;
  width: 70%;
  font-style: italic;
}

.btn-project {
  border: none;
  font-weight: 500;
}

.btn-project:hover {
  border: none;
}

.btn-grp {
  display: flex;
  gap: 0.9rem;
  align-items: center;
}

.icon {
  cursor: pointer;
  font-size: 35px;
  transition: all 0.4s;
  color: #fff;
}
.icon:hover {
  color: #e84949;
}

.project-card:hover .project-content {
  transform: scale(1.1);
}

#project1 {
  background-image: url(./images/projects/home.png);
}
#project2 {
  margin-left: 120px;
  background-image: url(./images/projects/EMS.png);
}
#project3 {
  background-image: url(./images/projects/weather.png);
}
#project4 {
  margin-left: 120px;
  background-image: url(./images/projects/HeritageHub.png);
}
#project5 {
  margin-right: 120px;
  background-image: url(./images/projects/GS.png);
}

/* Media Queries */

@media (max-width: 1300px) {
  .page-header {
    padding-top: 30px;
    color: var(--bgOrange);
    text-align: center;
    font-size: 40px;
  }
  .project-container {
    padding: 1rem;
    margin: 0 auto;
    gap: 40px;
  }
  .project-card {
    width: 100%;
    height: auto;
    min-height: 280px;
    background-size: cover;
    background-position: center;
  }
  .project-content {
    position: relative;
    scale: 1;
    bottom: auto;
    left: auto;
    right: auto;
    top: auto;
    padding: 1.5rem 1rem;
    background: linear-gradient(to top, #1f1f1fdd, #1f1f1f88);
  }
  .project-content-left,
  .project-content-right {
    left: 0;
    right: 0;
  }
  .project-heading {
    font-size: 26px;
    line-height: 2rem;
    width: 100%;
  }
  .project-subheading {
    font-size: 13px;
    width: 100%;
  }
  .project-skills-container {
    max-width: 100%;
  }
  #project2 {
    margin-left: 0;
  }
  
  .project-skill {
    width: 30px;
  }
  .btn-project {
    font-size: 14px;
    padding: 0.5rem 1rem;
  }
  .icon {
    font-size: 26px;
  }
  .project-card:hover .project-number {
    display: none;
  }
  .project-card:hover .project-content {
    transform: none;
    scale: 1;
  }
}
@media (max-width: 600px) {
  .project-card {
    min-height: 240px;
  }
  .project-heading {
    font-size: 22px;
  }
}

/* Skills section Start */
.skill-fade-text {
  position: absolute;
  font-size: 15em;
  font-style: bold;
  color: rgb(231, 231, 231);
  bottom: -34.5%;
  right: -10%;
  user-select: none;
  overflow-y: hidden;
}
.skills-container {
  position: relative;
  display: flex;
  padding: 5rem;
  margin: 10rem auto;
  gap: 30px;
}
.skill-container-left {
  width: 50%;
  display: flex;
  flex-direction: column;
}
.skill-container-right {
  display: flex;
  width: 50%;
  flex-wrap: wrap;
  position: relative;
  gap: 2rem;
  justify-content: center;
}
.blob-style {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: blobAnimate 3s linear infinite;
  z-index: -5;
}
@keyframes blobAnimate {
  50% {
    top: 54%;
    left: 56%;
  }
}

.skills-logo {
  width: 90px;
  transition: all 0.5s;
}
.skills-logo:hover {
  transform: scale(1.2);
}
.skill-headings {
  font-size: 50px;
  font-weight: bold;
  color: #e84949;
  line-height: 50px;
}
.caps {
  font-size: 90px;
}
.skill-subheading {
  margin-top: 1rem;
  width: 85%;
  text-align: justify;
}

.skill-subheading p {
  margin: 15px 0;
}
@keyframes blobAnimate {
  50% {
    top: 54%;
    left: 46%;
  }
}
.skills-logo {
  width: 90px;
  transition: all 0.5s;
}
.skills-logo:hover {
  scale: 1.2;
}
.skill-heading {
  font-size: 50px;
  font: bold;
}
.skill-heading {
  position: relative;
  z-index: -9;
  color: var(--bgOrange);
  line-height: 50px;
}
.caps {
  font-size: 80px;
}
.skill-subHeading {
  margin-top: 1rem;
  width: 85%;
  text-align: justify;
}
.skill-subHeading p {
  margin: 15px 0;
}

@media (max-width: 1300px) {
  .skills-container {
    margin: 0;
    padding: 2em 1em;
    flex-direction: column;
  }
  .skill-headings {
    font-size: 36px;
    line-height: 2.4rem;
  }
  .caps {
    font-size: 60px;
  }
  .skill-container-left {
    width: 100%;
  }
  .skill-container-right {
    width: 100%;
    gap: 1rem;
  }
  .skills-logo {
    width: 50px;
  }
  .skill-fade-text {
    display: none;
  }
  .skill-subheading {
    width: 100%;
  }
}
@media (max-width: 600px) {
  .skills-logo {
    width: 40px;
  }
  .skill-headings {
    font-size: 28px;
  }
  .caps {
    font-size: 48px;
  }
}

/* Skills Section End */

/* ----------------------------------------- */

/* Contatct us section start */

.contactus-container {
  width: 100%;
  background-color: rgb(231, 231, 231);
}
.contactus-heading {
  font-size: 5em;
  color: #e84949;
  padding-top: 2rem;
}
.contactus-subheading {
  font-size: 3rem;
  color: #343d68aa;
  text-transform: capitalize;
}
.contactus-form-container {
  margin-top: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.form {
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 70%;
  margin: 2rem 5rem;
}
.formfeild-container {
  width: 100%;
}
.formfeild {
  width: 100%;
  height: 42px;
  padding: 0 2rem;
  font-size: 18px;
  border-radius: 5px;
  box-shadow: 2px 2px 10px #1f1f1f;
  font-weight: 500;
  border: none;
  margin-top: 27px;
  background-color: #ffffff97;
}
.formfeild-textarea {
  height: auto;
  padding-top: 1rem;
}
#submit-btn {
  border: none;
  font-size: 1.4rem;
  margin: 1rem 0;
}
#submit-btn:hover {
  scale: 0.9;
}
.submit-icon {
  padding: 0 1rem;
  font-size: 1.5rem;
}
@media (max-width: 1300px) {
  .contactus-heading {
    font-size: 40px;
    text-align: center;
    padding: 15px 10px;
  }
  .contactus-subheading {
    font-size: 1.4rem;
    padding: 0 10px;
    text-align: center;
  }
  .form {
    width: 100%;
    margin: 0;
    padding: 0 1rem;
    align-items: stretch;
  }
  .formfeild-container {
    width: 100%;
  }
  .formfeild {
    width: 100%;
  }
}
@media (max-width: 600px) {
  .contactus-heading {
    font-size: 2rem;
  }
  .contactus-subheading {
    font-size: 1rem;
  }
  #submit-btn {
    width: 100%;
  }
}
/* Contact me End */

/* ----------------------------- */

/* footer */

footer {
  position: relative;
  margin-top: -1px;
  background-color: #343d68;
  padding: 5rem;
}
.footer-wrapper {
  display: flex;
  gap: 1rem;
  padding: 1.2rem;
  justify-content: space-between;
  align-items: center;
}
.footer-faded-text {
  position: absolute;
  left: 0;
  bottom: 0;
  color: #535c87;
  user-select: none;
  font-size: 5em;
}
.link-wrapper {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  justify-content: center;
}
.link-wrapper div a {
  color: white;
  text-decoration: none;
  transition: all 0.6s;
  font-size: 1rem;
}
.link-wrapper div a:hover {
  color: var(--bgOrange);
  text-decoration: none;
}
.icon-wrapper {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  justify-content: center;
}

@media (max-width: 1300px) {
  footer {
    padding: 1.5rem 1rem;
  }
  .footer-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
  }
  .footer-faded-text {
    display: none;
  }
  .icon-wrapper .icon {
    font-size: 28px;
  }
}
@media (max-width: 600px) {
  .icon-wrapper .icon {
    font-size: 24px;
  }
  .link-wrapper div a {
    font-size: 0.9rem;
  }
}
/* Footer End */

/* ===== Project Modal ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 40, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}
.modal-overlay.active {
  display: flex;
  animation: fadeInOverlay 0.3s ease;
}
@keyframes fadeInOverlay {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal-card {
  background: #fff;
  border-radius: 16px;
  max-width: 680px;
  width: 100%;
  padding: 2.5rem 2.8rem;
  position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
  animation: slideUpModal 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  max-height: 90vh;
  overflow-y: auto;
}
@keyframes slideUpModal {
  from { transform: translateY(60px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: #888;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s, transform 0.2s;
}
.modal-close:hover {
  color: #e84949;
  transform: rotate(90deg);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.modal-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.modal-tech-stack img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 6px;
  background: #f3f3f3;
  padding: 3px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
  transition: transform 0.2s;
}
.modal-tech-stack img:hover {
  transform: scale(1.2);
}

.modal-tag {
  background: linear-gradient(135deg, #e84949, #c43030);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.3rem 0.85rem;
  border-radius: 50px;
}

.modal-title {
  font-size: 2rem;
  font-weight: 800;
  color: #343d68;
  margin-bottom: 0.8rem;
  line-height: 1.2;
}

.modal-description {
  font-size: 1rem;
  color: #555;
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.modal-features {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.modal-features li {
  font-size: 0.95rem;
  color: #444;
  padding-left: 1.4rem;
  position: relative;
}
.modal-features li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: #e84949;
  font-size: 0.7rem;
  top: 4px;
}

.modal-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.modal-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  cursor: pointer;
}
.modal-btn-github {
  background: #343d68;
  color: #fff;
  box-shadow: 0 4px 12px rgba(52,61,104,0.35);
}
.modal-btn-github:hover {
  background: #252d52;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(52,61,104,0.45);
}
.modal-btn-live {
  background: #e84949;
  color: #fff;
  box-shadow: 0 4px 12px rgba(232,73,73,0.35);
}
.modal-btn-live:hover {
  background: #c43030;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(232,73,73,0.45);
}

/* hide live button when no link */
.modal-btn-live.hidden {
  display: none;
}

@media (max-width: 700px) {
  .modal-card {
    padding: 1.8rem 1.4rem;
  }
  .modal-title {
    font-size: 1.5rem;
  }
}
/* ===== Modal End ===== */
