/* Custom Styles for BD Engineering Site */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #3498db;
    --dark-color: #000000;
    --light-color: #ffffff;
    --text-color: #333333;
    --gray-color: #f8f9fa;
    --border-color: #dee2e6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--dark-color);
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    background: var(--light-color) !important;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color) !important;
}

.navbar-nav .nav-link {
    color: var(--dark-color) !important;
    font-weight: 500;
    margin: 0 10px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--accent-color) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 100%;
}

/* Top Bar */
.top-bar {
    background: var(--dark-color);
    color: var(--light-color);
    padding: 10px 0;
    font-size: 0.9rem;
}

.top-bar a {
    color: var(--light-color);
    text-decoration: none;
    transition: color 0.3s;
}

.top-bar a:hover {
    color: var(--accent-color);
}

.social-icons a {
    margin: 0 8px;
    font-size: 1.1rem;
}

/* Simplified Clean Dropdown Menu */
.dropdown-menu {
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-radius: 6px;
    padding: 0.5rem 0;
    min-width: 240px;
    margin-top: 0.25rem;
    background: #ffffff;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    color: #333;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    border: none;
}

.dropdown-item i {
    font-size: 0.9rem;
    width: 18px;
    margin-right: 0.5rem;
    transition: transform 0.2s ease;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: var(--accent-color);
}

.dropdown-item:hover i {
    transform: translateX(2px);
}

.dropdown-item strong {
    color: #333;
    font-size: 0.9rem;
    font-weight: 600;
}

.dropdown-item:hover strong {
    color: var(--accent-color);
}

/* Subcategory Items */
.dropdown-item.ps-4 {
    font-size: 0.85rem;
    color: #666;
    padding-left: 2rem;
}

.dropdown-item.ps-4:hover {
    color: var(--accent-color);
    background-color: #f0f7ff;
}

/* Dropdown Divider */
.dropdown-divider {
    margin: 0.5rem 0;
    border-top: 1px solid #e9ecef;
}

/* View All Categories */
.dropdown-menu > li:last-child > .dropdown-item {
    margin-top: 0.25rem;
    color: var(--accent-color);
    font-weight: 600;
    border-top: 1px solid #e9ecef;
    padding-top: 0.75rem;
}

.dropdown-menu > li:last-child > .dropdown-item:hover {
    background-color: #f0f7ff;
    color: #2980b9;
}

/* Dropdown hover state for nav link */
.nav-item.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-toggle::after {
    transition: transform 0.2s ease;
}

.nav-item.dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}

/* Responsive */
@media (max-width: 768px) {
    .dropdown-menu {
        min-width: 100%;
    }
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--primary-color) 100%);
    color: var(--light-color);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></svg>');
    background-size: 50px 50px;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--light-color);
    animation: fadeInUp 1s ease;
}

.hero-section p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    animation: fadeInUp 1.2s ease;
}

/* Buttons */
.btn-custom {
    padding: 12px 35px;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary-custom {
    background: var(--accent-color);
    color: var(--light-color);
    border: 2px solid var(--accent-color);
}

.btn-primary-custom:hover {
    background: transparent;
    color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.btn-outline-custom {
    background: transparent;
    color: var(--light-color);
    border: 2px solid var(--light-color);
}

.btn-outline-custom:hover {
    background: var(--light-color);
    color: var(--dark-color);
    transform: translateY(-2px);
}

/* Card Styles */
.card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    height: 100%;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.card-img-top {
    height: 250px;
    object-fit: cover;
}

.card-body {
    padding: 25px;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.card-text {
    color: #666;
    line-height: 1.8;
}

/* Section Styles */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-color);
}

.section-title p {
    color: #666;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 20px auto 0;
}

/* Feature Box */
.feature-box {
    text-align: center;
    padding: 40px 30px;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: var(--light-color);
    height: 100%;
}

.feature-box:hover {
    background: var(--gray-color);
    transform: translateY(-5px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    background: var(--accent-color);
    color: var(--light-color);
    font-size: 2rem;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.feature-box:hover .feature-icon {
    transform: rotateY(360deg);
}

.feature-box h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.feature-box p {
    color: #666;
}

/* Product Grid */
.product-item {
    margin-bottom: 30px;
}

.product-image {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.product-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-item:hover .product-image img {
    transform: scale(1.1);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-item:hover .product-overlay {
    opacity: 1;
}

.product-info {
    padding: 20px;
    background: var(--light-color);
    border-radius: 0 0 10px 10px;
}

.product-info h5 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.product-info .price {
    color: var(--accent-color);
    font-size: 1.2rem;
    font-weight: 700;
}

/* Stats Section */
.stats-section {
    background: var(--dark-color);
    color: var(--light-color);
    padding: 60px 0;
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-color);
    display: block;
}

.stat-label {
    font-size: 1.1rem;
    margin-top: 10px;
}

/* Testimonials */
.testimonial-card {
    background: var(--light-color);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    position: relative;
    margin: 20px;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 30px;
    font-size: 5rem;
    color: var(--accent-color);
    opacity: 0.3;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
}

.author-info h5 {
    margin: 0;
    font-size: 1.1rem;
}

.author-info p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

/* Contact Form */
.contact-form {
    background: var(--light-color);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.form-control {
    padding: 12px 20px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    margin-bottom: 20px;
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: var(--light-color);
    padding: 60px 0 20px;
}

.footer h5 {
    color: var(--light-color);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer ul li a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
}

/* Breadcrumb */
.breadcrumb-section {
    background: var(--gray-color);
    padding: 40px 0;
}

.breadcrumb {
    background: transparent;
    margin: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: #666;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section p {
        font-size: 1.1rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .navbar-nav .nav-link {
        margin: 5px 0;
    }
}

/* Utility Classes */
.bg-dark-custom {
    background: var(--dark-color) !important;
}

.bg-light-custom {
    background: var(--gray-color) !important;
}

.text-accent {
    color: var(--accent-color) !important;
}

.overlay-dark {
    position: relative;
}

.overlay-dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
}

/* Category Cards */
.category-card {
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.category-card .category-icon {
    transition: transform 0.3s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.1);
}

.category-card h3 {
    color: var(--dark-color);
    font-size: 1.5rem;
    font-weight: 600;
}

.category-card .list-unstyled li {
    padding: 0.25rem 0;
    color: #555;
}
