/**
 * Portfolio Website - CSS
 * Author: Frontend Developer Christian Vendramel
 * Description: Main CSS file for portfolio interactions
 */

/* ===============================
   CSS Variables - Cyberpunk Color Palette
   =============================== */
:root {
  /* Primary Colors */
  --cyber-dark: #0a0a0f;
  --cyber-darker: #050508;
  --cyber-gray: #1a1a2e;
  --cyber-light-gray: #2a2a3e;

  /* Neon Accent Colors */
  --cyber-cyan: #00f0ff;
  --cyber-purple: #b829fc;
  --cyber-magenta: #ff006e;
  --cyber-blue: #0066ff;

  /* UI Colors */
  --cyber-text: #e0e0e0;
  --cyber-text-secondary: #a0a0a0;
  --cyber-white: #ffffff;

  /* Gradients */
  --cyber-gradient-1: linear-gradient(135deg, var(--cyber-cyan), var(--cyber-purple));
  --cyber-gradient-2: linear-gradient(135deg, var(--cyber-blue), var(--cyber-magenta));

  /* Effects */
  --cyber-glow-cyan: 0 0 20px rgba(0, 240, 255, 0.5);
  --cyber-glow-purple: 0 0 20px rgba(184, 41, 252, 0.5);
  --cyber-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);

  /* Spacing */
  --section-padding: 100px 0;
  --card-padding: 30px;

  /* Transitions */
  --transition-smooth: all 0.3s ease;
  --transition-fast: all 0.2s ease;
}

/* ===============================
   Global Styles
   =============================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: none;
}

/* Esconder scrollbar nativa */
html::-webkit-scrollbar {
  width: 0;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--cyber-dark);
  color: var(--cyber-text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.3;
  color: var(--cyber-white);
}

p {
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  transition: var(--transition-smooth);
}

/* ===============================
   Navigation
   =============================== */
.navbar {
  background-color: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  transition: var(--transition-smooth);
  border-bottom: 1px solid rgba(0, 240, 255, 0.1);
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: #dcdddd !important;
  text-decoration: none;
}

.brand-bracket {
  color: var(--cyber-cyan);
}

.brand-stack {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-line-1 {
  font-size: 1.3rem;
  font-weight: 700;
}

.brand-line-2 {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyber-cyan);
  opacity: 0.8;
}

.nav-link {
  color: var(--cyber-text) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 1rem;
  width: 0;
  height: 2px;
  background: var(--cyber-gradient-1);
  transition: var(--transition-smooth);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: calc(100% - 2rem);
}

.nav-link:hover {
  color: var(--cyber-cyan) !important;
}

/* ===============================
   Navbar Toggler Cyberpunk (X)
   =============================== */

.navbar-toggler {
  border: 2px solid rgba(0, 240, 255, 0.6);
  padding: 8px;
  width: 46px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: transparent;
  box-shadow: 0 0 12px rgba(0, 238, 255, 0.904);
}

.navbar-toggler:hover {
  box-shadow: 0 0 14px rgba(0,240,255,0.6);
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* Linha central */
.navbar-toggler-icon {
  background-image: none;
  width: 24px;
  height: 2px;
  background: #00f0ff;
  position: relative;
  display: block;
  transition: all 0.3s ease;
}

/* Linhas superior e inferior */
.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 26px;
  height: 2px;
  background: #00f0ff;
  transition: all 0.3s ease;
}

.navbar-toggler-icon::before {
  top: -8px;
}

.navbar-toggler-icon::after {
  top: 8px;
}

/* Quando menu estiver aberto → vira X */
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
  background: transparent;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
  transform: rotate(45deg);
  top: 0;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
  transform: rotate(-45deg);
  top: 0;
}


/* ===============================
   Hero Section
   =============================== */
.hero-section {
  position: relative;
  background: var(--cyber-darker);
  overflow: hidden;
}

.cyber-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(50px);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem 0;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease;
}

