/* ============================================
   VISIONARY - Elite Virtual Assistance by Mae
   Design inspired by Magic.com aesthetic
   ============================================ */

/* ===== CSS RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Dark Mode Colors (Default) */
    --midnight-black: #0a0a0a;
    --deep-black: #141414;
    --card-black: #1a1a1a;
    --border-gray: #2a2a2a;
    --text-gray: #a0a0a0;
    --text-light: #e0e0e0;
    --pure-white: #ffffff;
    
    /* Beautiful Gradient System - Darker Violet/Purple/Blue */
    --electric-purple: #8b5cf6;
    --bright-purple: #a78bfa;
    --deep-purple: #6d28d9;
    --violet-deep: #7c3aed;
    --blue-bright: #3b82f6;
    --blue-deep: #2563eb;
    --cyan-bright: #06b6d4;
    --purple-glow: rgba(139, 92, 246, 0.15);
    
    /* Accent Colors */
    --success-green: #10b981;
    --warning-amber: #f59e0b;
    
    /* Darker Holographic Gradients - Violet/Purple/Blue Focus */
    --gradient-primary: linear-gradient(135deg, #6d28d9 0%, #7c3aed 30%, #3b82f6 70%, #2563eb 100%);
    --gradient-secondary: linear-gradient(135deg, #2563eb 0%, #7c3aed 50%, #6d28d9 100%);
    --gradient-hero: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 100%);
    --gradient-card: linear-gradient(180deg, rgba(26, 26, 26, 0.8) 0%, rgba(20, 20, 20, 0.9) 100%);
    --gradient-holographic: linear-gradient(135deg, #5b21b6 0%, #6d28d9 20%, #7c3aed 40%, #3b82f6 60%, #2563eb 80%, #1e40af 100%);
    
    /* Typography */
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-display: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.25);
    --shadow-purple: 0 8px 32px rgba(139, 92, 246, 0.3);
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Mode Theme */
[data-theme="light"] {
    --midnight-black: #ffffff;
    --deep-black: #f8f9fa;
    --card-black: #ffffff;
    --border-gray: #e5e7eb;
    --text-gray: #6b7280;
    --text-light: #374151;
    --pure-white: #111827;
    
    --purple-glow: rgba(139, 92, 246, 0.1);
    
    --gradient-hero: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    --gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.98) 100%);
    
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
    --shadow-purple: 0 8px 32px rgba(139, 92, 246, 0.15);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background-color: var(--midnight-black);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Smooth theme transitions for all elements */
*, *::before, *::after {
    transition: background-color 0.3s ease, 
                color 0.3s ease, 
                border-color 0.3s ease,
                box-shadow 0.3s ease;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--pure-white);
    margin-bottom: var(--spacing-md);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    letter-spacing: -0.015em;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
}

h4 {
    font-size: clamp(1.25rem, 2vw, 1.75rem);
}

p {
    color: var(--text-gray);
    margin-bottom: var(--spacing-md);
    font-size: 1.125rem;
    line-height: 1.7;
}

a {
    color: var(--electric-purple);
    text-decoration: none;
    transition: color var(--transition-base);
}

a:hover {
    color: var(--bright-purple);
}

/* ===== UTILITY CLASSES ===== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.container-wide {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.section {
    padding: var(--spacing-3xl) 0;
}

.section-sm {
    padding: var(--spacing-2xl) 0;
}

.text-center {
    text-align: center;
}

.text-gradient {
    background: var(--gradient-holographic);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.highlight {
    color: var(--electric-purple);
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-gray);
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid var(--border-gray);
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.95);
    box-shadow: var(--shadow-lg);
}

[data-theme="light"] .navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) var(--spacing-lg);
    max-width: 1440px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-text {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-holographic);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
    letter-spacing: 0.05em;
    transition: transform 0.3s ease;
}

.logo:hover .logo-text {
    transform: scale(1.05);
}

/* Logo icon removed - using text-only logo */

.nav-menu {
    display: flex;
    gap: var(--spacing-lg);
    list-style: none;
    align-items: center;
}

/* Theme Toggle Button */
.theme-toggle {
    position: relative;
    width: 56px;
    height: 28px;
    background: var(--card-black);
    border: 2px solid var(--border-gray);
    border-radius: var(--radius-full);
    cursor: pointer;
    margin-left: var(--spacing-sm);
    flex-shrink: 0;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.theme-toggle:hover {
    border-color: var(--electric-purple);
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.3);
}

.theme-toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .theme-toggle {
    background: var(--deep-black);
}

[data-theme="light"] .theme-toggle-slider {
    transform: translateX(28px);
}

.theme-toggle-icon {
    color: #ffffff;
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.theme-toggle:active .theme-toggle-slider {
    transform: scale(0.95);
}

[data-theme="light"] .theme-toggle:active .theme-toggle-slider {
    transform: translateX(28px) scale(0.95);
}

.nav-link {
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color var(--transition-base);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-base);
}

.nav-link:hover {
    color: var(--pure-white);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: var(--electric-purple);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--pure-white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: var(--spacing-xs);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    font-family: var(--font-display);
}

