/* Base Styles - Dark, Mystical Theme */

/* Global Variables */
:root {
    --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: 'JetBrains Mono', SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    
    /* Light Theme */
    --bg-primary-light: #f8fafc;
    --bg-secondary-light: #f1f5f9;
    --bg-tertiary-light: #e2e8f0;
    --text-primary-light: #1e293b;
    --text-secondary-light: #475569;
    --accent-primary-light: #7c3aed;
    --accent-secondary-light: #8b5cf6;
    --accent-tertiary-light: #a78bfa;
    --border-light: #e2e8f0;
    --shadow-light: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --glow-light: 0 0 15px rgba(139, 92, 246, 0.3);
    
    /* Dark Theme */
    --bg-primary-dark: #0a0e19;
    --bg-secondary-dark: #111827;
    --bg-tertiary-dark: #1f2937;
    --text-primary-dark: #f9fafb;
    --text-secondary-dark: #e5e7eb;
    --accent-primary-dark: #6d28d9;
    --accent-secondary-dark: #8b5cf6;
    --accent-tertiary-dark: #a78bfa;
    --border-dark: #1f2937;
    --shadow-dark: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --glow-dark: 0 0 15px rgba(124, 58, 237, 0.5);
    
    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-normal: 300ms ease-in-out;
    --transition-slow: 500ms ease-in-out;
}

/* Base Styles */
html {
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    transition: background-color var(--transition-normal), color var(--transition-normal);
    overflow-x: hidden;
    min-height: 100vh;
    font-family: var(--font-sans);
    line-height: 1.5;
}

/* Dark Mode */
html.dark body {
    background-color: var(--bg-primary-dark);
    color: var(--text-primary-dark);
}

/* Light Mode */
body {
    background-color: var(--bg-primary-light);
    color: var(--text-primary-light);
}

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

.hero-heading {
    font-size: 2.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.section-heading {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.gradient-text {
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    display: inline-block;
}

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

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

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

.mystical-border::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0.3;
}

html.dark .mystical-border::before {
    border-color: var(--accent-primary-dark);
    box-shadow: var(--glow-dark);
}

.mystical-border::before {
    border-color: var(--accent-primary-light);
    box-shadow: var(--glow-light);
}

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

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

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

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

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

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

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

/* Glass Morphism Effects */
.glass-navbar-dark {
    background-color: rgba(10, 14, 25, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

.glass-morphism {
    transition: background-color var(--transition-normal), backdrop-filter var(--transition-normal);
}

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

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

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

html.dark .mystical-card:hover {
    box-shadow: var(--glow-dark), var(--shadow-dark);
    border-color: var(--accent-primary-dark);
}

.mystical-card:hover {
    box-shadow: var(--glow-light), var(--shadow-light);
    border-color: var(--accent-primary-light);
}

/* Buttons */
.mystical-button {
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.mystical-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transform: translateX(-100%);
    transition: transform 0.8s ease-in-out;
}

.mystical-button:hover::before {
    transform: translateX(100%);
}

html.dark .mystical-button-primary {
    background-color: var(--accent-primary-dark);
    color: white;
}

.mystical-button-primary {
    background-color: var(--accent-primary-light);
    color: white;
}

html.dark .mystical-button-primary:hover {
    background-color: var(--accent-secondary-dark);
    box-shadow: var(--glow-dark);
}

.mystical-button-primary:hover {
    background-color: var(--accent-secondary-light);
    box-shadow: var(--glow-light);
}

html.dark .mystical-button-secondary {
    background-color: var(--bg-tertiary-dark);
    color: var(--text-primary-dark);
    border: 1px solid var(--border-dark);
}

.mystical-button-secondary {
    background-color: var(--bg-tertiary-light);
    color: var(--text-primary-light);
    border: 1px solid var(--border-light);
}

html.dark .mystical-button-secondary:hover {
    background-color: var(--bg-secondary-dark);
    border-color: var(--accent-tertiary-dark);
}

.mystical-button-secondary:hover {
    background-color: var(--bg-secondary-light);
    border-color: var(--accent-tertiary-light);
}

/* Inputs */
.mystical-input {
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    transition: var(--transition-normal);
    width: 100%;
    outline: none;
}

html.dark .mystical-input {
    background-color: var(--bg-tertiary-dark);
    border: 1px solid var(--border-dark);
    color: var(--text-primary-dark);
}

.mystical-input {
    background-color: var(--bg-tertiary-light);
    border: 1px solid var(--border-light);
    color: var(--text-primary-light);
}

html.dark .mystical-input:focus {
    border-color: var(--accent-tertiary-dark);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25);
}

.mystical-input:focus {
    border-color: var(--accent-tertiary-light);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

/* Animations */
@keyframes floatAnimation {
    0% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0); }
}

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

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

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

/* Scroll Bars */
::-webkit-scrollbar {
    width: 0.5rem;
    height: 0.5rem;
}

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

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

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

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

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

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

/* Responsive Utilities */
@media (max-width: 640px) {
    .hero-heading {
        font-size: 2rem;
    }
    
    .section-heading {
        font-size: 1.5rem;
    }
}

/* Additional background elements */
.mystical-dot {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
    filter: blur(3px);
    z-index: -1;
    transition: opacity var(--transition-normal);
}

html.dark .mystical-dot {
    background-color: var(--accent-primary-dark);
    box-shadow: 0 0 15px var(--accent-primary-dark);
}

.mystical-dot {
    background-color: var(--accent-primary-light);
    box-shadow: 0 0 15px var(--accent-primary-light);
}

/* Accessibility */
.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;
}

/* Focus styles for keyboard navigation */
:focus-visible {
    outline: 2px solid var(--accent-primary-light);
    outline-offset: 2px;
}

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