body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #1d2671, #c33764);
  color: #fff;
  scroll-behavior: smooth;
}

header {
  text-align: center;
  padding: 80px 20px;
}

.profile-img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 4px solid #fff;
  margin-bottom: 20px;
}

header h1 {
  font-size: 3rem;
}

header h2 span {
  border-right: 2px solid #fff;
  animation: typing 4s steps(30) infinite, blink .7s infinite;
  white-space: nowrap;
  overflow: hidden;
  display: inline-block;
}

@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

@keyframes blink {
  50% { border-color: transparent }
}

section {
  padding: 60px 20px;
  max-width: 1000px;
  margin: auto;
}

h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
}

.about p {
  text-align: center;
  font-size: 1.1rem;
}

.about-details {
  text-align: center;
  margin-top: 20px;
}

.about-details h3 {
  color: #00ffcc;
}

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

.skill {
  background: rgba(255,255,255,0.1);
  padding: 20px;
  border-radius: 10px;
}

.skill-bar {
  height: 10px;
  background: rgba(255,255,255,0.2);
  border-radius: 5px;
}

.skill-bar span {
  display: block;
  height: 100%;
  background: #00ffcc;
  width: 0;
  animation: fill 3s forwards;
}

@keyframes fill {
  to { width: var(--level); }
}

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

.project {
  perspective: 1000px;
}

.project-inner {
  height: 200px;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

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

.project-front,
.project-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  backface-visibility: hidden;
}

.project-front {
  background: rgba(255,255,255,0.1);
}

.project-back {
  background: rgba(0,0,0,0.5);
  transform: rotateY(180deg);
  text-align: center;
}

.contact-form {
  max-width: 600px;
  margin: auto;
  background: rgba(255,255,255,0.1);
  padding: 30px;
  border-radius: 15px;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border-radius: 8px;
  border: none;
}

.contact-form button {
  background: #00ffcc;
  padding: 12px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  border: none;
}

.contact-links {
  text-align: center;
  margin-top: 20px;
}

.contact-links a {
  margin: 0 10px;
  color: #00ffcc;
  text-decoration: none;
}

footer {
  text-align: center;
  padding: 20px;
  background: rgba(0,0,0,0.5);
}
