/* ========================================
   BASE STYLES & RESET
   Guardian Financial Advisory
   Modern, lightweight, futuristic design
   ======================================== */

/* Import our custom variables */
@import './variables.css';

/* ========================================
   MODERN CSS RESET
   ======================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  /* Smooth scrolling for anchor links */
  scroll-behavior: smooth;
  /* Prevent font size adjustment on orientation change */
  -webkit-text-size-adjust: 100%;
  /* Better font rendering */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text-primary);
  background-color: var(--bg-base);
  /* Prevent horizontal scroll */
  overflow-x: hidden;
  /* Smooth transitions when switching themes */
  transition: background-color var(--transition-base), 
              color var(--transition-base);
}

/* ========================================
   TYPOGRAPHY RESET
   ======================================== */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: var(--font-semibold);
  line-height: var(--leading-tight);
  color: var(--text-primary);
}

p {
  margin: 0;
  line-height: var(--leading-relaxed);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

/* ========================================
   LISTS RESET
   ======================================== */
ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ========================================
   FORM ELEMENTS RESET
   ======================================== */
button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  margin: 0;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
}

/* ========================================
   IMAGE & MEDIA RESET
   ======================================== */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

/* Container - Main content wrapper with max-width */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--spacing-md);
  padding-right: var(--spacing-md);
}

/* Responsive container padding */
@media (min-width: 640px) {
  .container {
    padding-left: var(--spacing-lg);
    padding-right: var(--spacing-lg);
  }
}

@media (min-width: 1024px) {
  .container {
    padding-left: var(--spacing-xl);
    padding-right: var(--spacing-xl);
  }
}

/* ========================================
   CUSTOM COMPONENTS
   ======================================== */

/* Glassmorphism effect - Used for navbar and cards */
.glass {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Light mode glassmorphism */
.light .glass {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(203, 213, 225, 0.5);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* Aurora background effect */
.aurora-bg {
  position: relative;
  background: var(--bg-base);
}

.aurora-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, 
                transparent 0%, 
                transparent 40%, 
                rgba(24, 144, 255, 0.02) 60%, 
                rgba(19, 194, 194, 0.03) 100%);
  pointer-events: none;
  z-index: 0;
}

/* Ensure content appears above aurora background */
.aurora-bg > * {
  position: relative;
  z-index: 1;
}

/* Gradient text effect */
.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Neon glow effect for CTAs */
.neon-glow {
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.3),
              0 0 20px rgba(0, 212, 255, 0.2),
              0 0 30px rgba(0, 212, 255, 0.1);
  transition: box-shadow var(--transition-base);
}

.neon-glow:hover {
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.5),
              0 0 30px rgba(0, 212, 255, 0.3),
              0 0 45px rgba(0, 212, 255, 0.2);
}

/* ========================================
   SCROLLBAR STYLING
   Modern, minimal scrollbar
   ======================================== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--border-hover);
}

/* Firefox scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--border-color) var(--bg-surface);
}

/* ========================================
   SELECTION STYLING
   ======================================== */
::selection {
  background-color: rgba(0, 212, 255, 0.3);
  color: var(--text-primary);
}

::-moz-selection {
  background-color: rgba(0, 212, 255, 0.3);
  color: var(--text-primary);
}

/* ========================================
   FOCUS STYLES
   Accessible focus indicators
   ======================================== */
:focus-visible {
  outline: 2px solid var(--color-neon-blue);
  outline-offset: 2px;
}

/* ========================================
   REDUCED MOTION
   Respect user preferences
   ======================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
