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

  html {
    scroll-behavior: smooth;
  }

  body {
    background: #0f0f12;
    color: #eaeaea;
    font: 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    overflow-x: hidden;
  }

  /* Navegação Fixa */
  nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 15, 18, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 0, 64, 0.1);
  }

  nav ul {
    display: flex;
    justify-content: center;
    gap: 2rem;
    list-style: none;
    padding: 1.2rem 0;
    max-width: 1200px;
    margin: 0 auto;
  }

  nav a {
    color: #eaeaea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
  }

  nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #D61E16, #E33A2E);
    transition: width 0.3s;
  }

  nav a:hover {
    color: #E33A2E;
  }

  nav a:hover::after {
    width: 100%;
  }

  /* Seção Hero (Ruby) */
  .hero {
    width: 100vw;
    height: 100vh;
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
  }

  .ruby-svg {
    width: min(84vmin, 92vw);
    height: auto;
    display: block;
    transform-style: preserve-3d;
    animation: tilt 6s ease-in-out infinite;
    filter: drop-shadow(0 18px 60px rgba(255,0,64,.22));
  }

  .bg-glow {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    pointer-events: none;
  }

  .bg-glow::before {
    content: "";
    width: min(90vmin, 96vw);
    height: min(60vmin, 64vh);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,0,64,.32), rgba(255,0,64,0) 70%);
    filter: blur(12px);
    animation: pulse 2.8s ease-in-out infinite;
  }

  .scan {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    pointer-events: none;
    mix-blend-mode: screen;
  }

  .scan > div {
    width: 180%;
    height: 20%;
    max-height: 140px;
    background: linear-gradient(90deg,
      rgba(255,255,255,0),
      rgba(255,255,255,.35),
      rgba(255,255,255,0)
    );
    transform: rotate(-18deg) translateX(-120%) translateY(-5%);
    border-radius: 10px;
    animation: scan 3.2s linear infinite;
    filter: blur(.5px);
  }

  .spark {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: radial-gradient(circle, #fff, rgba(255,255,255,0));
    transform-origin: -22vmin -22vmin;
    animation: orbit 4.6s linear infinite;
    opacity: .8;
    filter: blur(.2px);
    pointer-events: none;
  }

  .spark.s2 {
    transform-origin: -30vmin -30vmin;
    width: 5px;
    height: 5px;
    animation-duration: 6.2s;
    opacity: .7;
  }

  .spark.s3 {
    transform-origin: -38vmin -38vmin;
    width: 4px;
    height: 4px;
    animation-duration: 7.8s;
    opacity: .6;
  }

  .hero-content {
    position: absolute;
    bottom: 15%;
    text-align: center;
    z-index: 10;
  }

  .hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff, #E33A2E);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .hero-content p {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    color: #d9d9d9;
    margin-bottom: 2rem;
  }

  .cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #D61E16, #E33A2E);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 20px rgba(255, 0, 64, 0.3);
  }

  .cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 0, 64, 0.5);
  }

  /* Seções Gerais */
  section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2rem;
  }

  section h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
  }

  section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #D61E16, #E33A2E);
    border-radius: 2px;
  }

  /* Sobre Mim */
  .about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
  }

  .about-image {
    width: 100%;
    max-width: 300px;
    height: 300px;
    border-radius: 20px;
    background: linear-gradient(135deg, #D61E16, #E33A2E);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    box-shadow: 0 10px 40px rgba(255, 0, 64, 0.3);
    margin: 0 auto;
  }

  .about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #d9d9d9;
    margin-bottom: 1rem;
  }

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

  .project-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    cursor: pointer;
  }

  .project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(255, 0, 64, 0.2);
    border-color: rgba(227, 58, 46, 0.5);
  }

  .project-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #D61E16, #E33A2E);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }

  .project-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #fff;
  }

  .project-card p {
    color: #d9d9d9;
    margin-bottom: 1.5rem;
    line-height: 1.6;
  }

  .project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
  }

  .tag {
    padding: 0.3rem 0.8rem;
    background: rgba(227, 58, 46, 0.2);
    border: 1px solid rgba(227, 58, 46, 0.3);
    border-radius: 20px;
    font-size: 0.85rem;
    color: #E33A2E;
  }

  .project-links {
    display: flex;
    gap: 1rem;
  }

  .project-link {
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #eaeaea;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
  }

  .project-link:hover {
    background: linear-gradient(135deg, #D61E16, #E33A2E);
    border-color: transparent;
  }

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

  .skill-category {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
  }

  .skill-category h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: #E33A2E;
  }

  .skill-item {
    margin-bottom: 1.5rem;
  }

  .skill-name {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
  }

  .skill-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
  }

  .skill-progress {
    height: 100%;
    background: linear-gradient(90deg, #D61E16, #E33A2E);
    border-radius: 10px;
    transition: width 1s ease-out;
  }

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

  /* Contato */
  .contact-container {
    display: flex;
    justify-content: center;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

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

  .contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s;
  }

  .contact-item:hover {
    border-color: rgba(227, 58, 46, 0.5);
    transform: translateX(10px);
  }

  .contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #D61E16, #E33A2E);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
  }

  .contact-details h3 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
  }

  .contact-details p {
    color: #d9d9d9;
    font-size: 0.95rem;
  }

  .contact-details a {
    color: #E33A2E;
    text-decoration: none;
  }

  .contact-details a:hover {
    text-decoration: underline;
  }

  /* Formulário */
  .contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .form-group label {
    font-weight: 500;
    color: #eaeaea;
  }

  .form-group input,
  .form-group textarea {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #eaeaea;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
  }

  .form-group input:focus,
  .form-group textarea:focus {
    outline: none;
    border-color: #E33A2E;
    background: rgba(255, 255, 255, 0.08);
  }

  .form-group textarea {
    resize: vertical;
    min-height: 150px;
  }

  .submit-button {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #D61E16, #E33A2E);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(255, 0, 64, 0.3);
  }

  .submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 0, 64, 0.5);
  }

  /* Footer */
  footer {
    background: rgba(15, 15, 18, 0.95);
    border-top: 1px solid rgba(255, 0, 64, 0.1);
    padding: 2rem;
    text-align: center;
  }

  .social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .social-link {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #eaeaea;
    text-decoration: none;
    font-size: 1.3rem;
    transition: all 0.3s;
  }

  .social-link:hover {
    background: linear-gradient(135deg, #D61E16, #E33A2E);
    border-color: transparent;
    transform: translateY(-5px);
  }

  footer p {
    color: #d9d9d9;
    font-size: 0.95rem;
  }

  /* Animações */
  @keyframes pulse {
    0%, 100% {
      opacity: .6;
      transform: scale(.94);
    }
    50% {
      opacity: 1;
      transform: scale(1.06);
    }
  }

  @keyframes scan {
    0% {
      transform: rotate(-18deg) translateX(-120%) translateY(-5%);
      opacity: 0;
    }
    15% {
      opacity: .25;
    }
    50% {
      opacity: .35;
    }
    100% {
      transform: rotate(-18deg) translateX(120%) translateY(5%);
      opacity: 0;
    }
  }

  @keyframes orbit {
    to {
      transform: rotate(360deg);
    }
  }

  @keyframes tilt {
    0% {
      transform: rotateX(0deg) rotateY(0deg);
    }
    25% {
      transform: rotateX(6deg) rotateY(-6deg);
    }
    50% {
      transform: rotateX(0deg) rotateY(0deg);
    }
    75% {
      transform: rotateX(-6deg) rotateY(6deg);
    }
    100% {
      transform: rotateX(0deg) rotateY(0deg);
    }
  }

  /* Responsivo */
  @media (max-width: 768px) {
    nav ul {
      gap: 1rem;
      padding: 1rem 0;
      flex-wrap: wrap;
    }

    .about-content,
    .contact-container {
      grid-template-columns: 1fr;
    }

    .hero-content {
      bottom: 10%;
      padding: 0 1rem;
    }

    section {
      padding: 3rem 1rem;
    }

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

  @media (max-aspect-ratio: 3/4) {
    .ruby-svg {
      width: min(86vmin, 88vw);
    }
    .bg-glow::before {
      width: min(92vmin, 96vw);
      height: min(64vmin, 70vh);
    }
  }

  @media (min-aspect-ratio: 16/9) {
    .ruby-svg {
      width: min(60vmin, 50vh);
    }
    .bg-glow::before {
      width: min(62vmin, 52vh);
      height: min(38vmin, 34vh);
    }
  }
