:root {
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --card-border: rgba(0, 0, 0, 0.1);
    --text-main: #212529;
    --text-muted: #6c757d;
    --primary-orange: #f97316;
    --glass-nav: rgba(255, 255, 255, 0.95);
    --shadow-color: rgba(0,0,0,0.05);
    --readme-bg: #ffffff;
    --input-bg: #ffffff;
}

body.dark-mode {
    --bg-color: #0a0a0a;
    --card-bg: #161616; 
    --card-border: rgba(255, 255, 255, 0.1);
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --glass-nav: rgba(10, 10, 10, 0.9);
    --shadow-color: rgba(0,0,0,0.3);
    --readme-bg: #161b22;
    --input-bg: #2d2d2d;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    padding-top: 80px;
    transition: background-color 0.3s, color 0.3s;
}


.dark-mode .background-glow {
    position: fixed;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(249,115,22,0.15) 0%, rgba(0,0,0,0) 70%);
    z-index: -1;
    pointer-events: none;
}


.glass-nav {
    background: var(--glass-nav);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border);
    transition: all 0.3s ease;
}

.navbar-brand span { color: var(--text-main); }

.nav-link {
    color: var(--text-muted) !important;
    font-weight: 500;
}
.nav-link:hover { color: var(--primary-orange) !important; }

#toggleDarkModeButton {
    color: var(--text-main);
    border: none;
    background: transparent;
    cursor: pointer;
}


.hero-section { padding: 60px 0; }

.avatar-container {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 3px solid var(--card-bg);
    box-shadow: 0 5px 15px var(--shadow-color);
    object-fit: cover;
}

.status-badge {
    position: absolute;
    bottom: 10px;
    right: 5px;
    background: var(--card-bg);
    border: 2px solid var(--primary-orange); 
    color: var(--primary-orange);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    box-shadow: 0 4px 20px var(--shadow-color);
    backdrop-filter: blur(10px);
}

.text-orange { color: var(--primary-orange); }


/* --- INFINITE SCROLL --- */
.tech-scroller {
    overflow: hidden;
    width: 100%;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.tech-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: scrollTech 20s linear infinite;
    padding: 10px 0;
}

.tech-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text-muted);
    width: 70px; 
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    font-size: 2rem;
    transition: all 0.3s ease;
    flex-shrink: 0; 
}


.tech-scroller:hover .tech-track {
    animation-play-state: paused;
}

.tech-item:hover {
    border-color: var(--primary-orange);
    color: var(--primary-orange);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 5px 15px rgba(249,115,22,0.3);
}

@keyframes scrollTech {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } 
}

.repo-card .card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    transition: all 0.3s ease;
    height: 100%;
}
.repo-card h5 {
    color: var(--text-main) !important;
    font-weight: 700;
}
.repo-card p { color: var(--text-muted); }

.repo-card:hover .card {
    transform: translateY(-5px);
    border-color: var(--primary-orange);
    box-shadow: 0 10px 20px var(--shadow-color);
}


.readme-container {
    background-color: var(--readme-bg);
    color: var(--text-main);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 30px;
    margin-top: 20px;
    box-shadow: 0 4px 15px var(--shadow-color);
    overflow-x: auto; 
}
.readme-container img { max-width: 100%; height: auto; border-radius: 8px; }
.readme-container a { color: #0078d7; text-decoration: underline; }
.readme-container pre {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
}
.readme-container code {
    background: rgba(127, 127, 127, 0.2);
    padding: 2px 4px;
    border-radius: 4px;
    font-family: monospace;
}


.custom-lang-select {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text-main);
    border-radius: 20px;
    padding: 5px 15px;
    outline: none;
    cursor: pointer;
}

.custom-lang-select option {
    background-color: var(--card-bg);
    color: var(--text-main);
}

body:not(.dark-mode) .custom-lang-select option {
    color: #000;
    background: #fff;
}


.btn-orange {
    background-color: var(--primary-orange);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 10px 30px;
}
.btn-orange:hover { background-color: #ea580c; color: white; }

.social-btn {
    width: 45px;
    height: 45px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    transition: all 0.3s;
}
.social-btn:hover {
    background: var(--primary-orange);
    color: white;
    text-decoration: none;
}

#scrollToTopBtn {
    background: var(--primary-orange);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    position: fixed; bottom: 30px; right: 30px;
    border: none; color: white; display: none; z-index: 100;
}


.assistant-btn {
  margin-left: 20px;
  padding: 6px 14px;
  border-radius: 8px;
  border: none;
  background: #0078d7;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.3s ease;
}
.assistant-btn:hover { background: #005a9e; }

#assistant-panel {
  position: fixed;
  top: -100%;
  left: 0;
  width: 100%;
  height: 70%;
  backdrop-filter: blur(10px);
  background: var(--card-bg); 
  color: var(--text-main);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  border-bottom: 3px solid #0078d7;
  transition: top 0.5s ease;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  border-radius: 0 0 20px 20px;
}
#assistant-panel.open { top: 0; }

