:root {
  /* Color variables - easily modify these values to change the color scheme */
  --background-color: #111111;
  --background-alt: #050b1a;
  --gradient-end: #1f1f1f;
  --text-color: #e0e0e0;
  --text-muted: #94a3b8;
  --active-color: #2ab6ff;
  --accent-color: #38bdf8;
  --dark-gray: #1c1c1c;
  --highlight-color: #ffd700;
  --button-bg: #1a1a1a;
  --button-hover: #2a2a2a;
  --card-surface: rgba(20, 24, 31, 0.95);
  --card-gradient-start: rgba(42, 182, 255, 0.25);
  --card-gradient-end: rgba(255, 215, 0, 0.15);
  --card-border: rgba(42, 182, 255, 0.3);
  --shadow-soft: 0 15px 35px -20px rgba(15, 23, 42, 0.7);
  --shadow-strong: 0 25px 50px -20px rgba(15, 23, 42, 0.85);
  --surface-highlight: rgba(24, 33, 57, 0.85);
  --surface-color: rgba(11, 17, 32, 0.85);
  --cta-primary: linear-gradient(135deg, #ffd700, #2ab6ff);
  --cta-primary-hover: linear-gradient(135deg, #ffe066, #5cd3ff);
}

body, html {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(180deg, var(--background-color) 0%, var(--background-alt) 100%);
  color: var(--text-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
}

header {
  position: fixed;
  width: 100%;
  background-color: rgba(11, 17, 32, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-soft);
  z-index: 1000;
}

.nav-bar {
  width: 100%;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-color);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, var(--accent-color), var(--highlight-color));
  color: #0f172a;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 12px 25px -12px rgba(250, 204, 21, 0.65);
}

.brand-name {
  font-size: 1.1rem;
  font-weight: 600;
}

.menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.menu li a {
  color: var(--text-color);
  text-decoration: none;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  transition: color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  font-weight: 500;
}

.menu li a:hover,
.menu li a.active {
  color: #0f172a;
  background: var(--accent-color);
  box-shadow: 0 12px 28px -18px rgba(56, 189, 248, 0.65);
}

main {
  padding: 6.5rem 0 4rem;
  flex: 1;
}

.section {
  padding: 3.5rem 5%;
  max-width: 1200px;
  margin: 0 auto 4rem;
}

h1, h2 {
  color: var(--text-color);
  margin: 0;
}

h1 {
  font-size: 3.2rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.25rem;
  font-weight: 600;
}

.profile {
  display: flex;
  align-items: center;
}

.profile-icon {
  width: 8rem;
  height: 8rem;
  border-radius: 50%;
  display: inline-block;
  margin-right: 2rem;
}

.profile-text {
  flex-grow: 1;
}

.skills {
  list-style: none;
  display: flex;
  justify-content: flex-start;
  gap: 1rem;
  margin: 1rem 0;
}

.skills li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.devicon {
  width: 1.5rem;
  height: 1.5rem;
  fill: var(--dark-gray);
}

.social {
  margin-top: 1rem;
}

.social a {
  color: var(--text-color);
  text-decoration: none;
  margin: 0 0.5rem;
}

.social a:hover {
  color: var(--active-color);
}

.project-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding: 2.5rem 5%;
  max-width: 900px;
  margin: 0 auto;
  background: radial-gradient(circle at top, rgba(42, 182, 255, 0.15), transparent 55%), var(--gradient-end);
}

.project-image-trigger {
  background: none;
  border: none;
  padding: 0;
  display: block;
  width: 100%;
  line-height: 0;
  border-radius: 1rem;
  cursor: zoom-in;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-image-trigger:focus-visible {
  outline: 3px solid var(--accent-color);
  outline-offset: 4px;
}

.project-image-trigger:hover .project-image,
.project-image-trigger:focus-visible .project-image {
  box-shadow: 0 20px 40px -24px rgba(42, 182, 255, 0.65);
  transform: translateY(-4px);
}

.project-image-trigger .project-image {
  display: block;
}

.project-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.project-carousel-track {
  display: flex;
  align-items: center;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0.5rem 0.75rem;
  border-radius: 1.25rem;
  background: rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(56, 189, 248, 0.25);
  width: 100%;
}

.project-carousel-track::-webkit-scrollbar {
  height: 8px;
}

.project-carousel-track::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.45);
  border-radius: 999px;
}

