/* ===== VARIABLES ===== */
:root {
  --primary: #dc2626;
  --primary-rgb: 220, 38, 38;
  --primary-dark: #b91c1c;
  --primary-light: #ef4444;
  --secondary: #330000;
  --secondary-rgb: 51, 0, 0;
  --background: #000000;
  --background-rgb: 0, 0, 0;
  --text: #ffffff;
  --text-rgb: 255, 255, 255;
  --accent: #ff0000;
  --accent-rgb: 255, 0, 0;
  --neon-glow: 0 0 10px rgba(220, 38, 38, 0.8), 0 0 20px rgba(220, 38, 38, 0.5), 0 0 30px rgba(220, 38, 38, 0.3);
  --card-bg: rgba(24, 24, 27, 0.7);
  --card-border: rgba(63, 63, 70, 0.4);

  --font-heading: "Syncopate", sans-serif;
  --font-body: "Outfit", sans-serif;
  --font-mono: "Space Grotesk", monospace;

  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ===== RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--background);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

p {
  font-family: var(--font-mono);
  margin-bottom: 1rem;
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: var(--font-mono);
  background: none;
  border: none;
  cursor: none;
  font-size: 1rem;
  color: var(--text);
}

input,
textarea {
  font-family: var(--font-mono);
  font-size: 1rem;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-red {
  color: var(--primary);
}

/* ===== CUSTOM CURSOR ===== */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  pointer-events: none;
}

.cursor-dot {
  position: absolute;
  top: -4px;
  left: -4px;
  width: 8px;
  height: 8px;
  background-color: var(--primary);
  border-radius: 50%;
  transform: translate(0, 0);
  transition: transform 0.1s ease;
}

.cursor-outline {
  position: absolute;
  top: -20px;
  left: -20px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--primary);
  border-radius: 50%;
  transform: translate(0, 0);
  transition: transform 0.15s ease, width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
}

/* ===== PRELOADER ===== */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--background);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  max-width: 500px;
  width: 100%;
  background: rgba(24, 24, 27, 0.5);
  border: 1px solid rgba(220, 38, 38, 0.3);
  border-radius: 1rem;
  padding: 3rem;
  box-shadow: 0 0 30px rgba(220, 38, 38, 0.2);
  backdrop-filter: blur(10px);
}

.preloader-logo {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 700;
  color: var(--primary);
  text-shadow: var(--neon-glow);
  animation: pulse 2s infinite;
  margin-bottom: 1rem;
}

.welcome-text-container {
  text-align: center;
  margin-bottom: 1rem;
  width: 100%;
}

.welcome-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 2px;
  color: white;
  margin: 0;
  position: relative;
  overflow: hidden;
  animation: glitch 5s infinite;
}

.welcome-text::before,
.welcome-text::after {
  content: attr(data-en);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.8;
}

.welcome-text::before {
  color: var(--primary);
  z-index: -1;
  animation: glitch-effect 3s infinite;
}

.welcome-text::after {
  color: white;
  z-index: -2;
  animation: glitch-effect 2s infinite;
}

@keyframes glitch {
  0%,
  5%,
  10%,
  100% {
    opacity: 1;
    transform: translateX(0) skewX(0);
  }
  1% {
    opacity: 0.8;
    transform: translateX(2px) skewX(2deg);
  }
  2% {
    opacity: 0.8;
    transform: translateX(-2px) skewX(-2deg);
  }
  3% {
    opacity: 0.8;
    transform: translateX(1px) skewX(1deg);
  }
  4% {
    opacity: 0.8;
    transform: translateX(-1px) skewX(-1deg);
  }
}

@keyframes glitch-effect {
  0% {
    transform: translate(0);
  }
  20% {
    transform: translate(-3px, 3px);
  }
  40% {
    transform: translate(-3px, -3px);
  }
  60% {
    transform: translate(3px, 3px);
  }
  80% {
    transform: translate(3px, -3px);
  }
  100% {
    transform: translate(0);
  }
}

.loading-bar-container {
  width: 100%;
  position: relative;
}

