:root {
--primary-blue: #1e3c72;
--secondary-blue: #2a5298;
--accent-teal: #44b9b9;
--dark-blue: #0f1419;
--light-text: #f0f4f8;
--glass-bg: rgba(255, 255, 255, 0.05);
--card-bg: rgba(255, 255, 255, 0.98);
--color-link: #d0e4ff;
}

/* General Styles & RTL/LTR Configuration */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

html {
scroll-behavior: smooth;
}

body {
font-family: "Vazirmatn", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
line-height: 1.8;
background: linear-gradient(
    135deg,
    var(--dark-blue) 0%,
    var(--primary-blue) 40%,
    var(--secondary-blue) 75%,
    var(--accent-teal) 100%
);
min-height: 100vh;
overflow-x: hidden;
position: relative;
color: var(--light-text);
}

body.en {
direction: ltr;
font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
text-align: left;
}

body.per {
direction: rtl;
}

.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}

/* Advanced Background Animation */
.bg-canvas {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
z-index: 0;
animation: backgroundFlow 20s infinite ease-in-out;
opacity: 0.8;
background-image: radial-gradient(
    circle at 20% 80%,
    rgba(68, 185, 185, 0.2) 0%,
    transparent 50%
    ),
    radial-gradient(
    circle at 80% 20%,
    rgba(42, 82, 152, 0.3) 0%,
    transparent 50%
    ),
    radial-gradient(
    circle at 40% 40%,
    rgba(30, 60, 114, 0.2) 0%,
    transparent 50%
    );
}

.bg-canvas::before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.3);
mix-blend-mode: overlay;
}

@keyframes backgroundFlow {
0% {
    background-position: 0% 50%;
}
50% {
    background-position: 100% 50%;
}
100% {
    background-position: 0% 50%;
}
}

/* Header */
.header {
position: sticky;
top: 0;
z-index: 100;
background: rgba(15, 20, 25, 0.95);
backdrop-filter: blur(20px);
border-bottom: 1px solid rgba(68, 185, 185, 0.3);
box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
transition: all 0.5s ease;
}

.navbar {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1rem 0;
}

.logo-section {
display: flex;
align-items: center;
gap: 15px;
}

.logo-icon {
width: 50px;
height: 50px;
background: linear-gradient(
    135deg,
    var(--accent-teal),
    var(--secondary-blue)
);
border-radius: 12px;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.5rem;
color: white;
box-shadow: 0 8px 25px rgba(68, 185, 185, 0.4);
animation: logoFloat 3s ease-in-out infinite;
}

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

.logo-text {
color: white;
font-size: 1.8rem;
font-weight: 800;
text-shadow: 0 2px 10px rgba(68, 185, 185, 0.5);
}

.nav-links {
display: flex;
gap: 2rem;
align-items: center;
}

.nav-link {
color: rgba(255, 255, 255, 0.9);
text-decoration: none;
font-weight: 500;
transition: all 0.3s ease;
position: relative;
padding: 0.5rem 1rem;
border-radius: 8px;
}

.nav-link:hover {
color: var(--accent-teal);
background: rgba(68, 185, 185, 0.1);
transform: translateY(-2px);
}

