* {
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  margin: 0;
  background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
  color: #e0e0e0;
  min-height: 100vh;
  padding: 20px 0;
}

.container {
  max-width: 720px;
  margin: 20px auto;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  padding: 0 0 28px 0;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(19, 118, 255, 0.2);
  overflow: hidden;
  animation: containerSlideUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid rgba(19, 118, 255, 0.3);
}

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

.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 45px 20px 20px 20px;
  background: linear-gradient(135deg, #1376ff 0%, #0d47a1 50%, #062d5c 100%);
  position: relative;
  overflow: hidden;
}

.profile::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15), transparent);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}

.profile::after {
  content: "";
  position: absolute;
  bottom: -40%;
  left: -40%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(19, 118, 255, 0.2), transparent);
  border-radius: 50%;
  animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-30px) translateX(20px); }
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin-bottom: 18px;
  border: 6px solid #1376ff;
  object-fit: cover;
  box-shadow: 0 6px 25px rgba(19, 118, 255, 0.5), 0 0 40px rgba(19, 118, 255, 0.3);
  position: relative;
  z-index: 1;
  animation: avatarPulse 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes avatarPulse {
  0% {
    opacity: 0;
    transform: scale(0.6);
    box-shadow: 0 0 0 0 rgba(19, 118, 255, 0.7);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 6px 25px rgba(19, 118, 255, 0.5), 0 0 40px rgba(19, 118, 255, 0.3);
  }
}

