@tailwind base;
@tailwind components;
@tailwind utilities;

/* Definition of the design system. All colors, gradients, fonts, etc should be defined here. 
All colors MUST be HSL.
*/

:root {
  --background: 230 35% 7%; /* Deep rich navy - almost black */
  --foreground: 230 20% 98%;

  --card: 230 35% 10%;
  --card-foreground: 230 20% 98%;

  --popover: 230 35% 7%;
  --popover-foreground: 230 20% 98%;

  /* Modern Electric Violet & Indigo */
  --primary: 255 90% 65%; /* Electric Purple - Vivid but readable */
  --primary-foreground: 210 40% 98%;

  --secondary: 230 25% 15%;
  --secondary-foreground: 210 40% 98%;

  --muted: 230 25% 15%;
  --muted-foreground: 230 20% 70%;

  /* Cyan Accent for pop */
  --accent: 190 100% 50%; /* Electric Cyan */
  --accent-foreground: 230 35% 7%;

  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 0 0% 98%;

  --border: 230 25% 20%;
  --input: 230 25% 20%;
  --ring: 255 90% 65%;

  /* Custom design tokens - Modern Deep Tech */
  /* Complex multi-stop gradients for a premium feel */
  --primary-gradient: linear-gradient(135deg, hsl(255, 90%, 65%), hsl(270, 80%, 55%)); 
  --secondary-gradient: linear-gradient(135deg, hsl(230, 35%, 15%), hsl(230, 35%, 25%)); 
  --hero-gradient: radial-gradient(circle at 80% 20%, hsl(260, 60%, 20%), transparent 40%), radial-gradient(circle at 20% 80%, hsl(200, 60%, 15%), transparent 40%), linear-gradient(to bottom, hsl(230, 35%, 7%), hsl(230, 35%, 9%));
  --card-gradient: linear-gradient(145deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
  --accent-gradient: linear-gradient(135deg, hsl(190, 100%, 50%), hsl(170, 100%, 45%));
  
  --glow-primary: 0 0 50px -10px hsl(255, 90%, 65% / 0.5); 
  --glow-secondary: 0 0 30px -5px hsl(190, 100%, 50% / 0.3);
  
  --radius: 1.5rem; /* More rounded */
}

.dark {
  --background: 230 35% 7%;
  --foreground: 230 20% 98%;
  --card: 230 35% 10%;
  --card-foreground: 230 20% 98%;
  --popover: 230 35% 7%;
  --popover-foreground: 230 20% 98%;
  --primary: 255 90% 65%;
  --primary-foreground: 210 40% 98%;
  --secondary: 230 25% 15%;
  --secondary-foreground: 210 40% 98%;
  --muted: 230 25% 15%;
  --muted-foreground: 230 20% 70%;
  --accent: 190 100% 50%;
  --accent-foreground: 230 35% 7%;
  --destructive: 0 62.8% 30.6%;
  --destructive-foreground: 210 40% 98%;
  --border: 230 25% 20%;
  --input: 230 25% 20%;
  --ring: 255 90% 65%;
}

/* Import modern font - Outfit for headings, Inter for body */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600&display=swap');

/* Custom styles */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
}

body.menu-open {
  overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
}

.bg-hero-bg {
  /* Using CSS pattern instead of image for better load & modernity */
  background-image: 
    radial-gradient(circle at 15% 50%, hsl(255, 90%, 65% / 0.15) 0%, transparent 40%),
    radial-gradient(circle at 85% 30%, hsl(190, 100%, 50% / 0.15) 0%, transparent 40%);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* Glassmorphism Classes */
.glass {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.glass-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08); /* More subtle border */
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.glass-hover:hover {
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -5px rgba(0,0,0,0.4), var(--glow-primary);
}

/* Text Gradients */
.text-gradient-primary {
  background: linear-gradient(to right, #b8cbb8 0%, #b8cbb8 0%, #b465da 0%, #cf6cc9 33%, #ee609c 66%, #ee609c 100%);
  background: var(--primary-gradient); /* Fallback */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Animations */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0px); }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
  animation: float 6s ease-in-out infinite;
  animation-delay: 3s;
}

@keyframes pulse-soft {
  0%, 100% { opacity: 1; filter: brightness(1); }
  50% { opacity: 0.8; filter: brightness(1.2); }
}

.animate-pulse-soft {
  animation: pulse-soft 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes blob {
  0% { transform: translate(0px, 0px) scale(1); }
  33% { transform: translate(30px, -50px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
  100% { transform: translate(0px, 0px) scale(1); }
}

.animate-blob {
  animation: blob 7s infinite;
}

.animation-delay-2000 {
  animation-delay: 2s;
}

.animation-delay-4000 {
  animation-delay: 4s;
}

/* WhatsApp Button Styles */
.whatsapp-button {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  background-color: #25D366;
  color: white;
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.whatsapp-button:hover {
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-icon {
  width: 32px;
  height: 32px;
  fill: white;
}

/* Animations from old file + new ones combined */
.animate-fade-in {
  animation: fade-in 1s ease-out forwards;
  opacity: 0;
}

.animate-slide-up {
  animation: slide-up 1s ease-out forwards;
  opacity: 0;
}

.animate-glow {
  animation: glow 3s ease-in-out infinite;
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slide-up {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 20px -5px var(--accent); }
  50% { box-shadow: 0 0 40px -5px var(--primary); }
}

/* Mobile Menu Active State */
#mobile-menu.active {
    transform: translateY(0);
}