:root {
  --bg-color: #ffffff;
  --text-color: #000000;
  --primary-color: #2C3E7F;
  --card-bg: #f8f9fa;
  --button-bg: #e0e0e0;
  --button-text: #000;
}

.dark-mode {
  --bg-color: #12172b;
  --text-color: #f1f1f1;
  --primary-color: #ee0033;
  --card-bg: #1e1e1e;
  --button-bg: #333;
  --button-text: #fff;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  transition: 0.2s, linear;
}

body {
  /* background: #12172b; */
  background: var(--bg-color);
  background-size: 400% 400%;
  margin: 0;
  font-family: Arial, sans-serif;
  /* color: white; */
  color: var(--text-color);
  transition: opacity 1s ease-in-out;
}

body.loaded {
  opacity: 1;
}

html,
body {
  height: 100%;
  width: 100%;
  scroll-behavior: smooth;
}


/* ========== Home ========== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  /* background-color: #12172b; */
  z-index: 1000;
  /* padding: 0 0; */
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  /* border-bottom: 1px solid #eb0033; */
  /* border-bottom: 1px solid #12172b; */
  border-bottom: 1px solid var(--primary-color);
  backdrop-filter: blur(10px);
}


nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}


nav {
  padding: 10px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  position: relative;
  /* border-bottom: 1px solid #eb0033; */
}

.logo span {
  /* color: #fff; */
  color: var(--text-color);
  font-size: 1.5rem;
  font-weight: 700;
}

nav ul {
  display: flex;
  align-items: center;
  gap: 30px;
}

nav ul li {
  list-style-type: none;
  padding: 5px 10px;
}

nav ul li a {
  text-decoration: none;
  /* color: #fff; */
  color: var(--text-color);
  opacity: 1;
}

nav ul li a:hover {
  font-weight: bold;
  border-bottom: 2px solid var(--primary-color);
}

.menuicon {
  display: none;
}

.menuicon span {
  height: 5px;
  width: 35px;
  margin-bottom: 5px;
  /* background: #fff; */
  background: var(--text-color);
  display: flex;
}

.home-div {
  padding: 1vw;
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--primary-color);
  padding: 150px 0 100px;
}

.mydetails {
  display: flex;
  justify-content: center;
  flex-direction: column;
  /* color: #fff; */
  color: var(--text-color);
  width: 50%;
  padding-left: 2vw;
}

.mydetails h1 span, h2 span {
  color: var(--primary-color);
}

.mydetails h1,
h3,
p {
  font-size: 2rem;
}

.image-div {
  width: 50%;
  display: flex;
  justify-content: center;
}

.image1 {
  width: 35vw;
  height: 35vw;
  border: 1vw solid var(--primary-color);
  border-radius: 50%;
  box-shadow: 0 0 20px var(--primary-color);
  transition: all ease-in-out 0.5s;
}

.image1:hover {
  transform: scale(1.02);
}
/* ========== End ========== */





/* ========== About ========== */
.about {
  padding: 100px 0;
  /* color: #fff; */
  color: var(--text-color);
  border-bottom: 1px solid var(--primary-color);
}

.about h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.about p {
  max-width: 75vw;
  margin: 0 auto;
  font-size: 1.2rem;
  line-height: 1.8;
  text-align: center;
}
/* ========== End ========== */





/* ========== My Skills ========== */
.myskills {
  border-bottom: 1px solid #1B2A58;
  padding: 100px 0;
}

.myskills h2 {
  text-align: center;
  margin-top: 40px;
  font-size: 2rem;
}

.skills-area {
  display: flex;
  flex-direction: column;
  padding: 0 20%;
}

.skill {
  position: relative;
  margin-bottom: 40px;
}

.skill-title {
  font-size: 1rem;
  margin-bottom: 10px;
}

.skill-bar {
  width: 100%;
  /* background: rgba(255, 255, 255, 0.2); */
  background: grey;
  height: 20px;
  z-index: -1;
  border-radius: 100px;
  position: absolute;
}

.skill-fill {
  background: var(--primary-color);
  height: 20px;
  border-radius: 100px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-right: 30px;
  overflow: hidden;
}

.skill-percent {
  font-size: 1rem;
  color: white;
}

.html {
  animation: html 3s;
  width: 99%;
}

.animate {
  animation: html 3s forwards;
}

.css {
  animation: css 3s;
  width: 85%;
}

.js {
  animation: js 3s;
  width: 70%;
}

