/* Advanced Intelligence Group Landing Page - Futuristic Style */

:root {
    /* Light Theme Colors */
    --light-primary-color: #2563eb;
    --light-secondary-color: #1e40af;
    --light-accent-color: #3b82f6;
    --light-bg-light: #f8fafc;
    --light-bg-lighter: #ffffff;
    --light-card-bg: rgba(255, 255, 255, 0.4);
    --light-text-dark: #1e293b;
    --light-text-gray: #64748b;
    --light-success: #10b981;
    --light-warning: #f59e0b;
    --light-neural-blue: #3b82f6;
    --light-neural-light: #e0f2fe;
    
    /* Dark Theme Colors - Lummus Technology Palette */
    --dark-primary-color: #1E3A5F;
    --dark-secondary-color: #00D9FF;
    --dark-accent-color: #00FF88;
    --dark-bg-light: #1E3A5F;
    --dark-bg-lighter: #0B1426;
    --dark-card-bg: rgba(255, 255, 255, 0.08);
    --dark-text-dark: #F8FAFC;
    --dark-text-gray: #64748B;
    --dark-success: #00FF88;
    --dark-warning: #ff6600;
    --dark-neural-blue: #00D9FF;
    --dark-neural-light: #1E3A5F;
    
    /* Lummus Extended Palette */
    --lummus-primary: #1E3A5F;
    --lummus-accent: #00D9FF;
    --lummus-secondary: #00FF88;
    --lummus-dark: #0B1426;
    --lummus-light: #F8FAFC;
    --lummus-gray: #64748B;
    --lummus-purple: #8B5CF6;
}

/* Default to Dark Theme */
body {
    --primary-color: var(--dark-primary-color);
    --secondary-color: var(--dark-secondary-color);
    --accent-color: var(--dark-accent-color);
    --bg-light: var(--dark-bg-light);
    --bg-lighter: var(--dark-bg-lighter);
    --card-bg: var(--dark-card-bg);
    --text-dark: var(--dark-text-dark);
    --text-gray: var(--dark-text-gray);
    --success: var(--dark-success);
    --warning: var(--dark-warning);
    --neural-blue: var(--dark-neural-blue);
    --neural-light: var(--dark-neural-light);
}

/* Light Theme Override */
body.light-theme {
    --primary-color: var(--light-primary-color);
    --secondary-color: var(--light-secondary-color);
    --accent-color: var(--light-accent-color);
    --bg-light: var(--light-bg-light);
    --bg-lighter: var(--light-bg-lighter);
    --card-bg: var(--light-card-bg);
    --text-dark: var(--light-text-dark);
    --text-gray: var(--light-text-gray);
    --success: var(--light-success);
    --warning: var(--light-warning);
    --neural-blue: var(--light-neural-blue);
    --neural-light: var(--light-neural-light);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: linear-gradient(135deg, var(--bg-lighter) 0%, var(--bg-light) 50%, var(--neural-light) 100%);
    color: var(--text-dark);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    transition: all 0.5s ease;
}

/* Sophisticated Lummus dark theme background */
body:not(.light-theme) {
    background: linear-gradient(135deg, var(--lummus-dark) 0%, var(--lummus-primary) 100%);
}

body:not(.light-theme)::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(0, 217, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 255, 136, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
    animation: lummus-bg-shift 20s ease-in-out infinite alternate;
}

@keyframes lummus-bg-shift {
    0% { transform: translateX(0) translateY(0) scale(1); }
    100% { transform: translateX(-20px) translateY(-10px) scale(1.02); }
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1000;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--primary-color);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.2);
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px var(--primary-color);
    border-color: var(--accent-color);
}

.toggle-icon {
    position: relative;
    width: 24px;
    height: 24px;
}

.sun-icon,
.moon-icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: var(--primary-color);
    transition: all 0.5s ease;
}

