:root {
    --primary: #3b82f6;
    --primary-glow: rgba(59, 130, 246, 0.5);
    --secondary: #8b5cf6;
    --accent: #00f2ff;
    --bg-dark: #070b14;
    --card-bg: rgba(15, 23, 42, 0.6);
    --border-glow: rgba(59, 130, 246, 0.3);
    --text-main: #ffffff;
    --text-muted: #94a3b8;
}

body {
    background-color: var(--bg-dark);
    background-image:
        linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    background-attachment: fixed;
    animation: tech-bg-move 20s linear infinite;
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    margin: 0;
    min-height: 100vh;
}

@keyframes tech-bg-move {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 30px 30px;
    }
}

/* Global Tech Glows */
body::before {
    content: '';
    position: fixed;
    top: -10%;
    right: -10%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08), transparent 70%);
    z-index: -1;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    bottom: -10%;
    left: -10%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.05), transparent 70%);
    z-index: -1;
    pointer-events: none;
}

/* Glassmorphism Components */
.tech-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.5rem;
    transition: all 0.3s ease;
}

.tech-card:hover {
    border-color: var(--border-glow);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.15);
    transform: translateY(-5px);
}

/* Buttons */
.btn-tech-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--primary-glow);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-tech-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px var(--primary-glow);
    filter: brightness(1.1);
}

.btn-tech-outline {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.7rem 1.4rem;
    border-radius: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-tech-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
}

/* Inputs */
.tech-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 0.8rem 1rem;
    color: white;
    outline: none;
    transition: all 0.3s;
}

.tech-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(0, 242, 255, 0.2);
}

/* Navbar */
.tech-nav {
    background: rgba(7, 11, 20, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

/* Sidebar/Tabs Active State */
.tab-btn.active {
    background: linear-gradient(90deg, var(--primary), transparent) !important;
    color: white !important;
    border-left: 3px solid var(--accent) !important;
    padding-left: calc(1rem - 3px) !important;
}

/* Footer & Extras */
.tech-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.3);
    padding: 4rem 0 2rem;
}

.glow-text {
    text-shadow: 0 0 10px var(--primary-glow);
}

/* Animations */
@keyframes pulse-border {
    0% {
        border-color: rgba(59, 130, 246, 0.3);
    }

    50% {
        border-color: var(--primary);
    }

    100% {
        border-color: rgba(59, 130, 246, 0.3);
    }
}

.pulse-border {
    animation: pulse-border 2s infinite;
}

/* Page Loader */
#page-loader {
    position: fixed;
    inset: 0;
    background: var(--bg-dark);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

.loader-spin {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(59, 130, 246, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}