@import url("https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&display=swap");

:root {
  --body-color: #f9f9f9;
  --color-white: #ffffff;

  --text-color-second: rgb(255, 255, 255);
  --text-color-third: rgb(30, 159, 171);

  --first-color: #1d2135;
  --first-shadow-color: rgb(48, 55, 95);

  --second-color: #eeff2d;
  --first-shadow-color: rgba(0, 0, 0, 0.1);
}

* {
  padding: 0;
  margin: 0;
  max-width: 100%;
  box-sizing: border-box;
  font-family: "Merriweather", serif;
  font-style: normal;
}

/* Cursor */
.cursor-dot {
  position: fixed;
  width: 10px;
  height: 10px;
  background-color: black;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease, width 0.2s ease, height 0.2s ease;
  z-index: 9999;
}

.cursor-dot.hovered {
  width: 30px; /* Increase size */
  height: 30px; /* Increase size */
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}
section {
  scroll-margin-top: 70px;
}

/* Change the scroll bar design */

::-webkit-scrollbar {
  display: none;
}


/* Navbar */

.navbar {
  background-color: var(--color-white) !important;
  /* opacity: 0.9; */
  height: 90px;
  line-height: 90px;
  transition: 0.3s;
  z-index: 100;
}

.navbar-brand {
  font-weight: 900;
  font-size: 1.5em;
}

.navbar-nav {
  font-weight: 600;
  font-size: 1.5em;
}

/* main */
body {
  background-color: var(--body-color);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  cursor: none; 
}

/* first-page */
.home-page {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  min-height: 700px;
}

.home-page h1 {
  font-weight: 900;
}

.featured-box {
  background-color: var(--first-color);
  color: white;

}

.profile-image img {
  width: 90%;
}

.badge-container {
  margin-top: 1rem; 
  margin-bottom: 1rem; 
}
.badge {
  font-size: 0.85rem;
}


.badge-container span {
background-color: var(--second-color);
}

.left-column span {
  box-shadow: 4px 4px 0 var(--first-shadow-color);
}

.left-column h1 {
  font-size: 3.2em;
  text-shadow: 4px 4px 0 var(--first-shadow-color);
}

.left-column p {
  font-size: 1.2rem;
  text-shadow: 2px 2px 0 var(--first-shadow-color);
}

/* About me */
.title-wrap {
  display: flex;
  /* justify-content: center;  */
  align-items: center;
  position: relative;
  width: auto;
  height: 200px;
  overflow: hidden;
}

.bg-dots {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: -0.5rem;
}

#polka-dot-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.section-header {
  position: relative;
  color: black;
  z-index: -1;
  padding-left: 3rem;
  transition: transform 2s cubic-bezier(0.07, 0.22, 0.43, 0.57),
    opacity 1s ease-in-out;
  opacity: 0;
}

.section-header.visible {
  opacity: 1;
}

.section-header h1 {
  font-size: 6rem;
}

.card {
  background-color: var(--body-color);
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.card-body {
  padding: 1.5rem;
}

.about-info h2,
h3 {
  font-weight: 900;
}

.about-info .card-text {
  font-size: 1.1rem;
  line-height: 1.8;
}

.about-me .col-lg-9 {
  position: sticky;
  top: 80px;
  align-self: flex-start;
  height: fit-content;
}

/* My Project */
.project-card h4 {
  font-size: 1.5rem;
  font-weight: 600;
}

.icon-button:hover img {
  filter: invert(1);
}

.project-card {
  width: 100%;
  overflow: hidden;
}

.project-card .card-text {
  line-height: 2;
}

.project-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.project-card img:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.disabled-image {
  filter: grayscale(20%);
  transition: all 0.3s ease;
}

.disabled-image:hover {
  filter: grayscale(100%);
  opacity: 0.4;
}

.contact-c {
  height: 300px;
  transition: 0.3s ease-in-out;
}
.contact-c .bi {
  width: 48px;
  height: 48px;
  transition: 0.5s ease-out;
}
.contact-c h4 {
  transition: 0.5s ease-out;
}

.card.contact-c:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  background-color: var(--first-color);
  .bi {
    width: 80px;
    height: 80px;
    filter: invert(1);
  }
  h4 {
    filter: invert(1);
  }
}
.contact-c{
  cursor: pointer;
  
}

