/* google Font - Poppins */
@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,400;1,600&display=swap");
/* variables*/

body {
  background-color: rgb(168, 222, 229);
}
header {
  padding: 10px;
}
:root {
  --header-height: 3rem;
  --font-semi: 600;
}

/*colors*/

:root {
  --first-color: #0c61f3;
  --second-color: #0e2431;
  --gradient-color: linear-gradient(to right, #5001fb, #8e0af3);
}
/*font Style*/
:root {
  --body-font: "Poppins", sans-serif;
  --big-font-size: 2rem;
  --h1-font-size: 1.5rem;
  --normal-font-size: 0.938rem;
}

/*Media Screen Min-width : 768px*/

@media screen and(min-width:768px) {
  :root {
    --big-font-size: 3.5rem;
    --h2-font-size: 2rem;
    --normal-font-size: 1rem;
  }
}

/*Margin */
:root {
  --mb-1: 0.5rem;
  --mb-2: 1rem;
  --mb-3: 1.5rem;
  --mb-4: 2rem;
  --mb-5: 2.5rem;
  --mb-6: 3rem;
}
/* z-index */
:root {
  --z-back: -10;
  --z-normal: 1;
  --z-tooltip: 10;
  --z-fixed: 100;
}

/*Base*/

*,
::before,
::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: var(--header-height) 0 0 0;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  color: var(--second-color);
}

::-webkit-scrollbar {
  width: 0.5rem;
}
::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: var(--first-color);
}

h1,
h2,
p {
  margin: 0;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
li {
  padding: 0.5rem;
}
a {
  text-decoration: none;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* custom css class */

/*layout*/

.bd_grid {
  max-width: 1024px;
  display: grid;
  grid-template-columns: 100%;
  grid-row-gap: 2rem;
  width: calc(100% - 2rem);
  margin-left: var(--mb-2);
  margin-right: var(--mb-2);
}

.header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
  background: #fff;
  box-shadow: 0 1px 4px rgba(127, 140, 153, 0.15);
}

/*Navbar*/
.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: var(--font-semi);
}

@media screen and (max-width: 768px) {
  .nav {
    padding-right: 15px;
  }
  .nav_menu {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: 100%;
    height: 100%;
    padding: 2rem;
    background-color: var(--second-color);
    transition: 0.5s;
  }
}
.nav_items {
  margin-bottom: var(--mb-4);
}
.nav_link {
  position: relative;
  color: #fff;
}
.nav_link:hover {
  position: relative;
}
.nav_link:hover::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 0.18rem;
  left: 0;
  top: 2rem;
  background-color: var(--first-color);
}
.nav_logo {
  color: var(--second-color);
}
.nav_toggle {
  color: var(--second-color);
  font-size: 1.5rem;
  cursor: pointer;
}

/*ACTIVE MENU*/
.active::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 0.18rem;
  left: 0;
  top: 2rem;
  background-color: var(--first-color);
}
.show {
  right: 0;
}
.home {
  height: calc(100vh-3rem);
  row-gap: 1rem;
}
.home_data {
  align-self: center;
}
.home_title {
  font-size: var(--big-font-size);
  margin-bottom: var(--mb-5);
}
.home_title-color {
  color: var(--first-color);
}
.home_social {
  display: flex;
  flex-direction: column;
}
.home_social-icon {
  width: max-content;
  margin-bottom: var(--mb-2);
  font-size: 1.5rem;
  color: var(--second-color);
}
.home_social-icon:hover {
  color: var(--first-color);
}
.home_image {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 250px;
  padding-bottom: 7rem;
  padding-right: 3rem;
  text-align: center;
}
.home_image img {
  padding-top: 2rem;
  padding-bottom: 2rem;
  width: 400%;
  border-radius: 100px;
}
.home_data a {
  margin: 10px;
}
.button {
  display: inline-block;
  color: #fff;
  padding: 0.75rem 2.5rem;
  font-weight: var(--font-semi);
  border-radius: 0.5rem;
  background: var(--gradient-color);
}

.button:hover {
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.15);
}