.project-carousel-track::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.45);
  border-radius: 999px;
}

.project-carousel .project-image-trigger {
  flex: 0 0 100%;
  max-width: 100%;
  scroll-snap-align: center;
}

@media (min-width: 768px) {
  .project-carousel .project-image-trigger {
    flex-basis: 80%;
  }
}

@media (min-width: 1024px) {
  .project-carousel .project-image-trigger {
    flex-basis: 70%;
  }
}

.project-carousel .project-image {
  max-height: 520px;
  aspect-ratio: 16 / 9;
}

.carousel-control {
  flex: 0 0 auto;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 215, 0, 0.6);
  background: rgba(11, 17, 32, 0.85);
  color: var(--highlight-color);
  font-size: 1.75rem;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 18px 30px -20px rgba(250, 204, 21, 0.65);
}

.carousel-control:hover,
.carousel-control:focus-visible {
  background: rgba(255, 215, 0, 0.18);
  transform: translateY(-2px);
  outline: none;
}

.carousel-control:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

@media (max-width: 640px) {
  .carousel-control {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.5rem;
  }
}

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2rem;
  border-radius: 1.5rem;
  background: var(--card-surface);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.45);
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--card-gradient-start), var(--card-gradient-end));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.65;
  transition: opacity 0.35s ease;
}

.project-card:hover,
.project-card:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 35px 55px rgba(0, 0, 0, 0.55);
}

.project-card:hover::before,
.project-card:focus-within::before {
  opacity: 1;
}

.project-image {
  width: 100%;
  max-height: 400px;
  aspect-ratio: 16 / 9;
  border-radius: 1.2rem;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(42, 182, 255, 0.15), rgba(255, 215, 0, 0.05));
  border: 1px solid var(--card-border);
  transition: transform 0.35s ease;
}

.project-card:hover .project-image,
.project-card:focus-within .project-image {
  transform: scale(1.02);
}

.project-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  height: 100%;
}

.project-header {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.project-title {
  font-size: 1.75rem;
  color: var(--highlight-color);
  margin: 0;
}

.project-subtitle {
  margin: 0;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(224, 224, 224, 0.7);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  background: rgba(42, 182, 255, 0.12);
  color: var(--text-color);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  border: 1px solid rgba(42, 182, 255, 0.25);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.project-summary {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(224, 224, 224, 0.85);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: auto;
}

.project-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  background: var(--cta-primary);
  color: #111;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  box-shadow: 0 12px 25px rgba(42, 182, 255, 0.35);
}

.project-cta svg {
  width: 1.25rem;
  height: 1.25rem;
}

.project-cta:hover,
.project-cta:focus {
  background: var(--cta-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 18px 30px rgba(42, 182, 255, 0.45);
}

.btn-expand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  margin-top: 1.25rem;
  border: none;
  border-radius: 999px;
  background: var(--cta-primary);
  color: #111;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.3s ease, background 0.3s ease;
  box-shadow: 0 12px 24px rgba(42, 182, 255, 0.35);
}

.btn-expand:hover,
.btn-expand:focus-visible {
  background: var(--cta-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(42, 182, 255, 0.45);
}

.btn-expand:focus-visible {
  outline: 3px solid rgba(56, 189, 248, 0.65);
  outline-offset: 3px;
}

.project-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: rgba(255, 215, 0, 0.15);
  border: 1px solid rgba(255, 215, 0, 0.35);
  color: var(--highlight-color);
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.project-icon-button svg {
  width: 1.2rem;
  height: 1.2rem;
}

.project-icon-button:hover,
.project-icon-button:focus {
  background: rgba(255, 215, 0, 0.35);
  color: #111;
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(255, 215, 0, 0.25);
}

.about-content,
.services-content,
.skills-content {
  background: var(--surface-highlight);
  padding: 2.5rem;
  border-radius: 1rem;
  margin-top: 2.5rem;
  box-shadow: var(--shadow-strong);
  border: 1px solid rgba(56, 189, 248, 0.14);
}

.skills-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  padding: 0;
  margin-top: 2.5rem;
}

.service-card {
  background: var(--surface-color);
  padding: 2.75rem;
  border-radius: 1rem;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  overflow: hidden;
  position: relative;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 18px 45px -30px rgba(15, 23, 42, 0.9);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 28px 65px -35px rgba(56, 189, 248, 0.55);
}

.service-card h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--highlight-color);
  transition: color 0.3s ease;
}

