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

body {
    font-family: 'Vazirmatn', sans-serif;
    background: #f8f9fa;
    color: #2d3436;
    line-height: 1.8;
}

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

/* ===== هدر ===== */
header {
    background: #1a1ac2;
    color: #fff;
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

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

.logo h1 {
    font-size: 1.8rem;
    font-weight: 900;
    color: #fff;
}

.logo h1 span {
    color: #3572ff;
}

.logo p {
    font-size: 0.75rem;
    color: #b2bec3;
    margin-top: -2px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: #dfe6e9;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background: #3572ff;
    transition: 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover {
    color: #1225b4;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: #fff;
    border-radius: 3px;
    transition: 0.3s;
}

/* ===== هیرو ===== */
.hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #fff;
    padding: 160px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,107,53,0.08) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.15rem;
    color: #dfe6e9;
    max-width: 700px;
    margin: 0 auto 35px;
    line-height: 1.9;
}

.btn {
    display: inline-block;
    background: #afbb0f;
    color: #fff;
    padding: 14px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

.btn:hover {
    background: #3572ff;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255,107,53,0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid #3572ff;
    margin-right: 15px;
}

.btn-outline:hover {
    background: #3572ff;
}

/* ===== ویژگی‌ها ===== */
.features {
    padding: 80px 0;
    background: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 40px 25px;
}
/* =======================
        PRODUCTS
======================= */

.products{
    padding:70px 0;
    background:#f5f7fb;
}

.products-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:30px;
    margin-top:40px;
}

.product-card{
    background:#fff;
    border-radius:18px;
    overflow:hidden;
    box-shadow:0 10px 20px rgba(0,0,0,.08);
    transition:.3s;
}

.product-card:hover{
    transform:translateY(-8px);
    box-shadow:0 20px 40px rgba(0,0,0,.15);
}

.product-image img{
    width:100%;
    height:400px;
    object-fit:cover;
}

.product-card h3{
    font-size:24px;
    margin:20px;
}

.product-detail{
    margin:8px 20px;
    color:#555;
}

.btn-small{
    display:inline-block;
    margin:20px;
    padding:10px 20px;
    background:#1a1ac2;
    color:#fff;
    border-radius:8px;
    text-decoration:none;
    transition:.3s;
}

.btn-small:hover{
    background:#3572ff;
}
@media(max-width:992px){

.products-grid{

grid-template-columns:repeat(2,1fr);

}

}

@media(max-width:768px){

.products-grid{

grid-template-columns:2fr;

}

}
#loader{
    position:fixed;
    inset:0;
    background:#0D47A1;
    display:flex;
    justify-content:center;
    align-items:center;
    z-index:9999;
    transition:.5s;
}

.spinner{
    width:70px;
    height:70px;
    border:6px solid rgba(255,255,255,.3);
    border-top:6px solid white;
    border-radius:50%;
    animation:spin 1s linear infinite;
}

@keyframes spin{
    to{
        transform:rotate(360deg);
    }
}
.product-card,
.service-card{

opacity:0;

transform:translateY(50px);

transition:.8s;

}

.show{

opacity:1;

transform:translateY(0);

}
/* ==========================
      Floating Call Button
========================== */

.call-btn{

position:fixed;

left:25px;

bottom:50px;

width:65px;

height:65px;

background:#1976D2;

border-radius:50%;

display:flex;

justify-content:center;

align-items:center;

font-size:28px;

color:white;

box-shadow:0 10px 30px rgba(0,0,0,.25);

z-index:999;

transition:.3s;

animation:phonePulse 2s infinite;

}

.call-btn:hover{

transform:scale(1.1);

background:#0D47A1;

}

@keyframes phonePulse{

0%{

box-shadow:0 0 0 0 rgba(25,118,210,.6);

}

70%{

box-shadow:0 0 0 20px rgba(25,118,210,0);

}

100%{

box-shadow:0 0 0 0 rgba(25,118,210,0);

}

}
/* ==========================
      Back To Top
========================== */

