/* Enhanced styling for simplified portfolio */

/* Home Section - Profile Image */
.hero {
  background: linear-gradient(
    to right,
    var(--bg-color) 60%,
    rgba(58, 134, 255, 0.05) 100%
  );
  position: relative;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.profile-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.profile-image {
  width: 350px;
  height: 350px;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(58, 134, 255, 0.2);
  border: 5px solid white;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 2;
}

.profile-image:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(58, 134, 255, 0.3);
}

.profile-image.animated {
  animation: fadeInScale 1s ease-out;
}

@keyframes fadeInScale {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.floating-shape {
  position: absolute;
  width: 80px;
  height: 80px;
  background-color: var(--secondary-color);
  opacity: 0.8;
  border-radius: 20px;
  z-index: 1;
  transition: transform 0.5s ease;
}

.floating-shape.animated {
  animation: floatingAnimation 3s ease-in-out infinite alternate;
}

@keyframes floatingAnimation {
  0% {
    transform: translateY(0) rotate(15deg);
  }
  100% {
    transform: translateY(-15px) rotate(15deg);
  }
}

.shape-1 {
  top: 30px;
  left: 20px;
  transform: rotate(15deg);
  background-color: rgba(58, 134, 255, 0.6);
}

.shape-2 {
  bottom: 30px;
  right: 20px;
  transform: rotate(-15deg);
  background-color: rgba(255, 158, 60, 0.6);
}

/* Enhanced About Section */
.about {
  position: relative;
  background: linear-gradient(
    to bottom,
    var(--bg-color) 0%,
    rgba(58, 134, 255, 0.05) 100%
  );
  padding-bottom: 100px;
}

.about-content {
  margin-top: 40px;
  box-shadow: var(--shadow);
  border-radius: 20px;
  overflow: hidden;
  background-color: var(--card-bg);
}

.tech-stack-banner {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  padding: 15px;
  border-radius: 10px;
  background-color: var(--card-bg);
  box-shadow: var(--shadow);
}

.tech-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(58, 134, 255, 0.1);
  border-radius: 50%;
  font-size: 1.5rem;
  color: var(--primary-color);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.tech-icon:hover {
  transform: translateY(-5px);
  background-color: var(--primary-color);
  color: white;
}

.tech-icon.animated {
  animation: popIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  opacity: 0;
  transform: scale(0.6);
}

.tech-icon:nth-child(1).animated {
  animation-delay: 0.1s;
}

.tech-icon:nth-child(2).animated {
  animation-delay: 0.2s;
}

.tech-icon:nth-child(3).animated {
  animation-delay: 0.3s;
}

.tech-icon:nth-child(4).animated {
  animation-delay: 0.4s;
}

@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(0.6);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.tech-icon.mongo {
  color: #13aa52;
  background-color: rgba(19, 170, 82, 0.1);
}

.tech-icon.mongo:hover {
  background-color: #13aa52;
  color: white;
}

.tech-icon.node {
  color: #68a063;
  background-color: rgba(104, 160, 99, 0.1);
}

.tech-icon.node:hover {
  background-color: #68a063;
  color: white;
}

.tech-icon.vue {
  color: #42b883;
  background-color: rgba(66, 184, 131, 0.1);
}

.tech-icon.vue:hover {
  background-color: #42b883;
  color: white;
}

.tech-icon.js {
  color: #f7df1e;
  background-color: rgba(247, 223, 30, 0.1);
}

.tech-icon.js:hover {
  background-color: #f7df1e;
  color: #333;
}

.about-text {
  padding: 30px;
}

/* Section Background Images */
.skills {
  background-image: url("https://images.unsplash.com/photo-1517180102446-f3ece451e9d8?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1770&q=80");
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  position: relative;
  overflow: hidden;
}

.skills::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    var(--bg-color) 0%,
    rgba(58, 134, 255, 0.8) 100%
  );
  opacity: 0.95;
}

/* Animated background particles */
.skills::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  right: -50%;
  bottom: -50%;
  width: 200%;
  height: 200%;
  background: transparent;
  background-image: radial-gradient(white 2%, transparent 2%),
    radial-gradient(white 2%, transparent 2%);
  background-position: 0 0, 25px 25px;
  background-size: 50px 50px;
  opacity: 0.1;
  animation: skillsBgAnimation 60s linear infinite;
  z-index: 1;
}

@keyframes skillsBgAnimation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.experience {
  background-image: url("https://images.pexels.com/photos/577585/pexels-photo-577585.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2");
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  position: relative;
  overflow: hidden;
}

.experience::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    var(--bg-color) 0%,
    rgba(255, 158, 60, 0.5) 100%
  );
  opacity: 0.95;
}

.experience::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to top, var(--bg-color) 0%, transparent 100%);
  z-index: 1;
}

.projects {
  background-image: url("https://images.freepik.com/free-vector/laptop-with-program-code-isometric-icon-software-development-programming-applications-dark-neon_39422-971.jpg");
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  position: relative;
  overflow: hidden;
}

.projects::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    var(--bg-color) 0%,
    rgba(58, 134, 255, 0.7) 100%
  );
  opacity: 0.95;
}

/* Tech grid overlay */
.projects::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.05) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 20px 20px;
  z-index: 1;
}

/* Fix for section overlay */
section > .container {
  position: relative;
  z-index: 2;
}

/* Enhanced Contact Section */
.contact {
  position: relative;
  background: linear-gradient(
    135deg,
    var(--bg-color) 0%,
    rgba(58, 134, 255, 0.1) 100%
  );
  overflow: hidden;
}

.contact::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background: url("https://images.unsplash.com/photo-1586769852836-bc069f19e1b6?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1170&q=80");
  background-size: cover;
  background-position: center;
  opacity: 0.05;
  z-index: 1;
}

.contact-item {
  transition: transform 0.3s ease;
}

.contact-item:hover {
  transform: translateY(-5px);
}

.contact-form-container {
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow);
  border-radius: 15px;
  overflow: hidden;
  background-color: var(--card-bg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-form-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Project card animations */
.project-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(58, 134, 255, 0.2);
}

.project-card.animated {
  animation: fadeInUp 0.8s forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive styles */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
  }

  .profile-image-container {
    margin-top: 40px;
    order: 2;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .about-image {
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .profile-image {
    width: 280px;
    height: 280px;
  }

  .tech-stack-banner {
    flex-wrap: wrap;
  }

  .floating-shape {
    width: 60px;
    height: 60px;
  }

  .hero {
    padding-top: 120px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero h2 {
    font-size: 1.2rem;
  }

  .about-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .experience-counter {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .skills::after,
  .projects::after {
    opacity: 0.05;
  }
}

@media (max-width: 576px) {
  .profile-image {
    width: 220px;
    height: 220px;
  }

  .hero-stats {
    flex-direction: column;
    gap: 15px;
  }

  .hero-cta {
    flex-direction: column;
    gap: 15px;
  }

  .primary-btn,
  .secondary-btn {
    width: 100%;
    justify-content: center;
  }

  .section-title {
    font-size: 1.8rem;
  }

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

  .contact-info {
    margin-bottom: 30px;
  }
}
