/* ==========================================
        RESET
========================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{

    direction:rtl;

    font-family:Tahoma, sans-serif;

    background:#111;

    color:#fff;

    overflow-x:hidden;

}

a{

    text-decoration:none;

    color:#fff;

}


/* ==========================================
        HEADER
========================================== */

.header{

    position:fixed;

    top:0;

    right:0;

    width:100%;

    z-index:1000;

    background:rgba(0,0,0,.45);

    backdrop-filter:blur(12px);

}

.menu{

    display:flex;

    justify-content:center;

    align-items:center;

    gap:45px;

    padding:22px;

}

.menu a{

    font-size:18px;

    font-weight:bold;

    transition:.3s;

}

.menu a:hover{

    color:#d4a017;

}


/* ==========================================
        ALL SECTIONS
========================================== */

.hero,
.services-section,
.contact-section{

    position:relative;

    min-height:100vh;

    background-size:cover;

    background-position:center;

    background-repeat:no-repeat;

    display:flex;

    justify-content:center;

    align-items:center;

}
/* ==========================================
        HOME BACKGROUND
========================================== */

.hero{

    position:relative;

    min-height:100vh;

    background-image:url("images/oil.jpg");

    background-size:cover;

    background-position:center;

    background-repeat:no-repeat;

    display:flex;

    justify-content:flex-start;

    align-items:flex-end;

    padding:20px;

}


/* ==========================================
        SERVICES BACKGROUND
========================================== */

.services-section{

    background-image:url("images/services.jpg");

    justify-content:flex-start;

    margin-right:5px;

}


/* ==========================================
        CONTACT BACKGROUND
========================================== */

.contact-section{

    background-image:url("images/contact.jpg");

}


/* ==========================================
        DARK OVERLAY
========================================== */

.overlay{

    position:absolute;

    inset:0;

    background:rgba(0,0,0,.45);

}
/* ==========================================
        HOME BOX
========================================== */

.info-box{

    position:relative;

    z-index:2;

    width:520px;

    padding:35px;

    margin-right:10px;

    margin-bottom:40px;

    transform:translateY(65px);

    background:rgba(20,20,20,.65);

    backdrop-filter:blur(15px);

    border-radius:20px;

    border:1px solid rgba(255,255,255,.15);

    box-shadow:0 15px 35px rgba(0,0,0,.45);

}

.info-box h1{

    color:#d4a017;

    font-size:38px;

    margin-bottom:20px;

}

.info-box p{

    font-size:18px;

    line-height:2;

}

.contact-btn{

    margin-top:80px !important;

    display:block;

    width:max-content;

    margin-right:auto;

    padding:14px 30px;

    border:none;

    border-radius:10px;

    background:#d4a017;

    color:#111;

    font-weight:bold;

    cursor:pointer;

    transition:.3s;

}

.contact-btn:hover{

    background:#f2c23a;

}
/* ==========================================
        SERVICES
========================================== */

.content-box{

    position:relative;

    z-index:2;

    width:45%;

    max-width:650px;

    margin-right:35px;

    text-align:right;

}

.content-box h2{

    font-size:42px;

    color:#d4a017;

    margin-bottom:50px;

    text-align:right;

}

.service-cards{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));

    gap:30px;

}

.service-card{

    background:rgba(20,20,20,.65);

    backdrop-filter:blur(15px);

    border:1px solid rgba(255,255,255,.15);

    border-radius:18px;

    padding:30px;

    transition:.35s;

    box-shadow:0 10px 30px rgba(0,0,0,.35);

    text-align:right;

}

.service-card:hover{

    transform:translateY(-10px);

    box-shadow:0 20px 40px rgba(0,0,0,.45);

}

.service-card h3{

    color:#d4a017;

    margin-bottom:18px;

    font-size:24px;

}

.service-card p{

    font-size:17px;

    line-height:2;

}
/* ==========================================
        CONTACT SECTION
========================================== */

.contact-text{
    font-size:20px;
    line-height:2;
    max-width:800px;
    margin:0 auto 40px;
    text-align:center;
}

.contact-buttons{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:20px;
    margin-top:30px;
}

.contact-item{
    display:flex;
    justify-content:center;
    align-items:center;
    height:65px;
    background:rgba(20,20,20,.65);
    backdrop-filter:blur(15px);
    border:1px solid rgba(255,255,255,.15);
    border-radius:15px;
    font-size:18px;
    font-weight:bold;
    transition:.3s;
}

.contact-item:hover{
    background:#d4a017;
    color:#111;
    transform:translateY(-5px);
}

.contact-info{
    margin-top:45px;
    background:rgba(20,20,20,.60);
    backdrop-filter:blur(12px);
    border-radius:20px;
    padding:30px;
    border:1px solid rgba(255,255,255,.15);
}

