/* Main CSS for Davood Yahay's Website */
:root {
  --dark-bg: #0a0a0a;
  --darker-bg: #050505;
  --main-text: #e0e0e0;
  --accent-green: #00ff41;
  --accent-blue: #3aaddf;
  --accent-orange: #e06c11;
  --glow-shadow: 0 0 10px rgba(0, 255, 65, 0.7);
  --terminal-font: 'Fira Code', 'Courier New', monospace;
  --content-font: 'Rajdhani', 'Segoe UI', sans-serif;
  --Shabnam: 'Shabnam', sans-serif;
  --Vazir: 'Vazir', sans-serif;
  --Consolas: 'Consolas', 'Courier New', monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

body {
  background-color: var(--dark-bg);
  color: var(--main-text);
  font-family: var(--content-font);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(rgba(0, 255, 65, 0.1) 1px, transparent 1px),
    radial-gradient(rgba(0, 119, 255, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  background-position: 0 0, 25px 25px;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
header {
  background-color: var(--darker-bg);
  border-bottom: 1px solid var(--accent-green);
  padding: 15px 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 15px rgba(0, 255, 65, 0.2);
}

.logo {
  display: flex;
  align-items: center;
  font-family: Consolas, monospace;
}

.logo h1 {
  font-family: var(--terminal-font);
  font-size: 1.8rem;
  color: var(--accent-green);
  text-shadow: var(--glow-shadow);
}

.logo span {
  color: var(--accent-orange);
  animation: blink 1.5s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 30px;
}

.nav-links a {
  color: var(--main-text);
  text-decoration: none;
  font-family: Vazir, sans-serif;
  font-weight: 500;
  font-size: 1.1rem;
  position: relative;
  padding: 5px 0;
}

.nav-links a:hover {
  color: var(--accent-green);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-orange);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  cursor: pointer;
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
          radial-gradient(circle at 20% 30%, rgba(0, 40, 80, 0.25) 0%, transparent 40%),
          radial-gradient(circle at 80% 70%, rgba(0, 80, 40, 0.25) 0%, transparent 40%),
          linear-gradient(to bottom, #0a0a12, #050508);
  z-index: -1;
  animation: gradient-pulse 12s ease infinite alternate;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
          linear-gradient(rgba(0, 255, 65, 0.03) 1px, transparent 1px),
          linear-gradient(90deg, rgba(0, 255, 65, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: grid-move 40s linear infinite;
  z-index: -1;
  opacity: 0.7;
}

.hero .particles {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.hero .particle {
  position: absolute;
  background: rgba(0, 255, 65, 0.6);
  border-radius: 50%;
  animation: float 15s infinite linear;
}

@keyframes gradient-pulse {
  0% { opacity: 0.8; }
  50% { opacity: 1; }
  100% { opacity: 0.8; }
}

@keyframes grid-move {
  from { background-position: 0 0; }
  to { background-position: 600px 600px; }
}

@keyframes float {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) translateX(100px);
    opacity: 0;
  }
}

/* افکت نور متمرکز */
.hero .spotlight {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 255, 65, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(30px);
  animation: spotlight-move 20s infinite alternate ease-in-out;
  z-index: -1;
}

@keyframes spotlight-move {
  0% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(50%, 50%) scale(1.5); }
  100% { transform: translate(-50%, 50%) scale(1); }
}

/* افکت تایپینگ برای متن */
.hero h1::after {
  content: '|';
  animation: blink-caret 0.75s step-end infinite;
  color: #00ff41;
}

@keyframes blink-caret {
  from, to { opacity: 0; }
  50% { opacity: 1; }
}



.hero-content {
  max-width: 700px;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--main-text);
}

.hero h1 span {
  color: var(--accent-green);
  text-shadow: var(--glow-shadow);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: var(--main-text);
  opacity: 0.9;
}

/* استایل‌های پایه CTA */
.cta {
  background: linear-gradient(135deg, var(--darker-bg) 0%, #1a2a3a 100%);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0,255,100,0.1) 0%, transparent 70%);
  animation: rotate-bg 20s linear infinite;
  z-index: 0;
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.cta-content h1 {
  color: #eff264;
  font-family: Vazir, sans-serif;
  font-size: 175%;
}
.cta-content h2 {
  color: #eff264;
  font-family: Vazir, sans-serif;
  font-size: 175%;
}

.cta-content p {
  font-family: Shabnam, sans-serif;
  font-size: 140%;
}
.cta-content h4 {
  font-family: Shabnam, sans-serif;
  font-size: 140%;
}
.cta-title {
  font-size: 2.5rem;
  color: white;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.cta-text {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

/* استایل پیشرفته دکمه CTA */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(45deg, var(--accent-green), var(--accent-blue));
  color: var(--darker-bg);
  padding: 15px 35px;
  margin-top: 3px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.3rem;
  font-family: Shabnam, sans-serif;
  border: none;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 168, 45, 0.4),
  0 0 10px rgba(0, 255, 100, 0.7),
  0 0 20px rgba(0, 100, 255, 0.3);
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: all 0.4s ease;
  gap: 10px;
}
.cta-button-course {
  margin-top: 10px;
}
.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, var(--accent-blue), var(--accent-green));
  transition: left 0.6s ease;
  z-index: -1;
}

.cta-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 168, 45, 0.6),
  0 0 15px rgba(0, 255, 100, 0.9),
  0 0 30px rgba(0, 100, 255, 0.5);
}

.cta-button:hover::before {
  left: 0;
}

.cta-icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.cta-button:hover .cta-icon {
  transform: translateX(5px);
}

/* انیمیشن‌های سفارشی */
@keyframes rotate-bg {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pop {
  0% { transform: scale(0.8); opacity: 0; }
  80% { transform: scale(1.05); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes fade {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-15px); }
  60% { transform: translateY(-7px); }
}

.animate-pop {
  animation: pop 0.8s ease-out forwards;
}

.animate-fade {
  animation: fade 1s ease-out 0.3s forwards;
  opacity: 0;
}

.animate-bounce {
  animation: bounce 1s ease 1s;
}

/* افکت‌های اضافی */
.cta-button::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(45deg);
  transition: all 0.8s ease;
  z-index: -2;
}

.cta-button:hover::after {
  left: 100%;
  top: 100%;
}

/*.matrix-animation {*/
/*  position: absolute;*/
/*  right: 0;*/
/*  top: 0;*/
/*  width: 50%;*/
/*  height: 100%;*/
/*  opacity: 0.2;*/
/*  z-index: -1;*/
/*}*/

.matrix-animation {
  position: absolute;
  right: 0;
  top: 0;
  width: 100%;
  height: 100%;
  opacity: 0.15;
  z-index: -1;
  mix-blend-mode: screen;
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
  filter: brightness(2); /* حذف blur برای وضوح بیشتر */
}

/* انیمیشن بزرگ شدن و چرخش لوگو */
@keyframes logoAnimation {
  0% {
    transform: scale(0.9) rotate(0deg);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.1) rotate(15deg);
    opacity: 1;
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 0.8;
  }
}

