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

html {
  scroll-behavior: smooth;
}

body {
  background-color: #000021;
  color: #fff;
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
}

/* Accessibility improvements for focus states */
a:focus,
button:focus,
input:focus,
textarea:focus {
  outline: 2px solid rgb(170, 107, 228);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
}

nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 80px;
  background-color: #12123e;
  padding: 0 20px;
}

nav ul {
  display: flex;
  gap: 25px;
  list-style: none;
}

nav ul li a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  transition: 0.3s ease;
}

nav ul li a:hover {
  color: rgb(170, 107, 228);
  transform: scale(1.05);
}

.left {
  font-size: 1.5rem;
  font-weight: 700;
}

.firstSection {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 130px 0;
  flex-wrap: wrap;
  min-height: calc(100vh - 80px);
}

.leftSection {
  font-size: 2.5rem;
  line-height: 1.5;
  max-width: 600px;
  padding: 0 20px;
}

.purple {
  color: rgb(170, 107, 228);
}

#element {
  color: rgb(170, 107, 228);
}

.rightSection img {
  width: 100%;
  max-width: 400px;
  transition: transform 0.4s ease;
  height: auto;
}

.rightSection img:hover {
  transform: scale(1.05);
}

hr {
  border: 0;
  background: #9c97f1;
  height: 1.2px;
  margin: 60px auto;
  width: 90%;
}

section h1 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 10px;
  border-bottom: 4px solid rgb(170, 107, 228);
  display: inline-block;
  padding-bottom: 5px;
}

.aboutSection,
.skillsSection,
.resume,
.contact {
  max-width: 90vw;
  margin: 0 auto;
  padding: 40px 0;
}

.aboutIntro,
.sectionContent {
  margin-bottom: 30px;
  color: #ccc;
  font-size: 1rem;
  line-height: 1.6;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

.aboutContainer {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
}

.aboutImage {
  flex: 1 1 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.aboutImage img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.4s ease;
}

.aboutImage img:hover {
  transform: scale(1.03);
}

.aboutContent {
  flex: 2 1 400px;
}

.aboutContent h2 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.aboutDesc {
  font-style: italic;
  color: #ccc;
  margin-bottom: 20px;
}

.aboutDetails {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 20px;
}

.aboutDetails ul {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1 1 45%;
  min-width: 200px;
}

.aboutDetails ul li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 20px;
  color: #ddd;
}

.aboutDetails ul li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: rgb(170, 107, 228);
}

.iconSkillsContainer {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
  padding: 0 20px;
}

.iconSkill {
  width: 120px;
  height: 120px;
  background-color: #1e293b;
  border-radius: 50%;
  color: #fff;
  font-size: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.3s ease, background-color 0.3s ease;
  text-align: center;
  padding: 10px;
  flex-direction: column;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.5);
  border: 2px solid #4b5563;
}

.iconSkill:hover {
  transform: scale(1.1);
  background-color: #a96be4;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.6);
}

.iconSkill span {
  font-size: 0.9rem;
  margin-top: 10px;
  display: block;
  color: #cbd5e0;
}

.iconSkill svg {
  width: 48px;
  height: 48px;
  fill: currentColor;
}

.resume {
  padding: 60px 0;
  background: #000021;
  color: #fff;
  width: 100%;
}

.resume .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.resume .section-title h1 {
  font-weight: 700;
  font-size: 2.2rem;
  margin-bottom: 20px;
  color: #fff;
  text-align: center;
  display: inline-block;
}

.resume .section-title p {
  color: #ccc;
  text-align: center;
  margin-bottom: 40px;
}

.resume-title {
  font-size: 1.8rem;
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 20px;
  color: rgb(170, 107, 228);
}

.resume-item {
  padding: 0 0 20px 20px;
  border-left: 2px solid rgb(170, 107, 228);
  position: relative;
  width: 100%;
  margin-bottom: 30px;
}

.resume-item::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  left: -9px;
  top: 8px;
  background: #12123e;
  border: 2px solid rgb(170, 107, 228);
}