.hero-highlight {
  display: block;
  background: var(--cyber-gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease 0.2s;
  animation-fill-mode: both;
}

.tech-badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  margin: 0.2rem;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid var(--cyber-cyan);
  border-radius: 4px;
  color: var(--cyber-cyan);
  font-size: 0.9rem;
  font-weight: 500;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--cyber-text-secondary);
  max-width: 600px;
  margin: 0 auto 2rem;
  animation: fadeInUp 0.8s ease 0.4s;
  animation-fill-mode: both;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.6s;
  animation-fill-mode: both;
}

/* Buttons */
.btn-cyber {
  padding: 0.8rem 2rem;
  font-weight: 600;
  border-radius: 4px;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.btn-cyber::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transition: var(--transition-smooth);
}

.btn-cyber:hover::before {
  left: 100%;
}

.btn-cyber.btn-primary {
  background: var(--cyber-gradient-1);
  border: none;
  color: var(--cyber-white);
}

.btn-cyber.btn-primary:hover {
  box-shadow: var(--cyber-glow-cyan);
  transform: translateY(-2px);
}

.btn-cyber.btn-outline {
  background: transparent;
  border: 2px solid var(--cyber-cyan);
  color: var(--cyber-cyan);
}

.btn-cyber.btn-outline:hover {
  background: var(--cyber-cyan);
  color: var(--cyber-dark);
  box-shadow: var(--cyber-glow-cyan);
}

.btn-cyber-sm {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  background: var(--cyber-gradient-1);
  border: none;
  color: var(--cyber-white);
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-cyber-sm:hover {
  box-shadow: var(--cyber-glow-cyan);
  transform: scale(1.05);
}

.btn-cyber.btn-whatsapp {
  background: #25d365e0;
  border: none;
  color: var(--cyber-white);
  margin-top: 1rem;
}

.btn-cyber.btn-whatsapp:hover {
  background: #20ba5a;
  box-shadow: 0 0 40px rgba(37, 211, 101, 0.658);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-indicator a {
  color: var(--cyber-cyan);
  font-size: 2rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* ===============================
   Section Styles
   =============================== */
.section-padding {
  padding: var(--section-padding);
}

.section-header {
  margin-bottom: 4rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.title-underline {
  width: 100px;
  height: 3px;
  background: var(--cyber-gradient-1);
  margin: 0 auto 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--cyber-text-secondary);
}

/* ===============================
   About Section
   =============================== */
.about-section {
  position: relative;
  background: 
    linear-gradient(
      rgba(10, 10, 20, 0.85),
      rgb(10, 10, 20)
    ),
    url("./img/programming.avif");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.about-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    rgba(212, 0, 255, 0.08),
    transparent 60%
  );
  pointer-events: none;
}

.about-content {
  background: rgba(42, 42, 62, 0.5);
  padding: 2.5rem;
  line-height: 1.75;
  border-radius: 8px;
  border: 1px solid rgba(0, 240, 255, 0.2);
  box-shadow: var(--cyber-shadow);
  position: relative;
  z-index: 2;
}

.about-content .lead {
  font-size: 1.3rem;
  color: var(--cyber-cyan);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

@media (max-width: 576px) {
  .about-content {
    padding: 1.75rem;
  }
}

/* ===============================
   Portfolio Section
   =============================== */
.portfolio-section {
  background: var(--cyber-dark);
}

.project-card {
  background: var(--cyber-gray);
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition-smooth);
  border: 1px solid rgba(0, 240, 255, 0.1);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-10px);
  border-color: #00f0ff;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
}

.project-image {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.project-card:hover .project-image img {
  transform: scale(1.1);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 238, 255, 0.548); /* fundo do card hover */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-smooth);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-title {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  color: var(--cyber-white);
}

.project-description {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 1rem;
  font-size: 0.95rem;
  flex-grow: 1;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tag {
  padding: 0.3rem 0.7rem;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid var(--cyber-cyan);
  border-radius: 4px;
  font-size: 0.75rem;
  color: var(--cyber-cyan);
}

.project-link {
  display: block;
  position: relative;
  text-decoration: none;
  color: inherit;
}

/* ===============================
   Skills Section
   =============================== */
.skills-section {
  background: var(--cyber-gray);
}

.skill-card {
  background: rgba(10, 10, 15, 0.6);
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid rgba(0, 240, 255, 0.2);
  transition: var(--transition-smooth);
  height: 100%;
}

.skill-card:hover {
  border-color: var(--cyber-purple);
  box-shadow: var(--cyber-glow-purple);
  transform: translateY(-5px);
}

.skill-icon {
  font-size: 3rem;
  color: var(--cyber-cyan);
  margin-bottom: 1rem;
}

.skill-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--cyber-white);
}