/* اعمال انیمیشن */
#matrix-canvas {
  animation: logoAnimation 5s infinite ease-in-out;
}


/* Section Styles */
section {
  padding: 100px 0;
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  z-index: 2;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  font-family: Shabnam, sans-serif;
  animation: text-glow 3s ease-in-out infinite alternate;
  position: relative;
  display: inline-block;
  color: #00ff41;
  text-shadow: 0 0 10px #00ff41,
  0 0 20px #00ff41,
  0 0 30px rgba(0, 255, 65, 0.5);
}



.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(to right, var(--accent-orange), var(--accent-blue));

  animation: blink-caret 1s step-end infinite;
  color: #e06c11;
  margin-right: 5px;
}

.section-title p {
  color: var(--main-text);
  font-size: 1.1rem;
  font-family: Shabnam, sans-serif;
  max-width: 700px;
  margin: 0 auto;
  opacity: 0.8;
}

/*Modal for show Certificate image*/
/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.show {
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
}

.modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  animation: modal-fade-in 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.certificate-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border: 2px solid #00ff41;
  box-shadow: 0 0 20px rgba(0, 255, 65, 0.5),
  0 0 40px rgba(0, 255, 65, 0.3),
  0 0 60px rgba(0, 255, 65, 0.1);
  border-radius: 5px;
  transition: transform 0.4s ease;
  transform-origin: center;
  cursor: zoom-in;
}

.certificate-image:hover {
  transform: scale(110%);
}
.certificate-image.zoomed {
  transform: scale(2);
  cursor: zoom-out;
}

.close-modal {
  position: absolute;
  top: -50px;
  right: -50px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  text-shadow: 0 0 10px rgba(255, 0, 0, 0.7),
  0 0 20px rgba(255, 0, 0, 0.5);
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(2px);
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.3),
  inset 0 0 10px rgba(255, 255, 255, 0.2);
  z-index: 10;
  animation: pulse 2s infinite;
}

.close-modal:hover {
  color: #ff0000;
  transform: rotate(180deg) scale(1.2);
  background: rgba(255, 0, 0, 0.1);
  text-shadow: 0 0 15px #ff0000,
  0 0 30px #ff0000;
  box-shadow: 0 0 25px rgba(255, 0, 0, 0.5),
  inset 0 0 15px rgba(255, 255, 255, 0.3);
}

/* انیمیشن برای بستن مودال */
.modal.closing .modal-content {
  animation: modal-fade-out 0.4s cubic-bezier(0.6, -0.28, 0.735, 0.045) forwards;
}

.modal.closing .close-modal {
  animation: button-bounce 0.6s ease forwards;
}

@keyframes modal-fade-out {
  from {
    opacity: 1;
    transform: translateY(0) rotate3d(10, 10, 0,90deg) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(100px) translateX(90px) rotate3d(20, -5, 10,90deg) scale(0.8);
    filter: blur(5px);
  }
}

