/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --primary-purple: #5e23dc;
    --secondary-purple: #4a1bb0;
    --highlight-yellow: #ffc72c;
    --text-dark: #333;
    --overlay-color: rgba(40, 20, 80, 0.7);
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f8f9fa;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* ================= LOGO STYLING ================= */
.navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.navbar-brand img {
    height: 50px;
    margin-right: 10px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
    display: flex;
    flex-direction: column;
}

.logo-text .trio { color: #fff; }
.logo-text .developer {
    color: #e74c3c; /* Red */
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(231, 76, 60, 0.8), 0 0 20px rgba(231, 76, 60, 0.4);
}

@media (max-width: 576px) {
    .logo-text { font-size: 1.2rem; }
    .navbar-brand img { height: 40px; }
}

/* ================= NAVBAR ================= */
.navbar {
    background: rgba(30, 10, 60, 0.2) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 15px 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-link {
    color: #fff !important;
    font-weight: 600;
    margin: 0 18px;
    position: relative;
    transition: 0.3s;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    opacity: 0.9;
}

.nav-link:hover, .nav-link.active {
    opacity: 1;
    color: var(--highlight-yellow) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--highlight-yellow);
    bottom: -5px;
    left: 0;
    transition: 0.3s ease-in-out;
}

.nav-link:hover::after { width: 100%; }

.navbar-toggler {
    border-color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.1);
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

@media (max-width: 991px) {
    .navbar-collapse {
        background: var(--primary-purple);
        padding: 20px;
        border-radius: 10px;
        margin-top: 15px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    }
    .nav-link {
        margin: 10px 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding-bottom: 10px;
    }
    .btn-call-now {
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }
}

.btn-call-now {
    background-color: transparent;
    color: #fff;
    font-weight: 700;
    border-radius: 30px;
    padding: 8px 25px;
    transition: 0.3s;
    border: 2px solid var(--highlight-yellow);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    margin-right: 10px;
}

.btn-call-now:hover {
    background-color: var(--highlight-yellow);
    color: #333;
    box-shadow: 0 0 15px rgba(255, 199, 44, 0.4);
}

.btn-whatsapp {
    background-color: #25D366;
    color: #fff;
    font-weight: 700;
    border-radius: 30px;
    padding: 8px 20px;
    transition: 0.3s;
    border: 2px solid #25D366;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.btn-whatsapp:hover {
    background-color: #fff;
    color: #25D366;
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.4);
}

/* ================= HERO SECTION ================= */
header#home {
    background: linear-gradient(var(--overlay-color), var(--overlay-color)), url('https://images.unsplash.com/photo-1560448204-e02f11c3d0e2?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding-top: 60px;
}

/* Category Header (Small) */
.category-header {
    height: 50vh !important;
    min-height: 400px;
    background-attachment: scroll !important;
    padding-top: 80px;
}

header h1 {
    font-size: 3.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 20px rgba(0,0,0,0.4);
}

header p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    font-weight: 300;
}

.search-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    padding: 12px;
    border-radius: 50px;
    display: inline-block;
    border: 1px solid rgba(255,255,255,0.2);
    transition: 0.3s;
}

.search-container:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.02);
}

.btn-explore {
    background-color: var(--highlight-yellow);
    color: #222;
    font-weight: 700;
    padding: 12px 40px;
    border-radius: 30px;
    border: none;
    font-size: 1rem;
    transition: 0.3s;
    text-transform: uppercase;
}

.btn-explore:hover {
    background-color: #e6b228;
    color: #000;
}

/* ================= WHY CHOOSE US ================= */
.why-choose-us {
    background: #fff;
    padding: 90px 0;
    border-bottom: 1px solid #eee;
}