.loading-bar {
  width: 100%;
  height: 4px;
  background-color: rgba(63, 63, 70, 0.4);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.loading-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(to right, var(--primary-dark), var(--primary));
  transition: width 0.5s ease;
  box-shadow: 0 0 10px var(--primary);
}

.loading-percentage {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  margin-top: 0.5rem;
  text-align: right;
  color: var(--primary);
}

.loading-status {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: #666;
  letter-spacing: 1px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.loading-status::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--primary), transparent);
  animation: scan 2s infinite;
}

/* ===== DYNAMIC BACKGROUND ===== */
.dynamic-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 0;
  z-index: 100;
  transition: padding 0.3s ease, background-color 0.3s ease;
}

.header.scrolled {
  padding: 1rem 0;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(63, 63, 70, 0.4);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-left: 20px;
}

/* **تغییر اعمال شده: افزایش ارتفاع لوگوی عمومی (برای هدر) از 40px به 60px** */
.logo-image {
  height: 60px; /* افزایش ارتفاع برای بزرگتر شدن لوگو */
  width: auto;
  display: block;
  filter: drop-shadow(0 0 5px rgba(220, 38, 38, 0.8)) drop-shadow(0 0 10px rgba(220, 38, 38, 0.5))
    drop-shadow(0 0 15px rgba(220, 38, 38, 0.3));
  transition: transform 0.3s ease;
}

.logo:hover .logo-image {
  transform: scale(1.1);
}

/* **تغییر اعمال شده: افزایش ارتفاع لوگوی فوتر از 35px به 50px** */
.footer-logo .logo-image {
  height: 50px; /* افزایش ارتفاع برای بزرگتر شدن لوگو در فوتر */
}

/* **تغییر اعمال شده: افزایش ارتفاع لوگوی پری‌لودر از 60px به 80px** */
.preloader-logo .logo-image {
  height: 80px; /* افزایش ارتفاع برای بزرگتر شدن لوگو در پری‌لودر */
  margin-bottom: 1rem;
}

.nav-list {
  display: flex;
  gap: 2rem;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  letter-spacing: 1px;
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  width: 30px;
  height: 20px;
  position: relative;
  z-index: 101;
}

.menu-toggle span {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background-color: var(--text);
  transition: var(--transition-normal);
}

.menu-toggle span:first-child {
  top: 0;
}

.menu-toggle span:nth-child(2) {
  top: 9px;
}

.menu-toggle span:last-child {
  bottom: 0;
}

.menu-toggle.active span:first-child {
  transform: rotate(45deg);
  top: 9px;
}

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

