/* gimme.pet Custom Home Styles - Catppuccin Mocha Integration */

@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&family=Urbanist:wght@300;400;600;800&display=swap');

/* Use Catppuccin colors from existing theme */
:root {
  --custom-font-display: 'Urbanist', sans-serif;
  --custom-font-mono: 'Space Mono', monospace;
}

.custom-home-wrapper {
  background: var(--color-body) !important;
  min-height: 100vh;
  padding: 3rem 1.5rem !important;
  position: relative;
  overflow: hidden;
}

/* Animated background gradient mesh using Catppuccin colors */
.custom-home-wrapper::before {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(circle at 20% 50%, rgba(203, 166, 247, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(137, 220, 235, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(166, 227, 161, 0.05) 0%, transparent 50%);
  animation: meshRotate 20s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes meshRotate {
  0%, 100% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.1); }
}

/* Grain texture overlay */
.custom-home-wrapper::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
  z-index: 1;
}

.custom-home-container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
}

/* Floating :3 */
.floating-emoticon {
  position: fixed;
  top: 2rem;
  right: 2rem;
  font-size: 3rem;
  font-family: var(--custom-font-mono);
  color: var(--color-pink);
  animation: floatBounce 3s ease-in-out infinite;
  text-shadow: 0 0 20px rgba(245, 194, 231, 0.4);
  opacity: 0.6;
  z-index: 100;
  cursor: default;
  user-select: none;
}

@keyframes floatBounce {
  0%, 100% { transform: translateY(0px) rotate(-5deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

/* Hero Section */
.hero-section {
  text-align: center;
  margin-bottom: 5rem;
  animation: fadeInUp 1s ease-out;
}

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

/* Paw Logo */
.logo-container {
  margin: 0 auto 2rem;
  width: 150px;
  height: 150px;
  animation: scaleIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes scaleIn {
  from {
    transform: scale(0) rotate(-180deg);
    opacity: 0;
  }
  to {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

.paw-logo {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 20px rgba(203, 166, 247, 0.3));
}

.paw-main {
  fill: var(--color-purple);
  animation: pulse 2s ease-in-out infinite;
}

.paw-toe {
  fill: var(--color-teal);
  animation: pawPulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

@keyframes pawPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.95); opacity: 0.8; }
}

.terminal-cursor {
  fill: var(--color-green);
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}

/* Site Title with Glitch Effect */
.site-title {
  font-family: var(--custom-font-display);
  font-size: 5rem;
  font-weight: 800;
  color: var(--color-text);
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
  line-height: 1;
  animation: fadeInUp 1s ease-out 0.2s backwards;
}

.glitch {
  position: relative;
  display: inline-block;
}

.glitch:hover::before,
.glitch:hover::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

.glitch:hover::before {
  animation: glitch1 0.3s infinite;
  color: var(--color-pink);
  z-index: -1;
}

.glitch:hover::after {
  animation: glitch2 0.3s infinite;
  color: var(--color-teal);
  z-index: -2;
}

@keyframes glitch1 {
  0% { transform: translate(0); }
  20% { transform: translate(-3px, 3px); }
  40% { transform: translate(-3px, -3px); }
  60% { transform: translate(3px, 3px); }
  80% { transform: translate(3px, -3px); }
  100% { transform: translate(0); }
}

@keyframes glitch2 {
  0% { transform: translate(0); }
  20% { transform: translate(3px, -3px); }
  40% { transform: translate(3px, 3px); }
  60% { transform: translate(-3px, -3px); }
  80% { transform: translate(-3px, 3px); }
  100% { transform: translate(0); }
}

/* Tagline */
.tagline {
  font-family: var(--custom-font-mono);
  font-size: 1.25rem;
  color: var(--color-text-light);
  margin: 0 0 2rem;
  animation: fadeInUp 1s ease-out 0.4s backwards;
}

.uwu-text {
  color: var(--color-pink);
  font-weight: 700;
  display: inline-block;
  animation: wiggle 2s ease-in-out infinite;
}

@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-5deg); }
  75% { transform: rotate(5deg); }
}

.sparkle {
  display: inline-block;
  animation: sparkle 1.5s ease-in-out infinite;
}

@keyframes sparkle {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
  50% { transform: scale(1.3) rotate(180deg); opacity: 0.7; }
}

/* Tech Badges */
.tech-badges {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease-out 0.6s backwards;
}

.badge {
  font-family: var(--custom-font-mono);
  font-size: 0.75rem;
  padding: 0.5rem 1rem;
  background: var(--color-box-body);
  border: 1px solid var(--color-purple);
  border-radius: 20px;
  color: var(--color-text);
  text-transform: lowercase;
  transition: all 0.3s ease;
  animation: slideInStagger 0.5s ease-out backwards;
}