.service-description {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--text-muted);
  transition: color 0.3s ease, transform 0.3s ease;
}

.service-card:hover h2 {
  color: var(--accent-color);
}

.service-card:hover .service-description {
  color: var(--text-color);
  transform: translateY(-4px);
}

.service-more {
  margin-top: 2rem;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(255, 215, 0, 0.25));
  color: var(--text-color);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.service-more::after {
  content: '→';
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.service-more:hover,
.service-more:focus-visible {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.35), rgba(255, 215, 0, 0.45));
  transform: translateY(-3px);
  box-shadow: 0 18px 36px -20px rgba(56, 189, 248, 0.65);
  outline: none;
}

.service-more:hover::after,
.service-more:focus-visible::after {
  transform: translateX(4px);
}

.service-more:focus-visible {
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.5);
}

.service-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2100;
}

.service-modal.is-visible {
  display: flex;
}

.service-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 11, 26, 0.8);
  backdrop-filter: blur(6px);
  opacity: 0;
  animation: modalOverlayFade 0.35s forwards;
}

.service-modal__content {
  position: relative;
  z-index: 1;
  width: min(600px, 90%);
  max-height: min(80vh, 720px);
  overflow-y: auto;
  padding: clamp(2rem, 4vw, 2.75rem);
  border-radius: 1.25rem;
  background: linear-gradient(140deg, rgba(24, 33, 57, 0.97), rgba(11, 17, 32, 0.92));
  border: 1px solid rgba(56, 189, 248, 0.25);
  box-shadow: 0 28px 70px -30px rgba(15, 23, 42, 0.85);
  color: var(--text-color);
  transform: translateY(20px);
  opacity: 0;
  animation: modalContentSlide 0.4s forwards;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.service-modal__content h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--highlight-color);
  margin: 0;
}

.service-modal__content p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.service-modal__close {
  position: sticky;
  top: 0;
  align-self: flex-end;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  border: none;
  background: var(--highlight-color);
  color: #050b1a;
  font-size: 1.6rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 12px 28px -18px rgba(255, 215, 0, 0.55);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-modal__close:hover,
.service-modal__close:focus-visible {
  transform: scale(1.05);
  box-shadow: 0 18px 36px -18px rgba(255, 215, 0, 0.7);
  outline: none;
}

@keyframes modalOverlayFade {
  to {
    opacity: 1;
  }
}

@keyframes modalContentSlide {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .service-modal__content {
    width: 92%;
    max-height: 85vh;
    padding: 2rem 1.5rem;
  }

  .service-modal__content p {
    font-size: 1rem;
  }

  .service-modal__close {
    position: sticky;
    top: 0.5rem;
  }
}

@media (min-width: 1024px) {
  .service-modal__content {
    width: min(680px, 70%);
  }
}

footer {
  background: rgba(10, 16, 30, 0.95);
  color: var(--text-muted);
  text-align: center;
  padding: 1.5rem 0;
  position: relative;
  width: 100%;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  margin-top: 4rem;
}

.hero-section {
  min-height: 80vh;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  justify-items: center;
  padding: 8rem 5% 3rem;
  background-size: cover;
  background-position: center;
  background:
    linear-gradient(
      to bottom,
      rgba(17, 17, 17, 0.55) 0%,
      rgba(17, 17, 17, 0.6) 60%,
      rgba(51, 51, 51, 0.9) 100%
    ),
    url('imagens/imagemAreaDeTrab-1024x535.png') no-repeat center center / cover;
}

.hero-grid {
  width: min(1200px, 100%);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem;
  align-items: center;
  margin: 0 auto;
  grid-column: 1 / -1;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: left;
}

.hero-copy h1 {
  font-size: clamp(2.5rem, 4vw + 1rem, 4rem);
  line-height: 1.1;
  margin: 0;
}

.hero-copy .intro-text {
  font-size: 1.3rem;
  line-height: 1.7;
  max-width: 48ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-copy .social-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.cta-button {
  padding: 0.9rem 1.8rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  color: #111;
  background: var(--highlight-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.cta-button:hover,
.cta-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.3);
}

.cta-secondary {
  background: transparent;
  color: var(--text-color);
  border: 2px solid var(--text-color);
}

.cta-secondary:hover,
.cta-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.12);
}

