@font-face {
  font-family: 'BasierSquareMono';
  src: url('./fonts/BasierSquareMono-Regular.woff2') format('woff2'),
       url('./fonts/BasierSquareMono-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  outline: none;
  border: none;
  text-transform: capitalize;
  transition: all 0.2s linear;
}

/* Ensure proper touch scrolling on mobile for all images */
img {
  touch-action: pan-y;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  max-width: 100%;
  height: auto;
}

/* Additional mobile scrolling fixes */
@media (max-width: 768px) {
  html, body {
    -webkit-overflow-scrolling: touch;
    overflow-x: hidden;
  }

  .work .box-container .box,
  .home .image,
  .about .row .image {
    touch-action: manipulation;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }

  /* Ensure project cards don't interfere with scrolling */
  .work .box-container .box .content {
    pointer-events: none;
  }

  .work .box-container .box:hover .content {
    pointer-events: auto;
  }
}
html {
  font-size: 62.5%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}
/* Light Theme (Default) */
:root {
  --bg-primary: #f7f7f7;
  --bg-secondary: #ffffff;
  --text-primary: #0e2431;
  --text-secondary: #666666;
  --accent-primary: #4CAF50;
  --accent-secondary: #2E7D32;
  --border-color: #e0e0e0;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --card-bg: #ffffff;
  --timeline-bg: #4CAF50;
  --timeline-text: #ffffff;
}

/* Dark Theme */
[data-theme="dark"] {
  --bg-primary: #121212;
  --bg-secondary: #1e1e1e;
  --text-primary: #ffffff;
  --text-secondary: #cccccc;
  --accent-primary: #4CAF50;
  --accent-secondary: #2E7D32;
  --border-color: #333333;
  --shadow-color: rgba(0, 0, 0, 0.3);
  --card-bg: #2a2a2a;
  --timeline-bg: #4CAF50;
  --timeline-text: #ffffff;
}

body {
  background: var(--bg-primary) !important;
  font-family: 'BasierSquareMono', monospace;
  color: var(--text-primary) !important;
  transition: background-color 0.3s ease, color 0.3s ease;
}


*::selection {
  background: var(--accent-primary);
  color: var(--timeline-text);
}

html {
  font-size: 62.5%;
  overflow-x: hidden;
  background: var(--bg-primary) !important;
}
html::-webkit-scrollbar {
  width: 0.8rem;
}
html::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}
html::-webkit-scrollbar-thumb {
  background: var(--accent-primary);
}

/* pre loader start */
.loader-container {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
}
.loader-container.fade-out {
  top: -120%;
}
/* pre loader end */

/* navbar starts */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.7rem 10%;
  height: 6.5rem;
  background-color: var(--bg-secondary);
  box-shadow: 0 1px 4px rgba(146, 161, 176, 0.3);
}
section {
  min-height: 100vh;
  padding: 2rem 9%;
}
.heading {
  font-size: 3.5rem;
  color: var(--text-primary);
  font-weight: 800;
  text-align: center;
}
.heading span {
  color: var(--accent-primary);
}
header .logo {
  font-size: 2.6rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--text-primary);
}
header .logo i {
  font-size: 2.2rem;
}
header .logo:hover {
  color: var(--accent-primary);
}
header .navbar ul {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
}
header .navbar li {
  margin-left: 2.5rem;
}
header .navbar ul li a {
  font-size: 2.1rem;
  color: var(--text-primary);
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.04rem;
  transition: 0.2s;
}
header .navbar ul li a.active,
header .navbar ul li a:hover {
  color: #4CAF50;
  border-bottom: 0.2rem solid #4CAF50;
  padding: 0.5rem 0;
}
/* navbar ends */

/* hamburger icon starts*/
#menu {
  font-size: 2.5rem;
  cursor: pointer;
  color: var(--text-primary);
  display: none;
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

