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

:root {
    --bg-main: #0a0e27;
    --bg-card: rgba(10, 14, 39, 0.7);
    --border-color: rgba(0, 212, 255, 0.3);
    
    --accent-cyan: #00d4ff;
    --accent-teal: #00ffc8;
    --accent-purple: #7b2ff7;
    
    --text-primary: #e0e8ff;
    --text-secondary: #90a0d9;
    
    --glow-cyan: 0 0 10px rgba(0, 212, 255, 0.5), 0 0 20px rgba(0, 212, 255, 0.3);
    --glow-teal: 0 0 10px rgba(0, 255, 200, 0.5), 0 0 20px rgba(0, 255, 200, 0.3);
    --glow-purple: 0 0 10px rgba(123, 47, 247, 0.5), 0 0 20px rgba(123, 47, 247, 0.3);
    
    --font-heading: 'Orbitron', sans-serif;
    --font-text: 'Inter', sans-serif;
}

[data-theme="light"] {
    --bg-main: #f3f4f6;
    --bg-card: rgba(255, 255, 255, 0.85);
    --border-color: rgba(0, 119, 255, 0.2);
    
    --accent-cyan: #0066cc;
    --accent-teal: #00997a;
    --accent-purple: #5c1bb5;
    
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    
    --glow-cyan: 0 0 10px rgba(0, 119, 255, 0.3), 0 0 20px rgba(0, 119, 255, 0.1);
    --glow-teal: 0 0 10px rgba(0, 153, 122, 0.3), 0 0 20px rgba(0, 153, 122, 0.1);
    --glow-purple: 0 0 10px rgba(92, 27, 181, 0.3), 0 0 20px rgba(92, 27, 181, 0.1);
}

[data-theme="light"] .jarvis-navbar {
    background: rgba(255, 255, 255, 0.95);
}

[data-theme="light"] .navbar-logo h1 {
    text-shadow: none;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-text);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(0, 212, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(123, 47, 247, 0.08) 0%, transparent 50%);
}

#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-teal);
    text-shadow: var(--glow-teal);
}

.jarvis-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.glass-card:hover {
    border-color: var(--accent-cyan);
    box-shadow: var(--glow-cyan);
    transform: translateY(-5px);
}

.glass-card:hover::before {
    opacity: 1;
}

/* Buttons */
.jarvis-btn {
    display: inline-block;
    padding: 12px 24px;
    background: transparent;
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
    font-family: var(--font-heading);
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.jarvis-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.2), transparent);
    transition: all 0.4s ease;
}

.jarvis-btn:hover {
    background: rgba(0, 212, 255, 0.1);
    box-shadow: var(--glow-cyan);
}

.jarvis-btn:hover::before {
    left: 100%;
}

.jarvis-btn.primary {
    border-color: var(--accent-teal);
    color: var(--accent-teal);
}

.jarvis-btn.primary:hover {
    background: rgba(0, 255, 200, 0.1);
    box-shadow: var(--glow-teal);
}

/* HUD Elements */
.hud-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border-style: solid;
    border-color: var(--accent-cyan);
    border-width: 0;
}
.hud-corner.tl { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; }
.hud-corner.tr { top: -1px; right: -1px; border-top-width: 2px; border-right-width: 2px; }
.hud-corner.bl { bottom: -1px; left: -1px; border-bottom-width: 2px; border-left-width: 2px; }
.hud-corner.br { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; }

/* Navbar */
.jarvis-navbar {
    border-bottom: 1px solid var(--border-color);
    background: rgba(10, 14, 39, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.navbar-logo h1 {
    font-size: 20px;
    color: var(--text-primary);
    text-shadow: 0 0 5px rgba(255,255,255,0.3);
}

.navbar-logo span {
    color: var(--accent-cyan);
}

.navbar-menu ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

.navbar-menu a {
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 13px;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 5px;
    white-space: nowrap;
}

.navbar-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--accent-cyan);
    transition: width 0.3s ease;
    box-shadow: var(--glow-cyan);
}

.navbar-menu a:hover::after, .navbar-menu a.active::after {
    width: 100%;
}

.navbar-actions {
    margin-left: 20px;
    flex-shrink: 0;
}

/* Footer */
.jarvis-footer {
    border-top: 1px solid var(--border-color);
    padding: 40px 0 20px;
    margin-top: 60px;
    background: linear-gradient(0deg, rgba(0, 212, 255, 0.05) 0%, transparent 100%);
}

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

.footer-col h3 {
    color: var(--accent-cyan);
    margin-bottom: 20px;
    font-size: 16px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--text-secondary);
}

.footer-col ul li a:hover {
    color: var(--accent-cyan);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: var(--text-secondary);
    font-size: 12px;
}

/* Responsive Styles for Jarvis Theme */
@media (max-width: 768px) {
    .navbar-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .navbar-menu ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .navbar-actions {
        display: flex;
        justify-content: center;
        width: 100%;
        margin-top: 5px;
        margin-left: 0;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-col h3 {
        justify-content: center;
    }
    
    .jarvis-container {
        padding: 0 15px;
    }
}
