@import url("https://fonts.googleapis.com/css2?family=Asap:ital,wght@0,100..900;1,100..900&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap");

:root {
  --bg-color: #141414;
  --second-bg-color: #202934;
  --text-color: #ffffff;
  --main-color: pink;
}
/*Theme Changer*/
[data-theme="light"] {
  --bg-color: #ffffff;
  --second-bg-color:#b18fcf7a;
  --text-color: #000000;
  --main-color: #674188;
  
.interest-card:hover {
  color: #ffffff;
  background-color:pink;
  box-shadow: 0 0 2rem #694F8E;
  
}
.interest-card {
  box-shadow: 0 0 1rem pink;
  color:#694F8E;
  background: white;
}
.progress {
  background: #694F8E;
  color: var(--bg-color);
}
.skill-card {
  box-shadow: 0 0 1rem pink;
  color:#694F8E;
  background: white;
}
.skill-card:hover {
  box-shadow: 0 0 2rem #694F8E;
}
.skill-card i {
  color:#694F8E;
}
.project-card {
  color: #694F8E;
  background: white;
  box-shadow: 0 0 1rem pink;
}

.project-card:hover {
  box-shadow: 0 0 2rem #694F8E;
}

.project-info p {
  color: #000000;
}
.contact-form {
  background: pink;
  box-shadow: 0 4px 8px #694F8E;
}

.contact-form label {
  color: #694F8E;
}

.contact-form input[type="submit"] {
  background-color:#694F8E;
}
.contact-form input[type="submit"]:hover {
  background-color: #36244f;
}
}
/* theme changer ends */


body {
  background: var(--bg-color);
  color: var(--text-color);
}

.theme-switch {
  display: inline-block;
  height: 24px;/* Reduced height */
  position: relative;
  width: 40px;/* Reduced width */
}

.theme-switch input {
  display: none;
}

.slider {
  background-color: #ccc;
  bottom: 0;
  cursor: pointer;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  transition: .4s;
  border-radius: 24px;/* Adjusted for smaller size */
}

.slider:before {
  background-color: #fff;
  bottom: 2px; /* Adjusted for smaller size */
  content: "";
  height: 20px; /* Reduced height */
  left: 1px; /* Adjusted for smaller size */
  position: absolute;
  transition: .4s;
  width: 20px; /* Reduced width */
  border-radius: 50%; /* Ensures the circle remains round */
}

input:checked + .slider {
  background-color: #66bb6a;
}

input:checked + .slider:before {
  transform: translateX(24px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  border: none;
  outline: none;
  scroll-behavior: smooth;
  font-family: "Asap", sans-serif;
}

pre {
  font-size: 1.5rem;
}

html, body {
  height: 100%;
}

html {
  font-size: 60%;
  color: var(--text-color);
}

section {
  min-height: 100vh;
  padding: 10rem 5%;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 2rem 5%;
  background: transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
}

.logo {
  font-size: 2.5rem;
  color: var(--text-color);
  font-weight: 700;
  white-space: nowrap;
}

.logo span {
  color: plum;
}

.navbar {
  display: flex;
  gap: 2rem;
}

.navbar a {
  font-size: 1.7rem;
  color: var(--text-color);
  transition: 0.3s;
}

.navbar a:hover,
.navbar a.active {
  color: var(--main-color);
}

#menu-icon {
  font-size: 3.5rem;
  color: var(--text-color);
  display: none;
}

.home {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.home-content h3 {
  font-size: 3.2rem;
  font-weight: 700;
}

.home-content h3:nth-of-type(2) {
  margin-bottom: 2rem;
}

.home-content span {
  color: pink;
}

.home-content h1 {
  font-size: 5rem;
  font-weight: 700;
  line-height: 1.3;
}

.home-content p {
  font-size: 1.5rem;
}

.home-img {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 4rem;
}

.home-img img {
  width: 15vw;
  max-width: 100%;
  border-radius: 45px;
  animation: IMG 3s ease-in-out infinite;
}

@keyframes IMG {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2.5rem);
  }
  100% {
    transform: translateY(0);
  }
}

.social-media-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: 2rem;
}

.social-media-icon a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 4rem;
  height: 4rem;
  font-size: 2rem;
  color: var(--text-color);
  background: transparent;
  border: 0.2rem solid pink;
  border-radius: 10px;
  transition: 0.5s ease;
}

.social-media-icon a:hover {
  background: pink;
  color: var(--second-bg-color);
  box-shadow: 0 0 2rem pink;
}

.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-size: 1.8rem;
  box-shadow: 0 0 2rem pink;
  background: pink;
  border: 0.3rem solid plum;
  border-radius: 25px;
  color: var(--second-bg-color);
  letter-spacing: 0.15rem;
  margin: 2rem 1rem;
  margin-top: 30px;
  font-weight: 600;
  transition: 0.5s ease;
}

.btn:hover {
  box-shadow: none;
}

.footer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  background: var(--second-bg-color);
  text-align: center;
}