@keyframes button-bounce {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.5) rotate(45deg);
  }
  100% {
    transform: scale(0) rotate(90deg);
    opacity: 0;
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(255, 0, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 0, 0, 0);
  }
}
/* Link Styles */
#show-certificate {
  color: #eff264;
  text-decoration: none;
  font-family: Shabnam, sans-serif;
  font-size: 1.3rem;
  margin: 3px 0;
  display: inline-block;
  position: relative;
  padding: 5px 10px;
  transition: all 0.3s ease;
}

#show-certificate:hover {
  text-shadow: 0 0 20px #0c9cd0,
  0 0 30px #2d87ea;
}

#show-certificate::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: 0;
  right: 0; /* تغییر از left به right */
  background: linear-gradient(to left, #41ee16, transparent); /* تغییر جهت گرادیان */
  transform: scaleX(0);
  transform-origin: bottom left; /* نقطه شروع transform از چپ */
  transition: transform 0.3s ease;
}

#show-certificate:hover::after {
  transform: scaleX(1);
  transform-origin: bottom right; /* نقطه پایان transform به راست */
}

/* Animations */
@keyframes modal-fade-in {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 255, 65, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(0, 255, 65, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 255, 65, 0);
  }
}

/* Services Section */

/* Start Services Section BG Animation */
.services {
  background:
          linear-gradient(135deg, #0a0a12 0%, #050508 100%);
  position: relative;
  overflow: hidden;
}

.services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
          radial-gradient(circle at 20% 30%, rgba(0, 255, 65, 0.05) 0%, transparent 15%),
          radial-gradient(circle at 80% 70%, rgba(0, 119, 255, 0.05) 0%, transparent 15%);
  animation: pulse-opacity 8s infinite alternate;
}

.services::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
          repeating-linear-gradient(
                  0deg,
                  transparent,
                  transparent 1px,
                  rgba(0, 255, 65, 0.02) 2px,
                  rgba(0, 255, 65, 0.02) 3px
          ),
          repeating-linear-gradient(
                  90deg,
                  transparent,
                  transparent 1px,
                  rgba(0, 119, 255, 0.02) 2px,
                  rgba(0, 119, 255, 0.02) 3px
          );
  opacity: 0.5;
  pointer-events: none;
  animation: scan 20s linear infinite;
}

@keyframes pulse-opacity {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

@keyframes scan {
  from { background-position: 0 0; }
  to { background-position: 0 100px; }
}

/* END Services Section BG Animation */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background: linear-gradient(145deg, rgba(15, 15, 15, 0.6), rgba(10, 10, 10, 0.8));
  border: 1px solid rgba(0, 255, 65, 0.2);
  border-radius: 10px;
  padding: 35px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
  margin-bottom: 15px;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(0, 255, 65, 0.1), rgba(0, 119, 255, 0.1));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 255, 65, 0.2);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card i {
  font-size: 3rem;
  color: var(--accent-green);
  margin-bottom: 20px;
  display: inline-block;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--main-text);
}

.service-card p {
  color: var(--main-text);
  opacity: 0.8;
}

/* استایل‌های پایه */
.portfolio {
  position: relative;
  padding: 80px 0;
  background: radial-gradient(circle at center, #0a0e17 0%, #020408 100%);
  overflow: hidden;
  border-top: 1px solid rgba(0, 255, 65, 0.1);
  border-bottom: 1px solid rgba(0, 119, 255, 0.1);
}

.portfolio::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
          radial-gradient(rgba(0, 255, 65, 0.05) 1px, transparent 1px),
          radial-gradient(rgba(0, 119, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: 0 0, 20px 20px;
  animation: grid-move 100s linear infinite;
}


/* گرید پورتفولیو */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  position: relative;
  z-index: 2;
}

/* آیتم‌های پورتفولیو */
.portfolio-item {
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform: translateY(50px);
  opacity: 0;
  animation: item-fade-in 0.8s forwards;

  background: rgba(10, 15, 25, 0.9);
  border: 1px solid rgba(0, 255, 65, 0.15);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}


.portfolio-item::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to bottom,
  transparent,
  rgba(0, 255, 65, 0.8),
  transparent);
  animation: scanline 6s linear infinite;
  animation-delay: calc(var(--delay) * 0.5s);
  z-index: 3;
}


.portfolio-item:nth-child(1) { animation-delay: 0.1s; }
.portfolio-item:nth-child(2) { animation-delay: 0.2s; }
.portfolio-item:nth-child(3) { animation-delay: 0.3s; }
.portfolio-item:nth-child(4) { animation-delay: 0.4s; }
.portfolio-item:nth-child(5) { animation-delay: 0.5s; }
.portfolio-item:nth-child(6) { animation-delay: 0.6s; }

.portfolio-item:hover {
  transform: translateY(-10px) !important;
  box-shadow: 0 15px 30px rgba(0, 255, 65, 0.3);
  border-color: rgba(0, 255, 65, 0.5);
}

