/* style.css - نسخه نهایی و جامع */
:root {
  --bg: #fff;
  --text: #0f172a;
  --accent: #00796b;
  --accent-light: #4db6ac;
  --accent-dark: #005a4f;
  --muted: #64748b;
  --transition: 0.3s ease;
  --menu-bg: rgba(255, 255, 255, 0.98);
  --menu-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  --card-bg: #f8fafc;
  --border-color: #e1e5e9;
  --text-primary: #1a202c;
  --text-secondary: #718096;
  --primary-color: #0F766E;
  --primary-hover: #00796b;
  --card-active-bg: #f8fafc;
  --gradient: linear-gradient(135deg, #00796b 0%, #0F766E 100%);
  --safe-area-top: env(safe-area-inset-top);
  --safe-area-bottom: env(safe-area-inset-bottom);
  --safe-area-left: env(safe-area-inset-left);
  --safe-area-right: env(safe-area-inset-right);
}

[data-theme="dark"] {
  --bg: #0f172a;
  --text: #f8fafc;
  --accent: #2dd4bf;
  --accent-light: #5eead4;
  --accent-dark: #0d9488;
  --muted: #94a3b8;
  --menu-bg: rgba(15, 23, 42, 0.98);
  --menu-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  --card-bg: #1e293b;
  --border-color: #4a5568;
  --text-primary: #f7fafc;
  --text-secondary: #e2e8f0;
  --card-active-bg: #4a5568;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: background var(--transition), color var(--transition),
    border-color var(--transition), transform var(--transition);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Vazirmatn, sans-serif;
  background: var(--bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  padding: 2rem 2rem 0.5rem;
  overflow-x: hidden;
  line-height: 1.6;
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;

  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

body:lang(en) {
  font-family: Inter, Vazirmatn, sans-serif;
}

/* Animations */
@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translate(-50%, -20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes subtlePulse {
  0%,
  100% {
    box-shadow: 0 4px 15px rgba(0, 121, 107, 0.25);
  }
  50% {
    box-shadow: 0 6px 20px rgba(0, 121, 107, 0.35);
  }
}

@keyframes subtlePulseDark {
  0%,
  100% {
    box-shadow: 0 4px 15px rgba(45, 212, 191, 0.3);
  }
  50% {
    box-shadow: 0 6px 20px rgba(45, 212, 191, 0.4);
  }
}

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

/* Logo & Brand */
.logo {
  width: 90px;
  height: 90px;
  margin-bottom: 1rem;
  transition: transform 0.5s ease;
}

.logo:hover {
  transform: scale(1.05) rotate(5deg);
}

#brand-name {
  direction: ltr !important;
}

/* Typography */
h1 {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

h2 {
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--muted);
  margin-bottom: 2rem;
}

.tagline {
  font-size: 1.05rem;
  margin-bottom: 2.2rem;
  color: var(--text);
}

/* Buttons */
.button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.8rem 2rem;
  border-radius: 9999px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.button:hover::before {
  left: 100%;
}

.button:hover {
  opacity: 0.95;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 121, 107, 0.4), 0 0 15px var(--accent-light);
}

.button-secondary {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}

.button-secondary:hover {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 15px var(--accent-light);
}

/* Controls */
.controls {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: auto;
  max-width: max-content;
  animation: fadeInDown 0.5s ease-out;
}

.controls.scrolled {
  top: 0.75rem;
  padding: 0.6rem 1.25rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(25px) saturate(200%);
  -webkit-backdrop-filter: blur(25px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06),
    0 0 0 1px rgba(255, 255, 255, 0.7) inset;
  border-radius: 14px;
}

.controls button {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 1.1rem;
  position: relative;
  overflow: hidden;
}

.controls button::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.1) 0%,
    rgba(118, 75, 162, 0.1) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.controls button:hover {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(102, 126, 234, 0.3);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.controls button:hover::before {
  opacity: 1;
}

/* Menu Toggle */
.menu-toggle {
  position: relative;
}

.menu-icon {
  width: 20px;
  height: 16px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.menu-icon span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

.menu-icon span:nth-child(1) {
  width: 100%;
}
.menu-icon span:nth-child(2) {
  width: 75%;
  margin-right: auto;
}
.menu-icon span:nth-child(3) {
  width: 100%;
}

.menu-toggle:hover .menu-icon span:nth-child(2) {
  width: 100%;
}

.menu-toggle.active .menu-icon span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
  width: 100%;
}

.menu-toggle.active .menu-icon span:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.menu-toggle.active .menu-icon span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
  width: 100%;
}

/* Menu Overlay & Content */
.menu-overlay {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.menu-content {
  position: fixed;
  top: 0;
  right: -300px;
  width: 280px;
  height: 100%;
  background: var(--menu-bg);
  box-shadow: var(--menu-shadow);
  z-index: 95;
  padding: 5rem 1.5rem 2rem;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.menu-content.active {
  right: 0;
}

body:lang(en) .menu-content {
  right: auto;
  left: -300px;
  transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body:lang(en) .menu-content.active {
  left: 0;
  right: auto;
}

/* Menu Header */
.menu-header {
  margin-bottom: 2rem;
  text-align: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--muted);
}

.menu-header h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent);
}

/* Menu Links */
.menu-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.5rem;
}