#menu:hover {
  background-color: var(--accent-primary);
  color: var(--timeline-text);
}
@media (max-width: 768px) {
  header {
    padding: 1.7rem 5%;
  }
  #menu {
    display: block;
    order: -1;
    margin-right: 1.5rem;
  }
  header .navbar {
    position: fixed;
    top: 6.5rem;
    right: -120%;
    width: 75%;
    height: 100%;
    text-align: left;
    align-items: flex-start;
    background-color: var(--bg-secondary);
  }
  header .navbar ul {
    flex-flow: column;
    padding: 2rem;
  }
  header .navbar ul li {
    text-align: center;
    width: 100%;
    margin: 1rem 0;
    border-radius: 0.5rem;
    width: 26rem;
  }
  header .navbar ul li a {
    display: block;
    padding: 1rem;
    text-align: left;
    color: var(--text-primary);
    font-size: 2.6rem;
  }
  header .navbar ul li a.active,
  header .navbar ul li a:hover {
    padding: 1rem;
    color: var(--accent-primary);
    border-radius: 0.5rem;
    border-bottom: 0.5rem solid var(--accent-primary);
  }
  .fa-times {
    transform: rotate(180deg);
  }
  header .navbar.nav-toggle {
    right: 0;
  }
}
/* hamburger icon ends */

/* theme toggle button */
.theme-toggle {
  margin-right: 2rem;
}

.theme-btn {
  background: transparent;
  border: 2px solid var(--accent-primary);
  color: var(--accent-primary);
  border-radius: 50%;
  width: 45px;
  height: 45px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: 1.2rem;
  margin-left: 1rem;
}

