/* Custom CSS for Portfolio Website */

/* Root Variables */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --font-family: 'Inter', sans-serif;
    --transition: all 0.3s ease;
    --shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

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

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--dark-color);
    scroll-behavior: smooth;
}

/* Ensure Bootstrap text-primary class works */
.text-primary {
    color: var(--primary-color) !important;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar-brand {
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--dark-color) !important;
    margin: 0 0.5rem;
    transition: var(--transition);
    position: relative;
}

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

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding-top: 80px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.hero-content .lead {
    font-size: 1.25rem;
    color: var(--secondary-color);
}

.hero-image img {
    width: 400px;
    height: 400px;
    object-fit: cover;
    border: 5px solid white;
    transition: var(--transition);
}

.hero-image img:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.hero-buttons .btn {
    padding: 12px 30px;
    font-weight: 500;
    border-radius: 50px;
    transition: var(--transition);
}

.hero-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* About Section */
.about-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid #e9ecef;
    height: 100%;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.about-card i {
    transition: var(--transition);
}

.about-card:hover i {
    transform: scale(1.1);
}

/* Skills Section */
.skill-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid #e9ecef;
    height: 100%;
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.skill-card i {
    transition: var(--transition);
}

.skill-card:hover i {
    transform: scale(1.1) rotate(5deg);
}

.skill-card h5 {
    margin: 1rem 0;
    color: var(--dark-color);
}

.skill-card p {
    color: var(--secondary-color);
    margin: 0;
}

/* Projects Section */
.project-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid #e9ecef;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.project-image {
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 123, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-content {
    padding: 1.5rem;
}