.assistant-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: rgba(0,0,0,0.05);
  border-bottom: 1px solid var(--card-border);
}

.assistant-header h3 { margin: 0; font-size: 20px; color: #0078d7; }
.assistant-header button { border: none; background: transparent; font-size: 20px; cursor: pointer; color: inherit; }

.assistant-tabs {
  display: flex;
  background: rgba(0,0,0,0.03);
  border-bottom: 1px solid var(--card-border);
}
.assistant-tabs .tab-btn {
  flex: 1; padding: 12px; border: none; background: transparent;
  cursor: pointer; font-weight: 600; color: inherit;
}
.assistant-tabs .tab-btn.active { background: #0078d7; color: #fff; }

.assistant-content { flex: 1; overflow: auto; padding: 20px; }
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.3s ease; }

#notes-area, #snippets-area {
  width: 100%; height: 220px; 
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 12px; font-size: 14px; resize: none;
  background: var(--input-bg);
  color: var(--text-main);
}
.todo-input input {
    background: var(--input-bg);
    border: 1px solid var(--card-border);
    color: var(--text-main);
    padding: 5px; border-radius: 5px;
}



#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color); 
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.loader-content {
    text-align: center;
    color: var(--text-main);
}


.animate-pulse {
    animation: pulse 1.5s infinite;
    color: var(--text-muted);
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

@keyframes pulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}


.loaded #preloader {
    opacity: 0;
    visibility: hidden;
}


body.loading-state {
    overflow: hidden;
}

.navbar-toggler:focus,
.navbar-toggler:active {
    outline: none;
    box-shadow: none;
}


/* --- RUST LAUNCHER STYLES --- */
.rust-card-container {
    position: relative;
    border-radius: 20px;
    z-index: 1;
}

.rust-glow-effect {
    position: absolute;
    top: -5px; left: -5px; right: -5px; bottom: -5px;
    background: linear-gradient(45deg, #f97316, #ce422b, #000);
    z-index: -1;
    border-radius: 24px;
    filter: blur(20px);
    opacity: 0.6;
    animation: glowPulse 4s infinite alternate;
}

@keyframes glowPulse {
    0% { opacity: 0.4; filter: blur(15px); }
    100% { opacity: 0.7; filter: blur(25px); }
}

.rust-card-body {
    background: #0f0f0f;
    transform-style: preserve-3d;
    transform: perspective(1000px);
}

.preview-section {
    min-height: 300px;
    height: 100%;
    padding: 0; 
    background: #000;
}

.launcher-img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    object-position: center top; 
    border-radius: 0; 
    display: block;
}


.tech-badges-floating {
    position: absolute;
    bottom: 20px; left: 20px;
    display: flex; gap: 10px;
}


.features-grid {
    display: flex;
    gap: 20px;
}
.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.feature-item i { font-size: 1.2rem; }


.btn-play {
    position: relative;
    overflow: hidden;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.launcher-img, .tech-badges-floating, .btn-play {
    transform: translateZ(20px); 
}


.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
    padding: 10px;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    flex: 1; 
}

.feature-item i {
    font-size: 1.4rem;
    transition: all 0.3s ease;
}

::-webkit-scrollbar { width: 6px;}
::-webkit-scrollbar-track { background: rgba(255,255,255,0.05); }
::-webkit-scrollbar-thumb { background: #3d2b02; border-radius: 3px; }


/* --- RUST STATS --- */

.stats-glow {
    background: linear-gradient(45deg, #0078d7, #00bfff, #000);
}

.text-blue {
    color: #00bfff;
}

.btn-blue {
    background-color: #0078d7;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 10px 30px;
}
.btn-blue:hover {
    background-color: #005a9e;
    color: white;
    box-shadow: 0 0 15px rgba(0, 120, 215, 0.4);
}

.feature-item i.text-blue {
    color: #00bfff;
}
.feature-item:hover i.text-blue {
    color: #00bfff !important;
    filter: drop-shadow(0 0 8px rgba(0, 191, 255, 0.5));
}

.img-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 70%, rgba(0,0,0,0.6) 100%);
    pointer-events: none;
    z-index: 1;
}

.description-text.small {
    font-size: 0.9rem;
    line-height: 1.5;
}

/* --- MY DEV HUB STYLES --- */

.purple-glow {
    background: linear-gradient(45deg, #8b5cf6, #d946ef, #4c1d95);
}

.text-purple {
    color: #a78bfa;
}

.btn-purple {
    background-color: #7c3aed;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 10px 30px;
    transition: all 0.3s ease;
}

.btn-purple:hover {
    background-color: #5b21b6;
    color: white;
    box-shadow: 0 0 15px rgba(124, 58, 237, 0.4);
}

.badge-purple {
    background-color: #7c3aed;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
}

.feature-item i.text-purple {
    color: #a78bfa;
}
.feature-item:hover i.text-purple {
    color: #a78bfa !important;
    filter: drop-shadow(0 0 8px rgba(167, 139, 250, 0.6));
}