.profile h1 {
  color: #fff;
  margin: 0;
  font-size: 2.3em;
  font-weight: 700;
  position: relative;
  z-index: 1;
  animation: titleGlide 1s ease-out 0.2s both;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

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

.profile h2 {
  color: #a0d8ff;
  margin: 12px 0 0 0;
  font-size: 1.12em;
  letter-spacing: 2px;
  font-weight: 600;
  position: relative;
  z-index: 1;
  animation: titleGlide 1s ease-out 0.3s both;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.tagline {
  margin: 16px 0 0 0;
  color: #e3f2fd;
  font-weight: 500;
  font-size: 1.12em;
  text-align: center;
  position: relative;
  z-index: 1;
  animation: titleGlide 1s ease-out 0.4s both;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}

.tabs {
  display: flex;
  justify-content: center;
  margin: 0;
  border-bottom: 2px solid rgba(19, 118, 255, 0.2);
  flex-wrap: wrap;
  background: rgba(26, 26, 46, 0.5);
  backdrop-filter: blur(10px);
}

.tabs button {
  background: none;
  border: none;
  color: #999;
  font-size: 1em;
  padding: 14px 24px;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  outline: none;
  font-weight: 600;
  position: relative;
  overflow: hidden;
}

.tabs button::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: -100%;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #1376ff, #00d4ff);
  transition: left 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tabs button:hover {
  color: #1376ff;
  background: rgba(19, 118, 255, 0.1);
  transform: translateY(-2px);
}

.tabs button.active {
  color: #1376ff;
  border-bottom: 3px solid #1376ff;
  background: rgba(19, 118, 255, 0.15);
  box-shadow: 0 -3px 12px rgba(19, 118, 255, 0.2);
}

#tab-content {
  padding: 32px 32px 10px 32px;
  min-height: 400px;
  animation: contentFadeIn 0.7s ease-out;
}

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

h3 {
  color: #1376ff;
  font-size: 1.8em;
  margin-top: 0;
  margin-bottom: 20px;
  border-bottom: 3px solid rgba(19, 118, 255, 0.3);
  padding-bottom: 12px;
  animation: sectionTitle 0.6s ease-out;
  text-shadow: 0 2px 8px rgba(19, 118, 255, 0.2);
}

@keyframes sectionTitle {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

p {
  line-height: 1.9;
  color: #b0b0b0;
  animation: fadeInText 0.7s ease-out;
}

@keyframes fadeInText {
  from { opacity: 0; }
  to { opacity: 1; }
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.skills span {
  display: inline-block;
  padding: 8px 16px;
  background: linear-gradient(135deg, rgba(19, 118, 255, 0.2), rgba(0, 212, 255, 0.1));
  color: #00d4ff;
  border: 1px solid rgba(19, 118, 255, 0.4);
  border-radius: 20px;
  font-size: 0.96em;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(19, 118, 255, 0.15);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: skillPop 0.5s ease-out;
  animation-fill-mode: both;
}

.skills span:nth-child(1) { animation-delay: 0.1s; }
.skills span:nth-child(2) { animation-delay: 0.15s; }
.skills span:nth-child(3) { animation-delay: 0.2s; }
.skills span:nth-child(4) { animation-delay: 0.25s; }
.skills span:nth-child(5) { animation-delay: 0.3s; }
.skills span:nth-child(6) { animation-delay: 0.35s; }
.skills span:nth-child(7) { animation-delay: 0.4s; }
.skills span:nth-child(8) { animation-delay: 0.45s; }
.skills span:nth-child(9) { animation-delay: 0.5s; }
.skills span:nth-child(10) { animation-delay: 0.55s; }

@keyframes skillPop {
  from {
    opacity: 0;
    transform: scale(0.7) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.skills span:hover {
  transform: translateY(-5px) scale(1.08);
  box-shadow: 0 6px 18px rgba(19, 118, 255, 0.3);
  background: linear-gradient(135deg, rgba(19, 118, 255, 0.3), rgba(0, 212, 255, 0.2));
}

.project-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}

.project-item {
  background: linear-gradient(135deg, rgba(19, 118, 255, 0.1), rgba(0, 212, 255, 0.05));
  padding: 20px 22px;
  border-left: 5px solid #1376ff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), 0 0 20px rgba(19, 118, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: projectSlide 0.6s ease-out;
  animation-fill-mode: both;
  border: 1px solid rgba(19, 118, 255, 0.2);
}

.project-item:nth-child(1) { animation-delay: 0.1s; }
.project-item:nth-child(2) { animation-delay: 0.2s; }
.project-item:nth-child(3) { animation-delay: 0.3s; }
.project-item:nth-child(4) { animation-delay: 0.4s; }
.project-item:nth-child(5) { animation-delay: 0.5s; }

@keyframes projectSlide {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.project-item:hover {
  transform: translateX(8px) translateY(-3px);
  box-shadow: 0 8px 25px rgba(19, 118, 255, 0.25), 0 0 30px rgba(19, 118, 255, 0.15);
  background: linear-gradient(135deg, rgba(19, 118, 255, 0.15), rgba(0, 212, 255, 0.1));
  border-left: 5px solid #00d4ff;
}

.project-item strong {
  color: #1376ff;
  font-size: 1.1em;
}

.review-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  animation: containerFade 0.5s ease-out;
}

@keyframes containerFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.review-item {
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(255, 107, 53, 0.05));
  padding: 22px 24px;
  border-left: 5px solid #ff6b35;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 107, 53, 0.1);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: reviewBounce 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation-fill-mode: both;
  border: 1px solid rgba(255, 107, 53, 0.2);
  position: relative;
  overflow: hidden;
}

.review-item::before {
  content: "★★★★★";
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.3em;
  color: #ff6b35;
  opacity: 0.25;
  animation: starTwinkle 2s ease-in-out infinite;
}

@keyframes starTwinkle {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 0.45; }
}

.review-item:nth-child(1) { animation-delay: 0.05s; }
.review-item:nth-child(2) { animation-delay: 0.1s; }
.review-item:nth-child(3) { animation-delay: 0.15s; }
.review-item:nth-child(4) { animation-delay: 0.2s; }
.review-item:nth-child(5) { animation-delay: 0.25s; }
.review-item:nth-child(6) { animation-delay: 0.3s; }
.review-item:nth-child(7) { animation-delay: 0.35s; }
.review-item:nth-child(8) { animation-delay: 0.4s; }
.review-item:nth-child(9) { animation-delay: 0.45s; }
.review-item:nth-child(10) { animation-delay: 0.5s; }

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

.review-item:hover {
  transform: translateY(-8px) translateX(5px);
  box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3), 0 0 40px rgba(255, 107, 53, 0.15);
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(255, 107, 53, 0.08));
  border-left: 5px solid #ff9166;
}