.nav-cta {
background: linear-gradient(135deg, #4bc5c5, #3a5ba0);
color: white !important;
padding: 0.7rem 1.5rem !important;
border-radius: 25px;
font-weight: 600;
box-shadow: 0 5px 20px rgba(68, 185, 185, 0.3);
}

.nav-cta:hover {
transform: translateY(-3px);
box-shadow: 0 8px 30px rgba(68, 185, 185, 0.5);
}

.lang-switch {
background: none;
border: 1px solid var(--accent-teal);
color: var(--accent-teal);
padding: 0.5rem 1rem;
border-radius: 25px;
font-size: 0.9rem;
cursor: pointer;
transition: all 0.3s ease;
font-weight: 600;
}

.lang-switch:hover {
background: var(--accent-teal);
color: var(--dark-blue);
}

/* Hero Section */
.hero {
position: relative;
z-index: 10;
padding: 6rem 0 4rem;
text-align: center;
color: white;
}

.hero-badge {
background: rgba(68, 185, 185, 0.2);
border: 1px solid rgba(68, 185, 185, 0.4);
color: var(--accent-teal);
padding: 0.5rem 1.5rem;
border-radius: 50px;
font-size: 0.9rem;
font-weight: 500;
margin-bottom: 2rem;
display: inline-block;
animation: fadeInDown 1s ease-out;
}

.hero-title {
font-size: 4rem;
font-weight: 900;
margin-bottom: 1.5rem;
background: linear-gradient(135deg, #ffffff, var(--accent-teal));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
text-shadow: none;
animation: fadeInUp 1s ease-out 0.2s both;
line-height: 1.2;
}

.hero-subtitle {
font-size: 1.4rem;
opacity: 0.9;
margin-bottom: 3rem;
max-width: 600px;
margin-left: auto;
margin-right: auto;
animation: fadeInUp 1s ease-out 0.4s both;
font-weight: 300;
}

.hero-stats {
display: flex;
justify-content: center;
gap: 3rem;
margin-top: 3rem;
animation: fadeIn 1s ease-out 0.6s both;
}

.stat-item {
text-align: center;
}

.stat-number {
font-size: 2.5rem;
font-weight: 700;
color: var(--accent-teal);
display: block;
}

.stat-label {
font-size: 0.9rem;
opacity: 0.8;
margin-top: 0.5rem;
}

/* Role Selection Cards */
.role-section {
position: relative;
z-index: 10;
padding: 4rem 0;
}

.section-title {
text-align: center;
color: white;
font-size: 2.8rem;
font-weight: 800;
margin-bottom: 3rem;
animation: fadeInUp 1s ease-out;
}

.role-selection {
display: flex;
gap: 3rem;
justify-content: center;
animation: fadeIn 1s ease-out 0.3s both;
}

.role-card {
background: var(--card-bg);
border-radius: 25px;
padding: 3rem 2.5rem;
text-align: center;
box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.1);
transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
backdrop-filter: blur(20px);
cursor: pointer;
position: relative;
overflow: hidden;
min-width: 320px;
border: 1px solid rgba(68, 185, 185, 0.2);
}

.role-card::before {
content: "";
position: absolute;
top: 0;
right: -100%;
width: 100%;
height: 100%;
background: linear-gradient(
    90deg,
    transparent,
    rgba(68, 185, 185, 0.1),
    transparent
);
transition: right 0.6s;
}

.role-card:hover::before {
right: 100%;
}

.role-card:hover {
transform: translateY(-15px) scale(1.03);
box-shadow: 0 40px 80px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(68, 185, 185, 0.3);
}

.role-icon-container {
width: 100px;
height: 100px;
margin: 0 auto 2rem;
background: linear-gradient(135deg, #4bc5c5, #3a5ba0);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 15px 35px rgba(68, 185, 185, 0.4);
position: relative;
}

.role-icon-container::after {
content: "";
position: absolute;
inset: -5px;
background: linear-gradient(
    135deg,
    var(--accent-teal),
    var(--secondary-blue)
);
border-radius: 50%;
opacity: 0.3;
z-index: -1;
animation: pulse 3s infinite;
}

@keyframes pulse {
0%,
100% {
    transform: scale(1);
    opacity: 0.3;
}
50% {
    transform: scale(1.1);
    opacity: 0.1;
}
}

.role-icon {
font-size: 3rem;
color: white;
filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
animation: iconWiggle 2s infinite ease-in-out;
}

@keyframes iconWiggle {
0%,
100% {
    transform: rotate(0deg);
}
50% {
    transform: rotate(5deg);
}
}

.role-title {
font-size: 1.8rem;
font-weight: 700;
color: var(--primary-blue);
margin-bottom: 1rem;
}

.role-description {
color: #666;
font-size: 1.1rem;
margin-bottom: 2rem;
line-height: 1.6;
}

.role-features {
list-style: none;
margin: 1.5rem 0;
text-align: right;
padding: 0;
}

body.en .role-features {
text-align: left;
}

.role-features li {
color: #555;
margin: 0.5rem 0;
font-size: 0.95rem;
position: relative;
padding-right: 1.5rem;
opacity: 0;
animation: slideIn 0.8s forwards;
}

body.en .role-features li {
padding-left: 1.5rem;
padding-right: 0;
}

.role-features li::before {
content: "✓";
position: absolute;
right: 0;
color: var(--accent-teal);
font-weight: bold;
}

body.en .role-features li::before {
left: 0;
right: auto;
}

.role-card:hover .role-features li {
animation-delay: calc(0.1s * var(--i));
}

.role-button {
background: linear-gradient(135deg, #4bc5c5, #3a5ba0);
color: white;
border: none;
padding: 1rem 2.5rem;
border-radius: 50px;
font-size: 1.1rem;
font-weight: 600;
cursor: pointer;
transition: all 0.3s;
box-shadow: 0 8px 25px rgba(68, 185, 185, 0.4);
font-family: "Vazirmatn", sans-serif;
width: 100%;
}

.role-button:hover {
transform: translateY(-3px);
box-shadow: 0 15px 40px rgba(68, 185, 185, 0.5);
background: linear-gradient(
    135deg,
    var(--accent-teal),
    var(--secondary-blue)
);
}

/* Info Section - Full Width */
.info-section {
background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.05)
);
border-top: 1px solid rgba(255, 255, 255, 0.1);
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
padding: 5rem 0;
margin: 4rem 0;
animation: fadeIn 1s ease-out 0.6s both;
position: relative;
color: white;
backdrop-filter: blur(10px);
}

.info-title {
font-size: 2.8rem;
color: white;
margin-bottom: 3rem;
text-align: center;
position: relative;
font-weight: 800;
}

.info-title::after {
content: "";
position: absolute;
bottom: -15px;
left: 50%;
transform: translateX(-50%);
width: 120px;
height: 6px;
background: linear-gradient(
    135deg,
    var(--accent-teal),
    var(--secondary-blue)
);
border-radius: 3px;
}

.info-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 2.5rem;
margin-top: 3rem;
padding: 0 20px;
}