/* بخش تصویر */
.portfolio-img {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;

  background: linear-gradient(135deg,
  rgba(0, 20, 40, 0.7),
  rgba(0, 40, 20, 0.7));
  border-bottom: 1px solid rgba(0, 255, 65, 0.2);
}

.portfolio-img i {
  font-size: 5rem;
  z-index: 2;
  transition: all 0.5s ease;

  color: #00ff41;
  text-shadow: 0 0 15px #00ff41;
}

.portfolio-img::before {
  content: '';
  position: absolute;
  width: 150%;
  height: 150%;
  background: linear-gradient(
          to right,
          transparent,
          rgba(0, 255, 65, 0.1),
          transparent
  );
  transform: rotate(45deg);
  animation: shine 3s infinite;
}

.portfolio-item:hover .portfolio-img i {
  transform: scale(1.1);
  text-shadow: 0 0 20px rgba(0, 255, 65, 0.7);
}

/* محتوای کارت */
.portfolio-content {
  padding: 25px;
  position: relative;
  z-index: 2;
}

.portfolio-content h3 {
  font-size: 1.5rem;
  color: var(--accent-green);
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

.portfolio-item:hover .portfolio-content h3 {
  color: white;
}

.portfolio-content p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.spacer {
  margin-left: 30px;
  margin-right: 30px;
}

/* لینک‌ها */
.portfolio-links {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-top: 20px;
}

.portfolio-links a, .cta-button-card {
  flex: 1;
  text-align: center;
  padding: 6px;
  border-radius: 6px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  font-family: Shabnam, sans-serif;
  font-weight: bold;
  border: 1px solid;
}

.portfolio-links a:first-child {
  background: rgba(0, 60, 120, 0.2);
  border-color: rgba(0, 119, 255, 0.3);
  color: #64b5f6;
}

.portfolio-links a:last-child {
  background: rgba(0, 80, 40, 0.2);
  border-color: rgba(0, 255, 65, 0.3);
  color: #00ff41;
}

.portfolio-links a:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.portfolio-links a:first-child:hover {
  background: rgba(0, 119, 255, 0.3);
  color: white;
}

.portfolio-links a:last-child:hover {
  background: rgba(0, 255, 65, 0.3);
  color: white;
}

.cta-button-card {
  cursor: pointer;
  font-weight: 600;

  background: linear-gradient(90deg,
  rgba(0, 40, 80, 0.7),
  rgba(0, 80, 40, 0.7));
  border: 1px solid rgba(0, 255, 65, 0.5);
  color: #00ff41;
}

.cta-button-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 255, 65, 0.3);
}

/* انیمیشن‌های سفارشی */
@keyframes item-fade-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes text-glow {
  0% { text-shadow: 0 0 10px rgba(0, 255, 65, 0.5); }
  50% { text-shadow: 0 0 20px rgba(0, 255, 65, 0.8); }
  100% { text-shadow: 0 0 10px rgba(0, 255, 65, 0.5); }
}

@keyframes shine {
  0% { left: -100%; }
  20%, 100% { left: 100%; }
}

@keyframes grid-move {
  0% { background-position: 0 0, 20px 20px; }
  100% { background-position: 1000px 1000px, 1020px 1020px; }
}
/*End of Portfolio bg Animation*/


/* Contact Section */

/*Start Contact Animation*/
.contact {
  background:
          radial-gradient(circle at 20% 30%, rgba(0, 40, 80, 0.15) 0%, transparent 40%),
          radial-gradient(circle at 80% 70%, rgba(0, 80, 40, 0.15) 0%, transparent 40%),
          linear-gradient(to bottom, #0a0a12, #050508);
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
          linear-gradient(rgba(0, 255, 65, 0.03) 1px, transparent 1px),
          linear-gradient(90deg, rgba(0, 255, 65, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: grid-move 60s linear infinite;
}

.contact::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
          radial-gradient(circle at center, transparent 60%, rgba(0, 255, 65, 0.03)),
          repeating-linear-gradient(
                  45deg,
                  transparent,
                  transparent 1px,
                  rgba(0, 119, 255, 0.02) 2px,
                  rgba(0, 119, 255, 0.02) 3px
          );
  pointer-events: none;
}

@keyframes grid-move {
  from { background-position: 0 0; }
  to { background-position: 1000px 1000px; }
}

/* استایل پایه برای بخش‌های دارای افکت */
.effect-section {
  position: relative;
  overflow: hidden;
  background:
          radial-gradient(circle at 20% 30%, rgba(0, 40, 80, 0.18) 0%, transparent 45%),
          radial-gradient(circle at 80% 70%, rgba(0, 80, 40, 0.18) 0%, transparent 45%),
          linear-gradient(to bottom, #0a0a12, #050508);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 255, 100, 0.1);
}

/* افکت شبکه‌ای متحرک */
.effect-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
          linear-gradient(rgba(0, 255, 100, 0.05) 1px, transparent 1px),
          linear-gradient(90deg, rgba(0, 255, 100, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: grid-move2 80s linear infinite;
  z-index: 1;
}

/* افکت خطوط مورب و گرادیان مرکزی */
.effect-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
          radial-gradient(circle at center, transparent 65%, rgba(0, 255, 100, 0.04)),
          repeating-linear-gradient(
                  45deg,
                  transparent,
                  transparent 1px,
                  rgba(0, 180, 255, 0.03) 2px,
                  rgba(0, 180, 255, 0.03) 3px
          );
  pointer-events: none;
  z-index: 1;
}

/* انیمیشن حرکت شبکه */
@keyframes grid-move2 {
  from { background-position: 0 0; }
  to { background-position: 1000px 1000px; }
}
/* افکت ذرات */
.particles-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
          radial-gradient(white 1px, transparent 1px),
          radial-gradient(white 1px, transparent 1px);
  background-size: 30px 30px;
  background-position: 0 0, 15px 15px;
  opacity: 0.03;
  z-index: 1;
}

/* افکت نور متمرکز */
.spotlight-overlay {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
          radial-gradient(circle at center, rgba(0, 255, 100, 0.08) 0%, transparent 60%);
  animation: rotate-spotlight2 30s linear infinite;
  z-index: 0;
}

@keyframes rotate-spotlight2 {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/*End of Contact US BG Animation*/

.contact-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 50px;
}

.contact-info {
  display: flex;
  flex-direction: column;
}

.contact-info h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--accent-green);
}

