@import url("https://fonts.googleapis.com/css2?family=Comfortaa:wght@300..700&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Montserrat+Alternates:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

/* CSS Variables */
:root {
  --primary-pink: #d94c5e;
  --secondary-pink: #ffb6c1;
  --neon-purple: #d364ff;
  --neon-blue: #18dcff;
  --dark-purple: #2b1a54;
  --dark-text: #1a0b2e;
  --light-text: #8878ab;
  --white: #ffffff;
  --light-gray: #eefeff;
}

html {
  height: 100%;
  background: var(--light-gray);
  font-family: "Inter", sans-serif;
  color: var(--dark-text);
  scroll-behavior: smooth;
}

body {
  height: inherit;
  background: transparent;
}

::-webkit-scrollbar {
  height: 0.5rem;
  width: 0.5rem;
}

::-webkit-scrollbar-track {
  background-color: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: var(--secondary-pink);
  border-radius: 5rem;
}

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

.btn {
  display: inline-block;
  padding: 12px 28px;
  background: linear-gradient(to right, var(--primary-pink), var(--neon-blue));
  color: var(--white);
  border: none;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: all 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 3px 10px var(--dark-purple);
}

.glow-effect::after {
  content: "";
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  background: linear-gradient(
    45deg,
    var(--primary-pink),
    var(--neon-purple),
    var(--neon-blue),
    var(--primary-pink)
  );
  background-size: 400% 400%;
  z-index: -1;
  border-radius: inherit;
  animation: glowAnimation 3s ease infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.glow-effect:hover::after {
  opacity: 1;
}

@keyframes glowAnimation {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 98%;
  width: 4rem;
  background: var(--dark-purple);
  margin: 0.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--white);
  transition: all 0.3s ease;
  border-radius: 0.5rem;
  z-index: 100;
}

.sidebar a {
  text-decoration: none;
}

.sidebar-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 3rem;
  width: 3rem;
  margin: 0.2rem auto;
  color: var(--white);
  border-radius: 1.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.sidebar-item:hover {
  background: var(--primary-pink);
  border-radius: 0.75rem;
}

.sidebar-item i {
  font-size: 1.3rem;
  transition: all 0.3s ease;
}

.sidebar-item:hover i {
  transform: scale(1.2);
}

main {
  margin: auto;
  margin-left: 5rem;
  width: calc(100% - 5.5rem);
}

.section {
  min-height: 100vh;
  padding: 2rem 0;
}

.page-header {
  text-align: center;
  padding: 2rem 0;
}

.page-header h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  color: var(--primary-pink);
  font-family: "Montserrat Alternates", sans-serif;
}

.page-header p {
  font-size: 1.2rem;
  color: var(--light-text);
}

/* Home Section */
.home {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.home-text {
  flex: 1;
  display: flex;
  max-width: 50%;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
}

.home-text h1,
.home-text h2,
.home-text p {
  margin: 0;
  padding-left: 15%;
  padding-right: 5%;
}

.home-text h1 {
  font-size: 4rem;
  font-family: "Montserrat Alternates", sans-serif;
  color: var(--dark-text);
}

.home-text h1 span {
  color: var(--primary-pink);
  transition: color 0.3s ease;
}

.home-text h2 {
  font-size: 2rem;
  font-family: "Zain", sans-serif;
  color: var(--dark-text);
}

.home-text p {
  color: var(--light-text);
}

.home-text .btn {
  margin: auto;
  margin-top: 1rem;
}

.home-image {
  flex: 1;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  transition: transform 0.3s ease;
}

.home-image img {
  width: 600px;
  border-radius: 5%;
  transition: transform 0.3s ease;
}

.home-image img:hover {
  transform: scale(1.05) rotate(2deg);
}

.item-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.inventory-item:hover .item-icon {
  transform: scale(1.2) rotate(5deg);
}

.item-name {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  font-weight: 600;
  color: var(--dark-text);
}

.item-description {
  font-size: 1rem;
  color: var(--light-text);
  line-height: 1.4;
}

.contact-us {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  justify-content: center;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  width: 100%;
  max-width: 500px;
  margin-bottom: 2rem;
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid var(--primary-pink);
  border-radius: 10px;
  transition: border-color 0.3s ease, background-color 0.3s ease;
  font-size: 1rem;
  box-sizing: border-box;
  color: var(--dark-text);
}

.form-control:focus {
  border-color: var(--neon-blue);
  background: rgba(255, 255, 255, 0.1);
}

.social-media {
  text-align: center;
}

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

.contact-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid var(--primary-pink);
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  color: var(--dark-text);
}

.contact-link:hover {
  background: var(--primary-pink);
  transform: scale(1.2) translateY(-5px);
  box-shadow: 0 10px 25px var(--dark-purple);
  border-color: var(--neon-purple);
  color: var(--white);
}

.contact-link i {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.contact-link:hover i {
  transform: scale(1.1);
}

.cv {
  padding: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.cv-content {
  display: flex;
  flex-direction: column;
}

.cv-section {
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 15px;
}

.cv-section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--primary-pink);
  border-bottom: 2px solid var(--primary-pink);
}

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

