/* ===================================================
 * Volatilis Trends - Folha de Estilo V3 (Memorável)
 * Arquitetura: Mobile-First, Animações Performáticas
 * =================================================== */

/* ===== RESET E CONFIGURAÇÕES GERAIS ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #daa520;
  --secondary-color: #ff6b35;
  --accent-color: #ffd23f;
  --dark-bg: #0a0a0a;
  --darker-bg: #050505;
  --light-text: #ffffff;
  --gray-text: #b0b0b0;
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --gradient-primary: linear-gradient(135deg, #daa520 0%, #ff0000 100%);
  --gradient-secondary: linear-gradient(135deg, #ff6b35, #ff8c42);
  --gradient-accent: linear-gradient(135deg, #ffd23f, #ffb347);
  --shadow-glow: 0 0 20px rgba(0, 212, 255, 0.3);
  --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.3);
  --border-radius: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', sans-serif;
  background: var(--dark-bg);
  color: var(--light-text);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* ===== PARTÍCULAS ===== */
#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
  background: linear-gradient(135deg, #050505 0%, #101418 100%);
}

#particles-js::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 20%, rgba(0, 212, 255, 0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: 2;
}

.content-wrap {
  position: relative;
  z-index: 2;
}

/* ===== CONTAINER E UTILITÁRIOS ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.highlight {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.section_padding {
  padding: 80px 0;
}

/* ===== HEADER / NAVBAR ===== */
.header_section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.3 rem 0;
}

.navbar-brand img {
  height: 80px;
  transition: var(--transition);
}

.navbar-brand:hover img {
  transform: scale(1.05);
}

.navbar-nav {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  color: var(--light-text);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-item.active .nav-link::after {
  width: 100%;
}

.nav-link:hover {
  color: var(--primary-color);
}

.navbar-toggler {
  display: none;
  background: none;
  border: none;
  color: var(--light-text);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ===== HERO SECTION ===== */
.hero_section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 80px;
}

.hero_content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero_content h1 {
  font-family: 'Orbitron', monospace;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero_content p {
  font-size: 1.2rem;
  color: var(--gray-text);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== BOTÕES ===== */
.btn-custom {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--gradient-primary);
  color: var(--light-text);
  text-decoration: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-custom::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-custom:hover::before {
  left: 100%;
}

.btn-custom:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-glow {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--gradient-primary);
  color: var(--light-text);
  text-decoration: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-glow);
}

.btn-glow::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s;
}

.btn-glow:hover::before {
  left: 100%;
}

.btn-glow:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
}

.btn-contact {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  margin: 0.5rem;
}

.whatsapp-btn {
  background: #25d366;
  color: white;
}

.instagram-btn {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: white;
}

.btn-contact:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.btn-contact-group {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* ===== SEÇÕES ===== */
.about_intro_section {
  background: var(--darker-bg);
  position: relative;
}

.about_intro_section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 20%, rgba(0, 212, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: center;
}

.profile-image {
  width: 100%;
  max-width: 300px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-glass);
}

.text-content p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  color: var(--gray-text);
}

.heading_container {
  text-align: center;
  margin-bottom: 3rem;
}

