/* ===== CSS Reset & General Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    color: #2d3748;
    background-color: #ffffff;
    line-height: 1.6;
    direction: rtl;
}

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

/* ===== Colors & Design System ===== */
:root {
    --primary: #07533f;
    --primary-dark: #043d2f;
    --gold: #c5a04b;
    --gold-light: #e7d49a;
    --text-dark: #18372e;
    --text-light: #687b72;
    --bg-light: #e9ece5;
    --white: #ffffff;
    --border: #e6e3d8;
}

/* ===== Header & Navigation ===== */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: box-shadow 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    flex-shrink: 0;
}

.logo-img {
    height: 68px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 10px;
    align-items: center;
}

.nav-list > li > a {
    padding: 8px 16px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 6px;
}

.nav-list > li > a:hover {
    background-color: var(--bg-light);
    color: var(--primary);
}

/* ===== Dropdown Menu ===== */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--white);
    list-style: none;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 250px;
    padding: 8px 0;
    margin-top: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 200;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    border-bottom: 1px solid var(--border);
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s ease;
}

.dropdown-menu a:hover {
    background-color: var(--bg-light);
    color: var(--primary);
    padding-right: 24px;
}

/* ===== Menu Toggle Button (Mobile) ===== */
.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ===== Hero Section ===== */
.hero {
    padding: 80px 0;
    background: linear-gradient(135deg, #e4eee5 0%, #e9ede8 100%);
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
}

.hero-description {
    font-size: 18px;
    color: var(--text-light);
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(16, 185, 129, 0.3);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.hero-image {
    display: flex;
    justify-content: center;
}

.profile-img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.15);
    object-fit: cover;
}

.hero-founder {
    background-color: var(--white);
    padding: 24px;
    border-radius: 12px;
    border-right: 4px solid var(--primary);
}

.founder-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.founder-title {
    font-size: 14px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 8px;
}

.founder-subtitle,
.founder-method {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 4px;
}

.founder-experience {
    font-size: 13px;
    color: var(--primary);
    font-weight: 600;
    margin-top: 8px;
}

/* ===== Roadmap Section ===== */
.roadmap {
    padding: 80px 0;
    background-color: var(--white);
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 50px;
}

.roadmap-image {
    text-align: center;
}

.roadmap-img {
    width: 100%;
    max-width: 900px;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

/* ===== Services Section ===== */
.services {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--white);
    padding: 40px 24px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border-top: 4px solid var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(16, 185, 129, 0.15);
}

.card-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.card-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.card-description {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.8;
}

/* ===== Stats Section ===== */
.stats {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.stat-item {
    text-align: center;
    color: var(--white);
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 18px;
    font-weight: 500;
    opacity: 0.95;
}

/* ===== FAQ Section ===== */
.faq {
    padding: 80px 0;
    background-color: var(--white);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 24px;
    background-color: var(--bg-light);
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: right;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    font-family: 'Vazirmatn', sans-serif;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background-color: #eef2f5;
}

.faq-toggle {
    font-size: 24px;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: var(--white);
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 24px;
}

.faq-answer p {
    color: var(--text-light);
    line-height: 1.8;
}

/* ===== Footer ===== */
.footer {
    background-color: var(--text-dark);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    align-items: center;
}

.footer-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.footer-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.footer-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    padding: 10px 20px;
    border: 2px solid var(--primary);
    border-radius: 6px;
}

.footer-link:hover {
    background-color: var(--primary);
    color: var(--white);
}

.footer-text {
    font-size: 14px;
    opacity: 0.8;
}

/* ===== Responsive Design ===== */

