/* Reset e Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Source Sans Pro", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1f2937;
  background-color: #ffffff;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3.5rem;
  font-weight: 700;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 1.875rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1rem;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.875rem;
}

.btn--primary {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  color: white;
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(30, 64, 175, 0.3);
}

.btn--secondary {
  background: transparent;
  color: #1e40af;
  border: 2px solid #1e40af;
}

.btn--secondary:hover {
  background: #1e40af;
  color: white;
}

.btn--icon {
  padding: 0.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #1e40af;
  backdrop-filter: blur(10px);
}

.btn--full {
  width: 100%;
  justify-content: center;
}

/* Loading Animation */
.ri-spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
}

.btn:disabled:hover {
  transform: none !important;
  box-shadow: none !important;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.nav__brand h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e40af;
  margin: 0;
}

.nav__list {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav__link {
  text-decoration: none;
  color: #1f2937;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav__link:hover {
  color: #1e40af;
}

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

.nav__toggle,
.nav__close {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

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

.section__header {
  text-align: center;
  margin-bottom: 3rem;
}

.section__subtitle {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  color: white;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.section__title {
  font-size: 2.5rem;
  color: #1f2937;
  margin: 0;
}

/* Hero Section */
.hero {
  padding: 8rem 0 5rem;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  position: relative;
  overflow: hidden;
}

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

.hero__title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1rem;
  min-height: 140px;
  display: block;
}

/* Sistema de Digitação Novo */
.typing-text {
  display: inline;
}

.typing-cursor {
  color: #1e40af;
  animation: blink 1s infinite;
  font-weight: 300;
  margin-left: 2px;
  display: inline;
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

.hero__title--accent {
  color: #1e40af;
}

.hero__title--gradient {
  background: linear-gradient(135deg, #1e40af 0%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__description {
  font-size: 1.125rem;
  color: #6b7280;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero__stats {
  display: flex;
  gap: 2rem;
}

.stat {
  text-align: center;
}

.stat__number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: #1e40af;
}

.stat__label {
  font-size: 0.875rem;
  color: #6b7280;
}

/* Hero Visual */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__illustration {
  position: relative;
  width: 100%;
  height: 400px;
}

.floating-element {
  position: absolute;
  border-radius: 1rem;
  animation: float 6s ease-in-out infinite;
}

.floating-element--1 {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.floating-element--2 {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  top: 60%;
  right: 20%;
  animation-delay: 2s;
}

.floating-element--3 {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
  bottom: 20%;
  left: 20%;
  animation-delay: 4s;
}

.code-window {
  background: #1f2937;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
  width: 350px;
  position: relative;
  z-index: 2;
}

.code-window__header {
  background: #374151;
  padding: 1rem;
  display: flex;
  align-items: center;
}

.code-window__dots {
  display: flex;
  gap: 0.5rem;
}

.code-window__dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.code-window__dots span:nth-child(1) {
  background: #ef4444;
}

.code-window__dots span:nth-child(2) {
  background: #f59e0b;
}

.code-window__dots span:nth-child(3) {
  background: #10b981;
}

.code-window__content {
  padding: 1.5rem;
  font-family: "Courier New", monospace;
  font-size: 0.875rem;
  line-height: 1.6;
}

.code-line {
  margin-bottom: 0.5rem;
}

.code-line--indent {
  padding-left: 1rem;
}

.code-keyword {
  color: #f472b6;
}

.code-variable {
  color: #60a5fa;
}

.code-property {
  color: #34d399;
}

.code-string {
  color: #fbbf24;
}

.code-bracket {
  color: #fbbf24;
}

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

/* About Section */
.about__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about__description {
  font-size: 1.125rem;
  color: #6b7280;
  margin-bottom: 1.5rem;
}

.about__highlights {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.highlight {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: #f8fafc;
  border-radius: 1rem;
  border-left: 4px solid #1e40af;
}

.highlight__icon {
  font-size: 2rem;
  color: #1e40af;
}

.highlight__content h4 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.highlight__content p {
  color: #6b7280;
  margin: 0;
}

.skills__title {
  margin-bottom: 2rem;
  text-align: center;
}

.skills__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.skill-card {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
}

.skill-card__icon {
  font-size: 2.5rem;
  color: #1e40af;
  margin-bottom: 1rem;
}

.skill-card h4 {
  margin-bottom: 0.5rem;
}

.skill-card p {
  color: #6b7280;
  margin: 0;
}

/* Services Section */
.services {
  background: #f8fafc;
}

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

.service-card {
  background: white;
  padding: 2.5rem;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.service-card--featured {
  border: 2px solid #1e40af;
  transform: scale(1.05);
}

.service-card__badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.service-card__icon {
  font-size: 3rem;
  color: #1e40af;
  margin-bottom: 1.5rem;
}

.service-card__title {
  margin-bottom: 1rem;
}

.service-card__description {
  color: #6b7280;
  margin-bottom: 1.5rem;
}

.service-card__features {
  list-style: none;
  margin-bottom: 2rem;
}

.service-card__features li {
  padding: 0.5rem 0;
  color: #6b7280;
  position: relative;
  padding-left: 1.5rem;
}

.service-card__features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #10b981;
  font-weight: bold;
}

.service-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #1e40af;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.service-card__cta:hover {
  color: #3b82f6;
}

/* Portfolio Section */
.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.portfolio-card {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.portfolio-card__image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.portfolio-card__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: white;
}

.portfolio-card__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(30, 64, 175, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-card:hover .portfolio-card__overlay {
  opacity: 1;
}

.portfolio-card__actions {
  display: flex;
  gap: 1rem;
}

.portfolio-card__content {
  padding: 2rem;
}

.portfolio-card__title {
  margin-bottom: 1rem;
}

.portfolio-card__description {
  color: #6b7280;
  margin-bottom: 1.5rem;
}

.portfolio-card__tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag {
  background: #e2e8f0;
  color: #1f2937;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 500;
}

/* Contact Section */
.contact {
  background: #f8fafc;
}

.contact__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact__info h3 {
  margin-bottom: 1rem;
}

.contact__info p {
  color: #6b7280;
  margin-bottom: 2rem;
}

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

.contact-method {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: white;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.contact-method__icon {
  font-size: 1.5rem;
  color: #1e40af;
}

.contact-method__content h4 {
  margin-bottom: 0.25rem;
}

.contact-method__content p {
  color: #6b7280;
  margin: 0;
}

/* Form */
.contact__form {
  background: white;
  padding: 2.5rem;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.form__group {
  position: relative;
  margin-bottom: 1.5rem;
}

.form__label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #1f2937;
}

.form__input,
.form__textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.5rem;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form__input:focus,
.form__textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form__input--error,
.form__textarea--error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form__error {
  display: block;
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  font-weight: 500;
}

.form__textarea {
  resize: vertical;
  min-height: 120px;
}

/* Footer */
.footer {
  background: #1f2937;
  color: white;
  padding: 3rem 0 1rem;
}

.footer__content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer__brand h3 {
  color: #3b82f6;
  margin-bottom: 1rem;
}

.footer__brand p {
  color: #9ca3af;
}

.footer__links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer__group h4 {
  margin-bottom: 1rem;
  color: white;
}

.footer__group ul {
  list-style: none;
}

.footer__group ul li {
  margin-bottom: 0.5rem;
}

.footer__group ul li a {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer__group ul li a:hover {
  color: #3b82f6;
}

.footer__social {
  display: flex;
  gap: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #374151;
  color: #9ca3af;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: #3b82f6;
  color: white;
  transform: translateY(-2px);
}

.footer__bottom {
  border-top: 1px solid #374151;
  padding-top: 2rem;
  text-align: center;
}

.footer__bottom p {
  color: #9ca3af;
  margin: 0;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 50%;
  transform: translateX(50%);
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 15px rgba(30, 64, 175, 0.3);
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  z-index: 1000;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateX(50%) translateY(-3px);
  box-shadow: 0 8px 25px rgba(30, 64, 175, 0.4);
}

.back-to-top:active {
  transform: translateX(50%) translateY(-1px);
}

@media (max-width: 1024px) {
  .hero__container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about__container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .contact__container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

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

  .footer__links {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: white;
    padding: 4rem 2rem 2rem;
    transition: right 0.3s ease;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  }

  .nav__menu.show-menu {
    right: 0;
  }

  .nav__list {
    flex-direction: column;
    gap: 2rem;
  }

  .nav__close {
    display: block;
    position: absolute;
    top: 1rem;
    right: 1rem;
  }

  .nav__toggle {
    display: block;
  }

  .hero__title {
    font-size: 2.2rem;
  }

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

  .hero__stats {
    justify-content: center;
  }

  .section__title {
    font-size: 2rem;
  }

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

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

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

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

@media (max-width: 480px) {
  .container {
    padding: 0 0.75rem;
  }

  .hero {
    padding: 6rem 0 3rem;
  }

  .hero__title {
    font-size: 1.8rem;
  }

  .section {
    padding: 3rem 0;
  }

  .service-card,
  .portfolio-card {
    margin: 0 0.5rem;
  }

  .contact__form {
    padding: 1.5rem;
  }
}
