/* Black and White Mode Styles */
body.bw-mode {
    background: #ffffff !important;
    color: #000000 !important;
    background-image: none !important;
    animation: none !important;
}

/* Make fireflies grey in B&W mode */
body.bw-mode #particles-canvas {
    filter: grayscale(100%) brightness(0.5) !important;
    opacity: 0.7 !important;
    mix-blend-mode: multiply;
}

/* Navigation */
body.bw-mode .navbar {
    background: rgba(0, 0, 0, 0.8) !important;
}

/* Text colors */
body.bw-mode .text-gradient,
body.bw-mode h1, 
body.bw-mode h2, 
body.bw-mode h3, 
body.bw-mode p,
body.bw-mode .hero-title,
body.bw-mode .hero-subtitle,
body.bw-mode .section-title {
    color: #000000 !important;
    animation: none !important;
    text-shadow: none !important;
}

/* Hero section */
body.bw-mode .hero-badge {
    background: rgba(0, 0, 0, 0.1) !important;
    color: #000000 !important;
    border-color: rgba(0, 0, 0, 0.3) !important;
    text-shadow: none !important;
}

body.bw-mode .stat-number {
    color: #000000 !important;
    text-shadow: none !important;
}

body.bw-mode .stat-label {
    color: #777777 !important;
}

body.bw-mode .hero-button {
    background: #000000 !important;
    color: #ffffff !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2) !important;
    animation: none !important;
}

/* Portfolio section */
body.bw-mode .portfolio-item {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2) !important;
}

body.bw-mode .portfolio-item:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3) !important;
}

body.bw-mode .portfolio-image {
    filter: grayscale(100%) !important;
}

body.bw-mode .category-tag {
    background: rgba(0, 0, 0, 0.1) !important;
    color: #000000 !important;
    border-color: rgba(0, 0, 0, 0.3) !important;
}

/* Keep portfolio overlay text white */
body.bw-mode .portfolio-overlay h3,
body.bw-mode .portfolio-overlay p {
    color: #ffffff !important;
}

/* Services section */
body.bw-mode .service-card {
    background: #222222 !important;
    border: 1px solid #444444 !important;
}

body.bw-mode .service-card h3,
body.bw-mode .service-card p {
    color: #ffffff !important;
}

/* About section */
body.bw-mode .about-image {
    filter: grayscale(100%) !important;
}

/* Contact section */
body.bw-mode .form-group input,
body.bw-mode .form-group textarea {
    background: #f0f0f0 !important;
    border: 1px solid #ddd !important;
    color: #000000 !important;
}

body.bw-mode .form-group input::placeholder,
body.bw-mode .form-group textarea::placeholder {
    color: #555555 !important;
}

body.bw-mode .submit-btn {
    background: #000000 !important;
    color: #ffffff !important;
    animation: none !important;
}

body.bw-mode .contact-note {
    background: #f0f0f0 !important;
    border-left: 4px solid #000000 !important;
}

body.bw-mode .contact-note h3 {
    color: #000000 !important;
}

/* Social section */
body.bw-mode .instagram-link {
    background: #000000 !important;
    animation: none !important;
}

/* Footer */
body.bw-mode .footer p {
    color: #000000 !important;
}

/* Fireflies */
body.bw-mode #particles-canvas {
    filter: grayscale(100%) !important;
}

/* Toggle switch - now in hamburger menu */
.mode-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 80%;
    margin: 15px auto;
}

body.bw-mode .mode-toggle {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid #000000;
}

.toggle-icon {
    width: 20px;
    height: 20px;
    margin-right: 5px;
}

.toggle-text {
    font-size: 12px;
    color: #ffffff;
}

body.bw-mode .toggle-text {
    color: #000000;
}

body.bw-mode .nav-menu {
    background: rgba(255, 255, 255, 0.9) !important;
}

body.bw-mode .nav-menu a {
    color: #000000 !important;
}

body.bw-mode .nav-menu a:hover {
    color: #555555 !important;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .mode-toggle {
        top: 80px;
        right: 10px;
        padding: 3px 8px;
    }
    
    .toggle-icon {
        width: 16px;
        height: 16px;
    }
    
    .toggle-text {
        font-size: 10px;
    }
}