.contact-info p {
  margin-bottom: 30px;
  color: var(--main-text);
  opacity: 0.8;
}

.contact-links {
  display: flex;
  flex-direction: column;
}

.contact-link {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  color: var(--main-text);
  text-decoration: none;
  transition: transform 0.3s ease;
}

.contact-link:hover {
  transform: translateX(10px);
  color: var(--accent-green);
}

.contact-link i {
  width: 40px;
  height: 40px;
  background-color: rgba(0, 255, 65, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  color: var(--accent-green);
  font-size: 1.2rem;
}

.contact-form {
  background: linear-gradient(145deg, rgba(15, 15, 15, 0.6), rgba(10, 10, 10, 0.8));
  border: 1px solid rgba(0, 255, 65, 0.2);
  border-radius: 10px;
  padding: 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  color: var(--main-text);
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  background-color: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(0, 255, 65, 0.2);
  border-radius: 5px;
  color: var(--main-text);
  font-family: var(--content-font);
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-green);
  box-shadow: 0 0 5px rgba(0, 255, 65, 0.5);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

input.form-control{
  color: #0a0a0a;
}

.submit-btn {
  background: linear-gradient(45deg, var(--accent-green), var(--accent-blue));
  color: var(--darker-bg);
  padding: 12px 30px;
  border-radius: 5px;
  border: none;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  width: 100%;
  box-shadow: var(--glow-shadow);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.submit-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, var(--accent-blue), var(--accent-green));
  transition: left 0.5s ease;
  z-index: -1;
}

.submit-btn:hover::before {
  left: 0;
}

/* استایل‌های پایه فوتر */


/* انیمیشن‌های سفارشی */
@keyframes border-glow {
  0% { opacity: 0.5; }
  50% { opacity: 1; }
  100% { opacity: 0.5; }
}

@keyframes border-pulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}
/* استایل پایه فوتر */
.dark-footer {
  background-color: var(--dark-bg);
  padding: 60px 0 30px;
  position: relative;
  border-top: 1px solid rgba(0, 255, 65, 0.2);
  background-image:
          radial-gradient(rgba(0, 255, 65, 0.05) 1px, transparent 1px),
          radial-gradient(rgba(0, 119, 255, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  background-position: 0 0, 25px 25px;
}

.dark-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg,
  rgba(0, 255, 65, 0.8),
  rgba(0, 119, 255, 0.8),
  transparent);
  animation: border-pulse 4s infinite;
}


@keyframes blink {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes underline-grow {
  from { width: 0; }
  to { width: 80px; }
}

/* انیمیشن ظاهر شدن فوتر */
.footer-animate {
  opacity: 0;
  transform: translateY(50px);
  animation: footer-fade-in 1s ease-out forwards;
}

@keyframes footer-fade-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Terminal Effect */
.terminal {
  background: rgba(0, 0, 0, 0.9);
  border: 1px solid var(--accent-green);
  box-shadow: 0 0 15px rgba(0, 255, 65, 0.3);
  border-radius: 10px;
  padding: 20px;
  font-family: var(--terminal-font);
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
  overflow-y: auto;
  backdrop-filter: blur(2px);
}

.terminal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 30px;
  background-color: rgba(0, 255, 65, 0.1);
  border-bottom: 1px solid var(--accent-green);
}

.terminal-header {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 255, 65, 0.05);
  height: 30px;
  border-bottom: 1px solid var(--accent-green);
  position: relative;
  top: -19px;
  font-size: 36px;
}

.terminal-buttons {
  position: absolute;
  left: 15px;
  display: flex;
}

.terminal-button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.3);
  transition: transform 0.3s ease;
}