.theme-btn:hover {
  background: var(--accent-primary);
  color: var(--timeline-text);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

[data-theme="dark"] .theme-btn i::before {
  content: "\f185"; /* sun icon */
}

[data-theme="dark"] .theme-btn:hover {
  background: var(--bg-secondary);
  color: var(--accent-primary);
}

/* hero section starts*/
.home {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  min-height: 100vh;
  align-items: center;
}
.home #particles-js {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
}
.home::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
}
.home .content {
  flex: 1 1 40rem;
  padding-top: 1rem;
  z-index: 1;
}
.home .image {
  flex: 1 1 40rem;
  z-index: 1;
}
.home .image img {
  width: 70%;
  margin-left: 6rem;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  touch-action: pan-y; /* Allow vertical scrolling on mobile */
}
.home .image img:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}
.home .content h2 {
  font-size: 5rem;
  font-weight: 800;
  color: var(--text-primary);
}
.home .content h2 span {
  font-size: 5rem;
  font-weight: 800;
  color: #FF6B35;
}
.home .content p {
  font-size: 2.5rem;
  color: var(--text-primary);
  font-weight: 600;
  padding: 1rem 0;
}
.home .content p span {
  font-size: 2.5rem;
  color: #4CAF50;
  font-weight: 600;
  padding: 1rem 0;
}
.home .btn {
  margin-top: 1rem;
  position: absolute;
  line-height: 0;
  padding: 1.6rem 3rem;
  border-radius: 4em;
  transition: 0.5s;
  color: #4CAF50;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid #4CAF50;
  box-shadow: 0px 5px 18px rgba(76, 175, 80, 0.3);
  font-family: 'BasierSquareMono', monospace;

}
.home .btn span {
  font-weight: 700;
  font-size: 1.7rem;
  letter-spacing: 0.1rem;
}
.home .btn i {
  margin-left: 0.3rem;
  font-size: 1.5rem;
  transition: 0.3s;
  color: #4CAF50;
}
.home .btn:hover {
  background: #fff;
  color: #000;
  border-color: #4CAF50;
  box-shadow: 0px 5px 18px rgba(76, 175, 80, 0.5);
}
.home .btn:hover i {
  transform: translateX(5px);
  color: #000;
}
/* social icons start */
.socials {
  position: relative;
  margin-top: 9rem;
}
.socials .social-icons {
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}
.socials .social-icons li {
  display: inline-block;
  margin-bottom: 14px;
}
.social-icons a {
  font-size: 2rem;
  display: inline-block;
  line-height: 44px;
  color: #1DA1F2;
  background-color: #000000;
  border: 2px solid #000000;
  width: 44px;
  height: 44px;
  text-align: center;
  margin-right: 8px;
  border-radius: 100%;
  -webkit-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.social-icons a:active,
.social-icons a:focus,
.social-icons a:hover {
  color: #ffffff;
  background-color: #66BB6A;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 187, 106, 0.4);
  border-color: #66BB6A;
}
.social-icons a.github:hover {
  background-color: #66BB6A;
}
.social-icons a.twitter:hover {
  background-color: #66BB6A;
}
.social-icons a.linkedin:hover {
  background-color: #66BB6A;
}
.social-icons a.dev:hover {
  background-color: #66BB6A;
}
.social-icons a.instagram:hover {
  background-color: #66BB6A;
}
/* social icons end */

/* hero media queries starts*/
@media (min-width: 769px) {
  .home .image img {
    margin-top: 6rem;
  }
}
@media (max-width: 450px) {
  .home .btn {
    margin: 4rem 0;
  }
  .socials {
    margin-top: 12rem;
  }
  .home .image img {
    margin-top: -12rem;
  }
  .home .content p {
    font-size: 2.2rem;
  }
  .home .content p span {
    font-size: 2.2rem;
    color: #4CAF50;
  }
  .home {
    min-height: 126vh;
  }
}
/* hero media queries ends*/
/* hero section end */

/* about section starts */
.about {
  background: var(--bg-secondary);
}
.about .row {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 4rem;
}
.about .row .image {
  text-align: center;
  flex: 1 1 35rem;
}
.about .row .image img {
  margin: 4rem;
  width: 30rem;
  height: auto;
  border-radius: 5%;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.6);
  mix-blend-mode: luminosity;
  transition: 0.3s;
  cursor: pointer;
  touch-action: pan-y; /* Allow vertical scrolling on mobile */
}
.about .row .image img:hover {
  mix-blend-mode: normal;
}
.about .row .content {
  flex: 1 1 45rem;
  padding: 3rem;
}
.about .row .content h3 {
  color: var(--text-primary);
  font-size: 2.5rem;
}
.about .row .content .tag {
  font-size: 1.4rem;
  color: var(--accent-primary);
  font-weight: 600;
  margin-top: 1rem;
}
.about .row .content p {
  font-size: 1.5rem;
  margin-top: 1.5rem;
  font-family: 'BasierSquareMono', monospace;
  font-weight: 500;
  text-transform: none;
  color: var(--text-secondary);
}
.about .row .content p.about-pro {
  font-family: 'Inter', 'Roboto', sans-serif;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.01em;
  font-size: 1.6rem;
}
.about .row .content .box-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-family: 'BasierSquareMono', monospace;
  font-weight: 500;
}
.about .row .content .box-container .box p {
  text-transform: none;
}
.about .row .content .box-container .box p span {
  color: var(--accent-primary);
}
.resumebtn {
  margin-top: 6rem;
}
.resumebtn .btn {
  padding: 1.7rem 3rem;
  border-radius: 0.5em;
  transition: 0.3s;
  color: #fff;
  background: #4CAF50;
  box-shadow: 0px 5px 10px rgba(76, 175, 80, 0.6);
  font-family: 'BasierSquareMono', monospace;
}
.resumebtn .btn span {
  font-weight: 600;
  font-size: 1.8rem;
  letter-spacing: 0.1rem;
}
.resumebtn .btn i {
  margin-left: 0.3rem;
  font-size: 1.2rem;
  transition: 0.3s;
}
.resumebtn .btn:hover {
  background: #2E7D32;
}
.resumebtn .btn:hover i {
  transform: translateX(5px);
}
/* about media queries starts*/
@media screen and (max-width: 600px) {
  .about .row .image {
    margin-top: 2rem;
  }
  .about .row .image img {
    margin: 0 auto;
    width: 80%;
    mix-blend-mode: normal;
  }
  .about .row {
    padding: 0.5rem;
    margin-bottom: 7rem;
  }
  .about .row .content {
    padding: 1rem;
  }
  .about .row .content .box-container {
    gap: 0;
  }
}
/* about media queries ends*/
/* about section ends */