.contact-info p{
    font-size:18px;
    line-height:2.2;
}
/* ==========================================
        PRICE BUTTON
========================================== */

.price-btn{
    position:fixed;
    bottom:30px;
    left:30px;
    z-index:999;
    background:#d4a017;
    color:#111;
    border:none;
    border-radius:50px;
    padding:16px 28px;
    font-size:17px;
    font-weight:bold;
    cursor:pointer;
    box-shadow:0 10px 30px rgba(0,0,0,.35);
    transition:.3s;
}

.price-btn:hover{
    transform:scale(1.05);
    background:#f4c542;
}
/* ==========================================
        CONTACT PANEL
========================================== */

.contact-panel{
    position:fixed;
    left:30px;
    bottom:95px;
    width:280px;
    background:rgba(20,20,20,.92);
    backdrop-filter:blur(15px);
    border-radius:20px;
    padding:25px;
    display:none;
    flex-direction:column;
    gap:15px;
    z-index:999;
    border:1px solid rgba(255,255,255,.15);
    box-shadow:0 15px 35px rgba(0,0,0,.45);
}

.contact-panel.show{
    display:flex;
}

.contact-panel h3{
    text-align:center;
    color:#d4a017;
    margin-bottom:10px;
}

.contact-panel a{
    padding:12px;
    border-radius:10px;
    background:rgba(255,255,255,.08);
    transition:.3s;
    text-align:center;
}

.contact-panel a:hover{
    background:#d4a017;
    color:#111;
}
/* ==========================================
        SOCIAL ICONS
========================================== */

.social-icons{
    position:absolute;
    left:80px;
    top:120px;
    display:grid;
    grid-template-columns:repeat(2,80px);
    gap:20px;
    z-index:3;
}

.social-icon{
    width:60px;
    height:60px;
    border-radius:50%;
    background:rgba(255,255,255,.15);
    backdrop-filter:blur(12px);
    border:1px solid rgba(255,255,255,.25);
    display:flex;
    justify-content:center;
    align-items:center;
    transition:.3s;
}

.social-icon img{
    width:80px;
    height:80px;
    object-fit:contain;
}

.social-icon:hover{
    transform:scale(1.1);
}
/* ==========================================
        MOBILE RESPONSIVE
========================================== */