/* Tablet (768px and below) */
@media (max-width: 768px) {
    .logo-img { height: 60px; max-width: 190px; }
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .nav {
        display: none;
        position: absolute;
        top: 70px;
        right: 0;
        left: 0;
        background-color: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        z-index: 150;
    }

    .nav.active {
        display: flex;
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .nav-list > li {
        width: 100%;
    }

    .nav-list > li > a {
        display: block;
        width: 100%;
        padding: 12px 16px;
    }

    .menu-toggle {
        display: flex;
    }

    .dropdown-menu {
        position: static;
        opacity: 0;
        visibility: hidden;
        transform: scaleY(0);
        transform-origin: top;
        margin-top: 0;
        box-shadow: none;
        padding: 8px 0;
    }

    .dropdown.active .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: scaleY(1);
    }

    .dropdown-menu a {
        padding: 10px 16px 10px 32px;
    }

    .section-title {
        font-size: 28px;
        margin-bottom: 40px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero {
        padding: 60px 0;
        min-height: auto;
    }

    .roadmap,
    .services,
    .stats,
    .faq {
        padding: 60px 0;
    }

    .profile-img {
        max-width: 300px;
    }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }

    .hero-description {
        font-size: 14px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }

    .section-title {
        font-size: 24px;
    }

    .stat-number {
        font-size: 36px;
    }

    .stat-label {
        font-size: 14px;
    }

    .card-title {
        font-size: 18px;
    }

    .card-description {
        font-size: 13px;
    }

    .faq-question {
        padding: 16px;
        font-size: 14px;
    }

    .faq-answer {
        padding: 16px;
    }

    .hero {
        padding: 40px 0;
    }

    .roadmap,
    .services,
    .stats,
    .faq {
        padding: 40px 0;
    }

    .hero-founder {
        padding: 16px;
    }

    .founder-name {
        font-size: 16px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Large Desktop (1200px and above) */
@media (min-width: 1200px) {
    .container {
        padding: 0 40px;
    }

    .hero-title {
        font-size: 56px;
    }

    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ===== Accessibility ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Focus visible for keyboard navigation */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}


/* ===== Axon Royal Green & Gold refresh ===== */
body { color: var(--text-dark); background: var(--white); }
.header { background: rgba(255,255,255,.97); border-bottom: 1px solid rgba(197,160,75,.22); }
.logo-img { filter: drop-shadow(0 3px 8px rgba(7,83,63,.10)); }
.nav-list > li > a:hover, .dropdown-menu a:hover { color: var(--gold); background: #eae7dc; }
.dropdown-menu { border: 1px solid #eee8d7; }
.menu-toggle span { background: var(--primary); }
.hero {
  background: radial-gradient(circle at 12% 18%, rgba(197,160,75,.13), transparent 32%),
              linear-gradient(135deg, #f8faf6 0%, #edf4ef 52%, #fffdf7 100%);
}
.hero-title { font-size: 32px; color: var(--primary-dark); line-height: 1.45; }
.hero-title-kicker { display:block; font-size:.72em; color:var(--gold); font-weight:700; margin-bottom:12px; }
.hero-title-main { display:block; }
.hero-description { color: #64776d; }
.btn-primary { background: var(--primary); box-shadow: 0 8px 18px rgba(7,83,63,.16); }
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 10px 24px rgba(7,83,63,.24); }
.btn-secondary { color:var(--primary); border-color:var(--gold); background:rgba(255,255,255,.85); }
.btn-secondary:hover { background:var(--gold); border-color:var(--gold); color:#fff; }
.profile-img { box-shadow: 0 22px 48px rgba(7,83,63,.18); border: 5px solid rgba(255,255,255,.8); }
.hero-founder { border-right-color:var(--gold); box-shadow:0 8px 24px rgba(7,83,63,.06); }
.founder-title,.founder-experience { color:var(--primary); }
.roadmap { background:var(--white); }
.section-title { color:var(--primary-dark); }
.section-title::after { content:""; display:block; width:54px; height:3px; border-radius:3px; background:var(--gold); margin:14px auto 0; }
.services { background:linear-gradient(180deg,#e9ece5,#f4f4ef); }
.service-card { border-top:3px solid var(--gold); border-bottom:1px solid #eee9dc; box-shadow:0 8px 26px rgba(13,57,43,.055); }
.service-card:hover { box-shadow:0 16px 34px rgba(7,83,63,.12); }
.card-icon { width:76px; height:76px; display:flex; align-items:center; justify-content:center; margin:0 auto 22px; border-radius:24px 24px 24px 8px; background:linear-gradient(145deg,#dfe9e1,#f0eadb); border:1px solid #e8dfc7; color:var(--primary); font-size:38px; box-shadow:inset 0 1px 0 #fff; }
.card-title { color:var(--primary-dark); }
.stats { background:linear-gradient(120deg,#043d2f 0%,#07533f 58%,#0b6249 100%); position:relative; overflow:hidden; }
.stats::before { content:""; position:absolute; inset:0; pointer-events:none; background:radial-gradient(circle at 85% 20%,rgba(231,212,154,.17),transparent 30%),radial-gradient(circle at 12% 90%,rgba(255,255,255,.07),transparent 30%); }
.stats-grid { position:relative; }
.stat-number { color:#f0d98f; text-shadow:0 3px 16px rgba(0,0,0,.12); font-variant-numeric:tabular-nums; }
.stat-label { color:#fff; }
.faq-item { border-color:#e8e3d6; }
.faq-question { background:#f7f8f3; color:var(--primary-dark); }
.faq-question:hover { background:#f0f3eb; }
.faq-toggle { color:var(--gold); }
.footer { background:#062f25; border-top:3px solid var(--gold); }
.footer-link { border-color:var(--gold); }
.footer-link:hover { background:var(--gold); border-color:var(--gold); color:#fff; }
a:focus-visible, button:focus-visible { outline-color:var(--gold); }
@media (min-width:1200px) { .hero-title { font-size:36px; } }
@media (max-width:768px) {
  .hero-title { font-size:26px; }
  .hero-title-kicker { font-size:.76em; }
  .nav { border-bottom:2px solid var(--gold); }
}
@media (max-width:480px) { .hero-title { font-size:22px; } }

/* ===== Background music control ===== */
.music-toggle {
    position: fixed;
    left: 18px;
    bottom: 18px;
    z-index: 999;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 17px;
    border: 1px solid var(--gold);
    border-radius: 999px;
    background: var(--primary-dark);
    color: var(--white);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 8px 22px rgba(4, 61, 47, .22);
    cursor: pointer;
    transition: transform .2s ease, background .2s ease;
}
.music-toggle:hover {
    transform: translateY(-2px);
    background: var(--primary);
}
.music-toggle[hidden] { display: none; }
.music-toggle-icon { color: var(--gold-light); font-size: 19px; line-height: 1; }
.music-toggle.is-playing .music-toggle-icon { animation: musicPulse 1.1s ease-in-out infinite; }
@keyframes musicPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.18); }
}
@media (max-width: 480px) {
    .music-toggle { left: 12px; bottom: 12px; padding: 10px 14px; font-size: 13px; }
}