.terminal-button.red {
  background-color: #ff5f56;
}

.terminal-button.yellow {
  background-color: #ffbd2e;
}

.terminal-button.green {
  background-color: #27c93f;
}

.terminal-title {
  font-size: 0.85rem;
  color: var(--accent-green);
  font-weight: bold;
  opacity: 0.9;
}


.terminal-title-aboutme {
  font-size: 22px;
  color: #eff264;
  font-weight: bolder;
  opacity: 0.9;
}

.terminal-content {
  font-size: 20px; /* تنظیم فونت متناسب با فضای جدید */
  font-weight: bold;
  line-height: 1.8;
  padding: 10px;
  margin-top: 10px;
}

.terminal-line {
  display: flex;
  margin-bottom: 10px;
  padding: 0 5px;
}

.terminal-prompt {
  color: var(--accent-orange);
  margin-right: 10px;
}
.terminal-cmd {
  color: var(--accent-green);
  font-weight: bolder;
  font-size: 22px;
  flex: 1;
}

.terminal-text{
  color: var(--accent-green);
  flex: 1;
}

.terminal-text-white {
  color: #f1f1f1; /* رنگ سفید برای توضیحات */
  flex: 1;
}
.terminal-list-item {
  color: #64b5f6; /* رنگ آبی ملایم برای سر لیست‌ها */
  font-weight: bold;
}
/* رنگ‌بندی برای توضیحات (توضیحات به رنگ سفید یا زرد کم رنگ) */
.terminal-description {
  color: #f1f1f1; /* رنگ سفید برای توضیحات */
  font-weight: normal;
}
.about {
  background:
          linear-gradient(to bottom, #080810, #040408);
  position: relative;
  overflow: hidden;
}

.about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
          radial-gradient(circle at 70% 20%, rgba(0, 255, 65, 0.03) 0%, transparent 25%),
          radial-gradient(circle at 30% 80%, rgba(0, 119, 255, 0.03) 0%, transparent 25%);
  animation: float 12s ease-in-out infinite alternate;
}

.about::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
          repeating-linear-gradient(
                  45deg,
                  rgba(0, 255, 65, 0.02) 0px,
                  rgba(0, 255, 65, 0.02) 1px,
                  transparent 1px,
                  transparent 10px
          ),
          repeating-linear-gradient(
                  -45deg,
                  rgba(0, 119, 255, 0.02) 0px,
                  rgba(0, 119, 255, 0.02) 1px,
                  transparent 1px,
                  transparent 10px
          );
  animation: diagonal-move 40s linear infinite;
  pointer-events: none;
}

@keyframes float {
  0% { transform: translate(0, 0); }
  50% { transform: translate(-5%, 3%); }
  100% { transform: translate(5%, -3%); }
}

@keyframes diagonal-move {
  from { background-position: 0 0; }
  to { background-position: 500px 500px; }
}

/*End of About me Background*/

.about-text {
  margin-bottom: 20px; /* کاهش فاصله زیر ترمینال برای بیشتر دیده شدن */
}

.typing {
  border-right: 2px solid var(--accent-green);
  animation: typing 3s steps(40, end), blink-caret 0.75s step-end infinite;
  white-space: nowrap;
  overflow: hidden;
}
/* debug */
.typing-effect {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid var(--accent-green);
  animation: blinkCaret 0.75s step-end infinite;
}

