/* Theme Toggle Styles */
:root {
    --primary-color: #00e676;
    --accent-cyan: #00e5ff;
    --text-color: #ffffff;
    --text-muted: #aaaaaa;
    --bg-color: #0a0a0a;
    --card-bg: rgba(30, 30, 40, 0.95);
    --header-bg: rgba(15, 15, 20, 0.95);
    --section-bg: rgba(18, 18, 25, 0.8);
    --shadow-color: rgba(0, 0, 0, 0.3);
    --border-color: rgba(255, 255, 255, 0.05);
    --terminal-color: #00ff00;
    --terminal-bg: #121212;
}

/* Light Theme Variables */
body.light-theme {
    --primary-color: #00b065;
    --accent-cyan: #0097b3;
    --text-color: #1a1a1a;
    --text-muted: #555555;
    --bg-color: #f5f5f5;
    --card-bg: rgba(255, 255, 255, 0.95);
    --header-bg: rgba(240, 240, 245, 0.95);
    --section-bg: rgba(245, 245, 250, 0.8);
    --shadow-color: rgba(0, 0, 0, 0.1);
    --border-color: rgba(0, 0, 0, 0.1);
    --terminal-color: #00aa00;
    --terminal-bg: #f0f0f0;
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-cyan));
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 15px rgba(0, 230, 118, 0.4);
    transition: all 0.3s ease;
    opacity: 0.9;
}

.theme-toggle:hover {
    transform: scale(1.1);
    opacity: 1;
}

.theme-toggle:active {
    transform: scale(0.95);
}

/* Dark/Light Mode Transitions */
body {
    transition: background-color 0.5s ease, color 0.5s ease;
}

.skill-card, .project-card, .service-card, .cert-card, .achievement-card, .contact-form {
    transition: background-color 0.5s ease, box-shadow 0.5s ease, color 0.5s ease;
}

/* Light Theme Overrides */
body.light-theme {
    background-color: var(--bg-color);
    color: var(--text-color);
}

body.light-theme header {
    background-color: var(--header-bg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

body.light-theme .nav-links a {
    color: var(--text-color);
}

body.light-theme .skill-card,
body.light-theme .project-card,
body.light-theme .service-card,
body.light-theme .cert-card,
body.light-theme .achievement-card {
    background: var(--card-bg);
    box-shadow: 0 10px 20px var(--shadow-color);
    border: 1px solid var(--border-color);
}

body.light-theme .skill-icon,
body.light-theme .project-icon,
body.light-theme .service-icon,
body.light-theme .cert-icon,
body.light-theme .achievement-icon {
    background: rgba(0, 176, 101, 0.1);
}

body.light-theme .section-header h2 {
    color: var(--text-color);
}

body.light-theme .skill-card h4,
body.light-theme .project-card h3,
body.light-theme .service-card h3,
body.light-theme .cert-card h3,
body.light-theme .achievement-card h3 {
    color: var(--text-color);
}

body.light-theme .contact-form {
    background: var(--card-bg);
    box-shadow: 0 10px 30px var(--shadow-color);
}

body.light-theme .binary-code .binary-line {
    color: rgba(0, 0, 0, 0.1);
}

/* Light theme cyber elements */
body.light-theme .scan-line {
    background: linear-gradient(transparent, rgba(0, 176, 101, 0.2), transparent);
}

/* Light theme particle effect */
body.light-theme .particle {
    background-color: rgba(0, 176, 101, 0.5);
}

/* Toggle icon animation */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.theme-toggle i {
    animation: spin 4s linear infinite;
    animation-play-state: paused;
}

.theme-toggle:hover i {
    animation-play-state: running;
}