.badge:nth-child(1) { animation-delay: 0.7s; }
.badge:nth-child(2) { animation-delay: 0.8s; }
.badge:nth-child(3) { animation-delay: 0.9s; }
.badge:nth-child(4) { animation-delay: 1s; }

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

.badge:hover {
  background: var(--color-purple);
  border-color: var(--color-purple);
  color: var(--color-primary-contrast);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(203, 166, 247, 0.4);
}

/* Section Titles */
.section-title {
  font-family: var(--custom-font-mono);
  font-size: 1.5rem;
  color: var(--color-text);
  margin: 0 0 2rem;
  text-align: center;
  font-weight: 400;
}

.bracket {
  color: var(--color-teal);
  font-weight: 700;
}

.typing-text {
  color: var(--color-text);
  position: relative;
}

/* Announcements */
.announcements-section {
  margin-bottom: 4rem;
  animation: fadeInUp 1s ease-out 0.8s backwards;
}

.announcement-box {
  background: linear-gradient(135deg, rgba(203, 166, 247, 0.08), rgba(137, 220, 235, 0.05));
  border: 1px solid var(--color-purple);
  border-radius: 12px;
  padding: 2rem;
  backdrop-filter: blur(10px);
}

.announcement-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  font-family: var(--custom-font-display);
  color: var(--color-text);
  line-height: 1.6;
}

.announcement-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.announcement-text {
  font-size: 1.1rem;
  font-weight: 300;
}

/* Recent Projects */
.recent-projects {
  margin-bottom: 4rem;
  animation: fadeInUp 1s ease-out 1s backwards;
}

.repo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.repo-card {
  background: var(--color-card);
  border: 1px solid var(--color-secondary);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  gap: 1rem;
  text-decoration: none;
  color: var(--color-text);
  position: relative;
  overflow: hidden;
}

.repo-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(203, 166, 247, 0.1), rgba(137, 220, 235, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.repo-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-purple);
  box-shadow: 0 0 20px rgba(203, 166, 247, 0.3);
}

.repo-card:hover::before {
  opacity: 1;
}

.repo-icon {
  font-size: 2rem;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.repo-card:hover .repo-icon {
  transform: scale(1.2) rotate(5deg);
}

.repo-info {
  flex: 1;
  position: relative;
}

.repo-name {
  font-family: var(--custom-font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-teal);
  margin: 0 0 0.5rem;
}

.repo-description {
  font-family: var(--custom-font-display);
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin: 0 0 1rem;
  line-height: 1.5;
}

.repo-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  font-family: var(--custom-font-mono);
  font-size: 0.75rem;
  color: var(--color-text-light);
}

.language {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.language-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

/* CTA Section */
.cta-section {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 4rem 0;
  animation: fadeInUp 1s ease-out 1.2s backwards;
}

.cta-button {
  font-family: var(--custom-font-mono) !important;
  font-size: 1.1rem !important;
  padding: 1.2rem 2.5rem !important;
  border-radius: 30px !important;
  font-weight: 700 !important;
  text-transform: lowercase !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative !important;
  overflow: hidden !important;
  border: 2px solid var(--color-purple) !important;
}

.cta-button.primary {
  background: var(--color-purple) !important;
  color: var(--color-primary-contrast) !important;
}

.cta-button.secondary {
  background: transparent !important;
  color: var(--color-purple) !important;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.cta-button:hover::before {
  width: 300px;
  height: 300px;
}

.cta-button:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 0 20px rgba(203, 166, 247, 0.4) !important;
}

.button-text {
  position: relative;
  z-index: 1;
}

.button-suffix {
  margin-left: 0.5rem;
  font-size: 0.9em;
  opacity: 0.8;
  position: relative;
  z-index: 1;
}

/* Footer */
.footer-text {
  text-align: center;
  margin-top: 4rem;
  font-family: var(--custom-font-mono);
  color: var(--color-text-light);
  font-size: 0.85rem;
  animation: fadeInUp 1s ease-out 1.4s backwards;
}

.footer-text p {
  margin: 0.5rem 0;
}

.footer-text a {
  color: var(--color-teal);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-text a:hover {
  color: var(--color-purple);
}

.smol-text {
  font-size: 0.75rem;
  opacity: 0.6;
}

/* Responsive Design */
@media (max-width: 768px) {
  .site-title {
    font-size: 3rem;
  }
  
  .floating-emoticon {
    font-size: 2rem;
    top: 1rem;
    right: 1rem;
  }
  
  .logo-container {
    width: 100px;
    height: 100px;
  }
  
  .repo-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-section {
    flex-direction: column;
    align-items: stretch;
  }
  
  .tech-badges {
    font-size: 0.7rem;
  }
}
