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

/* Reset default styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

ul {
  list-style: none;
}

/* Body styles */
body {
  font-family: "Poppins", sans-serif;
  background-color: #f9f9f9;
  color: #333;
  line-height: 1.6;
  text-align: center;
}

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

/* Navigation */
nav {
  background-color: #fff;
  border-bottom: 1px solid #ddd;
  z-index: 1000;
  position: sticky;
  top: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  justify-content: center;
  align-items: center;
  padding: 15px 0;
  max-width: 1200px;
  margin: 0 auto;
}

nav ul li {
  margin: 5px 20px;
}

nav ul li a {
  text-decoration: none;
  color: #333;
  padding: 12px 20px;
  display: block;
  transition: all 0.3s ease;
  border-radius: 25px;
  font-weight: 500;
}

nav ul li a:hover {
  background: linear-gradient(45deg, #736efe, #bb3990);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(115, 110, 254, 0.3);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  padding: 80px 20px;
  margin-bottom: 0;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
}

.profile-image {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 30px;
  border: 5px solid #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.profile-image:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.hero-text h1 {
  font-size: 3rem;
  margin-bottom: 10px;
  color: #2c3e50;
  font-weight: 600;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: #7f8c8d;
  margin-bottom: 15px;
  font-weight: 500;
}

.hero-description {
  font-size: 1.1rem;
  color: #5a6c7d;
  max-width: 600px;
  line-height: 1.6;
}

/* Sections */
section {
  padding: 60px 20px;
  position: relative;
}

section:nth-child(even) {
  background-color: #fafbfc;
}

section h2 {
  font-size: 2.5rem;
  margin-bottom: 30px;
  color: #2c3e50;
  position: relative;
  display: inline-block;
}

section h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(45deg, #736efe, #bb3990);
  border-radius: 2px;
}

section p {
  font-size: 1.1rem;
  color: #555;
  max-width: 800px;
  margin: 0 auto 20px;
}

/* Skills and Qualifications */
.skills-list,
.qualifications-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 30px;
}

.skills-list li,
.qualifications-list li {
  background-color: #fff;
  padding: 25px 30px;
  margin: 15px;
  border-radius: 12px;
  border: 1px solid #e1e8ed;
  list-style: none;
  font-size: 1rem;
  color: #2c3e50;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.skills-list li:hover,
.qualifications-list li:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(115, 110, 254, 0.15);
  border-color: #736efe;
}

/* Portfolio */
.portfolio-items {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 50px;
  justify-items: center;
}

.portfolio-item {
  background-color: #fff;
  padding: 30px;
  border-radius: 12px;
  border: 1px solid #e1e8ed;
  max-width: 600px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.portfolio-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.portfolio-item h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: #2c3e50;
  position: relative;
}

.portfolio-item h3::before {
  content: "";
  position: absolute;
  left: -15px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 25px;
  background: linear-gradient(45deg, #736efe, #bb3990);
  border-radius: 2px;
}

.portfolio-item p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 15px;
}

.portfolio a {
  color: #bb3990;
  text-decoration: none;
}

.portfolio-item a:hover {
  text-decoration: underline;
}

/* Contact Form */
#contact-form {
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
  padding: 40px;
  background-color: #fff;
  border-radius: 12px;
  border: 1px solid #e1e8ed;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

#contact-form label {
  display: block;
  margin-bottom: 10px;
  color: #2c3e50;
  font-weight: 500;
}

/* Input field container for animated border effect */
.input-container {
  position: relative;
  margin-bottom: 25px;
}

#contact-form input,
#contact-form textarea {
  width: 100%;
  padding: 15px 20px;
  border: 2px solid #e1e8ed;
  border-radius: 8px;
  font-size: 1rem;
  font-family: "Poppins", sans-serif;
  transition: all 0.3s ease;
  background-color: #fafbfc;
  position: relative;
}

