/* ==========================================================================
   1. GLOBAL STYLES & TYPOGRAPHY
   ========================================================================== */
html, body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    background-color: #fcfcfc;
    overflow-x: hidden; /* Absolutely prevents side-scrolling on mobile */
    width: 100%;
    max-width: 100vw;
    margin: 0;
    padding: 0;
}

.brand-text {
    font-family: "Comic Sans MS";
    font-size: 32px; 
    font-weight: 700; 
    font-style: italic; 
    color: #1a1a1a !important; 
    letter-spacing: 0.5px;
    
    /* These three lines guarantee perfect vertical centering next to the image */
    line-height: 1;
    display: flex;
    align-items: center; 
    
    margin-bottom: 0;
    padding-top: 0; /* Removed padding so flexbox handles the centering */
}

/* Mobile sizing */
@media (max-width: 767px) {
    .brand-text {
        font-size: 26px;
    }
}
.z-index-1 { z-index: 1; }
.tracking-wider { letter-spacing: 2px; }

/* Buttons & Pills */
.btn-pill {
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

/* Custom Nav Pill */
.nav-pill {
    padding: 8px 20px !important;
    border-radius: 50px;
    transition: all 0.3s ease;
    color: #555 !important;
    font-weight: 500;
}

.nav-pill:hover, .nav-pill.active {
    background-color: #f8f9fa;
    color: #000 !important;
}

/* ==========================================================================
   2. HERO CAROUSEL SECTION (PERFECT FIT & NO ZOOM)
   ========================================================================== */
.hero-section {
    width: 100%;
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height fix */
    position: relative;
    overflow: hidden;
   
}

#heroCarousel, .carousel-inner, .carousel-item {
    height: 100% !important;
}

.hero-slider-img {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    object-fit: cover; /* Desktop fills the screen */
    object-position: center;
    display: block;
}



.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8), 0px 0px 25px rgba(0,0,0,0.4);
}

.hero-subtitle {
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.8);
}

.slide-control-top {
    position: absolute;
    top: 25px;
    right: 25px;
    z-index: 20;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(5px);
    color: #fff;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
}

/* ==========================================================================
   3. PORTFOLIO & CONTENT SECTIONS
   ========================================================================== */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #222;
}

.divider {
    height: 3px;
    width: 60px;
    background-color: #000;
    margin-top: 15px;
}

.portfolio-img {
    height: 400px;
    width: 100%;
    object-fit: cover; /* Prevents image stretching */
    transition: transform 0.5s ease;
}

.smart-img {
    width: 100%;
    aspect-ratio: 4 / 3; /* Uniform shape for all logos */
    object-fit: cover; 
    object-position: center; 
    border: 1px solid #eaeaea; 
}