footer {
  background-color: var(--first-color);
  color: var(--text-color-second);
}

#back-to-top {
  background-color: var(--first-color);
  border: 2px solid var(--first-color); /* Adjust the color and width as needed */

  svg {
    transition: 0.3s ease;
  }
}

#back-to-top svg:hover {
  transform: scale(1.3);
}

/* Responsive 1440px */
@media only screen and (max-width: 1440px) {
  .left-column {
    left: 4%;
  }

  .badge {
    font-size: 0.75rem;
  }

  .left-column h1 {
    font-size: 2.8rem;
  }

  .left-column p {
    font-size: 1.1rem;
    width: auto;
  }
}

/* Responsive 1024px */
@media only screen and (max-width: 1024px) {
  .left-column {
    left: 4%;
  }

  .badge {
    font-size: 0.8rem;
  }

  .left-column h1 {
    font-size: 2rem;
  }

  .left-column p {
    font-size: 1.1rem;
  }
}

/* Responsive 991px*/
@media only screen and (max-width: 991px) {
  .cursor-dot{
    display: none;
  }
  .navbar .container-fluid {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
  }

  .navbar-collapse {
    text-align: center;
    width: 100%;
  }

  .navbar-nav {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding-bottom: 100px;
  }

  .navbar-nav .nav-item {
    width: 100%;
  }

  .navbar-nav .nav-link {
    display: block;
    padding: 15px;
    text-align: center;
    width: 100%;
  }

  .navbar-collapse ul {
    height: 100vh;
  }

  .about-me .col-lg-9 {
    position: static;
  }
  .featured-box {
    height: 100%;
    width: 100%;
    max-width: 27rem;
    max-height: 42rem;
  }

  .badge{
    font-size: 0.65rem;
    margin-bottom: 0.4rem;
    margin-top: 1rem;
  }
  
  .featured-box h1,
  .featured-box p {
    margin-bottom: 1rem;
  }

  .left-column h1 {
    font-size: 1.75rem;
  }

  .left-column p {
    font-size: 1rem;
  }
  .profile-image img{
    width: 85%;
  }
  
  
  .card-group {
    flex-direction: column;
    gap: 1rem;
  }
  .contact-c {
    width: 100%;
    border-radius: 10px !important;
  }
}

/* Responsive 768px */
@media only screen and (max-width: 768px) {

  .featured-box {
    height: 100%;
    width: 100%;
    max-width: 500px;
    max-height: 820px;
  }
  .featured-box .badge{
    margin-bottom: 0.4rem;
  }

  .featured-box h1,
  .featured-box p {
    margin-bottom: 1.5rem;
  }

  .profile-image img {
    margin-top: 0.5rem;
  }

  .card-group {
    flex-direction: column;
    gap: 1rem;
  }
  .contact-c {
    width: 100%;
    border-radius: 10px !important;
  }
}

/* Responsive 480px */
@media only screen and (max-width: 480px) {
  .featured-box {
    height: 100%;
    width: 100%;
    max-width: 21.5rem;
    max-height: 37rem;
  }
  .featured-box h1,
  .featured-box p {
    margin-bottom: 1rem;
  }
  
  .badge {
    font-size: 0.55rem;
  }

  .badge-container {
    margin-top: 1rem; 
  }

  .left-column h1 {
    font-size: 1.5rem;
  }

  .left-column p {
    font-size: 0.85rem;
  }
  .profile-image img {
    width: 90%;
    margin-top: 0.5rem; 
  }
  
  .section-header h1{
    font-size: 5rem;
  }
}

@media only screen and (max-width: 394px){
  .section-header h1{
    font-size: 3.7rem;
  }
}

