:root {
    --txt-color: #F0F4EF;
    --bg-color: #0D1821;
    --prim-color: #B4CDED;
    --sec-color: #344966;
    --acc-color: #8c89ff;
    --danger-color: #BA1F33;
    --border-dark: rgba(180, 205, 237, 0.2);
    --border-bright: rgba(180, 205, 237, 0.8);
    --sidebar-width: 280px;
    --sidebar-collapsed-width: 60px;
}

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

body {
    background: radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--txt-color);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Network Background Animation */
.network-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

#networkCanvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    background: rgba(13, 24, 33, 0.9);
    border: 1px solid var(--border-dark);
    border-radius: 8px;
    padding: 12px;
    color: var(--txt-color);
    font-size: 20px;
    cursor: pointer;
    display: none;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(13, 24, 33, 1);
    border-color: var(--border-bright);
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: rgba(13, 24, 33, 0.95);
    backdrop-filter: blur(15px);
    border-right: 1px solid var(--border-dark);
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
}

.sidebar.mobile-hidden {
    transform: translateX(-100%);
}

.sidebar-header {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-dark);
    min-height: 80px;
    flex-shrink: 0;
}

.sidebar-toggle {
    background: none;
    border: none;
    color: var(--txt-color);
    font-size: 20px;
    cursor: pointer;
    padding: 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
    margin-right: 15px;
    flex-shrink: 0;
}

.sidebar-toggle:hover {
    background: rgba(180, 205, 237, 0.1);
    color: var(--prim-color);
}

.sidebar-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--prim-color);
    transition: all 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
}

.sidebar.collapsed .sidebar-title {
    opacity: 0;
    width: 0;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
}

.nav-list {
    list-style: none;
}

.nav-list li {
    margin-bottom: 5px;
}

.nav-separator {
    color: var(--sec-color);
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    padding: 15px 20px 10px 20px;
    border-top: 1px solid var(--border-dark);
    margin-top: 10px;
    transition: all 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
}

.sidebar.collapsed .nav-separator {
    opacity: 0;
    height: 0;
    padding: 0;
    margin: 0;
    border: none;
}

.nav-link {
    display: flex;
    align-items: center;
    color: var(--txt-color);
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 4px;
    margin: 0 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.nav-link .nav-icon {
    margin-right: 12px;
    font-size: 16px;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

.nav-link .nav-text {
    transition: all 0.3s ease;
}

.sidebar.collapsed .nav-link .nav-text {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

.sidebar.collapsed .nav-link {
    padding: 12px 15px;
    margin: 0 5px;
    justify-content: center;
}

.sidebar.collapsed .nav-link .nav-icon {
    margin-right: 0;
}

.nav-link:hover {
    background: rgba(180, 205, 237, 0.1);
    color: var(--prim-color);
    transform: translateX(5px);
}

.sidebar.collapsed .nav-link:hover {
    transform: translateX(0) scale(1.1);
}

.nav-link.active {
    background: rgba(180, 205, 237, 0.2);
    color: var(--prim-color);
    border-left: 3px solid var(--prim-color);
}

.nav-link.external::after {
    content: "↗";
    font-size: 12px;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.sidebar.collapsed .nav-link.external::after {
    opacity: 0;
    width: 0;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--border-dark);
    text-align: center;
    flex-shrink: 0;
}

.sidebar-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(180, 205, 237, 0.1);
    border: 1px solid var(--border-dark);
    border-radius: 50%;
    color: var(--txt-color);
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(180, 205, 237, 0.2);
    border-color: var(--border-bright);
    color: var(--prim-color);
    transform: scale(1.1);
}

.sidebar.collapsed .sidebar-social {
    gap: 5px;
}

.sidebar.collapsed .social-link {
    width: 30px;
    height: 30px;
    font-size: 14px;
}

.sidebar-logo {
    max-width: 100px;
    height: auto;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.sidebar-logo:hover {
    opacity: 1;
    transform: scale(1.05);
}

.sidebar.collapsed .sidebar-logo {
    max-width: 30px;
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    padding: 40px;
    transition: margin-left 0.3s ease;
}

.main-content.expanded {
    margin-left: var(--sidebar-collapsed-width);
}

.page-header {
    text-align: center;
    margin-bottom: 60px;
    padding: 40px 0;
    background: rgba(13, 24, 33, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid var(--border-dark);
}

.page-header h1 {
    font-size: 3rem;
    color: var(--prim-color);
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(180, 205, 237, 0.3);
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--txt-color);
    opacity: 0.8;
}

/* Content Sections */
.content {
    max-width: 1200px;
    margin: 0 auto;
}

.hero-section,
.tools-section,
.community-section,
.about-creator {
    margin-bottom: 60px;
    padding: 40px;
    background: rgba(13, 24, 33, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid var(--border-dark);
    transition: all 0.3s ease;
}

.hero-section:hover,
.tools-section:hover,
.community-section:hover,
.about-creator:hover {
    border-color: var(--border-bright);
    transform: translateY(-5px);
}

.hero-section h2,
.tools-section h2,
.community-section h2,
.about-creator h2 {
    color: var(--prim-color);
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-align: center;
}

.hero-content p,
.community-content p,
.creator-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--txt-color);
}

/* Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.tool-card {
    background: rgba(52, 73, 102, 0.3);
    border: 1px solid var(--border-dark);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(180, 205, 237, 0.1), transparent);
    transition: left 0.5s ease;
}

.tool-card:hover::before {
    left: 100%;
}

.tool-card:hover {
    transform: translateY(-10px);
    border-color: var(--border-bright);
    box-shadow: 0 10px 30px rgba(180, 205, 237, 0.2);
}

.tool-card h3 {
    color: var(--prim-color);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.tool-card p {
    color: var(--txt-color);
    line-height: 1.6;
    margin-bottom: 20px;
}

.tool-link {
    display: inline-block;
    background: var(--acc-color);
    color: var(--bg-color);
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.tool-link:hover {
    background: var(--prim-color);
    transform: scale(1.05);
}

/* Community Features */
.community-features {
    list-style: none;
    margin: 30px 0;
}

.community-features li {
    padding: 15px 0;
    border-bottom: 1px solid var(--border-dark);
    font-size: 1.1rem;
    line-height: 1.6;
}

.community-features li:last-child {
    border-bottom: none;
}

.community-features strong {
    color: var(--prim-color);
}

/* Creator Link */
.creator-link {
    display: inline-block;
    color: var(--acc-color);
    text-decoration: none;
    font-weight: bold;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.creator-link:hover {
    color: var(--prim-color);
    border-bottom-color: var(--prim-color);
}

/* Profile Page Styles */
.profile-section {
    margin-bottom: 60px;
}

.profile-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    align-items: start;
}

.profile-image {
    text-align: center;
}

.profile-photo {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--prim-color);
    box-shadow: 0 10px 30px rgba(180, 205, 237, 0.3);
}

.profile-info h2 {
    color: var(--prim-color);
    margin-bottom: 20px;
}

.expertise-grid,
.traits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.expertise-card,
.trait-card {
    background: rgba(52, 73, 102, 0.3);
    border: 1px solid var(--border-dark);
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.expertise-card:hover,
.trait-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-bright);
}

