/* Premium UI/UX Overrides for Ssekimuli Andrew Portfolio */

:root {
    --primary: #8B5CF6;
    /* Electric Violet */
    --primary-gradient: linear-gradient(135deg, #8B5CF6 0%, #D946EF 100%);
    --primary-hover: #7C3AED;
    --bg-dark: #020617;
    /* Deep Navy Space */
    --sidebar-bg: #0F172A;
    /* Slate 900 */
    --card-bg: rgba(30, 41, 59, 0.4);
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --border-glass: rgba(255, 255, 255, 0.08);
    --selection-bg: rgba(139, 92, 246, 0.3);
}

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

/* Base Styles */
*::selection {
    background: var(--selection-bg);
}

body {
    background-color: var(--bg-dark) !important;
    font-family: 'Outfit', sans-serif !important;
    color: var(--text-main) !important;
    overflow-x: hidden;
}

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

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.2);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

.wrapper {
    max-width: 1400px !important;
    background-color: var(--bg-dark) !important;
}

/* Sidebar Styling */
.wrapper .sidebar {
    background: var(--sidebar-bg) !important;
    border-right: 1px solid var(--border-glass);
    color: var(--text-main) !important;
    box-shadow: 10px 0 50px rgba(0, 0, 0, 0.3);
    z-index: 100 !important;
}

.sidebar img {
    border: 3px solid var(--primary);
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar h1 {
    color: #FFFFFF !important;
}

.sidebar img:hover {
    transform: scale(1.03) rotate(1deg);
    border-color: #D946EF;
}

.sidebar a i {
    color: var(--text-muted);
    transition: 0.3s;
}

.sidebar a i:hover {
    color: var(--primary);
    transform: translateY(-3px);
}

.typed-text-output {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700 !important;
    font-size: 1.1rem;
}

.typed-cursor {
    color: #D946EF !important;
    font-size: 1.2rem;
}

/* Content Area Glassmorphism */
.wrapper .content {
    background: var(--bg-dark) !important;
    padding: 40px !important;
}

.container.bg-white {
    background: var(--card-bg) !important;
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass) !important;
    border-radius: 28px !important;
    margin-bottom: 50px !important;
    padding: 50px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25) !important;
    color: var(--text-main) !important;
}

.wrapper .content::before,
.wrapper .content::after {
    display: none !important;
    /* Remove legacy fixed backgrounds */
}

/* Typography */
h2.title {
    color: #FFFFFF !important;
    font-size: 2.2rem !important;
    letter-spacing: -0.5px;
}

h2.title::after {
    background: var(--primary-gradient) !important;
    width: 80px !important;
    height: 4px !important;
    border-radius: 2px;
}

h5.text-primary,
.service-item h5,
.border-left h5,
b,
strong {
    color: #FFFFFF !important;
}

.border-left h5 {
    color: #38BDF8 !important;
    font-weight: 600 !important;
}

p,
.text-body,
.text-muted {
    color: var(--text-muted) !important;
    line-height: 1.7 !important;
}

/* Buttons */
.btn-primary {
    background: var(--primary-gradient) !important;
    border: none !important;
    border-radius: 14px !important;
    padding: 14px 32px !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.5) !important;
}

.btn-outline-primary {
    color: var(--text-main) !important;
    border: 1px solid var(--border-glass) !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border-radius: 12px !important;
    padding: 8px 18px !important;
}

.btn-outline-primary:hover,
.btn-outline-primary.active {
    background: var(--primary-gradient) !important;
    border-color: transparent !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.3) !important;
}

/* Timeline/Experience */
.border-left.border-primary {
    border-left: 2px solid var(--border-glass) !important;
}

.fa-arrow-right {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.1rem;
}

/* Skills */
.progress {
    background-color: rgba(255, 255, 255, 0.05) !important;
    height: 10px !important;
    border-radius: 6px !important;
    overflow: visible !important;
}

.progress .progress-bar {
    background: var(--primary-gradient) !important;
    border-radius: 6px;
    position: relative;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
}

/* Projects/Cards */
.card {
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid var(--border-glass) !important;
    border-radius: 20px !important;
    overflow: hidden;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.card:hover {
    transform: translateY(-8px) scale(1.01);
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(139, 92, 246, 0.3) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3) !important;
}

.card-title {
    color: #FFFFFF !important;
    /* Changed from Sky Blue to White for consistency */
    font-weight: 700 !important;
    font-size: 1.3rem !important;
    margin-bottom: 12px !important;
}

.icon-wrapper i {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.portfolio-item .portfolio-btn {
    background: rgba(139, 92, 246, 0.2) !important;
    backdrop-filter: blur(8px);
    border: 1px solid var(--primary) !important;
    border-radius: 20px;
}

.portfolio-item:hover .portfolio-btn {
    width: calc(100% - 40px) !important;
    height: calc(100% - 40px) !important;
    top: 20px !important;
    left: 20px !important;
}

/* Service Items */
.service-item h5 {
    color: #FFFFFF !important;
}

.service-item i {
    width: 80px;
    height: 80px;
    border: 1px solid var(--border-glass) !important;
    background: rgba(255, 255, 255, 0.02) !important;
    color: var(--primary) !important;
    border-radius: 20px !important;
    transition: 0.4s !important;
}

.service-item:hover i {
    background: var(--primary-gradient) !important;
    -webkit-text-fill-color: #fff !important;
    transform: rotate(10deg);
}

/* Portfolio Gallery Filter */
#portfolio-flters {
    background: rgba(255, 255, 255, 0.02);
    padding: 12px;
    border-radius: 20px;
    border: 1px solid var(--border-glass);
    margin-bottom: 30px !important;
}

/* Contact Form */
.contact-form input,
.contact-form textarea {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid var(--border-glass) !important;
    border-radius: 12px !important;
    color: var(--text-main) !important;
    padding: 15px !important;
    transition: 0.3s !important;
}

.contact-form input:focus,
.contact-form textarea:focus {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.2) !important;
    outline: none !important;
}

/* Animations */
.content>div {
    animation: slideInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* Footer */
.container-fluid.bg-white {
    background: var(--bg-dark) !important;
}

.bg-dark {
    background-color: #0F172A !important;
    border-top: 1px solid var(--border-glass);
    border-radius: 30px 30px 0 0;
}

/* Mobile Responsiveness */
@media (max-width: 991.98px) {
    .wrapper .sidebar {
        margin-left: -350px !important;
        position: fixed !important;
    }

    .wrapper .sidebar:hover {
        margin-left: 0 !important;
    }

    .wrapper .content {
        margin-left: 0 !important;
        width: 100% !important;
        padding: 20px !important;
    }
}

@media (max-width: 767.98px) {
    .wrapper .sidebar {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        margin-left: 0 !important;
        border-right: none !important;
        border-bottom: 1px solid var(--border-glass) !important;
        display: block !important;
    }

    .sidebar-icon {
        display: none !important;
    }

    .wrapper .content {
        margin-left: 0 !important;
        width: 100% !important;
        padding: 15px !important;
    }

    .container.bg-white {
        padding: 30px !important;
        border-radius: 20px !important;
    }
}