* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
background: #070b16;
color: white;
font-family: 'Vazirmatn', sans-serif;
}

a {
text-decoration: none;
color: inherit;
}

button, input, select {
font-family: inherit;
}

.navbar {
height: 80px;
padding: 0 7%;
display: flex;
align-items: center;
justify-content: space-between;
background: #0b1120;
border-bottom: 1px solid #1e293b;
position: relative;
z-index: 10;
}

.logo {
font-size: 19px;
font-weight: 900;
direction: ltr;
}

.logo span { color: #38bdf8; }

nav {
display: flex;
gap: 30px;
color: #aab5ca;
font-size: 14px;
}

nav a:hover { color: #38bdf8; }

.header-actions {
display: flex;
align-items: center;
gap: 12px;
}

.settings-btn, .nav-button, .primary-btn {
background: #0284c7;
color: white;
padding: 12px 18px;
border-radius: 10px;
border: none;
cursor: pointer;
font-weight: 700;
}

.settings-btn {
background: #172554;
border: 1px solid #2563eb;
font-size: 18px;
}

.settings-panel {
display: none;
position: absolute;
top: 75px;
inset-inline-end: 7%;
background: #111827;
border: 1px solid #38bdf8;
padding: 20px;
border-radius: 12px;
width: 230px;
box-shadow: 0 0 25px #0284c755;
}

.settings-panel.active { display: block; }

.settings-panel h3 { margin-bottom: 15px; }

.settings-panel label {
display: block;
margin-bottom: 8px;
}

.settings-panel select {
width: 100%;
padding: 12px;
background: #070b16;
color: white;
border: 1px solid #334155;
border-radius: 8px;
}

.hero {
min-height: 570px;
padding: 80px 10%;
display: flex;
align-items: center;
justify-content: space-between;
gap: 40px;
}

.hero-content { max-width: 560px; }

.tag, .section-heading span {
color: #38bdf8;
font-size: 12px;
font-weight: 800;
letter-spacing: 2px;
}

.hero h1 {
font-size: clamp(42px, 6vw, 72px);
line-height: 1.5;
margin: 20px 0;
font-weight: 900;
}

.blue {
color: #38bdf8;
text-shadow: 0 0 25px #0284c766;
}

.hero p, .section-heading p {
color: #94a3b8;
line-height: 2.2;
}

.hero-actions {
display: flex;
gap: 12px;
margin-top: 30px;
flex-wrap: wrap;
}

.secondary-btn {
border: 1px solid #334155;
border-radius: 10px;
padding: 12px 23px;
}

.hero-art {
width: 360px;
height: 330px;
position: relative;
display: grid;
place-items: center;
}

.glow {
position: absolute;
width: 280px;
height: 280px;
background: #2563eb;
filter: blur(110px);
opacity: .4;
}

.art-card {
z-index: 1;
width: 320px;
height: 230px;
background: linear-gradient(135deg,#172554,#111827,#312e81);
border: 2px solid #38bdf8;
border-radius: 15px;
box-shadow: 0 0 35px #0284c755;
padding: 20px;
transform: rotate(-5deg);
display: flex;
flex-direction: column;
justify-content: space-between;
}

.art-card small {
font-size: 10px;
color: #7dd3fc;
direction: ltr;
}

.art-card strong {
font-size: 53px;
line-height: .9;
direction: ltr;
}

.section { padding: 80px 9%; }

.section-heading {
text-align: center;
margin-bottom: 40px;
}

.section-heading h2 {
font-size: 32px;
margin: 10px 0;
}

.tool-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 20px;
}

.tool-card {
background: #111827;
border: 1px solid #263449;
border-radius: 16px;
padding: 30px;
transition: .3s;
}

.tool-card:hover {
transform: translateY(-8px);
border-color: #38bdf8;
box-shadow: 0 10px 35px #0284c722;
}

.tool-icon {
font-size: 35px;
margin-bottom: 15px;
}

.tool-card h3 { margin-bottom: 10px; }

.tool-card p {
color: #94a3b8;
font-size: 13px;
margin-bottom: 25px;
}

.tool-card span {
color: #38bdf8;
font-size: 13px;
}

.editor-box {
display: grid;
grid-template-columns: 280px 1fr;
gap: 20px;
background: #111827;
border: 1px solid #263449;
padding: 20px;
border-radius: 18px;
}

.editor-controls {
display: flex;
flex-direction: column;
gap: 12px;
}

.editor-controls label {
color: #cbd5e1;
font-size: 13px;
}

.editor-controls input[type="text"] {
padding: 13px;
background: #070b16;
border: 1px solid #334155;
color: white;
border-radius: 8px;
}

.editor-controls input[type="color"] {
width: 100%;
height: 45px;
background: transparent;
border: none;
}

.editor-controls input[type="file"] {
width: 100%;
color: #94a3b8;
font-size: 12px;
}

.preview-area {
background: #070b16;
border-radius: 12px;
overflow: hidden;
align-self: center;
}

canvas {
display: block;
width: 100%;
height: auto;
}

.template-placeholder {
text-align: center;
background: #111827;
padding: 55px 20px;
border-radius: 15px;
border: 1px dashed #334155;
}

.template-placeholder span { font-size: 45px; }

.template-placeholder h3 { margin-top: 15px; }

footer {
padding: 40px 10%;
text-align: center;
border-top: 1px solid #1e293b;
color: #94a3b8;
}

footer p { margin: 15px 0; }

[dir="ltr"] .hero-content,
[dir="ltr"] .section-heading,
[dir="ltr"] .tool-card,
[dir="ltr"] .editor-controls {
text-align: left;
}

@media(max-width: 800px) {
.navbar { padding: 0 5%; }
nav { display: none; }

.hero {
padding: 60px 7%;
flex-direction: column;
text-align: center;
}

.hero-art { width: 100%; }

.hero-actions { justify-content: center; }

.tool-grid { grid-template-columns: 1fr; }

.editor-box { grid-template-columns: 1fr; }

.section { padding: 60px 6%; }
}

@media(max-width: 420px) {
.logo { font-size: 14px; }
.nav-button { padding: 10px; font-size: 12px; }
.settings-btn { padding: 9px; }
}

  

.social-card {
width: 280px;
max-width: calc(100% - 40px);
margin: 30px auto;
padding: 25px 20px;
border-radius: 22px;

background: rgba(255,255,255,0.07);
border: 1px solid rgba(255,255,255,0.15);

backdrop-filter: blur(15px);
-webkit-backdrop-filter: blur(15px);

box-shadow: 0 0 25px rgba(0,140,255,0.12);

text-align: center;
direction: rtl;
}

.social-card h3 {
color: white;
margin-bottom: 8px;
}

.social-card p {
color: #aaa;
font-size: 12px;
margin-bottom: 22px;
}

.social-links {
display: flex;
flex-direction: column;
gap: 12px;
}

.social-btn {
width: 100%;
box-sizing: border-box;
display: flex;
align-items: center;
justify-content: flex-start;
gap: 12px;

padding: 12px 15px;
border-radius: 12px;

background: rgba(255,255,255,0.06);
border: 1px solid rgba(255,255,255,0.08);

color: white;
text-decoration: none;
transition: 0.3s;
}

.social-btn span {
font-size: 25px;
}

.social-btn:hover {
transform: translateX(-5px);
background: rgba(0,150,255,0.15);
box-shadow: 0 0 15px rgba(0,150,255,0.3);
}

.donate span { color: #e84c70; }
.youtube span { color: #ff3030; }
.aparat span { color: #269edc; }
.instagram span { color: #c044a0; }
.telegram span { color: #269edc; }
.email span { color: #64748b; }