.expertise-card h3,
.trait-card h4 {
    color: var(--prim-color);
    margin-bottom: 10px;
}

.contact-info {
    margin-top: 20px;
}

.contact-info a {
    color: var(--acc-color);
    text-decoration: none;
}

.contact-info a:hover {
    color: var(--prim-color);
}

/* Legal Page Styles */
.legal-section {
    margin-bottom: 40px;
}

.legal-content {
    line-height: 1.8;
}

.legal-content h2 {
    color: var(--prim-color);
    margin-bottom: 30px;
}

.legal-content h3 {
    color: var(--prim-color);
    margin: 30px 0 20px 0;
}

.legal-content h4 {
    color: var(--prim-color);
    margin: 20px 0 15px 0;
}

.contact-details {
    background: rgba(52, 73, 102, 0.3);
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid var(--prim-color);
}

/* Sources Page Styles */
.sources-list {
    list-style: none;
}

.sources-list li {
    background: rgba(52, 73, 102, 0.3);
    border: 1px solid var(--border-dark);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.sources-list li:hover {
    transform: translateY(-2px);
    border-color: var(--border-bright);
}

.sources-list h4 {
    color: var(--prim-color);
    margin-bottom: 10px;
}

.coming-soon {
    text-align: center;
    padding: 80px 40px;
    background: rgba(13, 24, 33, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid var(--border-dark);
}

.coming-soon h2 {
    color: var(--prim-color);
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.coming-soon p {
    font-size: 1.2rem;
    opacity: 0.8;
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .sidebar {
        width: 100%;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.mobile-open {
        transform: translateX(0);
    }
    
    .sidebar.collapsed {
        width: 100%;
        transform: translateX(-100%);
    }
    
    .main-content {
        margin-left: 0;
        padding: 80px 20px 20px 20px;
    }
    
    .main-content.expanded {
        margin-left: 0;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .hero-section h2,
    .tools-section h2,
    .community-section h2,
    .about-creator h2 {
        font-size: 2rem;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .hero-section,
    .tools-section,
    .community-section,
    .about-creator {
        padding: 20px;
    }
    
    .profile-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .profile-photo {
        width: 200px;
        height: 200px;
    }
    
    .expertise-grid,
    .traits-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-details {
        text-align: left;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(180, 205, 237, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(180, 205, 237, 0.5);
}

/* Mobile Overlay */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

.mobile-overlay.active {
    display: block;
}

@media (max-width: 768px) {
    .mobile-overlay.active {
        display: block;
    }
}