/* Wrapper for animated border */
.input-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
  margin-bottom: 25px;
  border-radius: 12px;
  padding: 3px;
  background: linear-gradient(
    45deg,
    #736efe 0%,
    #bb3990 25%,
    #736efe 50%,
    #bb3990 75%,
    #736efe 100%
  );
  background-size: 300% 300%;
  animation: borderFlow 3s ease-in-out infinite;
}

.input-wrapper:focus-within {
  padding: 4px;
  animation: borderFlow 2s ease-in-out infinite;
}

.input-wrapper input,
.input-wrapper textarea {
  position: relative;
  z-index: 1;
  margin-bottom: 0;
  width: 100%;
  border: none;
  background-color: #fafbfc;
  border-radius: 8px;
}

#contact-form input:focus,
#contact-form textarea:focus {
  outline: none;
  background-color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(115, 110, 254, 0.1);
}

/* Keyframe for flowing border animation */
@keyframes borderFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Enhanced button styling */
#contact-form button {
  background: linear-gradient(45deg, #736efe, #bb3990);
  color: #fff;
  padding: 15px 40px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

#contact-form button::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: left 0.5s;
}

#contact-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(115, 110, 254, 0.3);
}

#contact-form button:hover::before {
  left: 100%;
}

/* Footer */
footer {
  background-color: #fff;
  padding: 30px 0;
  text-align: center;
  color: #777;
  border-top: 1px solid #ddd;
}

/* Divider */
.divider {
  width: 100%;
  text-align: center;
  margin: 40px 0;
  font-size: 2rem;
  letter-spacing: 0.5rem;
  background: none;
  border: none;
}

.divider::before {
  content: "🌸🌼🌷🌸🌼🌷";
  display: inline-block;
}

/* Falling Petals Animation */
.falling-petals {
  position: fixed;
  top: -10px;
  pointer-events: none;
  z-index: -1;
  font-size: 20px;
  animation: fall linear infinite;
  opacity: 0.7;
}

@keyframes fall {
  0% {
    transform: translateY(-100vh) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(360deg);
    opacity: 0;
  }
}

/* Different petal types with varying speeds and positions */
.petal-1 {
  left: 10%;
  animation-duration: 8s;
  animation-delay: 0s;
}

.petal-2 {
  left: 20%;
  animation-duration: 10s;
  animation-delay: 2s;
}

.petal-3 {
  left: 30%;
  animation-duration: 7s;
  animation-delay: 4s;
}

.petal-4 {
  left: 40%;
  animation-duration: 9s;
  animation-delay: 1s;
}

.petal-5 {
  left: 50%;
  animation-duration: 11s;
  animation-delay: 3s;
}

.petal-6 {
  left: 60%;
  animation-duration: 8s;
  animation-delay: 5s;
}

.petal-7 {
  left: 70%;
  animation-duration: 10s;
  animation-delay: 1.5s;
}

.petal-8 {
  left: 80%;
  animation-duration: 9s;
  animation-delay: 3.5s;
}

.petal-9 {
  left: 90%;
  animation-duration: 7s;
  animation-delay: 0.5s;
}

@media (min-width: 768px) {
  .hero-content {
    flex-direction: row;
    text-align: left;
  }

  .profile-image {
    margin-right: 50px;
    margin-bottom: 0;
    width: 200px;
    height: 200px;
  }

  .hero-text h1 {
    font-size: 3.5rem;
  }

  .hero-subtitle {
    font-size: 1.4rem;
  }

  nav ul li {
    margin: 5px 25px;
  }

  nav ul li a {
    padding: 15px 25px;
  }

  .portfolio-items {
    grid-template-columns: repeat(2, 1fr);
  }

  .skills-list li,
  .qualifications-list li {
    flex: 1 1 calc(33.333% - 40px);
  }
}

@media (min-width: 1024px) {
  .portfolio-items {
    grid-template-columns: repeat(3, 1fr);
  }

  .container {
    padding: 40px;
  }
}
