@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body,
html {
  overflow-x: hidden;
}

:root {
  --primary-color: #282938;
  /* --secondary-color: #5e3bee; */
  --secondary-color: #3f24aa;
  --tertiary-color: #1c1e53;
  --btn-text-color: #ffffff;
  --banner-bg-color: #f5fcff;
  --foot-link-color: #000000;
  --radient1: #98c9de;
}

body {
  font-family: "Roboto", sans-serif;
}

/* Common Classes */

a {
  text-decoration: none;
  display: inline-block;
}

ul {
  list-style-type: none;
}

.container {
  max-width: 1470px;
  padding: 0 15px;
  margin: 0 auto;
  width: 100%;
}

.primary-btn {
  padding: 18.67px 25.33px;
  color: var(--secondary-color);
  border: 1px solid var(--secondary-color);
  border-radius: 5px;
  font-size: 20px;
}

.primary-btn:hover {
  background-color: var(--secondary-color);
  color: var(--btn-text-color);
  transition: 0.6s linear;
}

.secondary-btn {
  padding: 18.67px 25.33px;
  color: var(--btn-text-color);
  background-color: var(--secondary-color);
  border-radius: 5px;
  /* margin-bottom: 25px; */
  font-size: 20px;
}

.secondary-btn:hover {
  background-color: transparent;
  border: 1px solid var(--secondary-color);
  color: var(--secondary-color);
  transition: 0.6s linear;
}

.card-btn {
  background-color: var(--secondary-color);
  color: var(--btn-text-color);
  padding: 10px 18px;
  font-size: 18px;
}

.card-btn:hover {
  background-color: var(--btn-text-color);
  border: 1px solid var(--secondary-color);
  color: var(--secondary-color);
  transition: 0.6s linear;
}

.form-btn {
  background-color: var(--secondary-color);
  color: var(--btn-text-color);
  padding: 18px 50px;
  border: none;
  border-radius: 8px;
  font-size: 18px;
}

.form-btn:hover {
  background-color: var(--btn-text-color);
  border: 1px solid var(--secondary-color);
  color: var(--secondary-color);
  transition: 0.6s linear;
}
.title1 {
  font-size: 68px;
  font-weight: bold;
  max-width: 790px;
}

.title2 {
  font-size: 56px;
  font-weight: bold;
  max-width: 790px;
  margin-bottom: 25px;
}

.title2 > span {
  font-size: 20px;
}

h4,
h5 {
  font-size: 20px;
  font-weight: bold;
}

/* Header Section */

.navbar-brand {
  font-size: 28px;
  font-weight: bold;
}

.nav-link {
  color: var(--tertiary-color) !important;
  margin-right: 42.67px;
  font-size: 22px;
}

.nav-link:hover {
  color: var(--secondary-color) !important;
}

.offcanvas {
  flex-direction: row !important;
  align-items: center;
  background-color: var(--radient1);
}

.offcanvas-header {
  margin-top: 15px;
  border-color: var(--primary-color);
}

.cross-icon {
  font-size: 1.1rem;
}

/* Banner Section */

