/* ============================
   BACKGROUND - Gradient Mesh
   ============================ */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(ellipse at 20% 20%, var(--color-sky-200) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 30%, var(--color-rose-200) 0%, transparent 45%),
    radial-gradient(ellipse at 40% 80%, var(--color-golden-200) 0%, transparent 50%),
    radial-gradient(ellipse at 90% 90%, var(--color-sky-100) 0%, transparent 40%),
    linear-gradient(180deg, var(--color-cream-50) 0%, var(--color-cream-100) 100%);
  background-attachment: fixed;
}

/* Subtle dot pattern overlay */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(var(--color-sky-300) 0.5px, transparent 0.5px);
  background-size: 24px 24px;
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}

/* ============================
   CONTAINER
   ============================ */
.container {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  gap: 2.5rem;
}

/* ============================
   LOGO SECTION
   ============================ */
.logo-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  animation: fadeInFloat 1s ease-out forwards;
}

.logo {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid white;
  box-shadow: var(--shadow-card), var(--shadow-glow-pink),
    inset 0 0 20px rgba(255, 255, 255, 0.5);
  animation: gentleFloat 4s ease-in-out infinite;
  transition: var(--transition-bounce);
}

.logo:hover {
  transform: scale(1.05) rotate(2deg);
  box-shadow: var(--shadow-hover), var(--shadow-glow-blue),
    inset 0 0 20px rgba(255, 255, 255, 0.5);
}

/* Decorative sparkles around logo */
.logo-wrapper::before,
.logo-wrapper::after {
  position: absolute;
  font-size: 1.2rem;
  color: var(--color-golden-400);
  animation: sparkle 2s ease-in-out infinite;
}

.logo-wrapper::before {
  content: "\2726";
  top: 10%;
  left: -10%;
  animation-delay: 0s;
}

.logo-wrapper::after {
  content: "\2726";
  bottom: 25%;
  right: -8%;
  animation-delay: 1s;
}

/* Site title below logo */
.site-title {
  font-family: "Comfortaa", "Quicksand", sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text-primary);
  letter-spacing: 0.05em;
  text-shadow: 0 2px 10px rgba(138, 180, 206, 0.2);
}

/* ============================
   PROJECTS SECTION
   ============================ */
.projects {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  animation: fadeInUp 0.8s ease-out 0.3s backwards;
}

.project-card {
  position: relative;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(255, 255, 255, 0.7) 100%
  );
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  padding: 2rem;
  max-width: 340px;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
  overflow: hidden;
}

/* Decorative gradient border effect */
.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--color-sky-400),
    var(--color-rose-400),
    var(--color-golden-400)
  );
  border-radius: 20px 20px 0 0;
}

/* Corner decoration */
.project-card::after {
  content: "\1F33F";
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 1.2rem;
  opacity: 0.7;
  transition: var(--transition-bounce);
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.project-card:hover::after {
  transform: rotate(15deg) scale(1.2);
  opacity: 1;
}

.project-card h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, var(--color-sky-500) 0%, var(--color-rose-500) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.project-card p {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  background: linear-gradient(135deg, var(--color-sky-400) 0%, var(--color-sky-500) 100%);
  color: white;
  border-radius: 50px;
  font-family: "Quicksand", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 15px rgba(91, 184, 232, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: var(--transition-bounce);
}

.project-link:hover {
  transform: translateY(-2px) scale(1.02);
  background: linear-gradient(135deg, var(--color-rose-400) 0%, var(--color-rose-500) 100%);
  box-shadow: 0 6px 20px rgba(248, 180, 196, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Arrow icon for link */
.project-link::after {
  content: "\2192";
  transition: transform 0.3s ease;
}

.project-link:hover::after {
  transform: translateX(4px);
}

/* ============================
   FOOTER
   ============================ */
.footer {
  position: relative;
  z-index: 1;
  padding: 2rem;
  text-align: center;
  background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.5) 100%);
  animation: fadeInUp 0.8s ease-out 0.5s backwards;
}

/* Decorative divider */
.footer::before {
  content: "\00b7 \00b7 \00b7";
  display: block;
  margin-bottom: 1rem;
  color: var(--color-text-muted);
  letter-spacing: 0.5em;
  font-size: 0.8rem;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--color-text-secondary);
  font-family: "Quicksand", sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.8);
  transition: var(--transition-smooth);
}

.footer-link:hover {
  color: var(--color-sky-500);
  background: rgba(255, 255, 255, 0.8);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.icon-img {
  display: inline-block;
  transition: var(--transition-smooth);
}

.footer-link:hover .icon-img {
  transform: rotate(-10deg);
}

/* ============================
   ANIMATIONS
   ============================ */

/* Gentle floating animation for logo */
@keyframes gentleFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Sparkle animation */
@keyframes sparkle {
  0%,
  100% {
    opacity: 0.4;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

/* Fade in and float up */
@keyframes fadeInFloat {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fade in up */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================
   RESPONSIVE ADJUSTMENTS
   ============================ */
@media (max-width: 480px) {
  .container {
    padding: 2rem 1.5rem;
  }

  .logo {
    width: 180px;
    height: 180px;
  }

  .site-title {
    font-size: 1.25rem;
  }

  .project-card {
    padding: 1.5rem;
    max-width: 300px;
  }

  .project-card h2 {
    font-size: 1.15rem;
  }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
