/* =========================================
   TRMM CONSTRUCTION - PREMIUM STYLESHEET
   ========================================= */
   
@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@300;400;500;600;700&family=Oswald:wght@300;400;500;700&display=swap');

:root {
    --primary: #1e3c72;      /* Deep Blue */
    --secondary: #ffc107;    /* Construction Yellow */
    --dark: #1a1a1a;
    --light: #f8f9fa;
    --text-gray: #6c757d;
}

body {
    font-family: 'Hind Siliguri', sans-serif;
    color: var(--dark);
    overflow-x: hidden;
    background-color: #fff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

a { text-decoration: none; transition: 0.3s; }


/* --- Top Bar --- */
.top-bar {
    background-color: var(--dark);
    color: #fff;
    padding: 8px 0;
    font-size: 14px;
}
.top-bar i { color: var(--secondary); margin-right: 5px; }
.lang-switch a {
    color: #fff;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 4px;
}
.lang-switch a.active {
    background: var(--secondary);
    color: var(--dark);
}

/* --- Navbar --- */
.navbar {
    background: #fff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.navbar-brand img { max-height: 50px; }
.nav-link {
    color: var(--primary) !important;
    font-weight: 600;
    margin-left: 15px;
    text-transform: uppercase;
    font-size: 15px;
}
.nav-link:hover, .nav-link.active { color: var(--secondary) !important; }
.btn-quote {
    background: var(--secondary);
    color: var(--dark);
    font-weight: bold;
    border-radius: 0;
    padding: 10px 25px;
}
.btn-quote:hover { background: var(--primary); color: #fff; }

/* --- HERO SECTION (SLIDER) - FIXED --- */
.hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Desktop Settings */
.hero-slider-item {
    height: 90vh; /* বড় স্ক্রিনে ৯০% হাইট */
    min-height: 500px;
    position: relative;
}

.hero-slider-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* ইমেজ চ্যাপ্টা হবে না */
}

/* Dark Overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55); /* 55% কালো শেড */
    z-index: 1;
}

/* Centered Text Content (Flexbox Fix) */
.hero-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* Flexbox দিয়ে একদম মাঝখানে ফিক্স করা হচ্ছে */
    display: flex;
    flex-direction: column;
    justify-content: center; /* উপরে-নিচে মাঝখানে */
    align-items: center;     /* ডানে-বামে মাঝখানে */
    
    z-index: 10; /* স্লাইডারের উপরে থাকবে */
    text-align: center;
    color: #fff;
    padding: 0 15px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 30px;
    color: #f8f9fa;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}

/* --- Section Titles --- */
.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}
.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}
.section-title p { color: var(--text-gray); max-width: 600px; margin: 0 auto; }
.section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: var(--secondary);
    margin: 15px auto 0;
}

/* --- Service Card --- */
.service-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
    border-bottom: 4px solid transparent;
    height: 100%;
    text-align: center;
}
.service-card:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--secondary);
}
.service-icon {
    width: 70px; height: 70px;
    line-height: 70px;
    background: rgba(30, 60, 114, 0.1);
    color: var(--primary);
    font-size: 30px;
    border-radius: 50%;
    margin: 0 auto 20px;
    transition: 0.3s;
}
.service-card:hover .service-icon { background: var(--secondary); color: var(--dark); }

/* --- Project Card --- */
.project-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.project-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.project-card:hover .project-img { transform: scale(1.1); }
.status-badge {
    position: absolute;
    top: 15px; right: 15px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.status-completed { background: #28a745; color: white; }
.status-ongoing { background: #007bff; color: white; }
.status-upcoming { background: var(--secondary); color: black; }

/* --- Footer --- */
.footer {
    background: #111;
    color: #bbb;
    padding: 60px 0 20px;
}
.footer h4 { color: #fff; margin-bottom: 25px; }
.footer-links a { color: #bbb; display: block; margin-bottom: 10px; }
.footer-links a:hover { color: var(--secondary); padding-left: 5px; }
.social-icons a {
    display: inline-block;
    width: 40px; height: 40px;
    line-height: 40px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    text-align: center;
    border-radius: 50%;
    margin-right: 10px;
}
.social-icons a:hover { background: var(--secondary); color: #000; }
.copyright {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    font-size: 14px;
}

/* =========================================
   MOBILE RESPONSIVENESS (Fixes)
   ========================================= */
@media (max-width: 768px) {
    /* Hero Section Mobile Fix */
    .hero-slider-item {
        height: 60vh; /* হাইট কমিয়ে ৬০% করা হলো */
        min-height: 350px;
    }
    .hero-title {
        font-size: 2.2rem; /* মোবাইলে ফন্ট ছোট */
        margin-bottom: 10px;
    }
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    .btn-lg {
        padding: 8px 20px;
        font-size: 14px;
    }
    
    /* Top bar hidden on mobile */
    .top-bar { display: none; }
    
    /* Adjust Project Images */
    .project-img { height: 200px; }
}
/* --- DAILY GALLERY ANIMATION --- */
.gallery-marquee {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
    background: #fff;
}

.gallery-track {
    display: flex;
    width: max-content; /* Width based on content */
    animation: scrollGallery 90s linear infinite; /* Animation Control */
}

.gallery-item {
    width: 300px;
    height: 200px;
    margin: 0 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item:hover {
    transform: scale(1.05); /* Zoom on hover */
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Keyframes for Moving Effect */
@keyframes scrollGallery {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Move half width since content is duplicated */
}

/* Pause animation on hover for better user experience */
.gallery-track:hover {
    animation-play-state: paused;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .gallery-item {
        width: 200px; /* Smaller images on mobile */
        height: 140px;
        margin: 0 8px;
    }
}

/* FLOATING WHATSAPP */
.floating-wa {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    line-height: 60px;
    animation: wa-pulse 2s infinite;
}
.floating-wa:hover { color: #fff; transform: scale(1.1); }
@keyframes wa-pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
@media (max-width: 768px) {
    .floating-wa { width: 50px; height: 50px; bottom: 20px; right: 20px; font-size: 30px; line-height: 50px; }
}

/* TESTIMONIAL SLIDER */
.testimonial-img { width: 100px; height: 100px; object-fit: cover; border: 5px solid #fff; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.testimonial-text { font-size: 1.1rem; font-style: italic; color: #555; }

/* =========================================
   1. PRELOADER ANIMATION
   ========================================= */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}
.loader-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #ffc107; /* Warning/Yellow color */
    border-right: 5px solid #1e3c72; /* Primary/Blue color */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* =========================================
   2. VIDEO HERO SECTION
   ========================================= */
.video-hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}
.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
    z-index: 0;
}
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* কালো শ্যাডো যাতে লেখা বোঝা যায় */
    z-index: 1;
}
.video-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

/* =========================================
   3. FLOATING WHATSAPP (FIXED SVG)
   ========================================= */
.floating-wa-fixed {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 30px;
    background-color: #25d366;
    border-radius: 50px;
    text-align: center;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: wa-pulse 2s infinite;
    transition: transform 0.3s ease;
}
.floating-wa-fixed:hover {
    transform: scale(1.1);
}
.floating-wa-fixed svg {
    width: 35px;
    height: 35px;
    fill: #ffffff;
}
@media (max-width: 768px) {
    .floating-wa-fixed { width: 55px; height: 55px; bottom: 20px; right: 20px; }
    .floating-wa-fixed svg { width: 30px; height: 30px; }
}