/* Header and Footer Styles for All Pages */
/* Matrix Rain*/

.matrix-header {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background-color: #000;
}

.matrix-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,255,65,0.05) 50%, rgba(0,0,0,0.1) 100%);
  z-index: 1;
}

.matrix-rain {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(20px, 1fr));
  gap: 0;
  z-index: 0;
}

.matrix-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: matrix-fall calc(var(--speed) * 5s) linear infinite;
  animation-delay: calc(var(--delay) * 1s);
}

.matrix-character {
  color: #00ff41;
  font-family: 'Consolas', monospace;
  font-size: var(--font-size, 16px);
  opacity: 0;
  animation: matrix-fade 0.5s ease-in-out infinite alternate;
  animation-delay: calc((var(--char-index) * 0.05s) + (var(--column-delay) * 0.1s));
}

@keyframes matrix-fall {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(100vh);
  }
}

@keyframes matrix-fade {
  0% {
    opacity: 0;
    text-shadow: 0 0 0 rgba(0, 255, 65, 0);
  }
  25% {
    opacity: 0.3;
    text-shadow: 0 0 5px rgb(30, 131, 54);
  }
  50% {
    opacity: 0.5;
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.7);
  }
  75% {
    opacity: 0.4;
    text-shadow: 0 0 5px rgb(30, 131, 54);
  }
  100% {
    opacity: 0.2;
    text-shadow: 0 0 0 rgba(0, 255, 65, 0);
  }
}


/* 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);
  position: relative;
  overflow: hidden;
}

.logo h1::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 65, 0.2), transparent);
  transform: translateX(-100%);
  animation: logo-shine 3s infinite;
}

.logo span {
  color: var(--accent-orange);
  animation: blink 1.5s infinite;
}

@keyframes logo-shine {
  0% { transform: translateX(-100%); }
  50%, 100% { transform: translateX(100%); }
}

@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;
  position: relative;
}

.nav-links a {
  color: var(--main-text);
  text-decoration: none;
  font-family: var(--Vazir);
  font-weight: 500;
  font-size: 1.1rem;
  position: relative;
  padding: 5px 0;
  transition: all 0.3s ease;
}

.nav-links a::before {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-green);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--accent-green);
  text-shadow: 0 0 5px rgba(0, 255, 65, 0.5);
}

.nav-links a:hover::before {
  width: 100%;
  right: auto;
  left: 0;
}

.nav-links a.active {
  color: var(--accent-green);
  text-shadow: 0 0 5px rgba(0, 255, 65, 0.5);
}

.nav-links a.active::before {
  width: 100%;
}

.hamburger {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--accent-green);
}

/*Footer Styles */



/*Footer Styles for all pages*/
/* Dark Footer */

.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: 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;
  z-index: 0;
}

.dark-footer::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;
  z-index: 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo h3 {
  color: var(--accent-green);
  font-size: 2rem;
  margin-bottom: 15px;
  font-family: var(--terminal-font);
}

.footer-logo span {
  color: var(--accent-orange);
}

.logo-glitch-footer {
  font-family: var(--terminal-font);
  font-size: 1.8rem;
  color: var(--accent-green);
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgb(224, 108, 17);
  position: relative;
  animation: glitch-effect-footer 5s infinite alternate;
}

.logo-glitch-footer span {
  color: var(--accent-orange);
  animation: blink-footer 1s infinite alternate;
}

@keyframes glitch-effect-footer {
  0% { text-shadow: 0 0 10px rgb(239, 242, 100); }
  25% { text-shadow: -2px -2px 5px rgb(224, 108, 17); }
  50% { text-shadow: 2px 2px 5px rgba(0, 255, 65, 0.8); }
  75% { text-shadow: -2px 2px 5px rgb(224, 108, 17); }
  100% { text-shadow: 2px -2px 5px rgb(45, 135, 234); }
}

@keyframes blink-footer {
  0% { opacity: 0; color: var(--accent-orange); }
  25% { opacity: 0.25; color: var(--accent-blue); scale: 125%; }
  50% { opacity: 0.5; color: var(--accent-green); }
  75% { opacity: 0.75; color: yellow; scale: 125%; }
  100% { opacity: 1; color: var(--accent-orange); }
}


.footer-logo p {
  color: var(--main-text);
  font-size: 1.1rem;
  max-width: 300px;
  line-height: 1.6;
  font-family: var(--Shabnam);
}

