/* ===== Hero Section ===== */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 8rem 5rem 5rem;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(123, 45, 142, 0.15), transparent 70%);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}

.hero-content { position: relative; z-index: 2; }

.hero-tag {
  display: inline-block;
  padding: 0.4rem 1.2rem;
  border: 1px solid var(--accent);
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero h1 .highlight {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.15rem;
  color: rgba(240, 240, 240, 0.7);
  max-width: 480px;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Hero Visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.avatar-shape {
  width: 380px;
  height: 380px;
  position: relative;
}

.avatar-shape .blob {
  position: absolute;
  inset: 0;
  background: var(--gradient-1);
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  animation: morph 8s ease-in-out infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.avatar-shape .blob img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-shape .ring {
  position: absolute;
  inset: -20px;
  border: 2px solid rgba(0, 212, 170, 0.3);
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  animation: morph 8s ease-in-out infinite reverse;
}

.floating-tag {
  position: absolute;
  padding: 0.6rem 1.2rem;
  background: rgba(26, 26, 46, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  font-size: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;
}

.floating-tag:nth-child(2) { top: 10%; right: -30px; animation: float 4s ease-in-out infinite; }
.floating-tag:nth-child(3) { bottom: 15%; left: -40px; animation: float 5s ease-in-out infinite 1s; }
.floating-tag:nth-child(4) { top: 50%; right: -50px; animation: float 6s ease-in-out infinite 2s; }

/* ===== Skills Section ===== */
#skills { background: rgba(255, 255, 255, 0.02); }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.skill-card {
  padding: 2rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-1);
  transform: scaleX(0);
  transition: transform 0.4s;
}

.skill-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 107, 53, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.skill-card:hover::before { transform: scaleX(1); }

.skill-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
}

.skill-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  font-weight: 700;
}

.skill-card p {
  font-size: 0.9rem;
  color: rgba(240, 240, 240, 0.6);
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

/* ===== Gallery Section ===== */
#gallery { background: rgba(255, 255, 255, 0.02); }

.gallery-masonry {
  columns: 3;
  column-gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 1.5rem;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s;
}

.gallery-item:hover { transform: scale(1.02); }

.gallery-item .color-bg {
  width: 100%;
  display: block;
}

.gallery-item .gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 26, 46, 0.9), transparent);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-overlay h4 { font-size: 1rem; margin-bottom: 0.3rem; }
.gallery-overlay p { font-size: 0.8rem; color: rgba(240, 240, 240, 0.7); }

/* ===== Contact Section ===== */
.contact-container {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.contact-info p {
  color: rgba(240, 240, 240, 0.6);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.contact-links { display: flex; flex-direction: column; gap: 1rem; }

.contact-links a {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--light);
  text-decoration: none;
  padding: 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.3s;
}

.contact-links a:hover {
  border-color: var(--accent);
  transform: translateX(5px);
}

.contact-links .icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-links .text strong { display: block; font-size: 0.9rem; }
.contact-links .text span { font-size: 0.8rem; color: rgba(240, 240, 240, 0.5); }

.contact-form { display: flex; flex-direction: column; gap: 1rem; }

.contact-form input,
.contact-form textarea {
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: var(--light);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.3s;
  outline: none;
}

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

.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form .btn-primary { align-self: flex-start; }

/* ===== QR Section ===== */
.qr-section {
  max-width: 1200px;
  margin: 3rem auto 0;
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.qr-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 2.5rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.3s;
}

.qr-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 107, 53, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.qr-card .qr-img {
  width: 160px;
  height: 160px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  overflow: hidden;
}

.qr-card .qr-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
}

.qr-card .qr-label {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.qr-card .qr-desc {
  font-size: 0.8rem;
  color: rgba(240, 240, 240, 0.5);
}

/* ===== Index Responsive ===== */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 7rem 2rem 3rem;
    text-align: center;
  }
  .hero p { margin: 0 auto 2.5rem; }
  .hero-buttons { justify-content: center; }
  .hero-visual { order: -1; }
  .avatar-shape { width: 250px; height: 250px; }
  .gallery-masonry { columns: 2; }
  .contact-container { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .gallery-masonry { columns: 1; }
  .floating-tag { display: none; }
}