.hero-visual {
  display: flex;
  justify-content: flex-end;
}

.profile-photo {
  width: min(320px, 100%);
  height: min(320px, 100%);
  border-radius: 50%;
  background-color: #2a2a2a;
  border: 5px solid rgba(224, 224, 224, 0.8);
  object-fit: cover;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

.highlight {
  color: var(--highlight-color);
}

.tech-stack {
  display: flex;
  gap: 2rem;
  margin: 2rem 0 1rem;
}

.tech-icon svg {
  width: 3rem;
  height: 3rem;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: drop-shadow(0 12px 20px rgba(56, 189, 248, 0.25));
}

.tech-icon:hover svg {
  transform: scale(1.08);
  filter: drop-shadow(0 16px 28px rgba(56, 189, 248, 0.4));
}

.social-links {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.social-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  background: rgba(31, 42, 68, 0.8);
  border-radius: 2rem;
  color: var(--text-color);
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  box-shadow: 0 10px 30px -20px rgba(56, 189, 248, 0.65);
}

.social-button:hover {
  background: var(--accent-color);
  color: #0f172a;
  transform: translateY(-3px);
  box-shadow: 0 18px 45px -25px rgba(56, 189, 248, 0.65);
}

.social-icon {
  width: 1.5rem;
  height: 1.5rem;
}

.projects-preview {
  min-height: 20vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 1.25rem;
  padding: 3rem 0 2.5rem;
  background: linear-gradient(180deg, rgba(20, 32, 54, 0.9) 0%, rgba(15, 23, 42, 0.7) 100%);
}

.scroll-indicator {
  width: 2rem;
  height: 2rem;
  border-right: 2px solid var(--accent-color);
  border-bottom: 2px solid var(--accent-color);
  transform: rotate(45deg);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0) rotate(45deg);
  }
  40% {
    transform: translateY(-10px) rotate(45deg);
  }
  60% {
    transform: translateY(-5px) rotate(45deg);
  }
}

.skill-card {
  display: flex;
  align-items: center;
  background: var(--surface-highlight);
  border-radius: 1rem;
  padding: 2.25rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(56, 189, 248, 0.12);
  box-shadow: 0 20px 45px -30px rgba(56, 189, 248, 0.45);
  gap: 2rem;
}

.skill-card:hover {
  transform: translateX(10px);
  box-shadow: 0 28px 60px -30px rgba(56, 189, 248, 0.6);
}

.skill-title {
  flex: 0 0 300px;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--highlight-color);
  text-align: center;
  padding-right: 2rem;
  border-right: 2px solid rgba(148, 163, 184, 0.25);
  letter-spacing: 0.03em;
}

.skill-description {
  flex: 1;
  font-size: 1.15rem;
  line-height: 1.7;
  padding-left: 2rem;
  color: var(--text-muted);
}

.about-text {
  font-family: 'Merriweather', serif;
  line-height: 1.8;
  font-size: 1.2rem;
  color: var(--text-color);
  margin-bottom: 4rem;
}

.about-text p {
  margin-bottom: 2rem;
}