.portfolio-img-wrapper {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.portfolio-img-wrapper:hover .portfolio-img {
    transform: scale(1.03); 
}

.portfolio-heading {
    font-size: 2.5rem;
    color: #222;
}

/* ==========================================================================
   4. CONTACT SECTION
   ========================================================================== */
.brand-heading {
    font-size: 3.5rem;
    color: #222;
    letter-spacing: -1px;
    line-height: 1;
}

.form-heading {
    font-size: 1.8rem;
    color: #333;
}

.description-text {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #555;
    text-align: justify;
}

.custom-input {
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 12px 15px;
    font-size: 0.95rem;
    color: #333;
    background-color: transparent;
    transition: all 0.3s ease;
}

.custom-input:focus {
    box-shadow: none;
    border-color: #000;
    background-color: #fff;
}

.map-container {
    border: 1px solid #eee;
    background: #f9f9f9;
    height: 100%; 
    min-height: 450px; 
}

/* ==========================================================================
   5. LOWER BRAND LOGO SLIDER (SLICK)
   ========================================================================= */
.brand-carousel {
    padding: 20px 0;
    overflow: visible !important;
}

.brand-item {
    outline: none;
    display: flex !important; 
    align-items: center;
    justify-content: center;
    min-height: 140px; 
}

.brand-item img {
    max-height: 100px; /* Enhanced visibility */
    width: auto;
    max-width: 90%;
    object-fit: contain;
}

/* ==========================================================================
   6. DARK FOOTER
   ========================================================================== */
.cyber-footer {
    background-color: #1a1a1a; 
    color: #a0a0a0;
    padding: 60px 0 20px;
}

.footer-brand {
    font-family: "Comic Sans MS";
    font-size: 32px; 
    font-style: italic; 
    color: #ffffff; 
    letter-spacing: 0.5px;
    
    /* These three lines guarantee perfect vertical centering next to the image */
    line-height: 1;
    
    align-items: center; 
    
    margin-bottom: 0;
    padding-top: 0; /* Removed padding so flexbox handles the centering */
}

.footer-link {
    color: #a0a0a0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover { 
    color: #ffffff; 
}

.social-icons .social-btn {
    width: 35px;
    height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px; 
    color: #fff;
    margin-right: 8px;
    font-size: 1.1rem;
    text-decoration: none;
    transition: transform 0.3s;
}

.social-icons .social-btn:hover { transform: translateY(-3px); }
.btn-facebook { background-color: #3b5998; }
.btn-twitter { background-color: #00aced; }
.btn-instagram { background-color: #e1306c; }
.btn-youtube { background-color: #ff0000; }

/* ==========================================================================
   7. ABSOLUTE RESPONSIVENESS (MOBILE LOCK)
   ========================================================================== */

/* TABLETS (Max Width: 991px) */
@media (max-width: 991px) {
    .hero-title { font-size: 2.8rem; }
    .portfolio-img { height: 320px; }
    .map-container { min-height: 350px; margin-top: 2rem; }
}

/* MOBILE PHONES (Max Width: 767px) */
@media (max-width: 767px) {
    /* Fullscreen Mobile Fix: contain ensures whole width fits inaccurately */
    .hero-section, .hero-slider-img { 
        height: 100dvh !important; 
        width: 100vw !important;
    }
    
    .hero-slider-img {
        object-fit: contain !important; 
        background-color: #000; /* Cinematic bars instead of cropping/zooming */
        height: auto !important;
    }

    .hero-section {
        /* Prevents slider from being too tall and allows black gaps */
        height: auto !important;
        aspect-ratio: 16 / 9; 
        min-height: 250px;
    }

    .hero-title { 
        font-size: 2.1rem !important; 
        padding: 0 15px; 
        line-height: 1.2;
    }
    
    .hero-subtitle { 
        font-size: 0.9rem !important; 
        letter-spacing: 2px; 
    }
    
    .slide-control-top { top: 15px; right: 15px; width: 35px; height: 35px; }

    .brand-heading { font-size: 2.5rem; }
    .description-text { text-align: left; }
    
    .brand-item { min-height: 100px; }
    .brand-item img { max-height: 60px; }
    
    .cyber-footer { text-align: center; }
    .social-icons { justify-content: center !important; margin-bottom: 20px; }
}

/* SMALL PHONES (Max Width: 480px) */
@media (max-width: 480px) {
    .hero-title { font-size: 1.7rem !important; }
    .portfolio-img { height: 200px; }
}

@media (min-width: 1200px) {
    /* ১. কন্টেইনারকে আরও জায়গা দেওয়া */
    .navbar .container-fluid {
        max-width: 98% !important; /* দুই পাশে জায়গা বাড়িয়ে দেওয়া */
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    /* ২. মেনু আইটেমগুলোর মাঝের গ্যাপ বা প্যাডিং কমানো */
    .navbar-nav .nav-link {
        padding-left: 6px !important;  /* প্যাডিং কমিয়ে দেওয়া হয়েছে */
        padding-right: 6px !important;
        font-size: 13.5px !important; /* সামান্য ফন্ট ছোট করা */
        letter-spacing: -0.2px; /* অক্ষরের মাঝে জায়গা কমানো */
    }

    /* ৩. লোগো এবং ডান পাশের এলিমেন্টগুলোর সাইজ অ্যাডজাস্ট */
    .brand-text {
        font-size: 22px !important; /* লোগো টেক্সট কিছুটা ছোট করা */
    }

    .opening-hours-box {
        font-size: 11.5px !important;
        margin-left: 5px !important;
        margin-right: 5px !important;
    }

    .phone-number-box {
        font-size: 13px !important;
    }

    /* ৪. ফ্লেক্সবক্সকে ফোর্স করা যাতে কোনোভাবেই নিচে না নামে */
    .navbar-collapse {
        display: flex !important;
        flex-basis: auto !important;
        justify-content: space-around !important; /* এলিমেন্টগুলোর মাঝে সমান জায়গা ডিস্ট্রিবিউট করা */
    }
}

@media (min-width: 992px) {
    /* CM Logo size enhancement */
.navbar-brand img {
        height: 60px !important; /* !important দিলে ইনলাইন স্টাইল কাজ করবে না */
        max-height: 60px !important; /* ইনলাইন max-height থাকলে এটাও দিতে হবে */
        width: auto !important;
    }

    /* Cyber Music Brand Text */
    .navbar-brand span {
        font-size: 26px; /* ১-২ সাইজ বাড়ানো হয়েছে */
        font-weight: 700;
        margin-left: 10px;
    }

    /* Navigation Links (Home, Portfolio, etc.) */
    .navbar-nav .nav-link {
        font-size: 18px; /* টেক্সট সাইজ বাড়ানো হয়েছে */
        padding-left: 20px !important; /* টেক্সট এরিয়া বা গ্যাপ বাড়ানো হয়েছে */
        padding-right: 20px !important;
        transition: 0.3s;
    }

    /* Hover effect e ektu depth thakbe */
    .navbar-nav .nav-link:hover {
        transform: scale(1.05);
    }
}

/* টোস্টার কন্টেইনার */
    #toaster-notification {
        visibility: hidden;
        min-width: 300px;
        background-color: #000; /* ব্ল্যাক ব্যাকগ্রাউন্ড */
        color: #fff;
        text-align: center;
        border-radius: 50px; /* রাউন্ডেড ডিজাইন */
        padding: 16px;
        position: fixed;
        z-index: 9999;
        left: 50%;
        bottom: 30px;
        transform: translateX(-50%);
        border: 2px solid #00AEEF; /* সাইবার ব্লু বর্ডার */
        box-shadow: 0 10px 30px rgba(0, 174, 239, 0.3);
    }

    /* শো এনিমেশন */
    #toaster-notification.show {
        visibility: visible;
        animation: fadein 0.5s, fadeout 0.5s 2.5s;
    }

    @keyframes fadein {
        from {bottom: 0; opacity: 0;}
        to {bottom: 30px; opacity: 1;}
    }

    @keyframes fadeout {
        from {bottom: 30px; opacity: 1;}
        to {bottom: 0; opacity: 0;}
    }

    .toast-content {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        font-weight: 600;
    }
