﻿/* ESTILOS GERAIS */

:root {
  --primary: #6366f1; 
  --primary-hover: #4f46e5;
  --background-expertise: #c2d0ee;
  --secondary: #0ea5e9; 
  --accent: #f43f5e; 

  --bg-main: #ffffff;
  --bg-alt: #f8fafc;
  --bg-glass: rgba(255, 255, 255, 0.8);

  --text-main: #151e33;
  --text-muted: #64748b;
  --text-on-primary: #ffffff;

  --border: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg:
    0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);

  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-full: 9999px;

  --font-sans: "Poppins", sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 8rem 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-sans);
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
}

h2.section-title {
  text-align: center;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 4rem;
}

a {
  text-decoration: none;
  color: var(--primary);
  transition: var(--transition);
}

a:hover {
  color: var(--primary-hover);
}

p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary);
  color: var(--text-on-primary);
  padding: 0.875rem 2rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  box-shadow: 0px 0px 10px 5px rgba(0, 0, 0, 0.137);
  font-family: var(--font-sans);
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.cta-button:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--text-on-primary);
}

/* HEADER */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: var(--transition);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logotop {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  font-family: 'Poppins', sans-serif;
  letter-spacing: -0.02em;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.main-nav a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9375rem;
}

.main-nav a:hover {
  color: var(--primary);
}

/* HERO SECTION */
.hero-section {
  padding-top: 160px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-image: url(img/backportfolio-02.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
}

.hero-text .intro-text {
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.125rem;
  letter-spacing: 0.05em;
}

.hero-text .intro-text strong {
  color: var(--primary);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.02rem;
}

.hero-text .highlight {
  color: var(--primary);
  position: relative;
  display: inline-block;
}

.hero-text .highlight::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 15px;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='10' viewBox='0 0 100 10' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2,2 Q50,8 98,2' stroke='%232e95d1' stroke-width='3' stroke-linecap='round' fill='none'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  opacity: 0.7;
  z-index: -1;
}

.hero-text .description-text {
  font-size: 1.25rem;
  max-width: 540px;
  margin-bottom: 2.5rem;
}

.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image .image-shape {
  width: 440px;
  height: 440px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

.hero-image .image-shape::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 2;
  border-radius: inherit;
  pointer-events: none;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 150px 80px 150px 80px;
  box-shadow: 5px 5px 5px 5px rgba(0, 0, 0, 0.075);
}

/* EXPERTISE SECTION */
.expertise-section {
  background-image: url(img/backportfolio.jpg); 
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.expertise-section .section-title {
  color: #ffffff;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.expertise-card {
  background-color: var(--bg-main);
  padding: 3rem 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  text-align: left;
  transition: var(--transition);
  display: flex;
  box-shadow: 5px 5px 5px 5px rgba(0, 0, 0, 0.075);
  flex-direction: column;
  gap: 1.25rem;
}

.expertise-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.expertise-card .icon-container {
  background-color: rgba(99, 102, 241, 0.1);
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--primary);
  font-size: 1.5rem;
  transition: var(--transition);
}

.expertise-card:hover .icon-container {
  background-color: var(--primary);
  color: var(--text-on-primary);
  transform: rotate(5deg);
}

.expertise-card h3 {
  font-size: 1.25rem;
  margin: 0;
}

.expertise-card p {
  margin: 0;
  font-size: 0.9375rem;
}

/* ABOUT ME SECTION */
.about-me-section {
  background-image: url(img/backportfolio-02.jpg); 
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.about-me-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 6rem;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-text p {
  font-size: 18px;
}

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  max-width: 400px;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  position: relative;
  z-index: 2;
  box-shadow: 15px 5px 15px 5px rgba(0, 0, 0, 0.192);
}

.about-image .image-background-shape {
  position: absolute;
  width: 90%;
  height: 100%;
  background-color: var(--primary);
  opacity: 0.1;
  border-radius: var(--radius-lg);
  top: 2rem;
  left: -1rem;
  z-index: 1;
}

/* PROCESS SECTION */
.process-section {
  background-image: url(img/backportfolio.jpg); 
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.process-section .section-title {
  color: #ffffff;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.process-step {
  padding: 2.5rem;
  background-color: var(--bg-alt);
  border-radius: var(--radius-lg);
  position: relative;
  box-shadow: 0px 0px 10px 5px rgba(0, 0, 0, 0.137);
  transition: var(--transition);
}

.process-step:hover {
  background-color: var(--bg-main);
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.step-num {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
  opacity: 1;
  font-family: "Roboto", sans-serif;
  margin-bottom: 1rem;
}

.process-step h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.process-step p {
  font-size: 0.9375rem;
  margin: 0;
}

/* PORTFOLIO SECTION */
.portfolio-section {
  background-color: var(--bg-main); /* Balanced white */
}

.portfolio-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 4rem;
}

.view-all-button {
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  color: var(--text-main);
  background-color: var(--bg-main);
  border: 1px solid var(--border);
  font-weight: 600;
  transition: var(--transition);
}

.view-all-button:hover {
  background-color: var(--bg-alt);
  color: var(--primary);
  border-color: var(--primary);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 2.5rem;
}

.portfolio-card {
  background-color: var(--bg-main);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.253);
}

.portfolio-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.portfolio-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background-color: var(--bg-alt);
  border-bottom: 5px solid var(--border);
}

.portfolio-card-content {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.portfolio-card h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  padding: 0;
}

.portfolio-card p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  padding: 0;
  flex-grow: 1;
}

.portfolio-card .view-more {
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
}

.portfolio-card .view-more i {
  transition: var(--transition);
}

