/* ============================================
   VINÍCIUS BORELLI — PORTFÓLIO
   style.css
   ============================================ */

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

   :root {
     --black:  #0f0f0f;
     --white:  #fafaf8;
     --gray:   #8a8a85;
     --light:  #f0ede8;
     --accent: #c8b89a;
     --serif:  'DM Serif Display', serif;
     --sans:   'DM Sans', sans-serif;
   }
   
   html { scroll-behavior: smooth; }
   
   body {
     font-family: var(--sans);
     background: var(--white);
     color: var(--black);
     font-size: 16px;
     line-height: 1.6;
     overflow-x: hidden;
   }
   
   /* ---- NAVIGATION ---- */
   nav {
     position: fixed;
     top: 0; left: 0; right: 0;
     z-index: 100;
     padding: calc(1.25rem + env(safe-area-inset-top)) 2.5rem 1.25rem;
     display: flex;
     justify-content: space-between;
     align-items: center;
     background: rgba(250,250,248,0.93);
     backdrop-filter: blur(10px);
     border-bottom: 1px solid rgba(15,15,15,0.08);
   }
   
   .nav-logo { height: 32px; display: block; }
   
   .nav-toggle {
     display: none;
     border: 0;
     background: var(--black);
     color: var(--white);
     padding: 0.55rem 0.95rem;
     border-radius: 999px;
     font-size: 13px;
     font-weight: 500;
     letter-spacing: 0.02em;
     align-items: center;
     gap: 0.6rem;
     cursor: pointer;
     white-space: nowrap;
   }
   
   .nav-toggle:active { opacity: 0.9; }
   
   .nav-toggle-icon {
     width: 18px; height: 2px;
     background: currentColor;
     position: relative;
     display: inline-block;
     flex-shrink: 0;
   }
   
   .nav-toggle-icon::before,
   .nav-toggle-icon::after {
     content: "";
     position: absolute;
     left: 0; width: 100%; height: 2px;
     background: currentColor;
   }
   
   .nav-toggle-icon::before { top: -6px; }
   .nav-toggle-icon::after  { top:  6px; }
   .nav-toggle-text { line-height: 1; }
   
   .nav-overlay {
     position: fixed; inset: 0; z-index: 99;
     background: rgba(15,15,15,0.18);
     backdrop-filter: blur(6px);
     opacity: 0; pointer-events: none;
     transition: opacity 0.2s ease;
   }
   
   .nav-links { display: flex; gap: 2rem; list-style: none; }
   
   .nav-links a {
     text-decoration: none;
     font-size: 14px; font-weight: 400;
     color: var(--gray);
     letter-spacing: 0.02em;
     transition: color 0.2s;
   }
   
   .nav-links a:hover { color: var(--black); }
   
   .nav-cta {
     font-size: 13px; font-weight: 500;
     text-decoration: none;
     color: var(--white);
     background: var(--black);
     padding: 0.5rem 1.25rem;
     border-radius: 100px;
     letter-spacing: 0.02em;
     transition: opacity 0.2s;
     white-space: nowrap;
   }
   
   .nav-cta:hover { opacity: 0.75; }
   
   .nav-toggle:focus-visible,
   .nav-links a:focus-visible,
   .nav-cta:focus-visible,
   .btn-primary:focus-visible,
   .btn-ghost:focus-visible {
     outline: 3px solid var(--accent);
     outline-offset: 3px;
   }
   
   /* ---- HERO — DESKTOP ---- */
   .hero {
     min-height: 100vh;
     display: grid;
     grid-template-columns: 1fr 1fr;
     overflow: hidden;
     background: var(--white);
   }
   
   .hero-left {
     display: flex;
     flex-direction: column;
     justify-content: center;
     padding: 0;
   }
   
   .hero-left-card {
     width: 100%; height: 100%; min-height: 100%;
     border-radius: 0; border: 0;
     background: transparent; box-shadow: none;
     display: flex; flex-direction: column; justify-content: center;
     position: relative; overflow: hidden; isolation: isolate;
     --grid-size: 40px;
     --grid-offset-x: 0px; --grid-offset-y: 0px;
     --grid-mouse-x: 50%; --grid-mouse-y: 50%;
   }
   
   .hero-left-content {
     padding: 2rem 4rem 2rem 7vw;
     height: 100%;
     display: flex; flex-direction: column; justify-content: center;
     background: radial-gradient(ellipse at center, rgba(250,250,248,0.82) 0%, rgba(250,250,248,0.45) 70%, transparent 100%);
   }
   
   .hero-left-card::before,
   .hero-left-card::after {
     content: "";
     position: absolute; inset: 0;
     pointer-events: none;
     background-image:
       linear-gradient(to right, rgba(15,15,15,0.12) 1px, transparent 1px),
       linear-gradient(to bottom, rgba(15,15,15,0.12) 1px, transparent 1px);
     background-size: var(--grid-size) var(--grid-size);
     background-position: var(--grid-offset-x) var(--grid-offset-y);
     z-index: 0;
   }
   
   .hero-left-card::before { opacity: 0; }
   
   .hero-left-card::after {
     opacity: 2.95;
     -webkit-mask-image: radial-gradient(380px circle at var(--grid-mouse-x) var(--grid-mouse-y), black 0%, transparent 68%);
     mask-image: radial-gradient(380px circle at var(--grid-mouse-x) var(--grid-mouse-y), black 0%, transparent 68%);
   }
   
   .hero-left-card > * { position: relative; z-index: 1; }
   
   .hero-tag {
     display: inline-block;
     font-size: 11px; font-weight: 500;
     letter-spacing: 0.12em; text-transform: uppercase;
     color: var(--accent); margin-bottom: 1.5rem;
   }
   
   .hero-title {
     font-family: var(--serif);
     font-size: clamp(2.6rem, 4.6vw, 4.1rem);
     line-height: 1.1; color: var(--black);
     margin-bottom: 1.5rem; font-weight: 400;
   }
   
   .hero-title em { font-style: italic; color: var(--gray); }
   
   .hero-desc {
     font-size: clamp(1rem, 0.55vw + 0.9rem, 1.1rem);
     line-height: 1.62; color: var(--gray);
     max-width: 460px; margin-bottom: 2rem;
   }
   
   .hero-actions {
     display: flex; gap: 1rem;
     align-items: center; flex-wrap: wrap;
   }
   
   .hero-right {
     height: 100%; position: relative;
     overflow: hidden;
     display: flex; align-items: flex-start;
   }
   
   .hero-photo {
     width: 100%; height: 100%;
     min-height: 100vh;
     object-fit: cover; object-position: top center;
     filter: grayscale(8%) contrast(1.02);
     display: block;
   }
   
   .hero-stats {
     position: absolute; bottom: 2rem; left: 50%;
     transform: translateX(-50%);
     display: flex; gap: 1rem; white-space: nowrap;
   }
   
   .stat {
     background: rgba(250,250,248,0.92);
     backdrop-filter: blur(8px);
     padding: 0.75rem 1rem;
     border-radius: 12px;
     border: 1px solid rgba(15,15,15,0.08);
   }
   
   .stat-number {
     font-family: var(--serif);
     font-size: 1.4rem; line-height: 1;
     color: var(--black); display: block;
   }
   
   .stat-label {
     font-size: 11px; color: var(--gray);
     letter-spacing: 0.03em; display: block; margin-top: 3px;
   }
   
   /* ---- SECTIONS ---- */
   section { padding: 6rem 7vw; }
   
   .section-tag {
     font-size: 11px; font-weight: 500;
     letter-spacing: 0.14em; text-transform: uppercase;
     color: var(--accent); margin-bottom: 1rem; display: block;
   }
   
   .section-title {
     font-family: var(--serif);
     font-size: clamp(2rem, 3.5vw, 3rem);
     font-weight: 400; line-height: 1.15;
     color: var(--black); margin-bottom: 1.25rem;
   }
   
   .section-sub {
     font-size: 16px; color: var(--gray);
     line-height: 1.7; max-width: 480px;
   }
   
   /* ---- BUTTONS ---- */
   .btn-primary {
     text-decoration: none;
     background: var(--black); color: var(--white);
     padding: 0.8rem 1.75rem; border-radius: 100px;
     font-size: 14px; font-weight: 500;
     letter-spacing: 0.02em; transition: opacity 0.2s;
     display: inline-block;
   }
   
   .btn-primary:hover { opacity: 0.75; }
   
   .btn-ghost {
     text-decoration: none; color: var(--black);
     font-size: 14px; font-weight: 400;
     border-bottom: 1px solid var(--black);
     padding-bottom: 1px; transition: opacity 0.2s;
   }
   
   .btn-ghost:hover { opacity: 0.5; }
   
   /* ---- SERVICES ---- */
   .services-grid {
     display: grid;
     grid-template-columns: repeat(3, 1fr);
     gap: 1px;
     background: rgba(15,15,15,0.1);
     border: 1px solid rgba(15,15,15,0.1);
     border-radius: 16px; overflow: hidden; margin-top: 4rem;
   }
   
   .service-card {
     background: var(--white); padding: 2.5rem 2rem;
     transition: background 0.2s;
   }
   
   .service-card:hover { background: var(--light); }
   
   .service-num {
     font-family: var(--serif);
     font-size: 2.5rem; color: rgba(15,15,15,0.1);
     line-height: 1; margin-bottom: 1.25rem; display: block;
   }
   
   .service-title {
     font-size: 17px; font-weight: 500;
     color: var(--black); margin-bottom: 0.75rem; line-height: 1.3;
   }
   
   .service-desc { font-size: 14px; color: var(--gray); line-height: 1.65; }
   
