/* Google Developers Design System */
:root {
  --google-blue: #1a73e8;
  --google-blue-hover: #174ea6;
  --google-gray-100: #f8f9fa;
  --google-gray-200: #e8eaed;
  --google-gray-300: #dadce0;
  --google-gray-600: #5f6368;
  --google-gray-900: #202124;
  --white: #ffffff;

  --font-heading: 'Google Sans', 'Roboto', sans-serif;
  --font-body: 'Roboto', 'Noto Sans', sans-serif;

  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 24px;

  --header-height: 64px;
  --container-width: 1280px;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--google-gray-900);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--google-gray-900);
}

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

ul {
  list-style: none;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Navigation */
.header {
  height: var(--header-height);
  background: var(--white);
  border-bottom: 1px solid var(--google-gray-200);
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
}

.nav {
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: space-between;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 64px;

}

.logo-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--google-gray-600);

}

.logo-link b {
  color: var(--google-gray-900);
  font-weight: 500;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-weight: 500;
  color: var(--google-gray-600);
  font-size: 14px;
}

.nav-link:hover {
  color: var(--google-blue);
}

.nav-link-download {
  color: var(--google-blue) !important;
  border: 1px solid var(--google-blue);
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 600;
  transition: var(--transition);
}

.nav-link-download:hover {
  background: var(--google-blue);
  color: var(--white) !important;
}

/* Navigation Dropdown styling */
.nav-dropdown {
  position: relative;
}

.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.dropdown-chevron {
  transition: transform 0.2s ease;
}

.nav-dropdown:hover .dropdown-chevron {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--white);
  border: 1px solid var(--google-gray-200);
  border-radius: var(--border-radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  min-width: 240px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.2s ease;
  z-index: 1001;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-item {
  display: block;
  padding: 10px 18px;
  text-align: left;
}

.dropdown-item:hover {
  background-color: var(--google-gray-100);
}

.dropdown-item-title {
  font-weight: 500;
  color: var(--google-gray-900);
  font-size: 14px;
  transition: color 0.2s;
}

.dropdown-item:hover .dropdown-item-title {
  color: var(--google-blue);
}

.dropdown-item-desc {
  font-size: 11px;
  color: var(--google-gray-600);
  margin-top: 2px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.search-box {
  background: var(--google-gray-100);
  border-radius: var(--border-radius-sm);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--google-gray-600);
  font-size: 14px;
  width: 240px;
  cursor: text;
}

.search-hint {
  margin-left: auto;
  padding: 2px 6px;
  background: var(--white);
  border: 1px solid var(--google-gray-300);
  border-radius: 4px;
  font-size: 11px;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 760px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  overflow: hidden;
  text-align: center;
  padding: 100px 24px 80px;
}

/* Confetti canvas fills the hero */
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Centered content block */
.hero-center {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  max-width: 900px;
  width: 100%;
  margin-top: -120px;
}


/* Fixed-height wrapper - button NEVER moves */
.hero-title-wrap {
  width: 100%;
  height: 200px;
  /* enough for 2-3 lines at 64px */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
}

.hero-title {
  font-size: 64px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -2px;
  color: var(--google-gray-900);
  margin: 0;
}

/* Hero action buttons row */
.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: #3967d2;
  color: #ffffff;
  border: none;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.18);
  font-family: var(--font-heading);
}

.hero-btn-primary:hover {
  background: #234a8a;
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.28);
}

.hero-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: transparent;
  color: var(--google-gray-900);
  border: 1px solid var(--google-gray-300);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  font-family: var(--font-heading);
}

.hero-btn-secondary:hover {
  background: var(--google-gray-100);
  border-color: var(--google-gray-600);
}


/* Premium Animated Gradient Text */
.gradient-text {
  background: linear-gradient(270deg, #1a73e8, #9c27b0, #e91e63, #1a73e8);
  background-size: 600% 600%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 8s ease infinite;
  display: inline-block;
}

@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* Blinking cursor for typewriter */
.cursor-blink {
  display: inline-block;
  color: #1a73e8;
  font-weight: 300;
  animation: blink 0.75s step-end infinite;
  margin-left: 2px;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  border-radius: var(--border-radius-sm);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  border: none;
  position: relative;
  transition: var(--transition);
}

.btn-primary {
  background: var(--google-blue);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--google-blue-hover);
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.3), 0 4px 8px rgba(60, 64, 67, 0.15);
}

