/* متغیرهای رنگی اختصاصی برند بایتون */
:root {
    --navy-blue: #0A192F; 
    --siemens-green: #009999; 
    --black: #111111; 
    --white: #FFFFFF; 
    --light-bg: #F4F6F9; 
    --text-gray: #444444;
}

/* ---------------- فراخوانی دقیق فونت‌های ایران‌سنس ---------------- */
@font-face {
    font-family: 'IranSans';
    src: url('../fonts/IRANSansWeb.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'IranSans';
    src: url('../fonts/IRANSansWeb_Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
}
@font-face {
    font-family: 'IranSans';
    src: url('../fonts/IRANSansWeb_Bold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'IranSans', Tahoma, sans-serif;
    direction: rtl; /* سایت کاملا راست‌چین */
}

body {
    background-color: var(--light-bg);
    color: var(--black);
    line-height: 1.6;
    overflow-x: hidden; /* جلوگیری از اسکرول افقی هنگام انیمیشن */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* هدر - تغییر چیدمان به سمت راست */
.header {
    background-color: var(--white);
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid var(--siemens-green);
}

.header-container {
    display: flex;
    justify-content: flex-start; /* قرار گرفتن منوها بلافاصله بعد از لوگو در سمت راست */
    align-items: center;
    height: 85px;
    gap: 60px; /* فاصله شیک بین لوگو و شروع منوها */
}

.logo img {
    height: 60px; 
    vertical-align: middle;
    transition: transform 0.3s;
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--navy-blue);
    font-weight: 500;
    font-size: 16px;
    padding: 10px 0;
    position: relative;
    transition: color 0.3s;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 3px;
    background-color: var(--siemens-green);
    border-radius: 5px;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after, .nav-menu a.active::after {
    width: 100%;
}

.nav-menu a:hover, .nav-menu a.active {
    color: var(--siemens-green);
    font-weight: bold;
}

/* بخش اصلی (Hero) */
.hero {
    background-color: var(--navy-blue);
    background-image: linear-gradient(135deg, var(--navy-blue) 0%, var(--black) 100%);
    color: var(--white);
    padding: 100px 0;
    text-align: center;
}

.hero h2 {
    font-size: 40px;
    margin-bottom: 20px;
    color: var(--siemens-green);
    font-weight: bold;
}

.hero p {
    font-size: 18px;
    margin-bottom: 40px;
    color: #CCD6F6;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

/* دکمه‌ها (اضافه شدن افکت Glow درخشان) */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    margin: 0 10px;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--siemens-green);
    color: var(--white);
    border: 2px solid var(--siemens-green);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--siemens-green);
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(0, 153, 153, 0.5); /* افکت درخشش */
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--siemens-green);
}

.btn-outline:hover {
    background-color: var(--siemens-green);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(0, 153, 153, 0.5); /* افکت درخشش */
}

/* بخش‌ها و کارت‌ها */
.page-section {
    padding: 80px 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h3 {
    color: var(--navy-blue);
    font-size: 32px;
    margin-bottom: 10px;
    font-weight: bold;
}

.section-title p {
    color: var(--text-gray);
    font-size: 15px;
}

.grid-products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-top: 4px solid var(--siemens-green);
    transition: all 0.4s ease; /* انیمیشن نرم‌تر */
    text-align: right;
    position: relative;
    overflow: hidden;
}

/* افکت فوق‌العاده هنگام هاور شدن کارت‌ها */
.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 153, 153, 0.15); /* درخشش زیر کارت */
    border-color: var(--navy-blue);
}

.product-img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    margin-bottom: 15px;
    border-radius: 8px;
    background-color: #F8FAFC;
    padding: 5px;
    border: 1px solid #E2E8F0;
    transition: 0.3s;
}

.product-card:hover .product-img {
    border-color: var(--siemens-green);
}

/* استایل آیکون‌های SVG (در صورت استفاده به جای عکس) */
.icon-box {
    background: rgba(0, 153, 153, 0.1); width: 60px; height: 60px; border-radius: 12px; display: flex; justify-content: center; align-items: center; margin-bottom: 15px; transition: 0.3s;
}
.product-card:hover .icon-box { background: var(--siemens-green); }
.product-card:hover .icon-box svg { stroke: var(--white); }

.product-card h4 {
    color: var(--navy-blue);
    margin-bottom: 10px;
    font-size: 20px;
    font-weight: bold;
    transition: 0.3s;
}

.product-card:hover h4 {
    color: var(--siemens-green);
}

.product-card p {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.8;
}

/* فرم تماس و باکس‌ها */
.content-box {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-top: 4px solid var(--siemens-green);
}
.content-box p {
    margin-bottom: 15px;
    line-height: 1.8;
    text-align: justify;
    color: var(--text-gray);
}
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.contact-form input, .contact-form textarea {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 14px;
}

/* ---------------- کلاس‌های انیمیشن اسکرول (Scroll Reveal) ---------------- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
/* ----------------------------------------------------------------------- */

