/* fonts-befor-:root */

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Light.ttf') format('truetype');
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Regular.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Bold.ttf') format('truetype');
    font-weight: 700;
    font-display: swap;
}

/* reset-browser-variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* main-color-background */
    /* deep-dark */
    --bg-primary: #0a0a1a;
    /* deeper-layers */
    --bg-secondary: #0d0d2b;
    /* glass */
    --bg-glass: rgba(255, 255, 255, 0.03);

    /* neon-colors-cyberpunk */
    --neon-cyan: #00f0ff;
    --neon-purple: #7b2ffc;
    --neon-pink: #ff2d95;
    --neon-green: #39ff14;

    /* text-colors */
    --text-primary: #e0e0ff;
    --text-secondary: #8888bb;
    --text-muted: #555577;

    /* verges-glass */
    --border-glass: rgba(255, 255, 255, 0.08);
    --shadow-neon: 0 0 30px rgba(0, 240, 255, 0.15);

    /* fonts */
    --font-family: 'Vazirmatn', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* typography-public-setting */
body {
    font-family: var(--font-family);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.8;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-font-smoothing: grayscale;
}

/* کانتینر وظیفه دارد محتوا را در وسط صفحه قرار دهد
ودراندازه‌های مختلف صفحه حداکثر عرض را تنظیم کند */
.container {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* glassmorphism-effect-with-blur */
.glass {
    background: var(--bg-glass);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

/* Header and Nav => Sticky + Glass
position: sticky;=>Always stay at the top of the page.
z-index: 1000;=>Always above all other elements. */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 12px 0;
    background: rgba(10, 10, 25, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

/* چیدمان داخلی هدر: لوگو در راست و منو در چپ درحالت آرتی‌ال */
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* چون دایرکشن راست به چپ هست گزینه زیر معکوس و لوگو به چپ میرود */
    flex-direction: row-reverse;
    gap: 20px;
}

/* Logo Style */
.logo {
    font-size: 24px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    -webkit-background-clip: text;
    /* Important for mobile */
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* Fallback */
    color: transparent;
    letter-spacing: 2px;
    white-space: nowrap;
}

/* Navigation Menu */
.nav {
    display: flex;
    /* Spacing between links */
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

/* Each link at nav */
.nav a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
}

/* Underline خط زیرین افکت‌دار برای لینک‌ها
::afterیک المان مجازی زیرلینک می‌سازیم که در هاور پهن می‌شود */
.nav a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    /*ازوسط شروع می‌شود*/
    right: 50%;
    width: 0;
    height: 2px;
    background: var(--neon-cyan);
    box-shadow: 0 0 10px var(--neon-cyan);
    transition: all 0.3s ease;
    /*برای راست‌چین کردن دقیق*/
    transform: translateX(50%);
}

.nav a:hover::after {
    width: 70%;
}

/* لینک فعال(همان صفحه‌ای که کاربر درآن است) */
.nav a.active {
    color: var(--text-primary);
    background: rgba(0, 240, 255, 0.08);
}

.nav a.active::after {
    width: 70%;
}

/* (Hero)بخش قهرمان باگرادیانت پس‌زمینه وانیمیشن
برای ایجاد هاله‌های نئونی‌از radial-gradient استفاده شده است */
.hero {
    /* حداقل ۸۵ درصد ارتفاع صفحه */
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 0;
    background: radial-gradient(circle at 30% 30%, rgba(123, 47, 255, 0.15), transparent 60%),
        radial-gradient(circle at 70% 80%, rgba(0, 240, 255, 0.08), transparent 50%),
        var(--bg-primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

/* Hero content layout */
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    max-width: 900px;
    margin: auto;
    padding: 0 10px;
}

/* Hero Title */
.hero-title {
    font-size: clamp(2.2rem, 7vw, 5.5rem);
    font-weight: 900;
    line-height: 1.2;
    background: linear-gradient(135deg, #ffffff 20%, var(--neon-cyan) 80%);
    -webkit-background-clip: text;
    /* Mainkey for mobile */
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* Fallback */
    color: #ffffff;
    text-shadow: 0 0 40px rgba(0, 240, 255, 0.1);
    display: inline-block;
    /* Prevent word breaking */
    word-break: keep-all;
    max-width: 100%;
    padding: 0 5px;
}

.highlight {
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: var(--neon-purple);
    display: inline-block;
}

/* Hero Subtitle-Prevent Clipping */
.hero-subtitle {
    font-size: clamp(0.9rem, 1.8vw, 1.3rem);
    color: var(--text-secondary);
    letter-spacing: 4px;
    font-weight: 300;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 10px 24px;
    display: inline-block;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    color: #0a0a1a;
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0px 0px 50px rgba(0, 240, 255, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--neon-cyan);
}

/* Services with 3columns */
.services {
    padding: 70px 0;
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: clamp(0.95rem, 1.2vw, 1.15rem);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Cards with Glasmorphism Effect */
.card {
    padding: 35px 28px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.4s cubic-bezier(0.175, 0.855, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(0, 240, 255, 0.06), transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.card:hover::before {
    opacity: 1;
}

.card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 240, 255, 0.15);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    background: rgba(255, 255, 255, 0.05);
}

.card-number {
    font-size: 2.8rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: var(--neon-purple);
    display: inline-block;
    margin-bottom: 8px;
    font-family: 'Segoe UI', monospace;
}

.card h3 {
    font-size: 1.6rem;
    margin-bottom: 14px;
    color: var(--neon-cyan);
    letter-spacing: 0.5px;
}

.card p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 18px;
    font-size: 0.95rem;
}

/* Card Links-Final Version (Combination of Both Methods) */
.card a.card-link {
    color: var(--neon-cyan);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 8px;
    position: relative;
    /* برای اینکه هاور به درستی کارکنه */
    z-index: 2;
    background: transparent;
}

/* Neon Underline Effect */
.card a.card-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    right: 50%;
    width: 0;
    height: 2px;
    background: var(--neon-cyan);
    box-shadow: 0 0 10px var(--neon-cyan);
    transition: all 0.3s ease;
    transform: translate(50%);
}

.card a.card-link:hover::after {
    width: 70%;
}

/* Flash Icon */
.card a.card-link::before {
    content: '←';
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.5;
    font-size: 1.1rem;
}

.card a.card-link:hover::before {
    transform: translateX(-6px);
    opacity: 1;
}

/* Main Hover */
.card a.card-link:hover {
    color: #ffffff !important;
    background: rgba(0, 240, 255, 0.12);
    letter-spacing: 1.5px;
    transform: translateX(-4px);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.08);
}

/* جلوگیری از تداخل با هاور کارت */
.card:hover a.card-link {
    color: var(--neon-cyan);
}

.card:hover a.card-link:hover {
    color: #ffffff !important;
    background: rgba(0, 240, 255, 0.18);
}

/* Stats بخش آمار */
.stats {
    padding: 70px 0;
    background: var(--bg-primary);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-size: clamp(2.2rem, 4vw, 3.8rem);
    font-weight: 900;
    background: linear-gradient(135deg, var(--neon-cyan), #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: var(--neon-cyan);
    text-shadow: 0 0 30px rgba(0, 240, 255, 0.1);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
    letter-spacing: 1px;
}

/* Footer */
.footer {
    background: #050510;
    padding-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-col.brand p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 15px 0 20px 0;
    max-width: 280px;
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: 0.3s;
}

.social-links a:hover {
    background: var(--neon-cyan);
    color: #0a0a1a;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
}

.footer-col h4 {
    color: var(--text-primary);
    font-size: 1.05rem;
    margin-bottom: 16px;
    font-weight: 700;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-col ul li a,
.footer-col ul li {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
}

.footer-col ul li a:hover {
    color: var(--neon-cyan);
    padding-right: 4px;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.newsletter-form input {
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: 0.3s;
    font-family: var(--font-family);
    width: 100%;
}

.newsletter-form input:focus {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.05);
}

.newsletter-form input::placeholder {
    color: var(--text-muted);
}

.newsletter-form .btn {
    padding: 12px 20px;
    width: 100%;
    text-align: center;
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-bottom strong {
    color: var(--neon-cyan);
}

/* فشردن دکمه های هنگام کلیک */
.btn:active {
    transform: scale(.92) !important;
    transition: transform 0.08s ease !important;
}

.card a.card-link:active {
    transform: scale(0.92) !important;
    transition: transform 0.08s ease !important;
}

.nav a:active {
    transform: scale(0.92) !important;
    transition: transform 0.08s ease !important;
}

.newsletter-form .btn:active {
    transform: scale(0.92) !important;
    transition: transform 0.08s ease !important;
}

.social-links a:active {
    transform: scale(0.92) !important;
    transition: transform 0.08s ease !important;
}

/* استایل‌های صفحه‌ی خدمات | Services page styles (services.php) */

/* هدر صفحه | Header Page */
.page-header {
    padding: 60px 0 40px 0;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.page-header h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: var(--neon-cyan);
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-top: 10px;
}

/* آیتم‌های خدمات | Services Items */
.services-page {
    padding: 60px 0;
}

.service-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 30px;
    padding: 40px;
    margin-bottom: 40px;
    align-items: start;
    transition: all 0.4s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 240, 255, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.service-icon {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: var(--neon-purple);
    font-family: 'Segoe UI', monospace;
    text-align: center;
}

.service-content h2 {
    font-size: 2rem;
    color: var(--neon-cyan);
    margin-bottom: 16px;
}

.service-content p {
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.service-features {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 25px;
}

.service-features li {
    color: var(--text-primary);
    font-size: 0.95rem;
    padding: 6px 0;
}

.service-features li::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--neon-cyan);
    border-radius: 50%;
    margin-left: 10px;
    box-shadow: 0 0 10px var(--neon-cyan);
}

/* (تماس سریع) CTA Section */
.cta-section {
    padding: 60px 0 80px 0;
}

.cta-box {
    padding: 50px 40px;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.cta-box h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.cta-box p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 25px;
}

/* ===
استایل‌های صفحه نمونه‌کارها | portfolio.php
Portfolio page styles
=== */
.portfolio-grid {
    padding: 60px 0;
}

.portfolio-grid .container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* کارت نمونه کار نسخه نهایی | Spotlight + Gradient Border */
.portfolio-card {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    /* برای tilt مهم */
    transform-style: preserve-3d;
    will-change: transform;
}

.portfolio-card:hover {
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow:
        0 0 30px rgba(0, 240, 255, 0.15),
        0 20px 60px rgba(0, 0, 0, 0.5);
}

/* هاله نور دنبال موس Spotlight سازگار با همه مرورگرها */
.portfolio-card::after {
    content: '';
    position: absolute;
    top: var(--mouse-y, 50%);
    left: var(--mouse-x, 50%);
    width: 200px;
    height: 200px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle,
            rgba(0, 240, 255, 0.25) 0%,
            rgba(0, 240, 255, 0.1) 40%,
            transparent 70%);
    pointer-events: none;
    /* بالای عکس زیرمتن */
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-card:hover::after {
    opacity: 1;
}

/* تصویر کارت لایه‌های محتوا| Image Card */
.portfolio-image {
    position: relative;
    overflow: hidden;
    height: 220px;
    background: var(--bg-secondary);
    z-index: 1;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-image img {
    transform: scale(1.05);
}

/* لایه روی عکس | Image Overlay */
.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(10, 10, 26, 0.8), transparent 60%);
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 16px;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

/* تگ پروژه | Project Tag */
.project-tag {
    display: inline-block;
    background: rgba(0, 240, 255, 0.15);
    border: 1px solid rgba(0, 240, 255, 0.2);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--neon-cyan);
    letter-spacing: 0.5px;
}

/* محتوای کارت | Card Content */
.portfolio-content {
    padding: 24px 20px 28px;
    position: relative;
    /* بالاتر از هاله */
    z-index: 3;
}

.portfolio-content h3 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-weight: 700;
}

.portfolio-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

/* لینک کارت | Card Link */
.portfolio-card .card-link {
    color: var(--neon-cyan);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 8px;
    position: relative;
    z-index: 3;
    background: transparent;
}

.portfolio-card .card-link:hover {
    color: #ffffff;
    background: rgba(0, 240, 255, 0.12);
    transform: translateX(-4px);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.08);
}