.menu-link {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0.75rem 0.3rem;
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  background: transparent;
  overflow: hidden;
}

.menu-link::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.menu-link:hover::before,
.menu-link:focus::before {
  opacity: 0.05;
}

.menu-link:hover,
.menu-link:focus {
  border-color: var(--accent-light);
  transform: translateX(-4px);
  box-shadow: 0 4px 20px rgba(0, 121, 107, 0.15);
}

body:lang(en) .menu-link:hover,
body:lang(en) .menu-link:focus {
  transform: translateX(4px);
}

.menu-link-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  z-index: 2;
}

.menu-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  transition: transform 0.2s ease;
}

.menu-link:hover .menu-icon-wrapper {
  transform: scale(1.1);
}

.menu-text {
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.menu-link-hover-effect {
  position: absolute;
  top: 50%;
  right: -10px;
  width: 4px;
  height: 0;
  background: var(--accent);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(-50%);
}

.menu-link:hover .menu-link-hover-effect {
  height: 60%;
  right: 8px;
}

body:lang(en) .menu-link-hover-effect {
  right: auto;
  left: -10px;
}

body:lang(en) .menu-link:hover .menu-link-hover-effect {
  left: 8px;
}

/* Active Menu Link */
.menu-link-active {
  position: relative;
  border: 2px solid var(--accent) !important;
  background: linear-gradient(
    135deg,
    var(--accent) 0%,
    var(--accent-light) 100%
  ) !important;
  color: white !important;
  transform: translateX(-2px) scale(1.02);
  box-shadow: 0 4px 15px rgba(0, 121, 107, 0.25);
  animation: subtlePulse 3s ease-in-out infinite;
}

body:lang(en) .menu-link-active {
  transform: translateX(2px) scale(1.02);
}

.menu-link-active::before {
  display: none !important;
}

.menu-link-active .menu-text {
  color: white !important;
  font-weight: 600;
}

.menu-link-active .menu-icon-wrapper {
  transform: scale(1.1);
}

/* Features Section */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 3rem 0;
  max-width: 900px;
  width: 100%;
}

.feature-card {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease forwards;
}

.feature-card:nth-child(1) {
  animation-delay: 0.2s;
}
.feature-card:nth-child(2) {
  animation-delay: 0.4s;
}
.feature-card:nth-child(3) {
  animation-delay: 0.6s;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-light);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .feature-card:hover {
  box-shadow: 0 8px 20px rgba(45, 212, 191, 0.3);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.feature-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--accent);
}

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

