/* Base Styles */
:root {
  --primary-color: #3498db;
  --secondary-color: #2c3e50;
  --accent-color: #e74c3c;
  --light-color: #ecf0f1;
  --dark-color: #2c3e50;
  --text-color: #333;
  --text-light: #7f8c8d;
  --bg-color: #f9f9f9;
  --card-bg: rgba(0, 0, 0, 0.05);
}

.dark-mode {
  --primary-color: #3a8fd9;
  --secondary-color: #1a252f;
  --accent-color: #c72e29;
  --light-color: #bdc3c7;
  --dark-color: #16212b;
  --text-color: #ecf0f1;
  --text-light: #95a5a6;
  --bg-color: #121212;
  --card-bg: rgba(100, 100, 100, 0.3);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
}

/* Container Layout */
.container {
  display: flex;
  min-height: 100vh;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Header Styles */
#header {
  width: 250px;
  background-color: var(--secondary-color);
  color: white;
  padding: 30px 20px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.title-bar {
  font-size: 1.8rem;
  margin-bottom: 30px;
  text-align: center;
  color: var(--light-color);
}

/* Navigation Styles */
#nav-bar ul {
  list-style-type: none;
}

.nav-link {
  display: block;
  padding: 12px 15px;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
}

.nav-link:hover, .nav-link.active {
  background-color: rgba(255, 255, 255, 0.1);
  border-left: 4px solid var(--accent-color);
}

/* Main Content Styles */
#content {
  flex: 1;
  padding: 30px;
  margin-left: 30px;
}

.personal-info {
  margin-bottom: 2rem;
  padding: 1rem;
  background-color: var(--card-bg);
  border-radius: 4px;
}

.section-title {
  color: #333;
  font-size: 1.2rem;
  margin-top: 2rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #eee;
}

.cv-item {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background-color: var(--card-bg);
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.cv-item h4 {
  margin-top: 0;
  color: var(--text-light);
  font-size: 1rem;
}

.skills-list {
  list-style-type: none;
  padding-left: 0;
  margin-bottom: 1.5rem;
}

.skills-list li {
  margin-bottom: 0.5rem;
  padding-left: 1.2rem;
  position: relative;
}

.skills-list li:before {
  content: "•";
  color: #3498db;
  font-weight: bold;
  position: absolute;
  left: 0;
}

.nav-link.active {
  background-color: rgba(52, 152, 219, 0.1);
  color: #3498db;
  font-weight: bold;
}

.content-section {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 30px;
  margin-bottom: 40px;
}

.content-section h2 {
  margin-bottom: 10px;
  border-bottom: 2px solid var(--light-color)
}

/* Footer Styles */
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--light-color);
}

.footer-links {
  display: flex;
  gap: 15px;
}

.footer-links a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

.pub-link {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 8px 15px;
  border-radius: 4px;
  text-decoration: none;
  margin-top: 10px;
  transition: background-color 0.3s;
}

.pub-link:hover {
  background-color: #2980b9;
}
.pub-link a {
  color: white !important;
  text-decoration: none;
  transition: color 0.3s;
}

.pub-link a:hover {
  color: var(--accent-color) !important;
  text-decoration: underline;
}
/* Links Section Styles */
.links-content {
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

.link-list {
  list-style-type: none;
  width: 50%;
}

.link-list li {
  margin-bottom: 10px;
}

.link-list a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s;
}

.link-list a:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

.contact-info {
  width: 40%;
}

.contact-info h3 {
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.contact-info a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s;
}

.contact-info a:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

.footer-links a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

.content-section a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s;
}

.content-section a:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

.title-bar a {
  color: var(--primary-color);
  text-decoration: None;
}
.title-bar a:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }

  #header {
    width: 100%;
    height: auto;
    position: static;
  }

  #content {
    margin-left: 0;
    padding: 20px 15px;
  }

  .links-content {
    flex-direction: column;
  }

  .link-list, .contact-info {
    width: 100%;
  }
}

/* Dark Mode Toggle */
.dark-mode-toggle {
  text-align: center;
  margin-top: 20px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--primary-color);
}

input:checked + .slider:before {
  transform: translateX(26px);
}

/* Dark mode styles */
.dark-mode {
  background-color: var(--bg-color) !important;
}

.dark-mode #header {
  background-color: var(--dark-color) !important;
}

.dark-mode .cv-item,
.dark-mode .content-section {
  background-color: var(--card-bg) !important;
}

.dark-mode .section-title {
  color: var(--text-light) !important;
  border-bottom-color: #444 !important;
}

.dark-mode .skills-list li:before {
  color: var(--light-color) !important;
}
