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

:root {
  --color-primary: #6945B7;
  --color-secondary: #333645;
  --color-dark: #13131F;
  --color-text: #ffffff;
  --color-text-light: #b8b8b8;
  --color-border: rgba(105, 69, 183, 0.3);
  --color-bg: #13131F;
  --color-card-bg: #333645;
  --color-card-hover: rgba(105, 69, 183, 0.3);
}

/* Light Mode */
[data-theme="light"] {
  --color-primary: #6945B7;
  --color-secondary: #f5f5f5;
  --color-dark: #ffffff;
  --color-text: #13131F;
  --color-text-light: #666666;
  --color-border: rgba(105, 69, 183, 0.2);
  --color-bg: #ffffff;
  --color-card-bg: #f8f8f8;
  --color-card-hover: rgba(105, 69, 183, 0.1);
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(19, 19, 31, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-border);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

[data-theme="light"] .navbar {
  background-color: rgba(255, 255, 255, 0.95);
}

[data-theme="light"] .hamburger span {
  background: var(--color-text);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--color-primary), #8B5FBF);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.5rem;
}

.brand-name {
  font-size: 1.5rem;
  font-weight: bold;
  background: linear-gradient(135deg, var(--color-primary), #8B5FBF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
  flex: 1;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-toggle-wrapper {
  display: flex;
  align-items: center;
}

.theme-toggle {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  outline: none;
}

.toggle-track {
  position: relative;
  width: 70px;
  height: 35px;
  background: #4a5568;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  transition: background-color 0.3s ease;
  border: 2px solid var(--color-border);
}

[data-theme="light"] .toggle-track {
  background: #e8f5e9;
  border-color: rgba(105, 69, 183, 0.2);
}

.toggle-icon {
  font-size: 1rem;
  z-index: 2;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.sun-icon {
  color: #FFD700;
  opacity: 0;
  transform: scale(0.8);
}

.moon-icon {
  color: #E6E6FA;
  opacity: 1;
  transform: scale(1);
}

[data-theme="light"] .sun-icon {
  opacity: 1;
  transform: scale(1);
}

[data-theme="light"] .moon-icon {
  opacity: 0;
  transform: scale(0.8);
}

.toggle-slider {
  position: absolute;
  left: 4px;
  width: 27px;
  height: 27px;
  background: #ffffff;
  border-radius: 50%;
  transition: transform 0.3s ease, background-color 0.3s ease;
  z-index: 3;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .toggle-slider {
  transform: translateX(35px);
  background: #000000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.theme-toggle:hover .toggle-track {
  border-color: var(--color-primary);
}

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

[data-theme="light"] .theme-toggle:active .toggle-slider {
  transform: translateX(35px) scale(0.95);
}

.nav-menu a {
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.3s;
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.3s;
}

.nav-menu a:hover {
  color: var(--color-primary);
}

.nav-menu a:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--color-text);
  transition: all 0.3s;
}

/* Hero Section */
.hero {
  margin-top: 80px;
  padding: 4rem 0;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.highlight {
  background: linear-gradient(135deg, var(--color-primary), #8B5FBF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--color-text-light);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.btn-primary {
  display: inline-block;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--color-primary), #8B5FBF);
  color: var(--color-text);
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: transform 0.3s, box-shadow 0.3s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(105, 69, 183, 0.4);
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-wrapper {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), #8B5FBF);
  padding: 10px;
  position: relative;
  animation: float 6s ease-in-out infinite;
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Section Styles */
section {
  padding: 5rem 0;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
  width: 100%;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(135deg, var(--color-primary), #8B5FBF);
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-light);
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

/* Sobre */
.sobre {
  background-color: var(--color-secondary);
  transition: background-color 0.3s ease;
}

/* Educação */
.educacao {
  background-color: var(--color-bg);
  transition: background-color 0.3s ease;
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: 3rem auto;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-border);
  transform: translateX(-50%);
  z-index: 1;
}

[data-theme="light"] .timeline::before {
  background: rgba(105, 69, 183, 0.2);
}

.timeline-item {
  display: flex;
  margin-bottom: 4rem;
  position: relative;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-date {
  flex: 1;
  text-align: right;
  padding-right: 3rem;
  padding-top: 0.5rem;
}

.timeline-date h3 {
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.timeline-date p {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

.timeline-content {
  flex: 1;
  padding-left: 3rem;
  position: relative;
}

.timeline-icon {
  position: absolute;
  left: -20px;
  top: 0;
  width: 50px;
  height: 50px;
  background: var(--color-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  border: 3px solid var(--color-bg);
  transition: all 0.3s ease;
}

[data-theme="light"] .timeline-icon {
  background: var(--color-card-bg);
  border-color: var(--color-bg);
}

.timeline-icon i {
  font-size: 1.2rem;
  color: var(--color-primary);
}

.timeline-info {
  background: var(--color-card-bg);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
}

.timeline-info:hover {
  border-color: var(--color-primary);
  box-shadow: 0 5px 20px rgba(105, 69, 183, 0.2);
}

.timeline-title {
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.timeline-description {
  color: var(--color-text-light);
  line-height: 1.8;
  font-size: 1rem;
}

.timeline-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.timeline-list li {
  color: var(--color-text-light);
  line-height: 1.8;
  font-size: 1rem;
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.5rem;
}

.timeline-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: bold;
}

.sobre-content {
  max-width: 800px;
  margin: 0 auto;
}

.sobre-text p {
  font-size: 1.1rem;
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

/* Habilidades */
.skills-category {
  margin-bottom: 3rem;
}

.category-title {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: var(--color-primary);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.skill-card {
  background: var(--color-card-bg);
  padding: 1.2rem 1rem;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s ease;
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 140px;
}

.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(105, 69, 183, 0.3);
  border-color: var(--color-primary);
}

.skill-card h4 {
  margin: 0 0 0.8rem 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.skill-icon {
  font-size: 3rem;
  margin: 0.5rem 0;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.skill-icon-img {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
}

.skill-icon .fab.fa-html5 {
  color: #E34F26;
}

.skill-icon .fab.fa-css3-alt {
  color: #1572B6;
}

.skill-icon .fab.fa-js {
  color: #F7DF1E;
}

.skill-icon .fab.fa-react {
  color: #61DAFB;
}

.skill-icon .fab.fa-vuejs {
  color: #4FC08D;
}

.skill-icon .fab.fa-angular {
  color: #DD0031;
}

.skill-icon .fab.fa-node-js {
  color: #339933;
}

.skill-icon .fab.fa-python {
  color: #3776AB;
}

.skill-icon .fab.fa-php {
  color: #777BB4;
}

.skill-icon .fas.fa-gem {
  color: #CC0000;
}

.skill-icon .fab.fa-js.jquery-icon {
  color: #0769AD;
}

.skill-line {
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
  margin-top: auto;
  border-radius: 2px;
}


/* Trabalhos */
.trabalhos {
  background-color: var(--color-secondary);
  transition: background-color 0.3s ease;
}

.trabalhos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.trabalho-card {
  background: var(--color-card-bg);
  padding: 2rem;
  border-radius: 12px;
  display: flex;
  gap: 1.5rem;
  border: 1px solid var(--color-border);
  transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s ease;
}

.trabalho-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(105, 69, 183, 0.3);
  border-color: var(--color-primary);
}

.trabalho-logo {
  flex-shrink: 0;
}

.trabalho-logo img {
  width: 100px;
  height: 100px;
  border-radius: 12px;
  object-fit: cover;
}

.trabalho-content h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.trabalho-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tag {
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: bold;
}

.tag-php {
  background: #777BB4;
  color: white;
}

.tag-mysql {
  background: #4479A1;
  color: white;
}

.tag-ruby {
  background: #CC0000;
  color: white;
}

.tag-js {
  background: #F7DF1E;
  color: #000;
}

.tag-vue {
  background: #4FC08D;
  color: white;
}

.tag-react {
  background: #61DAFB;
  color: #000;
}

.tag-node {
  background: #339933;
  color: white;
}

.tag-firebase {
  background: #FFA000;
  color: white;
}

.tag-mongodb {
  background: #47A248;
  color: white;
}

.tag-html {
  background: #E34F26;
  color: white;
}

.tag-css {
  background: #1572B6;
  color: white;
}

.tag-next {
  background: #000000;
  color: white;
}

.tag-strapi {
  background: #8E75FF;
  color: white;
}

.tag-ts {
  background: #3178C6;
  color: white;
}

.tag-express {
  background: #000000;
  color: white;
}

.tag-bootstrap {
  background: #7952B3;
  color: white;
}

.tag-jquery {
  background: #0769AD;
  color: white;
}

.tag-python {
  background: #3776AB;
  color: white;
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.trabalho-content p {
  color: var(--color-text-light);
  line-height: 1.6;
}

/* Projetos */
.projetos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.projeto-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s, border-color 0.3s ease;
  border: 1px solid var(--color-border);
}

.projeto-card:hover {
  transform: translateY(-10px);
}

.projeto-image {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.projeto-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.projeto-card:hover .projeto-image img {
  transform: scale(1.1);
}

.projeto-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(105, 69, 183, 0.95), rgba(139, 95, 191, 0.95));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem 1.5rem;
  opacity: 0;
  transition: opacity 0.3s;
  text-align: center;
  box-sizing: border-box;
}

.projeto-card:hover .projeto-overlay {
  opacity: 1;
}

.projeto-overlay h3 {
  font-size: 1.5rem;
  margin: 0 0 0.5rem 0;
  padding: 0 1rem;
  line-height: 1.3;
}

.projeto-overlay p {
  font-size: 0.95rem;
  margin: 0 0 0.5rem 0;
  padding: 0 1rem;
  line-height: 1.6;
}

.projeto-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin: 0 0 0.5rem 0;
  padding: 0 1rem;
}

.projeto-tags .tag {
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  flex-shrink: 0;
}

.projeto-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 0;
  padding: 0 1rem;
}

.projeto-link {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  text-decoration: none;
  transition: background 0.3s, transform 0.3s;
  font-size: 1.2rem;
}

.projeto-link-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.projeto-link:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s;
}

[data-theme="light"] .modal {
  background-color: rgba(0, 0, 0, 0.7);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  position: relative;
  margin: 2% auto;
  max-width: 95%;
  width: 100%;
  background: var(--color-card-bg);
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid var(--color-border);
  animation: slideDown 0.3s;
  transition: background-color 0.3s ease;
}

@keyframes slideDown {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  font-weight: bold;
  color: var(--color-text);
  cursor: pointer;
  transition: color 0.3s;
  z-index: 10;
}

.modal-close:hover {
  color: var(--color-primary);
}

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

.modal-image {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
}

.modal-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
}

.modal-info h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.modal-info p {
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.modal-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--color-secondary);
  border-radius: 8px;
  text-decoration: none;
  color: var(--color-text);
  transition: background 0.3s, transform 0.3s, background-color 0.3s ease;
  border: 1px solid var(--color-border);
}

.modal-link:hover {
  background: var(--color-primary);
  transform: translateX(5px);
}

.modal-link i {
  font-size: 1.5rem;
}

.modal-link-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* Contato */
.contato {
  background-color: var(--color-secondary);
  transition: background-color 0.3s ease;
}

.contato-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1000px;
  margin: 0 auto;
}

.contato-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contato-item {
  display: flex;
  gap: 1.5rem;
  align-items: start;
}

.contato-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--color-primary), #8B5FBF);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.contato-icon-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.contato-details h3 {
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.contato-details p {
  color: var(--color-text-light);
}

.contato-link {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.3s ease, text-decoration 0.3s ease;
}

.contato-link:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.contato-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  color: var(--color-text);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s, background-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.form-group textarea {
  resize: vertical;
}

/* Footer */
.footer {
  background-color: var(--color-secondary);
  padding: 2rem 0;
  text-align: center;
  border-top: 1px solid var(--color-border);
  transition: background-color 0.3s ease;
}

.footer p {
  color: var(--color-text-light);
}

/* Toast Notification */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1rem 1.5rem;
  min-width: 300px;
  max-width: 400px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  z-index: 3000;
  opacity: 0;
  transform: translateX(400px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  display: none;
}

.toast.show {
  display: block;
  opacity: 1;
  transform: translateX(0);
}

.toast.success {
  border-left: 4px solid #4CAF50;
}

.toast.error {
  border-left: 4px solid #f44336;
}

.toast-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
}

.toast.success .toast-title {
  color: #4CAF50;
}

.toast.error .toast-title {
  color: #f44336;
}

.toast-message {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.4;
}

/* Responsive */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: var(--color-card-bg);
    width: 100%;
    text-align: center;
    transition: 0.3s, background-color 0.3s ease;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 2rem 0;
    border-top: 1px solid var(--color-border);
  }

  .nav-menu.active {
    left: 0;
  }

  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .image-wrapper {
    width: 300px;
    height: 300px;
  }

  .hero-image {
    order: -1;
  }

  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .trabalhos-grid {
    grid-template-columns: 1fr;
  }

  .trabalho-card {
    flex-direction: column;
    text-align: center;
  }

  .projetos-grid {
    grid-template-columns: 1fr;
  }

  .modal-content {
    max-width: 98%;
    margin: 1% auto;
    padding: 1.5rem;
  }
  
  .modal-body {
    grid-template-columns: 1fr;
  }

  .contato-content {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 2rem;
  }

  .toast {
    right: 10px;
    left: 10px;
    min-width: auto;
    max-width: none;
  }
  
  .toggle-track {
    width: 60px;
    height: 30px;
  }
  
  .toggle-slider {
    width: 24px;
    height: 24px;
  }
  
  [data-theme="light"] .toggle-slider {
    transform: translateX(30px);
  }
  
  .toggle-icon {
    font-size: 0.85rem;
  }
  
  .timeline::before {
    left: 30px;
  }
  
  .timeline-item {
    flex-direction: column;
  }
  
  .timeline-date {
    text-align: left;
    padding-right: 0;
    padding-left: 4rem;
    margin-bottom: 1rem;
  }
  
  .timeline-content {
    padding-left: 4rem;
  }
  
  .timeline-icon {
    left: 5px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .image-wrapper {
    width: 250px;
    height: 250px;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .toast {
    right: 10px;
    left: 10px;
    min-width: auto;
    max-width: none;
  }
}