/* Modern Application Interface */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

:root {
    /* App Color Palette */
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --secondary: #8b5cf6;
    --accent: #06b6d4;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    /* Background Colors */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --bg-card: #1e293b;
    --bg-hover: #334155;
    
    /* Text Colors */
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    
    /* Border & Shadow */
    --border: #334155;
    --border-light: #475569;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    
    /* Spacing */
    --sidebar-width: 280px;
    --header-height: 70px;
    --border-radius: 12px;
    --border-radius-sm: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Application Layout */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Navigation */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 1000;
    overflow-y: auto;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-logo {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 18px;
}

.sidebar-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.sidebar-nav {
    padding: 24px 0;
}

.nav-section {
    margin-bottom: 32px;
}

.nav-section-title {
    padding: 0 24px 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    position: relative;
}

.nav-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-left-color: var(--primary);
}

.nav-item.active {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    border-left-color: var(--primary);
}

.nav-item i {
    width: 20px;
    margin-right: 12px;
    font-size: 16px;
}

.nav-badge {
    margin-left: auto;
    background: var(--danger);
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 500;
}

/* Futuristic Header with Glassmorphism */
header {
    background: linear-gradient(135deg, var(--glass-bg), rgba(0, 255, 255, 0.02));
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 20px;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: headerGlow 3s ease-in-out infinite alternate;
}

@keyframes headerGlow {
    0% { box-shadow: 0 8px 32px rgba(0, 255, 255, 0.1); }
    100% { box-shadow: 0 8px 32px rgba(255, 0, 255, 0.1); }
}

/* 3D Navigation */
nav {
    perspective: 1000px;
}

nav ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 30px;
    transform-style: preserve-3d;
}

nav ul li {
    position: relative;
    transform-style: preserve-3d;
}

nav ul li a {
    color: var(--primary-neon);
    text-decoration: none;
    font-family: 'Orbitron', monospace;
    font-weight: 600;
    font-size: 16px;
    padding: 12px 24px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

nav ul li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

nav ul li a:hover {
    color: #ffffff;
    border-color: var(--primary-neon);
    box-shadow: 
        0 0 20px rgba(0, 255, 255, 0.5),
        inset 0 0 20px rgba(0, 255, 255, 0.1);
    transform: translateY(-3px) rotateX(5deg);
    text-shadow: 0 0 10px var(--primary-neon);
}

nav ul li a:hover::before {
    left: 100%;
}

main {
    padding: 50px 20px;
}

.project {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin: 20px 0;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

/* Futuristic Footer */
footer {
    background: linear-gradient(135deg, var(--bg-darker), var(--bg-dark));
    border-top: 1px solid var(--glass-border);
    padding: 40px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-neon), var(--secondary-neon), var(--accent-neon));
    animation: footerGlow 3s ease-in-out infinite;
}

@keyframes footerGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

footer ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

footer ul li {
    position: relative;
}

footer ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 400;
    font-size: 16px;
    padding: 10px 20px;
    border-radius: 25px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid transparent;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

footer ul li a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, var(--primary-neon), transparent);
    transition: all 0.4s ease;
    transform: translate(-50%, -50%);
    z-index: -1;
}

footer ul li a:hover {
    color: #ffffff;
    border-color: var(--primary-neon);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    text-shadow: 0 0 10px var(--primary-neon);
}

footer ul li a:hover::before {
    width: 100%;
    height: 100%;
}

/* Advanced Particle System */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--primary-neon);
    border-radius: 50%;
    animation: floatParticle 15s linear infinite;
}

.particle:nth-child(2n) {
    background: var(--secondary-neon);
    animation-duration: 20s;
    width: 3px;
    height: 3px;
}

.particle:nth-child(3n) {
    background: var(--accent-neon);
    animation-duration: 25s;
    width: 1px;
    height: 1px;
}

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-10vh) translateX(100px) rotate(360deg);
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    main {
        padding: 40px 20px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .project {
        padding: 20px;
    }
    
    nav ul {
        flex-direction: column;
        gap: 15px;
    }
    
    footer ul {
        flex-direction: column;
        gap: 15px;
    }
}

/* Utility Classes */
.glow-text {
    text-shadow: 0 0 10px currentColor;
}

.hologram-effect {
    background: linear-gradient(45deg, var(--hologram-blue), var(--hologram-purple), var(--hologram-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pulse-animation {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}