/* About section */
.section {
  padding-top: 3rem;
  padding-bottom: 5rem;
}
.section-title {
  position: relative;
  font-size: var(--h2-font-size);
  color: var(--second-color);
  margin-top: var(--mb-2);
  margin-bottom: var(--mb-4);
  text-align: center;
}
.section-title::after {
  position: absolute;
  content: "";
  width: 64px;
  height: 0.18rem;
  left: 0;
  right: 0;
  margin: auto;
  top: 2rem;
  background-color: var(--first-color);
}

.about_container {
  row-gap: 2rem;
  text-align: center;
}
.about_subtitle {
  margin-bottom: var(--mb-2);
}
.about_img {
  justify-content: center;
}
.about_img img {
  padding-left: 3.5rem;
  width: 300px;
  border-radius: 10rem;
}

/* Skills */
.skills-section {
  padding: 60px 20px;
  background: rgb(4, 142, 160);
  color: white;
  font-family: "Poppins", sans-serif;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
}

.skills-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 30px;
}

.skills-box {
  width: 300px;
}

.skills-title {
  font-size: 1.3rem;
  margin-bottom: 20px;
  position: relative;
}

.skills-title.design {
  color: #f44336;
}

.skills-title.dev {
  color: #ffeb3b;
}

.skills-title.db {
  color: #ffc107;
}

.skill {
  margin-bottom: 15px;
}