/* Contact Links */
.contact-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.contact-link {
  color: var(--accent);
  text-decoration: none;
  transition: all 0.2s ease;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--accent-light);
}

.contact-link:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

/* Footer */
footer {
  margin-top: auto;
  padding: 1rem 0 0.5rem;
  font-size: 0.8rem;
  color: var(--muted);
  width: 100%;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 0.5rem;
  flex-wrap: wrap;
}

.footer-link {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.footer-copy {
  direction: ltr;
}

/* Page Content Styles */
.page-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 8rem 1rem 1rem 1rem;
}

.page-header {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
}

/* .page-header h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
} */

.page-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Content Grid & Cards */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.content-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  animation: fadeInUp 0.6s ease-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    border-radius: 20px;
}

.content-card:nth-child(2) {
  animation-delay: 0.1s;
}
.content-card:nth-child(3) {
  animation-delay: 0.2s;
}
.content-card:nth-child(4) {
  animation-delay: 0.3s;
}

.content-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.content-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.05) 0%,
    rgba(118, 75, 162, 0.05) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.content-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  border-color: transparent;
}

.content-card:hover::before,
.content-card:hover::after {
  opacity: 1;
}

/* Content Icon */
.content-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  position: relative;
  transition: all 0.3s ease;
}

.content-card:hover .content-icon {
  transform: scale(1.1) rotate(5deg);
}

.content-icon svg {
  width: 32px;
  height: 32px;
  stroke: white;
}

.content-icon::before {
  content: "";
  position: absolute;
  top: -2px;
  right: -2px;
  bottom: -2px;
  left: -2px;
  background: var(--gradient);
  border-radius: 22px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.content-card:hover .content-icon::before {
  opacity: 1;
  animation: pulse 2s infinite;
}

/* Content Text */
.content-card h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.3;
  position: relative;
}

.content-card p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 1.05rem;
  margin: 0;
  position: relative;
  z-index: 1;
}

/* Stats Section */
.stats-section {
  background: var(--gradient);
  border-radius: 32px;
  padding: 4rem 2rem;
  margin: 6rem 0;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.6s ease-out 0.4s both;
}

.stats-section::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  position: relative;
  z-index: 1;
}

.stat-item {
  text-align: center;
  color: white;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  display: block;
}

.stat-label {
  font-size: 1.1rem;
  opacity: 0.9;
  font-weight: 500;
}

/* Team Section */
.team-section {
  margin: 6rem 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-primary);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.team-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.team-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--gradient);
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  font-weight: 700;
}

.team-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.team-role {
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 1rem;
}

.team-bio {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Contact Page Styles */
.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 2fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.contact-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  animation: slideUp 0.6s ease-out;
}

.contact-card:nth-child(2) {
  animation-delay: 0.1s;
}
.contact-card:nth-child(3) {
  animation-delay: 0.2s;
}
.contact-card:nth-child(4) {
  animation-delay: 0.3s;
}

.contact-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-color);
}

.contact-card:hover::before {
  opacity: 1;
}

.contact-icon {
  margin-bottom: 1rem;
  color: var(--primary-color);
  transition: transform 0.3s ease;
}

.contact-card:hover .contact-icon {
  transform: scale(1.1);
}

.contact-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.contact-card p {
  color: var(--text-secondary);
  margin: 0;
  direction: ltr;
}

/* Contact Form */
.contact-form-section {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 3rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  animation: slideUp 0.6s ease-out 0.4s both;
}

.form-container h2 {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2rem;
  text-align: center;
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  position: relative;
  margin-bottom: 2rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem 0;
  border: none;
  background: transparent;
  font-size: 1rem;
  color: var(--text-primary);
  outline: none;
  resize: vertical;
}

.form-group label {
  position: absolute;
  top: 1rem;
  right: 0;
  font-size: 1rem;
  color: var(--text-secondary);
  pointer-events: none;
  transition: all 0.3s ease;
  transform-origin: right center;
}

