/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Colors (HSL format) */
  --background: hsl(0, 0%, 7%);
  --foreground: hsl(0, 0%, 95%);

  --card: hsl(0, 0%, 12%);
  --card-foreground: hsl(0, 0%, 95%);

  --primary: hsl(174, 100%, 42%);
  --primary-foreground: hsl(0, 0%, 100%);
  --primary-glow: hsl(174, 100%, 52%);
  --primary-dark: hsl(174, 100%, 32%);

  --muted-foreground: hsl(0, 0%, 60%);

  --border: hsl(0, 0%, 20%);

  /* Gradients */
  --gradient-primary: linear-gradient(
    135deg,
    hsl(174, 100%, 32%),
    hsl(174, 100%, 52%)
  );
  --gradient-hero: linear-gradient(
    135deg,
    hsl(174, 100%, 15%) 0%,
    hsl(0, 0%, 7%) 100%
  );

  /* Shadows */
  --shadow-glow: 0 0 40px hsla(174, 100%, 42%, 0.3);
  --shadow-primary: 0 10px 30px hsla(174, 100%, 42%, 0.2);

  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Border Radius */
  --radius: 0.75rem;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  min-height: 100vh;
  padding-top: 50px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header Notice */
.header-notice {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border);
  background: hsla(0, 0%, 12%, 0.9);
  backdrop-filter: blur(12px);
}

.notice-text {
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  padding: 0.75rem 0;
}

/* Main Content */
.main-content {
  padding: 0px;
}

/* Hero Section */
.hero-section {
  margin-bottom: 2rem;
}

.hero-background {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid hsla(0, 0%, 20%, 0.5);
  background: var(--gradient-hero);
  background-image: linear-gradient(
      135deg,
      rgba(0, 210, 190, 0.1) 0%,
      rgba(18, 18, 18, 0.95) 100%
    ),
    url('../img/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-primary);
  padding: 1.5rem;
}

@media (min-width: 640px) {
  .hero-background {
    padding: 3rem;
  }
}

@media (min-width: 1024px) {
  .hero-background {
    padding: 4rem;
  }
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
}
.hero-logo {
  width: 140px;
}
@media (min-width: 640px) {
  .hero-logo {
    width: 184px;
  }
}
.hero-title {
  font-size: 1.75rem;
  font-weight: bold;
  color: var(--foreground);
  letter-spacing: 8px;
  margin-left: 8px;
}

/* @media (min-width: 640px) {
  .hero-title {
    font-size: 1.75rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 3.75rem;
  }
} */

.hero-url {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--primary);
}

@media (min-width: 640px) {
  .hero-url {
    font-size: 1.5rem;
  }
}

.hero-description {
  font-size: 1rem;
  color: var(--muted-foreground);
}

@media (min-width: 640px) {
  .hero-description {
    font-size: 1.125rem;
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent,
    transparent,
    hsla(0, 0%, 7%, 0.3)
  );
}

/* Links Section */
.links-section {
  max-width: 48rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.link-card {
  display: block;
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  transition: var(--transition-smooth);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.link-card:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-glow);
  border-color: hsla(174, 100%, 42%, 0.5);
}

.link-card.primary {
  background: var(--gradient-primary);
  border-color: var(--primary);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-primary);
}

.link-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  position: relative;
}

@media (min-width: 640px) {
  .link-content {
    padding: 1.25rem;
  }
}

.link-info {
  flex: 1;
  min-width: 0;
}

.link-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 640px) {
  .link-title {
    font-size: 1.125rem;
  }
}

.link-card.primary .link-title {
  color: var(--primary-foreground);
}

