/* ===================== GLOBAL ===================== */

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

body{
    font-family: "Tahoma", sans-serif;
    direction: rtl;
    color:#222;
    background:#fff;
}

a{
    text-decoration:none;
}


/* ===================== NAVBAR ===================== */

.custom-navbar{
    background:#fff;
    padding:18px 0;
    box-shadow:0 5px 20px rgba(0,0,0,.08);
}

.navbar-brand{
    display:flex;
    align-items:center;
    gap:12px;
}

.logo-main{
    width:55px;
    height:55px;
    object-fit:contain;
    flex-shrink:0;
}

.logo-text{
    color:#7b1e3a;
    font-size:18px;
    font-weight:bold;
}


.nav-link{
    color:#222 !important;
    margin:0 10px;
    font-size:15px;
    transition:.3s;
}

.nav-link:hover,
.nav-link.active{
    color:#7b1e3a !important;
}


.btn-nav{
    background:#7b1e3a;
    color:#fff;
    padding:12px 25px;
    border-radius:30px;
    margin-right:15px;
    transition:.3s;
}

.btn-nav:hover{
    background:#4a1024;
    color:#fff;
}



/* ===================== HERO ===================== */

.hero{
    height:100vh;
    min-height:650px;
    background:url("../assets/img/hero.jpg") center/cover no-repeat;
    display:flex;
    align-items:center;
    position:relative;
    color:#fff;
}


.hero-dark{
    position:absolute;
    inset:0;
    background:rgba(74,16,36,.65);
}


.hero .container{
    position:relative;
    z-index:2;
}


.hero-top-text{
    color:#fff;
    font-size:16px;
    letter-spacing:2px;
}


.hero h1{
    font-size:65px;
    line-height:1.3;
    font-weight:700;
    margin:25px 0;
}


.hero p{
    font-size:18px;
    line-height:2;
    max-width:700px;
    margin:auto;
    color:#eee;
}


.hero-buttons{
    margin-top:40px;
}


.hero-btn,
.hero-btn-outline{
    display:inline-block;
    padding:15px 35px;
    border-radius:30px;
    margin:0 8px;
    transition:.3s;
}


.hero-btn{
    background:#fff;
    color:#f3ecee;
}


.hero-btn:hover{
    background:#7b1e3a;
    color:#fff;
}


.hero-btn-outline{
    border:2px solid #fff;
    color:#fff;
}


.hero-btn-outline:hover{
    background:#fff;
    color:#7b1e3a;
}
/* ===================== ABOUT ===================== */

.about-section{
    padding:100px 0;
    background:#fff;
}


.about-image img{
    width:100%;
    border-radius:20px;
    box-shadow:0 20px 40px rgba(0,0,0,.12);
}


.section-tag{
    color:#7b1e3a;
    font-size:15px;
    font-weight:bold;
    display:inline-block;
    margin-bottom:15px;
}


.section-title{
    font-size:38px;
    font-weight:700;
    color:#4a1024;
    margin-bottom:25px;
}


.section-text{
    color:#555;
    line-height:2;
    font-size:16px;
}


.about-features{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:15px;
    margin-top:30px;
}


.feature{
    background:#fff;
    border:1px solid #eee;
    padding:15px;
    border-radius:12px;
    color:#7b1e3a;
    font-weight:bold;
    box-shadow:0 8px 20px rgba(0,0,0,.05);
}



/* ===================== SERVICES ===================== */

.services-section{
    padding:100px 0;
    background:#fafafa;
}


.service-card{
    background:#fff;
    padding:35px 25px;
    text-align:center;
    border-radius:20px;
    height:100%;
    transition:.3s;
    border-bottom:4px solid transparent;
    box-shadow:0 10px 30px rgba(0,0,0,.06);
}


.service-card:hover{
    transform:translateY(-10px);
    border-color:#7b1e3a;
}


.service-icon{
    width:70px;
    height:70px;
    margin:0 auto 25px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#7b1e3a;
    color:#fff;
    border-radius:50%;
    font-size:30px;
}