.btn-outline {
  border: 1px solid var(--google-gray-300);
  background: var(--white);
  color: var(--google-blue);
}

.btn-outline:hover {
  background: var(--google-gray-100);
}

/* Features Grid - Premium Dark Mode Style */
.features {
  padding: 120px 0;
  background: #09090b;
  /* Deep premium black */
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

/* Subtle glow behind the section */
.features::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(circle, rgba(26, 115, 232, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.section-head {
  text-align: center;
  margin-bottom: 64px;
}

/* Alternating Feature Rows (Zig-Zag Layout) */
/* Alternating Feature Rows (Zig-Zag Layout) - Light Mode */
.features {
  padding: 120px 0;
  background: var(--white);
  color: var(--google-gray-900);
  position: relative;
  overflow: hidden;
}

.feature-rows {
  display: flex;
  flex-direction: column;
  gap: 120px;
  max-width: 1100px;
  margin: 0 auto;
}

.feature-row {
  display: flex;
  align-items: center;
  gap: 80px;
}

.feature-row.reversed {
  flex-direction: row-reverse;
}

.feature-text-block {
  flex: 1;
}

.feature-number {
  font-family: 'Roboto Mono', monospace;
  font-size: 80px;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.04);
  line-height: 1;
  margin-bottom: -30px;
  margin-left: -4px;
}

.feature-heading {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--google-gray-900);
  position: relative;
  z-index: 1;
}

.feature-desc {
  font-size: 16px;
  color: var(--google-gray-600);
  line-height: 1.7;
  margin-bottom: 32px;
}

.feature-bullet-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-bullet-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--google-gray-700);
  font-size: 15px;
}

.text-blue {
  color: var(--google-blue);
}

.feature-visual-block {
  flex: 1;
  position: relative;
}

/* Premium PDF Showcase */
.premium-pdf-showcase {
  display: flex;
  flex-direction: column;
  gap: 32px;
  background: transparent;
}

.pdf-master-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding-bottom: 0;
  border-bottom: none;
}

.toolbar-label {
  font-weight: 600;
  font-size: 15px;
  color: var(--google-gray-900);
  display: flex;
  align-items: center;
  gap: 8px;
}

.toolbar-select-wrapper {
  position: relative;
  display: inline-block;
}

.premium-select {
  appearance: none;
  background: var(--google-gray-100);
  border: 1px solid transparent;
  padding: 10px 40px 10px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--google-gray-900);
  cursor: pointer;
  outline: none;
  transition: all 0.2s;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.premium-select:hover,
.premium-select:focus {
  background: var(--white);
  border-color: var(--google-blue);
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.premium-select.small {
  padding: 6px 32px 6px 12px;
  font-size: 13px;
  box-shadow: none;
  background: var(--white);
  border-color: var(--google-gray-300);
}

.select-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--google-gray-600);
  pointer-events: none;
  font-size: 12px;
}

.toolbar-select-wrapper.small .select-icon {
  right: 12px;
}

.pdf-3d-stack-container {
  position: relative;
  width: 100%;
  height: 600px;
  max-width: 600px;
  /* narrowed to allow space for fanning out */
  margin: 0 auto;
  perspective: 1200px;
}

.pdf-pane.card-original {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transform: translateZ(-80px) translateY(40px) scale(0.95);
  opacity: 0.8;
  z-index: 1;
  transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.pdf-pane.card-translated {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transform: translateZ(0) translateY(0) scale(1);
  z-index: 2;
  transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

/* Hover state: Fan out the cards completely flat and without overlapping */
.pdf-3d-stack-container:hover .pdf-pane.card-original {
  transform: translateX(-52%) translateZ(0) rotateY(0) scale(1);
  opacity: 1;
  box-shadow: -20px 20px 50px rgba(0, 0, 0, 0.1);
  z-index: 3;
}

.pdf-3d-stack-container:hover .pdf-pane.card-translated {
  transform: translateX(52%) translateZ(0) rotateY(0) scale(1);
  box-shadow: 20px 20px 50px rgba(0, 0, 0, 0.15);
}

.pdf-pane {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.04);
  background: #f8f9fa;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
}

.pdf-pane-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: transparent;
  border-bottom: none;
}