.link-description {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.link-card.primary .link-description {
  color: hsla(0, 0%, 100%, 0.8);
}

.link-url {
  font-size: 0.75rem;
  color: var(--primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link-card.primary .link-url {
  color: hsla(0, 0%, 100%, 0.6);
}

/* Copy Button Styles */
.copy-btn {
  margin-left: 0.75rem;
  flex-shrink: 0;
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.copy-btn:hover {
  background: hsla(174, 100%, 42%, 0.1);
  transform: scale(1.1);
}

.copy-btn:active {
  transform: scale(0.95);
}

.link-card.primary .copy-btn {
  color: var(--primary-foreground);
}

.link-card.primary .copy-btn:hover {
  background: hsla(0, 0%, 100%, 0.1);
}

/* Copy Feedback Styles - Enhanced with Particle Effects */
.copy-feedback {
  position: absolute;
  top: -45px;
  right: 10px;
  background: linear-gradient(135deg, #00d2be, #00f5e4);
  color: #000000;
  padding: 0.6rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  z-index: 1000;
  opacity: 0;
  transform: translateY(10px) scale(0.8);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(0, 210, 190, 0.5), 0 0 0 0 rgba(0, 245, 228, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.4);
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

.copy-feedback.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  animation: copySuccessAnimation 0.6s ease-out, pulseGlow 2s ease-in-out;
}

.copy-feedback.error {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.6);
}

/* Particle Container */
.particle-container {
  position: absolute;
  width: 1px;
  height: 1px;
  pointer-events: none;
  z-index: 1001;
  transform: translate(-50%, -50%);
}

/* Individual Particles */
.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
}

.particle.burst {
  animation: particleBurst 1.2s ease-out forwards;
}

/* Keyframe Animations */
@keyframes copySuccessAnimation {
  0% {
    transform: translateY(10px) scale(0.8);
    opacity: 0;
  }
  50% {
    transform: translateY(-5px) scale(1.1);
    opacity: 1;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes pulseGlow {
  0%,
  100% {
    box-shadow: 0 4px 20px rgba(0, 210, 190, 0.5),
      0 0 0 0 rgba(0, 245, 228, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  }
  50% {
    box-shadow: 0 4px 30px rgba(0, 210, 190, 0.7),
      0 0 0 8px rgba(0, 245, 228, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  }
}

@keyframes particleBurst {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(var(--dx), var(--dy)) scale(0);
  }
}

/* Sparkle Effect */
.sparkle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: linear-gradient(45deg, #fff, var(--primary-glow));
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  z-index: 1002;
  transform: translate(-50%, -50%);
}

.sparkle.animate {
  animation: sparkleAnimation 1s ease-out forwards;
}

@keyframes sparkleAnimation {
  0% {
    opacity: 0;
    transform: scale(0) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: scale(1) rotate(180deg);
  }
  100% {
    opacity: 0;
    transform: scale(0) rotate(360deg);
  }
}

/* Ripple Effect */
.ripple {
  position: absolute;
  border: 2px solid var(--primary);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  z-index: 999;
  transform: translate(-50%, -50%);
}

.ripple.animate {
  animation: rippleAnimation 0.8s ease-out forwards;
}

@keyframes rippleAnimation {
  0% {
    width: 0;
    height: 0;
    opacity: 0.8;
  }
  100% {
    width: 60px;
    height: 60px;
    opacity: 0;
  }
}

/* Link Card Position */
.link-card {
  position: relative;
}

/* Contact Section */
.contact-section {
  margin-top: 3rem;
}

@media (min-width: 640px) {
  .contact-section {
    margin-top: 4rem;
  }
}

.contact-card {
  max-width: 48rem;
  margin: 0 auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1.5rem;
  text-align: center;
}

@media (min-width: 640px) {
  .contact-card {
    padding: 2rem;
  }
}

.contact-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

@media (min-width: 640px) {
  .contact-title {
    font-size: 1.25rem;
  }
}

.contact-text {
  color: var(--muted-foreground);
}

.contact-email {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: var(--transition-smooth);
}

.contact-email:hover {
  color: var(--primary-glow);
}

/* Social Section */
.social-section {
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .social-section {
    margin-top: 3rem;
  }
}

.social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 0 auto;
}

@media (min-width: 480px) {
  .social-links {
    gap: 1.25rem;
  }
}

@media (min-width: 640px) {
  .social-links {
    gap: 1.5rem;
  }
}

.social-icon-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--muted-foreground);
  text-decoration: none;
  transition: var(--transition-smooth);
  cursor: pointer;
}

@media (min-width: 640px) {
  .social-icon-link {
    width: 2.75rem;
    height: 2.75rem;
  }
}

.social-icon-link:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-foreground);
  transform: scale(1.1);
  box-shadow: var(--shadow-glow);
}

.social-icon {
  width: 1.25rem;
  height: 1.25rem;
  transition: var(--transition-smooth);
}

/* Footer */
.footer {
  margin-top: 4rem;
  border-top: 1px solid var(--border);
  background: hsla(0, 0%, 12%, 0.3);
  backdrop-filter: blur(8px);
}

.footer-text {
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  padding: 1.5rem 0;
}

@media (min-width: 640px) {
  .footer-text {
    padding: 2rem 0;
  }
}

.footer-brand {
  font-weight: 600;
  color: var(--foreground);
}

.mobile-break {
  display: block;
}

@media (min-width: 640px) {
  .mobile-break {
    display: none;
  }
}

.desktop-separator {
  display: none;
}

@media (min-width: 640px) {
  .desktop-separator {
    display: inline;
  }
}

.footer-link {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.footer-link:hover {
  color: var(--primary-glow);
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .container {
    padding: 0 0.75rem;
  }

  .hero-background {
    border-radius: 0.75rem;
    padding: 1rem;
  }

  /* .hero-title {
    font-size: 2rem;
  } */

  .hero-url {
    font-size: 1.125rem;
  }

  .hero-description {
    font-size: 0.9rem;
    line-height: 1.4;
  }

  .link-content {
    padding: 0.875rem;
  }

  .contact-card {
    padding: 1.25rem;
  }
}