.timeline {
  position: relative;
  padding: 2rem 0;
  margin-top: 4rem;
}

.timeline-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.25) 0%, var(--highlight-color) 50%, rgba(56, 189, 248, 0.25) 100%);
  transform: translateY(-50%);
}

.timeline-events {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 1;
  gap: 2rem;
}

.timeline-event {
  background: var(--surface-highlight);
  padding: 1.75rem;
  border-radius: 0.75rem;
  width: 250px;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(56, 189, 248, 0.18);
  box-shadow: 0 18px 45px -30px rgba(15, 23, 42, 0.9);
}

.timeline-event:hover {
  transform: translateY(-12px);
  box-shadow: 0 26px 60px -30px rgba(56, 189, 248, 0.55);
}

.timeline-event::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  background: var(--accent-color);
  border-radius: 50%;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
}

.timeline-date {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--highlight-color);
  margin-bottom: 0.5rem;
}

.timeline-content h3 {
  font-size: 1.35rem;
  margin: 0.5rem 0;
  color: var(--text-color);
}

.timeline-content p {
  font-size: 1rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 0.75rem 5%;
  }

  nav ul li {
    margin: 0.5rem 0;
  }

  .hero-section {
    grid-template-columns: 1fr;
    padding: 6rem 1.5rem 3rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .hero-copy {
    align-items: center;
    text-align: center;
  }

  .hero-copy .intro-text {
    max-width: none;
    font-size: 1.1rem;
    line-height: 1.6;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-visual {
    justify-content: center;
  }

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

  .profile-icon {
    margin: 0 auto 1rem;
  }
  
  h1 {
    font-size: 2rem;
  }

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

  .tech-stack {
    justify-content: center;
  }

  .social-links {
    flex-direction: column;
    align-items: center;
  }

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

  .service-card {
    min-height: 180px;
  }

  .skill-card {
    flex-direction: column;
    text-align: center;
    padding: 1.75rem;
  }

  .skill-title {
    flex: none;
    width: 100%;
    padding-right: 0;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-right: none;
    border-bottom: 2px solid rgba(148, 163, 184, 0.25);
  }

  .skill-description {
    padding-left: 0;
    text-align: center;
  }

  .about-text {
    font-size: 1.05rem;
  }

  .timeline-events {
    flex-direction: column;
    align-items: center;
    gap: 3rem;
  }

  .timeline-line {
    width: 4px;
    height: 100%;
    left: 50%;
    transform: translateX(-50%);
  }

  .timeline-event::before {
    left: -28px;
    top: 50%;
    transform: translateY(-50%);
  }

  .timeline-event {
    width: 80%;
    margin-left: 2rem;
  }

  .profile-photo {
    width: 200px;
    height: 200px;
  }

  .project-cards {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .project-card {
    padding: 1.5rem;
    gap: 1.25rem;
  }

  .project-image {
    height: auto;
    max-height: none;
  }

  .project-title {
    font-size: 1.45rem;
  }

  .project-cta {
    width: 100%;
    justify-content: center;
  }
}

.image-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.image-modal.is-visible {
  display: flex;
}

.image-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 11, 26, 0.75);
  backdrop-filter: blur(4px);
}

.image-modal__content {
  position: relative;
  z-index: 1;
  max-width: min(90%, 960px);
  max-height: 90vh;
  border-radius: 1.2rem;
  overflow: hidden;
  box-shadow: var(--shadow-strong);
  background: linear-gradient(145deg, rgba(24, 33, 57, 0.95), rgba(17, 24, 39, 0.9));
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-modal__img {
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  border-radius: 0.75rem;
  box-shadow: 0 18px 50px -20px rgba(0, 0, 0, 0.8);
}

.image-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--highlight-color);
  color: #050b1a;
  border: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  font-size: 1.5rem;
  font-weight: 700;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.image-modal__close:hover,
.image-modal__close:focus-visible {
  transform: scale(1.05);
  box-shadow: 0 16px 30px -18px rgba(255, 215, 0, 0.65);
}
