:root {
  --bg-color: #ffffff;
  --bg-alt: #fff0f5;
  --text-main: #291720;

  --color-orange: #fb8b24;
  --color-pink: #d90368;
  --color-purple: #820263;

  --gradient-main: linear-gradient(
    135deg,
    var(--color-orange),
    var(--color-pink)
  );
  --gradient-hover: linear-gradient(
    135deg,
    var(--color-pink),
    var(--color-purple)
  );

  --radius: 12px;
  --shadow: 0 10px 30px rgba(130, 2, 99, 0.15);
  --font: "Poppins", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
}

h1,
h2,
h3 {
  color: var(--color-purple);
  font-weight: 700;
}

a {
  text-decoration: none;
}

.section {
  padding: 80px 10%;
}

.center {
  text-align: center;
  margin-bottom: 50px;
  font-size: 2.5rem;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  width: 100%;
}

.btn {
  display: inline-block;
  background: var(--gradient-main);
  color: white;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  margin-top: 20px;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  box-shadow: 0 4px 15px rgba(217, 3, 104, 0.4);
}

.btn:hover {
  transform: translateY(-3px);
  background: var(--gradient-hover);
  box-shadow: 0 8px 20px rgba(130, 2, 99, 0.4);
}

.hero {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: space-between;
  padding: 0 10%;
  background: radial-gradient(circle at top right, #fff0f5 0%, #fff 40%);
}

.hero-left {
  flex: 1;
  padding-right: 50px;
}

.hero-left h1 {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 10px;
  color: var(--text-main);
}

.hero-left span {
  color: var(--color-pink);
}

.hero-left p {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 20px;
}

.hero-right {
  flex: 1;
  display: flex;
  justify-content: center;
}

.hero-right img {
  width: 350px;
  height: 350px;
  object-fit: cover;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  box-shadow: var(--shadow);
  border: 4px solid white;
  animation: blob 5s ease-in-out infinite alternate;
}

@keyframes blob {
  0% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  }
  100% {
    border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
  }
}

.projects {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
}

.card {
  width: 280px;
  height: 200px;
  perspective: 1000px;
  cursor: pointer;
}

.card-inner {
  width: 100%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}

.card:hover .card-inner {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  backface-visibility: hidden;
}

.card-front {
  background: white;
  border: 1px solid #ffe0ea;
  color: var(--color-purple);
  font-weight: 700;
  font-size: 1.2rem;
}

.card-back {
  transform: rotateY(180deg);
  background: var(--gradient-hover);
  color: white;
  padding: 20px;
  text-align: center;
}

.skills-section {
  background: var(--bg-alt);
}

.skill {
  max-width: 600px;
  margin: 0 auto 30px auto;
}

.skill span {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-main);
}

.bar {
  background: #e6e6e6;
  border-radius: 20px;
  height: 12px;
  overflow: hidden;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
}

.fill {
  height: 100%;
  background: var(--gradient-main);
  border-radius: 20px;
  transition: width 1s ease-in-out;
}

.fill.html {
  width: 90%;
}
.fill.css {
  width: 80%;
}

.carousel {
  width: 100%;
  max-width: 600px;
  margin: auto;
  overflow: hidden;
  position: relative;
  background: white;
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid #ffe0ea;
}

.carousel input {
  display: none;
}

.slides {
  display: flex;
  width: 300%;
  transition: transform 0.6s ease-in-out;
}

.carousel input:nth-child(1):checked ~ .slides {
  transform: translateX(0);
}
.carousel input:nth-child(2):checked ~ .slides {
  transform: translateX(-33.33%);
}
.carousel input:nth-child(3):checked ~ .slides {
  transform: translateX(-66.66%);
}

.slides p {
  width: 100%;
  text-align: center;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--color-purple);
}

.carousel-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.nav-dot {
  width: 12px;
  height: 12px;
  background: #eee;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}
.carousel-labels {
  display: flex;
  justify-content: center;
  margin-top: 15px;
  gap: 10px;
}
.carousel-labels label {
  width: 12px;
  height: 12px;
  background: #ccc;
  border-radius: 50%;
  cursor: pointer;
}
.carousel-labels label:hover {
  background: var(--color-pink);
}

.contact-section {
  background: var(--bg-alt);
}

.contact-form {
  max-width: 500px;
  margin: auto;
  background: white;
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form input,
.contact-form textarea {
  padding: 15px;
  border: 2px solid #eee;
  border-radius: var(--radius);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s;
  background: #fdfdfd;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--color-orange);
  background: white;
}

.contact-form button {
  background: var(--gradient-main);
  color: white;
  border: none;
  padding: 15px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.contact-form button:hover {
  background: var(--gradient-hover);
  letter-spacing: 1px;
}

@media (max-width: 768px) {
  .hero {
    flex-direction: column-reverse;
    text-align: center;
    padding-top: 100px;
  }
  .hero-left {
    padding-right: 0;
  }
  .hero-right img {
    width: 250px;
    height: 250px;
    margin-bottom: 30px;
  }
  .hero-left h1 {
    font-size: 2.5rem;
  }
}