/* ---- PROJECTS ---- */
.projects-header {
  display: flex; justify-content: space-between;
  align-items: flex-end; margin-bottom: 3.5rem;
  flex-wrap: wrap; gap: 1rem;
}

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

/* ---- PROJECTS CARDS — lift elegante ---- */
.project-card {
  border-radius: 16px;
  overflow: visible;
  border: 1px solid rgba(15,15,15,0.08);
  background: var(--white);
  position: relative;
  cursor: pointer;

  /* sombra base sutil — o card já "flutua" levemente */
  box-shadow:
    0 2px 4px rgba(15,15,15,0.04),
    0 4px 12px rgba(15,15,15,0.06);

  transition:
    transform 0.38s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.38s ease,
    border-color 0.25s ease;
}

.project-card-inner {
  border-radius: 16px;
  overflow: hidden;
}

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

  /* sombra em dois layers: difusa (profundidade) + direcional (chão) */
  box-shadow:
    0 8px 16px rgba(15,15,15,0.08),
    0 20px 48px rgba(15,15,15,0.14),
    0 1px 2px rgba(15,15,15,0.06);

  border-color: rgba(15,15,15,0.14);
}

.project-peek {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateY(0px);
  background: var(--black);
  color: var(--white);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease,
              transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 10;
}