.form-underline {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 2px;
  background: var(--border-color);
  transition: all 0.3s ease;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
  top: -0.5rem;
  font-size: 0.875rem;
  color: var(--primary-color);
  transform: scale(0.85);
}

.form-group input:focus ~ .form-underline,
.form-group textarea:focus ~ .form-underline {
  background: var(--primary-color);
  height: 2px;
}

/* Submit Button */
.submit-button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--gradient);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

.submit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.submit-icon {
  transition: transform 0.3s ease;
}

.submit-button:hover .submit-icon {
  transform: translateX(4px);
}

/* .sharing-card {
  display: flex;
  flex-direction: row;
    gap: 1.5rem;
  margin: 0 auto;
  padding: 2rem 1rem;
}
.section-content,
.usage-grid{
  display: flex;
  gap: 1.5rem;
  margin: 0 auto;
  padding: 2rem 1rem;
} */

.sharing-card,
.security-item,
.right-item,
.process-step,
.providers-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2.5rem;
  margin-bottom: 1rem;
}
.usage-item {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2.5rem;
  margin-bottom: 1rem;
  }

/* FAQ Styles */
.terms-content,
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.faq-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  animation: fadeIn 0.5s ease-out;
}

.faq-card:nth-child(2) {
  animation-delay: 0.1s;
}
.faq-card:nth-child(3) {
  animation-delay: 0.2s;
}
.faq-card:nth-child(4) {
  animation-delay: 0.3s;
}
.faq-card:nth-child(5) {
  animation-delay: 0.4s;
}

.faq-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.faq-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-color);
}

.faq-card:hover::before {
  opacity: 1;
}

.faq-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.faq-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  margin: 0;
  flex: 1;
}

.faq-icon {
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--text-secondary);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-content p {
  margin: 1rem 0 0 0;
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.95rem;
}

.faq-card.active {
  background: var(--card-active-bg);
  border-color: var(--primary-color);
}

.faq-card.active::before {
  opacity: 1;
}

.faq-card.active .faq-icon {
  transform: rotate(180deg);
  color: var(--primary-color);
}

.faq-card.active .faq-content {
  max-height: 500px;
  margin-top: 1rem;
}

/* Privacy & Terms Styles */
.privacy-container,
.error-container,
.terms-container {
  margin: 0 auto;
  padding: 2rem 1rem;
}

.language-toggle {
  display: inline-flex;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0.25rem;
  margin-bottom: 2rem;
  position: sticky;
  top: 2rem;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.lang-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.lang-btn.active {
  background: var(--gradient);
  color: white;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Summary Cards */
.privacy-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.summary-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.6s ease-out;
}

.summary-card:nth-child(1) {
  animation-delay: 0.1s;
}
.summary-card:nth-child(2) {
  animation-delay: 0.2s;
}
.summary-card:nth-child(3) {
  animation-delay: 0.3s;
}

.summary-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.summary-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-color);
}

.summary-card:hover::before {
  opacity: 1;
}

.summary-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  transition: transform 0.3s ease;
}

.summary-card:hover .summary-icon {
  transform: scale(1.1);
}

.summary-icon svg {
  stroke: white;
}

.summary-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.summary-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
  font-size: 0.95rem;
}

/* Privacy & Terms Sections */
.privacy-section,
.terms-section {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2.5rem;
  margin-bottom: 2rem;
  position: relative;
  transition: all 0.3s ease;
  overflow: hidden;
  animation: fadeInUp 0.6s ease-out;
}

.privacy-section::before,
.terms-section::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.privacy-section:hover,
.terms-section:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-color);
}

.privacy-section:hover::before,
.terms-section:hover::before {
  opacity: 1;
}

/* Section Headers */
.section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-badge,
.section-number {
  width: 50px;
  height: 50px;
  background: var(--gradient);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.section-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.3;
}