.menu-toggle.active span:last-child {
  transform: rotate(-45deg);
  bottom: 9px;
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 99;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

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

.mobile-menu-content {
  text-align: center;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.mobile-nav-link {
  font-family: var(--font-heading);
  font-size: 2rem;
  letter-spacing: 2px;
  position: relative;
  display: inline-block;
}

.mobile-nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.mobile-nav-link:hover::after {
  width: 100%;
}

/* ===== SECTION STYLES ===== */
.section {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  width: 100%;
  text-align: center;
  left: auto;
  transform: none;
  display: block;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--primary);
}

/* ===== HERO SECTION ===== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.grid-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(to right, rgba(220, 38, 38, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(220, 38, 38, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.5;
}

.circuit-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 25px 25px, rgba(220, 38, 38, 0.15) 2px, transparent 0),
    linear-gradient(to right, rgba(220, 38, 38, 0.1) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(220, 38, 38, 0.1) 1px, transparent 1px);
  background-size: 50px 50px, 25px 25px, 25px 25px;
  opacity: 0.3;
}

.animated-circle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.1) 0%, transparent 70%);
  animation: pulse 10s infinite alternate ease-in-out;
}

.circle-1 {
  top: 25%;
  left: 25%;
  width: 400px;
  height: 400px;
}

.circle-2 {
  bottom: 25%;
  right: 25%;
  width: 300px;
  height: 300px;
  animation-delay: 2s;
}

.hexagon-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.1;
}

.scanner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.scanner::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, transparent 0%, rgba(220, 38, 38, 0.2) 50%, transparent 100%);
  animation: scan 3s ease-in-out infinite;
}

/* Fix the hero content layout for both languages */
.hero-content {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  padding: 2rem 0;
}

/* Ensure eye stays on left in English and right in Persian */
/* برای حالت فارسی (چشم در راست) */
[dir="rtl"] .hero-content {
  flex-direction: row-reverse;
}

[dir="rtl"] .hero-content {
  flex-direction: row-reverse;
}

@media (max-width: 992px) {
  .hero-content {
    flex-direction: column !important;
  }
}

.hero-text {
  text-align: center;
}

@media (min-width: 992px) {
  .hero-text {
    text-align: left;
    flex: 1;
  }
}

.glitch-text {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

@media (min-width: 768px) {
  .glitch-text {
    font-size: 4rem;
  }
}

.glitch-text span {
  display: block;
  position: relative;
}

/* استایل‌های جدید برای نام و نام خانوادگی */
.name-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.first-name,
.last-name {
  display: block;
  line-height: 1.2;
}

.first-name {
  font-size: 3.5rem;
  margin-bottom: 0.5rem;
}

.last-name {
  font-size: 2.5rem;
}

/* حالت موبایل */
@media (max-width: 768px) {
  .first-name {
    font-size: 2.5rem;
  }
  .last-name {
    font-size: 1.8rem;
  }
}

.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
}

.glitch-text::before {
  color: var(--primary);
  z-index: -1;
  animation: glitch-effect 3s infinite;
}

.glitch-text::after {
  color: white;
  z-index: -2;
  animation: glitch-effect 2s infinite reverse;
}

[dir="rtl"] .glitch-text::before,
[dir="rtl"] .glitch-text::after {
  content: attr(data-text);
}

.hero-description {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  margin-top: 2rem;
}

/* حالت عادی (انگلیسی) */
/* حالت اصلی دکمه‌ها - همیشه افقی */
/* حالت اصلی دکمه‌ها */
.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

/* حالت انگلیسی (چپ چین) */
[dir="ltr"] .hero-buttons {
  justify-content: flex-start;
}

/* حالت فارسی (راست چین) */
[dir="rtl"] .hero-buttons {
  justify-content: flex-end;
}

/* اضافه کردن فونت گوفته */
@font-face {
  font-family: 'Gofteh-Heavy';
  src: url('Gofteh-Heavy.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* استایل برای نام در حالت فارسی */
[dir="rtl"] .glitch-text span.name-text {
  font-family: 'Gofteh-Heavy', var(--font-heading);
  font-weight: normal;
  line-height: 1.2;
}

/* حالت موبایل */
@media (max-width: 992px) {
  .hero-buttons {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  [dir="rtl"] .hero-buttons,
  [dir="ltr"] .hero-buttons {
    justify-content: center;
    align-items: center;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 250px;
    justify-content: center;
  }
}

[dir="rtl"] .hero-text {
  text-align: right;
}

[dir="rtl"] .hero-buttons {
  direction: ltr; /* جهت دکمه‌ها را ثابت نگه می‌دارد */
}

.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transition: var(--transition-normal);
}

.btn:hover::before {
  left: 0;
}

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

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

.btn-secondary {
  border: 1px solid var(--primary);
  color: white;
}

.btn-secondary:hover {
  background-color: rgba(220, 38, 38, 0.1);
}

a.btn {
  text-decoration: none;
  text-align: center;
  justify-content: center;
}

/* اطمینان از جهت‌دهی صحیح */
.hero-eye-container {
  order: 1;
}

[dir="rtl"] .hero-eye-container {
  order: 2;
}

/* برای رفع مشکلات احتمالی تراز */
.hero-text {
  flex: 1;
}

.realistic-eye-large {
  position: relative;
  width: 250px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(220, 38, 38, 0.3);
}

.eye-lid {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: #222;
  z-index: 3;
  transition: transform 0.5s cubic-bezier(0.76, 0, 0.24, 1);
}

.top-lid {
  top: -100%;
  border-bottom-left-radius: 75px;
  border-bottom-right-radius: 75px;
  animation: blinkTop 6s infinite;
}

.bottom-lid {
  bottom: -100%;
  border-top-left-radius: 75px;
  border-top-right-radius: 75px;
  animation: blinkBottom 6s infinite;
}

@keyframes blinkTop {
  0%,
  45%,
  55%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(100%);
  }
}

@keyframes blinkBottom {
  0%,
  45%,
  55%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-100%);
  }
}