.banner-sec {
  padding: 60px 0;
  /* background-color: var(--banner-bg-color); */
  background-image: linear-gradient(to bottom, #ceefff, #f5fcff);
  /* min-height: 100vh; */
}

.row {
  display: flex;
}

.banner-row {
  align-items: center;
}

.title1 > span {
  color: var(--secondary-color);
}

p {
  font-size: 18px;
}

.banner-social-icons {
  width: 45px;
}

.banner-social-icons > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-social-icons:hover {
  transform: translateY(2px) scale(1.1);
}

.banner-img {
  width: 450px;
  margin: 0 auto;
}

.banner-img > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.banner-btn {
  margin-bottom: 25px;
}

/* My Skill Srction */

.myskill-sec {
  padding: 50px 0 110px;
  /* background-color: var(--banner-bg-color); */
  background-image: linear-gradient(to bottom, #98c9de, #f5fcff);
}

/* --- New Addition from Chatgpt ---*/
.skill {
  display: flex;
  align-items: center;
  gap: 20px; /* spacing between cards */
  flex-wrap: wrap; /* optional: makes it responsive */
}

.skill-card {
  display: flex;
  flex-direction: column; /* stack image and h3 vertically */
  align-items: center; /* center horizontally */
  justify-content: center; /* center vertically */
  text-align: center;
}

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

.skill-hdr > .title2 {
  margin-bottom: 40px;
}

.skill-hdr > .title2 > span {
  font-size: 20px;
}

.skill-card {
  text-align: center;
  margin: 0 auto;
}

.skill-card > h3 {
  text-align: center;
  margin: 0 auto;
}

.skill-img {
  width: 120px;
  /* height: 100px; */
  margin-bottom: 15px;
}

.skill-img > img {
  height: 100%;
  width: 100%;
  object-fit: contain;
}

/* About Section */
.about-sec {
  padding: 50px 0;
}

.about-row {
  align-items: center;
}

.about-img {
  width: 500px;
  margin: 0 auto 25px;
}

.about-img > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-col > h2 > span {
  font-size: 20px;
}

.about-col > p {
  max-width: 600px;
  margin-bottom: 25px;
}

/* Servive Section */

.service-sec {
  padding: 40px 0;
}

.service-card {
  background-image: linear-gradient(to bottom, #ceefff, #f5fcff, #ceefff);
  padding: 20px;
  border-radius: 10px;
}

.card-img {
  width: 80px;
}

.card-img > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.card-img > .card-img-responsive {
  padding: 10px;
  border-radius: 11px;
}

/* Project Section */

.project-sec {
  padding: 80px 0;
  /* background-color: var(--banner-bg-color); */
  /* background-color: #83a7d6; */
}

.project-hdr > h2 > span {
  font-size: 20px;
}

.project-title-margin {
  margin-bottom: 60px;
}

.card {
  width: 100%;
  /* height: 400px !important;  */
  margin-bottom: 21px;
  padding: 18px;
  /* background-color: #bab3d0; */
}

.card-title {
  margin-bottom: 12px;
}

.card-img > .card-img-top {
  height: 100%;
  width: 100%;
  object-fit: cover;
  border-radius: 5px;
}

.shadow {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Contact Me Section */

.contact-sec {
  padding-block: 50px;
}

.contact-hdr {
  margin-bottom: 50px;
}

.contact-hdr > .title2 > span {
  font-size: 20px;
}

.form-input-btn {
  text-align: center;
}

.form-btn {
  border: 2px solid transparent;
}

#first-name,
#last-name,
#inputEmail,
#phone-no,
#exampleFormControlTextarea1,
#gridCheck {
  box-shadow: 0 0.1rem 1rem rgba(0, 0, 0, 0.1) !important;
}

.form-label {
  font-size: 20px;
}

/* Footer Section */

.footer-sec {
  padding: 50px 0;
  /* background-color: var(--banner-bg-color); */
  background-image: linear-gradient(to bottom, #ceefff, #f5fcff);
}

.foot-logo {
  color: var(--tertiary-color);
  font-size: 25px;
}

.foot-link {
  color: var(--foot-link-color) !important;
  margin: 0 auto;
  font-size: 18px;
}

.foot-link:hover {
  color: var(--secondary-color) !important;
}

.social-icons {
  margin-right: 16px;
}

.social-icons {
  width: 32px;
}

.social-icons > img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.social-icons:hover {
  transform: translateY(2px) scale(1.2);
}

.footer-top {
  margin-bottom: 60px;
}

/* Media Quaries */

@media screen and (max-width: 1200px) {
  /* Project Section */
  .about-img {
    width: 440px;
    margin: 25px auto;
  }
  .project-hdr > .title2 {
    font-size: 46px;
    text-align: center;
    margin: 0 auto 25px;
  }
  .about-col > p {
    margin: 0 auto 25px;
    /* text-align: center; */
  }
}

@media screen and (max-width: 992px) {
  /* Header Section */
  .offcanvas {
    flex-direction: column !important;
  }

  .navbar-nav {
    margin: 0 !important;
  }

  .nav-link {
    margin: 15px auto 0;
    text-align: center;
    font-size: 20px;
  }

  .nav-btn {
    margin-top: 15px;
  }

  /* Banner Section */

  .banner-sec {
    padding: 40px 0;
  }
  .banner-row {
    flex-direction: column-reverse;
  }

  .banner-img {
    width: 340px;
  }

  .title1 {
    font-size: 56px;
  }
  h4 {
    font-size: 18px;
  }

  .secondary-btn {
    padding: 8px 12px;
    font-size: 16px;
  }

  .primary-btn {
    padding: 8px 12px;
    font-size: 16px;
  }

  /* About Section */

  .about-img {
    width: 370px;
  }
  .about-col > .about-btn {
    text-align: center;
  }

  .about-col > .title2 {
    margin: 0 auto 25px;
    text-align: center;
  }

  .about-col > p {
    margin: 0 auto 25px;
    text-align: center;
  }

  /* Skill Section */
  .skill-img {
    width: 60px;
  }
}

@media screen and (max-width: 768px) {
  /* Banner Section */

  .banner-sec {
    padding: 30px 0;
  }

  .title1 {
    font-size: 46px;
  }

  .title2 {
    font-size: 36px;
  }
  p {
    font-size: 16px;
  }
  .banner-img {
    width: 250px;
    margin: 25px auto;
  }

  .banner-social-icons {
    width: 32px;
  }

  /* About Section */

  .about-sec {
    padding: 30px 0;
  }
  .about-img {
    width: 250px;
    margin: 25px auto;
  }
  .title2 {
    font-size: 36px;
    text-align: center;
  }
  .about-sec > p {
    margin: 0 auto;
  }

  /* Project Section */

  .project-hdr > .title2 {
    font-size: 36px;
  }
}

@media screen and (max-width: 576px) {
  /* Header Section */

  .navbar-brand {
    font-size: 18px;
  }

  .navbar-toggler {
    padding: 2px 4px; /* controls button size */
    font-size: 0.6rem; /* controls icon scaling slightly */
    /* border: none; optional, if you want a cleaner look */
  }
  .navbar-toggler-icon {
    width: 20px;
  }

  /* Banner Section */

  .banner-sec {
    padding: 10px 0;
  }

  h4 {
    font-size: 18px;
  }

  .title1 {
    font-size: 35px;
  }

  p {
    font-size: 14px;
  }

  .banner-social-icons {
    width: 30px;
  }

  .secondary-btn {
    padding: 8px 12px;
    font-size: 16px;
  }

  .primary-btn {
    padding: 8px 12px;
    font-size: 16px;
  }

  .banner-img {
    width: 190px;
    margin: 25px auto;
  }

  /* About Section */

  .about-sec {
    padding: 20px 0;
  }
  .about-img {
    width: 190px;
    margin: 25px auto;
  }

  .title2 {
    font-size: 30px;
    text-align: center;
  }

  /* portfolio Section */

  .project-sec {
    padding: 20px 0;
  }

  .project-hdr > .title2 {
    font-size: 30px;
  }

  .card-btn {
    padding: 8px 16px;
    font-size: 14px;
  }

  /* Skill Section */
  .skill-img {
    width: 45px;
  }

  .skill-card > h3 {
    font-size: 18px;
  }

  /* Contact Section */

  .form-btn {
    padding: 8px 16px;
    font-size: 16px;
  }
}
