/* ============================================================
   GuiDev Portfolio â€” style.css
   Modern Dark Theme | 2026 Design
   ============================================================ */

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
  --purple: #7c3aed;
  --purple-light: #9d5eff;
  --purple-glow: rgba(124, 58, 237, 0.4);
  --blue: #2563eb;
  --blue-light: #3b82f6;
  --blue-glow: rgba(37, 99, 235, 0.4);
  --black: #030712;
  --bg-primary: #050b18;
  --bg-secondary: #0a1128;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(124, 58, 237, 0.3);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #475569;
  --gradient: linear-gradient(135deg, var(--purple), var(--blue));
  --gradient-text: linear-gradient(135deg, #a78bfa, #60a5fa);
  --font-main: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius: 16px;
  --radius-sm: 8px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-glow: 0 0 40px rgba(124, 58, 237, 0.2);
  --nav-height: 72px;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

body.loading {
  overflow: hidden;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--purple); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--purple-light); }

/* ===== SELECTION ===== */
::selection {
  background: var(--purple-glow);
  color: var(--text-primary);
}

/* ===== PARTICLES CANVAS ===== */
#particles-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}



/* ===== LOADING SCREEN ===== */
#loading-screen {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.loader-logo {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 700;
  animation: pulse-glow 1.5s ease-in-out infinite;
}

.loader-bar {
  width: 200px;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.loader-fill {
  height: 100%;
  background: var(--gradient);
  border-radius: 2px;
  animation: loader-progress 2s ease-in-out forwards;
}

@keyframes loader-progress {
  0% { width: 0; }
  60% { width: 80%; }
  100% { width: 100%; }
}

.loader-text {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  animation: blink-text 1s ease-in-out infinite;
}

@keyframes blink-text {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

@keyframes pulse-glow {
  0%, 100% { text-shadow: 0 0 20px rgba(124, 58, 237, 0.5); }
  50% { text-shadow: 0 0 40px rgba(124, 58, 237, 0.9), 0 0 80px rgba(37, 99, 235, 0.3); }
}

/* ===== SHARED LOGO COLORS ===== */
.bracket { color: var(--blue-light); }
.gui { color: var(--blue-light); }
.dot { color: var(--text-primary); }
.dev { color: var(--text-primary); }

/* ===== NAVBAR ===== */
#navbar {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  transition: background var(--transition), backdrop-filter var(--transition), box-shadow var(--transition);
}

#navbar.scrolled {
  background: rgba(5, 11, 24, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border), 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 8px;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.nav-link.cta-link {
  background: var(--gradient);
  color: white;
  font-weight: 600;
  padding: 8px 20px;
}

.nav-link.cta-link:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== SECTION SHARED ===== */
section {
  position: relative;
  z-index: 1;
  padding: 100px 0;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--purple-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== FADE-IN ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in:nth-child(1) { transition-delay: 0.1s; }
.fade-in:nth-child(2) { transition-delay: 0.2s; }
.fade-in:nth-child(3) { transition-delay: 0.3s; }
.fade-in:nth-child(4) { transition-delay: 0.4s; }
.fade-in:nth-child(5) { transition-delay: 0.5s; }
.fade-in:nth-child(6) { transition-delay: 0.6s; }

.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===== HERO SECTION ===== */
#hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  padding: calc(var(--nav-height) + 60px) 24px 80px;
  max-width: 1280px;
  margin: 0 auto;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--purple-light);
  width: fit-content;
}

.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
  50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

.hero-title {
  font-family: var(--font-mono);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  text-shadow: 0 0 80px rgba(124, 58, 237, 0.3);
}

.name-bracket { color: var(--blue-light); }
.name-gui { color: var(--blue-light); }
.name-dot { color: white; }
.name-dev { color: white; }

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 400;
  color: var(--text-secondary);
  min-height: 2em;
}

.cursor-blink {
  display: inline-block;
  color: var(--purple-light);
  font-weight: 300;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 500px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
  opacity: 0;
  transition: opacity var(--transition);
}

.btn:hover::before { opacity: 1; }

.btn-primary {
  background: var(--gradient);
  color: white;
  box-shadow: 0 4px 20px var(--purple-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--purple-glow);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--purple);
  color: var(--purple-light);
  transform: translateY(-2px);
}

.btn-full { width: 100%; justify-content: center; }

/* ===== HERO STATS ===== */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 8px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-num {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--purple-light);
  line-height: 1;
}

.stat-plus {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--purple-light);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ===== CODE WINDOW ===== */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.code-window {
  background: rgba(10, 17, 40, 0.8);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-glow), 0 25px 50px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.window-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
}