.resume-item h3 {
  font-size: 1.4rem;
  font-weight: bold;
  color: #fff;
  margin-bottom: 10px;
}

.resume-item h4 {
  font-size: 1rem;
  background: #12123e;
  display: inline-block;
  padding: 5px 10px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #ccc;
}

.resume-item p,
.resume-item ul {
  margin-bottom: 0;
  font-size: 0.9rem;
  color: #ccc;
  width: 100%;
}

.resume-item ul {
  padding-left: 20px;
  list-style-type: disc;
}

.resume-item ul li {
  padding-bottom: 10px;
}

.resume .row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  width: 100%;
  margin: 0;
}

.resume .col-md-6 {
  flex: 1 1 calc(50% - 10px);
  padding: 0;
}

.contact-intro {
  text-align: center;
  color: #ccc;
  margin-bottom: 40px;
  font-size: 1.1rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.contact-info,
.contact-form {
  flex: 1 1 400px;
}

.contact-details {
  background: #12123e;
  padding: 30px;
  border-radius: 10px;
  height: 100%;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 25px;
}

.contact-item i {
  font-size: 24px;
  color: rgb(170, 107, 228);
  margin-right: 20px;
  line-height: 1.2;
}

.contact-item h2 {
  font-size: 1.2rem;
  margin-bottom: 5px;
  color: #fff;
}

.contact-item p {
  color: #ccc;
  margin: 0;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #1e293b;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: rgb(170, 107, 228);
  transform: translateY(-3px);
}

.contact-form .form-group {
  margin-bottom: 20px;
}

.contact-form .form-control {
  width: 100%;
  padding: 12px 15px;
  background: #12123e;
  border: none;
  border-radius: 5px;
  color: #fff;
  font-family: "Poppins", sans-serif;
  border: 1px solid #4b5563;
}

.contact-form textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.submit-btn {
  background: rgb(170, 107, 228);
  color: #fff;
  border: none;
  padding: 12px 30px;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.submit-btn:hover {
  background: #8a4dbf;
  transform: translateY(-2px);
}

footer {
  background-color: #12123e;
  color: #ccc;
  text-align: center;
  padding: 20px 0;
  font-size: 0.9rem;
  margin-top: 60px;
}

footer .footer-content {
  max-width: 90vw;
  margin: auto;
}

footer .footer-content p {
  margin: 0;
}

.neon-buttons {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.neon-btn {
  padding: 12px 30px;
  background-color: rgb(170, 107, 228);
  color: #000;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 0 15px rgb(170, 107, 228);
  transition: 0.3s ease-in-out;
  font-size: 1rem;
  border: none;
  cursor: pointer;
}

.neon-btn:hover {
  box-shadow: 0 0 25pxrgb(170, 107, 228);
  transform: translateY(-2px);
}

.neon-icons {
  display: flex;
  gap: 15px;
}

.neon-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 2px solid rgb(170, 107, 228);
  border-radius: 50%;
  color: rgb(170, 107, 228);
  font-size: 1.4rem;
  transition: 0.3s;
  text-decoration: none;
}

.neon-icons a:hover {
  background-color:rgb(170, 107, 228);
  color: #000;
  box-shadow: 0 0 12px #39FF14;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
  nav {
    flex-direction: column;
    height: auto;
    padding: 15px 0;
  }

  nav ul {
    margin-top: 15px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .firstSection {
    padding: 80px 0;
    text-align: center;
  }

  .leftSection {
    font-size: 2rem;
    margin-bottom: 40px;
  }

  .iconSkill {
    width: 100px;
    height: 100px;
    font-size: 36px;
  }

  .aboutContainer {
    flex-direction: column;
  }

  .resume .col-md-6 {
    flex: 1 1 100%;
  }

  .contact-container {
    flex-direction: column;
  }
}

@media screen and (max-width: 480px) {
  .leftSection {
    font-size: 1.8rem;
  }

  .iconSkill {
    width: 80px;
    height: 80px;
    font-size: 28px;
  }

  .iconSkill span {
    font-size: 0.8rem;
  }

  .neon-buttons {
    justify-content: center;
  }
}