/* ==========================================================================
   Tech na Raça - Custom Design System & Style Definitions
   ========================================================================== */

:root {
  /* Color Palette - Palette extracted & enhanced from logo.png */
  --bg-deep: #060913;
  --bg-surface: rgba(13, 21, 39, 0.7);
  --bg-surface-hover: rgba(18, 29, 54, 0.85);
  --bg-card: rgba(10, 16, 30, 0.65);
  
  --orange-main: #FF6B00;
  --orange-bright: #FF8800;
  --orange-glow: rgba(255, 107, 0, 0.4);
  --orange-light: #FFB366;
  
  --blue-main: #00A8FF;
  --cyan-bright: #00E5FF;
  --blue-glow: rgba(0, 168, 255, 0.35);
  --red-youtube: #FF0000;

  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-orange: rgba(255, 107, 0, 0.3);
  --border-blue: rgba(0, 168, 255, 0.3);
  --border-red: rgba(255, 0, 0, 0.35);

  /* Typography */
  --font-heading: 'Space Grotesk', -apple-system, sans-serif;
  --font-body: 'Outfit', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Animation & Transitions */
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Background Canvas & Ambient Lighting */
#cyber-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  animation: floatGlow 12s ease-in-out infinite alternate;
}

.glow-orange {
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 500px;
  background: radial-gradient(circle, var(--orange-glow) 0%, rgba(255, 107, 0, 0) 70%);
}

.glow-blue {
  bottom: -15%;
  right: -10%;
  width: 700px;
  height: 600px;
  background: radial-gradient(circle, var(--blue-glow) 0%, rgba(0, 168, 255, 0) 70%);
  animation-delay: -6s;
}

@keyframes floatGlow {
  0% { transform: translateY(0) scale(1); opacity: 0.4; }
  100% { transform: translateY(30px) scale(1.15); opacity: 0.65; }
}

/* Layout Wrapper */
.page-container {
  position: relative;
  z-index: 1;
  max-width: 1040px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header & Status Pill */
.site-header {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1.1rem;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-orange);
  border-radius: 100px;
  backdrop-filter: blur(12px);
  box-shadow: 0 0 20px rgba(255, 107, 0, 0.15);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--orange-main);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--orange-main);
  animation: pulseDot 1.8s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; box-shadow: 0 0 10px var(--orange-main); }
  50% { transform: scale(1.4); opacity: 0.6; box-shadow: 0 0 20px var(--orange-bright); }
}

.status-text {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--orange-light);
}

/* Hero Section */
.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2.5rem;
  flex: 1;
}

/* Logo & Rotating Rings */
.logo-container {
  position: relative;
  width: 240px;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.5rem;
}

.logo-aura {
  position: absolute;
  inset: -15px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--orange-glow) 0%, rgba(0, 168, 255, 0.2) 50%, transparent 75%);
  filter: blur(25px);
  animation: auraPulse 4s ease-in-out infinite alternate;
}

@keyframes auraPulse {
  0% { transform: scale(0.95); opacity: 0.6; }
  100% { transform: scale(1.1); opacity: 0.9; }
}

.logo-ring-svg {
  position: absolute;
  inset: -20px;
  pointer-events: none;
  animation: rotateRing 30s linear infinite;
}

@keyframes rotateRing {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.brand-logo-img {
  position: relative;
  width: 210px;
  height: 210px;
  object-fit: contain;
  border-radius: 50%;
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 25px rgba(255, 107, 0, 0.4));
  transition: transform 0.4s var(--ease-out-back), filter 0.4s var(--ease-smooth);
  cursor: pointer;
}

.brand-logo-img:hover {
  transform: scale(1.06) rotate(2deg);
  filter: drop-shadow(0 16px 36px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 35px var(--orange-main));
}

/* Headline Group */
.headline-group {
  max-width: 680px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.main-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text-main);
  text-transform: uppercase;
}

.text-orange {
  background: linear-gradient(135deg, #FF6B00 0%, #FFA500 50%, #FFD000 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 20px rgba(255, 107, 0, 0.3));
}

.badge-tagline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cyan-bright);
  background: rgba(0, 168, 255, 0.1);
  border: 1px solid var(--border-blue);
  padding: 0.35rem 1rem;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 168, 255, 0.2);
}

