/* Main Systades Styles - Dark Mystical Theme */

/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap');

/* Root Variables */
:root {
  /* Light Theme Colors */
  --light-bg-primary: #f8fafc;
  --light-bg-secondary: #f1f5f9;
  --light-text-primary: #1e293b;
  --light-text-secondary: #475569;
  --light-accent-primary: #7c3aed;
  --light-accent-secondary: #8b5cf6;
  --light-border: #e2e8f0;
  
  /* Dark Theme Colors */
  --dark-bg-primary: #0a0e19;
  --dark-bg-secondary: #111827;
  --dark-text-primary: #f9fafb;
  --dark-text-secondary: #e5e7eb;
  --dark-accent-primary: #6d28d9;
  --dark-accent-secondary: #8b5cf6;
  --dark-border: #1f2937;
  
  /* Common */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-normal: 300ms ease-in-out;
  --transition-slow: 500ms ease-in-out;
}

/* Base Elements */
body {
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  background-color: transparent !important; /* Ensure background is transparent */
}

/* HTML root element should also be transparent */
html {
  background-color: transparent !important;
}

html.dark {
  background-color: transparent !important;
}

/* Theme Specific - keep the color but remove background */
body {
  color: var(--light-text-primary);
}

body.dark {
  color: var(--dark-text-primary);
  background-color: transparent;
}

/* Ensure proper contrast in both modes */
body:not(.dark) {
  --text-primary: var(--light-text-primary);
  --text-secondary: var(--light-text-secondary);
  --bg-primary: var(--light-bg-primary);
  --bg-secondary: var(--light-bg-secondary);
}

body.dark {
  --text-primary: var(--dark-text-primary);
  --text-secondary: var(--dark-text-secondary);
  --bg-primary: var(--dark-bg-primary);
  --bg-secondary: var(--dark-bg-secondary);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
}

p {
  line-height: 1.6;
}

.gradient-text {
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  position: relative;
}

body .gradient-text {
  background-image: linear-gradient(135deg, var(--light-accent-primary), var(--light-accent-secondary));
}

body.dark .gradient-text {
  background-image: linear-gradient(135deg, var(--dark-accent-primary), var(--dark-accent-secondary));
}

/* Subtle glow for dark mode gradient text */
body.dark .gradient-text::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  filter: blur(8px);
  opacity: 0.3;
  background-image: inherit;
  z-index: -1;
  pointer-events: none;
}

/* Containers and Layout */
.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container {
    max-width: 640px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 768px;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 1024px;
  }
}

@media (min-width: 1280px) {
  .container {
    max-width: 1280px;
  }
}

