@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap");

:root {
  --primary-color: #a855f7;
  --primary-color-dark: #9333ea;
  --secondary-color: #ca8a04;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --extra-light: #faf5ff;
  --max-width: 1200px;
}

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

a {
  text-decoration: none;
}

body {
  font-family: "Poppins", sans-serif;
  scroll-behavior: smooth; /* Smooth scrolling */
}

nav {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background-color: #ffffff;
  z-index: 99;
}

.nav__content {
  max-width: var(--max-width);
  margin: auto;
  padding: 1.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

nav .logo a {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
  transition: 0.3s;
}
nav .logo a:hover {
  color: var(--primary-color-dark);
}

nav .checkbox {
  display: none;
}

nav input {
  display: none;
}
nav .checkbox i {
  font-size: 2rem;
  color: var(--primary-color);
  cursor: pointer;
}

ul {
  display: flex;
  align-items: center;
  gap: 1rem;
  list-style: none;
  transition: left 0.3s;
}

ul li a {
  padding: 0.5rem 1rem;
  border: 2px solid transparent;
  text-decoration: none;
  font-weight: 600;
  color: var(--text-dark);
  transition: 0.3s;
}

ul li a:hover {
  border-top-color: var(--secondary-color);
  border-bottom-color: var(--secondary-color);
  color: var(--secondary-color);
}

.section {
  background-color: var(--extra-light);
}

.section__container {
  min-height: 100vh;
  max-width: var(--max-width);
  margin: auto;
  padding: 1rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem;
}

.content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  animation: fadeIn 1.5s ease-in-out; /* Subtle fade-in animation */
}

.subtitle {
  letter-spacing: 2px;
  color: var(--text-light);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.title {
  font-size: 2.5rem;
  font-weight: 400;
  line-height: 3rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.title span {
  font-weight: 600;
}

.description {
  line-height: 1.5rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.action__btns {
  display: flex;
  gap: 1rem;
}

.action__btns button {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 2px;
  padding: 1rem 2rem;
  outline: none;
  border: 2px solid var(--primary-color);
  border-radius: 10px;
  transition: 0.3s;
  cursor: pointer;
}

.hire__me {
  background-color: var(--primary-color);
  color: #ffffff;
  transform: scale(1);
  transition: transform 0.3s ease;
}

.hire__me:hover {
  background-color: var(--primary-color-dark);
  transform: scale(1.1); /* Button enlarges on hover */
}

.portfolio {
  color: var(--primary-color);
  transform: scale(1);
  transition: transform 0.3s ease;
}

.portfolio:hover {
  background-color: var(--primary-color-dark);
  color: #ffffff;
  transform: scale(1.1); /* Button enlarges on hover */
}

.image {
  display: grid;
  place-items: center;
  animation: fadeIn 1.5s ease-in-out;
}

.image img {
  width: 25rem; /* Restored original size */
  max-width: 90%;
  border-radius: 100%;
}

.contact-layout {
  display: flex;
  gap: 2rem; /* Space between text and form */
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; /* Ensure layout remains responsive */
}

.contact-text {
  flex: 1;
  max-width: 500px;
}

.contact-text .title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.contact-text .description {
  font-size: 1.1rem;
  line-height: 1.8rem;
  color: var(--text-light);
}

.contact-form {
  flex: 1;
  max-width: 600px;
  padding: 2rem;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 600;
  color: var(--text-dark);
}

.form-group input,
.form-group textarea {
  padding: 0.75rem 1rem;
  border: 1px solid var(--text-light);
  border-radius: 5px;
  font-size: 1rem;
  background: var(--extra-light);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 5px rgba(168, 85, 247, 0.4);
}

.btn-submit {
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-submit:hover {
  background-color: var(--primary-color-dark);
  transform: translateY(-2px);
}

.btn-submit:active {
  transform: translateY(0);
}

footer {
  background-color: var(--primary-color-dark);
  color: #ffffff;
  padding: 1.5rem 1rem;
  margin-top: 2rem;
}

.footer-content {
  max-width: var(--max-width);
  margin: auto;
  display: flex;
  justify-content: space-between; /* Align text to the left and icons to the right */
  align-items: center;
  gap: 1rem;
}

.footer-content p {
  margin: 0;
  font-size: 0.9rem;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icon {
  display: inline-block;
  width: 32px;
  height: 32px;
}

.social-icon img {
  width: 100%;
  height: auto;
  filter: invert(100%);
  transition: transform 0.3s ease;
}

.social-icon img:hover {
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .contact-layout {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-text {
    margin-bottom: 2rem;
  }

  .footer-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* Portfolio Section */
.portfolio-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem 1rem; /* Added padding for better spacing */
  background-color: var(--extra-light);
}

.portfolio-section .section__container {
  text-align: center;
  max-width: var(--max-width);
  margin: auto;
}

.portfolio-section .portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  justify-content: center; /* Horizontal centering */
  margin-top: 2rem; /* Add spacing between text and grid */
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item img {
  width: 100%; /* Ensure the image spans the full width of the container */
  height: 100%; /* Ensure the image spans the full height of the container */
  object-fit: cover; /* Ensures the image fills the container while maintaining aspect ratio */
  border-radius: 8px; /* Optional: adds rounded corners */
}

.portfolio-item:hover img {
  transform: scale(1.1); /* Zoom on hover */
}

.portfolio-item:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.portfolio-item-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  transition: opacity 0.3s ease;
  padding: 1rem;
}

.portfolio-item:hover .portfolio-item-overlay {
  opacity: 1; /* Overlay appears on hover */
}

.portfolio-item-overlay h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.portfolio-item-overlay p {
  margin-top: 0.5rem;
  font-size: 1rem;
}

/* Typography */
.portfolio-section h1 {
  margin-bottom: 1rem;
  font-size: 2.5rem;
}

.portfolio-section p {
  margin-bottom: 2rem;
  font-size: 1.2rem;
  line-height: 1.8rem;
  color: var(--text-light);
}

/* linkedin-references */
.references-section {
  padding: 50px 20px;
  background-color: #f9f9f9;
  text-align: center;
}

.references-section h2 {
  margin-bottom: 20px;
  font-size: 28px;
}

.linkedin-badge {
  margin: 20px auto;
  display: inline-block;
}

.references {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.reference-item {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: left;
}

.reference-item p {
  font-size: 16px;
  color: #333;
  margin-bottom: 10px;
}

.reference-item h4 {
  font-size: 14px;
  color: #555;
  font-weight: bold;
}

/* Resume */

.skills-section, .experience-section, .education-section {
  padding: 4rem 1rem;
  text-align: center;
  background-color: #f9f9f9;
}

h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--text-dark);
}

.skills-grid, .experience-timeline, .education-grid {
  max-width: var(--max-width);
  margin: auto;
  display: grid;
  gap: 2rem;
}

.skills-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.skill-item {
  text-align: left;
}

.skill-bar {
  background: var(--extra-light);
  height: 10px;
  border-radius: 5px;
  overflow: hidden;
  margin-top: 0.5rem;
}

.skill-level {
  background: var(--primary-color);
  height: 100%;
  border-radius: 5px;
}

.timeline-item, .education-item {
  background: #fff;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: left;
}

.timeline-item h3, .education-item h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.timeline-item span, .education-item span {
  display: block;
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.btn-download {
  display: inline-block;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  background-color: var(--primary-color);
  color: #fff;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
  margin-top: 1rem;
}

.btn-download:hover {
  background-color: var(--primary-color-dark);
  transform: translateY(-2px);
}