.skill-list {
  list-style: none;
  padding: 0;
}

.skill-list li {
  padding: 0.5rem 0;
  color: var(--cyber-text);
  font-size: 1rem;
}

.skill-list i {
  color: var(--cyber-cyan);
  margin-right: 0.5rem;
}

/* ===============================
   Process Section
   =============================== */
.process-section {
  background: var(--cyber-dark);
}

.process-card {
  background: var(--cyber-gray);
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid rgba(184, 41, 252, 0.2);
  text-align: center;
  transition: var(--transition-smooth);
  height: 100%;
  position: relative;
}

.process-card:hover {
  border-color: var(--cyber-purple);
  box-shadow: var(--cyber-glow-purple);
}

.process-number {
  position: absolute;
  top: -15px;
  right: 20px;
  font-size: 3rem;
  font-weight: 700;
  color: rgba(184, 41, 252, 0.3);
}

.process-icon {
  font-size: 2.5rem;
  color: var(--cyber-purple);
  margin-bottom: 1rem;
}

.process-title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--cyber-white);
}

.process-description {
  color: var(--cyber-text-secondary);
  font-size: 0.95rem;
}

/* ===============================
   Contact Section
   =============================== */
.contact-section {
  background: var(--cyber-gray);
}

.contact-card {
  background: rgba(10, 10, 15, 0.719);
  padding: 2.5rem;
  border-radius: 8px;
  border: 1px solid rgba(0, 240, 255, 0.2);
  box-shadow: var(--cyber-shadow);
}

.contact-text {
  color: rgb(219, 219, 219);
  font-size: 1rem;
}

.contact-section {
  position: relative;
  background:
    linear-gradient(
      rgba(10, 10, 20, 0.911),
      rgba(10, 10, 20, 0.85)
    ),
    url("/img/work.avif");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#contact {
  margin-top: 4rem;
}

/* ===== Scrollbar Hacker – Matrix Stream ===== */

::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #020408;
}

::-webkit-scrollbar-thumb {
  background:
    repeating-linear-gradient(
      180deg,
      #00ff9c 0px,
      #00ff9c 2px,
      #020408 2px,
      #020408 6px
    );
  border-radius: 6px;
  border: 2px solid #020408;
  box-shadow: inset 0 0 6px rgba(0, 255, 156, 0.5);
}

::-webkit-scrollbar-thumb:hover {
  filter: brightness(1.4);
  box-shadow: inset 0 0 10px rgba(0, 255, 156, 0.9);
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: #00ff9c #080202;
}

/* ===============================
   Coffee Scroll Indicator
   =============================== */

