* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #5d3fd3;
  --primary-light: #7b68ee;
  --primary-dark: #4a2fb9;
  --secondary: #9370db;
  --accent: #a855f7;
  --success: #27ca3f;
  --warning: #ffbd2e;
  --danger: #ff6b6b;

  --dark: #0a0a0f;
  --dark-surface: #12121a;
  --dark-card: #1a1a24;
  --dark-border: rgba(255, 255, 255, 0.1);

  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.85);
  --text-muted: rgba(255, 255, 255, 0.6);

  --section-padding: clamp(80px, 10vw, 120px);
  --container-padding: clamp(20px, 5vw, 40px);
  --card-gap: 30px;
  --border-radius: 16px;

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.2);
  --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.25);

  --transition-fast: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family:
    "Vazir",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  background: var(--dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

.about-redesign-page {
  overflow-x: hidden;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

.animate-fade-in {
  animation: fadeIn 1s ease forwards;
}

.animate-slide-up {
  animation: slideUp 1s ease forwards;
}

.animate-slide-up.delay-100 {
  animation-delay: 0.1s;
}

.animate-slide-up.delay-200 {
  animation-delay: 0.2s;
}

.animate-slide-up.delay-300 {
  animation-delay: 0.3s;
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.about-hero-main {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 100px 0 80px;
}

.hero-bg-animated {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.bg-particles {
  position: absolute;
  width: 100%;
  height: 100%;
}

.bg-particles .particle {
  position: absolute;
  background: var(--primary);
  border-radius: 50%;
  opacity: 0.1;
  animation: float 15s infinite ease-in-out;
}

.bg-particles .particle:nth-child(1) {
  width: 300px;
  height: 300px;
  top: -150px;
  left: -150px;
  animation-delay: 0s;
}

.bg-particles .particle:nth-child(2) {
  width: 200px;
  height: 200px;
  bottom: -100px;
  right: -100px;
  background: var(--primary-light);
  animation-delay: -5s;
}

.bg-particles .particle:nth-child(3) {
  width: 150px;
  height: 150px;
  top: 50%;
  left: 80%;
  background: var(--accent);
  animation-delay: -10s;
}

.bg-gradient-mesh {
  position: absolute;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(
      circle at 20% 30%,
      rgba(93, 63, 211, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(123, 104, 238, 0.1) 0%,
      transparent 50%
    );
}

.hero-content-wrapper {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-text-content {
  max-width: 600px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(93, 63, 211, 0.15);
  border: 1px solid rgba(93, 63, 211, 0.3);
  border-radius: 50px;
  padding: 10px 20px;
  margin-bottom: 30px;
  backdrop-filter: blur(10px);
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.badge-text {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  background: linear-gradient(
    135deg,
    var(--text-primary) 0%,
    var(--primary-light) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title .title-line {
  display: block;
  margin-bottom: 5px;
}

.hero-description {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 30px;
}

.hero-cta {
  margin-top: 40px;
}

.hero-visual-content {
  position: relative;
}

.code-visualization {
  background: rgba(20, 20, 30, 0.9);
  border: 1px solid var(--dark-border);
  border-radius: var(--border-radius);
  padding: 30px;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  min-height: 200px;
}

.code-line {
  font-family: "Vazir", monospace;
  font-size: 1.1rem;
  line-height: 2;
  opacity: 0;
  animation: slideInLeft 0.5s ease forwards;
}

.code-keyword {
  color: #ff6b6b;
  font-weight: bold;
}

.code-class {
  color: #4dabf7;
}

.code-indent {
  color: var(--text-muted);
  margin-right: 20px;
}

.code-method {
  color: #27ca3f;
}

.code-cursor {
  display: inline-block;
  width: 8px;
  height: 1.2em;
  background: var(--primary);
  margin-right: 2px;
  animation: blink 1s infinite;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  cursor: pointer;
}

.scroll-icon {
  color: var(--primary);
  animation: float 2s infinite ease-in-out;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 15px;
}

.title-gradient {
  display: block;
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-light) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.title-main {
  display: block;
  color: var(--text-primary);
  font-weight: 700;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

.story-section {
  padding: var(--section-padding) 0;
  background: var(--dark-surface);
  position: relative;
}

.story-timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto 80px;
  padding: 0 20px;
}

.timeline-progress {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    var(--primary) 50%,
    transparent 100%
  );
}

.timeline-item {
  position: relative;
  margin-bottom: 60px;
  display: flex;
  align-items: center;
  gap: 30px;
}

.timeline-item:nth-child(odd) {
  flex-direction: row-reverse;
  text-align: left;
}

.timeline-dot {
  position: relative;
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  background: var(--dark-card);
  border: 2px solid var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.dot-inner {
  width: 12px;
  height: 12px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.timeline-content {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--border-radius);
  padding: 25px;
  flex: 1;
  backdrop-filter: blur(10px);
  transition: var(--transition-normal);
}

.timeline-content:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.timeline-year {
  display: inline-block;
  background: rgba(93, 63, 211, 0.15);
  color: var(--primary);
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.timeline-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.timeline-description {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.95rem;
}

.vision-card {
  background: linear-gradient(
    135deg,
    rgba(93, 63, 211, 0.1) 0%,
    rgba(123, 104, 238, 0.05) 100%
  );
  border: 1px solid rgba(93, 63, 211, 0.2);
  border-radius: var(--border-radius);
  padding: 40px;
  max-width: 800px;
  margin: 0 auto;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: flex-start;
  gap: 30px;
}

.vision-icon {
  color: var(--primary);
  flex-shrink: 0;
}

.vision-content {
  flex: 1;
}

.vision-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.vision-text {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 25px;
  font-size: 1.05rem;
}

.vision-goals {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.goal-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.goal-check {
  color: var(--success);
  font-weight: bold;
  font-size: 1.1rem;
}

.goal-item span {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.values-section {
  padding: var(--section-padding) 0;
  background: var(--dark);
  position: relative;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--card-gap);
  max-width: 1200px;
  margin: 0 auto;
}

.value-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--border-radius);
  padding: 35px 30px;
  backdrop-filter: blur(10px);
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.value-card:hover {
  border-color: var(--primary);
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.value-card:hover .card-icon-wrapper .card-icon {
  transform: scale(1.1) rotate(5deg);
}

.value-card:hover .card-icon-wrapper .icon-bg {
  transform: scale(1.2);
  opacity: 0.3;
}

.card-icon-wrapper {
  position: relative;
  width: 80px;
  height: 80px;
  margin-bottom: 25px;
}

.card-icon {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  background: rgba(93, 63, 211, 0.15);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: var(--transition-normal);
}

.icon-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  background: var(--primary);
  border-radius: 50%;
  opacity: 0.1;
  transition: var(--transition-normal);
}

.card-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.card-description {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.card-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.card-features li {
  color: var(--text-muted);
  margin-bottom: 8px;
  padding-right: 25px;
  position: relative;
  font-size: 0.9rem;
}

.card-features li::before {
  content: "•";
  position: absolute;
  right: 0;
  color: var(--primary);
  font-size: 1.2rem;
}

.team-section {
  padding: var(--section-padding) 0;
  background: var(--dark-surface);
  position: relative;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--card-gap);
  max-width: 800px;
  margin: 0 auto 60px;
}

.team-member {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition-normal);
}

.team-member:hover {
  border-color: var(--primary);
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.member-header {
  padding: 30px 30px 20px;
  border-bottom: 1px solid var(--dark-border);
  display: flex;
  align-items: center;
  gap: 20px;
}

.member-image {
  position: relative;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

.image-wrapper {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--primary);
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-fallback {
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-light) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 1.5rem;
}

.member-status {
  position: absolute;
  bottom: 5px;
  right: 5px;
  width: 12px;
  height: 12px;
  background: var(--success);
  border: 2px solid var(--dark-card);
  border-radius: 50%;
}

.member-basic-info {
  flex: 1;
}

.member-name {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--text-primary);
}

.member-role {
  color: var(--primary);
  font-size: 0.95rem;
  font-weight: 600;
}

.member-body {
  padding: 25px 30px;
}

.member-bio {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 25px;
  font-size: 0.95rem;
}

.member-stats {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
}

.stat-item {
  text-align: center;
  flex: 1;
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.member-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  background: rgba(93, 63, 211, 0.15);
  color: var(--primary);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: var(--transition-fast);
}

.skill-tag:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.member-footer {
  padding: 20px 30px;
  border-top: 1px solid var(--dark-border);
  background: rgba(255, 255, 255, 0.02);
}

.member-social {
  display: flex;
  gap: 15px;
}

.team-cta {
  max-width: 600px;
  margin: 0 auto;
  background: linear-gradient(
    135deg,
    rgba(93, 63, 211, 0.1) 0%,
    rgba(123, 104, 238, 0.05) 100%
  );
  border: 1px solid rgba(93, 63, 211, 0.2);
  border-radius: var(--border-radius);
  padding: 40px;
  text-align: center;
  backdrop-filter: blur(10px);
}

.cta-content {
  max-width: 400px;
  margin: 0 auto;
}

.cta-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.cta-description {
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.6;
}

.contact-section {
  padding: var(--section-padding) 0;
  background: var(--dark);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--border-radius);
  padding: 25px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: var(--transition-normal);
}

.info-card:hover {
  border-color: var(--primary);
  transform: translateX(10px);
}

.info-icon {
  width: 50px;
  height: 50px;
  background: rgba(93, 63, 211, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.info-content h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--text-primary);
}

.info-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.contact-form {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--border-radius);
  padding: 35px;
  backdrop-filter: blur(10px);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid var(--dark-border);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: "Vazir", sans-serif;
  font-size: 1rem;
  transition: var(--transition-fast);
  direction: rtl;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 20px center;
  background-size: 16px;
  padding-left: 50px;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.08);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  font-family: "Vazir", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-light) 100%
  );
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(93, 63, 211, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
}

.btn.full-width {
  width: 100%;
}

.btn-icon {
  transition: transform 0.3s ease;
}

.btn:hover .btn-icon {
  transform: translateX(5px);
}

@media (max-width: 992px) {
  .hero-content-wrapper {
    grid-template-columns: 1fr;
    gap: 60px;
    text-align: center;
  }

  .hero-text-content {
    max-width: 100%;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .timeline-progress {
    left: 30px;
  }

  .timeline-item {
    flex-direction: row !important;
    text-align: right !important;
    padding-right: 60px;
  }

  .timeline-dot {
    position: absolute;
    right: 0;
    transform: translateX(50%);
  }
}

@media (max-width: 768px) {
  .about-hero-main {
    padding: 80px 0 60px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-description {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .member-header {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .member-stats {
    justify-content: center;
  }

  .vision-card {
    flex-direction: column;
    text-align: center;
    padding: 30px;
  }

  .timeline-content {
    padding: 20px;
  }
}

@media (max-width: 576px) {
  :root {
    --container-padding: 20px;
    --section-padding: 60px;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-badge {
    padding: 8px 16px;
  }

  .value-card,
  .team-member,
  .info-card {
    padding: 25px 20px;
  }

  .contact-form {
    padding: 25px 20px;
  }

  .code-visualization {
    padding: 20px;
  }

  .timeline-item {
    margin-bottom: 40px;
    padding-right: 40px;
  }
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--dark-surface);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-light);
}