.sclera {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.iris {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #ff0000 0%, #990000 70%, #660000 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  transform: translateY(0);
  transition: transform 0.3s ease;
}

.pupil {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: black;
  position: relative;
  transition: width 0.3s ease, height 0.3s ease;
}

.iris-texture {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 20%),
    radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 20%),
    radial-gradient(circle at 40% 40%, transparent 0%, rgba(0, 0, 0, 0.1) 80%);
  z-index: 1;
}

.iris-highlight {
  position: absolute;
  top: 20%;
  left: 20%;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.7);
  z-index: 2;
}

.blood-vessels {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(90deg, transparent 99%, rgba(255, 0, 0, 0.1) 100%),
    linear-gradient(0deg, transparent 99%, rgba(255, 0, 0, 0.1) 100%),
    radial-gradient(circle at 30% 30%, rgba(255, 0, 0, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(255, 0, 0, 0.05) 0%, transparent 50%);
  background-size: 10px 10px, 10px 10px, 100% 100%, 100% 100%;
  opacity: 0.5;
  mix-blend-mode: multiply;
}

.eye-glow {
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.3) 0%, transparent 70%);
  filter: blur(10px);
  animation: glow-pulse 3s infinite alternate;
}

.eye-decoration {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(220, 38, 38, 0.3);
  animation: pulse 3s infinite alternate;
}

.eye-decoration-1 {
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
}

.eye-decoration-2 {
  top: -40px;
  left: -40px;
  right: -40px;
  bottom: -40px;
  animation-delay: 1s;
}

.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.floating-element {
  position: absolute;
  font-family: var(--font-mono);
  color: rgba(220, 38, 38, 0.3);
  animation: float 6s infinite alternate ease-in-out;
}

.floating-element:nth-child(1) {
  top: 20%;
  left: 20%;
  animation-delay: 0s;
}

.floating-element:nth-child(2) {
  top: 30%;
  right: 20%;
  animation-delay: 1s;
}

.floating-element:nth-child(3) {
  bottom: 30%;
  left: 30%;
  animation-delay: 2s;
}

.floating-element:nth-child(4) {
  bottom: 20%;
  right: 30%;
  animation-delay: 3s;
}

.floating-element:nth-child(5) {
  top: 50%;
  left: 50%;
  animation-delay: 4s;
}

/* Scroll indicator - centered */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #666;
  animation: fadeIn 1s ease 2s forwards, float 2s ease-in-out infinite;
  opacity: 0;
  text-align: center;
  width: 100%;
  margin: 0 auto;
}

.scroll-indicator span {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  text-align: center;
  width: 100%;
}

.chevron-down {
  width: 20px;
  height: 20px;
  position: relative;
  margin: 0 auto;
}

.chevron-down::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-style: solid;
  border-width: 0 2px 2px 0;
  display: inline-block;
  transform: rotate(45deg);
  border-color: var(--primary);
}

/* ===== ABOUT SECTION ===== */
.about-section {
  background-color: rgba(24, 24, 27, 0.3);
}

.about-card {
  max-width: 800px;
  margin: 0 auto;
}

.card {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 1rem;
  padding: 2rem;
  backdrop-filter: blur(10px);
  transition: var(--transition-normal);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border-color: rgba(220, 38, 38, 0.3);
}

.card-content {
  text-align: center;
}