.footer-text p {
  font-size: 1.8rem;
  font-weight: 500;
}

.footer-text p span {
  color: plum;
}

.about-content h1 {
  font-family: "Playfair Display", serif;
  font-size: 4rem;
  font-weight: 700;
  color: var(--main-color);
  margin-bottom: 2rem;
  text-align: center;
}

.about-content p {
  font-size: 1.8rem;
  line-height: 1.5;
  margin-bottom: 3rem;
  text-align: center;
}

.interests {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* Center align the interest cards */
  gap: 2rem; /* Add space between cards */
  margin-top: 2rem; /* Add space above the interest cards section */
}

.interest-card {
  color: #000000;
  background: #FEF3E2;
  padding: 1.5rem;
  border-radius: 40px;
  width: calc(33.333% - 2rem); /* Adjust width to fit three cards per row */
  box-shadow: 0 0 1rem rgb(252, 227, 227);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.interest-card:hover {
  transform: translateY(-10px);
  color: #ffffff;
  background-color: #4b2508;
  box-shadow: 0 0 2rem #FEF3E2;
}

.interest-card summary {
  font-size: 2rem;
  font-weight: 600;
  cursor: pointer;
}

.interest-card p {
  font-size: 1.6rem;
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .interest-card {
    width: calc(50% - 2rem); /* Two cards per row on medium screens */
  }
}

@media (max-width: 480px) {
  .interest-card {
    width: calc(100% - 2rem); /* One card per row on small screens */
  }
}


.education {
  margin-top: 4rem;
}

.education h2 {
  font-family: "Playfair Display", serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--main-color);
  margin-bottom: 3rem;
  text-align: center;
}

.education-item {
  margin-bottom: 3rem;
}

.education-item h3 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.progress-bar {
  background: var(--second-bg-color);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.progress {
  background:#FEF3E2;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  text-align: center;
  font-size: medium;
  color: var(--bg-color);
}

.rando {
  font-size: medium;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
  html {
    font-size: 55%;
  }
}

@media (max-width: 990px) {
  .header {
    padding: 2rem 3%;
  }
  section {
    padding: 10rem 3% 2rem;
  }
  .footer {
    padding: 2rem 4%;
  }
}

@media (max-width: 768px) {
  #menu-icon {
    display: block;
  }
  .header {
    background: var(--bg-color);
    justify-content: space-between;
  }
  .navbar {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 1rem;
    background: var(--bg-color);
    border-top: 0.1rem solid pink;
    box-shadow: 0 0.5rem 1rem pink;
    display: none;
    flex-direction: column;
    align-items: center;
  }
  .navbar.active {
    display: flex;
  }
  .navbar a {
    display: block;
    font-size: 2rem;
    margin: 1rem 0;
  }
  .home {
    text-align: center;
  }
  .home-content h3 {
    font-size: 2.6rem;
  }
  .home-content h1 {
    font-size: 4rem;
  }
  .home-img img {
    width: 30vw;
    max-width: 100%;
  }
  .social-media-icon {
    flex-direction: row;
    gap: 1rem;
  }
  .social-media-icon a {
    margin: 0;
  }
  .btn {
    margin: 2rem 1rem;
  }
  .interest-card {
    width: calc(50% - 2rem);
  }
  .about-content h1 {
    font-size: 3.5rem;
  }
  .about-content p {
    font-size: 1.6rem;
  }
  .education h2 {
    font-size: 3rem;
  }
  .education-item h3 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .interest-card {
    width: calc(100% - 2rem);
  }

  .about-content h1 {
    font-size: 3rem;
  }
}

@media (max-width: 450px) {
  html {
    font-size: 50%;
  }
}

@media (max-width: 360px) {
  .home-img img {
    width: 70vw;
    max-width: 100%;
  }
}

/* Additional Section Styles */
.about, .skills, .projects, .contact {
  min-height: 100vh;
  padding: 10rem 5%;
}

.project-item {
  cursor: pointer;
  text-align: center;
  margin: 2rem;
}

.project-item img {
  width: 100%;
  max-width: 300px;
  border-radius: 15px;
}

.skills {
  text-align: center;
}

.skills-content h1 {
  font-size: 4rem;
  margin-bottom: 4rem;
  font-weight: bold;
}

.skill-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
}

.skill-card {
  color: #000000;
  background-color: #FEF3E2;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 0 1rem rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease-in-out;
}

.skill-card:hover {
  transform: translateY(-1rem);
  box-shadow: 0 0 2rem #FEF3E2;
}

.skill-card i {
  font-size: 4rem;
  color: #914F1E;
  margin-bottom: 1rem;
}

.skill-card h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.skill-card p {
  font-size: 1.6rem;
}


@media (max-width: 768px) {
  .skills-content h1 {
    font-size: 3rem;
  }

  .skill-card {
    padding: 1.5rem;
  }

  .skill-card i {
    font-size: 3rem;
  }

  .skill-card h2 {
    font-size: 1.8rem;
  }

  .skill-card p {
    font-size: 1.4rem;
  }
}

