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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #ffffff;
  background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #2d2d2d 100%);
  min-height: 100vh;
}

h1,
h2,
h3,
h4 {
  line-height: 1.2;
}

/* ===== Components ===== */
.cta-button {
  background: linear-gradient(45deg, #940d0d, #b31010);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(148, 13, 13, 0.3);
  font-size: 1rem;
}

.cta-button:hover {
  background: linear-gradient(45deg, #b31010, #d41313);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(148, 13, 13, 0.4);
}

.copy-button {
  background: linear-gradient(45deg, #eb2525, #ff4444);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.copy-button:hover {
  background: linear-gradient(45deg, #ff4444, #ff6666);
  transform: translateY(-1px);
}

.divider {
  width: 100px;
  height: 3px;
  background: linear-gradient(45deg, #940d0d, #eb2525);
  margin: 2rem auto;
  border-radius: 2px;
}

.circle {
  background: linear-gradient(45deg, #ffffff, #f0f0f0);
  color: #000;
  font-weight: bold;
  border-radius: 50%;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.circle:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(255, 255, 255, 0.3);
}

/* ===== Header ===== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
}

.logo-container h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff;
}

.logo-img {
  width: 50px;
  height: 60px;
  filter: drop-shadow(0 2px 10px rgba(255, 255, 255, 0.2));
  object-fit: contain;
  display: block;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  transition: all 0.3s ease;
}

.logo-img:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 4px 15px rgba(255, 255, 255, 0.3));
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.desktop-nav a {
  color: #ccc;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.desktop-nav a:hover {
  color: #eb2525;
  transform: translateY(-2px);
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(45deg, #940d0d, #eb2525);
  transition: width 0.3s ease;
}

.desktop-nav a:hover::after {
  width: 100%;
}

/* ===== Hamburger Menu ===== */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 5px;
  transition: all 0.3s ease;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #ffffff;
  margin: 3px 0;
  transition: all 0.3s ease;
  border-radius: 3px;
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

.hamburger:hover span {
  background: #eb2525;
}

/* Mobile Navigation */
.mobile-nav {
  display: none;
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 99;
  padding: 1rem 0;
  transform: translateY(-20px);
  opacity: 0;
  transition: all 0.3s ease;
}

.mobile-nav.active {
  display: block;
  transform: translateY(0);
  opacity: 1;
}

.mobile-nav a {
  display: block;
  padding: 1rem 2rem;
  color: #ccc;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav a:hover {
  color: #eb2525;
  background: rgba(235, 37, 37, 0.1);
  padding-left: 2.5rem;
}

.mobile-nav .cta-button {
  margin: 1rem 2rem;
  display: block;
  text-align: center;
  width: calc(100% - 4rem);
}

/* ===== Hero Section ===== */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 2rem 6rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
  gap: 4rem;
  min-height: 80vh;
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.rose-logo-container {
  text-align: center;
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease-out;
}

.rose-logo-img {
  width: 100px;
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 5px 15px rgba(255, 255, 255, 0.2));
  transition: transform 0.3s ease;
}

.rose-logo-img:hover {
  transform: scale(1.1) rotate(5deg);
}

.hero-content h2 {
  font-size: 3.5rem;
  color: #ffffff;
  margin-bottom: 1.5rem;
  font-weight: 700;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-content p {
  font-size: 1.3rem;
  color: #ccc;
  margin-bottom: 2rem;
  line-height: 1.6;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-media {
  flex: 1;
  max-width: 600px;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

/* Demo Container */
.demo-container {
  position: relative;
  perspective: 1000px;
}

.demo-window {
  background: linear-gradient(145deg, #000000, #000000);
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 20px 40px rgba(255, 255, 255, 0.216);
  transform: rotateY(-5deg) rotateX(5deg);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.demo-window:hover {
  transform: rotateY(0deg) rotateX(0deg) scale(1.02);
}

.window-header {
  background: rgba(0, 0, 0, 0.801);
  height: 35px;
  border-radius: 10px 10px 0 0;
  display: flex;
  align-items: center;
  padding: 0 15px;
  margin: -20px -20px 15px -20px;
  position: relative;
  overflow: hidden;
}

.window-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.window-controls {
  display: flex;
  gap: 8px;
}

.control {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.control:hover {
  opacity: 1;
}

.control:nth-child(1) {
  background: #ff5f57;
}

.control:nth-child(2) {
  background: #ffbd2e;
}

.control:nth-child(3) {
  background: #28ca42;
}

.demo-content {
  background: rgba(255, 255, 255, 0.941);
  padding: 20px;
  border-radius: 8px;
  color: #333;
  min-height: 300px;
}

.url-bar {
  background: #f0f0f0;
  padding: 10px 15px;
  border-radius: 20px;
  margin-bottom: 20px;
  font-size: 14px;
  color: #666;
  display: flex;
  align-items: center;
  gap: 8px;
}

.url-bar::before {
  content: "🌍";
  font-size: 16px;
}

.nav-tabs {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
}

.nav-tabs span {
  color: #ff0000;
  cursor: pointer;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.nav-tabs span:hover {
  background: rgba(74, 144, 226, 0.1);
}

.nav-tabs span.active {
  background: #fd0000;
  color: white;
}

.language-selector {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
  justify-content: center;
}

.lang-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border: 2px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.lang-box:hover {
  border-color: #4a90e2;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.2);
}

.flag {
  width: 24px;
  height: 18px;
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.flag.english {
  background: linear-gradient(to right, #012169 33%, #fff 33%, #fff 66%, #c8102e 66%);
}

.flag.french {
  background: linear-gradient(to right, #002654 33%, #fff 33%, #fff 66%, #ce1126 66%);
}

.flag.spanish {
  background: linear-gradient(to bottom, #aa151b 33%, #f1bf00 33%, #f1bf00 66%, #aa151b 66%);
}

.flag.german {
  background: linear-gradient(to bottom, #000000 33%, #dd0000 33%, #dd0000 66%, #ffce00 66%);
}

.flag.italian {
  background: linear-gradient(to right, #009246 33%, #fff 33%, #fff 66%, #ce2b37 66%);
}

.flag.portuguese {
  background: linear-gradient(to bottom, #046a38 50%, #da020e 50%);
}

.flag.dutch {
  background: linear-gradient(to bottom, #ae1c28 33%, #fff 33%, #fff 66%, #21468b 66%);
}

.flag.russian {
  background: linear-gradient(to bottom, #fff 33%, #0039a6 33%, #0039a6 66%, #d52b1e 66%);
}

.flag.chinese {
  background: #de2910;
  position: relative;
}

.flag.chinese::before {
  content: "★";
  position: absolute;
  top: 2px;
  left: 3px;
  color: #ffde00;
  font-size: 8px;
}

.flag.japanese {
  background: #fff;
  position: relative;
}

.flag.japanese::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #bc002d;
}

.flag.korean {
  background: #fff;
  position: relative;
}

.flag.korean::before {
  content: "☯";
  position: absolute;
  top: 4px;
  left: 8px;
  font-size: 10px;
  color: #003478;
}

.arrow {
  font-size: 24px;
  color: #4a90e2;
  font-weight: bold;
  animation: pulse 2s infinite;
}

.welcome-text {
  margin: 20px 0;
  padding: 20px;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-radius: 10px;
  border-left: 4px solid #eb2525;
  position: relative;
  overflow: hidden;
}

.welcome-text::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent, rgba(74, 144, 226, 0.05), transparent);
  animation: shimmer 3s infinite;
}

.translation-example {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 10px;
}

.original-text,
.translated-text {
  flex: 1;
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: 500;
}

.original-text {
  background: rgba(226, 119, 74, 0.1);
  color: #eb2525;
}

.translated-text {
  background: rgba(40, 202, 66, 0.1);
  color: #28ca42;
}

.translation-arrow {
  color: #666;
  font-size: 18px;
}

.auto-translate-label {
  font-size: 12px;
  color: #666;
  text-align: center;
  margin-top: 10px;
  font-style: italic;
}

.translate-btn {
  background: #eb2525;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  float: right;
  margin-top: 15px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(74, 144, 226, 0.3);
}

.translate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.4);
}

/* ===== How It Works ===== */
.how-it-works {
  text-align: center;
  padding: 6rem 2rem;
  background: rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.how-it-works::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(148, 13, 13, 0.1) 0%, transparent 70%);
}

.how-it-works > * {
  position: relative;
  z-index: 1;
}

.how-it-works h2 {
  font-size: 3rem;
  color: #ef4444;
  margin-bottom: 1rem;
  font-weight: 700;
}

.how-it-works > p {
  font-size: 1.3rem;
  margin-bottom: 3rem;
  color: #ccc;
}

.steps {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: 0 auto;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 250px;
  padding: 2rem;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.step:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(148, 13, 13, 0.3);
}

.step p {
  font-size: 1.1rem;
  line-height: 1.4;
  text-align: center;
  color: #fff;
}

.step p.highlight {
  color: #ef4444;
  font-weight: bold;
  font-size: 1.2rem;
}

/* ===== New Why Choose Section ===== */
.why-choose {
  padding: 6rem 2rem;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  position: relative;
  overflow: hidden;
}

.promo-container {
  max-width: 1200px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  display: grid;
  grid-template-columns: 400px 1fr;
  min-height: 600px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.promo-hero {
  background: linear-gradient(135deg, rgba(248, 249, 250, 0.1) 0%, rgba(233, 236, 239, 0.1) 100%);
  padding: 50px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.promo-hero h2 {
  font-size: 42px;
  font-weight: 700;
  margin: 0 0 20px 0;
  color: #ffffff;
  letter-spacing: -1px;
  line-height: 1.2;
}

.promo-hero .webnew {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.promo-hero p {
  font-size: 18px;
  color: #ccc;
  margin: 0;
  font-weight: 400;
  line-height: 1.6;
}

.promo-features {
  padding: 20px;
  display: flex;
  align-items: center;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  width: 100%;
}

.feature-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #e74c3c, #f39c12, #3498db, #2ecc71);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 68, 68, 0.3);
  background: rgba(255, 255, 255, 0.1);
}

.feature-icon {
  width: 60px;
  height: 60px;
  margin: 0 0 20px 0;
  background: linear-gradient(135deg, rgba(44, 62, 80, 0.8), rgba(52, 73, 94, 0.8));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
  transition: all 0.4s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
  background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 12px 0;
  line-height: 1.3;
}

.feature-card p {
  font-size: 14px;
  color: #aaa;
  line-height: 1.5;
  margin: 0;
}

.feature-card:hover h3 {
  color: #e74c3c;
}

/* ===== Contact Section ===== */
.contact {
  padding: 4rem 2rem;
  text-align: center;
  background: rgba(0, 0, 0, 0.3);
}

.contact h3 {
  font-size: 2rem;
  color: #eb2525;
  margin-bottom: 2rem;
  font-weight: 600;
}

.contact form {
  max-width: 500px;
  margin: 0 auto;
}

.contact input,
.contact textarea {
  width: 100%;
  padding: 1rem;
  margin: 0.5rem 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.contact input:focus,
.contact textarea:focus {
  outline: none;
  border-color: #eb2525;
  background: rgba(255, 255, 255, 0.1);
}

.contact input::placeholder,
.contact textarea::placeholder {
  color: #999;
}

.contact textarea {
  height: 120px;
  resize: vertical;
}

/* ===== Enhanced Dashboard Section ===== */
.dashboard {
  padding: 6rem 2rem;
  background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
  position: relative;
  overflow: hidden;
}

.dashboard::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 70%, rgba(255, 68, 68, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 70% 30%, rgba(74, 144, 226, 0.1) 0%, transparent 50%);
}

.dashboard-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.dashboard-header {
  text-align: center;
  margin-bottom: 4rem;
}

.dashboard-header h2 {
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(135deg, #ff4444 0%, #4a90e2 50%, #ff6b6b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  text-shadow: 0 4px 20px rgba(255, 68, 68, 0.3);
}

.dashboard-header p {
  font-size: 1.3rem;
  color: #b0b0b0;
  font-weight: 400;
}

.dashboard-content {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.translation-panel {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: stretch;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 20px;
  padding: 2.5rem;
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.input-section,
.output-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.input-header,
.output-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.input-header h3,
.output-header h3 {
  font-size: 1.2rem;
  color: #ffffff;
  font-weight: 600;
}

.language-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.language-indicator span {
  font-size: 0.9rem;
  color: #ccc;
  font-weight: 500;
}

#inputText,
#outputText {
  width: 100%;
  min-height: 200px;
  padding: 1.5rem;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-size: 1rem;
  line-height: 1.6;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  resize: vertical;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

#inputText:focus,
#outputText:focus {
  outline: none;
  border-color: #ff4444;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 20px rgba(255, 68, 68, 0.2);
}

#inputText::placeholder,
#outputText::placeholder {
  color: #888;
  font-style: italic;
}

#outputText {
  background: rgba(0, 255, 100, 0.03);
  border-color: rgba(0, 255, 100, 0.2);
}

.input-footer,
.output-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
}

.counter-info {
  display: flex;
  gap: 1.5rem;
}

.char-count,
.word-count,
.translation-info {
  font-size: 0.85rem;
  color: #888;
}

.translation-info {
  display: flex;
  align-items: center;
  gap: 5px;
}

.translation-info::before {
  content: "⚡";
  font-size: 1rem;
}

.translation-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 1rem;
  min-width: 220px;
}

.language-dropdown-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.language-dropdown-container label {
  font-size: 0.9rem;
  color: #ccc;
  font-weight: 500;
}

.language-dropdown {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #ffffff;
  padding: 12px 16px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  min-width: 180px;
  text-align: center;
}

.language-dropdown:focus {
  outline: none;
  border-color: #ff4444;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 15px rgba(255, 68, 68, 0.2);
}

.language-dropdown option {
  background: #2a2a2a;
  color: #ffffff;
  padding: 8px;
}

.language-switch {
  display: flex;
  align-items: center;
  justify-content: center;
}

.switch-arrow {
  font-size: 2rem;
  color: #ff4444;
  font-weight: bold;
  animation: pulse 2s infinite;
  text-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
}

.control-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.translate-button,
.clear-button {
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.translate-button {
  background: linear-gradient(135deg, #ff4444 0%, #ff6b6b 100%);
  box-shadow: 0 4px 20px rgba(255, 68, 68, 0.3);
}

.clear-button {
  background: linear-gradient(135deg, #666666 0%, #888888 100%);
  box-shadow: 0 4px 20px rgba(102, 102, 102, 0.3);
}

.translate-button:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(255, 68, 68, 0.4);
  background: linear-gradient(135deg, #ff6b6b 0%, #ff4444 100%);
}

.clear-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(102, 102, 102, 0.4);
  background: linear-gradient(135deg, #888888 0%, #666666 100%);
}

.translate-button:disabled {
  background: linear-gradient(135deg, #666 0%, #555 100%);
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.translate-button::before,
.clear-button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
}

.translate-button:hover::before,
.clear-button:hover::before {
  width: 300px;
  height: 300px;
}

.button-icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.translate-button:hover .button-icon,
.clear-button:hover .button-icon {
  transform: scale(1.2);
}

.button-text {
  position: relative;
  z-index: 1;
}

.copy-output-button {
  background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(74, 144, 226, 0.3);
}

.copy-output-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(74, 144, 226, 0.4);
  background: linear-gradient(135deg, #357abd 0%, #4a90e2 100%);
}

.copy-icon {
  font-size: 1rem;
}

.dashboard-features {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.feature-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
  border-color: rgba(255, 68, 68, 0.3);
}

.feature-item .feature-icon {
  font-size: 1.5rem;
  width: auto;
  height: auto;
  margin: 0;
  background: none;
  border-radius: 0;
}

.feature-item span {
  color: #ccc;
  font-weight: 500;
  font-size: 1rem;
}

/* ===== Translation History Section ===== */
.translation-history {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 20px;
  padding: 2rem;
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  margin-top: 2rem;
}

.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.history-actions {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.history-header h3 {
  font-size: 1.5rem;
  color: #ffffff;
  font-weight: 600;
  margin: 0;
}

.clear-history-button {
  background: linear-gradient(135deg, #666666 0%, #888888 100%);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(102, 102, 102, 0.3);
}

.clear-history-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(102, 102, 102, 0.4);
  background: linear-gradient(135deg, #888888 0%, #666666 100%);
}

.download-history-button {
  background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(74, 144, 226, 0.3);
}

.download-history-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(74, 144, 226, 0.4);
  background: linear-gradient(135deg, #357abd 0%, #4a90e2 100%);
}

.history-content {
  max-height: 400px;
  overflow-y: auto;
}

.history-empty {
  text-align: center;
  padding: 3rem 2rem;
  color: #888;
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.history-empty p {
  font-size: 1.1rem;
  line-height: 1.6;
}

.history-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.history-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 68, 68, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.history-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(135deg, #ff4444, #ff6666);
}

.history-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: #aaa;
}

.history-language {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  background: rgba(255, 68, 68, 0.2);
  border-radius: 15px;
  color: #ff6666;
  font-weight: 500;
}

.history-timestamp {
  font-style: italic;
}

.history-texts {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
}

.history-original,
.history-translated {
  padding: 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
  line-height: 1.5;
  word-wrap: break-word;
}

.history-original {
  background: rgba(255, 68, 68, 0.1);
  border: 1px solid rgba(255, 68, 68, 0.2);
  color: #ffcccc;
}

.history-translated {
  background: rgba(40, 202, 66, 0.1);
  border: 1px solid rgba(40, 202, 66, 0.2);
  color: #ccffcc;
}

.history-arrow {
  color: #ff4444;
  font-size: 1.2rem;
  font-weight: bold;
}

.history-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.history-copy-btn,
.history-reuse-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #ccc;
  border: none;
  padding: 6px 12px;
  border-radius: 15px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}

.history-copy-btn:hover {
  background: rgba(74, 144, 226, 0.3);
  color: #4a90e2;
}

.history-reuse-btn:hover {
  background: rgba(255, 68, 68, 0.3);
  color: #ff4444;
}

/* Pagination Controls */
.pagination-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pagination-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #ccc;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}

.pagination-btn:hover:not(:disabled) {
  background: rgba(255, 68, 68, 0.3);
  color: #ff4444;
  transform: translateY(-1px);
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-info {
  color: #888;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Dashboard Responsive Design */
@media (max-width: 1024px) {
  .translation-panel {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .translation-controls {
    flex-direction: row;
    justify-content: center;
    padding: 1rem 0;
    min-width: auto;
  }

  .control-buttons {
    flex-direction: row;
  }

  .switch-arrow {
    transform: rotate(90deg);
  }
}

@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    padding: 1rem 1rem 3rem 1rem;
    text-align: center;
  }

  .hero-content h2 {
    font-size: 2.5rem;
  }

  .how-it-works h2 {
    font-size: 2rem;
  }

  .why-choose h2 {
    font-size: 2rem;
  }

  .steps {
    gap: 2rem;
  }

  .promo-hero {
    padding: 40px 30px;
  }

  .promo-hero h2 {
    font-size: 32px;
  }

  .promo-features {
    padding: 30px 20px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .feature-card {
    padding: 25px;
  }

  .dashboard-header h2 {
    font-size: 2.5rem;
  }

  .dashboard-header p {
    font-size: 1.1rem;
  }

  .translation-panel {
    padding: 1.5rem;
  }

  #inputText,
  #outputText {
    min-height: 150px;
    padding: 1rem;
  }

  .translation-controls {
    flex-direction: column;
    gap: 1rem;
  }

  .control-buttons {
    flex-direction: column;
  }

  .dashboard-features {
    gap: 1rem;
  }

  .feature-item {
    padding: 0.8rem 1.2rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .hero-content h2 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1.1rem;
  }

  .step {
    padding: 1rem;
  }

  .circle {
    width: 60px;
    height: 60px;
  }
}

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

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink {
  0%, 50% {
    border-color: transparent;
  }
  51%, 100% {
    border-color: #ff4444;
  }
}

@keyframes loadingSpinner {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.cta-button {
  animation: pulse 2s infinite;
}

/* Loading States */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #ff4444;
  animation: loadingSpinner 1s ease-in-out infinite;
}

.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  border-radius: inherit;
}

.loading-text {
  color: #fff;
  font-size: 1rem;
  margin-left: 10px;
}

/* Enhanced Error States */
.error-message {
  background: linear-gradient(135deg, #dc3545, #e74c3c);
  color: white;
  padding: 12px 16px;
  border-radius: 8px;
  margin: 10px 0;
  animation: slideInFromRight 0.3s ease-out;
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.success-message {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  padding: 12px 16px;
  border-radius: 8px;
  margin: 10px 0;
  animation: slideInFromRight 0.3s ease-out;
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

/* Enhanced Responsive Design */
@media (max-width: 1200px) {
  .hero {
    gap: 2rem;
  }
  
  .hero-content h2 {
    font-size: 3rem;
  }
  
  .dashboard-header h2 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  
  .desktop-nav {
    display: none;
  }
  
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
  }
  
  .hero-content h2 {
    font-size: 2.5rem;
  }
  
  .translation-panel {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .translation-controls {
    order: -1;
  }
  
  .control-buttons {
    flex-direction: row;
    gap: 1rem;
  }
  
  .switch-arrow {
    transform: rotate(90deg);
  }
  
  .history-texts {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .history-arrow {
    transform: rotate(90deg);
    justify-self: center;
  }
}

@media (max-width: 480px) {
  .hero-content h2 {
    font-size: 2rem;
  }
  
  .hero-content p {
    font-size: 1.1rem;
  }
  
  .dashboard-header h2 {
    font-size: 2rem;
  }
  
  .translation-panel {
    padding: 1rem;
  }
  
  #inputText, #outputText {
    min-height: 120px;
    padding: 1rem;
  }
  
  .control-buttons {
    flex-direction: column;
  }
  
  .feature-item {
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
  }
}

/* ===== Pricing Section ===== */
.pricing {
  padding: 6rem 2rem;
  background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
  position: relative;
  overflow: hidden;
}

.pricing::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(148, 13, 13, 0.1) 0%, transparent 70%);
}

.pricing-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.pricing-header {
  margin-bottom: 50px;
}

.pricing-header h2 {
  font-size: 3rem;
  font-weight: bold;
  color: #ff4444;
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(255, 68, 68, 0.3);
}

.pricing-header p {
  font-size: 1.3rem;
  color: #cccccc;
  font-weight: 300;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.pricing-card {
  background: rgba(255, 255, 255, 0.05);
  color: white;
  border-radius: 15px;
  padding: 40px 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 68, 68, 0.5);
}

.pricing-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ff4444, #ff6666);
}

.plan-name {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: white;
}

.plan-price {
  font-size: 3rem;
  font-weight: bold;
  color: #ff4444;
  margin-bottom: 5px;
}

.plan-period {
  font-size: 1.1rem;
  color: #aaa;
  margin-bottom: 15px;
}

.plan-description {
  font-size: 1.1rem;
  color: #ccc;
  margin-bottom: 30px;
  font-weight: 500;
}

.plan-features {
  list-style: none;
  text-align: left;
  margin-bottom: 40px;
}

.plan-features li {
  margin-bottom: 15px;
  font-size: 1rem;
  color: #ddd;
  position: relative;
  padding-left: 30px;
}

.plan-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #28a745;
  font-weight: bold;
  font-size: 1.2rem;
}

.plan-button {
  background: linear-gradient(45deg, #940d0d, #b31010);
  color: white;
  border: none;
  padding: 15px 35px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(148, 13, 13, 0.3);
}

.plan-button:hover {
  background: linear-gradient(45deg, #b31010, #d41313);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(148, 13, 13, 0.4);
}

.pro-card {
  border: 3px solid #ff4444;
  transform: scale(1.05);
}

.pro-card::before {
  background: linear-gradient(90deg, #ff4444, #ff2222);
  height: 6px;
}

/* ===== Testimonials Section ===== */
.testimonials {
  padding: 6rem 2rem;
  background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
  position: relative;
  overflow: hidden;
}

.testimonials::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 70% 30%, rgba(148, 13, 13, 0.1) 0%, transparent 70%);
}

.testimonial-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.main-title {
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(135deg, #ff4444 0%, #ff6b6b 50%, #ff3333 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 20px rgba(255, 68, 68, 0.3);
}

.subtitle {
  font-size: 1.3rem;
  color: #b0b0b0;
  margin-bottom: 4rem;
  font-weight: 400;
  line-height: 1.6;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 30px;
  margin-top: 40px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 68, 68, 0.5);
}

.testimonial-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ff4444, #ff6666);
}

.testimonial-text {
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  text-align: left;
  color: #ddd;
  font-weight: 400;
  position: relative;
  z-index: 1;
}

.testimonial-footer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 15px;
}

.user-avatar {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #940d0d, #b31010);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
  box-shadow: 0 4px 12px rgba(148, 13, 13, 0.4);
  flex-shrink: 0;
}

.user-name {
  font-size: 1.1rem;
  font-weight: 500;
  color: #fff;
  text-align: left;
}

.quote-mark {
  font-size: 5rem;
  color: rgba(255, 255, 255, 0.05);
  position: absolute;
  top: -20px;
  left: 10px;
  font-family: Georgia, serif;
  font-weight: bold;
  z-index: 0;
}

/* ===== Footer Styles ===== */
.footer {
  background: linear-gradient(135deg, #0a0a0a 0%, #000000 100%);
  padding: 5rem 2rem 2rem;
  color: #b0b0b0;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 68, 68, 0.5), transparent);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.footer-logo .logo-img {
  width: 40px;
  height: 48px;
  filter: drop-shadow(0 2px 5px rgba(255, 255, 255, 0.1));
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
}

.footer-logo h3 {
  font-size: 1.5rem;
  color: white;
  font-weight: 700;
  background: linear-gradient(135deg, #ff4444, #ff6b6b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-description {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

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

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: rgba(255, 68, 68, 0.2);
  transform: translateY(-3px);
}

.social-icon svg {
  transition: all 0.3s ease;
}

.social-icon:hover svg {
  fill: #ff4444;
}

.footer-heading {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, #ff4444, #ff6666);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: #b0b0b0;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: #ff4444;
  transform: translateX(5px);
}

.footer-contact {
  list-style: none;
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}

.footer-contact svg {
  flex-shrink: 0;
}

.footer-contact span {
  font-size: 0.95rem;
  line-height: 1.5;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.copyright {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  text-align: center;
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  color: #b0b0b0;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-legal a:hover {
  color: #ff4444;
}

/* Responsive Footer */
@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }

  .copyright {
    margin-bottom: 0;
  }
}

/* Responsive History */
@media (max-width: 768px) {
  .translation-history {
    padding: 1.5rem;
    margin-top: 1.5rem;
  }

  .history-header {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }

  .clear-history-button {
    align-self: center;
  }

  .history-texts {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .history-arrow {
    transform: rotate(90deg);
    justify-self: center;
  }

  .history-meta {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }

  .history-actions {
    justify-content: center;
  }
}

/* ===== Loading Spinner ===== */
.loading-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.loading-text {
  color: #ffffff;
  margin-top: 10px;
  font-size: 14px;
}

/* ===== Demo Highlight ===== */
.demo-highlight {
  animation: demoGlow 2s ease-in-out infinite;
  position: relative;
  z-index: 10;
}

@keyframes demoGlow {
  0%, 100% { 
    box-shadow: 0 0 20px rgba(255, 68, 68, 0.5);
    transform: scale(1);
  }
  50% { 
    box-shadow: 0 0 30px rgba(255, 68, 68, 0.8);
    transform: scale(1.02);
  }
}

/* ===== Shake Animation ===== */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* ===== Fade In Scale Animation ===== */
@keyframes fadeInScale {
  0% { 
    opacity: 0;
    transform: scale(0.95);
  }
  100% { 
    opacity: 1;
    transform: scale(1);
  }
}

/* ===== Blink Animation ===== */
@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* ===== Enhanced Button States ===== */
.translate-button {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.translate-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 68, 68, 0.3);
}

.translate-button:active {
  transform: translateY(0);
  box-shadow: 0 4px 15px rgba(255, 68, 68, 0.2);
}

.translate-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* ===== Success Button State ===== */
.translate-button.success {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
  box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
  animation: successPulse 0.6s ease-out;
}

@keyframes successPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* ===== Loading Button State ===== */
.translate-button.loading {
  background: linear-gradient(135deg, #666 0%, #555 100%) !important;
  box-shadow: 0 8px 25px rgba(102, 102, 102, 0.4);
  animation: loadingPulse 1.5s ease-in-out infinite;
}

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

/* ===== Error Button State ===== */
.translate-button.error {
  background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%) !important;
  box-shadow: 0 8px 25px rgba(255, 193, 7, 0.4);
  animation: errorShake 0.5s ease-out;
}

@keyframes errorShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* ===== Enhanced Textarea States ===== */
#inputText:focus,
#outputText:focus {
  border-color: #ff4444;
  box-shadow: 0 0 0 3px rgba(255, 68, 68, 0.1);
  transform: scale(1.01);
}

#outputText.typing {
  border-color: #ff4444;
  box-shadow: 0 0 15px rgba(255, 68, 68, 0.2);
}

#outputText.completed {
  border-color: #28a745;
  box-shadow: 0 0 15px rgba(40, 167, 69, 0.2);
  animation: completionGlow 0.8s ease-out;
}

@keyframes completionGlow {
  0% { box-shadow: 0 0 5px rgba(40, 167, 69, 0.2); }
  50% { box-shadow: 0 0 25px rgba(40, 167, 69, 0.6); }
  100% { box-shadow: 0 0 15px rgba(40, 167, 69, 0.2); }
}

/* ===== Enhanced Loading Overlay ===== */
.loading-overlay {
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.loading-spinner {
  border-color: #ff4444 transparent transparent transparent;
  animation: spin 1s linear infinite;
}

/* ===== Notification Enhancements ===== */
.notification {
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ===== History Item Enhancements ===== */
.history-item {
  transition: all 0.3s ease;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.history-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 68, 68, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.history-actions button {
  transition: all 0.2s ease;
}

.history-actions button:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