.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.stat-card {
  background-color: rgba(24, 24, 27, 0.5);
  border: 1px solid rgba(63, 63, 70, 0.3);
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-align: center;
  transition: var(--transition-normal);
}

.stat-card:hover {
  transform: translateY(-5px);
  border-color: rgba(220, 38, 38, 0.3);
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
}

.stat-label {
  font-size: 0.875rem;
  color: #666;
  font-family: var(--font-mono);
}

/* ===== SKILLS SECTION ===== */
.skills-section {
  background-color: rgba(24, 24, 27, 0.5);
}

.skills-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  background-color: rgba(24, 24, 27, 0.7);
  border: 1px solid rgba(63, 63, 70, 0.4);
  border-radius: 0.5rem;
  padding: 0.5rem;
  max-width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.skill-tab {
  padding: 0.5rem 1.5rem;
  border-radius: 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  letter-spacing: 1px;
  transition: var(--transition-normal);
}

.skill-tab:hover {
  color: white;
}

.skill-tab.active {
  background-color: var(--primary);
  color: white;
}

.skills-tab-content {
  display: none;
}

.skills-tab-content.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

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

.skill-card {
  background-color: rgba(24, 24, 27, 0.7);
  border: 1px solid rgba(63, 63, 70, 0.4);
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: var(--transition-normal);
}

.skill-card:hover {
  transform: translateY(-5px);
  border-color: rgba(220, 38, 38, 0.3);
}

.skill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.skill-name {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 500;
}

.skill-percentage {
  color: var(--primary);
  font-weight: 600;
}

.skill-bar {
  height: 6px;
  background-color: rgba(63, 63, 70, 0.4);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(to right, var(--primary-dark), var(--primary));
  width: 0;
  transition: width 1.5s ease-out;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  background-color: rgba(63, 63, 70, 0.4);
  border: 1px solid rgba(63, 63, 70, 0.6);
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  transition: var(--transition-normal);
}

.skill-tag:hover {
  background-color: rgba(220, 38, 38, 0.2);
  border-color: rgba(220, 38, 38, 0.3);
  transform: translateY(-2px);
}

/* ===== PROJECTS SECTION ===== */
.projects-section {
  background-color: rgba(24, 24, 27, 0.3);
}

.project-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  background-color: rgba(24, 24, 27, 0.7);
  border: 1px solid rgba(63, 63, 70, 0.4);
  border-radius: 0.5rem;
  padding: 0.5rem;
  max-width: fit-content;
  margin-left: auto;
  margin-right: auto;
  flex-wrap: wrap;
}

.project-filter {
  padding: 0.5rem 1.5rem;
  border-radius: 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  letter-spacing: 1px;
  transition: var(--transition-normal);
}

.project-filter:hover {
  color: white;
}

.project-filter.active {
  background-color: var(--primary);
  color: white;
}

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

.project-card {
  background-color: rgba(24, 24, 27, 0.7);
  border: 1px solid rgba(63, 63, 70, 0.4);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: var(--transition-normal);
}

.project-card:hover {
  transform: translateY(-10px);
  border-color: rgba(220, 38, 38, 0.3);
}

.project-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.1);
}

.project-content {
  padding: 1.5rem;
}

.project-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.project-category {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--primary);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--primary);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-family: var(--font-mono);
  transition: var(--transition-normal);
}