.window-header .dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}

.window-header .dot.red { background: #ff5f57; }
.window-header .dot.yellow { background: #febc2e; }
.window-header .dot.green { background: #28c840; }

.window-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-left: 8px;
}

.code-content {
  padding: 24px 20px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.8;
  overflow-x: auto;
}

.c-purple { color: #c084fc; }
.c-blue { color: #60a5fa; }
.c-green { color: #4ade80; }
.c-white { color: #e2e8f0; }

/* ===== SCROLL INDICATOR ===== */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.5;
  animation: scroll-bounce 2s ease-in-out infinite;
}

.scroll-mouse {
  width: 22px; height: 36px;
  border: 2px solid var(--text-muted);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.scroll-wheel {
  width: 3px; height: 8px;
  background: var(--text-muted);
  border-radius: 2px;
  animation: scroll-wheel 2s ease-in-out infinite;
}

.scroll-indicator span {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

@keyframes scroll-wheel {
  0%, 100% { opacity: 1; transform: translateY(0); }
  50% { opacity: 0; transform: translateY(6px); }
}

/* ===== ABOUT SECTION ===== */
#about { background: linear-gradient(180deg, transparent, rgba(124, 58, 237, 0.05), transparent); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.about-text strong { color: var(--text-primary); }

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.tag {
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.25);
  color: var(--purple-light);
  font-size: 0.8rem;
  font-family: var(--font-mono);
  padding: 4px 12px;
  border-radius: 100px;
  font-weight: 500;
}

.about-skills {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.skill-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skill-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.skill-icon { font-size: 1rem; }

.skill-bar {
  height: 5px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  background: var(--gradient);
  border-radius: 3px;
  width: 0;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-fill.animated { width: attr(data-width 0%); }

/* ===== SERVICES SECTION ===== */
#services { background: var(--bg-secondary); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color var(--transition), transform var(--transition), background var(--transition);
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.08) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
}

.service-card:hover {
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
  transform: translateY(-6px);
}

.service-card:hover::before { opacity: 1; }

.card-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(124, 58, 237, 0.08), transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.service-card:hover .card-glow { opacity: 1; }

.service-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(37, 99, 235, 0.15));
  border: 1px solid var(--border-glow);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--purple-light);
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.25), rgba(37, 99, 235, 0.25));
  transform: scale(1.05);
}

.service-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 18px;
}

.service-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.service-features li {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
}

.service-features li::before {
  content: 'â–¸';
  position: absolute;
  left: 0;
  color: var(--purple-light);
}

/* ===== PROJECTS SECTION ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.project-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px var(--border-glow);
}

.project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.project-icon-wrap {
  width: 44px; height: 44px;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid var(--border-glow);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple-light);
}

.project-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--blue-light);
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.3);
  padding: 3px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.project-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.project-card p {
  color: var(--text-secondary);
  font-size: 0.87rem;
  line-height: 1.7;
  flex: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.project-tags span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: 4px;
}

.btn-project {
  color: var(--purple-light);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition), color var(--transition);
  cursor: pointer;
}

.btn-project:hover {
  gap: 8px;
  color: var(--purple);
}

/* ===== DIFFERENTIATORS SECTION ===== */
#differentiators { background: linear-gradient(180deg, transparent, rgba(37, 99, 235, 0.05), transparent); }

.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.diff-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.diff-card:hover {
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
}

.diff-icon {
  flex-shrink: 0;
  width: 48px; height: 48px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(37, 99, 235, 0.15));
  border: 1px solid var(--border-glow);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple-light);
}

.diff-content h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.diff-content p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== CONTACT SECTION ===== */
#contact { background: var(--bg-secondary); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}

.contact-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.contact-info > p {
  color: var(--text-secondary);
  margin-bottom: 32px;
  font-size: 0.95rem;
  line-height: 1.7;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: var(--transition);
  background: var(--bg-card);
  cursor: pointer;
}

.contact-link:hover {
  transform: translateX(6px);
  border-color: var(--border-glow);
}

.contact-link.whatsapp:hover { border-color: rgba(37, 211, 102, 0.4); }
.contact-link.discord:hover { border-color: rgba(88, 101, 242, 0.4); }
.contact-link.email:hover { border-color: var(--border-glow); }

