/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    color: #6c3c86;
    background-color: #f7f7f7;
  }
  
  /* Typography */
  h1, h2, h3, h4 {
    margin-bottom: 1rem;
    font-weight: 700;
  }
  
  h1 {
    font-size: 3.5rem;
  }
  
  h2 {
    font-size: 2.8rem;
  }
  
  h3 {
    font-size: 2rem;
  }
  
  h4 {
    font-size: 1.6rem;
  }
  
  /* Header */
  header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
  }
  
  nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 1.2rem 0;
  }
  
  nav ul li {
    margin: 0 1.2rem;
  }
  
  nav ul li a {
    color: #6c3c86;
    text-decoration: none;
    transition: color 0.3s ease;
  }
  
  nav ul li a:hover {
    color: #4b2a5e;
  }
  
  /* Sections */
  .section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2.5rem;
    background-color: #f7f7f7;
  }
  
  /* Hero section */
  .hero {
    background: linear-gradient(135deg, #6c3c86, #4b2a5e);
    color: #fff;
    position: relative;
    overflow: hidden;
  }
  
  .hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("hero-bg.jpg");
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: 0;
  }
  
  .hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    animation: fadeIn 1s ease;
  }
  
  .cta-buttons {
    margin-top: 2.5rem;
  }
  
  .cta {
    display: inline-block;
    background-color: #6c3c86;
    color: #fff;
    padding: 0.9rem 1.8rem;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  
  .cta:hover {
    background-color: #4b2a5e;
  }
  
  /* About section */
  .about-section {
    background-color: #fff;
  }
  
  .about-content {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 1s ease;
  }
  
  .profile-photo {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 3rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  
  .about-text {
    flex: 1;
  }
  
  /* Portfolio section */
  .portfolio-section {
    background: linear-gradient(135deg, #6c3c86, #4b2a5e);
    color: #fff;
  }
  
  .project-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 2.5rem 0;
    width: 100%;
    animation: fadeIn 1s ease;
  }
  
  .project-card {
    flex: 0 0 350px;
    margin-right: 2.5rem;
    perspective: 1000px;
    scroll-snap-align: start;
  }
  
  .card-inner {
    position: relative;
    width: 100%;
    height: 350px;
    transition: transform 0.6s;
    transform-style: preserve-3d;
  }
  
  .project-card:hover .card-inner {
    transform: rotateY(180deg);
  }
  
  .card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 5px;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  
  .card-back {
    background: linear-gradient(135deg, #6c3c86, #4b2a5e);
    color: #fff;
    transform: rotateY(180deg);
  }
  .project-link {
    color: #ffffff; /* White color for the link */
    text-decoration: none; /* Optional: removes underline */
}

.project-link:hover {
    color: #ddd; /* Change this to your desired hover color */
    text-decoration: underline; /* Optional: adds underline on hover */
}

  
  .skills-section {
    margin-top: 1.5rem;
  }
  
  .skill-bar {
    height: 12px;
    background-color: #fff;
    border-radius: 5px;
    margin-bottom: 0.75rem;
    position: relative;
    overflow: hidden;
  }
  
  .skill-bar::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: #6c3c86;
    animation: skillBar 2s ease-in-out forwards;
  }
  
  .skill-bar::after {
    content: attr(data-level) '%';
    display: block;
    text-align: right;
    font-size: 0.8rem;
    color: #fff;
    position: absolute;
    top: 50%;
    right: 0.5rem;
    transform: translateY(-50%);
  }
  
  /* Contact section */
  .contact-section {
    background-color: #fff;
  }
  
  form {
    display: flex;
    flex-direction: column;
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    animation: fadeIn 1s ease;
  }
  
  input, textarea {
    margin-bottom: 1.2rem;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f7f7f7;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
  }
  
  input:focus, textarea:focus {
    outline: none;
    border-color: #6c3c86;
  }
  
  .social-links {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
    animation: fadeIn 1s ease;
  }
  
  .social-links a {
    margin: 0 1.2rem;
  }
  
  .social-links img {
    width: 36px;
    height: 36px;
    transition: transform 0.3s ease;
  }
  
  .social-links a:hover img {
    transform: scale(1.2);
  }
  
  /* Footer */
  footer {
    text-align: center;
    padding: 2.2rem;
    background-color: #6c3c86;
    color: #fff;
  }
  
  /* Animations */
  @keyframes fadeIn {
    0% {
      opacity: 0;
      transform: translateY(20px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  @keyframes skillBar {
    0% {
      width: 0;
    }
    100% {
      width: attr(data-level) '%';
    }
  }
  
  /* Responsive styles */
  @media (max-width: 768px) {
    h1 {
      font-size: 2.8rem;
    }
  
    h2 {
      font-size: 2.2rem;
    }
  
    h3 {
      font-size: 1.8rem;
    }
  
    h4 {
      font-size: 1.4rem;
    }
  
    nav ul {
      flex-direction: column;
      align-items: center;
    }
  
    nav ul li {
      margin: 0.8rem 0;
    }
  
    .about-content {
      flex-direction: column;
    }
  
    .profile-photo {
      margin-right: 0;
      margin-bottom: 1.5rem;
    }
  
    .project-card {
      flex: 0 0 280px;
      margin-right: 1.5rem;
    }
  
    .card-inner {
      height: 280px;
    }
  }
  /* ... (previous CSS code) ... */

/* Animations */
@keyframes fadeIn {
    0% {
      opacity: 0;
      transform: translateY(20px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  @keyframes skillBar {
    0% {
      width: 0;
    }
    100% {
      width: attr(data-level) '%';
    }
  }
  
  @keyframes buttonPulse {
    0% {
      transform: scale(1);
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    50% {
      transform: scale(1.05);
      box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
    }
    100% {
      transform: scale(1);
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
  }
  
  /* Header styles */
  header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    animation: fadeIn 0.5s ease;
  }
  
  nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 1.2rem 0;
  }
  
  nav ul li {
    margin: 0 1.2rem;
  }
  
  nav ul li a {
    color: #6c3c86;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
  }
  
  nav ul li a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #6c3c86;
    transform: scaleX(0);
    transition: transform 0.3s ease;
  }
  
  nav ul li a:hover {
    color: #4b2a5e;
  }
  
  nav ul li a:hover::after {
    transform: scaleX(1);
  }
  
  .cta {
    display: inline-block;
    background-color: #6c3c86;
    color: #fff;
    padding: 0.9rem 1.8rem;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    animation: buttonPulse 1.5s ;
  }
  
  .cta:hover {
    background-color: #4b2a5e;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
  }
  
  /* ... (rest of the CSS code) ... */