@keyframes html {
  from {
    width: 0;
  }

  to {
    width: 99%;
  }
}

@keyframes css {
  from {
    width: 0;
  }

  to {
    width: 85%;
  }
}

@keyframes js {
  from {
    width: 0;
  }

  to {
    width: 70%;
  }
}

@media only screen and (max-width: 750px) {
  .skills-area {
    padding: 0 5%;
  }

  .skill-title {
    font-size: 1rem;
  }

  .skill-percent {
    font-size: 1rem;
  }
}
/* ========== End ========== */





/* ========== Education ========== */
.heading {
  font-size: 2rem;
  text-align: center;
  margin: 1rem 0;
}

.education {
  /* padding: 20px; */
  position: relative;
  border-bottom: 1px solid var(--primary-color);
  padding-top: 100px;
  padding-bottom: 100px;
}

.education h2 {
  margin-bottom: 2rem;
}

.timeline-items {
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  position: relative;
}

.timeline-item {
  margin-bottom: 40px;
  width: 100%;
  position: relative;
}

.timeline-items::before {
  content: "";
  position: absolute;
  width: 5px;
  height: 100%;
  background-color: var(--primary-color);
  left: calc(50% - 1px);
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item:nth-child(odd) {
  padding-right: calc(50% + 30px);
  text-align: right;
}

.timeline-item:nth-child(even) {
  padding-left: calc(50% + 30px);
}

.timeline-dot {
  height: 21px;
  width: 21px;
  background: var(--primary-color);
  box-shadow:
  0 0 25px var(--primary-color),
  0 0 50px var(--primary-color);
  position: absolute;
  left: calc(50% - 8px);
  border-radius: 50%;
}

.timeline-date {
  font-size: 20px;
  font-weight: 800;
  margin: 6px 0 15px;
}

.timeline-content {
  border: 2px solid var(--primary-color);
  border-radius: 4rem;
  padding: 30px 50px;
  box-shadow: 0 0 25px var(--primary-color);
  /* cursor: pointer; */
  transition: 0.3s ease-in-out;
}

.timeline-content:hover {
  transform: scale(1.05) !important;
  box-shadow: 0 0 25px var(--primary-color);
}

.timeline-content h3 {
  font-size: 20px;
  font-weight: 500;
  margin: 0 0 10px;
  text-align: left;
}

.timeline-content p {
  text-align: left;
  font-size: 16px;
  font-weight: 300;
  line-height: 22px;
}

::-webkit-scrollbar {
  width: 15px;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  width: 50px;
}

@media (max-width: 768px) {
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    padding: 0;
    text-align: center;
  }

  .timeline-items {
    display: grid;
    justify-content: center;
  }

  .timeline-content {
    padding: 20px;
    text-align: center;
    max-width: 95vw;
  }

  .timeline-dot {
    display: none;
  }

  .timeline-items::before {
    display: none;
  }

  .timeline-item h3,
  .timeline-item p {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .timeline-date {
    font-size: 16px;
  }

  .timeline-content h3 {
    font-size: 18px;
  }

  .timeline-content p {
    font-size: 14px;
  }
}
/* ========== End ========== */





/* ========== Services ========== */
.services {
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: 1px solid var(--primary-color);
  padding: 100px 0;
}
img {
  width: 60px;
  height: 60px;
}
.services .container {
  width: 90vw;
}
.container__box {
  margin-bottom: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 15px;
}
.container .container__box .box {
  border-radius: 6px;
  text-align: center;
  padding: 20px 30px;
  border: 1px solid var(--primary-color);
  transition: transform 0.3s ease;
}
.container__heading {
  text-align: center;
  padding-bottom: 15px;
  /* color: #e3e3e3; */
  color: var(--text-color);
  text-shadow: 0 0 10px var(--text-color);
  font-size: 50px;
  font-weight: 600;
}
.container .container__box .box h3 {
  /* color: white;*/
  color: var(--text-color);
  font-size: 20px;
  font-weight: 600;
}
.container .container__box .box p {
  font-size: 14px;
  font-weight: 100;
  /* color: white; */
  color: var(--text-color);
}
.container .container__box .box a {
  border-radius: 4px;
  /* color: white; */
  color: var(--text-color);
}
.container .container__box .box a:hover {
  background: #908080;
}

.container .container__box .box:hover {
  transform: scale(1.03) !important;
  box-shadow: 0 0 25px var(--primary-color);
}
/* ========== Services End ========== */





/* ========== Footer ========== */
footer {
  text-align: center;
  background: grey;
  padding: 2vw;
}
/* ========== Footer End ========== */





@media (max-width: 768px) {
  .mydetails h1,
  h2,
  p {
    font-size: 1.5rem;
    /* Adjust font size for mobile view */
  }

  .mydetails {
    padding-left: 0;
  }

  .image1 {
    width: 50vw;
    height: 50vw;
    margin: 20px auto;
    /* Add margin for mobile view */
  }

  .about p {
    font-size: 1rem;
    max-width: 90vw;
  }
}

@media (max-width: 480px) {
  .mydetails h1,
  h2,
  p {
    font-size: 20px;
    /* Adjust font size for smaller screens */
  }

  .image1 {
    width: 70vw;
    height: 70vw;
    margin: 20px auto;
    /* Adjust margin for smaller screens */
  }

  .about p {
    font-size: 0.9rem;
    max-width: 95vw;
  }
}





@media (max-width: 550px) {
  .home-div {
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .mydetails {
    order: 0;
    width: 90vw;
    text-align: center;
    padding-top: 2vw;
  }

  .image-div {
    order: -1;
    width: 90vw;
  }

  nav {
    backdrop-filter: blur(10px);
  }

  nav ul {
  position: absolute;
  top: 50px;
  left: 0;
  right: 0;
  flex-direction: column;
  text-align: center;
  gap: 0;
  overflow: hidden;
  z-index: 1000;
  background: var(--bg-color);
}

  nav ul li {
    padding: 20px;
  }

  .menuicon {
    display: block;
  }

  #navlist {
    transition: all 0.5s;
  }
}





/* ========== Contact ========== */
/*
.contactdiv {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 100px 0;
  color: white;
}

.contact-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 600px;
}

.social-media {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  width: 100%;
}

.social-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.icons {
  width: 50px;
  height: 50px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.icons:hover {
  transform: scale(1.2);
  filter: drop-shadow(0 0 20px #eb0033);
}

.social-item span {
  font-size: 14px;
  color: white;
  text-align: center;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 90%;
  max-width: 400px;
  margin-top: 2rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 5px;
}

.stylebutton {
  padding: 10px;
  background-color: #eb0033;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 5px;
}

.style:hover {
  background-color: #d0002a;
}*/

/* Responsive Design */
/*
@media (min-width: 769px) {
  .contact-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 800px;
  }

  .social-media {
    flex-direction: column;
    align-items: flex-start;
  }

  .social-item {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
  }

  .icons {
    width: 40px;
    height: 40px;
  }

  .social-item span {
    font-size: 16px;
  }

  .contact-form {
    margin-top: 0;
  }
}*/
/* ========== End ========== */





/* ========== particles-js ========== */
#particles-js {
  z-index: -10;
}
/* ========== End ========== */


