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

:root {
    --primary: #00f2fe;
    --secondary: #4facfe;
    --accent: #7000ff;
    --bg-dark: #0a0c10;
    --bg-card: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --sidebar-width: 280px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

/* Layout */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
aside {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    border-right: 1px solid var(--border);
    background: rgba(10, 12, 16, 0.8);
    backdrop-filter: blur(20px);
    z-index: 100;
    display: flex;
    flex-direction: column;
    padding: 2rem 1.5rem;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.logo-container img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.logo-container span {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav ul {
    list-style: none;
}

nav li {
    margin-bottom: 0.5rem;
}

nav a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 500;
    transition: var(--transition);
}

nav a i {
    margin-right: 12px;
    font-size: 1.2rem;
}

nav a:hover,
nav a.active {
    background: var(--bg-card);
    color: var(--text-primary);
}

nav a.active {
    box-shadow: inset 0 0 0 1px var(--border);
    background: rgba(0, 242, 254, 0.1);
    color: var(--primary);
}

/* Main Content */
main {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 4rem 6rem;
    max-width: 1200px;
}

section {
    display: none;
    animation: fadeIn 0.5s ease;
}

section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Typography & Content */
header {
    margin-bottom: 4rem;
}

header h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

header p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 800px;
}

.content-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    transition: var(--transition);
}

.content-block:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

code {
    font-family: 'Fira Code', monospace;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
}

pre {
    background: #000;
    padding: 1.5rem;
    border-radius: 16px;
    overflow-x: auto;
    margin: 1.5rem 0;
    border: 1px solid var(--border);
}

pre code {
    background: transparent;
    padding: 0;
    color: #e0e0e0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

th,
td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
}

/* Custom UI Components */
.tip {
    background: rgba(0, 242, 254, 0.1);
    border-left: 4px solid var(--primary);
    padding: 1.5rem;
    border-radius: 0 12px 12px 0;
    margin: 2rem 0;
}

.important {
    background: rgba(255, 64, 129, 0.1);
    border-left: 4px solid #ff4081;
    padding: 1.5rem;
    border-radius: 0 12px 12px 0;
    margin: 2rem 0;
}

/* Skill Explorer */
.ecosystem-controls {
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.search-wrapper {
    position: relative;
    max-width: 500px;
}

.search-wrapper i {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

#skill-search {
    width: 100%;
    padding: 1rem 1rem 1rem 3.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

#skill-search:focus {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.1);
}

.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tag {
    padding: 0.5rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-secondary);
}

.tag:hover {
    border-color: var(--primary);
    color: var(--text-primary);
}

.tag.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #000;
    font-weight: 600;
}

.skill-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.skill-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: var(--transition);
    animation: fadeIn 0.4s ease;
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.skill-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.skill-category-pill {
    padding: 0.2rem 0.6rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.skill-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Language Selector */
.lang-selector {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1000;
    background: var(--bg-card);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 0.5rem;
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-secondary);
    border: 1px solid transparent;
}

.lang-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.lang-btn.active {
    background: var(--primary);
    color: #000;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 1024px) {
    aside {
        width: 80px;
        padding: 2rem 1rem;
    }

    .logo-container span,
    nav a span {
        display: none;
    }

    main {
        margin-left: 80px;
        padding: 2rem;
    }
}