/* Main Styles for Tebasteel Medical Equipment Website */

/* Variables */
:root {
    --primary-color: #0d6efd;
    --primary-dark: #0a58ca;
    --secondary-color: #6c757d;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --success-color: #198754;
    --info-color: #0dcaf0;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --transition-speed: 0.3s;
}

/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #f8f9fa;
}

a {
    text-decoration: none;
    transition: all var(--transition-speed) ease;
}

a:hover {
    text-decoration: none;
}

/* Header Styles */
header {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: bold;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
}

.nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 600;
}

.img-contact {
    width: auto;
    height: 100px;
    display: inline-block;

}

.logo-img {
    width: auto;
    height: 150px;
    display: inline-block;
    filter: brightness(0) invert(1);
}

/* Product Cards */
.product-card {
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    overflow: hidden;
    height: 100%; /* Ensure full height */
}


.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.product-img {
    width: 100%;
    height: 400px;
    max-height: 400px;
    height: auto;
    object-fit: contain;
    background-color: #f8f9fa;
    padding: 10px;
}

.product-img-placeholder {
    height: 200px;
}

.product-detail-img {
    max-height: 400px;
    object-fit: contain;
}

.product-detail-img-placeholder {
    min-height: 300px;
}

/* Category Cards */
.hover-card {
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.hover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Contact Form */
.invalid-feedback {
    display: block;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 2rem 0;
    margin-bottom: 2rem;
    border-bottom: 30px solid #1d93ef;
}

.hero-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-section .lead {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

/* Card Styles */
.card {
    border: none;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    margin-bottom: 1.5rem;
    height: 100%; /* Ensure full height */
}

.card-img-top {
    width: 100%;
    height: 300px; /* Fixed height */
    max-height: 400px; /* Set a maximum height */
    object-fit: contain; /* Changed from contain to cover */
    display: block; /* Ensure proper rendering */
}

.card-img-category {
    width: 100%;
    height: 400px; /* Fixed height */
    max-height: 400px; /* Set a maximum height */
    object-fit: contain; /* Changed from contain to cover */
    display: block; /* Ensure proper rendering */
}

.card:hover {
    transform: translateY(-5px);
}


.card-title {
    font-weight: 600;
    margin-bottom: 0.75rem;
}

/* Category Cards */
.category-card {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
}

.category-card img {
    transition: transform 0.5s ease;
}

.category-card:hover img {
    transform: scale(1.05);
}

.category-card .category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 1rem;
}

/* Product Detail */
.product-image {
    max-height: 400px;
    object-fit: contain;
}

.product-details {
    background-color: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
}

/* Contact Form */
.contact-form {
    background-color: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
}

/* About Page */
.about-section {
    background-color: white;
    padding: 3rem 0;
}

.about-image {
    border-radius: 0.5rem;
    overflow: hidden;
}

/* Main Message Area */
.main-message-area-bg {
    background-color: #e9ecef; /* Light grey background */
}

.main-message-content p.lead {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

/* Contact Teaser Section */
.contact-teaser-section {
    background-color: var(--light-color); /* Or a custom subtle background */
}

.contact-teaser-section h2 {
    color: var(--primary-dark);
}

.contact-teaser-section .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
}

.contact-teaser-section .btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.contact-teaser-img {
    max-width: 350px;
    margin: 0 auto;
}

/* Footer */
footer {
    background-color: var(--dark-color);
}

footer a {
    color: white;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

footer a:hover {
    opacity: 1;
    color: white;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
        text-align: center;
        /* background-image: url('../images/logo.png'); */
        background-repeat: no-repeat;   /* Prevents the image from tiling */
        background-position: center;    /* Centers the image */
        background-size: contain;
        background-blend-mode: overlay;
    }
    
    .hero-section img {
        margin-top: 2rem;

    }
    
    .card-img-top {
        width: 100%;
        max-height: 300px; /* Set a maximum height for smaller screens */
        height: auto; /* Allow height to adjust */
        object-fit: contain;
    }
    .logo-img {
        width: auto;
        height: 100px;
        display: inline-block;
        filter: brightness(0) invert(1);
        display: none;
    }
}