/* Dark Mode Styles */

body.dark-mode {
    background: #0a0a0a;
    color: #e0e0e0;
}

/* Navigation Dark Mode */
body.dark-mode nav {
    background: rgba(10, 10, 10, 0.85) !important;
    border-bottom-color: rgba(0, 179, 255, 0.2);
}

body.dark-mode .nav-link {
    color: #b0b0b0;
}

body.dark-mode .nav-link:hover,
body.dark-mode .nav-link.active {
    color: #00b3ff;
}

/* Search Bar Dark Mode */
body.dark-mode .search-input {
    background: rgba(26, 26, 26, 0.95) !important;
    border-color: rgba(0, 179, 255, 0.4) !important;
    color: #e0e0e0 !important;
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(0, 179, 255, 0.15);
}

body.dark-mode .search-input:focus {
    background: rgba(26, 26, 26, 0.98) !important;
    border-color: #00b3ff !important;
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.5),
        0 0 0 3px rgba(0, 179, 255, 0.2),
        0 0 30px rgba(0, 179, 255, 0.3);
}

body.dark-mode .search-input::placeholder {
    color: #606060 !important;
}

/* Search icon in dark mode */
body.dark-mode .search-icon {
    color: #606060 !important;
}

/* Dark mode toggle button */
.dark-mode-toggle {
    position: relative;
    width: 60px;
    height: 30px;
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    border: 2px solid rgba(0, 179, 255, 0.3);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        inset 0 0 10px rgba(0, 179, 255, 0.1),
        0 0 10px rgba(0, 179, 255, 0.2);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    flex-shrink: 0;
}

.dark-mode-toggle:hover {
    box-shadow: 
        inset 0 0 15px rgba(0, 179, 255, 0.2),
        0 0 20px rgba(0, 179, 255, 0.3);
}

.dark-mode-toggle:active {
    transform: scale(0.95);
}

/* Mobile-specific styles */
@media (max-width: 768px) {
    .dark-mode-toggle {
        width: 50px;
        height: 26px;
        min-width: 50px;
    }
    
    .dark-mode-toggle::before {
        width: 20px !important;
        height: 20px !important;
        top: 1px !important;
    }
    
    body.dark-mode .dark-mode-toggle::before {
        transform: translateX(22px) !important;
    }
    
    .toggle-icon {
        font-size: 12px !important;
    }
    
    .sun-icon {
        left: 5px !important;
    }
    
    .moon-icon {
        right: 5px !important;
    }
}

