/* =========================================
   MAIN BODY & GLOBAL STYLES
   ========================================= */
body {
    background: #F9F6F0; /* Soft cream background */
    color: #333333;
    font-family: 'Arial', sans-serif;
}

h1, h2, h3, h4, h5 {
    color: #1A237E; /* Professional Dark Blue */
    font-weight: 700;
}

/* =========================================
   NAVBAR (Logo clearly visible hobe)
   ========================================= */
.navbar {
    background: #FFFFFF; /* White navbar - Logo clearly visible */
    padding: 18px 0;
    border-bottom: 3px solid #B71C1C; /* Logo er Red border */
}

.navbar-brand {
    letter-spacing: 1px;
    font-size: 22px;
    font-weight: 700;
    color: #1A237E; /* Dark Blue */
}

.navbar-brand img {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    color: #333333; /* Dark text */
    font-weight: 500;
    padding: 8px 16px;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #B71C1C; /* Logo er Red */
}

.navbar-nav .nav-link.active {
    color: #B71C1C;
    font-weight: 600;
}

/* =========================================
   HERO SECTION (3D Text + Animated Background)
   ========================================= */
.hero-section {
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    background-color: #1A1A1A; /* Fallback dark color */
}

/* Background Image er Animation */
.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/static/images/hero_bg.jpg');
    background-size: cover;
    background-position: center;
    z-index: -1;
    animation: heroBgZoom 15s ease-in-out infinite alternate;
}

/* 3D Text Effect (Logo er Red color) */
.hero-3d-title {
    color: #B71C1C;
    font-size: 4rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    
    /* 3D Effect er jonno Multiple Shadows */
    text-shadow: 
        1px 1px 0 #7f0000, 
        2px 2px 0 #7f0000, 
        3px 3px 0 #7f0000, 
        4px 4px 5px rgba(0, 0, 0, 0.7);
    
    margin-bottom: 15px;
}

/* Subtext ta clear dekhate */
.hero-subtitle {
    color: #FFFFFF;
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    margin-top: 10px;
}

/* Background Image er Animation Logic */
@keyframes heroBgZoom {
    0% {
        background-size: 100%;
        opacity: 0.7;
    }
    100% {
        background-size: 110%; /* Image ta ektu boro hoye jabe */
        opacity: 1;
    }
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
    .hero-3d-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }
}

/* =========================================
   BUTTONS
   ========================================= */
.btn-main {
    background: #B71C1C; /* Logo er Red */
    color: white;
    border: none;
    padding: 12px 30px;
    font-weight: 700;
}

.btn-main:hover {
    background: #D32F2F; /* Bright Red */
    color: white;
}

.btn-outline-main {
    border: 2px solid #B71C1C;
    color: #B71C1C;
    padding: 10px 25px;
}

.btn-outline-main:hover {
    background: #B71C1C;
    color: white;
}

/* =========================================
   FEATURES & ABOUT SECTION
   ========================================= */
.features {
    background: white;
}

.feature-box {
    padding: 30px;
}

.feature-box h3 {
    color: #1A237E; /* Dark Blue */
}

.about-preview {
    background: #C8DFDB; /* Soft Green */
    padding: 80px 20px;
}

.about-section ul li {
    padding: 8px 0;
    font-size: 16px;
    color: #333333;
}

.about-section ul li::before {
    content: "✓ ";
    color: #B71C1C; /* Red */
    font-weight: 700;
}

/* =========================================
   PAGE HEADER
   ========================================= */
.page-header {
    background: linear-gradient(135deg, #C8DFDB, #F9F6F0);
    padding: 90px 20px;
    color: #333333;
}

.page-header h1 {
    color: #1A237E; /* Dark Blue */
    font-weight: 700;
}

.page-header p {
    color: #B71C1C; /* Red */
    font-weight: 600;
}

/* =========================================
   CONTACT BOX
   ========================================= */
.contact-box {
    background: white;
    padding: 40px;
    border-radius: 10px;
}

/* =========================================
   MACHINERY CARDS
   ========================================= */
.machinery-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    background: white;
}

.machinery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(26, 35, 126, 0.15);
}

.machinery-card .card-img-top {
    border-bottom: 3px solid #B71C1C; /* Red border */
}

.machinery-card .card-title {
    color: #1A237E; /* Dark Blue */
}

/* =========================================
   FOOTER (Logo er Red + Dark Blue)
   ========================================= */
.footer {
    background-color: #1A237E; /* Dark Blue background */
    border-top: 3px solid #B71C1C; /* Red border */
}

.footer img {
    max-width: 150px;
    height: auto;
    object-fit: contain;
}

.footer a {
    color: #FFFFFF;
}

.footer a:hover {
    color: #D32F2F;
    transition: 0.3s;
}

.footer h5 {
    color: #FFFFFF;
}

/* =========================================
   INTRO VIDEO OVERLAY
   ========================================= */
#intro-video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background-color: black;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

#intro-video-overlay video {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    object-position: center;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 3rem;
    }

    .hero-section p {
        font-size: 1.2rem;
    }

    .hero h1 {
        font-size: 38px;
    }

    .navbar {
        padding: 14px 0;
    }
}

.page-header {
    position: relative;
    height: 300px;

    background-image: url("Appon/static/images/hero_bg2.jpg");
    background-size: cover;
    background-position: center;

    display: flex;
    align-items: center;
    justify-content: center;
}

/* ছবির উপর হালকা কালো overlay */
.page-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

/* লেখাকে ছবির উপরে রাখবে */
.page-header .container {
    position: relative;
    z-index: 1;
    color: white;
}

.page-header h1 {
    font-size: 45px;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 18px;
    margin: 0;
}