/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Floating Header */
.floating-header {
    background: #fff !important;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    padding: 12px 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
}

.floating-header .navbar-brand {
    display: flex;
    align-items: center;
}

/* Logo Image Styles - Increased Width */
.logo-image {
    height: 40px;
    width: auto;
    max-width: 250px;
    min-width: 180px;
    transition: all 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.05);
}

.floating-header .navbar-nav .nav-link {
    color: #000000 !important;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 1px;
    margin: 0 18px;
    transition: all 0.3s ease;
    padding: 8px 0;
    position: relative;
}

.floating-header .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #dc3545;
    transition: width 0.3s ease;
}

.floating-header .navbar-nav .nav-link:hover::after,
.floating-header .navbar-nav .nav-link.active::after {
    width: 100%;
}

.floating-header .navbar-nav .nav-link:hover,
.floating-header .navbar-nav .nav-link.active {
    color: #dc3545 !important;
    transform: translateY(-2px);
}

/* Navbar Toggler for Mobile */
.floating-header .navbar-toggler {
    border-color: #333;
    padding: 4px 8px;
}

.floating-header .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%280, 0, 0, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Section with Border Frame */
.hero-section {
    position: relative;
    height: 90vh;
    min-height: 500px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px 20px;
}

.hero-frame-container {
    position: relative;
    width: 100%;
    height: calc(100% - 10px);
    margin: 0 auto;
}

.hero-frame {
    position: relative;
    width: 100%;
    height: 100%;
    border: 0px solid #000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    background: #fff;
    padding: 0;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 0;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f8f9fa;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    border-radius: 0;
}

.slide.active {
    opacity: 1;
}

/* Enhanced Border Effect */
.hero-frame::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    pointer-events: none;
    z-index: 2;
}

.hero-overlay-content {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 3;
}