.service-card h4{
    color:#4a1024;
    margin-bottom:15px;
    font-size:22px;
}


.service-card p{
    color:#666;
    line-height:2;
}
/* ===================== PROJECTS ===================== */

.projects-section{
    padding:100px 0;
    background:#fff;
}


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


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


.project-image{
    position:relative;
    overflow:hidden;
    height:320px;
}


.project-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:.5s;
}


.project-card:hover img{
    transform:scale(1.08);
}



.project-overlay{
    position:absolute;
    inset:0;
    background:rgba(123,30,58,.75);
    display:flex;
    align-items:center;
    justify-content:center;
    opacity:0;
    transition:.3s;
}


.project-card:hover .project-overlay{
    opacity:1;
}


.project-btn{
    background:#fff;
    color:#7b1e3a;
    padding:12px 30px;
    border-radius:30px;
    font-weight:bold;
    transition:.3s;
}


.project-btn:hover{
    background:#4a1024;
    color:#fff;
}



.project-content{
    padding:25px;
}


.project-category{
    color:#7b1e3a;
    font-size:14px;
    font-weight:bold;
}


.project-content h3{
    color:#4a1024;
    font-size:23px;
    margin:12px 0;
}


.project-content p{
    color:#666;
    line-height:1.9;
}



/* ===================== CONTACT ===================== */

.contact-section{
    padding:100px 0;
    background:#fafafa;
}


.contact-info p{
    font-size:17px;
    color:#555;
    margin:15px 0;
}


.contact-form{
    background:#fff;
    padding:35px;
    border-radius:20px;
    box-shadow:0 15px 35px rgba(0,0,0,.08);
}


.contact-form input,
.contact-form textarea{
    width:100%;
    padding:15px;
    margin-bottom:15px;
    border:1px solid #ddd;
    border-radius:10px;
    outline:none;
}


.contact-form input:focus,
.contact-form textarea:focus{
    border-color:#7b1e3a;
}


.contact-form button{
    width:100%;
    padding:15px;
    border:none;
    border-radius:30px;
    background:#7b1e3a;
    color:#fff;
    font-size:16px;
    cursor:pointer;
    transition:.3s;
}


.contact-form button:hover{
    background:#4a1024;
}
/* ===================== FOOTER ===================== */

.footer-custom{
    background:#4a1024;
    color:#fff;
    padding:70px 0 25px;
}


.footer-custom h3,
.footer-custom h4{
    color:#fff;
    margin-bottom:20px;
}


.footer-custom p{
    color:#ddd;
    line-height:2;
}


.footer-custom ul{
    list-style:none;
    padding:0;
}


.footer-custom ul li{
    margin-bottom:12px;
}


.footer-custom ul li a{
    color:#ddd;
    transition:.3s;
}


.footer-custom ul li a:hover{
    color:#fff;
    padding-right:5px;
}


.footer-custom hr{
    border-color:rgba(255,255,255,.2);
    margin:35px 0 20px;
}



/* ===================== MOBILE ===================== */

@media(max-width:991px){

    .navbar-collapse{
        background:#fff;
        padding:20px;
        margin-top:15px;
        border-radius:15px;
    }


    .btn-nav{
        display:inline-block;
        margin-top:15px;
    }


    .hero{
        height:auto;
        padding:160px 0 100px;
    }


    .hero h1{
        font-size:40px;
    }


    .hero p{
        font-size:15px;
    }


    .section-title{
        font-size:30px;
    }


    .about-features{
        grid-template-columns:1fr;
    }


    .project-image{
        height:250px;
    }

}


@media(max-width:576px){

    .hero h1{
        font-size:32px;
    }


    .hero-buttons a{
        display:block;
        margin:15px auto;
        width:80%;
    }


    .section-title{
        font-size:26px;
    }


    .contact-form{
        padding:20px;
    }

}
/* ===================== Portfolio Cards ===================== */

.portfolio-card {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    transition: .4s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
    border: 1px solid rgba(128,0,32,.15);
}

