/*
 * Manish Portfolio CMS - Premium Stylesheet
 * Custom CSS Tokens and Utilities
 */

:root {
    --bg-primary: #0f111a;
    --bg-card: rgba(22, 25, 37, 0.45);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: #b0b3c6;
    --primary-color: #0d6efd;
    --transition-speed: 0.3s;
}

[data-bs-theme="light"] {
    --bg-primary: #f5f6fa;
    --bg-card: rgba(255, 255, 255, 0.7);
    --border-color: rgba(0, 0, 0, 0.08);
    --text-primary: #1e2229;
    --text-secondary: #5c6370;
    --primary-color: #0d6efd;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

.font-outfit {
    font-family: 'Outfit', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
}

/* Glassmorphism Navigation Navbar */
.glass-navbar {
    background: rgba(15, 17, 26, 0.7);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
}
[data-bs-theme="light"] .glass-navbar {
    background: rgba(245, 246, 250, 0.7);
}

.navbar-brand {
    font-size: 1.4rem;
    font-weight: 700;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    margin-left: 15px;
    transition: color var(--transition-speed) ease;
}
.nav-link:hover, .nav-link.active {
    color: var(--primary-color) !important;
}

/* Scroll Progress indicator */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #0dcaf0);
    z-index: 9999;
    width: 0%;
}

/* Theme Switcher Button */
#theme-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    background: rgba(22, 25, 37, 0.8);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(8px);
}
[data-bs-theme="light"] #theme-toggle {
    background: rgba(255, 255, 255, 0.8);
}

/* Preloader loader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

/* Card Hover effect */
.hover-scale-card {
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}
.hover-scale-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    border-color: rgba(13, 110, 253, 0.25) !important;
}

.hover-primary:hover {
    color: var(--primary-color) !important;
}

/* Timeline Custom Styles */
.tracking-wide {
    letter-spacing: 2px;
}

.progress {
    background-color: rgba(255, 255, 255, 0.05);
}
[data-bs-theme="light"] .progress {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Custom form inputs */
.form-control, .form-select {
    color: var(--text-primary) !important;
    border-radius: 8px;
    padding: 10px 15px;
    transition: all 0.2s ease;
}
.form-control:focus, .form-select:focus {
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
    border-color: var(--primary-color);
}
.form-control::placeholder {
    color: rgba(255, 255, 255, 0.3);
}
[data-bs-theme="light"] .form-control::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

.blog-body-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.blog-body-content pre {
    background-color: rgba(0,0,0,0.3);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin: 20px 0;
    overflow-x: auto;
}