.contact-link-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.whatsapp .contact-link-icon { background: rgba(37, 211, 102, 0.1); color: #25d366; }
.discord .contact-link-icon { background: rgba(88, 101, 242, 0.1); color: #5865f2; }
.email .contact-link-icon { background: rgba(124, 58, 237, 0.1); color: var(--purple-light); }

.contact-link-text { display: flex; flex-direction: column; }
.link-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.link-value { font-size: 0.92rem; font-weight: 600; color: var(--text-primary); }

/* ===== CONTACT FORM ===== */
.contact-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea,
.form-group select {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.9rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  resize: none;
  cursor: pointer;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.form-group input.error,
.form-group textarea.error { border-color: #ef4444; }

.form-error {
  font-size: 0.78rem;
  color: #ef4444;
  min-height: 1em;
}

.form-success {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #22c55e;
  font-size: 0.9rem;
  font-weight: 500;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
}

/* ===== FOOTER ===== */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 48px 0;
  text-align: center;
}

.footer-logo {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.footer-tagline {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  margin-bottom: 16px;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .services-grid,
  .projects-grid,
  .diff-grid { grid-template-columns: repeat(2, 1fr); }

  #hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }

  .hero-content { align-items: center; }
  .hero-desc { text-align: left; }
  .hero-visual { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .scroll-indicator { display: none; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(5, 11, 24, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 20px;
    gap: 4px;
    transform: translateY(-120%);
    transition: transform var(--transition);
    z-index: 999;
    display: none; /* ESCONDE TUDO */
  }

  .nav-links.open { 
    transform: translateY(0);
    display: flex;
  
  }

  .nav-link { padding: 14px 16px; text-align: center; font-size: 1rem; }

  .hamburger { display: flex; }

  .services-grid,
  .projects-grid,
  .diff-grid { grid-template-columns: 1fr; }

  #hero { padding: calc(var(--nav-height) + 32px) 20px 60px; }

  section { padding: 72px 0; }

  .hero-stats { flex-direction: column; gap: 16px; }
  .stat-divider { width: 40px; height: 1px; }

  .contact-form-wrap { padding: 24px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.8rem; }
  .hero-buttons { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .section-title { font-size: 1.8rem; }
}

/* ===== ANIMATED GRADIENT BG ===== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 10% 20%, rgba(124, 58, 237, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 80%, rgba(37, 99, 235, 0.06) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
  animation: bg-shift 12s ease-in-out infinite alternate;
}

@keyframes bg-shift {
  0% { opacity: 0.7; }
  100% { opacity: 1; }
}

/* ===== CAROUSEL ===== */

.carousel {
  overflow: hidden;
  position: relative;
  width: 100%;
  margin-top: 40px;
  border-radius: var(--radius);
}

.carousel-swipe-indicator {
  display: none;
}

.carousel-track {
  display: flex;
  gap: 40px;
  transition: transform 0.1s linear;
}

.carousel:hover .carousel-track {
  animation-play-state: paused;
}

.carousel-item {
  min-width: 380px;
  width: 380px;
  height: 240px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-item:hover {
  transform: scale(1.04);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

@keyframes scroll-carousel {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Responsivo */
@media (max-width: 768px) {
  .carousel {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .carousel-track {
    display: flex;
    gap: 16px;
    transform: none !important; /* desativa translate do JS */
  }

  .carousel-item {
    min-width: 85%;
    width: 85%;
    flex: 0 0 auto;
    scroll-snap-align: center;
  }

  /* esconder scrollbar */
  .carousel::-webkit-scrollbar {
    display: none;
  }

  .carousel {
    scrollbar-width: none;
  }

  /* texto deslize */
  .carousel-swipe-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 28px;
    opacity: 0.6;
    animation: swipeBounce 2s ease-in-out infinite;
  }

  .carousel-swipe-indicator span {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
  }

  .swipe-icon {
    color: var(--text-muted);
  }
}

.swipe-icon {
  display: inline-block;
  font-size: 1rem;
  animation: swipeMove 1.5s ease-in-out infinite;
}

@keyframes swipeMove {
  0% { transform: translateX(0); opacity: 0.4; }
  50% { transform: translateX(8px); opacity: 1; }
  100% { transform: translateX(0); opacity: 0.4; }
}


/* ===== LIGHTBOX ===== */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  z-index: 9999;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-img {
  max-width: 85%;
  max-height: 85%;
  border-radius: var(--radius);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
  transform: scale(0.8);
  transition: transform 0.4s ease;
}

.lightbox.active .lightbox-img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 40px;
  color: white;
  cursor: pointer;
  font-weight: 300;
  transition: 0.3s ease;
}

.lightbox-close:hover {
  transform: scale(1.2);
  color: var(--purple-light);
}