@media (max-width: 450px) {
  .skills-content h1 {
    font-size: 2.5rem;
  }

  .skill-card i {
    font-size: 2.5rem;
  }

  .skill-card h2 {
    font-size: 1.6rem;
  }

  .skill-card p {
    font-size: 1.2rem;
  }
}


.projects-content h1 {
  font-size: 4rem;
  margin-bottom: 4rem;
  text-align: center;
  font-weight: bold;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.project-card {
  color: #66340d;
  background: #FEF3E2;
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 1rem #FEF3E2;
}

.project-card:hover {
  transform: translateY(-1rem);
  box-shadow: 0 0 2rem#FEF3E2;
}

.project-info p {
  font-size: 1.4rem;
  color: #000000;
}

.project-card img {
  width: 100%;
  height: auto;
  display: block;
}

.project-info {
  padding: 1.5rem;
}

.project-info h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .projects-content h1 {
    font-size: 3rem;
  }

  .project-info h3 {
    font-size: 1.8rem;
  }

  .project-info p {
    font-size: 1.2rem;
  }
}

@media (max-width: 450px) {
  .projects-content h1 {
    font-size: 2.5rem;
  }

  .project-info h3 {
    font-size: 1.6rem;
  }

  .project-info p {
    font-size: 1rem;
  }
}

.contact-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.contact-content h1 {
  font-size: 36px;
  margin-bottom: 20px;
}

.contact-content p {
  font-size: 18px;
  margin-bottom: 40px;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
}

.social-links a {
  display: inline-block;
}

.contact-form {
  background: #FEF3E2;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 8px#FEF3E2;
  max-width: 600px;
  margin: 0 auto;
}

.contact-form label {
  font-size: medium;
  display: block;
  margin-bottom: 10px;
  font-weight: bold;
  color: #66340d;
}
.contact-form:hover {
  transform: translateY(0.5rem);
}


.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 20px;
}

.contact-form input[type="checkbox"] {
  margin-right: 10px;
}

.contact-form input[type="submit"] {
  background-color: var(--main-color);
  color: var(--second-bg-color);
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
}

.contact-form input[type="submit"]:hover {
  background-color: #fffefe;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
  html {
    font-size: 55%;
  }
}

@media (max-width: 990px) {
  .header {
    padding: 2rem 3%;
  }
  section {
    padding: 10rem 3% 2rem;
  }
  .footer {
    padding: 2rem 4%;
  }
}

@media (max-width: 768px) {
  #menu-icon {
    display: block;
  }
  .header {
    background: var(--bg-color);
    justify-content: space-between;
  }
  .navbar {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 1rem;
    background: var(--bg-color);
    border-top: 0.1rem solid pink;
    box-shadow: 0 0.5rem 1rem pink;
    display: none;
    flex-direction: column;
    align-items: center;
  }
  .navbar.active {
    display: flex;
  }
  .navbar a {
    display: block;
    font-size: 2rem;
    margin: 1rem 0;
  }
  .home {
    text-align: center;
  }
  .home-content h3 {
    font-size: 2.6rem;
  }
  .home-content h1 {
    font-size: 4rem;
  }
  .home-img img {
    width: 30vw;
    max-width: 100%;
  }
  .social-media-icon {
    flex-direction: row;
    gap: 1rem;
  }
  .social-media-icon a {
    margin: 0;
  }
  .btn {
    margin: 2rem 1rem;
  }
  .interest-card {
    width: calc(50% - 2rem);
  }
  .about-content h1 {
    font-size: 3.5rem;
  }
  .about-content p {
    font-size: 1.6rem;
  }
  .education h2 {
    font-size: 3rem;
  }
  .education-item h3 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .interest-card {
    width: calc(100% - 2rem);
  }

  .about-content h1 {
    font-size: 3rem;
  }
}

@media (max-width: 450px) {
  html {
    font-size: 50%;
  }
}

@media (max-width: 360px) {
  .home-img img {
    width: 70vw;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .skills-content h1 {
    font-size: 3rem;
  }

  .skill-card {
    padding: 1.5rem;
  }

  .skill-card i {
    font-size: 3rem;
  }

  .skill-card h2 {
    font-size: 1.8rem;
  }

  .skill-card p {
    font-size: 1.4rem;
  }
}

@media (max-width: 450px) {
  .skills-content h1 {
    font-size: 2.5rem;
  }

  .skill-card i {
    font-size: 2.5rem;
  }

  .skill-card h2 {
    font-size: 1.6rem;
  }

  .skill-card p {
    font-size: 1.2rem;
  }
}

@media (max-width: 768px) {
  .projects-content h1 {
    font-size: 3rem;
  }

  .project-info h3 {
    font-size: 1.8rem;
  }

  .project-info p {
    font-size: 1.2rem;
  }
}

@media (max-width: 450px) {
  .projects-content h1 {
    font-size: 2.5rem;
  }

  .project-info h3 {
    font-size: 1.6rem;
  }

  .project-info p {
    font-size: 1rem;
  }
}