.dark-mode-toggle::before {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    top: 1px;
    left: 2px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    box-shadow: 
        0 0 10px rgba(255, 215, 0, 0.5),
        0 0 20px rgba(255, 215, 0, 0.3);
    transition: transform 0.3s ease, background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

body.dark-mode .dark-mode-toggle {
    background: linear-gradient(135deg, #00b3ff, #0080ff);
    border-color: rgba(0, 179, 255, 0.5);
}

body.dark-mode .dark-mode-toggle::before {
    transform: translateX(28px);
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    box-shadow: 
        0 0 10px rgba(0, 179, 255, 0.5),
        0 0 20px rgba(0, 179, 255, 0.3);
}

.toggle-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    transition: opacity 0.3s ease;
}

.sun-icon {
    left: 6px;
    color: #ffd700;
}

.moon-icon {
    right: 6px;
    color: #00b3ff;
}

body.dark-mode .sun-icon {
    opacity: 0;
}

body:not(.dark-mode) .moon-icon {
    opacity: 0;
}

/* Text and Backgrounds Dark Mode */
body.dark-mode .text-gray-800 {
    color: #e0e0e0 !important;
}

body.dark-mode .text-gray-700 {
    color: #d0d0d0 !important;
}

body.dark-mode .text-gray-600 {
    color: #b0b0b0 !important;
}

body.dark-mode .text-gray-500 {
    color: #909090 !important;
}

body.dark-mode .bg-white {
    background: #0a0a0a !important;
}

body.dark-mode .bg-gray-50 {
    background: #1a1a1a !important;
}

body.dark-mode .bg-gradient {
    background: linear-gradient(135deg, #0f0f0f, #1a1a1a) !important;
}

/* Cards and Boxes Dark Mode */
body.dark-mode .feature-card {
    background: #1a1a1a;
    border-color: rgba(0, 179, 255, 0.3);
}

body.dark-mode .feature-card:hover {
    background: #1f1f1f;
    border-color: rgba(0, 179, 255, 0.5);
}

body.dark-mode .project-card {
    background: #1a1a1a;
    border-color: rgba(0, 179, 255, 0.3);
}

body.dark-mode .service-card {
    background: linear-gradient(135deg, #1a1a1a, #1f1f1f);
    border-color: rgba(0, 179, 255, 0.3);
}

body.dark-mode .team-card {
    background: #1a1a1a;
    border-color: rgba(0, 179, 255, 0.3);
}

body.dark-mode .neon-box-large {
    background: linear-gradient(135deg, 
        rgba(10, 10, 10, 0.95), 
        rgba(20, 20, 20, 0.9));
    border-color: rgba(0, 179, 255, 0.4);
}

body.dark-mode .neon-box {
    border-color: rgba(0, 179, 255, 0.5);
    background: rgba(10, 10, 10, 0.5);
}

body.dark-mode .neon-box-small {
    border-color: rgba(0, 179, 255, 0.6);
    background: rgba(10, 10, 10, 0.3);
}

/* Form Inputs Dark Mode */
body.dark-mode .form-input {
    background: #1a1a1a;
    border-color: rgba(0, 179, 255, 0.3);
    color: #e0e0e0;
}

body.dark-mode .form-input:focus {
    background: #1f1f1f;
    border-color: #00b3ff;
}

body.dark-mode .form-input::placeholder {
    color: #606060;
}

/* Neon Effects Enhanced in Dark Mode */
body.dark-mode .neon-text {
    text-shadow: 
        0 0 10px #00b3ff,
        0 0 20px #00b3ff,
        0 0 30px #00b3ff,
        0 0 40px #0080ff,
        0 0 100px #0080ff,
        0 0 120px #0080ff;
}

body.dark-mode .neon-text-subtle {
    text-shadow: 
        0 0 5px #00b3ff,
        0 0 10px #00b3ff,
        0 0 20px #00b3ff,
        0 0 30px #0080ff;
}

body.dark-mode .neon-button {
    box-shadow: 
        0 0 30px rgba(0, 179, 255, 0.7),
        inset 0 0 30px rgba(0, 179, 255, 0.3);
}

body.dark-mode .neon-button:hover {
    box-shadow: 
        0 0 40px rgba(0, 179, 255, 0.9),
        0 10px 50px rgba(0, 179, 255, 0.6),
        inset 0 0 40px rgba(0, 179, 255, 0.4);
}

body.dark-mode .neon-icon {
    box-shadow: 
        0 0 30px rgba(0, 179, 255, 0.4),
        inset 0 0 30px rgba(0, 179, 255, 0.2);
}

/* Circuit Background Adjustment */
body.dark-mode .circuit-background {
    opacity: 0.8;
}

/* Footer Dark Mode */
body.dark-mode footer {
    background: #1a1a1a !important;
    border-top-color: rgba(0, 179, 255, 0.2);
}

body.dark-mode .border-gray-200 {
    border-color: rgba(0, 179, 255, 0.1) !important;
}

/* Mobile Menu Dark Mode */
body.dark-mode #mobileMenu {
    background: rgba(10, 10, 10, 0.95) !important;
}

/* Project Image Dark Mode */
body.dark-mode .project-image {
    background: linear-gradient(135deg, #1a1a1a, #1f1f1f);
}

/* Scrollbar Dark Mode */
body.dark-mode::-webkit-scrollbar-track {
    background: #1a1a1a;
}

body.dark-mode::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00b3ff, #0080ff);
}

body.dark-mode::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #00d4ff, #00a0ff);
}
