@tailwind base;
@tailwind components;
@tailwind utilities;

@layer utilities {
  .animation-delay-200 {
    animation-delay: 0.2s;
  }
  .animation-delay-400 {
    animation-delay: 0.4s;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0a0a0f;
}

::-webkit-scrollbar-thumb {
    background: #13131f;
    border-radius: 5px;
    border: 1px solid #333;
}

::-webkit-scrollbar-thumb:hover {
    background: #00f2ea;
}

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    background-color: #0a0a0f;
    color: #ffffff;
}

/* Canvas Styles */
#canvas-container {
    width: 100%;
    height: 100%;
}

/* Marquee Animation */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.animate-marquee {
    animation: marquee 20s linear infinite;
    display: flex;
    min-width: 200%;
}

/* Reveal on Scroll */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.transition-delay-100 {
    transition-delay: 0.1s;
}

.transition-delay-200 {
    transition-delay: 0.2s;
}

.transition-delay-300 {
    transition-delay: 0.3s;
}

/* Typewriter Cursor */
#typewriter::after {
    content: '|';
    animation: blink 1s infinite;
    color: #00f2ea;
    margin-left: 5px;
}

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

/* Service Card Hover Effect */
.service-card {
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 242, 234, 0.05), rgba(0, 102, 255, 0.05));
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

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

/* Accordion Animation */
.faq-answer {
    transition: max-height 0.3s ease-in-out;
}

/* Animations for Index */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

.animate-fade-in-up {
  opacity: 0; /* start hidden */
  animation: fadeInUp 0.8s ease-out forwards;
}