.project-card:hover .project-peek {
  opacity: 1;
  transform: translateX(-50%) translateY(-36px);
}

.project-peek::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--black);
}

.project-link {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  z-index: 5;
}

.project-img-wrap {
  width: 100%; height: 260px;
  overflow: hidden; background: var(--light);
}

.project-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top;
  transition: transform 0.4s;
}

.project-card:hover .project-img-wrap img { transform: scale(1.04); }

.project-info { padding: 1.5rem 1.75rem; }

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

.tag {
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--light); color: var(--gray);
  padding: 3px 10px; border-radius: 100px;
}

.project-name {
  font-size: 18px; font-weight: 500;
  color: var(--black); margin-bottom: 0.5rem;
}

.project-desc { font-size: 14px; color: var(--gray); line-height: 1.6; }
   
   /* ---- ABOUT ---- */
   .about-section {
     background: var(--black); color: var(--white);
     display: grid; grid-template-columns: 1fr 1fr;
     gap: 5rem; align-items: center;
   }
   
   .about-section .section-tag  { color: var(--accent); }
   .about-section .section-title { color: var(--white); }
   
   .about-text {
     font-size: 15px; line-height: 1.8;
     color: rgba(250,250,248,0.62); margin-top: 1.25rem;
   }
   
   .about-text p + p { margin-top: 1rem; }
   
   .timeline { display: flex; flex-direction: column; }
   
   .timeline-item {
     display: flex; gap: 1.5rem;
     padding: 1.25rem 0;
     border-bottom: 1px solid rgba(250,250,248,0.08);
   }
   
   .timeline-item:last-child { border-bottom: none; }
   
   .timeline-year {
     font-size: 12px; letter-spacing: 0.06em;
     color: var(--accent); font-weight: 500;
     min-width: 70px; padding-top: 2px;
   }
   
   .timeline-content h4 {
     font-size: 15px; font-weight: 500;
     color: var(--white); margin-bottom: 3px;
   }
   
   .timeline-content p {
     font-size: 13px;
     color: rgba(250,250,248,0.48); line-height: 1.5;
   }
   
   /* ---- CTA ---- */
   .cta-section {
     background: var(--light); text-align: center; padding: 7rem 7vw;
   }
   
   .cta-section .section-title { max-width: 600px; margin: 0 auto 1rem; }
   .cta-section .section-sub   { max-width: 480px; margin: 0 auto 2.5rem; }
   
   .cta-row {
     display: flex; gap: 1rem;
     justify-content: center; align-items: center; flex-wrap: wrap;
   }
   
   .cta-note { font-size: 13px; color: var(--gray); margin-top: 1.25rem; }
   
   /* ---- FOOTER ---- */
   footer {
     padding: 2rem 7vw;
     background: var(--black);
     display: flex; justify-content: space-between;
     align-items: center; flex-wrap: wrap; gap: 1rem;
   }
   
   .footer-logo { height: 28px; display: block; opacity: 0.8; }
   .footer-copy { font-size: 13px; color: rgba(250,250,248,0.4); }
   
   .footer-links { display: flex; gap: 1.5rem; }
   
   .footer-links a {
     font-size: 13px; color: rgba(250,250,248,0.5);
     text-decoration: none; transition: color 0.2s;
   }
   
   .footer-links a:hover { color: var(--white); }
   
   /* ---- WHATSAPP FLOAT ---- */
   .whatsapp-float { display: none; }
   
   /* ---- ANIMATIONS ---- */
   @keyframes fadeUp {
     from { opacity: 0; transform: translateY(20px); }
     to   { opacity: 1; transform: translateY(0); }
   }
   
   .hero-tag     { animation: fadeUp 0.6s 0.0s ease both; }
   .hero-title   { animation: fadeUp 0.6s 0.1s ease both; }
   .hero-desc    { animation: fadeUp 0.6s 0.2s ease both; }
   .hero-actions { animation: fadeUp 0.6s 0.3s ease both; }
   
   @media (prefers-reduced-motion: reduce) {
     html { scroll-behavior: auto; }
     .hero-tag, .hero-title, .hero-desc, .hero-actions { animation: none !important; }
     .project-card:hover { transform: none; box-shadow: none; }
     .project-card:hover .project-img-wrap img { transform: none; }
   }
   
   /* ================================================
      MOBILE
      ================================================ */
   @media (max-width: 900px) {
   
     /* NAV — logo + menu button apenas, sem "Falar comigo" */
     nav {
       padding: calc(0.85rem + env(safe-area-inset-top)) 1.25rem 0.85rem;
       gap: 0;
     }
   
     .nav-logo { height: 22px; }
   
     .nav-cta { display: none; }
   
     .nav-toggle { display: inline-flex; }
   
     .nav-links {
       position: absolute;
       top: 100%; left: 0; right: 0;
       flex-direction: column; gap: 0;
       background: var(--white);
       border-bottom: 1px solid rgba(15,15,15,0.08);
       transform: translateY(-8px);
       opacity: 0; pointer-events: none;
       transition: transform 0.22s ease, opacity 0.22s ease;
       z-index: 101;
     }
   
     .nav-links a {
       display: flex; align-items: center;
       min-height: 56px; font-size: 16px;
       padding: 0 1.5rem;
       border-bottom: 1px solid rgba(15,15,15,0.05);
       color: var(--black);
       font-weight: 400;
     }
   
     .nav-links li:last-child a { border-bottom: none; }
   
     /* Link extra de contato dentro do menu mobile */
     .nav-links .nav-contact-mobile a {
       color: var(--black);
       font-weight: 500;
     }
   
     body.nav-open .nav-links  { transform: translateY(0); opacity: 1; pointer-events: auto; }
     body.nav-open .nav-overlay { opacity: 1; pointer-events: auto; }
     body.nav-open { overflow: hidden; }
   
     /* HERO — empilhado: foto → stats → texto */
     .hero {
       display: flex;
       flex-direction: column;
       min-height: auto;
     }
   
     /* Foto: altura natural sem corte */
     .hero-right {
       order: 1;
       width: 100%;
       height: auto;
       aspect-ratio: 3 / 4;
       max-height: 75vh;
       overflow: hidden;
       display: block;
       position: relative;
     }
   
     .hero-photo {
       width: 100%; height: 100%;
       min-height: auto;
       object-fit: cover;
       object-position: top center;
       display: block;
     }
   
     /* Stats: faixa escura abaixo da foto */
     .hero-stats {
       order: 2;
       position: static;
       transform: none;
       left: auto; bottom: auto;
       display: grid;
       grid-template-columns: 1fr 1fr;
       gap: 0;
       white-space: normal;
       background: var(--black);
     }
   
     .stat {
       display: flex;
       flex-direction: column;
       align-items: center;
       justify-content: center;
       backdrop-filter: none;
       background: transparent;
       border: none;
       border-right: 1px solid rgba(255,255,255,0.08);
       border-radius: 0;
       padding: 1.1rem 1rem;
     }
   
     .stat:last-child { border-right: none; }
   
     .stat-number {
       font-size: 1.4rem;
       color: var(--white);
     }
   
     .stat-label {
       font-size: 10px;
       color: rgba(255,255,255,0.45);
       text-align: center;
       margin-top: 2px;
     }
   
     /* Texto hero */
     .hero-left {
       order: 3;
       padding: 0;
       min-height: auto;
     }
   
     .hero-left-card { height: auto; min-height: auto; }
     .hero-left-card::before,
     .hero-left-card::after { display: none; }
   
     .hero-left-content {
       padding: 2.5rem 1.5rem 3.5rem;
       background: none;
       height: auto;
       justify-content: flex-start;
     }
   
     .hero-tag { font-size: 10px; margin-bottom: 0.85rem; }
   
     .hero-title {
       font-size: clamp(2.1rem, 9vw, 2.8rem);
       margin-bottom: 1rem;
     }
   
     .hero-desc {
       font-size: 15px;
       line-height: 1.6;
       max-width: 100%;
       margin-bottom: 2rem;
     }
   
     .hero-actions {
       flex-direction: column;
       align-items: stretch;
       gap: 0.85rem;
     }
   
     .hero-actions .btn-primary {
       width: 100%;
       text-align: center;
       padding: 1rem;
       font-size: 15px;
       border-radius: 12px;
     }
   
     .hero-actions .btn-ghost {
       text-align: center;
       display: block;
       padding: 0.5rem 0;
     }
   
     /* SECTIONS */
     section { padding: 3.5rem 1.25rem; }
     .section-title { font-size: clamp(1.7rem, 7vw, 2.1rem); }
   
     /* SERVICES */
     .services-grid {
       grid-template-columns: 1fr;
       margin-top: 2rem;
       border-radius: 12px;
     }
   
     .service-card  { padding: 1.75rem 1.25rem; }
     .service-num   { font-size: 2rem; margin-bottom: 0.75rem; }
   
     /* PROJECTS */
     .projects-header {
       flex-direction: column;
       align-items: flex-start;
       margin-bottom: 1.75rem;
       gap: 0.5rem;
     }
   
     .projects-grid { grid-template-columns: 1fr; gap: 1.25rem; }
     .project-img-wrap { height: 56vw; }
     .project-info { padding: 1.25rem; }
     .project-name { font-size: 16px; }
   
     /* ABOUT */
     .about-section {
       grid-template-columns: 1fr;
       gap: 2rem;
       padding: 3.5rem 1.25rem;
     }
   
     /* CTA */
     .cta-section { padding: 3.5rem 1.25rem; }
     .cta-section .section-title { font-size: clamp(1.7rem, 7vw, 2.1rem); }
     .cta-section .section-sub   { max-width: 100%; margin-bottom: 2rem; }
     .cta-row { flex-direction: column; gap: 0.85rem; }
     .cta-row .btn-primary { width: 100%; text-align: center; border-radius: 12px; }
   
     /* FOOTER */
     footer {
       padding: 2rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom));
       flex-direction: column;
       align-items: flex-start;
       gap: 1rem;
     }
   
     .footer-logo { height: 20px; }
   
     /* WHATSAPP FLOAT */
     .whatsapp-float {
       display: flex !important;
       align-items: center;
       justify-content: center;
       position: fixed;
       bottom: calc(1.5rem + env(safe-area-inset-bottom));
       right: 1.25rem;
       width: 56px;
       height: 56px;
       background: #25D366;
       border-radius: 50%;
       z-index: 300;
       box-shadow: 0 4px 20px rgba(37,211,102,0.45);
       transition: transform 0.15s ease;
       text-decoration: none;
     }
   
     .whatsapp-float:active { transform: scale(0.9); }
     .whatsapp-float svg { display: block; }
   }