.skill span {
  display: block;
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.skill-bar {
  background-color: #333;
  height: 8px;
  border-radius: 50px;
  overflow: hidden;
}
.skill-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

.percent-label {
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: bold;
}

.bar-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(to right, #ff416c, #ffce00);
  transition: width 3s ease-in-out;
  border-radius: 50px;
}

.skills_container {
  row-gap: 2rem;
  text-align: center;
}
.skills_subtitle {
  margin-bottom: var(--mb-2);
}
.skils_text {
  margin-bottom: var(--mb-4);
}
.skills_data {
  display: flex;
  flex-wrap: wrap;
}
.skills_name {
  flex-basis: 33.33%;
  margin: 1rem;
  padding: 1rem;
}
.skills_name img {
  transition: 1s;
  cursor: pointer;
  box-shadow: rgba(20, 91, 233, 0.48) 6px 2px 16px 0px,
    rgba(255, 255, 255, 0.8) -6px -2px 16px 0px;
  border-radius: 0.5rem;
  overflow: hidden;
}
.skills_name img:hover {
  transform: scale(1.1);
}

.project_container {
  row-gap: 2rem;
}
.project {
  display: block;
  position: relative;
  font-weight: var(--font-semi);
  padding: 0.5rem 1rem;
  margin-bottom: var(--mb-4);
  border-radius: 0.5rem;
  box-shadow: 0 4px 25px rgba(8, 149, 236, 0.15);
}
.project div {
  padding-top: 10px;
  padding-bottom: 20px;
  border-bottom: solid #e7e3e3;
}
.internship_title {
  padding-bottom: 20px;
  text-align: center;
  color: var(--first-color);
}

.internships_name {
  position: relative;
  font-size: var(--h2-font-size);
  color: var(--second-color);
  margin-top: var(--mb-2);
  margin-bottom: var(--mb-4);
}
.internship_name {
  display: flex;
  flex-wrap: wrap;
}
.internship_icon {
  font-size: 1.5rem;
  margin-right: var(--mb-1);
  color: var(--first-color);
}

.internship img {
  width: 100%;
  max-width: 100%;
  border-radius: 10px;
  display: block;
  object-fit: cover;
}

.internship {
  margin-bottom: 40px;
}

/*Certificates*/
.certificates-section {
  padding: 60px 20px;
  background: rgb(4, 142, 160);
  color: white;
  text-align: center;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 40px;
}

.cert-cards-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.cert-card {
  background: #013a55;
  border-radius: 12px;
  width: 280px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.cert-card:hover {
  transform: translateY(-5px);
}

.cert-card img {
  max-width: 80px;
  height: auto;
  margin-bottom: 15px;
}

.cert-card h3 {
  color: #f44336;
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.cert-card p {
  font-size: 0.9rem;
  margin-bottom: 15px;
  color: #ccc;
}

.cert-card a {
  display: inline-block;
  padding: 10px 20px;
  background-color: #e53935;
  color: white;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s;
}

.cert-card a:hover {
  background-color: #d32f2f;
}

/* Education*/

.education_container {
  row-gap: 2rem;
}

.education_data {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  font-weight: var(--font-semi);
  padding: 0.5rem 1rem;
  margin-bottom: var(--mb-4);
  border-radius: 0.5rem;
  box-shadow: 0 4px 25px rgba(13, 27, 45, 0.15);
}

.education_icon {
  font-size: 1.5rem;
  margin-right: var(--mb-1);
  color: var(--first-color);
}

.location_icon {
  font-size: 1.5rem;
  margin-right: var(--mb-1);
  color: var(--first-color);
}

.school_bar {
  position: absolute;
  left: 0;
  bottom: 0;
  background-color: var(--first-color);
  height: 0.25rem;
  border-radius: 0.5rem;
  z-index: var(--z-back);
}

.school_ssc {
  width: 93.4%;
}
.school_hsc {
  width: 93.45%;
}
.school_ug {
  width: 82.67%;
}

.education_level {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--first-color);
}
/* Resume Section */

.resume {
  text-align: center;
}
.resume_container {
  row-gap: 2rem;
}
.certificate_img img:hover {
  transform: scale(1.1);
}

/* button */

.control_input {
  width: 100%;
  font-size: var(--normal-font-size);
  font-weight: var(--font-semi);
  padding: 1rem;
  border-radius: 0.5rem;
  border: 1.5px solid var(--second-color);
  outline: none;
  margin-bottom: var(--mb-4);
}

.control_button {
  display: block;
  border: none;
  outline: none;
  font-size: var(--normal-font-size);
  cursor: pointer;
  margin-left: auto;
}

/* Footer*/

.footer {
  background-color: var(--second-color);
  color: #fff;
  text-align: center;
  font-weight: var(--font-semi);
  padding: 2rem 0;
}

.footer_title {
  font-size: 2rem;
  margin-bottom: var(--mb-4);
}

.footer_socials {
  margin-bottom: var(--mb-4);
}

.footer_icon {
  font-size: 1.5rem;
  color: #fff;
  margin: 0 var(--mb-3);
}

/* Windows Screen */

@media screen and (min-width: 768px) {
  .header {
    margin-left: 6rem;
  }
  body {
    margin: 6rem;
  }
  .section {
    padding-top: 4rem;
    padding-bottom: 3rem;
  }
  .section-title {
    margin-bottom: var(--mb-6);
  }
  .section-title::after {
    width: 80px;
    top: 3rem;
  }
  .nav {
    height: calc(var(--header-height)+1rem);
  }
  .nav_items {
    margin-left: var(--mb-6);
    margin-bottom: 0;
  }
  .nav_list {
    display: flex;
    padding-top: 0;
  }
  .nav_toggle {
    display: none;
  }
  .nav_link {
    color: var(--second-color);
  }
  .home {
    height: 100vh;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(1, 1fr);
    grid-area: auto;
    text-align: center;
    align-items: center;
    text-align: initial;
  }
  .home_data {
    align-self: flex-end;
  }
  .home_social {
    padding-top: 2rem;
    padding-bottom: 2.5rem;
    flex-direction: row;
    align-self: flex-end;
  }
  .home_social-icon {
    margin-bottom: 0;
    margin-right: var(--mb-4);
  }
  .home_image {
    width: 300px;
    bottom: 15%;
  }
  .home_img img {
    width: 100%;
  }

  .about_container {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    text-align: initial;
  }

  .about_img img {
    width: 300px;
  }

  .certificate_container {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    column-gap: 2rem;
  }

  .skills_data {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    justify-content: space-between;
    align-items: stretch;
  }

  .contact_form {
    width: 400px;
  }
  .contact_container {
    justify-items: center;
  }
  .contact_form a {
    position: right;
  }
}

@media screen and(min-width : 1024px) {
  .bd_grid {
    margin-left: auto;
    margin-right: auto;
  }
  .home_image {
    right: 10%;
  }
}