.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(128,0,32,.2);
}

.portfolio-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: .4s ease;
}

.portfolio-card:hover img {
    transform: scale(1.05);
}

.portfolio-content {
    padding: 25px;
    text-align: right;
}

.portfolio-content h3 {
    color: #800020;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}

.portfolio-content p {
    color: #555;
    line-height: 1.9;
    font-size: 15px;
}

.portfolio-btn {
    display: inline-block;
    margin-top: 15px;
    background: #800020;
    color: white;
    padding: 10px 25px;
    border-radius: 30px;
    text-decoration: none;
    transition: .3s;
}

.portfolio-btn:hover {
    background: #a0002a;
    color: white;
}
body {
    font-family: 'Vazirmatn', sans-serif;
}

h1, h2, h3, h4, .navbar-brand {
    font-family: 'Estedad', sans-serif;
    font-weight: 700;
}
html, body {
    direction: rtl;
    text-align: right;
}

body {
    overflow-x: hidden;
}
/* ===================== Luxury Animations ===================== */

/* حرکت نرم کل سایت */
* {
    transition: all .3s ease;
}


/* کارت‌های پروژه */
.project-card,
.portfolio-card {
    transition: .5s ease;
}

.project-card:hover,
.portfolio-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 45px rgba(128,0,32,.18);
}


/* عکس پروژه‌ها */
.project-card img,
.portfolio-card img {
    transition: .6s ease;
}

.project-card:hover img,
.portfolio-card:hover img {
    transform: scale(1.08);
}


/* دکمه‌ها */
button,
.btn {
    transition: .3s ease;
}

button:hover,
.btn:hover {
    transform: translateY(-3px);
}


/* تیترهای بخش‌ها */
.section-title {
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: "";
    width: 60px;
    height: 3px;
    background: #800020;
    position: absolute;
    bottom: -12px;
    right: 50%;
    transform: translateX(50%);
    border-radius: 10px;
}
/* ===================== Luxury Navbar ===================== */

.custom-navbar {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(128,0,32,.15);
    box-shadow: 0 5px 25px rgba(0,0,0,.08);
    padding: 15px 0;
}


/* لوگو */
.navbar-brand {
    color: #800020 !important;
    font-size: 25px;
    font-weight: 700;
}


/* لینک‌های منو */
.custom-navbar .nav-link {
    color: #222 !important;
    font-weight: 500;
    margin: 0 12px;
    position: relative;
}


/* خط زیر لینک */
.custom-navbar .nav-link::after {
    content: "";
    position: absolute;
    bottom: -6px;
    right: 0;
    width: 0;
    height: 2px;
    background: #800020;
    transition: .3s;
}


.custom-navbar .nav-link:hover::after {
    width: 100%;
}


.custom-navbar .nav-link:hover {
    color: #800020 !important;
}
/* ===================== Luxury Hero ===================== */

.hero-section {
    position: relative;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}


/* لایه روی عکس */
.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.35);
    z-index: 1;
}


/* محتوا */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 800px;
}


.hero-content h1 {
    font-size: 55px;
    font-weight: 700;
    margin-bottom: 25px;
    letter-spacing: 1px;
}


.hero-content p {
    font-size: 20px;
    line-height: 2;
    opacity: .9;
}


/* دکمه اصلی */
.hero-btn {
    display: inline-block;
    margin-top: 30px;
    padding: 14px 40px;
    background: #800020;
    color: white;
    border-radius: 40px;
    text-decoration: none;
}


.hero-btn:hover {
    background: #a0002a;
    color: white;
    transform: translateY(-5px);
}
/* ===================== Luxury Project Gallery ===================== */

.projects-section {
    padding: 100px 0;
    background: #fff;
}


.projects-title {
    text-align: center;
    margin-bottom: 60px;
}


.projects-title h2 {
    color: #800020;
    font-size: 38px;
    font-weight: 700;
}


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


.project-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 35px rgba(0,0,0,.08);
}


.project-card img {
    width: 100%;
    height: 320px;
    object-fit: cover;
}