.project-link:hover {
  background-color: var(--primary);
  color: white;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
  background-color: rgba(24, 24, 27, 0.5);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .contact-container {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-info {
  display: flex;
  flex-direction: column;
}

.contact-info h3 {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.contact-details {
  flex: 1;
}

.contact-item {
  margin-bottom: 1.5rem;
}

.contact-label {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.contact-value {
  font-size: 1.125rem;
}

.contact-value a {
  color: var(--primary);
}

.contact-value a:hover {
  text-decoration: underline;
}

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

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(63, 63, 70, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-normal);
}

.social-link:hover {
  background-color: var(--primary);
  transform: translateY(-5px);
}

.contact-eye-container {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.realistic-eye-small {
  position: relative;
  width: 100px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(220, 38, 38, 0.3);
}

.contact-form {
  display: flex;
  flex-direction: column;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: rgba(24, 24, 27, 0.7);
  border: 1px solid rgba(63, 63, 70, 0.4);
  border-radius: 0.5rem;
  color: white;
  transition: var(--transition-normal);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

/* ===== FOOTER ===== */
.footer {
  background-color: rgba(24, 24, 27, 0.7);
  padding: 2rem 0;
  border-top: 1px solid rgba(63, 63, 70, 0.4);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
}

.footer-copyright {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: #666;
}

.back-to-top {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: #666;
  transition: var(--transition-normal);
}

.back-to-top:hover {
  color: var(--primary);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

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

@keyframes glow-pulse {
  0%,
  100% {
    opacity: 0.5;
    filter: blur(10px);
  }
  50% {
    opacity: 0.8;
    filter: blur(15px);
  }
}

@keyframes scan {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

@keyframes reveal {
  0% {
    transform: translateY(20px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ===== UTILITY CLASSES ===== */
.neon-glow {
  text-shadow: 0 0 5px rgba(220, 38, 38, 0.8), 0 0 10px rgba(220, 38, 38, 0.5), 0 0 15px rgba(220, 38, 38, 0.3);
}

.neon-box {
  box-shadow: 0 0 5px rgba(220, 38, 38, 0.8), 0 0 10px rgba(220, 38, 38, 0.5), 0 0 15px rgba(220, 38, 38, 0.3);
}

.reveal-text {
  opacity: 0;
  transform: translateY(20px);
}

.reveal-text.revealed {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 992px) {
  .nav-list {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero-content {
    flex-direction: column !important;
    align-items: center;
  }

  .hero-text {
    text-align: center !important;
  }

  .hero-buttons {
    justify-content: center !important;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 4rem 0;
  }

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

  .glitch-text {
    font-size: 2.5rem;
  }

  .hero-description {
    font-size: 1rem;
  }

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

@media (max-width: 576px) {
  .project-filters {
    flex-direction: column;
    align-items: stretch;
  }

  .skill-card {
    padding: 1rem;
  }
}

/* Language Switcher Styles */
.language-switcher {
  display: flex;
  align-items: center;
  margin-left: 20px;
}

.language-toggle {
  width: 100px;
  height: 40px;
  border-radius: 20px;
  background: rgba(24, 24, 27, 0.7);
  border: 2px solid rgba(255, 0, 85, 0.5);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 0 15px rgba(255, 0, 85, 0.3);
  padding: 0;
}

/* Mobile language switcher */
.mobile-language-switcher {
  margin-top: 30px;
  display: flex;
  justify-content: center;
}

/* Header styles update */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 0;
  z-index: 100;
  transition: padding 0.3s ease, background-color 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .language-switcher {
    display: none;
  }

  .mobile-language-switcher {
    display: flex;
  }
}

@media (min-width: 993px) {
  .mobile-language-switcher {
    display: none;
  }
}

/* Animation for language switch */
.language-switch-animation {
  animation: fadeInOut 0.5s ease-in-out;
}

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

/* Instagram icon styling - make it consistent with other social icons */
.social-link.instagram:hover {
  background-color: var(--primary);
}

/* RTL Support for Persian Language */
[dir="rtl"] .hero-text {
  text-align: right;
}

[dir="rtl"] .hero-description {
  text-align: right;
}

[dir="rtl"] .hero-buttons {
  justify-content: flex-end;
}

/* Fix for glitch text in RTL mode */
[dir="rtl"] .welcome-text::before,
[dir="rtl"] .welcome-text::after {
  content: attr(data-fa);
}

[dir="rtl"] .glitch-text::before,
[dir="rtl"] .glitch-text::after {
  content: attr(data-text);
}

/* Fix for mobile view */
@media (max-width: 992px) {
  [dir="rtl"] .hero-text,
  [dir="rtl"] .hero-description {
    text-align: center;
  }

  [dir="rtl"] .hero-buttons {
    justify-content: center;
  }
}
