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

:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #1a1a1a;
  --text-primary: #fafafa;
  --text-secondary: #a0a0a0;
  --accent: #ffb261;
  --accent-secondary: #ef5143;
  --accent-hover: #ffc78a;
  --border: #2a2a2a;
}

body.light-mode {
  --bg-primary: #fafafa;
  --bg-secondary: #f0f0f0;
  --text-primary: #0a0a0a;
  --text-secondary: #5a5a5a;
  --accent: #e89a4d;
  --accent-secondary: #d63f31;
  --accent-hover: #d68a3d;
  --border: #d0d0d0;
}

body {
  font-family: "Lato", sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  transition: background-color 0.3s ease, color 0.3s ease;
}

h1,
h2,
h3 {
  font-family: "Karla", sans-serif;
  font-weight: 600;
  line-height: 1.3;
}

h1::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent-secondary);
  margin-top: 0.75rem;
}

h2 {
  position: relative;
  padding-left: 1rem;
  border-left: 3px solid var(--accent-secondary);
}

.container {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

header {
  padding: 3rem 0 4rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
}

h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  font-weight: 300;
}

.theme-toggle {
  background: var(--border);
  border: none;
  cursor: pointer;
  width: 48px;
  height: 26px;
  border-radius: 13px;
  position: relative;
  transition: background-color 0.3s ease;
  padding: 0;
}

.theme-toggle:hover {
  background: var(--accent-secondary);
}

.theme-toggle-dot {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: var(--bg-primary);
  border-radius: 50%;
  transition: transform 0.3s ease;
}

body.light-mode .theme-toggle-dot {
  transform: translateX(22px);
}

section {
  margin-bottom: 4rem;
}

section h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.intro-text {
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.intro-text strong {
  color: var(--accent-secondary);
  font-weight: 600;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

.profile-image {
  width: 100%;
  max-width: 300px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.about-text p {
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
}

.experience-item {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}

.experience-item:last-child {
  border-bottom: none;
}

.experience-header {
  margin-bottom: 1rem;
}

.experience-title {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.experience-company {
  color: var(--accent);
  font-weight: 400;
  font-size: 1rem;
}

.experience-date {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-style: italic;
}

.experience-description {
  color: var(--text-secondary);
  margin-top: 0.75rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.skill-category h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--accent);
}

.skill-category ul {
  list-style: none;
}

.skill-category li {
  color: var(--text-secondary);
  padding: 0.25rem 0;
  font-size: 0.95rem;
}

.contact-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.contact-links a {
  color: var(--accent);
  text-decoration: none;
  font-size: 1.125rem;
  transition: color 0.3s ease;
}

.contact-links a:hover {
  color: var(--accent-secondary);
}

footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  margin-top: 4rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

@media (min-width: 640px) {
  .about-grid {
    grid-template-columns: 200px 1fr;
    gap: 2.5rem;
  }

  .profile-image {
    max-width: 100%;
  }
}

@media (min-width: 768px) {
  .container {
    padding: 3rem 2rem;
  }

  h1 {
    font-size: 2.5rem;
  }

  .intro-text {
    font-size: 1.375rem;
  }

  section h2 {
    font-size: 1.75rem;
  }

  .about-grid {
    grid-template-columns: 250px 1fr;
    gap: 3rem;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 48rem;
  }

  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