/* skills section starts */
.skills {
  min-height: 90vh;
  background: linear-gradient(to bottom, var(--bg-primary), var(--bg-secondary));
}
.skills h2 {
  color: var(--text-primary);
}
.skills .heading span {
  color: #4CAF50;
}
.skills .container {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-radius: 1rem;
  padding: 2rem;
  width: 90%;
  margin: auto;
  margin-top: 2rem;
}
.skills .container .row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  flex-wrap: wrap;
  gap: 1.8rem;
}
.skills .container .bar {
  margin-bottom: 15px;
  padding: 10px;
  border-radius: 1rem;
  box-shadow: var(--shadow-color);
  background: var(--card-bg);
  transition: 0.2s;
}
.skills .container .bar:hover {
  box-shadow: 0 8px 10px var(--accent-primary) !important;
  background-color: var(--bg-secondary) !important;
}
.skills .container .bar .info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}
.skills .container .bar .info i {
  font-size: 4rem;
}
.skills .container .bar .info span {
  font-size: 2rem;
  font-weight: 500;
  font-family: "BasierSquareMono", monospace;
  margin-left: 0.5rem;
}
/* skills media queries starts*/
@media screen and (max-width: 600px) {
  .skills .container {
    padding: 0;
    margin: 0;
  }
  .skills .container .row {
    grid-template-columns: repeat(2, 1fr);
    margin: 1rem;
    padding: 2rem 0.2rem 2rem 0.2rem;
    gap: 1rem;
  }
  .skills .container {
    margin-top: 5px;
    width: 100%;
  }
}
/* skills media queries ends*/
/* skills section ends */

/* education section starts */
.education {
  background: var(--bg-primary);
  min-height: 80vh;
}
.education .qoute {
  font-size: 1.5rem;
  text-align: center;
  font-family: 'BasierSquareMono', monospace;
  font-weight: 500;
  margin-top: 0.5rem;
  text-decoration: italic;
  color: var(--text-secondary);
}
.education .box-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
.education .box-container .box {
  display: flex;
  flex-direction: row;
  width: 80%;
  border-radius: 0.5rem;
  box-shadow: 0.2rem 0.5rem 1rem rgba(0, 0, 0, 0.2);
  text-align: center;
  position: relative;
  margin-top: 2rem;
  overflow: hidden;
  transition: 0.3s;
  background: var(--card-bg);
}
.education .box-container .box:hover {
  transform: scale(1.03);
  box-shadow: 1rem 0.5rem 1.2rem rgba(0, 0, 0, 0.3);
}
.education .box-container .box .image {
  flex: 1 1 20rem;
  width: 100%;
}
.education .box-container .box img {
  object-fit: cover;
  position: relative;
  width: 100%;
  height: 100%;
}
.education .box-container .box .content {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1rem;
  flex-wrap: wrap;
  flex: 1 1 70rem;
}
.education .box-container .box .content h3 {
  font-size: 2.5rem;
  color: var(--text-primary);
  padding: 0.5rem 0;
  font-weight: 600;
  text-align: left;
  margin-left: 1rem;
}
.education .box-container .box .content p {
  font-size: 1.5rem;
  margin-left: 1rem;
  text-align: left;
  color: var(--text-secondary);
}
.education h4 {
  font-size: 2rem;
  color: var(--accent-primary);
  text-align: left;
  margin: 1rem;
  font-family: 'BasierSquareMono', monospace;
  font-weight: 500;
}

/* education media queries starts*/
@media screen and (max-width: 600px) {
  .education .box-container .box {
    flex-direction: column;
    width: 100%;
  }
  .education .box-container .box .image {
    width: 100%;
    height: 25rem;
  }
  .education .box-container .box img {
    width: 100%;
  }
  .education .box-container .box .content {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    flex-wrap: wrap;
    flex: 0;
  }
  .education .btns {
    margin-top: 2rem;
    margin-left: 1rem;
    margin-right: 1rem;
    flex-wrap: wrap;
  }
}
/* education media queries ends*/
/* education section ends */