.project-info {
    padding: 25px;
}


.project-info h3 {
    color: #800020;
    font-size: 23px;
    margin-bottom: 15px;
}


.project-info p {
    color: #555;
    line-height: 2;
}


/* فاصله لوکس بین بخش‌ها */
section {
    scroll-margin-top: 90px;
}
/* ===================== Luxury Footer ===================== */

.footer-custom {
    background: #800020;
    color: white;
    padding: 70px 0 25px;
}


.footer-logo {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 20px;
}


.footer-desc {
    color: rgba(255,255,255,.8);
    line-height: 2;
    max-width: 400px;
}


.footer-custom h4 {
    font-size: 20px;
    margin-bottom: 25px;
    position: relative;
}


.footer-custom h4::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -10px;
    width: 45px;
    height: 2px;
    background: white;
}


.footer-custom a {
    color: rgba(255,255,255,.85);
    text-decoration: none;
    display: block;
    margin-bottom: 12px;
    transition: .3s;
}


.footer-custom a:hover {
    color: white;
    transform: translateX(-5px);
}


.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.2);
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    color: rgba(255,255,255,.7);
}
/* ===================== Premium Details ===================== */


/* فاصله استاندارد بین بخش‌ها */
section {
    padding-top: 90px;
    padding-bottom: 90px;
}


/* متن‌های عمومی */
p {
    letter-spacing: .2px;
}


/* انتخاب متن */
::selection {
    background: #800020;
    color: white;
}


/* اسکرول نرم */
html {
    scroll-behavior: smooth;
}


/* عکس‌ها ظاهر حرفه‌ای‌تر */
img {
    border-radius: 15px;
}


/* لینک‌ها */
a {
    transition: .3s ease;
}


/* دکمه‌های اصلی */
.btn-primary {
    background: #800020;
    border-color: #800020;
}


.btn-primary:hover {
    background: #a0002a;
    border-color: #a0002a;
}


/* سایه ظریف برای بخش‌های مهم */
.luxury-box {
    box-shadow: 0 15px 40px rgba(0,0,0,.08);
    border-radius: 20px;
}
.hero {
    position: relative;
    height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-dark {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}
/* ===================== Projects Luxury Effect ===================== */

.project-image {
    overflow: hidden;
    position: relative;
}

.project-image img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    transition: .5s ease;
}

.project-card:hover img {
    transform: scale(1.08);
}

.project-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 35px rgba(0,0,0,.08);
    transition: .4s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 45px rgba(128,0,32,.18);
}
/* ===================== Project Overlay ===================== */

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(128,0,32,.55);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: .4s ease;
}

.project-image:hover .project-overlay {
    opacity: 1;
}


.project-btn {
    background: white;
    color: #800020;
    padding: 12px 30px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    transform: translateY(20px);
    transition: .4s ease;
}


.project-image:hover .project-btn {
    transform: translateY(0);
}


.project-btn:hover {
    background: #800020;
    color: white;
}
/* ===================== Luxury Services ===================== */

.services-section {
    background: #fafafa;
}


.service-card {
    background: #fff;
    padding: 35px 25px;
    text-align: center;
    border-radius: 20px;
    height: 100%;
    border: 1px solid rgba(128,0,32,.08);
    box-shadow: 0 10px 30px rgba(0,0,0,.06);
    transition: .4s ease;
}


.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 45px rgba(128,0,32,.15);
    border-color: rgba(128,0,32,.25);
}