.heading_container h2 {
  font-family: 'Orbitron', monospace;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.heading_container p {
  font-size: 1.2rem;
  color: var(--gray-text);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== SERVIÇOS ===== */
.services_section {
  background: var(--dark-bg);
  position: relative;
}

.glassmorphism-bg {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow-glass);
}

.do_container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

/* ===== CARDS FLIP ===== */
.flip-card {
  background-color: transparent;
  width: 100%;
  height: 300px;
  perspective: 1000px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: var(--border-radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.flip-card-front {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
}

.flip-card-back {
  background: var(--gradient-primary);
  color: white;
  transform: rotateY(180deg);
}

.flip-card .img-box {
  width: 80px;
  height: 80px;
  margin-bottom: 1rem;
}

.flip-card .img-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.flip-card h5 {
  font-family: 'Orbitron', monospace;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.flip-card p {
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ===== PROJETOS ===== */
.projects_section {
  background: var(--darker-bg);
  position: relative;
}

.projects-filter {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-button {
  padding: 0.75rem 1.5rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--light-text);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.filter-button:hover,
.filter-button.active {
  background: var(--gradient-primary);
  border-color: var(--primary-color);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  justify-content: center;
  align-items: stretch;
}

.project-card {
  max-width: 400px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  min-height: 370px;
  height: 100%;
  box-sizing: border-box;
  padding-bottom: 0;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-glass);
}

.project-img-container {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.project-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.project-card:hover .project-img-container img {
  transform: scale(1.1);
}

.project-details {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 1.5rem;
}

.project-title {
  font-family: 'Orbitron', monospace;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.project-description {
  color: var(--gray-text);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.project-tech {
  font-size: 0.9rem;
  color: var(--accent-color);
  font-style: italic;
}

/* ===== CONTATO ===== */
.contact_section {
  background: var(--dark-bg);
  position: relative;
}

.cta-container {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.cta-container h2 {
  font-family: 'Orbitron', monospace;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.cta-container p {
  font-size: 1.2rem;
  color: var(--gray-text);
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* ===== FOOTER ===== */
.footer_section {
  background: var(--darker-bg);
  border-top: 1px solid var(--glass-border);
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand img {
  height: 40px;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: var(--gray-text);
  line-height: 1.6;
}

.footer-links h4,
.footer-contact h4,
.footer-social h4 {
  font-family: 'Orbitron', monospace;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--gray-text);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-color);
}

.footer-contact p {
  color: var(--gray-text);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-contact a {
  color: var(--gray-text);
  text-decoration: none;
  transition: var(--transition);
}

.footer-contact a:hover {
  color: var(--primary-color);
}

.footer-social {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-social a {
  color: var(--gray-text);
  font-size: 1.5rem;
  transition: var(--transition);
  display: inline-block;
}

.footer-social a:hover {
  color: var(--primary-color);
  transform: translateY(-2px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
  color: var(--gray-text);
}

.footer-bottom a {
  color: var(--primary-color);
  text-decoration: none;
}

/* ===== PÁGINA SOBRE ===== */
.about_page .hero-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
}

.hero-content h1 {
  font-family: 'Orbitron', monospace;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--gray-text);
  line-height: 1.6;
}

.hero-image img {
  width: 100%;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-glass);
}

/* ===== MARQUEE ===== */
.marquee {
  overflow: hidden;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  padding: 2rem 0;
  margin: 3rem 0;
}

.marquee-content {
  display: flex;
  animation: marquee 30s linear infinite;
  white-space: nowrap;
}

.marquee-item {
  flex-shrink: 0;
  text-align: center;
  padding: 0 2rem;
  min-width: 200px;
}

.marquee-item h3 {
  font-family: 'Orbitron', monospace;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.marquee-item p {
  color: var(--gray-text);
  font-size: 0.9rem;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== TECH STACK ===== */
.tech-stack-section {
  margin: 4rem 0;
}

.tech-logos-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.tech-logos-item {
  text-align: center;
  padding: 1.5rem;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.tech-logos-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-glass);
}

.tech-logos-item img {
  width: 50px;
  height: 50px;
  margin-bottom: 1rem;
}

.tech-logos-item p {
  font-size: 0.9rem;
  color: var(--gray-text);
  font-weight: 500;
}

/* ===== CTA SECTION ===== */
.about-cta {
  text-align: center;
  margin-top: 4rem;
  padding: 3rem;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
}

.about-cta h2 {
  font-family: 'Orbitron', monospace;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.about-cta p {
  font-size: 1.1rem;
  color: var(--gray-text);
  margin-bottom: 2rem;
}

/* ===== ANIMAÇÕES ===== */
.fade-in-section {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 768px) {
  .header_section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.98);
    border-bottom: 1px solid var(--glass-border);
  }
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.5rem 0.5rem;
    width: 100%;
  }
  .navbar-brand img {
    height: 48px;
  }
  .navbar-nav {
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    align-items: flex-start;
    margin-top: 0.5rem;
    display: flex !important;
  }
  .nav-link {
    font-size: 1.1rem;
    padding: 0.5rem 0.5rem;
    width: 100%;
    display: block;
  }
  
  .about-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero_content h1 {
    font-size: 2.5rem;
  }
  
  .do_container {
    grid-template-columns: 1fr;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .btn-contact-group {
    flex-direction: column;
    align-items: center;
  }
  
  .about_page .hero-section {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .tech-logos-container {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  }
  
  .marquee-item {
    min-width: 150px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }
  
  .hero_content h1 {
    font-size: 2rem;
  }
  
  .section_padding {
    padding: 60px 0;
  }
  
  .flip-card {
    height: 250px;
  }
  
  .project-card {
    margin: 0 10px;
  }
}

@media (max-width: 900px) {
  .header_section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.98);
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0;
  }
  .navbar {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
    width: 100%;
    position: relative;
  }
  .navbar-nav {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    margin: 0;
    padding: 0.5rem 0.2rem 0.2rem 0.2rem;
    display: flex !important;
    background: transparent;
    box-shadow: none;
    position: static;
  }
  .nav-link {
    font-size: 0.95rem;
    padding: 0.4rem 0.2rem;
    width: auto;
    display: block;
    text-align: center;
    white-space: nowrap;
    max-width: 90vw;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .navbar-brand {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 0;
    padding: 0.2rem 0 0.5rem 0;
    order: 2;
  }
  .navbar-brand img {
    height: 38px;
    margin: 0 auto;
  }
}