.pdf-render-area {
  height: 600px;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.pane-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  color: var(--google-gray-900);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-dot.original {
  background-color: var(--google-blue);
}

.status-dot.translated {
  background-color: #10b981;
}

.pane-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  background: var(--google-gray-200);
  color: var(--google-gray-700);
  border-radius: 999px;
}

.pdf-render-area {
  height: 600px;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  /* Hide scrollbar */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.pdf-render-area::-webkit-scrollbar {
  display: none;
}

/* Base Visual Box - Light Mode */
.visual-box {
  background: var(--white);
  border: 1px solid var(--google-gray-200);
  border-radius: 24px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  position: relative;
}

.visual-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  pointer-events: none;
}

/* Document Visual - Light Mode (Comparison) */
.doc-visual {
  padding: 40px;
  height: 320px;
  background: var(--google-gray-50);
}

.translate-animation-container {
  border-radius: 24px;
}

.mask-img {
  animation: scanReveal 4s infinite ease-in-out alternate;
}

.scanner-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--google-blue);
  box-shadow: 0 0 16px var(--google-blue), 0 0 8px var(--google-blue);
  z-index: 10;
  animation: scanSweep 4s infinite ease-in-out alternate;
}

@keyframes scanReveal {

  0%,
  15% {
    clip-path: inset(0 0 100% 0);
  }

  85%,
  100% {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes scanSweep {

  0%,
  15% {
    top: 0%;
    opacity: 0;
  }

  20% {
    opacity: 1;
  }

  85%,
  100% {
    top: 100%;
    opacity: 0;
  }
}

.lang-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 20;
  border: 1px solid var(--google-gray-200);
}

.doc-line {
  height: 6px;
  background: var(--google-gray-200);
  border-radius: 4px;
}

.doc-line.title {
  height: 12px;
  margin-bottom: 8px;
  background: var(--google-gray-300);
}

.doc-image-box {
  background: rgba(26, 115, 232, 0.05);
  border: 1px dashed rgba(26, 115, 232, 0.3);
  border-radius: 6px;
}

/* API Visual - Light Mode */
.api-visual {
  padding: 40px;
  height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  background: var(--white);
}

.api-pill {
  background: var(--white);
  border: 1px solid var(--google-gray-200);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  padding: 16px 24px;
  border-radius: 12px;
  color: var(--google-gray-800);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.api-pill:hover {
  transform: translateX(10px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
  border-color: var(--google-blue);
}

/* Metrics Dashboard Visual */
.metrics-visual {
  height: 320px;
  background: var(--white);
  padding: 32px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  height: 100%;
}

.metric-card {
  background: var(--white);
  border: 1px solid var(--google-gray-200);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.metric-card.full-width {
  grid-column: span 2;
}

.metric-label {
  font-size: 13px;
  color: var(--google-gray-600);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.metric-value {
  font-size: 40px;
  font-weight: 700;
  color: var(--google-gray-900);
  line-height: 1;
  margin: 12px 0;
}

.metric-value .unit {
  font-size: 16px;
  color: var(--google-gray-600);
  font-weight: 500;
  margin-left: 4px;
}

.metric-subtext {
  font-size: 12px;
  color: var(--google-gray-600);
}

.hardware-specs {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
}

.spec-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--google-gray-800);
}

/* Code Preview */
.code-section {
  padding: 80px 0;
  background: var(--google-gray-100);
}

.code-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: center;
}

.code-box {
  background: #1e1e1e;
  border-radius: var(--border-radius-md);
  padding: 24px;
  color: #d4d4d4;
  font-family: 'Roboto Mono', monospace;
  font-size: 14px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.code-line {
  margin-bottom: 4px;
}

.code-keyword {
  color: #569cd6;
}

.code-string {
  color: #ce9178;
}

.code-comment {
  color: #6a9955;
}

/* Footer */
.footer {
  background: var(--google-gray-100);
  padding: 64px 0 32px;
  border-top: 1px solid var(--google-gray-200);
}

.footer-grid {
  display: flex;
  justify-content: space-around;
  gap: 40px;
  margin-bottom: 64px;
}

.footer-col h4 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
  color: var(--google-gray-900);
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-link {
  font-size: 14px;
  color: var(--google-gray-600);
}

.footer-link:hover {
  color: var(--google-blue);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--google-gray-300);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--google-gray-600);
}

.lang-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--google-gray-600);
  cursor: pointer;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-layout {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .hero-title {
    font-size: 40px;
  }

  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .code-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .hero-image-section {
    width: 100%;
    max-width: 400px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }
}

