@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;700&display=swap');

:root {
    --primary-color: #556B2F; /* رنگ زیتونی (Olive) گرم و اصیل */
    --secondary-color: rgba(245, 247, 240, 0.85); /* پس‌زمینه لایت هماهنگ با تم زیتونی */
    --text-color: #333;
    --accent-color: #6B8E23; /* زیتونی روشن‌تر (OliveDrab) برای جزئیات و هاورها */
    --link-color: var(--text-color);
    --link-hover-color: var(--primary-color);
    --header-bg-color: rgba(255, 255, 255, 0.95);
    --footer-bg-color: rgba(45, 52, 38, 0.9); /* فوتر تیره هماهنگ با تم زیتونی */
    --footer-text-color: #eee;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    color: var(--text-color);
    line-height: 1.7;
    direction: rtl;
    text-align: right;
    overflow-x: hidden;
    background-color: #333;
    background-image: url('https://github.com/emenmousavi/tamannah/blob/main/images/Screenshot_2025-08-20_182627_upscaled.png?raw=true');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(3px);
    z-index: -1;
}

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

/* Header & Navigation */
header {
    background-color: var(--header-bg-color);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0.75rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.logo img {
    height: 40px;
    width: auto;
    display: block;
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

header nav a {
    text-decoration: none;
    color: var(--link-color);
    font-size: 1rem;
    font-weight: 700;
    position: relative;
    padding: 0.5rem 0;
    white-space: nowrap;
    transition: color 0.3s ease;
}

header nav a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease-in-out;
}

header nav a:hover {
    color: var(--link-hover-color);
}

header nav a:hover::before {
    width: 100%;
}

.hamburger, 
.mobile-nav {
    display: none;
}

/* Main Content */
main {
    padding-top: 90px;
    background-color: var(--secondary-color);
    padding-bottom: 40px;
    min-height: calc(100vh - 150px);
}

.hero {
    text-align: center;
    padding: 50px 20px;
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(5px);
    margin-bottom: 20px;
    border-radius: 8px;
}

.hero h1 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 700;
}

.hero h2 {
    font-size: 1.2rem;
    color: var(--text-color);
    font-weight: 300;
}

.section {
    padding: 20px 0;
}

.thankyou-container {
    max-width: 850px;
    margin: 0 auto;
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.05);
}

/* Footer */
footer {
    background-color: var(--footer-bg-color);
    backdrop-filter: blur(5px);
    color: var(--footer-text-color);
    padding: 30px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-nav a {
    text-decoration: none;
    color: var(--footer-text-color);
    font-size: 0.9rem;
    font-weight: 700;
    transition: color 0.2s ease;
}

.footer-nav a:hover {
    color: var(--primary-color);
}

footer p {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* اصلاح نهایی نمایش آیکون‌های فوتر */
.social-links {
    margin-bottom: 15px;
    display: flex;
    gap: 20px;
    justify-content: center;
}

.social-links a {
    color: var(--footer-text-color);
    font-size: 1.4rem;
    text-decoration: none;
    transition: transform 0.2s ease, color 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social-links a svg {
    width: 24px;
    height: 24px;
    fill: none; /* برای جلوگیری از پر شدن داخل آیکون‌ها به شکل مربع */
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* رنگ اختصاصی هنگام هاور روی هر آیکون */
.social-links a[title="تلگرام"]:hover { color: #0088cc; }
.social-links a[title="اینستاگرام"]:hover { color: #C13584; }
.social-links a[title="ایمیل"]:hover { color: #52ce1c; }

.social-links a:hover {
    transform: scale(1.15);
}

/* Responsive Mobile Nav */
@media (max-width: 768px) {
    header nav {
        display: none !important;
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 25px;
        cursor: pointer;
        z-index: 10001;
        padding: 2px;
    }

    .hamburger span {
        width: 100%;
        height: 3px;
        background-color: var(--primary-color);
        border-radius: 2px;
        transition: all 0.3s ease-in-out;
    }

    .hamburger.open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    .hamburger.open span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.open span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    .mobile-nav {
        display: block !important;
        position: fixed;
        top: 60px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background-color: var(--header-bg-color);
        backdrop-filter: blur(15px);
        transition: right 0.3s ease-in-out;
        z-index: 10000;
        padding-top: 20px;
    }

    .mobile-nav.active {
        right: 0 !important;
    }

    .mobile-nav ul {
        list-style: none !important;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .mobile-nav li {
        margin: 12px 0;
        width: 100%;
        text-align: center;
    }

    .mobile-nav a {
        font-size: 1.1rem;
        font-weight: 700;
        color: var(--link-color);
        text-decoration: none;
        display: block;
        padding: 10px;
    }
}