@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: var(--accent-green) }
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 2.8rem;
  }
  
  .section-title h2 {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--darker-bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: left 0.5s ease;
  }
  
  .nav-links.active {
    left: 0;
  }
  
  .nav-links li {
    margin: 20px 0;
  }
  
  .hamburger {
    display: block;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
  
  .matrix-animation {
    display: none;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .section-title h2 {
    font-size: 1.8rem;
  }
  
  .service-card,
  .portfolio-item,
  .contact-form {
    padding: 20px;
  }
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 1s ease forwards;
  opacity: 0;
}

.slide-up {
  animation: slideUp 1s ease forwards;
  opacity: 0;
  transform: translateY(50px);
}

.slide-right {
  animation: slideRight 1s ease forwards;
  opacity: 0;
  transform: translateX(-50px);
}

.slide-left {
  animation: slideLeft 1s ease forwards;
  opacity: 0;
  transform: translateX(50px);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { 
    opacity: 0;
    transform: translateY(50px);
  }
  to { 
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideRight {
  from { 
    opacity: 0;
    transform: translateX(-50px);
  }
  to { 
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideLeft {
  from { 
    opacity: 0;
    transform: translateX(50px);
  }
  to { 
    opacity: 1;
    transform: translateX(0);
  }
}

/* Glitch Effect - Don't Use(Advance Glitch use instead) */
.glitch {
  position: relative;
  color: var(--main-text);
  animation: glitch 1s linear infinite;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  width: 100%;
  height: 60%;
  background: var(--dark-bg);
}

.glitch::before {
  left: 2px;
  text-shadow: -2px 0 var(--accent-green);
  clip: rect(24px, 550px, 90px, 0);
  animation: glitch-anim 6s infinite linear alternate-reverse;
}

.glitch::after {
  left: -2px;
  text-shadow: -2px 0 var(--accent-blue);
  clip: rect(85px, 550px, 140px, 0);
  animation: glitch-anim2 8s infinite linear alternate-reverse;
}


.logo-glitch {
  font-family: var(--terminal-font);
  font-size: 1.8rem;
  color: var(--accent-green);
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
  position: relative;
  animation: glitch-effect 5s infinite alternate;
}

.logo-glitch span {
  color: var(--accent-orange);
  animation: blink 1s infinite alternate;
}


@keyframes glitch {
  2%, 64% {
    transform: translate(2px, 0) skew(0deg);
  }
  4%, 60% {
    transform: translate(-2px, 0) skew(0deg);
  }
  62% {
    transform: translate(0, 0) skew(5deg);
  }
}

@keyframes glitch-anim {
  0% {
    clip: rect(52px, 9999px, 19px, 0);
  }
  5% {
    clip: rect(12px, 9999px, 59px, 0);
  }
  10% {
    clip: rect(34px, 9999px, 11px, 0);
  }
  15% {
    clip: rect(15px, 9999px, 79px, 0);
  }
  20% {
    clip: rect(36px, 9999px, 73px, 0);
  }
  25% {
    clip: rect(3px, 9999px, 91px, 0);
  }
  30% {
    clip: rect(89px, 9999px, 6px, 0);
  }
  35% {
    clip: rect(95px, 9999px, 43px, 0);
  }
  40% {
    clip: rect(45px, 9999px, 91px, 0);
  }
  45% {
    clip: rect(66px, 9999px, 25px, 0);
  }
  50% {
    clip: rect(82px, 9999px, 31px, 0);
  }
  55% {
    clip: rect(74px, 9999px, 9px, 0);
  }
  60% {
    clip: rect(64px, 9999px, 20px, 0);
  }
  65% {
    clip: rect(13px, 9999px, 65px, 0);
  }
  70% {
    clip: rect(51px, 9999px, 77px, 0);
  }
  75% {
    clip: rect(6px, 9999px, 81px, 0);
  }
  80% {
    clip: rect(89px, 9999px, 44px, 0);
  }
  85% {
    clip: rect(1px, 9999px, 14px, 0);
  }
  90% {
    clip: rect(18px, 9999px, 75px, 0);
  }
  95% {
    clip: rect(71px, 9999px, 75px, 0);
  }
  100% {
    clip: rect(85px, 9999px, 96px, 0);
  }
}

@keyframes glitch-anim2 {
  0% {
    clip: rect(65px, 9999px, 99px, 0);
  }
  5% {
    clip: rect(79px, 9999px, 43px, 0);
  }
  10% {
    clip: rect(26px, 9999px, 13px, 0);
  }
  15% {
    clip: rect(57px, 9999px, 31px, 0);
  }
  20% {
    clip: rect(46px, 9999px, 21px, 0);
  }
  25% {
    clip: rect(57px, 9999px, 80px, 0);
  }
  30% {
    clip: rect(2px, 9999px, 78px, 0);
  }
  35% {
    clip: rect(51px, 9999px, 35px, 0);
  }
  40% {
    clip: rect(89px, 9999px, 23px, 0);
  }
  45% {
    clip: rect(9px, 9999px, 41px, 0);
  }
  50% {
    clip: rect(31px, 9999px, 84px, 0);
  }
  55% {
    clip: rect(45px, 9999px, 35px, 0);
  }
  60% {
    clip: rect(80px, 9999px, 4px, 0);
  }
  65% {
    clip: rect(23px, 9999px, 75px, 0);
  }
  70% {
    clip: rect(63px, 9999px, 77px, 0);
  }
  75% {
    clip: rect(37px, 9999px, 3px, 0);
  }
  80% {
    clip: rect(2px, 9999px, 44px, 0);
  }
  85% {
    clip: rect(31px, 9999px, 17px, 0);
  }
  90% {
    clip: rect(99px, 9999px, 99px, 0);
  }
  95% {
    clip: rect(3px, 9999px, 35px, 0);
  }
  100% {
    clip: rect(73px, 9999px, 75px, 0);
  }
}

@keyframes glitch-effect {
  0% { text-shadow: 0 0 10px rgba(0, 255, 65, 0.5); }
  25% { text-shadow: -2px -2px 5px rgba(0, 255, 65, 0.8); }
  50% { text-shadow: 2px 2px 5px rgba(0, 255, 65, 0.8); }
  75% { text-shadow: -2px 2px 5px rgba(0, 255, 65, 0.8); }
  100% { text-shadow: 2px -2px 5px rgba(0, 255, 65, 0.8); }
}

/* Start: New Glitch Effect */
.specialized-glitch {
  position: relative;
  color: #fff;
  line-height: 1.5;
  text-align: center;
  font-size: 2rem;
}
.cyber-security {
  display: block;
  position: relative;
  color: #00ff41;
  text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
  margin-top: 15px;
  font-family: 'Shabnam', monospace;
  font-weight: bold;
  letter-spacing: 2px;
  animation: text-flicker 0.01s ease-in-out infinite alternate;
  transform: translateZ(0);
}

.cyber-security::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00ff41, transparent);
  animation: scanline 2s linear infinite;
}

.cyber-security::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00ff41, transparent);
  animation: scanline 3s linear infinite reverse;
}
@keyframes text-flicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
    text-shadow:
            0 0 10px rgba(0, 255, 65, 0.5),
            0 0 20px rgba(0, 255, 65, 0.3),
            0 0 30px rgba(0, 255, 65, 0.1);
  }
  20%, 24%, 55% {
    text-shadow:
            0 0 5px rgba(0, 255, 65, 0.8),
            0 0 15px rgba(0, 255, 65, 0.6),
            0 0 25px rgba(0, 255, 65, 0.3),
            0 0 40px rgba(0, 255, 65, 0.2);
  }
}
/*this is second scan line you can remove it*/
@keyframes scanline {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateX(100%);
    opacity: 0;
  }
}
.changing-skills {
  position: relative;
  display: inline-block;
  height: 1.2em;
}