.company-badge {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    border-radius: 25px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.badge-text {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Slider Indicators - Enhanced */
.slider-indicators {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 5;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 20px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.4s ease;
    border: 2px solid transparent;
    position: relative;
}

.indicator::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 2px solid transparent;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.indicator.active {
    background: #dc3545;
    transform: scale(1.3);
    box-shadow: 0 0 15px rgba(220, 53, 69, 0.5);
}

.indicator.active::before {
    border-color: rgba(220, 53, 69, 0.4);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.1);
}

/* Black Red Section with Welcome Text */
.black-red-section {
    background: linear-gradient(45deg, #000 50%, #dc3545 50%);
    height: 20px;
    position: relative;
    transform: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.black-red-section::after {
    content: 'WELCOME TO JALALABAD PRODUCTS LTD.';
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-family: "Bookman Old Style Bold", serif;
    font-size: 2rem;
    font-weight: bold;
    color: #e40001;
    text-align: center;
    white-space: nowrap;
    z-index: 10;
    background: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Our Works Section */
.works-section {
    background: #f8f9fa !important;
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 60px;
    color: #333;
}

.work-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.work-main-image {
    display: none;
}

.work-image-container:hover .work-main-image {
    transform: scale(1.05);
}

.work-content-right,
.work-content-left {
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.work-content-left {
    text-align: right;
}

.work-category {
    color: #999;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: block;
}

.work-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 25px;
    line-height: 1.2;
}

.work-description {
    color: #666;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 30px;
    max-width: 400px;
}

.work-content-left .work-description {
    margin-left: auto;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.work-content-left .author-info {
    justify-content: flex-end;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.author-details strong {
    display: block;
    color: #333;
    font-size: 0.95rem;
    font-weight: 600;
}

.author-details small {
    color: #999;
    font-size: 0.85rem;
}

.view-portfolio-btn {
    display: inline-block;
    padding: 12px 25px;
    background: transparent;
    border: 2px solid #333;
    color: #333;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    max-width: 200px;
    margin-top: 20px;
    text-decoration: none;
}

.work-content-left .view-portfolio-btn {
    margin-left: auto;
}

.view-portfolio-btn:hover {
    background: #333;
    color: #fff;
    text-decoration: none;
}

.portfolio-link {
    text-decoration: none;
    display: inline-block;
    color: red;
}

/* Work Item Image Slider Styles */
.work-image-slider {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
}

.work-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    border-radius: 10px;
}

.work-slide.active {
    opacity: 1;
}

.work-slider-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}

.work-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.work-indicator.active {
    background: #dc3545;
    transform: scale(1.2);
    border-color: #fff;
}

.work-image-container:hover .work-slide {
    transform: scale(1.02);
}

/* Blog Section */
.blog-section {
    background-color: #fff;
    padding: 80px 0 40px;
}

.blog-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    margin-bottom: 30px;
}

.blog-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.blog-video {
    height: 220px;
    overflow: hidden;
}

.blog-video iframe {
    width: 100%;
    height: 100%;
    border: none;
    transition: transform 0.3s ease;
}

.blog-item:hover .blog-video iframe {
    transform: scale(1.05);
}

.blog-image {
    height: 220px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-item:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 30px 25px;
}

.blog-content h5 {
    font-size: 1.1rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
}

.blog-meta {
    margin-bottom: 15px;
}

.blog-meta small {
    color: #999;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-meta i {
    margin-left: 5px;
}

.blog-content p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
}



/* Button Styles */
.btn-danger {
    background: #dc3545;
    border: none;
    padding: 15px 35px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn-danger:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(220, 53, 69, 0.4);
}

/* Enhanced Responsive Design */
@media (max-width: 1200px) {
    .hero-section {
        padding-top: 80px;
        height: 80vh;
        min-height: 450px;
    }
    
    .hero-frame {
        border-width: 0px;
    }
    
    .black-red-section::after {
        font-size: 1.8rem;
        bottom: -22px;
    }
    
    .work-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 992px) {
    .hero-section {
        padding-top: 80px;
        height: 70vh;
        min-height: 400px;
    }
    
    .hero-frame {
        border-width: 0px;
    }
    
    .hero-frame-container {
        width: 97%;
    }
    
    .black-red-section::after {
        font-size: 1.6rem;
        bottom: -22px;
        padding: 8px 15px;
    }
    
    .work-content-right,
    .work-content-left {
        padding: 40px 30px;
    }
    
    .work-title {
        font-size: 2rem;
    }
    
    .work-image-slider {
        height: 350px;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .logo-image {
        max-width: 200px;
        min-width: 150px;
        height: 35px;
    }
    
    .floating-header {
        padding: 10px 0;
    }
    
    .floating-header .navbar-nav .nav-link {
        margin: 10px 0;
        font-size: 14px;
        text-align: center;
    }
    
    .floating-header .navbar-collapse {
        background: #fff;
        padding: 15px;
        border-radius: 8px;
        margin-top: 10px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
    
    .hero-section {
        padding-top: 70px;
        height: 60vh;
        min-height: 350px;
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .hero-frame {
        border-width: 0px;
        border-radius: 8px;
    }
    
    .hero-frame-container {
        width: 98%;
        height: calc(100% - 30px);
    }
    
    .slide {
        background-size: contain; /* মোবাইলেও ছবি সম্পূর্ণ দেখা যাবে */
    }
    
    .slider-indicators {
        bottom: 25px;
        padding: 8px 15px;
        gap: 10px;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
    
    .black-red-section {
        height: 15px;
    }
    
    .black-red-section::after {
        font-size: 1.3rem;
        bottom: -20px;
        padding: 6px 12px;
        white-space: normal;
        text-align: center;
        line-height: 1.3;
        max-width: 90%;
    }
    
    .section-title {
        font-size: 1.8rem;
        padding: 0 10px;
        margin-bottom: 40px;
    }
    
    .works-section,
    .blog-section {
        padding: 60px 0;
    }
    
    .work-content-right,
    .work-content-left {
        padding: 30px 20px;
        text-align: center !important;
    }
    
    .work-title {
        font-size: 1.8rem;
    }
    
    .work-description {
        max-width: 100%;
        margin: 0 auto 30px !important;
        font-size: 0.95rem;
    }
    
    .author-info {
        justify-content: center !important;
    }
    
    .view-portfolio-btn {
        margin: 0 auto !important;
    }
    
    .work-image-slider {
        height: 280px;
        margin-bottom: 20px;
    }
    
    .work-slider-indicators {
        bottom: 10px;
    }
    
    .work-indicator {
        width: 8px;
        height: 8px;
    }
    
    .blog-item {
        margin-bottom: 25px;
    }
    
    .footer-section {
        padding: 60px 0 20px;
    }
    
    .footer-content {
        margin-bottom: 30px;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .logo-image {
        max-width: 160px;
        min-width: 130px;
        height: 30px;
    }
    
    .floating-header {
        padding: 8px 0;
    }
    
    .hero-section {
        padding-top: 65px;
        height: 50vh;
        min-height: 300px;
        padding-left: 10px;
        padding-right: 10px;
        padding-bottom: 10px;
    }
    
    .hero-frame {
        border-width: 0px;
        border-radius: 6px;
    }
    
    .hero-frame-container {
        width: 100%;
        height: calc(100% - 20px);
    }
    
    .slide {
        background-size: contain; /* ছোট স্ক্রিনেও ছবি সম্পূর্ণ দেখা যাবে */
    }
    
    .slider-indicators {
        bottom: 15px;
        padding: 6px 12px;
        gap: 8px;
    }
    
    .indicator {
        width: 8px;
        height: 8px;
    }
    
    .black-red-section {
        height: 12px;
    }
    
    .black-red-section::after {
        font-size: 1rem;
        bottom: -18px;
        padding: 5px 10px;
        line-height: 1.3;
        max-width: 95%;
    }
    
    .section-title {
        font-size: 1.5rem;
        white-space: normal;
        line-height: 1.3;
        margin-bottom: 30px;
    }
    
    .works-section,
    .blog-section {
        padding: 40px 0;
    }
    
    .work-title {
        font-size: 1.5rem;
    }
    
    .work-content-right,
    .work-content-left {
        padding: 25px 15px;
    }
    
    .work-image-slider {
        height: 220px;
    }
    
    .blog-video,
    .blog-image {
        height: 180px;
    }
    
    .blog-content {
        padding: 20px 15px;
    }
    
    .blog-content h5 {
        font-size: 1rem;
    }
    
    .view-portfolio-btn {
        padding: 10px 20px;
        font-size: 0.8rem;
    }
    
    .footer-section {
        padding: 40px 0 15px;
    }
    
    .social-links a {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 400px) {
    .logo-image {
        max-width: 140px;
        min-width: 120px;
        height: 28px;
    }
    
    .hero-section {
        height: 45vh;
        min-height: 280px;
        padding-top: 65px;
    }
    
    .hero-frame {
        border-width: 0px;
    }
    
    .black-red-section::after {
        font-size: 0.9rem;
        padding: 4px 8px;
        bottom: -16px;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .work-title {
        font-size: 1.3rem;
    }
    
    .work-image-slider {
        height: 200px;
    }
    
    .slider-indicators {
        bottom: 12px;
        padding: 5px 10px;
    }
}