.info-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  transition: transform 0.3s ease;
  color: var(--dark-text);
}

.info-item strong {
  color: var(--primary-pink);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.skill-category h3 {
  color: var(--neon-blue);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  text-align: center;
}

.tech-inventory {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
}

.tech-inventory .inventory-item {
  padding: 1rem;
  font-size: 0.9rem;
}

.tech-inventory .item-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.tech-inventory .item-name {
  font-size: 1rem;
}

.experience-item,
.education-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.experience-item h3,
.education-item h3 {
  color: var(--primary-pink);
}

.company,
.university {
  color: var(--primary-pink);
}

.duration {
  color: var(--light-text);
  font-style: italic;
}

.experience-item ul {
  list-style: none;
  padding: 0;
}

.experience-item ul li {
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
  color: var(--dark-text);
}

.experience-item ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-pink);
}

/* Responsive Design */
@media (max-width: 768px) {
  .home {
    flex-direction: column;
    text-align: center;
  }

  .home-text {
    max-width: 100%;
    order: 2;
  }
  .home-text h2 {
    text-align: center;
    margin: 0 auto;
  }
  .home-image {
    order: 1;
    margin-bottom: 2rem;
  }

  .skills-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .css-slider {
    height: 300px;
  }

  .sidebar {
    width: 3rem;
  }

  main {
    margin-left: 4rem;
    width: calc(100% - 4.5rem);
  }

  .home-image img {
    width: 100%;
    max-width: 400px;
  }
}

/* Projects Section Styles */
.projects {
  padding: 2rem 4rem;
  background: var(--light-gray);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.project-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(217, 76, 94, 0.3);
}

.project-image {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--neon-purple), var(--neon-blue));
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(43, 26, 84, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-links {
  display: flex;
  gap: 1rem;
}

.project-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--primary-pink);
  color: var(--white);
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.project-link:hover {
  background: var(--neon-blue);
  transform: scale(1.1);
}

.project-content {
  padding: 1.5rem;
}

.project-content h3 {
  font-size: 1.3rem;
  color: var(--dark-text);
  margin-bottom: 0.5rem;
  font-family: "Montserrat Alternates", sans-serif;
}

.project-tech {
  color: var(--primary-pink);
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.project-description {
  color: var(--light-text);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Education Section Styles */
.education {
  padding: 2rem 4rem;
  background: var(--white);
}

.education-content {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.education-item {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  padding: 2rem;
  background: var(--light-gray);
  border-radius: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.education-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(217, 76, 94, 0.2);
}

.education-icon {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-pink), var(--neon-purple));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 2rem;
}

.education-details h3 {
  font-size: 1.4rem;
  color: var(--dark-text);
  margin-bottom: 0.5rem;
  font-family: "Montserrat Alternates", sans-serif;
}

.university {
  color: var(--primary-pink);
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.duration {
  color: var(--light-text);
  margin-bottom: 0.5rem;
  font-style: italic;
}

.gpa {
  color: var(--dark-text);
  margin-bottom: 0.5rem;
}

.courses {
  color: var(--light-text);
  line-height: 1.6;
}

.achievements {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}

.achievements li {
  color: var(--light-text);
  line-height: 1.6;
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.5rem;
}

.achievements li::before {
  content: "▶";
  color: var(--primary-pink);
  position: absolute;
  left: 0;
  top: 0;
}

.skills {
  padding: 2rem 4rem;
  background: var(--light-gray);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.skill-category {
  background: var(--white);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.skill-category h3 {
  font-size: 1.3rem;
  color: var(--dark-text);
  margin-bottom: 1.5rem;
  text-align: center;
  font-family: "Montserrat Alternates", sans-serif;
}

.tech-inventory {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
}

.inventory-item {
  background: var(--light-gray);
  border-radius: 15px;
  border: var(--dark-purple) solid 1px;
  padding: 1rem;
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
  cursor: pointer;
}

.inventory-item:hover {
  transform: scale(1.05);
}

.item-icon {
  font-size: 2rem;
  margin: 1rem 0 0.5rem 0;
  color: var(--primary-pink);
}

.item-name {
  font-weight: 600;
  color: var(--dark-text);
  font-size: 0.9rem;
}

.soft-skills-section {
  margin-top: 3rem;
  background: var(--white);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.soft-skills-section h3 {
  font-size: 1.3rem;
  color: var(--dark-text);
  margin-bottom: 1.5rem;
  text-align: center;
  font-family: "Montserrat Alternates", sans-serif;
}

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

.soft-skill-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--light-gray);
  border-radius: 15px;
  transition: all 0.3s ease;
}

.soft-skill-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(217, 76, 94, 0.2);
}

.soft-skill-item i {
  font-size: 1.5rem;
  color: var(--primary-pink);
  flex-shrink: 0;
}

.soft-skill-item span {
  color: var(--light-text);
  line-height: 1.5;
}

/* Responsive Design for New Sections */
@media (max-width: 768px) {
  .projects,
  .education,
  .skills {
    padding: 2rem 1rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .education-item {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .education-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    margin: 0 auto;
  }

  .skills-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .tech-inventory {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.8rem;
  }

  .soft-skills-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}