#backToTop{

position:fixed;

right:25px;

bottom:25px;

width:60px;

height:60px;

background:#1976D2;

color:white;

border-radius:50%;

display:flex;

justify-content:center;

align-items:center;

font-size:22px;

cursor:pointer;

box-shadow:0 10px 30px rgba(0,0,0,.25);

opacity:0;

visibility:hidden;

transition:.35s;

z-index:999;

}

#backToTop.show{

opacity:1;

visibility:visible;

}

#backToTop:hover{

background:#0D47A1;

transform:translateY(-5px);

}/*==========================
      Contact Form
==========================*/

.contact-form{
    max-width:700px;
    margin:50px auto;
    background:#fff;
    padding:35px;
    border-radius:20px;
    box-shadow:0 15px 40px rgba(0,0,0,.08);
}

.contact-form input,
.contact-form select,
.contact-form textarea{

    width:100%;
    padding:16px 18px;
    margin-bottom:18px;

    border:1px solid #dcdde1;
    border-radius:12px;

    font-family:'Vazirmatn';
    font-size:16px;

    transition:.3s;
    outline:none;

}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus{

    border-color:#2b6cff;

    box-shadow:0 0 15px rgba(43,108,255,.18);

}

.contact-form textarea{

    min-height:180px;
    resize:vertical;

}

.contact-form button{

    width:100%;
    padding:17px;

    border:none;
    border-radius:12px;

    background:#2b2bd9;
    color:#fff;

    font-size:18px;
    font-weight:bold;

    cursor:pointer;
    transition:.3s;

}

.contact-form button:hover{

    background:#1947d6;
    transform:translateY(-3px);

}
/* فاصله کمتر بین فرم تماس و فوتر */

.contact{
    padding-bottom: 20px;
}

footer{
    margin-top: 20px;
    padding-top: 30px;
}
.contact .container{
    margin-bottom: 0;
    padding-bottom: 0;
}

.product-card img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    transform: scale(0.8);
}
/* =========================
      Mobile Responsive
========================= */

@media (max-width: 992px){

    .products-grid{
        grid-template-columns:repeat(2,1fr);
        gap:20px;
    }

    .features-grid{
        grid-template-columns:repeat(2,1fr);
        gap:20px;
    }

    .container{
        width:80%;
        padding:0 15px;
    }

}

@media (max-width:768px){

    header{
        padding:8px 0;
    }

    .header-content{
        display:flex;
        flex-direction:column;
        align-items:center;
        gap:8px;
    }

    .logo{
        text-align:center;
        margin-top:0;
    }

    .logo h1{
        font-size:2rem;
        margin-bottom:10px;
    }

    .logo p{
        margin-top:0;
        font-size:.9rem;
    }

    .nav-links{
        margin-top:5px;
        gap:20px;
    }

}

@media (max-width:480px){

    .hero h1{
        font-size:1.6rem;
    }

    .logo h1{
        font-size:1.5rem;
    }

    .nav-links{
        font-size:.9rem;
    }

}

.hero{
    padding-top:220px;
}
@media (max-width:768px){

.products-grid{
    display:grid;
    grid-template-columns:1fr;
    gap:25px;
}

.product-card{
    width:100%;
    max-width:300px;
    margin:auto;
}

.product-image{
    height:420px;
    overflow:hidden;
}

.product-image img{
    width:100%;
    height:100%;
    object-fit:fill;
    display:block;
}

.product-detail{
    font-size: 16px;
    line-height:2;
}

.product-card h3{
    font-size:34px;
    margin:20px 0;
}

.btn-small{
    width:85%;
    padding:16px;
    font-size:20px;
    margin:20px auto;
    display:block;
}

}

/* بزرگ‌تر کردن قاب عکس محصولات در موبایل */
@media (max-width: 768px) {

    .product-image {
        height: 420px !important;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    .product-image img {
        width: 80% !important;
        height: 60% !important;
        object-fit: contain !important;
        object-position: center;
        padding: 10px;
        transform: none !important;
    }

}