.carousel-item {
    height: 350px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.feature-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-list li { margin-bottom: 18px; font-size: 1.1rem; color: #555; }
.feature-list i { color: var(--primary-purple); margin-right: 12px; font-size: 1.3rem; }

/* ================= PROPERTIES SECTION (FIXED CARD DESIGN) ================= */
section#services {
    background-color: #f4f5f7;
    padding-top: 70px;
}

.section-heading {
    color: var(--primary-purple);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-heading::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 4px;
    background: var(--highlight-yellow);
    bottom: 0;
    left: 20%;
    border-radius: 2px;
}

/* ---- NEW CARD STYLES TO FIX MESSY LOOK ---- */
.product-card {
    height: 100%; /* Ensures all cards in a row are same height */
    border: none;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column; /* Allows buttons to push to bottom */
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(94, 35, 220, 0.15);
}

.product-card .card-img-top {
    height: 220px;
    object-fit: cover;
}

.product-card .card-body {
    display: flex;
    flex-direction: column;
    padding: 20px;
    flex-grow: 1; /* Body fills the remaining space */
}

/* Classes to truncate text with ... */
.text-limit-1 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.text-limit-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limit to 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 44px; /* Fixed height for alignment */
}

/* Container for Address info to keep it neat */
.card-info-box {
    background: #f9f9f9;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #eee;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: #555;
}

/* Buttons container pushed to bottom */
.card-btn-group {
    margin-top: auto;
}

.btn-outline-primary {
    color: var(--primary-purple);
    border-color: var(--primary-purple);
    border-radius: 8px;
    font-weight: 600;
}

.btn-outline-primary:hover {
    background-color: var(--primary-purple);
    color: #fff;
}

/* ================= FOOTER ================= */
footer {
    background-color: #111;
    color: #bbb;
    padding-top: 80px;
    padding-bottom: 20px;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: linear-gradient(to right, var(--primary-purple), var(--highlight-yellow));
}

footer .logo-text .trio { color: #fff; }
footer h5 { color: #fff; margin-bottom: 25px; font-weight: 700; letter-spacing: 0.5px; }

footer ul.list-unstyled li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

footer ul.list-unstyled i {
    color: var(--highlight-yellow);
    margin-right: 15px;
    min-width: 20px;
    margin-top: 4px;
}

footer a { color: #bbb; text-decoration: none; transition: 0.3s; }
footer a:hover { color: var(--highlight-yellow); padding-left: 5px; }

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    margin-right: 10px;
    transition: 0.3s;
    color: #fff;
}
.social-icons a:hover { background: var(--primary-purple); transform: translateY(-3px); }

.footer-bottom-text {
    color: #fff !important;
    font-size: 0.9rem;
    opacity: 0.8;
}



/* Scroll To Top Button Style */
#myBtn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: #ffc72c; /* ডিফল্ট হলুদ */
    color: #333;
    cursor: pointer;
    padding: 12px 18px;
    border-radius: 50%;
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    
    /* মোবাইলে টাচ হাইলাইট রিমুভ করার জন্য */
    -webkit-tap-highlight-color: transparent; 
}

/* ১. শুধু কম্পিউটারের জন্য Hover Effect */
@media (hover: hover) {
    #myBtn:hover {
        background-color: #333; /* মাউস নিলে কালো হবে */
        color: #fff;
        transform: translateY(-5px);
    }
}

/* ২. মোবাইলে টাচ করার মুহূর্তের জন্য (Active State) */
#myBtn:active {
    background-color: #333 !important; /* টাচ করলেই কালো হবে */
    color: #fff !important;
    transform: scale(0.95); /* চাপলে একটু ছোট হবে (ক্লিক ফিল হবে) */
}




/* Mobile View Adjustment (Final Fix) */
@media (max-width: 768px) {
    #home, .carousel-item {
        /* লেখা নিচে নামানোর জন্য উপরের প্যাডিং */
        padding-top: 140px !important; 
        
        height: auto !important;
        min-height: 250px;
        
        /* 🔥 নিচের ফাঁকা জায়গা কমানোর জন্য এই দুটি লাইন চেঞ্জ করা হলো */
        padding-bottom: 0px !important; /* নিচের প্যাডিং একদম ০ করে দেওয়া হলো */
        margin-bottom: -80px !important; /* পরের সেকশনকে টেনে ওপরে তোলা হলো */
    }

    /* লেখাগুলো যাতে সুন্দরভাবে থাকে */
    .carousel-caption {
        position: relative !important;
        left: 0 !important;
        right: 0 !important;
        top: 0 !important;
        transform: none !important;
        padding-bottom: 0 !important;
        margin-top: 10px;
    }
    
    /* ইমেজ ফিক্স */
    .carousel-item img {
        height: 100%;
        min-height: 400px; /* ইমেজ যাতে ছোট না হয়ে যায় */
        object-fit: cover;
    }
}