/* ---------------- دکمه‌های شناور شبکه‌های اجتماعی (مخفی و کشویی) ---------------- */
.social-fab-container {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 999;
    display: flex;
    flex-direction: column-reverse; /* دکمه اصلی پایین، بقیه شبکه‌ها به سمت بالا باز بشن */
    align-items: center;
    gap: 15px;
}

/* دکمه اصلی (آیکون تماس) که همیشه پیداست اما نیمه‌شفاف و مزاحم دید نیست */
.main-fab {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background-color: var(--siemens-green);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 153, 153, 0.4);
    cursor: pointer;
    transition: 0.3s;
    opacity: 0.6; /* شفافیت برای جلوگیری از شلوغی صفحه */
}
.main-fab svg { width: 28px; height: 28px; fill: white; }

.social-fab-container:hover .main-fab {
    opacity: 1; /* وقتی موس رفت روش کاملا پررنگ بشه */
    transform: scale(1.1);
}

/* لیست شبکه‌های اجتماعی که در حالت عادی مخفی است */
.social-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px); /* کمی پایین‌تر تا با انیمیشن بیاد بالا */
    transition: all 0.3s ease;
}

/* باز شدن لیست وقتی موس میره روی محفظه */
.social-fab-container:hover .social-list {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.social-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: 0.3s;
    position: relative;
}
.social-btn:hover { transform: scale(1.15); }
.social-btn svg { width: 22px; height: 22px; fill: white; }

.soc-whatsapp { background-color: #25D366; }
.soc-bale { background-color: #3bb2ce; }
.soc-eitaa { background-color: #e5652e; }
.soc-rubika { background-color: #7b1fa2; }
.soc-linkedin { background-color: #0077b5; }
.soc-phone { background-color: #333333; }

/* تولتیپ (نمایش اسم روی آیکون) */
.social-btn::before {
    content: attr(data-name);
    position: absolute;
    left: 60px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
}
.social-btn:hover::before { opacity: 1; left: 55px; }

/* ----------------------------------------------------------------- */
/* طراحی فوتر (ساده، مینیمال، شیک و غیر ثابت) */
.footer {
    background-color: var(--navy-blue);
    padding: 40px 0 15px;
    border-top: 3px solid var(--siemens-green);
    margin-top: 60px;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.footer-brand h4 {
    color: var(--siemens-green);
    font-size: 20px;
    margin-bottom: 5px;
    font-weight: bold;
}
.footer-brand p {
    font-size: 13px;
    color: #8892b0;
}
.footer-contact p {
    font-size: 14px;
    color: #CCD6F6;
    margin-bottom: 5px;
    direction: ltr;
    text-align: right;
}
.copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
    font-size: 12px;
    color: #8892b0;
}
/* ----------------------------------------------------------------- */

/* =========================================================
   کدهای رسپانسیو (مخصوص موبایل و تبلت)
   ========================================================= */

/* دکمه منوی همبرگری (در دسکتاپ مخفی است) */
.hamburger-btn {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}
.hamburger-btn svg { width: 32px; height: 32px; fill: var(--navy-blue); }

@media screen and (max-width: 768px) {
    /* تنظیمات هدر و منوی موبایل */
    .header-container {
        justify-content: space-between; /* لوگو سمت راست، منو سمت چپ */
        height: 70px;
        gap: 0;
    }
    .hamburger-btn { display: block; }
    
    .nav-menu {
        position: absolute;
        top: 70px;
        right: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        gap: 0;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        /* افکت باز شدن منو به صورت کشویی */
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.4s ease-in-out;
    }
    .nav-menu.mobile-active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    
    .nav-menu a {
        padding: 15px 20px;
        border-bottom: 1px solid #f0f0f0;
        width: 100%;
        display: block;
    }
    .nav-menu a::after { display: none; } /* خط زیر منوها در موبایل حذف شود */

    /* تنظیمات بخش Hero (بنر بالا) */
    .hero { padding: 60px 0; }
    .hero h2 { font-size: 26px; line-height: 1.5; }
    .hero p { font-size: 15px; padding: 0 10px; }
    .hero-buttons { display: flex; flex-direction: column; gap: 15px; padding: 0 20px; }
    .btn { margin: 0; text-align: center; }

    /* تنظیمات فاصله‌ها و عناوین */
    .page-section { padding: 50px 20px; }
    .section-title h3 { font-size: 24px; }
    .grid-products { gap: 20px; }

    /* تنظیمات فوتر جدید برای موبایل */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .footer-contact p {
        text-align: center;
    }

    /* دکمه شناور شبکه‌های اجتماعی در موبایل */
    .social-fab-container {
        bottom: 20px;
        left: 20px;
    }
    .main-fab { width: 48px; height: 48px; }
    .main-fab svg { width: 24px; height: 24px; }
    
    /* در موبایل چون هاور نداریم، وقتی کاربر یکبار لمس کنه منو باز میشه */
    .social-btn::before { display: none; } /* حذف تولتیپ اسم در موبایل که روی تصویر نیاد */
}