.badge-icon {
  color: var(--orange-main);
}

.hero-description {
  font-size: 1.125rem;
  color: var(--text-muted);
  font-weight: 400;
  line-height: 1.7;
}

.hero-description strong {
  color: var(--text-main);
  font-weight: 600;
}

/* Glassmorphism Cards Base */
.widget-card {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  transition: border-color 0.3s var(--ease-smooth), transform 0.3s var(--ease-smooth);
}

.widget-card:hover {
  border-color: var(--border-orange);
}

/* Terminal & Build Status Widget */
.terminal-card {
  max-width: 720px;
  text-align: left;
  border: 1px solid var(--border-blue);
}

.terminal-header {
  background: rgba(6, 11, 23, 0.9);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.terminal-dots {
  display: flex;
  gap: 0.4rem;
}

.terminal-dots .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot.red { background-color: #FF5F56; }
.dot.yellow { background-color: #FFBD2E; }
.dot.green { background-color: #27C93F; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

.terminal-body {
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.progress-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.progress-percent {
  color: var(--orange-bright);
}

.progress-bar-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  overflow: hidden;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue-main) 0%, var(--orange-main) 70%, var(--orange-bright) 100%);
  border-radius: 100px;
  box-shadow: 0 0 12px var(--orange-main);
  transition: width 1s var(--ease-smooth);
}

.terminal-logs {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.log-time { color: var(--text-dim); }
.log-cmd { color: var(--blue-main); font-weight: 600; }
.log-success { color: #22C55E; font-weight: 600; }

.cursor-line {
  color: var(--orange-light);
  margin-top: 0.2rem;
}

.blinking-cursor {
  color: var(--orange-main);
  font-weight: bold;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Feature Cards Grid (6 Items - 3 per row on desktop) */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
  width: 100%;
  max-width: 980px;
}

@media (min-width: 820px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 1.5rem;
  text-align: left;
  backdrop-filter: blur(12px);
  transition: all 0.3s var(--ease-smooth);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-orange);
  background: var(--bg-surface-hover);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 107, 0, 0.15);
}

.feature-icon {
  font-size: 1.8rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 107, 0, 0.1);
  border: 1px solid var(--border-orange);
  border-radius: 10px;
}

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Dedicated YouTube Showcase Card */
.youtube-card {
  max-width: 680px;
  padding: 2.2rem 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  background: linear-gradient(180deg, rgba(20, 15, 30, 0.85) 0%, rgba(10, 12, 25, 0.95) 100%);
  border: 1px solid var(--border-red);
  box-shadow: 0 0 35px rgba(255, 0, 0, 0.12);
  text-align: center;
}

.youtube-card:hover {
  border-color: var(--red-youtube);
  box-shadow: 0 0 45px rgba(255, 0, 0, 0.25);
}

.youtube-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #FF4D4D;
  background: rgba(255, 0, 0, 0.1);
  border: 1px solid var(--border-red);
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  margin-bottom: 0.5rem;
}

.youtube-header h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.youtube-header p {
  font-size: 0.975rem;
  color: var(--text-muted);
  max-width: 520px;
}

.youtube-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.95rem 1.8rem;
  background: linear-gradient(135deg, #FF0000 0%, #CC0000 100%);
  border-radius: 12px;
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 25px rgba(255, 0, 0, 0.4);
  transition: all 0.3s var(--ease-out-back);
}

.youtube-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 32px rgba(255, 0, 0, 0.6);
  background: linear-gradient(135deg, #FF1A1A 0%, #E60000 100%);
}

.btn-arrow {
  transition: transform 0.3s var(--ease-smooth);
}

.youtube-btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* Site Footer */
.site-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

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

.yt-footer-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1.25rem;
  border-radius: 100px;
  background: rgba(255, 0, 0, 0.1);
  border: 1px solid var(--border-red);
  color: var(--text-main);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s var(--ease-smooth);
}

.yt-footer-btn:hover {
  color: #FFFFFF;
  border-color: var(--red-youtube);
  background: rgba(255, 0, 0, 0.25);
  transform: translateY(-3px);
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.4);
}

.copyright-text {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.copyright-text strong {
  color: var(--text-muted);
}
