/*
Theme Name: CryptoAcademy Pro
Description: Custom WordPress theme for crypto education and programming services.
Version: 1.1
Author: Grok
*/

:root {
  --primary: #6366f1;
  --dark: #1e1b4b;
  --light: #f1f5f9;
  --success: #10b981;
  --text: #1f2937;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'IRANSans', 'Tahoma', sans-serif;
  background: #0f172a;
  color: #e2e8f0;
  line-height: 1.8;
  direction: rtl;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 1rem;
}

header {
  background: linear-gradient(135deg, var(--dark), var(--primary));
  color: white;
  padding: 1.2rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo h1 {
  font-size: 1.8rem;
  font-weight: 700;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

nav ul li a:hover {
  color: var(--success);
}

.crypto-price {
  background: #0d9488;
  padding: 0.6rem;
  text-align: center;
  font-weight: bold;
  color: white;
  font-size: 1.1rem;
  letter-spacing: 1px;
}

.hero {
  background: linear-gradient(135deg, #1e293b, #0f172a), url('data:image/svg+xml,...') center/cover;
  color: white;
  text-align: center;
  padding: 5rem 0;
  border-bottom: 4px solid var(--primary);
}

.hero h1 {
  font-size: 3.2rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.btn {
  display: inline-block;
  background: var(--success);
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  margin: 0.5rem;
  font-weight: 600;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.btn:hover {
  background: #059669;
  transform: translateY(-3px);
}

.btn-outline {
  background: transparent;
  border: 2px solid white;
  color: white;
}

.btn-outline:hover {
  background: white;
  color: var(--primary);
}

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 4rem 0;
  padding: 0 1rem;
}

.card {
  background: #1e293b;
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  text-align: center;
  transition: transform 0.3s;
  border: 1px solid #334155;
}

.card:hover {
  transform: translateY(-10px);
}

.card h3 {
  color: var(--primary);
  margin: 1.5rem 0;
  font-size: 1.5rem;
}

.card p {
  color: #94a3b8;
  font-size: 1.1rem;
}

footer {
  background: #0f172a;
  color: #64748b;
  text-align: center;
  padding: 2.5rem 0;
  border-top: 1px solid #334155;
  margin-top: 3rem;
}

/* فونت ایرانی */
@font-face {
  font-family: 'IRANSans';
  src: url('https://cdn.fontcdn.ir/Font/Persian/IRANSans/IRANSans.woff') format('woff');
  font-weight: normal;
  font-display: swap;
}

@media (max-width: 768px) {
  .hero h1 { font-size: 2.2rem; }
  nav ul { flex-direction: column; gap: 1rem; }
  .btn { padding: 0.8rem 1.8rem; font-size: 0.9rem; }
}