@font-face {
    font-family: "Peyda-h1";
    src: url("../fonts/peydabold.ttf") format('truetype');
    font-weight: normal;
    font-style: normal;
  }
  @font-face {
    font-family: "Peyda-h2";
    src: url("../fonts/Peyda-h2.ttf") format('truetype');
    font-weight: normal;
    font-style: normal;
  }
  @font-face {
    font-family: "peyda-matn";
    src: url("../fonts/peyda-matn.ttf") format('truetype');
    font-weight: normal;
    font-style: normal;
  }
  @font-face {
    font-family: "Peyda-titr";
    src: url("../fonts/peydabold.ttf") format('truetype');
    font-weight: normal;
    font-style: normal;
  }
  /*  هدر و navbar  */

 *{
    font-family:"Peyda-titr" ;
direction: rtl;
}
h1{
    font-family:"Peyda-h1" ;
}

h2{
    font-family:"Peyda-h2" ;
}
.font-h2{
	font-family:"Peyda-h2" ;
}
.matn{
    font-family:"peyda-matn" ;
}

.titr{
    font-family:"Peyda-titr" ;
}
:root {
    --primary-color: #6e45e2;
    --secondary-color: #88d3ce;
    --accent-color: #ff7e5f;
    --dark-color: #1a1a2e;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    overflow: hidden;
    min-height: 100vh;
    background: var(--dark-color);
    perspective: 1000px;
}

.bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Particle Network */
.particle-network {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

/* Liquid Gradient */
.liquid-gradient {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        135deg,
        var(--primary-color),
        var(--secondary-color),
        var(--accent-color)
    );
    background-size: 200% 200%;
    animation: liquidMove 25s ease infinite;
    mix-blend-mode: overlay;
    filter: blur(60px);
    opacity: 0.7;
}

/* Hexagon Grid */
.hexagon-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    opacity: 0.15;
}

.hexagon {
    position: absolute;
    width: 100px;
    height: 57.74px;
    background-color: white;
    margin: 28.87px 0;
    animation: hexagonFloat 30s infinite linear;
    opacity: 0.1;
}

.hexagon:before,
.hexagon:after {
    content: "";
    position: absolute;
    width: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
}

.hexagon:before {
    bottom: 100%;
    border-bottom: 28.87px solid white;
}

.hexagon:after {
    top: 100%;
    border-top: 28.87px solid white;
}

/* Glowing Orbs */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    animation: orbPulse 15s infinite ease-in-out;
    opacity: 0.5;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--primary-color), transparent 70%);
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--secondary-color), transparent 70%);
    bottom: 10%;
    right: 15%;
    animation-delay: 3s;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, var(--accent-color), transparent 70%);
    top: 60%;
    left: 70%;
    animation-delay: 6s;
}

/* Floating Shapes */
.shape {
    position: absolute;
    opacity: 0.1;
    animation: shapeFloat 25s infinite linear;
    filter: blur(1px);
}

.triangle {
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 100px solid rgba(255,255,255,0.3);
}

.circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
}

/* Animated Lines */
.line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
    animation: lineScan 8s infinite linear;
    transform-origin: left;
}

/* Content Box */
.content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    color: white;
    text-align: center;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 800px;
    width: 90%;
}

/* Keyframes */
@keyframes liquidMove {
    0% {
        transform: rotate(0deg);
        background-position: 0% 50%;
    }
    50% {
        transform: rotate(180deg);
        background-position: 100% 50%;
    }
    100% {
        transform: rotate(360deg);
        background-position: 0% 50%;
    }
}

@keyframes hexagonFloat {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    100% {
        transform: translateY(-100vh) rotate(720deg);
    }
}

@keyframes orbPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
}

@keyframes shapeFloat {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.1;
    }
    90% {
        opacity: 0.1;
    }
    100% {
        transform: translate(100vw, -100vh) rotate(360deg);
        opacity: 0;
    }
}

@keyframes lineScan {
    0% {
        transform: scaleX(0);
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: scaleX(1);
        opacity: 0;
    }
}
.form-container {
    background: rgba(255, 255, 255, 0.733);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(12px);
    border-radius: 1rem;
}

.input-field {
    transition: all 0.3s ease;
    border: 2px solid #e2e8f0;
}

.input-field:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.form-container {
    perspective: 1000px;
}

.form-switch-animation {
    animation: formSwitch 0.6s ease forwards;
    transform-origin: top center;
}

@keyframes formSwitch {
    0% {
        opacity: 1;
        transform: rotateX(0deg) translateY(0);
    }

    50% {
        opacity: 0;
        transform: rotateX(-90deg) translateY(20px);
    }

    100% {
        opacity: 1;
        transform: rotateX(0deg) translateY(0);
    }
}

.tab-btn.active {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}
.tab-btn {
margin-left: 30px;
width: 100%;
border-radius: 8px;
}

#message {
    animation: messagePop 0.5s ease-out;
}

@keyframes messagePop {
    0% {
        transform: translateY(20px) scale(0.9);
        opacity: 0;
    }

    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* اضافه کردن به استایل‌های موجود */
.form-wrapper {
    position: relative;
    min-height: 450px;
    overflow: hidden;
}

.form-content {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
    width: 100%;
    opacity: 0;
    transform: translateX(50px);
    visibility: hidden;
}

.form-content.active {
    opacity: 1;
    transform: translateX(0);
    visibility: visible;
}