.portfolio-card .view-more:hover i {
  transform: translateX(4px);
}

/* SKILLS SECTION */
.skills-section {
  background-image: url(img/fundoskill.jpg); 
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 80px 0;
  overflow: hidden;
}

.skills-carousel-container {
  margin-top: 3rem;
  padding: 1rem 0;
  width: 100%;
  mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
}

.skills-track {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: skills-scroll 40s linear infinite;
}

.skills-track:hover {
  animation-play-state: paused;
}

@keyframes skills-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 1rem)); }
}

.skill-pill {
  background: var(--bg-main);
  padding: 1.5rem 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-width: 180px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.skill-pill:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.skill-pill i {
  font-size: 2rem;
  color: var(--primary);
}

.skill-pill span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
}

/* CTA SECTION */
.cta-section {
  background-color: var(--primary);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section h2 {
  color: var(--text-on-primary);
  font-size: clamp(2rem, 4vw, 3rem);
  max-width: 800px;
  margin: 0 auto 3rem;
  font-family: var(--font-sans);
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.social-icons a {
  color: var(--text-on-primary);
  font-size: 1.75rem;
  width: 64px;
  height: 64px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  transition: var(--transition);
}

.social-icons a:hover {
  background-color: var(--text-on-primary);
  color: var(--primary);
  transform: translateY(-5px);
}

/* FOOTER */
.footer {
  background-color: var(--bg-main);
  padding: 0.5rem 0 0.5rem;
  border-top: 1px solid var(--border);
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.footer-container a {
  color: var(--primary);
  font-weight: 600;
  transition: var(--transition);
  margin-top: 20px;
}

.footer-container a:hover {
  color: #0ea5e9;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  gap: 2.5rem;
  margin-top: 20px;
}

.footer-nav a {
  color: var(--text-muted);
  font-weight: 600;
  transition: var(--transition);
}

.footer-nav a:hover {
  color: var(--primary);
}

.copyright {
  color: var(--text-muted);
  font-size: 0.875rem;
  width: 100%;
  text-align: center;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

/* DESIGN RESPONSIVO */
@media (max-width: 992px) {
  h1 {
    font-size: 3rem;
  }

  .hero-container,
  .about-me-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text .description-text {
    margin: 0 auto 2rem;
  }

  .hero-image {
    grid-row: 1;
    margin-bottom: 3rem;
  }

  .hero-image .image-shape {
    width: 300px;
    height: 300px;
    margin: 0 auto;
  }

  .about-me-container {
    gap: 2rem;
  }

  .about-image {
    margin: 0 auto 3rem;
    width: 350px;
    height: 350px;
  }

  .about-text .section-title {
    text-align: center;
  }

  .skill-card {
    width: calc(100% / 3);
  }

  .portfolio-carousel {
    padding: 1rem 0;
  }
}

@media (max-width: 768px) {
  .header .container {
    flex-direction: row;
    height: 72px;
    padding: 0 1.5rem;
  }

  .main-nav {
    display: none; 
  }

  .header .cta-button {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
  }

  section {
    padding: 4rem 0;
  }

  .hero-section {
    padding-top: 160px;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2.section-title {
    font-size: 2rem;
  }

  .portfolio-header {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    text-align: center;
  } 

  .skill-card {
    width: calc(100% / 2);
  }

  .carousel-track-container {
    width: 70%;
  }

  .footer-container {
    flex-direction: column;
    gap: 2rem;
  }

  .footer-nav ul {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 1rem;
  }

  .hero-section {
    padding-top: 140px;
  }
  

  .hero-image .image-shape {
    width: 250px;
    height: 250px;
  }

  .about-image {
    width: 280px;
    height: 280px;
  }

  .skill-card {
    width: 100%;
  }

  .carousel-track-container {
    width: 60%;
  }

  .cta-section h2 {
    font-size: 2rem;
  }
  
}

/* SPLASH SCREEN */
#splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--primary);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  flex-direction: column;
  color: #ffffff;
  transition:
    opacity 0.5s ease-out,
    visibility 0.5s;
}

#splash-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.splash-content {
  text-align: center;
  animation: fadeIn 1.2s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.splash-logo {
  font-size: 2.5rem;
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: 2px;
  font-family: var(--font-sans);
}

.splash-text {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 1px;
}

.loader-container {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.circular-loader {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  position: absolute;
  top: 0;
  left: 0;
}

.loader-path {
  stroke: #ffffff;
  stroke-linecap: round;
  animation: dash 4s ease-in-out infinite;
  fill: none;
  stroke-dasharray: 126;
  stroke-dashoffset: 126;
}

.loader-icon {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.loader-icon i {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 32px;
  color: var(--white);
  opacity: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
}

.loader-icon i:nth-child(1) {
  animation: iconCycle 1s linear forwards;
  animation-delay: 0s;
}

.loader-icon i:nth-child(2) {
  animation: iconCycle 1s linear forwards;
  animation-delay: 1s;
}

.loader-icon i:nth-child(3) {
  animation: iconCycle 1s linear forwards;
  animation-delay: 2s;
}

.loader-icon i:nth-child(4) {
  animation: iconLast 1s linear forwards;
  animation-delay: 3s;
}

@keyframes iconCycle {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
  }

  20% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2);
  }

  40% {
    transform: translate(-50%, -50%) scale(1);
  }

  80% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
  }
}

@keyframes iconLast {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
  }

  20% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2);
  }

  40% {
    transform: translate(-50%, -50%) scale(1);
  }

  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes dash {
  0% {
    stroke-dashoffset: 126;
  }
  100% {
    stroke-dashoffset: 0;
  }
}
