@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Lato:wght@300;400;700&display=swap');

:root {
  --primary-bg: #0a0119;
  --primary-color: #ffffff;
  --accent-color: #9d7bf9;
  --secondary-accent: #6c42d4;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Lato', sans-serif; 
  scroll-behavior: smooth;
}

html,
body {
  width: 100%;
  min-height: 100vh;
  background: var(--primary-bg);
  color: var(--primary-color);
  position: relative;
  overflow-x: hidden;
}

.loader-background {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 0;
  pointer-events: none;
  opacity: 1;
}

.container-loader {
  width: 350px;
  height: 350px;
  position: relative;
  transform-style: preserve-3d;
  transform: perspective(500px) rotateX(60deg);
}

.aro {
  position: absolute;
  inset: calc(var(--s) * 10px);
  box-shadow: inset 0 0 25px #5e45e1, 0 0 15px #5e45e1;
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  animation: strim 3s infinite ease-in-out both;
  animation-delay: calc(var(--s) * -0.1s);
  border: 1px solid rgba(157, 123, 249, 0.4);
}

@keyframes strim {
  0%,
  100% {
    transform: translateZ(-120px) rotate(0deg);
    opacity: 0.7;
  }
  50% {
    transform: translateZ(120px) rotate(90deg);
    opacity: 1;
  }
}

nav {
  height: 5.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 3.5rem;
  z-index: 2;
  position: relative;
  background: rgba(10, 1, 25, 0.85);
  backdrop-filter: blur(5px);
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

nav h1 {
  font-size: 2.4rem;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  background: linear-gradient(to right, var(--accent-color), #c0a8ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.navigation {
  display: flex;
  gap: 2.5rem;
}

.navigation a {
  font-size: 1.15rem;
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 0.5px;
  position: relative;
}

.navigation a:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

.navigation a:hover:after {
  width: 100%;
}

.main {
  min-height: calc(100vh - 5.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  padding: 2.5rem;
  text-align: center;
  position: relative;
  z-index: 2;
}

.main h1 {
  font-size: 4.5rem;
  margin-bottom: 1.5rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.main p {
  padding-top: 10%;
  max-width: 850px;
  font-size: 1.35rem;
  color: #d8d8d8;
  line-height: 1.7;
  font-weight: 300;
}

.main strong {
  color: var(--accent-color);
  font-weight: 500;
}

/* Botões */
.btn {
  margin-top: 2.5rem;
  display: flex;
  gap: 1.8rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn a {
  background: linear-gradient(135deg, var(--accent-color), var(--secondary-accent));
  padding: 0.9rem 1.8rem;
  border-radius: 30px;
  font-size: 1rem;
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(157, 123, 249, 0.3);
  transition: all 0.3s ease;
}

.btn a:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(157, 123, 249, 0.5);
}

/* Seção de Projetos */
.projects-section {
  background: #0d0124;
  padding: 5rem 5%;
  position: relative;
  z-index: 2;
}

.projects-section h2,
.contact-section h2 {
  font-size: 3.2rem;
  text-align: center;
  margin-bottom: 3rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
}

.project-cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.project-card {
  background: #150233;
  border: 1px solid #2d0570;
  border-radius: 1.2rem;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 250px;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  border-color: var(--accent-color);
}

.project-card h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.project-card p {
  font-size: 1rem;
  color: #bbb;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.project-card a {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent-color), var(--secondary-accent));
  color: var(--primary-color);
  padding: 0.6rem 1.5rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 4px 10px rgba(157, 123, 249, 0.3);
}

.project-card a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(157, 123, 249, 0.4);
}

/* Seção de Contato */
.contact-section {
  padding: 5rem 5%;
  text-align: center;
  background: #0d0124;
}

.contact-links {
  margin-top: 2.5rem;
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 1.2rem;
}

.contact-links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  background: rgba(157, 123, 249, 0.1);
  border: 1px solid rgba(157, 123, 249, 0.3);
  transition: all 0.3s ease;
}

.contact-links a:hover {
  background: rgba(157, 123, 249, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(157, 123, 249, 0.2);
}

/* Responsivo */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    gap: 1.2rem;
    height: auto;
    padding: 1.5rem;
  }
  
  .navigation {
    gap: 1.5rem;
  }
  
  .main h1 {
    font-size: 3rem;
  }
  
  .main p {
    font-size: 1.1rem;
  }
  
  .projects-section h2, 
  .contact-section h2 {
    font-size: 2.5rem;
  }
  
  .project-cards-container {
    grid-template-columns: 1fr;
  }
  
  .contact-links {
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
  }
  
  .btn {
    flex-direction: column;
    align-items: center;
  }
  
  .btn a {
    width: 100%;
    max-width: 250px;
    text-align: center;
  }
  
  .container-loader {
    width: 250px;
    height: 250px;
  }
}