.service-icon {
    width: 75px;
    height: 75px;
    margin: 0 auto 25px;
    border-radius: 50%;
    background: #800020;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}


.service-card h4 {
    color: #800020;
    margin-bottom: 15px;
    font-weight: 700;
}


.service-card p {
    color: #666;
    line-height: 2;
}
/* ===================== Luxury About ===================== */

.about-section {
    background: #fff;
}


.about-image {
    position: relative;
}


.about-image img {
    width: 100%;
    border-radius: 25px;
    box-shadow: 0 20px 50px rgba(0,0,0,.12);
}


.about-image::after {
    content: "";
    position: absolute;
    width: 120px;
    height: 120px;
    border: 3px solid #800020;
    bottom: -20px;
    right: -20px;
    border-radius: 20px;
    z-index: -1;
}


.section-tag {
    color: #800020;
    font-weight: 600;
    letter-spacing: 1px;
}


.section-text {
    color: #555;
    line-height: 2.2;
    font-size: 16px;
}


.about-features {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 15px;
    margin-top: 30px;
}


.feature {
    background: #fafafa;
    padding: 15px;
    border-radius: 12px;
    color: #800020;
    font-weight: 600;
    transition: .3s;
}


.feature:hover {
    background: #800020;
    color: white;
    transform: translateX(-5px);
}
/* ===================== Luxury Contact ===================== */

.contact-section {
    background: #fafafa;
}


.contact-info p {
    font-size: 17px;
    color: #444;
    margin-bottom: 18px;
}


.contact-form {
    background: white;
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 15px 45px rgba(0,0,0,.08);
}


.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid #ddd;
    padding: 15px 18px;
    margin-bottom: 18px;
    border-radius: 12px;
    outline: none;
    font-family: inherit;
    transition: .3s;
}


.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #800020;
    box-shadow: 0 0 0 3px rgba(128,0,32,.1);
}


.contact-form button {
    width: 100%;
    background: #800020;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 40px;
    font-size: 16px;
    cursor: pointer;
    transition: .3s;
}


.contact-form button:hover {
    background: #a0002a;
    transform: translateY(-4px);
}
/* ===================== Mobile Responsive ===================== */

@media (max-width: 991px) {

    .hero {
        height: 75vh;
    }

    .hero h1 {
        font-size: 38px;
    }

    .hero p {
        font-size: 16px;
    }


    .projects-section,
    .services-section,
    .about-section,
    .contact-section {
        padding: 60px 0;
    }


    .about-features {
        grid-template-columns: 1fr;
    }


    .project-image img {
        height: 260px;
    }

}

.hero{
    background:#800020;
    padding:90px 0;
}

.hero-left h1{
    color:#fff;
}

.hero-left p{
    color:#e8e8e8;
}

#heroCarousel{
    position:relative;
}

.carousel-item{
    position:relative;
}

.hero-slider-img{
    height:420px;
    width:100%;
    object-fit:cover;
    border-radius:18px;
}

.slide-title{
    position:absolute;
    top:18px;
    left:18px;
    z-index:10;
    background:rgba(0,0,0,.55);
    color:#fff;
    padding:8px 18px;
    border-radius:10px;
    font-size:20px;
    font-weight:600;
}

.carousel-indicators{
    bottom:-45px;
}

.carousel-indicators button{
    width:10px;
    height:10px;
    border-radius:50%;
}
.close-btn{
    position:fixed;
    top:20px;
    right:20px;

    width:45px;
    height:45px;

    padding:0;
    margin:0;

    border:none;
    border-radius:50%;

    background:#c1121f;

    color:#fff;
    font-size:24px;
    font-weight:700;
    line-height:45px;
    text-align:center;

    cursor:pointer;
    z-index:10000;

    display:block;
}

.close-btn:hover{
    background:#800020;
}
.back{
    color:white !important;
}

.back:hover{
    background:#800020 !important;
    color:white !important;
}
.back,
.back:visited,
.back:hover,
.back:focus,
.back:active {
    background:#d62828 !important;
    color:#fff !important;
    text-decoration:none !important;
}
a.close-btn {
    background: #c1121f !important;
    color: white !important;
}
.close-btn,
.close-btn:hover,
.close-btn:focus,
.close-btn:active {
    background: #c1121f !important;
    color: #fff !important;
    outline: none !important;
    box-shadow: none !important;
    border-color: #c1121f !important;
}
.gallery-filter{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:12px;
    margin:25px 0;
}

.gallery-filter a{
    background:#eee;
    color:#333;
    padding:10px 20px;
    border-radius:30px;
    text-decoration:none;
    transition:.3s;
}