.coffee-scroll {
  position: fixed;
  right: 14px; /* antes estava 6px */
  top: 50%;
  transform: translateY(-50%);
  z-index: 9000;
  pointer-events: none;

  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Tubo da cafeteira */
.coffee-machine {
  position: relative;
  width: 10px;
  height: 400px;
  border: 2px solid #666;
  border-radius: 6px;
  margin-bottom: 6px;
  background: #111111;
}

/* Café caindo */
.coffee-drop {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 0%;
  transform: translateX(-50%);
  background: linear-gradient(to bottom, #3b1f0f, #884823);
  border-radius: 2px;
  transition: height 0.12s linear;
}

/* ===============================
   XÍCARA REALISTA
   =============================== */

.coffee-cup {
  position: relative;
  width: 44px;   /* aumentado para caber a alça */
  height: 34px;
  margin-top: 4px;
}

.cup-inner {
  position: relative;
  width: 100%;
  height: 100%;
  background: #0a0a12;
  border-radius: 0 0 14px 14px;
  border: 2px solid #00f0ff;
  overflow: hidden;
    margin: 0 auto;
  width: 40px;
}

/* Borda superior */
.cup-inner::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 100%;
  height: 6px;
  background: #0a0a12;
  border-radius: 50%;
  border: 2px solid #00f0ff;
  border-bottom: none;
}

/* Alça */
.coffee-cup::before {
  content: "";
  position: absolute;
  right: -12px;
  top: 8px;
  width: 14px;
  height: 16px;
  border: 3px solid #00f0ff;
  border-left: none;
  border-radius: 0 10px 10px 0;
}

/* Café enchendo */
.coffee-fill {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(to top, #1f1007, #633419);
  transition: height 0.15s ease-out;
}

/* Esconder no mobile */
@media (max-width: 768px) {
  /* .coffee-scroll {
    display: none;
  } */

  .coffee-scroll {
    right: 6px;
    transform: translateY(-50%) scale(0.8);
    opacity: 0.9;
  }

  .coffee-machine {
    height: 200x;
  }

  .coffee-cup {
    width: 34px;
    height: 26px;
  }

  .cup-inner {
    width: 30px;
  }

  html::-webkit-scrollbar {
    width: 8px;
  }

  html {
    scrollbar-width: thin;
  }
}

/* ===============================
   Hide native scrollbar on mobile
   =============================== */
@media (max-width: 768px) {

  /* Chrome, Edge, Safari */
  body::-webkit-scrollbar {
    width: 0;
    height: 0;
  }

  /* Firefox */
  body {
    scrollbar-width: none;
  }

  /* IE / Edge antigo */
  body {
    -ms-overflow-style: none;
  }
}

/* ===============================
   Footer
   =============================== */
.footer {
  background: var(--cyber-darker);
  padding: 3rem 0 2rem;
  border-top: 1px solid rgba(0, 240, 255, 0.1);
}

.footer-text {
  color: #02dd1ff0;
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid var(--cyber-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyber-cyan);
  font-size: 1.2rem;
  transition: var(--transition-smooth);
}

.social-link:hover {
  background: var(--cyber-cyan);
  color: var(--cyber-dark);
  box-shadow: var(--cyber-glow-cyan);
  transform: translateY(-3px);
}

/* ===============================
   Back to Top Button
   =============================== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--cyber-gradient-1);
  border: none;
  border-radius: 50%;
  color: var(--cyber-white);
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
  z-index: 1000;
  box-shadow: var(--cyber-shadow);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: var(--cyber-glow-cyan);
}

/* ===============================
   Animations
   =============================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===============================
   Responsive Design
   =============================== */
@media (max-width: 991px) {
  :root {
    --section-padding: 60px 0;
  }

  .navbar .title-underline {
    display: none;
  }

  .navbar .nav-link::after {
    display: none;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-cyber {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .navbar-brand {
    font-size: 1.2rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .back-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 45px;
    height: 45px;
  }

  .process-number {
    font-size: 2rem;
    top: -10px;
    right: 15px;
  }
}

@media (max-width: 575px) {
  .tech-badge {
    font-size: 0.8rem;
    padding: 0.2rem 0.6rem;
  }

  .about-content {
    padding: 1.5rem;
  }

  .contact-card {
    padding: 1.5rem;
  }
}
