/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  height: 100%;
  width: 100%;
  background-color: rgb(0, 0, 33);
  color: white;
  font-family: 'Poppins', sans-serif;
}

/* Navbar */
nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 80px;
}
nav ul {
  display: flex;
  justify-content: center;
}
nav ul li {
  list-style: none;
  margin: 0 23px;
}
nav ul li a {
  text-decoration: none;
  color: white;
  transition: 0.3s ease;
}
nav ul li a:hover {
  color: rgb(153, 153, 226);
  transform: scale(1.05);
}

/* Main Sections */
main hr {
  border: 0;
  background-color: #9c97f1;
  height: 1.2px;
  margin: 60px 84px;
}
.left {
  font-size: 1.5rem;
}
.firstsection {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin: 130px 0;
}
.firstsection > div {
  width: 30%;
}
.leftsection {
  font-size: 2rem;
}
.leftsection .buttons {
  padding: 50px 0;
  /* border-radius: 6px; */
}
.leftsection .btn {
  padding: 12px 20px;
  margin-right: 10px;
  background-color: #1e2167;
  color: white;
  border: 2px solid white;
  font-size: 18px;
  cursor: pointer;
  transition: 0.3s ease;
  border-radius: 6px;
}
.leftsection .btn:hover {
  background-color: white;
  color: #1e2167;
}
.rightsection img {
  max-width: 100%;
  height: auto;
}
.purple {
  color: rgb(170, 107, 228);
}
.text-grey {
  color: gray;
}
#element {
  color: rgb(170, 107, 228);
}

/* Second Section */
.secondSection {
  max-width: 80vw;
  margin: auto;
  min-height: 80vh;
}
.secondSection h1 {
  font-size: 1.9rem;
}
.secondSection .box {
  background: white;
  width: 77vw;
  height: 2px;
  margin: 56px 0;
  display: flex;
}
.secondSection .vertical {
  height: 93px;
  width: 1px;
  background-color: white;
  margin: 0 120px;
}
.image-top {
  width: 23px;
  position: relative;
  top: -32px;
  left: -9px;
}
.vertical-title {
  position: relative;
  top: 75px;
  width: 150px;
  font-size: 14px;
}
.vertical-desc {
  position: relative;
  top: 86px;
  color: gray;
  width: 150px;
  font-size: 10px;
  line-height: 1.4;
}
/* Skills Section */
.skillsSection {
  max-width: 80vw;
  margin: auto;
  min-height: 60vh;
  padding-top: 40px;
  padding-bottom: 60px;
}

.skillsSection h1 {
  font-size: 1.9rem;
  margin-bottom: 30px;
}

.skills-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.skill h3 {
  margin-bottom: 5px;
  font-size: 16px;
}

.skill-bar {
  background: #2e2e4e;
  border-radius: 10px;
  overflow: hidden;
  height: 20px;
}

.skill-level {
  background: rgb(170, 107, 228);
  height: 100%;
  text-align: right;
  padding-right: 10px;
  line-height: 20px;
  font-size: 12px;
  font-weight: bold;
  color: white;
  border-radius: 10px 0 0 10px;
  transition: width 1s ease-in-out;
}


/* Contact Section */
.contactSection {
  max-width: 90vw;
  margin: auto;
  min-height: 60vh;
  padding: 60px 0;
  background: rgb(0, 0, 33);
  color: white;
}

.contactSection h1 {
  font-size: 2rem;
  margin-bottom: 40px;
  text-align: center;
}

.contact-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 50px;
  flex-wrap: wrap;
}

/* Contact Info */
.contact-info {
  flex: 1;
  font-size: 1.1rem;
  line-height: 1.8;
}

.contact-info p {
  margin-bottom: 15px;
}

/* Contact Form */
.contact-form {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
  max-width: 500px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  background: #2e2e4e;
  color: white;
  outline: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #aaa;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border: 1px solid #fff;
}

/* Contact Button */
.contact-btn {
  padding: 12px;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  background: white;
  color: rgb(90, 50, 150);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.3s ease, color 0.3s ease;
}

.contact-btn:hover {
  transform: scale(1.05);
  background: #ddd;
  color: rgb(90, 50, 150);
}

/* Responsive */
@media (max-width: 768px) {
  .contact-container {
    flex-direction: column;
    text-align: center;
  }

  .contact-info {
    margin-bottom: 30px;
  }
}


/* Projects Section */
.projectsSection {
  padding: 80px 10%;
  background: linear-gradient(120deg, #fdfbfb, #ebedee); /* soft light gradient */
  text-align: center;
  color: #333;
}

.projectsSection h1 {
  font-size: 2.5rem;
  margin-bottom: 50px;
  position: relative;
}

.projectsSection h1::after {
  content: "";
  width: 80px;
  height: 4px;
  background: #6c63ff; /* accent line */
  display: block;
  margin: 10px auto 0;
  border-radius: 2px;
}

.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
}

.project-card {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project-info {
  padding: 20px;
}

.project-info h3 {
  margin-bottom: 10px;
  color: #6c63ff;
}

.project-info p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 15px;
}

.project-btn {
  display: inline-block;
  padding: 10px 20px;
  background: #6c63ff;
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease, color 0.3s ease;
}

.project-btn:hover {
  background: #5848d7;
  color: #fff;
}






/* Footer */
footer {
  background-color: #0e0e1a;
}
.footer {
  display: flex;
  flex-wrap: wrap;
  padding: 23px 50px;
  justify-content: space-evenly;
}
.footer ul {
  list-style: none;
}
.footer ul li {
  margin: 5px 0;
}
.footer ul li a {
  color: gray;
  text-decoration: none;
  transition: 0.3s ease;
}
.footer ul li a:hover {
  color: white;
}
.footer > div {
  width: 200px;
}
footer .footer-rights {
  text-align: center;
  color: gray;
  padding: 12px 0;
}