.portfolio-card .card-link:active {
    transform: scale(0.92) !important;
    transition: transform 0.8s ease !important;
}

/* ==================
 استایل‌های صفحه تماس
 ================== */

.contact-section {
    padding: 60px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-card {
    padding: 30px;
}

.contact-card h3 {
    color: var(--neon-cyan);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.contact-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-card ul li {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.contact-form {
    padding: 40px;
}

.contact-form h3 {
    color: var(--neon-cyan);
    font-size: 1.5rem;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255,255,255,0.04);
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
    font-family: var(--font-family);
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color:var(--text-muted);
}

.contact-form .btn {
    width: 100%;
}

/* (Responsive) | ریسپانسیو */
/* 1024px تبلت و صفحه‌های کوچکتر از */
@media (max-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .portfolio-grid .container {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

/* تبلت کوچک و موبایل بزرگ */
@media (max-width: 992px) {
    .hero {
        min-height: 70vh;
        padding: 40px 0;
    }

    .hero-title {
        font-size: clamp(2.5rem, 6vw, 3.8rem);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

/* 768px موبایل کمتر از */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        gap: 12px;
        padding: 6px 0;
    }

    .logo {
        font-size: 20px;
    }

    .nav {
        gap: 4px;
        justify-content: center;
        width: 100%;
    }

    .nav a {
        font-size: 12px;
        padding: 4px 10px;
    }

    .hero {
        min-height: 60vh;
        padding: 30px 0;
    }

    .hero-content {
        gap: 18px;
        padding: 0 10px;
    }

    .hero-title {
        font-size: clamp(1.8rem, 7vw, 2.8rem);
        line-height: 1.3;
        display: inline-block;
        word-break: keep-all;
        white-space: normal;
        max-width: 100%;
        padding: 0 5px;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .hero-subtitle {
        font-size: 0.85rem;
        letter-spacing: 2px;
        padding: 8px 16px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 95%;
    }

    .btn {
        padding: 12px 28px;
        font-size: 14px;
    }

    .grid-3 {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .card {
        padding: 28px 20px;
    }

    .card h3 {
        font-size: 1.4rem;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-col.brand p {
        max-width: 100%;
        margin: 12px auto 18px;
    }

    .social-links {
        justify-content: center;
    }

    .footer-col ul {
        align-items: center;
    }

    .newsletter-form {
        align-items: center;
        max-width: 350px;
        margin: 0 auto;
    }

    .newsletter-form input {
        width: 100%;
    }

    .service-item {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 30px 20px;
    }

    .service-features {
        grid-template-columns: 1fr;
        text-align: right;
    }

    .service-features li::before {
        margin-left: 8px;
    }

    .cta-box {
        padding: 30px 20px;
    }

    .cta-box h2 {
        font-size: 1.8rem;
    }

    .portfolio-grid .container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .portfolio-image {
        height: 180px;
    }

    .portfolio-content {
        padding: 18px 16px 22px;
    }

    .portfolio-content h3 {
        font-size: 1.1rem;
    }

    .contact-grid {
        grid-template-columns: 1f;
        gap: 30px
    }

    .contact-form {
        padding: 25px;
    }

    .contact-card {
        padding: 25px;
    }
}

/* 480px موبایل‌های خیلی کوچک کمتر از */
@media (max-width: 480px) {
    .hero {
        min-height: 50vh;
        padding: 20px 0;
    }

    .hero-title {
        font-size: clamp(1.5rem, 6vw, 2.2rem);
        line-height: 1.4;
    }

    .hero-subtitle {
        font-size: 0.75rem;
        letter-spacing: 1px;
        padding: 6px 12px;
        white-space: normal;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .card {
        padding: 20px 16px;
    }

    .btn {
        padding: 10px 24px;
        font-size: 13px;
    }

    .nav a {
        font-size: 11px;
        padding: 4px 8px;
    }
}