/* work section starts */
.work {
  background: var(--bg-primary);
}
.work h2 {
  color: var(--text-primary);
  padding: 1rem;
}
.work .heading span {
  color: #4CAF50;
}
.work .button-group {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}
.work .button-group .btn {
  padding: 1rem 2rem;
  border: 2px solid var(--accent-primary);
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  border-radius: 0.5rem;
  font-weight: 600;
  font-family: 'BasierSquareMono', monospace;
  transition: 0.3s;
}
.work .button-group .btn:hover,
.work .button-group .btn.active {
  background: var(--accent-primary);
  color: #fff;
}
.work .box-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 2rem;
}
.work .box-container .box {
  flex: 1 1 30rem;
  border-radius: 0.5rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  height: 30rem;
  touch-action: pan-y; /* Allow vertical scrolling on mobile */
}
.work .box-container .box img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  touch-action: pan-y; /* Allow vertical scrolling on mobile */
  pointer-events: auto; /* Ensure touch events work properly */
}
.work .box-container .box .content {
  height: 100%;
  width: 100%;
  position: absolute;
  top: 85%;
  left: 0;
  background: var(--card-bg);
  display: flex;
  flex-direction: column;
}
.work .box-container .box .content .tag {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  height: 4.5rem;
  width: 100%;
  padding-left: 1rem;
  background: #4CAF50;
}
.work .box-container .box .content .tag h3 {
  font-size: 2rem;
}
.work .box-container .box:hover .content {
  top: 25%;
}
.work .desc {
  margin: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.work .desc p {
  font-size: 1.5rem;
}
.work .desc .btns {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 2rem;
}
.work .desc .btns .btn {
  line-height: 0;
  display: inline;
  padding: 1.5rem 2.5rem;
  border-radius: 0.5rem;
  font-size: 1.5rem;
  color: #fff;
  background: rgb(12, 12, 12);
  margin-right: 2rem;
}
.work .desc .btns .btn:hover {
  background: #310ae0f5;
}
.work .viewall {
  display: flex;
  justify-content: center;
}
.work .viewall .btn {
  position: relative;
  line-height: 0;
  padding: 1.6rem 3rem;
  border-radius: 0.5em;
  transition: 0.5s;
  color: #4CAF50;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid #4CAF50;
  box-shadow: 0px 5px 10px rgba(76, 175, 80, 0.3);
  text-align: center;
}
.work .viewall .btn span {
  font-weight: 600;
  font-size: 1.7rem;
  font-family: 'BasierSquareMono', monospace;
}
.work .viewall .btn i {
  margin-left: 0.3rem;
  font-size: 1.5rem;
  transition: 0.3s;
}
.work .viewall .btn:hover {
  background: #fff;
  color: #000;
  border-color: #4CAF50;
  box-shadow: 0px 5px 15px rgba(76, 175, 80, 0.5);
}
.work .viewall .btn:hover i {
  transform: translateX(5px);
}
/* work section ends */

/* star badge for featured projects */
.star-badge {
  color: #FFD700;
  margin-left: 0.5rem;
}

/* experience section starts */
.experience .timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}
.experience .timeline::after {
  content: "";
  position: absolute;
  width: 6px;
  background: #020133;
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
  z-index: -2;
}
.experience .container {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
}
/*circles on timeline*/
.experience .container::after {
  content: "\f0b1";
  position: absolute;
  width: 25px;
  height: 25px;
  right: -17px;
  background-color: rgb(255, 255, 255);
  border: 4px solid #4CAF50;
  top: 15px;
  border-radius: 50%;
  z-index: 100;
  font-size: 1.89rem;
  text-align: center;
  font-weight: 600;
  color: #02094b;
  font-family: "Font Awesome\ 5 Free";
}
.experience .left {
  left: 0;
}
.experience .right {
  left: 50%;
}
/* arrows pointing right */
.experience .left::before {
  content: " ";
  height: 0;
  position: absolute;
  top: 22px;
  width: 0;
  z-index: 1;
  right: 30px;
  border: medium solid #4CAF50;
  border-width: 10px 0 10px 10px;
  border-color: transparent transparent transparent #4CAF50;
}
/* arrows pointing left  */
.experience .right::before {
  content: " ";
  height: 0;
  position: absolute;
  top: 22px;
  width: 0;
  z-index: 1;
  left: 30px;
  border: medium solid #4CAF50;
  border-width: 10px 10px 10px 0;
  border-color: transparent #4CAF50 transparent transparent;
}
.experience .right::after {
  left: -16px;
}
.experience .content {
  background-color: var(--timeline-bg);
  position: relative;
  border-radius: 6px;
  color: var(--timeline-text);
}
.experience .content .tag {
  font-size: 1.3rem;
  padding-top: 1.5rem;
  padding-left: 1.5rem;
}
.experience .content .desc {
  margin-left: 1.5rem;
  padding-bottom: 1rem;
}
.experience .content .desc h3 {
  font-size: 1.5rem;
  font-weight: 600;
}
.experience .content .desc p {
  font-size: 1.2rem;
}
/* view all button */
.morebtn {
  display: flex;
  justify-content: center;
}
.morebtn .btn {
  position: relative;
  line-height: 0;
  padding: 1.6rem 3rem;
  border-radius: 0.5em;
  transition: 0.5s;
  color: #4CAF50;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid #4CAF50;
  box-shadow: 0px 5px 10px rgba(76, 175, 80, 0.3);
  text-align: center;
}
.morebtn .btn span {
  font-weight: 600;
  font-size: 1.7rem;
  font-family: 'BasierSquareMono', monospace;
}
.morebtn .btn i {
  margin-left: 0.3rem;
  font-size: 1.5rem;
  transition: 0.3s;
}
.morebtn .btn:hover {
  background: #fff;
  color: #000;
  border-color: #4CAF50;
  box-shadow: 0px 5px 15px rgba(76, 175, 80, 0.5);
}
.morebtn .btn:hover span {
  color: #000;
}
.morebtn .btn:hover i {
  transform: translateX(5px);
}

