@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');
@import url('./variables.css');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { 
  scroll-behavior: smooth; 
}

body {
  font-family: var(--font-main);
  background: radial-gradient(circle at center, var(--color-bg-light) 0%, var(--color-bg-dark) 100%);
  color: var(--color-text);
  overflow-x: hidden;
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 16px clamp(16px, 5vw, 50px);
  display: flex;
  justify-content: flex-end;
  background: transparent;
  z-index: 100;
}

section { 
  scroll-margin-top: 90px; 
}

nav ul {
  list-style: none;
  display: flex;
  gap: clamp(16px, 4vw, 30px);
}

nav ul li a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: var(--color-highlight);
}

.hero {
  min-height: 100vh; 
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  padding: 0 16px;
}

.hero p {
  position: relative;
  display: inline-block;
}

.buttons {
  display: flex;
  gap: clamp(16px, 6vw, 55px);
  margin-bottom: clamp(32px, 8vh, 100px);
  flex-wrap: wrap;
  justify-content: center;
}

.buttons a {
  padding: 10px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid rgba(255,255,255,0.2);
}

.buttons a.primary {
  background: white;
  color: black;
}

.buttons a.secondary {
  background: rgba(255, 255, 255, 0.12);
  color: white;
}

.buttons a:hover {
  transform: translateY(-2px);
}

h1 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
}

p {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--color-highlight);
}

.side-label {
  align-self: flex-start;
  margin-left: clamp(12px, 6vw, 80px);
  margin-top: 5rem;
  font-size: 12px;
  opacity: 0.75;
}

.line-effect {
  position: relative;
  bottom: 6rem;
  width: min(520px, 80%);
  height: 90px;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.7), transparent 100%),
              radial-gradient(circle at center, var(--color-bg-light));
  filter: blur(180px);
}

/*About*/
.about {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: left;
  padding: 80px 10%;
}

.about-container {
  display: flex;
  gap: clamp(24px, 5vw, 50px);
  align-items: center;
  margin-top: 40px;
  width: min(100%, 1100px);
}

.about-text { flex: 1; }

.about-text p {
  margin-bottom: 15px;
  line-height: 1.6;
}

.about-img img {
  width: clamp(260px, 25vw, 260px);
  border-radius: 20px;
  box-shadow: 0 0 20px rgba(100, 100, 255, 0.4);
  display: block;
}

/*Experiences*/
.experiences {
  min-height: 80vh;
  padding: 80px 10%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 15vh;
}

.timeline {
  margin-top: 50px;
  border-left: 2px solid var(--color-highlight);
  padding-left: 30px;
  width: min(100%, 900px);
}

.timeline-item {
  margin-bottom: 40px;
  position: relative;
}

.timeline-item::before {
  position: absolute;
  left: -9px;
  top: 6px;
  width: 14px;
  height: 14px;
  background: var(--color-highlight);
  border-radius: 50%;
}

.timeline-item h3 {
  margin-bottom: 6px;
  color: var(--color-highlight);
}

.timeline-item span {
  font-size: 0.9rem;
  opacity: 0.7;
}

/*Projects*/
.projects {
  min-height: 70vh;
  padding: 80px 10%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(16px, 4vw, 40px);
  margin-top: 50px;
  width: min(100%, 1500px);
}


.project-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 24px;
  display: flex;              
  flex-direction: column;    
  justify-content: space-between; 
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 400px;      
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 20px rgba(100, 100, 255, 0.4);
}

.project-card a {
  margin-top: auto;           
  text-decoration: none;
  color: var(--color-text);
  font-weight: bold;
}

.project-card .tech {
  margin-top: 12px;
  font-size: 0.9rem;
  color: #aaa;
}

.project-card p {
  flex-grow: 1;
}

/*Skills*/
.skills {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 80px 16px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: clamp(16px, 4vw, 32px);
  width: min(100%, 960px);
  margin-top: 40px;
}

.skill-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  display: grid;
  place-items: center;
  font-weight: 600;
  color: white;
  font-size: clamp(1rem, 1.8vw, 1.1rem);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  aspect-ratio: 1 / 1; /* vira quadradinho fluido */
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.skill-card i {
  font-size: 2rem;
  color: var(--color-highlight);
}

.skill-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 20px rgba(100, 100, 255, 0.4);
}

.skill-card.center {
  background: rgba(255, 255, 255, 0.08);
  font-size: clamp(1.4rem, 3vw, 2rem);
}

/* Fade-in Animation */
.hidden {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}
.show {
  opacity: 1;
  transform: translateY(0);
}

/*Redes sociais (fazer)*/
.social-links {
  margin-top: 40px;
  display: flex;
  gap: 20px;
}
.social-links a {
  font-size: 1.8rem;
  color: var(--color-highlight);
  transition: transform 0.3s ease;
}
.social-links a:hover {
  transform: scale(1.2);
}

/*Bootstrap aaaaaaa*/
.custom-navbar {
  transition: background-color 0.6s ease;
  background: transparent !important; 
}

.custom-navbar.scrolled {
  background: rgba(11, 15, 42, 0.95) !important;
  box-shadow: 0 2px 10px rgba(89, 89, 89, 0.4);
}

.navbar-brand {
  color: var(--color-text) !important;
  font-weight: bold;
  font-size: 1.2rem;
}

.navbar-nav .nav-link {
  color: var(--color-text) !important;
  margin-left: 20px;
  transition: color 0.2s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--color-highlight) !important;
}

/* Botão hamburguer */
.navbar-toggler {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='white' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") !important;
}

h1, h2, h3, h4, h5, h6, span {
  color: var(--color-text) !important;
  font-weight: bold;
}

.translate-buttons button {
  background: var(--color-highlight);
  color: black;
  border: none;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
}

.translate-buttons button:hover {
  background: white;
  color: black;
}