/* Auth Modal & Overlay */
.auth-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(32, 33, 36, 0.4);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-overlay.show {
  opacity: 1;
  visibility: visible;
}

.auth-modal {
  background: var(--white);
  width: 100%;
  max-width: 440px;
  padding: 40px;
  border-radius: var(--border-radius-md);
  position: relative;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.auth-overlay.show .auth-modal {
  transform: translateY(0);
}

.auth-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--google-gray-600);
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.auth-close:hover {
  background: var(--google-gray-100);
  color: var(--google-gray-900);
}

.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-header img {
  margin-bottom: 16px;
}

.auth-header h2 {
  font-size: 24px;
  margin-bottom: 8px;
}

.auth-header p {
  color: var(--google-gray-600);
  font-size: 14px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  font-weight: 500;
  color: var(--google-gray-900);
}

.form-group input {
  padding: 12px 16px;
  border: 1px solid var(--google-gray-300);
  border-radius: var(--border-radius-sm);
  font-size: 14px;
  transition: border-color 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--google-blue);
  box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.1);
}

.auth-actions {
  display: flex;
  justify-content: flex-end;
}

.auth-link {
  color: var(--google-blue);
  font-size: 14px;
  font-weight: 500;
}

.auth-link:hover {
  text-decoration: underline;
}

.btn-block {
  width: 100%;
  justify-content: center;
  height: 48px;
}

.auth-divider {
  text-align: center;
  position: relative;
  margin: 24px 0;
}

.auth-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--google-gray-300);
  z-index: 1;
}

.auth-divider span {
  background: var(--white);
  padding: 0 12px;
  color: var(--google-gray-600);
  font-size: 14px;
  position: relative;
  z-index: 2;
}

.btn-google {
  gap: 12px;
  border-color: var(--google-gray-300);
  color: var(--google-gray-900);
}

.btn-google:hover {
  background: var(--google-gray-100);
  border-color: var(--google-gray-300);
}

.auth-footer {
  margin-top: 32px;
  text-align: center;
  font-size: 14px;
  color: var(--google-gray-600);
}

/* User Profile Styles */
.user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 4px;
  border-radius: 20px;
  transition: background 0.2s;
  position: relative;
}

.user-profile:hover {
  background: var(--google-gray-100);
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--google-blue);
}

.user-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--google-gray-900);
  max-width: 250px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;

}

.logout-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--white);
  border: 1px solid var(--google-gray-200);
  border-radius: var(--border-radius-md);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 8px 0;
  margin-top: 8px;
  min-width: 140px;
  display: none;
  z-index: 1001;
}

.user-profile.active .logout-dropdown {
  display: block;
}

.logout-btn {
  width: 100%;
  padding: 10px 16px;
  text-align: left;
  background: none;
  border: none;
  font-size: 14px;
  color: var(--google-gray-600);
  cursor: pointer;
  transition: all 0.2s;
}

.logout-btn:hover {
  background: var(--google-gray-100);
  color: #d93025;
  /* Google Red */
}

/* Translation Showcase Animation - Borderless Floating Style */
.translation-showcase {
  position: relative;
  width: 100%;
  max-width: 700px;
  height: 500px;
  overflow: hidden;
}

.showcase-track {
  display: flex;
  flex-direction: column;
  animation: scroll-up 24s linear infinite;
}

.showcase-track:hover {
  animation-play-state: paused;
}

.showcase-item {
  display: flex;
  height: 400px;
  padding: 20px 0;
  gap: 32px;
  align-items: center;
}

.showcase-half {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.showcase-half img {
  width: 100%;
  height: calc(100% - 40px);
  object-fit: contain;
  image-rendering: high-quality;
  border-radius: 8px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
  /* Shadow directly on the images */
  border: 1px solid rgba(0, 0, 0, 0.05);
  background: var(--white);
}

.showcase-label {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--google-gray-600);
}

.showcase-label-translated {
  color: var(--google-blue);
}

@keyframes scroll-up {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-50%);
  }
}