/* Media queries - Responsive timeline on screens less than 600px wide */
@media screen and (max-width: 600px) {
  .experience {
    min-height: 80vh;
  }
  .experience .timeline {
    margin-top: 2rem;
  }
  .experience .timeline::after {
    left: 31px;
  }
  .experience .container {
    width: 100%;
    padding-left: 8rem;
    padding-right: 2rem;
  }
  .experience .container::after {
    font-size: 2.2rem;
  }
  .experience .container::before {
    left: 61px;
    border: medium solid #4CAF50;
    border-width: 10px 10px 10px 0;
    border-color: transparent #4CAF50 transparent transparent;
  }
  .experience .left::after {
    left: 15px;
  }
  .experience .right::after {
    left: 15px;
  }
  .experience .right {
    left: 0%;
  }
  .morebtn {
    margin-top: 3rem;
  }
}
/* experience media queries ends */
/* experience section ends */

/* testimonials section starts */
.testimonials {
  min-height: auto;
  padding-bottom: 4rem;
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}
.testimonials::before {
  content: '';
  position: absolute;
  top: -10%;
  left: -10%;
  width: 40rem;
  height: 40rem;
  background: var(--accent-primary);
  filter: blur(200px);
  opacity: 0.2;
  border-radius: 50%;
  z-index: 0;
}
.testimonials::after {
  content: '';
  position: absolute;
  bottom: -10%;
  right: -10%;
  width: 40rem;
  height: 40rem;
  background: var(--accent-secondary);
  filter: blur(200px);
  opacity: 0.2;
  border-radius: 50%;
  z-index: 0;
}
.testimonials .heading span {
  color: #4CAF50;
}
.testimonials .box-container {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  justify-content: center;
  padding-top: 2rem;
  position: relative;
  z-index: 1;
}
.testimonials .box-container .box {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3rem 2.5rem;
  border-radius: 1.5rem;
  box-shadow: 0 1rem 3rem rgba(0,0,0,0.1);
  flex: 1 1 35rem;
  position: relative;
  transition: 0.4s ease;
  overflow: hidden;
}
[data-theme="light"] .testimonials .box-container .box {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.05);
}
.testimonials .box-container .box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0.4rem;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.testimonials .box-container .box:hover::before {
  transform: scaleX(1);
}
.testimonials .box-container .box:hover {
  transform: translateY(-1rem);
  box-shadow: 0 2rem 4rem rgba(0,0,0,0.2);
}
.testimonials .box-container .box .quote {
  position: absolute;
  top: 2rem;
  right: 2.5rem;
  font-size: 6rem;
  color: var(--accent-primary);
  opacity: 0.1;
  transition: 0.3s;
}
.testimonials .box-container .box:hover .quote {
  opacity: 0.3;
  transform: rotate(15deg) scale(1.1);
}
.testimonials .box-container .box p {
  font-size: 1.6rem;
  color: var(--text-secondary);
  line-height: 1.8;
  font-style: italic;
  font-family: 'BasierSquareMono', monospace;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}
