/* style.css - نسخه نهایی SmartUrmia */
/* =================================
   HERO HOME – فقط صفحه اول
   ================================= */
/* ================================
   HERO HOME – نسخه نهایی پایدار
   ================================ */

.hero-home {
    position: relative;
    background: #cfd3d8;
    overflow: hidden;
}

/* اسلایدر تمام‌قد */
.hero-home .hero-slider {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* تصاویر اسلاید */
.hero-home .hero-slider img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: blur(0px);
    opacity: 0;
    transition: opacity 1.5s ease;
    pointer-events: none;
}

/* فقط تصویر فعال دیده شود */
.hero-home .hero-slider img.active {
    opacity: 1;
}

/* لایه تیره */
.hero-home::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 1;
}

/* particles روی عکس */
.hero-home #particles-js {
    position: absolute;
    inset: 0;
    z-index: 2;
}

/* محتوای متنی */
.hero-home .hero-content {
    position: relative;
    z-index: 3;
}
/* =================================
   HERO HOME – فقط صفحه اول
   ================================= */

body {
    margin: 0;
    font-family: sans-serif;
    background: #f5f7fa;
    direction: rtl;
    color: #222;
}

header {
    background: #0b1e39;
    color: white;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row-reverse;
}

header nav a {
    color: white;
    margin-left: 20px;
    text-decoration: none;
    font-size: 15px;
}

.hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.6)), url('images/home-smart.jpg');
    background-size: cover;
    background-position: center;
    padding: 240px 40px;
    text-align: right;
    color: white;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    max-width: 450px;
}

.btn {
    display: inline-block;
    padding: 10px 25px;
    background: #00d4ff;
    color: #000;
    border-radius: 10px;
    text-decoration: none;
    margin-top: 20px;
}

.section {
    padding: 60px 40px;
    text-align: center;
}

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

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    text-align: center;
    cursor: pointer;
}

.card img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
}

.contact {
    background: #0b1e39;
    color: white;
    padding: 60px 40px;
    text-align: center;
}

footer {
    background: #061120;
    color: #aaa;
    text-align: center;
    padding: 20px;
    font-size: 14px;
}

/* گالری */
.gallery-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    display: none;
    z-index: 9999;
    padding: 40px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-item {
    position: relative;
}

.gallery-item img {
    width: 100%;
    border-radius: 10px;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    color: white;
    font-size: 22px;
    padding: 6px 10px;
    cursor: pointer;
    border-radius: 50%;
}

.gallery-prev { left: 5px; }
.gallery-next { right: 5px; }

.close-btn {
    position: fixed;
    top: 0px;
    left: 30px;
    font-size: 36px;
    color: white;
    cursor: pointer;
}
/* لینک‌های شبکه اجتماعی در بخش تماس */
.contact nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    margin: 0 8px;
}

.contact nav a:hover {
    text-decoration: underline;
    opacity: 0.85;
}
.contact .social {
    margin-top: 15px;
}
#services {
    background: linear-gradient(180deg, #0b1e39 0%, #0f2a4d 100%);
}

#services .title {
    color: #ffffff;
}

#services .card {
    background: #ffffff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#services .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}
#services .card img {
    transition: transform 0.4s ease;
}

#services .card:hover img {
    transform: scale(1.04);
}
/* ================================
   بهبود مدرن و مینیمال – Global
   ================================ */

body {
    line-height: 1.8;
    letter-spacing: 0.2px;
}

/* ================================
   Header – کمی ظریف‌تر
   ================================ */

header {
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

header nav a {
    opacity: 0.9;
    transition: opacity 0.25s ease;
}

header nav a:hover {
    opacity: 1;
}

/* ================================
   Buttons – مدرن‌تر
   ================================ */

.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.25);
}

/* ================================
   Cards – نسخه حرفه‌ای
   ================================ */

.card {
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.card h3 {
    font-size: 18px;
    margin: 12px 0 8px;
}

.card p {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
}

.card:hover {
    transform: translateY(-8px);
}

/* ================================
   Services section – هماهنگ‌تر
   ================================ */

#services {
    padding-top: 80px;
    padding-bottom: 80px;
}

#services .cards {
    gap: 30px;
}

/* ================================
   Contact – تمیز و خوانا
   ================================ */

.contact p {
    margin: 8px 0;
}

.contact .phone {
    font-size: 18px;
    font-weight: bold;
}

.contact nav {
    margin-top: 18px;
}

/* ================================
   Footer – مینیمال‌تر
   ================================ */

footer {
    letter-spacing: 0.5px;
}
/* ================================
   یکسان‌سازی پس‌زمینه کل سایت
   ================================ */

/* تمام بخش‌های اصلی */
.section {
    background: linear-gradient(180deg, #0b1e39 0%, #0f2a4d 100%);
}

/* عنوان‌ها روی زمینه تیره */
.section .title,
.section h2,
.section h3 {
    color: #0b1e39;
}

/* متن‌های توضیح */
.section p {
   color: #797f87;
}

/* کارت‌ها همیشه سفید بمانند */
.card {
    background: #ffffff;
}

/* صفحات خاص که نباید تغییر کنند */
.contact,
footer {
    background: #0b1e39;
}
#projects {
    background: linear-gradient(180deg, #0b1e39 0%, #0f2a4d 100%);
}

#projects .title {
    color: #ffffff;
}
.hero-content h2{
    font-size:42px;
    margin:25px 0 15px;
    color:#fff;
    font-weight:bold;
}
/* لوگوی SMARTURMIA */
.logo{
    font-size: 30px;
    font-weight: 900;
    letter-spacing: 3px;
    color: #ffffff;
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(0,0,0,.35);
}