.info-card {
background: rgba(255, 255, 255, 0.05);
border-radius: 20px;
padding: 2.5rem;
border: 1px solid rgba(68, 185, 185, 0.2);
transition: all 0.4s ease;
position: relative;
overflow: hidden;
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.info-card::before {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
height: 3px;
background: linear-gradient(
    90deg,
    var(--accent-teal),
    var(--secondary-blue)
);
transform: translateX(-100%);
transition: transform 0.6s ease;
}

.info-card:hover::before {
transform: translateX(0);
}

.info-card:hover {
transform: translateY(-10px);
box-shadow: 0 20px 40px rgba(68, 185, 185, 0.2);
}

.info-card-icon {
font-size: 3rem;
margin-bottom: 1.5rem;
background: linear-gradient(
    135deg,
    var(--accent-teal),
    var(--light-text)
);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
filter: drop-shadow(0 2px 4px rgba(68, 185, 185, 0.3));
}

.info-card h3 {
color: var(--light-text);
margin-bottom: 1.5rem;
font-size: 1.5rem;
font-weight: 700;
}

.info-card p {
color: rgba(255, 255, 255, 0.8);
line-height: 1.8;
font-size: 1.05rem;
}

/* Features Section */
.features-section {
padding: 5rem 0;
position: relative;
z-index: 10;
}

.features-title {
color: white;
font-size: 3rem;
font-weight: 800;
margin-bottom: 4rem;
text-align: center;
text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

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

.feature-item {
background: rgba(255, 255, 255, 0.1);
border-radius: 20px;
padding: 2.5rem;
backdrop-filter: blur(15px);
border: 1px solid rgba(255, 255, 255, 0.2);
transition: all 0.4s ease;
text-align: center;
animation: scaleIn 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.feature-item:nth-child(2) {
animation-delay: 0.2s;
}
.feature-item:nth-child(3) {
animation-delay: 0.4s;
}
.feature-item:nth-child(4) {
animation-delay: 0.6s;
}

@keyframes scaleIn {
from {
    transform: scale(0.8);
    opacity: 0;
}
to {
    transform: scale(1);
    opacity: 1;
}
}

.feature-item:hover {
background: rgba(255, 255, 255, 0.15);
transform: translateY(-10px) scale(1.02);
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.feature-icon {
font-size: 3.5rem;
margin-bottom: 1.5rem;
background: linear-gradient(135deg, var(--accent-teal), #ffffff);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
filter: drop-shadow(0 2px 4px rgba(68, 185, 185, 0.5));
animation: iconPulse 2s infinite ease-in-out;
}

@keyframes iconPulse {
0%,
100% {
    transform: scale(1);
}
50% {
    transform: scale(1.1);
}
}

.feature-item h3 {
color: white;
margin-bottom: 1rem;
font-size: 1.4rem;
font-weight: 700;
}

.feature-item p {
color: rgba(255, 255, 255, 0.9);
line-height: 1.7;
font-size: 1.05rem;
}

/* Footer */
.footer {
background: rgba(15, 20, 25, 0.95);
backdrop-filter: blur(20px);
border-top: 1px solid rgba(68, 185, 185, 0.3);
padding: 3rem 0 1.5rem;
position: relative;
z-index: 100;
margin-top: 4rem;
}

.footer-content {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 2rem;
margin-bottom: 2rem;
}

.footer-section h4 {
color: var(--accent-teal);
font-size: 1.3rem;
font-weight: 600;
margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
color: rgba(255, 255, 255, 0.8);
text-decoration: none;
line-height: 1.8;
transition: color 0.3s ease;
}

.footer-section a:hover {
color: var(--accent-teal);
}

.footer-links {
list-style: none;
}

.footer-links li {
margin: 0.5rem 0;
}

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

.social-link {
width: 40px;
height: 40px;
background: linear-gradient(135deg, #4bc5c5, #3a5ba0);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
color: white;
font-size: 1.2rem;
transition: all 0.3s ease;
}

.social-link:hover {
transform: translateY(-3px) scale(1.1);
box-shadow: 0 8px 20px rgba(68, 185, 185, 0.4);
}

.footer-bottom {
border-top: 1px solid rgba(255, 255, 255, 0.1);
padding-top: 1.5rem;
text-align: center;
color: rgba(255, 255, 255, 0.6);
font-size: 0.9rem;
}

/* Mobile Menu */
.mobile-menu-toggle {
display: none;
background: none;
border: none;
color: white;
font-size: 1.5rem;
cursor: pointer;
}

/* Responsive Design */
@media (max-width: 992px) {
.nav-links {
    display: none;
}
.mobile-menu-toggle {
    display: block;
}
}

@media (max-width: 768px) {
.hero-title {
    font-size: 2.5rem;
}

.hero-stats {
    flex-direction: column;
    gap: 1.5rem;
}

.role-selection {
    flex-direction: column;
    align-items: center;
}

.role-card {
    min-width: 100%;
    max-width: 400px;
}

.info-section {
    padding: 2.5rem 0;
}

.info-grid {
    grid-template-columns: 1fr;
}

.features-grid {
    grid-template-columns: 1fr;
}
}

@keyframes fadeInDown {
from {
    opacity: 0;
    transform: translateY(-30px);
}
to {
    opacity: 1;
    transform: translateY(0);
}
}

@keyframes fadeInUp {
from {
    opacity: 0;
    transform: translateY(30px);
}
to {
    opacity: 1;
    transform: translateY(0);
}
}

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

@keyframes slideIn {
from {
    opacity: 0;
    transform: translateX(50px);
}
to {
    opacity: 1;
    transform: translateX(0);
}
}

body.en @keyframes slideIn {
from {
    opacity: 0;
    transform: translateX(-50px);
}
to {
    opacity: 1;
    transform: translateX(0);
}
}