.gallery-filter a:hover,
.gallery-filter a.active{
    background:#800020;
    color:#fff;
}
/* =========================================================
   RESPONSIVE PATCH — preserves the original desktop design
   ========================================================= */
@media (max-width: 991.98px) {
    .custom-navbar {
        padding: 10px 0;
    }

    .custom-navbar .container {
        max-width: 100%;
        padding-inline: 16px;
    }

    .navbar-brand {
        min-width: 0;
        gap: 8px;
    }

    .logo-main {
        width: 44px;
        height: 44px;
    }

    .logo-text {
        font-size: 14px;
        white-space: nowrap;
    }

    .navbar-toggler {
        width: 46px;
        height: 42px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 6px;
        border: 1px solid rgba(123,30,58,.18);
        border-radius: 12px;
        box-shadow: none !important;
    }

    .navbar-collapse {
        margin-top: 10px;
        padding: 12px;
        border-radius: 16px;
        background: #fff;
        box-shadow: 0 12px 30px rgba(0,0,0,.09);
    }

    .navbar-nav {
        width: 100%;
        gap: 7px;
        align-items: stretch !important;
    }

    .navbar-nav .nav-item,
    .navbar-nav .nav-link,
    .navbar-nav .btn-nav {
        width: 100%;
    }

    .navbar-nav .nav-link,
    .navbar-nav .btn-nav {
        min-height: 44px;
        margin: 0 !important;
        padding: 10px 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 12px;
        text-align: center;
    }

    .navbar-nav .nav-link {
        background: #faf7f8;
    }

    .hero {
        height: auto !important;
        min-height: 0 !important;
        padding: 112px 0 58px !important;
        align-items: flex-start;
    }

    .hero .row {
        row-gap: 28px;
    }

    .hero-left {
        text-align: center;
    }

    .hero-left h1,
    .hero h1 {
        font-size: clamp(30px, 7vw, 42px) !important;
        margin: 16px 0 12px;
        line-height: 1.35;
    }

    .hero-left p,
    .hero p {
        max-width: 620px;
        margin-inline: auto;
        font-size: 15px !important;
        line-height: 1.9;
    }

    .hero-buttons {
        margin-top: 22px !important;
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    .hero-buttons .hero-btn,
    .hero-buttons .hero-btn-outline {
        margin: 0 !important;
        min-width: 145px;
        padding: 11px 20px;
    }

    #heroCarousel {
        width: 100%;
        max-width: 760px;
        margin-inline: auto;
    }

    .hero-slider-img {
        width: 100%;
        height: auto !important;
        aspect-ratio: 16 / 10;
        object-fit: contain !important;
        background: rgba(0,0,0,.08);
        border-radius: 16px;
    }

    .slide-title {
        top: 10px;
        left: 10px;
        max-width: calc(100% - 20px);
        padding: 6px 11px;
        font-size: 14px;
        border-radius: 8px;
    }

    .carousel-indicators {
        bottom: -34px;
        margin-bottom: 0;
    }

    .about-section,
    .services-section,
    .projects-section,
    .contact-section {
        padding-block: 64px !important;
    }

    .section-title {
        font-size: clamp(26px, 6vw, 32px) !important;
    }

    .portfolio-card img,
    .project-image img {
        height: auto !important;
        aspect-ratio: 4 / 3;
        object-fit: cover;
    }
}