/* Data Categories */
.data-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.data-category h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-color);
}

.data-category ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.data-category li {
  position: relative;
  padding: 1rem;
  color: var(--text-secondary);
  line-height: 1.5;
  text-align: start;
}

.data-category li::before {
  content: "•";
  position: absolute;
  right: 0;
  color: var(--primary-color);
  font-size: 1.25rem;
  font-weight: bold;
}

/* Acceptance Sections */
.acceptance-section {
  margin-top: 4rem;
  animation: fadeInUp 0.6s ease-out 0.7s both;
}

.acceptance-card {
  background: var(--gradient);
  border-radius: 24px;
  padding: 3rem;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.acceptance-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.acceptance-card h3 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.acceptance-card p {
  font-size: 1.1rem;
  opacity: 0.9;
  line-height: 1.6;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.acceptance-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.error-container p {
    font-size: 1.1rem;
  opacity: 0.9;
  line-height: 1.6;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.btn-primary,
.btn-secondary {
  padding: 1rem 2rem;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

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

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* Progress Indicator */
.progress-indicator {
  position: fixed;
  top: 0;
  right: 0;
  width: 4px;
  height: 100vh;
  background: var(--border-color);
  z-index: 90;
}

.progress-bar {
  width: 100%;
  background: var(--gradient);
  transition: height 0.3s ease;
}

/* Responsive Design */
@media (max-width: 1024px) {
  /* .page-header h1 {
    font-size: 3rem;
  } */

  .content-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  body {
    padding: 1rem 1rem 0.5rem; 
  }

  .controls {
    top: 1rem;
    padding: 0.6rem 1.25rem;
    gap: 0.6rem;
    border-radius: 14px;
  }

  .controls.scrolled {
    top: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 12px;
  }

  .controls button {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 1rem;
  }

  .menu-content {
    width: 250px;
  }

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

  .feature-card {
    padding: 1.2rem;
  }

  .contact-links {
    gap: 1rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 0.5rem;
  }

  .contact-links {
    flex-direction: column;
    align-items: center;
  }

  h1 {
    font-size: 1.4rem;
  }

  h2 {
    font-size: 1rem;
  }

  .tagline {
    font-size: 0.95rem;
  }

  .page-content {
    padding: 7rem 1rem 1rem 1rem;
  }

  .page-header {
    margin-bottom: 3rem;
  }

  /* .page-header h1 {
    font-size: 2.5rem;
  } */

  .page-subtitle {
    font-size: 1.1rem;
  }

  .content-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .content-card {
    padding: 2rem;
    border-radius: 20px;
  }

  .content-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 1.5rem;
  }

  .content-icon svg {
    width: 28px;
    height: 28px;
  }

  .stats-section {
    margin: 4rem 0;
    padding: 3rem 1.5rem;
    border-radius: 24px;
  }

  .stats-grid {
    gap: 2rem;
  }

  .stat-number {
    font-size: 2.5rem;
  }

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

  .team-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .contact-container {
    padding: 1rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 3rem;
  }

  .contact-card {
    padding: 1.5rem;
    border-radius: 16px;
  }

  .contact-form-section {
    padding: 2rem 1.5rem;
    border-radius: 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-container h2 {
    font-size: 1.5rem;
  }

  .terms-content,
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem;
  }

  .faq-card {
    padding: 1.25rem;
  }

  .faq-header h3 {
    font-size: 1rem;
  }

  .privacy-container,
  .error-container,
  .terms-container {
    padding: 1rem;
  }

  .language-toggle {
    margin-bottom: 1.5rem;
    width: 100%;
    justify-content: center;
  }

  .privacy-summary {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .privacy-section,
  .terms-section {
    padding: 2rem;
    border-radius: 16px;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .data-categories {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

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

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

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

  .acceptance-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn-primary,
  .btn-secondary {
    width: 200px;
  }

  .section-number {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }

  .section-header h2 {
    font-size: 1.3rem;
  }

  .acceptance-card {
    padding: 2rem;
    border-radius: 20px;
  }

  .acceptance-card h3 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .controls {
    top: 0.75rem;
    padding: 0.5rem 1rem;
    gap: 0.5rem;
  }

  .controls.scrolled {
    top: 0.25rem;
    padding: 0.4rem 0.8rem;
  }

  .controls button {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 0.9rem;
  }

  .menu-icon {
    width: 16px;
    height: 12px;
  }

  /* .page-header h1 {
    font-size: 2rem;
  } */

  .content-card {
    padding: 1.5rem;
    border-radius: 16px;
  }

  .content-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.25rem;
  }

  .content-icon svg {
    width: 24px;
    height: 24px;
  }

  .content-card h2 {
    font-size: 1.3rem;
  }

  .stats-section {
    padding: 2rem 1rem;
    border-radius: 20px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .contact-form-section {
    padding: 1.5rem 1rem;
    border-radius: 16px;
  }

  .contact-card {
    padding: 1.25rem;
  }

  .terms-content,
  .faq-grid {
    padding: 0.5rem;
  }

  .faq-card {
    padding: 1rem;
    border-radius: 12px;
  }

  .privacy-section,
  .terms-section {
    padding: 1.5rem;
  }

  .lang-btn {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  .acceptance-card {
    padding: 1.5rem;
  }

  .usage-item,
  .security-item,
  .process-step {
    flex-direction: column;
    text-align: center;
  }
}

/* Dark Mode Adjustments */
[data-theme="dark"] .controls {
  background: rgba(45, 55, 72, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

[data-theme="dark"] .controls.scrolled {
  background: rgba(45, 55, 72, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

[data-theme="dark"] .controls button {
  background: rgba(74, 85, 104, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
}

[data-theme="dark"] .controls button:hover {
  background: rgba(74, 85, 104, 0.8);
  border-color: rgba(102, 126, 234, 0.4);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

[data-theme="dark"] .content-card,
[data-theme="dark"] .team-card,
[data-theme="dark"] .contact-card,
[data-theme="dark"] .contact-form-section,
[data-theme="dark"] .faq-card,
[data-theme="dark"] .privacy-section,
[data-theme="dark"] .terms-section,
[data-theme="dark"] .summary-card,
[data-theme="dark"] .usage-item,
[data-theme="dark"] .security-item,
[data-theme="dark"] .right-item,
[data-theme="dark"] .process-step,
[data-theme="dark"] .providers-list {
  --card-bg: #2d3748;
  --border-color: #4a5568;
  --text-primary: #f7fafc;
  --text-secondary: #e2e8f0;
}

[data-theme="dark"] .content-card:hover,
[data-theme="dark"] .team-card:hover {
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .language-toggle,
[data-theme="dark"] .last-updated {
  --card-bg: #2d3748;
  --border-color: #4a5568;
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea {
  color: #f7fafc;
}

[data-theme="dark"] .restrictions-list li {
  border-color: #4a5568;
}

[data-theme="dark"] .menu-link-active {
  border-color: var(--accent-light) !important;
  background: linear-gradient(
    135deg,
    var(--accent) 0%,
    var(--accent-dark) 100%
  ) !important;
  animation: subtlePulseDark 3s ease-in-out infinite;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .menu-link-active {
    animation: none;
    transform: none !important;
  }

  body:lang(en) .menu-link-active {
    transform: none !important;
  }

  .menu-link,
  .menu-link-content,
  .menu-icon-wrapper,
  .menu-link-hover-effect {
    transition: none;
  }
}

/* Print Styles */
@media print {
  .language-toggle,
  .controls {
    display: none;
  }

  .page-content ,
  .terms-section {
    break-inside: avoid;
    border: 1px solid #ddd;
    box-shadow: none;
  }

  .acceptance-card {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
  }
}



.section-content{
  text-align: start;
}