.footer-logo img {
  border-radius: 50%;
  margin-top: -20px;
  width: 200px;
  height: 200px;
}


.footer-logo img:hover {
  transition: all 0.5s ease;
  transform: scaleX(125%);
}



.footer-desc {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 30px;
  line-height: 1.8;

  font-family: Shabnam, sans-serif;
  font-weight: bold;
  font-size: 1.2rem;
}


.footer-links h3, .footer-contact h3 {
  color: var(--accent-green);
  font-size: 1.3rem;
  margin-bottom: 20px;
  font-family: var(--Vazir);
  position: relative;
  display: inline-block;
}

.footer-links h3::after, .footer-contact h3::after {
  content: '';
  position: absolute;
  margin-top: 0.9px;
  bottom: -5px;
  right: 0;
  width: 120px;
  height: 2px;
  background: linear-gradient(to left, var(--accent-orange), transparent);
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 20px;
  font-family: Shabnam, sans-serif;
}

.footer-links li::before {
  content: '>';
  position: absolute;
  left: 0;
  color: var(--accent-orange);
  font-weight: bold;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
}

.footer-links li:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.footer-links a {
  color: var(--main-text);
  text-decoration: none;
  font-family: var(--Shabnam);
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  right: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent-green);
  transition: width 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent-green);
  transform: translateX(-5px);
}

.footer-links a:hover::after {
  width: 100%;
}

.footer-contact p {
  color: var(--main-text);
  margin-bottom: 10px;
  font-family: var(--Shabnam);
  display: flex;
  align-items: center;
}

.footer-contact p i {
  color: var(--accent-green);
  margin-left: 10px;
  width: 20px;
  text-align: center;
}

.footer-contact p i:hover {
  color: var(--accent-green);
  margin-left: 10px;
  width: 20px;
  text-align: center;

}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 25px;
}

.social-links a {
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 255, 65, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(0, 255, 65, 0.8);
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: rgba(0, 255, 65, 0.2);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgb(224, 108, 17);
}

.social-icon {
  width: 50px;
  height: 50px;
  background: rgba(0, 255, 65, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-green);
  text-decoration: none;
  transition: all 0.4s ease;
  position: relative;
}

.social-icon:hover {
  background: var(--accent-green);
  color: var(--darker-bg);
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 5px 15px rgba(0, 255, 65, 0.4);
}

.social-tooltip {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-green);
  color: var(--darker-bg);
  padding: 3px 10px;
  border-radius: 5px;
  font-size: 0.8rem;
  opacity: 0;
  font-family: var(--Shabnam);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.social-icon:hover .social-tooltip {
  opacity: 1;
  bottom: -35px;
}


/*.social-icons {*/
/*  display: flex;*/
/*  gap: 15px;*/
/*  margin-top: 20px;*/
/*}*/

/*.social-icons a {*/
/*  width: 40px;*/
/*  height: 40px;*/
/*  border-radius: 50%;*/
/*  background-color: rgba(0, 255, 65, 0.1);*/
/*  display: flex;*/
/*  align-items: center;*/
/*  justify-content: center;*/
/*  color: var(--main-text);*/
/*  font-size: 1.2rem;*/
/*  transition: all 0.3s ease;*/
/*  border: 1px solid rgba(0, 255, 65, 0.3);*/
/*  position: relative;*/
/*  overflow: hidden;*/
/*}*/

/*.social-icons a::before {*/
/*  content: '';*/
/*  position: absolute;*/
/*  top: 0;*/
/*  left: 0;*/
/*  width: 100%;*/
/*  height: 100%;*/
/*  background: var(--accent-green);*/
/*  transform: translateY(100%);*/
/*  transition: transform 0.3s ease;*/
/*  z-index: -1;*/
/*}*/

/*.social-icons a:hover {*/
/*  color: var(--darker-bg);*/
/*  transform: translateY(-5px);*/
/*  box-shadow: 0 5px 15px rgba(0, 255, 65, 0.3);*/
/*}*/

/*.social-icons a:hover::before {*/
/*  transform: translateY(0);*/
/*}*/



.footer-bottom {
  text-align: center;
  padding-top: 30px;
  margin-top: 50px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 1;
}

.footer-bottom p {
  color: var(--main-text);
  font-family: var(--Shabnam);
  font-size: 0.9rem;
}
.footer-bottom span {
  color: var(--accent-green);
  font-family: var(--Shabnam);
  font-size: 0.9rem;
}

