* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  position: relative;
}

/* Matrix canvas background */
#matrix-canvas {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 0;
  opacity: 0.3;
}

.floating-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.shape {
  position: absolute;
  opacity: 0.1;
  animation: float 20s infinite ease-in-out;
}

.shape:nth-child(1) {
  width: 80px;
  height: 80px;
  background: white;
  border-radius: 50%;
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.shape:nth-child(2) {
  width: 60px;
  height: 60px;
  background: white;
  border-radius: 30%;
  top: 60%;
  left: 80%;
  animation-delay: 2s;
}

.shape:nth-child(3) {
  width: 100px;
  height: 100px;
  background: white;
  border-radius: 50%;
  top: 80%;
  left: 20%;
  animation-delay: 4s;
}

.code-bracket {
  font-size: 48px;
  font-weight: bold;
  color: white;
  background: transparent !important;
  width: auto !important;
  height: auto !important;
  font-family: "Courier New", monospace;
}

.shape:nth-child(4) {
  top: 30%;
  right: 15%;
  animation-delay: 1s;
}

.shape:nth-child(5) {
  top: 70%;
  left: 60%;
  animation-delay: 3s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-30px) rotate(180deg);
  }
}

.container {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 60px 20px 40px;
  max-width: 550px;
  width: 90%;
  animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.logo {
  padding: 20px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

/* Horizontal scan line */
.logo::before {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, transparent, #25d366, transparent);
  animation: scanHorizontal 10s ease-in-out infinite;
  z-index: 10;
}

/* Vertical scan line */
.logo::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, transparent, #25d366, transparent);
  animation: scanVertical 10s ease-in-out infinite;
  z-index: 10;
  box-shadow: 0 0 10px #25d366;
}

.logo img {
  width: 250px;
  filter: drop-shadow(0 0 15px rgba(102, 126, 234, 0.3));
  animation: gentleFloat 4s ease-in-out infinite, logoEraseReveal 10s ease-in-out infinite;
  transition: all 0.4s ease;
}

.logo:hover img {
  filter: drop-shadow(0 0 25px rgba(102, 126, 234, 0.7));
  transform: scale(1.08);
  animation-play-state: paused; /* Pause animation on hover */
}

/* Horizontal scan animation */
@keyframes scanHorizontal {
  0%, 100% {
    top: -100%;
    opacity: 1;
  }
  20% {
    top: 100%;
    opacity: 1;
  }
  25%, 100% {
    top: 100%;
    opacity: 0;
  }
}

/* Vertical scan animation */
@keyframes scanVertical {
  0%, 25% {
    left: -100%;
    opacity: 0;
  }
  30% {
    left: -10%;
    opacity: 1;
  }
  45% {
    left: 110%;
    opacity: 1;
  }
  50% {
    left: -10%;
    opacity: 1;
  }
  65% {
    left: 110%;
    opacity: 1;
  }
  70%, 100% {
    left: 110%;
    opacity: 0;
  }
}

/* Logo erase and reveal animation */
@keyframes logoEraseReveal {
  0%, 30% {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
  /* Erase phase - right to left */
  45% {
    clip-path: inset(0 0 0 100%);
    opacity: 1;
  }
  49% {
    clip-path: inset(0 0 0 100%);
    opacity: 0.3;
  }
  /* Reveal phase - right to left */
  50% {
    clip-path: inset(0 100% 0 0);
    opacity: 0.3;
  }
  65% {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
  70%, 100% {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
}

/* Gentle float */
@keyframes gentleFloat {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Glitch text effect */
.glitch-text {
  color: white;
  font-size: 36px;
  margin-bottom: 10px;
  font-weight: 700;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
  letter-spacing: -0.5px;
  position: relative;
  cursor: pointer;
  user-select: none;
}

.subtitle {
  color: rgba(255, 255, 255, 0.95);
  font-size: 17px;
  margin-bottom: 20px;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2);
  font-weight: 500;
}

.tech-joke {
  font-family: "Courier New", monospace;
  color: #25d366;
  font-size: 14px;
  font-weight: bold;
  display: inline-block;
  margin-bottom: 5px;
  animation: slideInRight 1s ease-out;
}

/* Status message with rotating text */
.status-message {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 10px 20px;
  border-radius: 20px;
  margin-bottom: 25px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: fadeIn 1s ease-out 0.5s both;
}

.status-icon {
  font-size: 18px;
  animation: spin 3s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.rotating-status {
  color: white;
  font-size: 14px;
  font-weight: 600;
  transition: opacity 0.5s ease;
}

.value-props {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 35px;
  flex-wrap: wrap;
  animation: fadeIn 1s ease-out 0.3s both;
}

.prop {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 12px 20px;
  border-radius: 25px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
}

.prop:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-3px) scale(1.05);
}

.prop:active {
  transform: translateY(-1px) scale(1.02);
}

.prop-icon {
  font-size: 20px;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.prop-text {
  color: white;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.links-container {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.link-btn {
  background: white;
  color: #667eea;
  text-decoration: none;
  padding: 22px 30px;
  border-radius: 15px;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
  font-family: "Courier New", monospace;
}

.link-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(102, 126, 234, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.link-btn:hover::before {
  left: 100%;
}

.link-btn:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.link-btn:active {
  transform: translateY(-2px) scale(0.98);
}

.icon {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.website-btn {
  animation: slideInLeft 0.8s ease-out 0.5s both;
}

.whatsapp-btn {
  animation: slideInRight 0.8s ease-out 0.4s both;
  background: #25d366;
  color: white;
  position: relative;
}

.badge {
  position: absolute;
  top: 2px;
  right: 4px;
  background: #ff4757;
  color: white;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 700;
  animation: pulse-badge 2s infinite;
  box-shadow: 0 4px 12px rgba(255, 71, 87, 0.4);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

@keyframes pulse-badge {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.footer-section {
  margin-top: 35px;
  animation: fadeIn 1s ease-out 0.9s both;
}

/* Code snippet styling */
.code-snippet {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  padding: 15px 20px;
  border-radius: 10px;
  margin-bottom: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
  font-family: "Courier New", monospace;
  font-size: 13px;
  line-height: 1.8;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.code-snippet code {
  color: #fff;
}

.keyword {
  color: #ff79c6;
  font-weight: bold;
}

.string {
  color: #50fa7b;
}

.footer-text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 500;
}

.console-text {
  font-family: "Courier New", monospace;
  color: #25d366;
  font-weight: bold;
}

/* Easter egg */
.easter-egg {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 10px 15px;
  border-radius: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  animation: fadeIn 2s ease-out 2s both;
  z-index: 100;
}

.easter-egg:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.3);
}

.easter-egg p {
  margin: 0;
  font-size: 12px;
  color: white;
  font-weight: 600;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Terminal box styling - replaces TODO */
.terminal-box {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 10px 16px;
  margin: 0 auto 15px;
  font-family: "Courier New", monospace;
  font-size: 13px;
  text-align: left;
  display: inline-block;
  min-width: 300px;
  max-width: 90%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  animation: fadeIn 1s ease-out 0.3s both;
}

.terminal-prompt {
  color: #25d366;
  font-weight: bold;
  margin-right: 6px;
}

.typing-text {
  color: rgba(255, 255, 255, 0.95);
}

.cursor {
  animation: blink 1s infinite;
  margin-left: 2px;
  color: white;
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

/* Mobile optimizations */
@media (max-width: 480px) {
  h1,
  .glitch-text {
    font-size: 28px;
  }

  .subtitle {
    font-size: 15px;
  }

  .tech-joke {
    font-size: 11px;
    padding: 8px 12px;
    min-width: 260px;
  }

  .link-btn {
    font-size: 14px;
    padding: 20px 25px;
  }

  .prop {
    padding: 10px 15px;
  }

  .prop-text {
    font-size: 12px;
  }

  .logo img {
    width: 200px;
  }

  .value-props {
    gap: 10px;
  }

  .status-message {
    font-size: 13px;
    padding: 8px 15px;
  }

  .code-snippet {
    font-size: 11px;
    padding: 12px 15px;
  }

  .code-bracket {
    font-size: 32px;
  }

  .easter-egg {
    bottom: 15px;
    right: 15px;
    padding: 8px 12px;
  }

  .easter-egg p {
    font-size: 11px;
  }
}

/* Extra touch feedback for mobile */
@media (hover: none) and (pointer: coarse) {
  .link-btn:active {
    transform: scale(0.95);
  }

  .prop:active {
    transform: scale(0.95) translateY(-3px);
  }
}