/* Default: show moon (dark theme) */
body:not(.light-theme) .sun-icon {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

body:not(.light-theme) .moon-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* Light theme: show sun */
body.light-theme .sun-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

body.light-theme .moon-icon {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

/* Subtle glow for dark theme */
body:not(.light-theme) .theme-toggle {
    box-shadow: 
        0 0 20px rgba(0, 217, 255, 0.4), 
        inset 0 0 20px rgba(0, 217, 255, 0.1);
}

body:not(.light-theme) .theme-toggle:hover {
    box-shadow: 
        0 0 30px rgba(0, 217, 255, 0.6), 
        inset 0 0 30px rgba(0, 217, 255, 0.2);
}

/* Enhanced Dark Theme Effects */
body:not(.light-theme) .ai-logo .logo-inner {
    animation: morph 8s ease-in-out infinite, neon-pulse 3s ease-in-out infinite;
    box-shadow: 
        0 0 60px rgba(0, 212, 255, 0.6),
        0 0 120px rgba(0, 212, 255, 0.4),
        inset 0 0 60px rgba(0, 255, 255, 0.1);
}

@keyframes neon-pulse {
    0%, 100% { 
        box-shadow: 
            0 0 60px rgba(0, 212, 255, 0.6),
            0 0 120px rgba(0, 212, 255, 0.4),
            inset 0 0 60px rgba(0, 255, 255, 0.1);
    }
    50% { 
        box-shadow: 
            0 0 80px rgba(0, 255, 255, 0.8),
            0 0 160px rgba(0, 255, 255, 0.6),
            inset 0 0 80px rgba(0, 255, 255, 0.2);
    }
}

body:not(.light-theme) .logo-text {
    text-shadow: 
        0 0 20px rgba(255, 255, 255, 0.8),
        0 0 40px rgba(0, 255, 255, 0.6),
        0 0 60px rgba(0, 212, 255, 0.4);
}

/* Professional card effects for dark theme */
body:not(.light-theme) .app-card:hover .card-inner {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 10px 40px rgba(0, 217, 255, 0.3),
        0 0 60px rgba(0, 217, 255, 0.2);
    border: 1px solid rgba(0, 217, 255, 0.5);
}

body:not(.light-theme) .app-card::before {
    background: linear-gradient(45deg, 
        rgba(0, 217, 255, 0.8), 
        rgba(139, 92, 246, 0.6), 
        rgba(0, 217, 255, 0.8));
}

/* Removed individual card colors for cleaner design */

body:not(.light-theme) .card-icon {
    color: var(--accent-color);
    filter: drop-shadow(0 0 20px currentColor);
}

body:not(.light-theme) .card-title {
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

/* Bright and sophisticated main title for dark theme */
body:not(.light-theme) .main-title {
    background: linear-gradient(135deg, #00D9FF, #00FF88, #8B5CF6);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    /* No animations or glow effects */
}

/* Clean card titles */
body:not(.light-theme) .card-title {
    color: var(--dark-text-dark);
    /* No glow effects */
}

/* Clean footer for dark theme */
body:not(.light-theme) footer {
    border-top: 1px solid rgba(0, 217, 255, 0.3);
    /* Removed box shadow for cleaner look */
}

body:not(.light-theme) .tech-badge {
    background: rgba(0, 217, 255, 0.15);
    border: 1px solid rgba(0, 217, 255, 0.4);
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.2);
    transition: all 0.3s ease;
}

body:not(.light-theme) .tech-badge:hover {
    background: rgba(0, 217, 255, 0.25);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.4);
    transform: translateY(-2px) scale(1.05);
}

/* Human + AI Neural Constellation Background */
#neural-constellation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    /* Let JavaScript handle the background gradient */
    background: transparent;
}

/* Container */
.container {
    position: relative;
    z-index: 10;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Header */
header {
    text-align: center;
    padding: 3rem 0;
    margin-bottom: 3rem;
}

.logo-section {
    display: inline-block;
    margin-bottom: 2rem;
}

.ai-logo {
    width: 160px;
    height: 160px;
    margin: 0 auto;
    position: relative;
    animation: float 3s ease-in-out infinite;
}

.logo-inner {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: morph 8s ease-in-out infinite;
    box-shadow: 0 0 60px rgba(59, 130, 246, 0.5);
}

.logo-text {
    font-family: 'Orbitron', monospace;
    font-size: 2.4rem;
    font-weight: 900;
    color: white;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes morph {
    0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    50% { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; }
}

.main-title {
    font-family: 'Orbitron', monospace;
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--secondary-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 3s ease infinite;
    text-transform: uppercase;
    letter-spacing: 3px;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-top: 1rem;
}

.highlight {
    color: var(--accent-color);
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.contact-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.contact-link:hover {
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

/* Apps Grid */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.app-card {
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    display: block;
}

.card-inner {
    background: var(--card-bg);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 15px;
    padding: 2rem;
    height: 100%;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.app-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color), var(--secondary-color));
    border-radius: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.app-card:hover::before {
    opacity: 1;
}

.app-card:hover .card-inner {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 10px 40px rgba(59, 130, 246, 0.3);
}

.card-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    animation: pulse 2s ease-in-out infinite;
}

.card-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    filter: drop-shadow(0 0 10px currentColor);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

.card-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.card-status {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-status.active {
    background: rgba(0, 255, 136, 0.2);
    color: var(--success);
    border: 1px solid var(--success);
    animation: glow-green 2s ease-in-out infinite;
}

.card-status.coming-soon {
    background: rgba(255, 170, 0, 0.2);
    color: var(--warning);
    border: 1px solid var(--warning);
}

@keyframes glow-green {
    0%, 100% { box-shadow: 0 0 5px rgba(0, 255, 136, 0.5); }
    50% { box-shadow: 0 0 20px rgba(0, 255, 136, 0.8); }
}

/* Footer */
footer {
    margin-top: 5rem;
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid rgba(0, 212, 255, 0.2);
}

.footer-text {
    color: var(--text-gray);
    margin-bottom: 1rem;
}

/* Fix footer text visibility in dark theme */
body:not(.light-theme) .footer-text {
    color: var(--dark-text-dark);
}

.tech-stack {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.tech-badge {
    display: inline-block;
    padding: 0.3rem 1rem;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 15px;
    font-size: 0.85rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

/* Fix tech badge visibility in dark theme */
body:not(.light-theme) .tech-badge {
    color: var(--dark-text-dark);
}

.tech-badge:hover {
    background: rgba(0, 212, 255, 0.2);
    transform: translateY(-2px);
}

/* Enhanced card hover effects for neural interaction */
.app-card:hover {
    transform: scale(1.02) translateZ(0);
    transition: all 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-title {
        font-size: 2rem;
    }
    
    .apps-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .container {
        padding: 1rem;
    }
}

@media (min-width: 1200px) {
    .apps-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}