@media (max-width: 575.98px) {
    .custom-navbar .container,
    .hero .container,
    section .container {
        padding-inline: 14px;
    }

    .logo-text {
        max-width: 185px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .hero {
        padding-top: 96px !important;
        padding-bottom: 52px !important;
    }

    .hero-top-text {
        font-size: 12px;
        letter-spacing: 1px;
    }

    .hero-left h1,
    .hero h1 {
        font-size: clamp(27px, 9vw, 34px) !important;
    }

    .hero-buttons {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
        gap: 9px;
    }

    .hero-buttons .hero-btn,
    .hero-buttons .hero-btn-outline,
    .hero-buttons a {
        width: 100% !important;
        min-width: 0;
        margin: 0 !important;
        padding: 11px 8px;
        font-size: 14px;
    }

    .hero-slider-img {
        aspect-ratio: 16 / 10;
        max-height: 58vh;
    }

    .about-features {
        grid-template-columns: 1fr !important;
    }

    .contact-form {
        padding: 18px !important;
    }
}

@media (max-width: 380px) {
    .logo-text { font-size: 12px; max-width: 150px; }
    .hero-buttons { grid-template-columns: 1fr; }
}

/* ===================== PERFORMANCE + NEW ADMIN SECTIONS ===================== */
.performance-section,
.projects-section,
.services-section,
.contact-section{
    content-visibility:auto;
    contain-intrinsic-size:1px 900px;
}

.comparison-section{
    padding:100px 0;
    background:#fafafa;
}

.comparison-block{
    background:#fff;
    border:1px solid rgba(123,30,58,.10);
    border-radius:24px;
    padding:32px;
    margin-bottom:34px;
    box-shadow:0 16px 45px rgba(0,0,0,.06);
}

.comparison-heading h3{
    color:#4a1024;
    font-size:28px;
    font-weight:700;
    margin-bottom:8px;
}

.comparison-heading p{
    color:#666;
    margin-bottom:28px;
}

.comparison-grid{
    display:grid;
    grid-template-columns:minmax(0,1fr) 64px minmax(0,1fr);
    gap:22px;
    align-items:center;
}

.comparison-card{
    overflow:hidden;
    border-radius:20px;
    border:1px solid #eee;
    background:#fff;
}

.comparison-image-wrap{
    aspect-ratio:16/10;
    overflow:hidden;
    background:#eee;
}

.comparison-image-wrap img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    transition:transform .35s ease;
}

.comparison-card:hover .comparison-image-wrap img{
    transform:scale(1.03);
}

.comparison-content{
    padding:22px;
}

.comparison-content h4{
    color:#7b1e3a;
    font-size:22px;
    margin-bottom:10px;
}

.comparison-content p{
    color:#666;
    line-height:1.9;
    margin:0;
}

.comparison-vs{
    width:58px;
    height:58px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#7b1e3a;
    color:#fff;
    font-weight:800;
    box-shadow:0 8px 24px rgba(123,30,58,.22);
}

.faq-section{
    padding:100px 0;
    background:#fff;
}

.faq-container{
    max-width:950px;
}

.faq-accordion .accordion-item{
    border:1px solid #eee;
    border-radius:16px !important;
    overflow:hidden;
    margin-bottom:14px;
    box-shadow:0 8px 26px rgba(0,0,0,.04);
}

.faq-accordion .accordion-button{
    padding:20px 22px;
    font-weight:700;
    color:#4a1024;
    background:#fff;
    box-shadow:none !important;
}

.faq-accordion .accordion-button:not(.collapsed){
    color:#7b1e3a;
    background:#fbf6f8;
}

.faq-accordion .accordion-button::after{
    margin-left:0;
    margin-right:auto;
}

.faq-accordion .accordion-body{
    color:#555;
    line-height:2;
    padding:4px 22px 22px;
}

.contact-alert{
    padding:14px 18px;
    border-radius:12px;
    margin-bottom:16px;
    line-height:1.8;
}

.contact-alert.success{
    background:#edf9f1;
    color:#176b38;
    border:1px solid #cdebd8;
}

.contact-alert.error{
    background:#fff1f1;
    color:#9a2525;
    border:1px solid #ffd4d4;
}

img{
    max-width:100%;
}

@media(max-width:991px){
    .comparison-grid{
        grid-template-columns:1fr;
    }
    .comparison-vs{
        margin:-4px auto;
        position:relative;
        z-index:2;
    }
    .comparison-block{
        padding:20px;
    }
}

