* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: linear-gradient(135deg, #0057B7 0%, #0066CC 50%, #6B46C1 100%);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 50%, rgba(107, 70, 193, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(0, 102, 204, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(255, 215, 0, 0.15) 0%, transparent 50%);
  animation: bgShift 20s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes bgShift {
  0%, 100% { opacity: 0.6; transform: scale(1) rotate(0deg); }
  50% { opacity: 0.9; transform: scale(1.1) rotate(5deg); }
}

.app-container {
  position: relative;
  min-height: 100vh;
  padding: 3rem 1.5rem;
  z-index: 1;
}

.content-wrapper {
  max-width: 640px;
  margin: 0 auto;
  animation: fadeIn 0.8s ease-out;
}

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

.hero-section {
  text-align: center;
  margin-bottom: 3.5rem;
  animation: fadeIn 1s ease-out 0.2s backwards;
}

.avatar-container {
  position: relative;
  display: inline-block;
  margin-bottom: 2rem;
}

.avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 5px solid white;
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.25),
    0 0 0 10px rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 2;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.avatar:hover {
  transform: scale(1.05);
}

.avatar-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.5), rgba(255, 215, 0, 0.2), transparent);
  border-radius: 50%;
  animation: pulse 3s ease-in-out infinite;
  z-index: 1;
  filter: blur(8px);
}

@keyframes pulse {
  0%, 100% { 
    transform: translate(-50%, -50%) scale(1); 
    opacity: 0.6; 
  }
  50% { 
    transform: translate(-50%, -50%) scale(1.3); 
    opacity: 0.9; 
  }
}

.main-title {
  font-size: 2.75rem;
  font-weight: 900;
  color: white;
  margin-bottom: 0.75rem;
  text-shadow: 
    0 2px 20px rgba(0, 0, 0, 0.4),
    0 4px 40px rgba(0, 0, 0, 0.2);
  letter-spacing: -1px;
  line-height: 1.1;
}

.tagline {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
  font-weight: 400;
}

.days-counter {
  margin-top: 2rem;
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(20px);
  border-radius: 100px;
  display: inline-block;
  color: white;
  font-weight: 600;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 
    0 8px 24px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.days-counter:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 12px 32px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.counter-number {
  font-size: 1.75rem;
  font-weight: 900;
  color: #FFD700;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.link-section {
  margin-bottom: 3rem;
  animation: fadeIn 1s ease-out backwards;
}

.link-section:nth-child(2) { animation-delay: 0.4s; }
.link-section:nth-child(3) { animation-delay: 0.5s; }
.link-section:nth-child(4) { animation-delay: 0.6s; }

.section-header {
  font-size: 1.65rem;
  font-weight: 800;
  color: white;
  margin-bottom: 1.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-shadow: 0 3px 15px rgba(0, 0, 0, 0.3);
}

.section-emoji {
  font-size: 2rem;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

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

.link-btn {
  background: white;
  border: none;
  border-radius: 20px;
  padding: 1.4rem 1.75rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 6px 20px rgba(0, 0, 0, 0.12),
    0 2px 8px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.link-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.link-btn:hover::before {
  left: 100%;
}

.link-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.08), rgba(107, 70, 193, 0.08));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.link-btn:hover::after {
  opacity: 1;
}

.link-btn:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 
    0 12px 32px rgba(0, 0, 0, 0.18),
    0 4px 12px rgba(0, 0, 0, 0.12);
}

.link-btn:active {
  transform: translateY(-2px) scale(0.99);
}

.link-btn-primary {
  background: linear-gradient(135deg, #0066CC 0%, #6B46C1 100%);
  color: white;
  font-weight: 700;
  box-shadow: 
    0 8px 24px rgba(107, 70, 193, 0.3),
    0 4px 12px rgba(0, 102, 204, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.link-btn-primary:hover {
  box-shadow: 
    0 14px 36px rgba(107, 70, 193, 0.4),
    0 6px 16px rgba(0, 102, 204, 0.3);
}

.link-btn-primary .link-text {
  color: white;
}

.link-btn-primary .link-icon {
  font-size: 2rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.link-btn-primary .link-arrow {
  color: rgba(255, 255, 255, 0.9);
}

.link-icon {
  font-size: 1.65rem;
  flex-shrink: 0;
  z-index: 1;
  transition: transform 0.3s ease;
}

.link-btn:hover .link-icon {
  transform: scale(1.1);
}

.link-text {
  flex: 1;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 600;
  color: #2D3748;
  z-index: 1;
}

.link-arrow {
  color: #6B46C1;
  font-weight: 800;
  font-size: 1.3rem;
  transition: transform 0.4s ease;
  z-index: 1;
}

.link-btn:hover .link-arrow {
  transform: translateX(6px);
}

.stats-container {
  margin: 2.5rem 0;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  animation: fadeIn 1s ease-out 0.7s backwards;
  transition: transform 0.3s ease;
}

.stats-container:hover {
  transform: translateY(-4px);
}

.stat {
  text-align: center;
  color: white;
}

.stat-number {
  font-size: 3rem;
  font-weight: 900;
  color: #FFD700;
  text-shadow: 
    0 3px 15px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(255, 215, 0, 0.4);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  opacity: 0.95;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.footer {
  text-align: center;
  padding: 2.5rem 0;
  color: white;
  animation: fadeIn 1s ease-out 0.8s backwards;
}

.footer-flags {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
  animation: floatFlags 3s ease-in-out infinite;
}

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

.footer-support {
  font-size: 1rem;
  margin-bottom: 1.25rem;
  opacity: 0.95;
  font-weight: 500;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.footer-link {
  display: inline-block;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  transition: all 0.4s ease;
  border: 2px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  font-weight: 500;
}

.footer-link:hover {
  background: rgba(255, 255, 255, 0.25);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
}

.confetti-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1000;
}

.confetti {
  position: absolute;
  width: 12px;
  height: 12px;
  top: -20px;
  animation: confettiFall 2.5s ease-out forwards;
  border-radius: 2px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

@keyframes confettiFall {
  to {
    transform: translateY(110vh) rotate(1080deg);
    opacity: 0;
  }
}

@media (max-width: 640px) {
  .app-container {
    padding: 2rem 1rem;
  }

  .main-title {
    font-size: 2.25rem;
  }
  
  .tagline {
    font-size: 1rem;
  }
  
  .avatar {
    width: 110px;
    height: 110px;
  }
  
  .avatar-glow {
    width: 130px;
    height: 130px;
  }
  
  .link-btn {
    padding: 1.25rem 1.5rem;
  }
  
  .section-header {
    font-size: 1.4rem;
  }

  .days-counter {
    padding: 0.85rem 1.5rem;
  }

  .counter-number {
    font-size: 1.5rem;
  }

  .stat-number {
    font-size: 2.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
  
  .avatar-glow {
    animation: none !important;
    opacity: 0.6;
  }
}