.light {
  background: white;
  color: var(--text-color);
}

.dark {
  background: var(--text-color);
  color: white;
}

.center {
  display: flex;
  justify-content: center;
  align-items: center;
}

#contact {
  padding: 20px;
}

.contactdiv {
  max-width: 1200px;
  margin: auto;
}

.heading {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 20px;
}

/* Mobile View */
@media (max-width: 768px) {
  .contact-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .social-media {
    display: flex;
    justify-content: center;
    gap: 15px;
  }

  .icons {
    width: 40px;
    height: 40px;
  }

  .contact-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    /* background: green; */
  }

  .contact-form input,
  .contact-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
  }

  .stylebutton {
    padding: 10px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
  }

  .location {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 20px;
  }

  .location iframe {
    width: 90%;
    height: 300px;
  }
}

/* Larger Screens */
@media (min-width: 769px) {
  .allcontact {
    display: flex;
  }
  .contact-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    /* background: red; */
  }

  /* Social icons in horizontal layout */
  .social-media {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    margin-bottom: 20px;
  }

  .icons {
    width: 40px;
    height: 40px;
  }

  /* Two-column layout (50% left for social + form, 50% right for map) */
  .content-wrapper {
    display: flex;
    width: 100%;
  }

  /* Left side: Social icons + Form */
  .left-section {
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .contact-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .contact-form input,
  .contact-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
  }

  .stylebutton {
    padding: 10px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
  }

  /* Right side: Map */
  .location {
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .location iframe {
    width: 100%;
    height: 400px;
  }
}
/* ========== End ========== */