.btn-primary {
    background: var(--gradient-primary);
    background-size: 200% 200%;
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(109, 40, 217, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(109, 40, 217, 0.5);
    background-position: 100% 50%;
}

.btn-secondary {
    background: transparent;
    color: var(--pure-white);
    border: 2px solid var(--electric-purple);
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-secondary:hover {
    background: var(--gradient-primary);
    background-size: 200% 200%;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(109, 40, 217, 0.35);
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: var(--gradient-hero);
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: var(--spacing-lg);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 0.5rem 1.25rem;
    background: var(--purple-glow);
    border: 1px solid var(--electric-purple);
    border-radius: var(--radius-full);
    color: var(--bright-purple);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    animation: fadeInUp 0.6s ease;
}

.hero-title {
    font-size: clamp(3rem, 7vw, 5.5rem);
    margin-bottom: var(--spacing-lg);
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    color: var(--text-gray);
    margin-bottom: var(--spacing-xl);
    line-height: 1.6;
    animation: fadeInUp 1s ease;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1.2s ease;
}

/* ===== CARDS ===== */
.card {
    background: var(--gradient-card);
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

[data-theme="light"] .card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.1), transparent);
    transition: left 0.6s ease;
}

.card:hover::before {
    left: 100%;
}

.card:hover {
    transform: translateY(-8px);
    border-color: var(--electric-purple);
    box-shadow: var(--shadow-purple);
}

[data-theme="dark"] .card:hover {
    background: linear-gradient(180deg, rgba(26, 26, 26, 0.9) 0%, rgba(20, 20, 20, 1) 100%);
}

[data-theme="light"] .card:hover {
    box-shadow: 0 12px 32px rgba(139, 92, 246, 0.2);
    background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(248, 249, 250, 1) 100%);
}

.card-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--purple-glow);
    border-radius: var(--radius-md);
    font-size: 1.75rem;
    margin-bottom: var(--spacing-md);
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

.card-text {
    color: var(--text-gray);
    margin-bottom: var(--spacing-md);
}

/* ===== GRID LAYOUTS ===== */
.grid {
    display: grid;
    gap: var(--spacing-lg);
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* ===== STATS SECTION ===== */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-xl);
    text-align: center;
    padding: var(--spacing-2xl) 0;
}

.stat-item {
    position: relative;
}

.stat-number {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-xs);
}

.stat-label {
    color: var(--text-gray);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ===== TOOLS CAROUSEL ===== */
.tools-carousel {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 2rem 0;
}

.tools-carousel::before,
.tools-carousel::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 150px;
    z-index: 2;
    pointer-events: none;
}

.tools-carousel::before {
    left: 0;
    background: linear-gradient(to right, var(--deep-black), transparent);
}

.tools-carousel::after {
    right: 0;
    background: linear-gradient(to left, var(--deep-black), transparent);
}

[data-theme="light"] .tools-carousel::before {
    background: linear-gradient(to right, var(--deep-black), transparent);
}

[data-theme="light"] .tools-carousel::after {
    background: linear-gradient(to left, var(--deep-black), transparent);
}

.tools-track {
    display: flex;
    gap: 2rem;
    animation: scroll-left 80s linear infinite;
    width: fit-content;
}

.tools-track:hover {
    animation-play-state: paused;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.tool-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    min-width: 140px;
    padding: 1.5rem 1rem;
    background: var(--card-black);
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.tool-item:hover {
    transform: translateY(-5px);
    border-color: var(--electric-purple);
    box-shadow: 0 8px 24px rgba(109, 40, 217, 0.3);
    background: linear-gradient(135deg, var(--card-black) 0%, rgba(109, 40, 217, 0.05) 100%);
}

.tool-item i {
    font-size: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tool-item span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
    text-align: center;
    white-space: nowrap;
}

/* ===== FORMS ===== */
.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-xs);
    color: var(--text-light);
    font-weight: 500;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--card-black);
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-md);
    color: var(--pure-white);
    font-size: 1rem;
    font-family: var(--font-main);
    transition: all var(--transition-base);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--electric-purple);
    box-shadow: 0 0 0 3px var(--purple-glow);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

.animate-in {
    animation: fadeInUp 0.8s ease;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--deep-black);
    border-top: 1px solid var(--border-gray);
    padding: var(--spacing-3xl) 0 var(--spacing-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-section h4 {
    color: var(--pure-white);
    margin-bottom: var(--spacing-md);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--spacing-sm);
}

.footer-links a {
    color: var(--text-gray);
    transition: color var(--transition-base);
}

.footer-links a:hover {
    color: var(--electric-purple);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border-gray);
    color: var(--text-gray);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 73px;
        right: -100%;
        width: 100%;
        max-width: 400px;
        height: calc(100vh - 73px);
        background: var(--deep-black);
        flex-direction: column;
        padding: var(--spacing-xl);
        gap: var(--spacing-md);
        border-left: 1px solid var(--border-gray);
        transition: right var(--transition-base);
        align-items: flex-start;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .hero {
        min-height: auto;
        padding: var(--spacing-3xl) 0;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .stats {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
}

/* ===== LOADING STATE ===== */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--border-gray);
    border-top-color: var(--electric-purple);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== HIDDEN UTILITY ===== */
.hidden {
    display: none !important;
}

.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;
}