@media screen and (max-width: 600px) {

    html,
    body {
        width: 100%;
        overflow-x: hidden;
    }

    /* منوی موبایل */
    .menu {
        flex-wrap: nowrap;
        gap: 12px;
        padding: 14px 6px;
    }

    .menu a {
        font-size: 12px;
        white-space: nowrap;
    }

    /* اندازه و پس‌زمینه صفحات */
    .hero,
    .services-section,
    .contact-section {
        width: 100%;
        min-height: 100vh;
        min-height: 100svh;
        height: auto;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        margin: 0;
    }

    /* صفحه اول موبایل */
    .hero {
        justify-content: center;
        align-items: flex-end;
        padding: 75px 12px 45px;
    }

    .hero .info-box {
        width: 100%;
        max-width: 420px;
        margin: 0;
        padding: 15px;
        transform: none;
    }

    .info-box h1 {
        font-size: 20px;
        line-height: 1.5;
        margin-bottom: 10px;
    }

    .info-box p {
        font-size: 13px;
        line-height: 1.7;
    }

    .contact-btn {
        margin-top: 12px !important;
        padding: 10px 16px;
        font-size: 13px;
    }

    /* صفحه خدمات موبایل */
    .services-section {
        justify-content: center;
        align-items: flex-start;
        padding: 75px 12px 60px;
    }

    .services-section .content-box {
        width: 100%;
        max-width: 500px;
        margin: 0;
        padding: 0;
    }

    .services-section .content-box h2 {
        font-size: 21px;
        line-height: 1.5;
        margin-bottom: 10px;
    }

    .services-section .content-box > p {
        font-size: 12px;
        line-height: 1.7;
        margin-bottom: 10px;
    }

    .service-cards {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .service-card {
        padding: 12px;
        margin: 8px 0;
        border-radius: 12px;
    }

    .service-card h3 {
        font-size: 15px;
        margin-bottom: 5px;
    }

    .service-card p {
        font-size: 12px;
        line-height: 1.7;
    }
    /* صفحه تماس موبایل */
    .contact-section {
        position: relative;
    }

    .contact-section .content-box {
        display: none;
    }

    /* آیکون های تماس */
    .contact-section .social-icons {
        position: absolute;
        top: 13%;
        left: 5%;
        right: auto;
        display: grid;
        grid-template-columns: repeat(2, 52px);
        gap: 10px;
        width: max-content;
        z-index: 3;
    }

    .contact-section .social-icon {
        width: 52px;
        height: 52px;
        border: none;
        border-radius: 0;
        background: transparent;
        backdrop-filter: none;
    }

    .contact-section .social-icon img {
        width: 52px;
        height: 52px;
        object-fit: contain;
    }

    /* دکمه استعلام قیمت */
    .price-btn {
        position: fixed;
        left: 12px;
        right: auto;
        bottom: 14px;
        width: max-content;
        padding: 10px 15px;
        font-size: 13px;
        white-space: nowrap;
        border-radius: 30px;
    }

    .contact-panel {
        left: 12px;
        right: auto;
        bottom: 65px;
        width: min(280px, calc(100vw - 24px));
    }

}
/* ==========================================
   SERVICES - LAPTOP FINAL FIX
========================================== */

@media screen and (min-width: 901px) {

    .services-section .content-box {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    /* چهار کارت قبلی، زیر هم */
    .services-section .service-cards {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
        gap: 20px;
    }

    .services-section .service-card {
        width: 100%;
        box-sizing: border-box;
        margin: 0;
    }

    /* کادر عنوان و توضیحات */
    .services-section .services-intro {
        width: 135%;
        max-width: none;
        height: auto;
        min-height: 0;
        box-sizing: border-box;
        align-self: flex-start;
        flex: none;

        padding: 25px 30px;
        margin-bottom: 20px;

        background: rgba(20, 20, 20, 0.65);
        backdrop-filter: blur(15px);
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 18px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);

        text-align: right;
        direction: rtl;
    }

    .services-section .services-intro h2 {
        font-size: 24px;
        line-height: 1.5;
        color: #d4a017;
        margin: 0 0 12px 0;
    }
    /* ==========================================
   MOBILE - SERVICES ONLY
   اصلاح موبایل بدون تغییر لپ‌تاپ
========================================== */

@media screen and (max-width: 600px) {

    .services-section {
        width: 100%;
        min-height: 100svh;
        height: auto;
        padding: 75px 12px 60px;
        justify-content: center;
        align-items: flex-start;
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
    }

    .services-section .content-box {
        width: 100%;
        max-width: 500px;
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    /* کادر عنوان و توضیحات */
    .services-section .services-intro {
        display: block;
        width: 100%;
        max-width: 100%;
        height: auto;
        min-height: 0;
        box-sizing: border-box;
        padding: 14px;
        margin: 0 0 12px;
        align-self: stretch;

        background: rgba(20, 20, 20, 0.75);
        backdrop-filter: blur(12px);
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 12px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);

        direction: rtl;
        text-align: right;
    }

    .services-section .services-intro h2 {
        font-size: 19px;
        line-height: 1.6;
        margin: 0 0 8px;
        color: #d4a017;
    }

    .services-section .services-intro p {
        font-size: 13px;
        line-height: 1.8;
        margin: 0;
        color: #fff;
    }

    /* چهار کارت زیر هم */
    .services-section .service-cards {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
        gap: 10px;
    }

    .services-section .service-card {
        width: 100%;
        min-width: 0;
        height: auto;
        box-sizing: border-box;
        margin: 0;
        padding: 14px;
        border-radius: 12px;
    }

    .services-section .service-card h3 {
        font-size: 15px;
        line-height: 1.6;
        margin-bottom: 6px;
    }

    .services-section .service-card p {
        font-size: 12px;
        line-height: 1.8;
    }

}
/* فقط پس‌زمینه صفحه اول موبایل */
@media screen and (max-width: 600px) {

    .hero {
        background-image: url("images/mobile-home-bg.jpg");
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

}

    .services-section .services-intro p {
        font-size: 17px;
        line-height: 1.8;
        color: #fff;
        margin: 0;
    }

}
/* تغییر پس‌زمینه فقط صفحه اول موبایل */
@media screen and (max-width: 600px) {

    .hero {
        background-image: url("images/mobile-home-bg.jpg") !important;
        background-size: cover !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
    }

}
/* کادر جدا برای عنوان و توضیحات کلی خدمات در موبایل */
@media screen and (max-width: 600px) {

    .services-section .services-intro {
        display: block;
        width: 100%;
        max-width: 100%;
        height: auto;
        box-sizing: border-box;

        padding: 16px 14px;
        margin: 0 0 18px 0;

        background: rgba(10, 65, 48, 0.92);
        border: 1px solid #d4a017;
        border-radius: 16px;

        box-shadow: 0 5px 18px rgba(0, 0, 0, 0.3);

        direction: rtl;
        text-align: right;
    }

    .services-section .services-intro h2 {
        color: #ffd45c;
        font-size: 19px;
        line-height: 1.7;
        margin: 0 0 10px 0;
    }

    .services-section .services-intro p {
        color: #ffffff;
        font-size: 13px;
        line-height: 1.9;
        margin: 0;
    }

}


