/* Dark Mode Styles */

/* Dark mode color variables */
html.dark-mode {
    --color-bg: #0a0a0a;
    --color-secondary-bg: #1a1a1a;
    --color-text: #e5e5e5;
    --color-text-secondary: #ffffff;
    --color-border: #2a2a2a;
}

/* Theme toggle button */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
    transition: transform 0.3s ease, opacity 0.3s ease;
    border-radius: 50%;
    position: relative;
}

.theme-toggle:hover {
    transform: scale(1.1);
    opacity: 0.7;
}

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

/* Icons */
.theme-toggle .sun-icon,
.theme-toggle .moon-icon {
    position: absolute;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Light mode: show moon, hide sun */
.theme-toggle .sun-icon {
    opacity: 0;
    transform: rotate(180deg) scale(0);
}

.theme-toggle .moon-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* Dark mode: show sun, hide moon */
html.dark-mode .theme-toggle .sun-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

html.dark-mode .theme-toggle .moon-icon {
    opacity: 0;
    transform: rotate(-180deg) scale(0);
}

/* Smooth transitions for theme changes */
html {
    transition: background-color 0.3s ease, color 0.3s ease;
}

body {
    transition: background-color 0.3s ease, color 0.3s ease;
}

* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Dark mode specific adjustments */
html.dark-mode .app-card,
html.dark-mode .work-card {
    background: transparent;
}

html.dark-mode .app-image,
html.dark-mode .work-image {
    background: transparent;
}

html.dark-mode .app-card:hover,
html.dark-mode .work-card:hover {
    background: transparent;
}

html.dark-mode .app-description h3,
html.dark-mode .work-description h3 {
    color: #ffffff;
}

html.dark-mode .app-description p,
html.dark-mode .work-description p {
    color: #b0b0b0;
}

html.dark-mode .nav-container {
    background: rgba(255, 255, 255, 0.05);
}

html.dark-mode .nav-pill {
    background: transparent;
}

html.dark-mode .nav-link {
    color: #888888;
}

html.dark-mode .nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

html.dark-mode .nav-link.active {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

html.dark-mode .footer-copyright,
html.dark-mode .footer-location,
html.dark-mode .footer-time {
    color: #b0b0b0 !important;
}

/* Footer buttons/icons */
html.dark-mode .contact-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

html.dark-mode .contact-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
}

html.dark-mode .contact-btn svg {
    opacity: 0.9;
}

html.dark-mode .contact-btn:hover svg {
    opacity: 1;
}

html.dark-mode .footer-title .text-word {
    color: var(--color-text);
}

html.dark-mode .hero-title,
html.dark-mode .hero-subtitle {
    color: var(--color-text);
}

html.dark-mode .about-text,
html.dark-mode .expertise-intro,
html.dark-mode .superic-text-1,
html.dark-mode .superic-text-2 {
    color: var(--color-text);
}

html.dark-mode .category-label {
    color: #b0b0b0;
}

html.dark-mode .contact-info p,
html.dark-mode .contact-info a {
    color: #b0b0b0;
}

html.dark-mode .password-overlay {
    background: var(--color-bg);
}

html.dark-mode .password-container {
    background: var(--color-secondary-bg);
}

html.dark-mode .password-input {
    background: var(--color-bg);
    border-color: var(--color-border);
    color: var(--color-text);
}

html.dark-mode .password-submit {
    background: #ffffff;
    color: #000000;
}

html.dark-mode .password-submit:hover {
    background: #e5e5e5;
}

/* Adjust images for dark mode */
html.dark-mode img {
    opacity: 0.9;
}

html.dark-mode .app-card:hover img,
html.dark-mode .work-card:hover img {
    opacity: 1;
}
