:root {
  --primary: #0F4539;
  --secondary: #0E5484;
  --text: #2E2E2E;
  --light-text: #666666;
  --background: #f9f9f9;
  --card-bg: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: var(--background);
  color: var(--text);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

header {
  text-align: center;
  margin-bottom: 30px;
  padding: 20px 0;
  border-bottom: 2px solid var(--secondary);
}

h1 {
  font-size: 2.5rem;
  color: var(--text);
  margin-bottom: 10px;
  text-transform: uppercase;
}

.contact-info {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 10px;
}

.contact-info a {
  color: var(--light-text);
  text-decoration: none;
  transition: color 0.3s;
  display: flex;
  align-items: center;
  gap: 5px;
}

.contact-info a:hover {
  color: var(--primary);
}

section {
  background-color: var(--card-bg);
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 25px;
  margin-bottom: 30px;
}

h2 {
  color: var(--primary);
  font-size: 1.8rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
  text-transform: uppercase;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--secondary);
}

.education-item, .experience-item, .project-item {
  margin-bottom: 25px;
}

.item-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
}

.item-title {
  font-weight: bold;
  font-size: 1.2rem;
  color: var(--text);
}

.item-date {
  color: var(--primary);
  font-weight: bold;
}

.item-subtitle {
  font-style: italic;
  color: var(--light-text);
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
}

ul {
  list-style-type: none;
  padding-left: 20px;
}

ul li {
  position: relative;
  margin-bottom: 8px;
}

ul li::before {
  content: '•';
  position: absolute;
  left: -15px;
  color: var(--primary);
}

.skills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.skill-category {
  flex: 1;
  min-width: 250px;
}

.skill-category h3 {
  color: var(--primary);
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  background-color: var(--primary);
  color: white;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.9rem;
}

.project-links {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.project-links a {
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: transform 0.3s;
}

.project-links a:hover {
  transform: translateY(-2px);
}

.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 100;
}

/* Dark theme */
body.dark-theme {
  --primary: #00E278;
  --secondary: #3BD80D;
  --text: #f0f0f0;
  --light-text: #bbbbbb;
  --background: #121212;
  --card-bg: #1e1e1e;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

section {
  animation: fadeIn 0.5s ease-out forwards;
  opacity: 0;
}

section:nth-child(1) { animation-delay: 0.1s; }
section:nth-child(2) { animation-delay: 0.2s; }
section:nth-child(3) { animation-delay: 0.3s; }
section:nth-child(4) { animation-delay: 0.4s; }

/* Responsive */
@media (max-width: 768px) {
  .item-header, .item-subtitle {
      flex-direction: column;
      gap: 5px;
  }
  
  .item-date {
      align-self: flex-start;
  }
  
  .contact-info {
      flex-direction: column;
      align-items: center;
      gap: 8px;
  }
  
  h1 {
      font-size: 2rem;
  }
}