@font-face {
  font-family: "centary";
  src: url(../fonts/GOTHIC.TTF);
}
/* Done */
*,
*::after,
*::before {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
/*  */
*::selection {
  background-color: rgba(255, 255, 255, 0.666);
}
/*  */
:root {
  --select: rgba(255, 255, 255, 0.666);
  --background: #f0f1f3;
}
/* Done */
ul,
li {
  list-style: none;
}
/* Done */
a {
  text-decoration: none;
  color: black;
}
/* Done */
body,
html {
  scroll-behavior: smooth;
  position: relative;
  font-family: centary;
}

body {
}

button,
textarea,
input {
  font-family: centary;
}
/* */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: centary;
}

/* khotot rast o chap */
.decorative-lines {
  position: fixed;
  top: 0;
  width: 120px;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.decorative-lines.left {
  left: 0;
}

.decorative-lines.right {
  right: 0;
}

.decorative-lines svg {
  width: 100%;
  height: 100%;
}

/* change page */
/* Overlay برای transition */
/* Overlay برای transition */
.page-transition-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  z-index: 99999;
  display: none;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
}

.page-transition-overlay.active {
  display: flex;
  pointer-events: all;
}

/* Container برای متن - این باعث میشه H وسط بمونه */
.transition-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* متن HENGAM GROUP */
.transition-text {
  font-size: 48px;
  font-weight: bold;
  font-family: Arial, sans-serif;
  color: #333;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
}

/* انیمیشن نوشتن H با خطوط */
.letter-h {
  display: inline-block;
  position: relative;
  width: 40px;
  height: 50px;
  margin-right: 8px;
  flex-shrink: 0;
}

.h-line-left,
.h-line-right,
.h-line-middle {
  position: absolute;
  background: #333;
  transform-origin: top;
}

.h-line-left {
  left: 0;
  top: 0;
  width: 4px;
  height: 0;
}

.h-line-right {
  right: 0;
  top: 0;
  width: 4px;
  height: 0;
}

.h-line-middle {
  left: 0;
  top: 50%;
  width: 0;
  height: 4px;
  transform: translateY(-2px);
}

/* انیمیشن‌های کشیده شدن خطوط - آهسته‌تر */
@keyframes drawVertical {
  to {
    height: 100%;
  }
}

@keyframes drawHorizontal {
  to {
    width: 100%;
  }
}

.letter-h.drawing .h-line-left {
  animation: drawVertical 0.4s ease-out forwards;
}

.letter-h.drawing .h-line-right {
  animation: drawVertical 0.4s ease-out 0.4s forwards;
}

.letter-h.drawing .h-line-middle {
  animation: drawHorizontal 0.3s ease-out 0.8s forwards;
}

/* انیمیشن typing برای بقیه متن - آهسته‌تر */
.typing-text {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 3px solid #333;
  width: 0;
  animation:
    typing 1.5s steps(12) 1.1s forwards,
    blink 0.5s step-end 1.1s 4;
}

@keyframes typing {
  to {
    width: 100%;
  }
}

@keyframes blink {
  50% {
    border-color: transparent;
  }
}

/* انیمیشن fade - آهسته‌تر */
.fade-in {
  animation: fadeIn 0.5s ease-in forwards;
}

.fade-out {
  animation: fadeOut 0.5s ease-out forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
.page-transition-overlay.no-animation {
  transition: none !important;
  opacity: 1;
}
/* 
.page-transition-overlay.fade-out {
  opacity: 0;
  transition: opacity 0.5s ease;
} */