.project-content h5 {
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.project-content p {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.project-tech .badge {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
}

/* Contact Section */
.contact-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid #e9ecef;
    height: 100%;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.contact-card i {
    transition: var(--transition);
}

.contact-card:hover i {
    transform: scale(1.1);
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.contact-form .form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 12px 15px;
    transition: var(--transition);
}

.contact-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.contact-form .btn {
    padding: 12px 40px;
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition);
}

.contact-form .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Footer */
footer {
    background: var(--dark-color) !important;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Scroll to top button */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 1000;
}

.scroll-to-top:hover {
    background: #0056b3;
    transform: translateY(-3px);
}

.scroll-to-top.show {
    display: flex;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content .lead {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-image img {
        width: 300px;
        height: 300px;
        margin-top: 2rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .about-card,
    .skill-card,
    .contact-card {
        margin-bottom: 2rem;
    }
    
    .project-card {
        margin-bottom: 2rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .hero-image img {
        width: 250px;
        height: 250px;
    }
    
    .about-card,
    .skill-card,
    .contact-card {
        padding: 1.5rem;
    }
    
    .contact-form {
        padding: 1rem;
    }
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--info-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-custom {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.border-gradient {
    border: 2px solid;
    border-image: linear-gradient(135deg, var(--primary-color), var(--info-color)) 1;
}

/* Loading Animation */
.loading {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.loading.loaded {
    opacity: 1;
    transform: translateY(0);
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}

/* Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Page Transition Overlay */
.page-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    animation: fadeInOverlay 0.3s ease forwards;
}

@keyframes fadeInOverlay {
    to {
        opacity: 1;
    }
}

.transition-content {
    text-align: center;
    color: white;
}

.transition-content p {
    margin-top: 1rem;
    font-size: 1.2rem;
    font-weight: 500;
}

/* Enhanced Spinner */
.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced Click Effects */
.btn, .nav-link, .project-card, .skill-card, .about-card, .contact-card {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.btn:active, .nav-link:active {
    transform: scale(0.95);
}

/* Auto-navigation indicator */
.nav-link.active::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

/* Enhanced hover effects for cards */
.project-card:hover, .skill-card:hover, .about-card:hover, .contact-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Loading animation for images */
img {
    transition: opacity 0.5s ease, transform 0.3s ease;
}

img:hover {
    transform: scale(1.05);
}

/* Pulse animation for important elements */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Floating animation */
.float {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Slide in from left animation */
.slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Slide in from right animation */
.slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Bounce animation */
.bounce {
    animation: bounce 1s ease infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Keyboard navigation indicator */
.keyboard-nav {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Auto-rotate indicator */
.auto-nav-indicator {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    background: rgba(0, 123, 255, 0.8);
    color: white;
    padding: 10px;
    border-radius: 50px;
    font-size: 0.9rem;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.auto-nav-indicator.show {
    opacity: 1;
}

/* Enhanced form focus effects */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    transform: scale(1.02);
}

/* Social links enhanced hover */
.social-links a:hover {
    transform: translateY(-3px) scale(1.2);
    background: var(--primary-color);
}

/* Timeline Styles */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.timeline-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.timeline-marker {
    position: absolute;
    left: -37px;
    top: 20px;
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
}

.timeline-content h4 {
    color: var(--dark-color);
    margin-bottom: 5px;
}

.timeline-company {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 5px;
}

.timeline-date {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.timeline-content ul {
    margin: 0;
    padding-left: 20px;
}

.timeline-content li {
    margin-bottom: 5px;
    color: var(--secondary-color);
}

/* Achievement Cards */
.achievement-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid #e9ecef;
    height: 100%;
}

.achievement-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.achievement-card i {
    transition: var(--transition);
}

.achievement-card:hover i {
    transform: scale(1.1);
}

/* Passion Cards */
.passion-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid #e9ecef;
    height: 100%;
}

.passion-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.passion-card i {
    transition: var(--transition);
}

.passion-card:hover i {
    transform: scale(1.1) rotate(5deg);
}

/* Interest Items */
.interest-item {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid #e9ecef;
    height: 100%;
}

.interest-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.interest-item i {
    transition: var(--transition);
}

.interest-item:hover i {
    transform: scale(1.1);
}

/* Values List */
.values-list {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.value-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 8px;
    transition: var(--transition);
}

.value-item:hover {
    background: #f8f9fa;
}

.value-item i {
    margin-top: 2px;
}

/* Certification Cards */
.cert-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid #e9ecef;
    height: 100%;
}

.cert-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.cert-card i {
    transition: var(--transition);
}

.cert-card:hover i {
    transform: scale(1.1);
}

/* Learning Areas */
.learning-areas {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.learning-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 8px;
    transition: var(--transition);
    border: 1px solid #e9ecef;
    margin-bottom: 10px;
}

.learning-item:hover {
    background: #f8f9fa;
    border-color: var(--primary-color);
    transform: translateX(5px);
}

/* Achievements List */
.achievements-list {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.achievement-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 8px;
    transition: var(--transition);
}

.achievement-item:hover {
    background: #f8f9fa;
}

.achievement-item i {
    margin-top: 2px;
    font-size: 1.5rem;
}

.achievement-item strong {
    display: block;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.achievement-item p {
    margin: 0;
    color: var(--secondary-color);
}

/* Passion Hero */
.passion-hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 3rem;
    border-radius: 20px;
    margin-bottom: 3rem;
}

/* Education Hero */
.education-hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 3rem;
    border-radius: 20px;
    margin-bottom: 3rem;
}

/* Live Features Styles */
.live-chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    max-width: 350px;
}

.chat-toggle {
    background: var(--primary-color);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
    transition: all 0.3s ease;
    position: relative;
    font-size: 1.2rem;
}

.chat-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.chat-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.chat-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 300px;
    height: 400px;
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}

.chat-header {
    background: var(--primary-color);
    color: white;
    padding: 15px;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h6 {
    margin: 0;
    font-weight: 600;
}

.chat-status {
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 10px;
}

.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.welcome-message {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 10px;
    font-size: 0.9rem;
    color: #666;
}

.chat-message {
    max-width: 80%;
    padding: 8px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    word-wrap: break-word;
}

.chat-message.visitor {
    background: var(--primary-color);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 5px;
}

.chat-message.admin {
    background: #e9ecef;
    color: #333;
    align-self: flex-start;
    border-bottom-left-radius: 5px;
}

.message-content {
    display: flex;
    flex-direction: column;
}

.message-text {
    margin-bottom: 2px;
}

.message-time {
    font-size: 0.7rem;
    opacity: 0.7;
}

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 8px 12px;
    background: #e9ecef;
    border-radius: 15px;
    align-self: flex-start;
    max-width: 60px;
}

.typing-indicator i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #666;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-indicator i:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator i:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.chat-input-container {
    padding: 15px;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 10px;
    align-items: center;
}

.chat-input {
    flex: 1;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    padding: 8px 15px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.chat-input:focus {
    border-color: var(--primary-color);
}

.send-button {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.send-button:hover {
    background: #0056b3;
    transform: scale(1.1);
}

.send-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Live Features Panel */
.live-features-panel {
    position: fixed;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    z-index: 999;
}

.live-features-toggle {
    background: rgba(0, 123, 255, 0.9);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.live-features-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.live-features-content {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-left: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    min-width: 200px;
    position: absolute;
    top: 0;
    left: 100%;
}

.live-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
}

.live-feature-item:last-child {
    border-bottom: none;
}

.live-feature-item i {
    color: var(--primary-color);
    width: 16px;
}

/* Connection Status Styles */
#connection-status.online {
    color: var(--success-color) !important;
}

#connection-status.offline {
    color: var(--danger-color) !important;
}

/* Live Visitor Counter Animation */
#visitor-count {
    transition: all 0.3s ease;
}

#visitor-count.pulse {
    animation: pulse 0.5s ease-in-out;
}

/* Enhanced Notifications for Live Features */
.live-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: white;
    border-left: 4px solid var(--primary-color);
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    max-width: 300px;
    animation: slideInRight 0.3s ease;
}

.live-notification.success {
    border-left-color: var(--success-color);
}

.live-notification.warning {
    border-left-color: var(--warning-color);
}

.live-notification.error {
    border-left-color: var(--danger-color);
}

.live-notification h6 {
    margin: 0 0 5px 0;
    color: var(--dark-color);
    font-size: 0.9rem;
}

.live-notification p {
    margin: 0;
    color: var(--secondary-color);
    font-size: 0.8rem;
}

/* Live Activity Indicator */
.live-activity-indicator {
    position: fixed;
    bottom: 100px;
    right: 20px;
    background: rgba(0, 123, 255, 0.9);
    color: white;
    padding: 10px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.live-activity-indicator.show {
    opacity: 1;
}

/* Responsive Design for Live Features */
@media (max-width: 768px) {
    .live-chat-widget {
        bottom: 10px;
        right: 10px;
        max-width: 280px;
    }
    
    .chat-container {
        width: 250px;
        height: 350px;
    }
    
    .live-features-panel {
        left: 10px;
    }
    
    .live-features-content {
        min-width: 150px;
        padding: 15px;
    }
    
    .live-notification {
        right: 10px;
        max-width: 250px;
    }
}

@media (max-width: 576px) {
    .chat-container {
        width: 200px;
        height: 300px;
    }
    
    .live-features-panel {
        display: none; /* Hide on very small screens */
    }
    
    .live-chat-widget {
        max-width: 220px;
    }
}