.testimonials .box-container .box .user {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.testimonials .box-container .box .user img {
  height: 6rem;
  width: 6rem;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent-primary);
  transition: 0.3s;
}
.testimonials .box-container .box:hover .user img {
  box-shadow: 0 0 15px rgba(76, 175, 80, 0.5);
}
.testimonials .box-container .box .user .info h3 {
  font-size: 1.8rem;
  color: var(--text-primary);
  font-weight: 700;
}
.testimonials .box-container .box .user .info span {
  font-size: 1.3rem;
  color: var(--accent-primary);
  font-weight: 600;
  letter-spacing: 0.5px;
}
/* testimonials section ends */

/* contact section starts */
.contact {
  background: var(--bg-primary);
  min-height: 60vh;
  display: flex;
  justify-content: center;
  align-items: center;
}
.contact .container {
  max-width: 1050px;
  width: 100%;
  background: var(--card-bg);
  border-radius: 1.5rem;
  margin: 2rem 5rem;
  box-shadow: var(--shadow-color);

}
.contact .container .content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2.5rem 2rem;
}
.contact .content .image-box {
  max-width: 60%;
  margin-left: 4rem;
}
.contact .content .image-box img {
  width: 100%;
  height: 40rem;
  position: relative;
}
.contact .content form {
  width: 45%;
  margin-right: 3.5rem;
}
form .form-group {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.form-group .field {
  height: 50px;
  display: flex;
  position: relative;
  margin: 1rem;
  width: 100%;
}
form i {
  position: absolute;
  top: 50%;
  left: 18px;
  color: var(--text-secondary);
  font-size: 17px;
  pointer-events: none;
  transform: translateY(-50%);
}
form .field input,
form .message textarea {
  width: 100%;
  height: 100%;
  outline: none;
  padding: 0 16px 0 48px;
  font-size: 16px;
  font-family: 'BasierSquareMono', monospace;
  border-radius: 5px;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
}
.field input::placeholder,
.message textarea::placeholder {
  color: var(--text-secondary);
}
.field input:focus,
.message textarea:focus {
  padding-left: 47px;
  border: 2px solid var(--accent-primary);
}
.field input:focus ~ i,
.message textarea:focus ~ i {
  color: var(--accent-primary);
}
form .message {
  position: relative;
  margin: 1rem;
  width: 100%;
}
form .message i {
  top: 25px;
  font-size: 20px;
  left: 15px;
}
form .message textarea {
  min-height: 130px;
  max-height: 230px;
  max-width: 100%;
  min-width: 100%;
  padding: 12px 20px 0 48px;
}
form .message textarea::-webkit-scrollbar {
  width: 0px;
}
form .button-area {
  display: flex;
  float: right;
  flex-direction: row-reverse;
}

/* Style for the success popup */
.popup {
  display: none; /* Hide the popup by default */
  position: fixed; /* Fix the popup to the center of the page */
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5); /* Dark overlay */
  z-index: 9999; /* Ensure it appears on top */
  justify-content: center;
  align-items: center;
}

/* Style for the content inside the popup */
.popup-content {
  background: white;
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  position: relative; /* Required for the positioning of the close icon */
}

/* Style for the close button (X Icon) */
.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 30px;
  color: #000;
  cursor: pointer;
  font-weight: bold;
}

.close-btn:hover {
  color: red;
}

/* Style for the thumbs-up image */
.thumbs-up {
  width: 50px; /* Adjust the size of the thumbs-up icon */
  margin-top: 20px; /* Add some space between the title and the image */
}

/* Style for the form inputs and buttons (existing styles) */
.form-group .field, .message textarea {
  margin-bottom: 10px;
}

button {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 16px;
  border-radius: 5px;
}


.close-btn:hover {
  color: red;
}

/* Style for the form inputs and buttons (existing styles) */
.form-group .field, .message textarea {
  margin-bottom: 10px;
}

button {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 16px;
  border-radius: 5px;
}


#close-btn:hover {
  background-color: #0056b3;
}

