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

:root {
  --bg-color: #0b0b0f;
  --accent-purple: #a855f7;
  --accent-indigo: #6366f1;
  --accent-blue: #3b82f6;
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: white;
  overflow-x: hidden;
  line-height: 1.5;
}

h1, h2, h3, h4, h5, h6, .font-grotesk {
  font-family: 'Space Grotesk', sans-serif;
}

::selection {
  background: rgba(168, 85, 247, 0.3);
  color: white;
}

#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(to right, var(--accent-purple), var(--accent-indigo));
  width: 0%;
  z-index: 9999;
}

/* Background Elements */
#particle-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.gradient-blob {
  position: fixed;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
  border-radius: 50%;
  z-index: -1;
  filter: blur(80px);
  pointer-events: none;
}

#blob-1 {
  top: -10%;
  right: -10%;
}

#blob-2 {
  bottom: -10%;
  left: -10%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
}

/* Utility Classes */
.glass-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
}

.floating-card {
  animation: float 6s ease-in-out infinite;
}

.floating-card-delayed {
  animation: float 8s ease-in-out infinite 1s;
}

@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(2deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

.signature {
  font-family: 'Dancing Script', cursive; /* Fallback to a font or styled text */
  font-family: 'Space Grotesk', sans-serif;
  font-style: italic;
  letter-spacing: -2px;
  text-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

/* Scroll Animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
}

.project-card {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.project-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 20px 40px -20px rgba(168, 85, 247, 0.3);
}

.skill-card {
  transition: all 0.3s ease;
}

.skill-card:hover {
  background: rgba(255, 255, 255, 0.08);
}

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

::-webkit-scrollbar-track {
  background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
  background: #2a2a30;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #3a3a40;
}

/* Tailwind JIT Polyfill */
.bg-white\/5 { background-color: rgba(255, 255, 255, 0.05); }
.bg-white\/10 { background-color: rgba(255, 255, 255, 0.1); }
.border-white\/10 { border-color: rgba(255, 255, 255, 0.1); }
.border-white\/5 { border-color: rgba(255, 255, 255, 0.05); }

/* Simplified Tailwind Classes for raw CSS */
.text-transparent { color: transparent; }
.bg-clip-text { -webkit-background-clip: text; background-clip: text; }
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-stops)); }
.from-purple-400 { --tw-gradient-from: #c084fc; --tw-gradient-to: rgb(192 132 252 / 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.to-indigo-500 { --tw-gradient-to: #6366f1; }

/* Animation Initial States */
.skill-card, .project-card {
    opacity: 0;
    transform: translateY(30px);
}

/* Critical Fixes for Broken UI */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s ease-out;
}

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

.bg-\[\#0b0b0f\] { background-color: #0b0b0f; }
.text-white { color: #ffffff; }
.fixed { position: fixed; }
.top-0 { top: 0; }
.w-full { width: 100%; }
.z-50 { z-index: 50; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.mx-auto { margin-left: auto; margin-right: auto; }
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
/* Mobile Navigation and Responsiveness Fixes */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 3.5rem;
        line-height: 1.1;
    }
    .hero-content p {
        font-size: 1.125rem;
    }
    nav .hidden.md\:flex {
        display: none !important;
    }
    /* Mobile Menu Toggle (can be expanded later if desired) */
    nav .max-w-7xl {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* Ensure images and videos are responsive */
img, video {
    max-width: 100%;
    height: auto;
}

/* Better spacing for sections on small screens */
@media (max-width: 640px) {
    section {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
    .px-6 {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