/* Page Header */
.page-header {
  padding: 150px 0 80px;
  background-color: var(--darker-bg);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 255, 65, 0.05), rgba(0, 119, 255, 0.04), rgba(0, 0, 0, 0.04));
  z-index: 0;
}

/*Page Header before for coloring bg in header*/
/*.page-header::before {*/
/*  content: '';*/
/*  position: absolute;*/
/*  top: 0;*/
/*  left: 0;*/
/*  width: 100%;*/
/*  height: 100%;*/
/*  background: linear-gradient(135deg, rgba(0, 255, 65, 0.1), rgba(0, 119, 255, 0.1));*/
/*  z-index: 0;*/
/*}*/

.matrix-animation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-header-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.page-header-content h1 {
  color: var(--accent-green);
  font-size: 3rem;
  margin-bottom: 15px;
  text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
  animation: glow-pulse 3s infinite alternate;
}

.page-header-content p {
  color: var(--main-text);
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 30px;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.breadcrumb a {
  color: var(--main-text);
  text-decoration: none;
  transition: all 0.3s ease;
}

.breadcrumb a:hover {
  color: var(--accent-green);
}

.breadcrumb span {
  color: var(--main-text);
}

.breadcrumb .active {
  color: var(--accent-green);
}

/* Section Title */
.section-title {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(to right, transparent, var(--accent-green), transparent);
}

.section-title h2 {
  color: var(--accent-green);
  font-size: 2.5rem;
  margin-bottom: 15px;
  text-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
}

.section-title p {
  color: var(--main-text);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
}

/* 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;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.spinner {
  position: relative;
  width: 80px;
  height: 80px;
}

.circle {
  position: absolute;
  border: 4px solid transparent;
  border-top-color: var(--accent-green);
  border-radius: 50%;
  animation: spin 1.2s linear infinite;
}

.circle1 {
  width: 80px;
  height: 80px;
}

.circle2 {
  width: 60px;
  height: 60px;
  top: 10px;
  left: 10px;
  animation-duration: 0.9s;
  border-top-color: var(--accent-orange);
}

.circle3 {
  width: 40px;
  height: 40px;
  top: 20px;
  left: 20px;
  animation-duration: 0.6s;
  border-top-color: var(--main-text);
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Animations */
@keyframes pulse-opacity {
  0%, 100% { opacity: 0.8; }
  25% { opacity: 0.3; color: green; }
  50% { opacity: 1; color: orange; }
  100% { opacity: 0.7; color: blue; }
}

@keyframes glow-pulse {
  0%, 100% {
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
  }
  50% {
    text-shadow: 0 0 20px rgba(0, 255, 65, 0.6);
  }
}

/* Responsive Styles */
@media (max-width: 992px) {
  .nav-links {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 250px;
    height: calc(100vh - 70px);
    background-color: var(--darker-bg);
    flex-direction: column;
    align-items: center;
    padding-top: 30px;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    z-index: 999;
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .nav-links li {
    margin: 15px 0;
  }
  
  .hamburger {
    display: block;
  }
  
  .hamburger.active i::before {
    content: "\f00d";
  }
  
  .footer-content {
    flex-direction: column;
  }
  
  .page-header-content h1 {
    font-size: 2.5rem;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .page-header {
    padding: 120px 0 60px;
  }
  
  .page-header-content h1 {
    font-size: 2rem;
  }
  
  .page-header-content p {
    font-size: 1rem;
  }
  
  .section-title h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 576px) {
  .container {
    width: 95%;
    padding: 0 10px;
  }
  
  .logo h1 {
    font-size: 1.5rem;
  }
  
  .page-header-content h1 {
    font-size: 1.8rem;
  }
  
  .footer-logo h2 {
    font-size: 1.8rem;
  }
}




/* Start: Old Footer Comments  */

/*footer {*/
/*  background: linear-gradient(135deg, #0a192f 0%, #172a45 100%);*/
/*  padding: 70px 0 30px;*/
/*  position: relative;*/
/*  overflow: hidden;*/
/*}*/

/*footer::before {*/
/*  content: '';*/
/*  position: absolute;*/
/*  top: 0;*/
/*  left: 0;*/
/*  width: 100%;*/
/*  height: 3px;*/
/*  background: linear-gradient(90deg, var(--accent-green), var(--accent-blue));*/
/*  animation: border-glow 3s ease infinite;*/
/*}*/

/*.footer-content {*/
/*  display: grid;*/
/*  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));*/
/*  gap: 40px;*/
/*  margin-bottom: 40px;*/
/*}*/



/* استایل لینک‌های اجتماعی */


/*.footer-links h4 {*/
/*  color: rgba(255, 255, 255, 0.9);*/
/*  font-size: 1.2rem;*/
/*  margin-bottom: 20px;*/
/*  position: relative;*/
/*  padding-bottom: 10px;*/
/*  font-family: Vazir, sans-serif;*/
/*  font-weight: bold;*/
/*}*/

/*.footer-links h4::after {*/
/*  content: '';*/
/*  position: absolute;*/
/*  bottom: 0;*/
/*  right: 0;*/
/*  width: 50px;*/
/*  height: 2px;*/
/*  background: linear-gradient(90deg, rgba(0, 255, 65, 0.8), transparent);*/
/*}*/

/*.footer-links ul {*/
/*  list-style: none;*/
/*}*/

/*.footer-links li {*/
/*  margin-bottom: 10px;*/
/*  position: relative;*/
/*  padding-left: 20px;*/
/*  font-family: Shabnam, sans-serif;*/
/*}*/

/*.footer-links li::before {*/
/*  content: '>';*/
/*  position: absolute;*/
/*  left: 0;*/
/*  color: var(--accent-orange);*/
/*  font-weight: bold;*/
/*  opacity: 0;*/
/*  transform: translateX(-10px);*/
/*  transition: all 0.3s ease;*/
/*}*/

/*.footer-links li:hover::before {*/
/*  opacity: 1;*/
/*  transform: translateX(0);*/
/*}*/

/*.footer-links a {*/
/*  color: rgba(255, 255, 255, 0.6);*/
/*  font-size: 0.95rem;*/
/*  transition: all 0.3s ease;*/
/*}*/

/*.footer-links a:hover {*/
/*  color: rgba(0, 255, 65, 0.9);*/
/*  padding-right: 8px;*/
/*}*/

/*!* استایل لینک‌های فوتر *!*/
/*.links-title {*/
/*  font-size: 1.3rem;*/
/*  color: white;*/
/*  margin-bottom: 25px;*/
/*  position: relative;*/
/*  padding-bottom: 15px;*/
/*}*/

/*.links-title::after {*/
/*  content: '';*/
/*  position: absolute;*/
/*  bottom: 0;*/
/*  right: 0;*/
/*  width: 80px;*/
/*  height: 3px;*/
/*  background: linear-gradient(90deg, var(--accent-green), transparent);*/
/*  animation: underline-grow 1s ease-out;*/
/*}*/

/*.link-item {*/
/*  color: rgba(255, 255, 255, 0.8);*/
/*  text-decoration: none;*/
/*  transition: all 0.3s ease;*/
/*  display: inline-block;*/
/*  position: relative;*/
/*}*/

/*.link-item::after {*/
/*  content: '';*/
/*  position: absolute;*/
/*  bottom: -2px;*/
/*  right: 0;*/
/*  width: 0;*/
/*  height: 1px;*/
/*  background: var(--accent-green);*/
/*  transition: width 0.3s ease;*/
/*}*/

/*.link-item:hover {*/
/*  color: white;*/
/*  transform: translateX(5px);*/
/*}*/

/*.link-item:hover::after {*/
/*  width: 100%;*/
/*  left: 0;*/
/*}*/

/* استایل کپی رایت */
/* کپی رایت */
/*.copyright {*/
/*  text-align: center;*/
/*  padding-top: 30px;*/
/*  border-top: 1px solid rgba(255, 255, 255, 0.05);*/
/*}*/

/*.copyright p {*/
/*  color: rgba(255, 255, 255, 0.4);*/
/*  font-size: 0.85rem;*/
/*}*/

/*.copyright-text {*/
/*  color: rgba(255, 255, 255, 0.6);*/
/*  font-size: 0.9rem;*/
/*  font-family: Shabnam, sans-serif;*/
/*}*/

/*.copyright-text span {*/
/*  color: var(--accent-green);*/
/*  font-family: Vazir, sans-serif;*/
/*  font-weight: bold;*/
/*}*/

/* END: Old Footer Comments  */