/* Glass Morphism */
.glass-morphism {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body .glass-navbar-light {
  background-color: rgba(255, 255, 255, 0.8);
  border-color: rgba(226, 232, 240, 0.5);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

body.dark .glass-navbar-dark {
  background-color: rgba(10, 14, 25, 0.8);
  border-color: rgba(31, 41, 55, 0.5);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Navigation */
.nav-link {
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  transition: all var(--transition-normal);
}

body .nav-link {
  color: var(--light-text-secondary);
}

body.dark .nav-link {
  color: var(--dark-text-secondary);
}

body .nav-link:hover {
  color: var(--light-text-primary);
  background-color: rgba(241, 245, 249, 0.5);
}

body.dark .nav-link:hover {
  color: var(--dark-text-primary);
  background-color: rgba(31, 41, 55, 0.5);
}

body .nav-link-light-active {
  color: var(--light-accent-primary);
  background-color: rgba(139, 92, 246, 0.1);
}

body.dark .nav-link-active {
  color: var(--dark-accent-secondary);
  background-color: rgba(109, 40, 217, 0.15);
}

/* Buttons */
.btn {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all var(--transition-normal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body .btn-primary {
  background-color: var(--light-accent-primary);
  color: white;
}

body.dark .btn-primary {
  background-color: var(--dark-accent-primary);
  color: white;
}

body .btn-primary:hover {
  background-color: var(--light-accent-secondary);
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.3);
}

body.dark .btn-primary:hover {
  background-color: var(--dark-accent-secondary);
  box-shadow: 0 0 15px rgba(109, 40, 217, 0.5);
}

body .btn-secondary {
  background-color: transparent;
  border: 1px solid var(--light-border);
  color: var(--light-text-primary);
}

body.dark .btn-secondary {
  background-color: transparent;
  border: 1px solid var(--dark-border);
  color: var(--dark-text-primary);
}

body .btn-secondary:hover {
  background-color: var(--light-bg-secondary);
  border-color: var(--light-accent-secondary);
}

body.dark .btn-secondary:hover {
  background-color: var(--dark-bg-secondary);
  border-color: var(--dark-accent-secondary);
}

/* Cards */
.card {
  border-radius: 0.75rem;
  overflow: hidden;
  transition: all var(--transition-normal);
}

body .card {
  background-color: white;
  border: 1px solid var(--light-border);
  box-shadow: var(--shadow);
}

body.dark .card {
  background-color: var(--dark-bg-secondary);
  border: 1px solid var(--dark-border);
  box-shadow: var(--shadow);
}

body .card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

body.dark .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
}

/* Form Elements */
.form-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  transition: all var(--transition-normal);
}

body .form-input {
  background-color: white;
  border: 1px solid var(--light-border);
  color: var(--light-text-primary);
}

body.dark .form-input {
  background-color: var(--dark-bg-secondary);
  border: 1px solid var(--dark-border);
  color: var(--dark-text-primary);
}

body .form-input:focus {
  outline: none;
  border-color: var(--light-accent-secondary);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

body.dark .form-input:focus {
  outline: none;
  border-color: var(--dark-accent-secondary);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25);
}

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

.animate-fade-in {
  animation: fadeIn 0.5s ease-out forwards;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.animate-float {
  animation: float 5s ease-in-out infinite;
}

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

.animate-pulse {
  animation: pulse 3s ease-in-out infinite;
}

/* Utilities */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.shadow-elevation {
  transition: box-shadow var(--transition-normal), transform var(--transition-normal);
}

body .shadow-elevation {
  box-shadow: var(--shadow);
}

body.dark .shadow-elevation {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
}

body .shadow-elevation:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

body.dark .shadow-elevation:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

/* Tooltips */
.tooltip {
  position: relative;
}

.tooltip:hover::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  white-space: nowrap;
  z-index: 10;
  opacity: 0;
  animation: fadeIn 0.3s ease-out forwards;
}

body .tooltip:hover::before {
  background-color: var(--light-text-primary);
  color: white;
}

body.dark .tooltip:hover::before {
  background-color: var(--dark-text-primary);
  color: var(--dark-bg-primary);
}

/* Mystical elements */
.mystical-border {
  position: relative;
  overflow: hidden;
}

.mystical-border::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 1px solid;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0.3;
  transition: opacity var(--transition-normal);
}

body .mystical-border::after {
  border-color: var(--light-accent-primary);
}

body.dark .mystical-border::after {
  border-color: var(--dark-accent-primary);
}

.mystical-border:hover::after {
  opacity: 0.6;
}

/* Responsive Design Helpers */
@media (max-width: 640px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .hero-heading {
    font-size: 2rem;
  }
  
  .section-heading {
    font-size: 1.5rem;
  }
}

/* Accessibility */
:focus-visible {
  outline: 2px solid;
  outline-offset: 2px;
}

body :focus-visible {
  outline-color: var(--light-accent-primary);
}

body.dark :focus-visible {
  outline-color: var(--dark-accent-primary);
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 0.5rem;
  height: 0.5rem;
}

body ::-webkit-scrollbar-track {
  background: var(--light-bg-secondary);
}

body.dark ::-webkit-scrollbar-track {
  background: var(--dark-bg-secondary);
}

body ::-webkit-scrollbar-thumb {
  background: var(--light-accent-primary);
  border-radius: 0.25rem;
}

body.dark ::-webkit-scrollbar-thumb {
  background: var(--dark-accent-primary);
  border-radius: 0.25rem;
}

body ::-webkit-scrollbar-thumb:hover {
  background: var(--light-accent-secondary);
}

body.dark ::-webkit-scrollbar-thumb:hover {
  background: var(--dark-accent-secondary);
} 