.review-text {
  font-style: italic;
  color: #c0c0c0;
  margin: 0 0 12px 0;
  line-height: 1.7;
  font-size: 1.02em;
}

.review-author {
  color: #ff6b35;
  font-weight: 700;
  font-size: 1.05em;
  margin: 0;
}

.review-role {
  color: #ff8a5a;
  font-size: 0.94em;
  font-weight: 500;
  margin: 5px 0 0 0;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  display: grid;
  gap: 14px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  background: linear-gradient(135deg, rgba(19, 118, 255, 0.12), rgba(0, 212, 255, 0.06));
  border-left: 5px solid #1376ff;
  border-radius: 12px;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: contactSlide 0.6s ease-out;
  animation-fill-mode: both;
  border: 1px solid rgba(19, 118, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.contact-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.6s;
}

.contact-item:hover::before {
  left: 100%;
}

.contact-item:nth-child(1) { animation-delay: 0.1s; }
.contact-item:nth-child(2) { animation-delay: 0.2s; }

@keyframes contactSlide {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.contact-item:hover {
  transform: translateX(10px) translateY(-3px);
  box-shadow: 0 6px 20px rgba(19, 118, 255, 0.25);
  background: linear-gradient(135deg, rgba(19, 118, 255, 0.18), rgba(0, 212, 255, 0.1));
  border-left: 5px solid #00d4ff;
}

.contact-item strong {
  color: #1376ff;
  font-size: 1.06em;
  min-width: 95px;
}

.contact-item span {
  color: #b0b0b0;
  font-weight: 500;
}

.contact-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  background: linear-gradient(135deg, #1376ff 0%, #00d4ff 100%);
  color: #fff;
  border: none;
  border-radius: 25px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 6px 20px rgba(19, 118, 255, 0.35), 0 0 20px rgba(0, 212, 255, 0.2);
  position: relative;
  overflow: hidden;
  animation: btnPop 0.6s ease-out;
  animation-fill-mode: both;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-btn:nth-child(1) { animation-delay: 0.1s; }
.contact-btn:nth-child(2) { animation-delay: 0.2s; }

@keyframes btnPop {
  from {
    opacity: 0;
    transform: translateY(25px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.contact-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.7s, height 0.7s;
}

.contact-btn:active::before {
  width: 300px;
  height: 300px;
}

.contact-btn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 10px 30px rgba(19, 118, 255, 0.45), 0 0 30px rgba(0, 212, 255, 0.3);
}

.contact-btn:active {
  transform: translateY(-1px) scale(1.02);
}

footer {
  margin-top: 30px;
  padding: 20px 0 0 0;
  color: #777;
  font-size: 0.96em;
  text-align: center;
  border-top: 1px solid rgba(19, 118, 255, 0.15);
  animation: slideUp 1s ease-out 0.5s both;
}

footer a {
  color: #1376ff;
  text-decoration: none;
  transition: color 0.3s;
}

footer a:hover {
  color: #00d4ff;
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

@media (max-width: 760px) {
  .container {
    max-width: 95vw;
    margin: 15px auto;
  }
  #tab-content {
    padding: 24px 20px 10px 20px;
    min-height: 350px;
  }
  .tabs button {
    font-size: 0.9em;
    padding: 12px 14px;
  }
  .profile h1 {
    font-size: 1.8em;
  }
  .profile h2 {
    font-size: 0.95em;
  }
  .contact-links {
    flex-direction: column;
  }
  .contact-btn {
    width: 100%;
  }
  .review-item::before {
    font-size: 1.1em;
  }
  h3 {
    font-size: 1.5em;
  }
}