@media(max-width:576px){
    .comparison-section,
    .faq-section{
        padding:70px 0;
    }
    .comparison-heading h3{
        font-size:23px;
    }
    .comparison-content{
        padding:18px;
    }
    .faq-accordion .accordion-button{
        font-size:15px;
        padding:17px 16px;
    }
}

@media(prefers-reduced-motion:reduce){
    *,*::before,*::after{
        scroll-behavior:auto !important;
        animation-duration:.01ms !important;
        animation-iteration-count:1 !important;
        transition-duration:.01ms !important;
    }
}

/* ===== Fast media + contact notification ===== */
.site-toast-stack{
    position:fixed;
    top:92px;
    left:50%;
    transform:translateX(-50%);
    z-index:99999;
    width:min(92vw,520px);
    pointer-events:none;
}
.site-toast{
    display:flex;
    align-items:center;
    gap:12px;
    padding:15px 16px;
    border-radius:16px;
    background:#fff;
    color:#1f2937;
    box-shadow:0 16px 45px rgba(0,0,0,.16);
    border:1px solid rgba(0,0,0,.06);
    animation:siteToastIn .28s ease both;
    pointer-events:auto;
}
.site-toast.success{border-right:5px solid #26985b}
.site-toast.error{border-right:5px solid #c43b3b}
.site-toast-icon{
    width:30px;height:30px;border-radius:50%;display:grid;place-items:center;
    background:#edf9f1;color:#22864f;font-weight:900;flex:0 0 auto;
}
.site-toast-close{
    margin-right:auto;border:0;background:transparent;font-size:26px;line-height:1;
    color:#6b7280;cursor:pointer;padding:0 4px;
}
.site-toast.is-hiding{animation:siteToastOut .26s ease both}
@keyframes siteToastIn{from{opacity:0;transform:translateY(-14px) scale(.98)}to{opacity:1;transform:none}}
@keyframes siteToastOut{to{opacity:0;transform:translateY(-10px) scale(.98)}}

/* Images paint immediately while keeping layout stable. */
.hero-slider-img,.project-image img,.comparison-image-wrap img,.about-image img{
    content-visibility:auto;
}

@media(max-width:576px){
    .site-toast-stack{top:76px}
    .site-toast{font-size:14px;padding:13px 14px;border-radius:14px}
}
html[dir="rtl"] .ms-auto{margin-right:auto!important;margin-left:0!important}

/* ---------- Future-ready project showcase ---------- */
.projects-showcase{position:relative}
.projects-showcase--slider{padding-inline:58px}
.projects-showcase--slider .projects-track{flex-wrap:nowrap;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;scrollbar-width:none;padding-bottom:8px}
.projects-showcase--slider .projects-track::-webkit-scrollbar{display:none}
.projects-showcase--slider .project-slide{flex:0 0 33.333333%;scroll-snap-align:start}
.projects-nav{display:none}
.projects-showcase--slider .projects-nav{display:grid;place-items:center;position:absolute;top:44%;transform:translateY(-50%);z-index:3;width:44px;height:44px;border:0;border-radius:50%;background:#fff;color:#7b1028;box-shadow:0 10px 28px rgba(40,18,24,.14);font-size:30px;line-height:1;cursor:pointer;transition:.2s ease}
.projects-showcase--slider .projects-nav:hover{background:#7b1028;color:#fff;transform:translateY(-50%) scale(1.04)}
.projects-nav--prev{right:0}.projects-nav--next{left:0}
.projects-dots{display:flex;justify-content:center;gap:7px;margin-top:24px;direction:ltr}
.projects-dot{width:7px;height:7px;border:0;border-radius:99px;background:#d3c9cc;padding:0;transition:.2s ease;cursor:pointer}
.projects-dot.active{width:24px;background:#7b1028}
@media(max-width:991px){.projects-showcase--slider{padding-inline:46px}.projects-showcase--slider .project-slide{flex-basis:50%}}
@media(max-width:767px){.projects-showcase--slider{padding-inline:0}.projects-showcase--slider .project-slide{flex-basis:88%}.projects-showcase--slider .projects-nav{display:none}}