.button-area button {
  color: #4CAF50;
  border: 2px solid #4CAF50;
  outline: none;
  font-size: 1.8rem;
  cursor: pointer;
  border-radius: 5px;
  padding: 13px 25px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0px 5px 10px rgba(76, 175, 80, 0.3);
  transition: 0.3s ease;
  font-family: 'BasierSquareMono', monospace;
}
.button-area button:hover {
  background: #fff;
  color: #000;
  border-color: #4CAF50;
  box-shadow: 0px 5px 15px rgba(76, 175, 80, 0.5);
}
.button-area span {
  font-size: 17px;
  padding: 1rem;
  display: none;
}
.button-area button i {
  position: relative;
  top: 6px;
  left: 2px;
  font-size: 1.5rem;
  transition: 0.3s;
  color: #fff;
}
.button-area button:hover i {
  left: 8px;
  color: #000;
}
.button-area button.loading {
  opacity: 0.7;
  cursor: not-allowed;
  pointer-events: none;
}
.button-area button .spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  margin-right: 8px;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
/* contact section media queries starts */
@media (max-width: 900px) {
  .contact {
    min-height: 70vh;
  }
  .contact .container {
    margin: 3rem 0 2rem 0;
  }
  .contact .container .content {
    padding: 18px 12px;
  }
  .contact .content .image-box {
    display: none;
  }
  .contact .content form {
    width: 100%;
    margin-right: 2rem;
  }
}
/* contact section media queries ends */
/* contact section ends */

/* footer section starts */
.footer {
  min-height: auto;
  padding-top: 0;
  background: var(--bg-secondary);
}
.footer .box-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
.footer .box-container .box {
  flex: 1 1 25rem;
  margin: 2.5rem;
}
.footer .box-container .box h3 {
  font-size: 2.5rem;
  color: var(--text-primary);
  padding-bottom: 1rem;
  font-weight: normal;
}
.footer .box-container .box p {
  font-size: 1.5rem;
  color: var(--text-secondary);
  padding: 0.7rem 0;
  text-transform: none;
}
.footer .box-container .box p i {
  padding-right: 1rem;
  color: #4CAF50;
}
.footer .box-container .box a {
  font-size: 1.5rem;
  color: var(--text-secondary);
  padding: 0.3rem 0;
  display: block;
}
.footer .box-container .box a:hover {
  color: var(--accent-primary);
}
.footer .box-container .box .share {
  display: flex;
  flex-wrap: wrap;
  padding: 1rem 0;
}
.footer .box-container .box .share a {
  height: 4rem;
  width: 4rem;
  padding: 1rem;
  text-align: center;
  border-radius: 5rem;
  font-size: 1.7rem;
  margin-right: 1rem;
  transition: 0.2s;
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: none;
}
.footer .box-container .box .share a:hover {
  background: var(--accent-primary);
  transform: scale(0.98);
  border: 0.1rem solid var(--accent-primary);
  color: var(--timeline-text);
}
.footer .credit {
  padding: 1rem 0 0 0;
  text-align: center;
  font-size: 1.5rem;
  font-family: 'BasierSquareMono', monospace;
  font-weight: 600;
  color: var(--text-primary);
  border-top: 0.1rem solid var(--border-color);
}
.footer .credit a {
  color: var(--accent-primary);
}
.footer .fa {
  color: #e90606;
  margin: 0 0.3rem;
  font-size: 1.5rem;
  animation: pound 0.35s infinite alternate;
}
@-webkit-keyframes pound {
  to {
    transform: scale(1.1);
  }
}
@keyframes pound {
  to {
    transform: scale(1.1);
  }
}
@media (max-width: 450px) {
  .footer .box-container .box {
    margin: 1.5rem;
  }
  .footer .box-container .box p {
    padding: 0.7rem;
  }
  .footer .box-container .box .share a {
    padding: 1.2rem;
  }
}
/* footer section ends */

/* common media queries starts*/
@media (max-width: 450px) {
  html {
    font-size: 55%;
  }
  body {
    padding-right: 0;
  }
  section {
    padding: 2rem;
  }
}
/* Force theme backgrounds */
html[data-theme],
body[data-theme] {
  background: var(--bg-primary) !important;
}

/* common media queries ends*/

/* scroll top starts */
#scroll-top {
  position: fixed;
  top: -140%;
  right: 2rem;
  padding: 1rem 1.5rem;
  font-size: 2rem;
  background: #4CAF50;
  color: rgb(13, 0, 44);
  border-radius: 50%;
  transition: 1s linear;
  z-index: 1000;
}
#scroll-top.active {
  top: calc(100% - 12rem);
}
/* scroll top ends */