.skill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  color: #fff;
}

.skill.active {
  position: relative;
  opacity: 1;
  animation: glitch-switch 0.5s linear;
}

.reset-btn {
  background-color: #f44336;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  margin-right: 8px;
  transition: background-color 0.3s;
}

.reset-btn:hover {
  background-color: #d32f2f;
}

/* انیمیشن‌ها */
@keyframes scanline {
  0% { background-position: -100% 0; }
  100% { background-position: 100% 0; }
}

@keyframes glitch-switch {
  0%, 100% {
    text-shadow: 0 0 10px rgb(255, 255, 255);
    clip-path: inset(0 0 0 0);
    background-color: #323232;
  }
  10% {
    clip-path: inset(10% 0 30% 0);
    transform: translate(-5px, 3px);
  }
  20% {
    clip-path: inset(30% 0 10% 0);
    transform: translate(5px, -3px);
  }
  30% {
    clip-path: inset(20% 0 40% 0);
    transform: translate(-3px, 2px);
    background-color: #eff264;
  }
  40% {
    clip-path: inset(40% 0 20% 0);
    transform: translate(3px, -2px);
  }
  50% {
    clip-path: inset(10% 0 30% 0);
    transform: translate(-2px, 1px);
    text-shadow: 0 0 10px rgb(224, 108, 17);
  }
  60% {
    clip-path: inset(30% 0 10% 0);
    transform: translate(2px, -1px);
  }
  70% {
    clip-path: inset(20% 0 40% 0);
    transform: translate(-1px, 0.5px);
  }
  80% {
    clip-path: inset(40% 0 20% 0);
    transform: translate(1px, -0.5px);
    text-shadow: 0 0 10px rgb(12, 156, 208);
  }
}
/* END: New Glitch Effect */
/* JavaScript برای تغییر مهارت‌ها */




/*!* Preloader *!*/
/*.preloader {*/
/*  position: fixed;*/
/*  top: 0;*/
/*  left: 0;*/
/*  width: 100%;*/
/*  height: 100%;*/
/*  background-color: var(--darker-bg);*/
/*  display: flex;*/
/*  justify-content: center;*/
/*  align-items: center;*/
/*  z-index: 9999;*/
/*}*/

.loader {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(0, 255, 65, 0.2);
  border-radius: 50%;
  border-top-color: var(--accent-green);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Scroll Bar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--darker-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-green);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(var(--accent-green), var(--accent-blue));
}

/* === NEW TERMINAL ANIMATIONS AND EFFECTS === */
/* Entrance animation for terminal */
@keyframes slideUpFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-terminal {
  animation: slideUpFadeIn 1s ease-out 0.3s forwards;
  opacity: 0;
}

/* Pulse effect for terminal buttons */
.pulse {
  animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
  0% { transform: scale(1); box-shadow: 0 0 4px #fff4; }
  50% { transform: scale(1.1); box-shadow: 0 0 10px #fff9; }
  100% { transform: scale(1); box-shadow: 0 0 4px #fff4; }
}

/* Typing caret blink */
@keyframes blinkCaret {
  50% {
    border-color: transparent;
  }
}

@keyframes matrix-fall {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 0 1000px, 0 1000px; }
}

@keyframes blink-caret {
  from, to { opacity: 0; }
  50% { opacity: 1; }
}

@keyframes scanline {
  0% { top: -100%; }
  100% { top: 100%; }
}


/*!* Cursor blink for whoami *!*/
/*cursor-blink {*/
/*  border-right: 2px solid var(--accent-green);*/
/*  animation: blink-caret 0.75s step-end infinite;*/
/*}*/

/*!* چشمک‌زن *!*/
/*@keyframes blink-caret {*/
/*  from, to { border-color: transparent; }*/
/*  50% { border-color: var(--accent-green); }*/
/*}*/

