/* Dark/Light Mode Styles */

/* Light Mode (Default) */
:root[data-theme="light"] {
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --accent-color: #1abc9c;
  --text-color: #333;
  --text-light: #666;
  --bg-color: #ffffff;
  --bg-light: #f8f9fa;
  --border-color: #e0e0e0;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 5px 20px rgba(0, 0, 0, 0.15);
  --nav-bg: rgba(255, 255, 255, 0.95);
  --footer-bg: #2c3e50;
  --footer-text: #ffffff;
}

/* Dark Mode */
:root[data-theme="dark"] {
  --primary-color: #e0e0e0;
  --secondary-color: #5dade2;
  --accent-color: #48c9b0;
  --text-color: #e4e4e4;
  --text-light: #b0b0b0;
  --bg-color: #1a1a1a;
  --bg-light: #2a2a2a;
  --border-color: #404040;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  --shadow-hover: 0 5px 20px rgba(0, 0, 0, 0.7);
  --nav-bg: rgba(26, 26, 26, 0.95);
  --footer-bg: #0d0d0d;
  --footer-text: #e4e4e4;
}

/* Theme Toggle Button */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--secondary-color);
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.theme-toggle:hover {
  transform: scale(1.1) rotate(15deg);
  background: var(--accent-color);
}

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

/* Icon visibility based on theme */
[data-theme="light"] .moon-icon {
  display: none;
}

[data-theme="dark"] .sun-icon {
  display: none;
}

[data-theme="light"] .sun-icon,
[data-theme="dark"] .moon-icon {
  display: block;
}

/* Smooth transitions for theme changes */
body,
nav,
.card,
.publication,
footer,
.contact-form,
.btn-outline {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Dark mode specific overrides */
[data-theme="dark"] .hero {
  background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-color) 100%);
}

[data-theme="dark"] .card {
  background: var(--bg-light);
}

[data-theme="dark"] .card:hover {
  background: #333;
}

[data-theme="dark"] img {
  opacity: 0.9;
}

[data-theme="dark"] img:hover {
  opacity: 1;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .theme-toggle {
    bottom: 1rem;
    right: 1rem;
    width: 45px;
    height: 45px;
  }
}


