/* 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 - Modernized */
.hero-section {
    background: linear-gradient(135deg, #1a2980 0%, #26d0ce 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
    color: white;
    text-align: center;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.1) 100%);
    z-index: 1;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    position: relative;
    z-index: 2;
}

.hero-section .lead {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 300;
    position: relative;
    z-index: 2;
}

.hero-btn {
    background: white;
    color: #1a2980;
    border-radius: 30px;
    padding: 12px 30px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    display: inline-block;
    overflow: hidden;
}

.hero-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(26,41,128,0.1), rgba(38,208,206,0.1));
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: -1;
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    color: #1a2980;
}

.hero-btn:hover::before {
    transform: translateX(0);
}

/* 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 effect */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15) !important;
}


.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;
}

/* Modern Message Ribbon */
.message-ribbon {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    padding: 1.5rem;
    margin: -40px auto 0;
    max-width: 90%;
    position: relative;
    z-index: 10;
}

.message-ribbon p {
    font-size: 1.4rem;
    font-weight: 500;
    color: #1a2980;
    margin-bottom: 0;
    text-align: center;
    line-height: 1.6;
}

/* Modern Contact Teaser */
.contact-teaser-section {
    background: linear-gradient(to right, #1a2980, #26d0ce);
    color: white;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    padding: 3rem 2rem;
    margin: 4rem 0;
}

.contact-teaser-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="80" cy="20" r="5" fill="white" fill-opacity="0.1"/><circle cx="20" cy="80" r="8" fill="white" fill-opacity="0.1"/></svg>');
    background-size: 150px;
}

.contact-teaser-section h2 {
    color: white;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.contact-teaser-section p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

.contact-btn {
    background: white;
    color: #1a2980;
    border-radius: 30px;
    padding: 12px 30px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    z-index: 2;
    text-decoration: none;
}

.contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    color: #1a2980;
    text-decoration: none;
}

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

/* Footer */
footer {
    background-color: #2c3e50; /* Dark blue-gray */
    color: white;
    padding: 3rem 0 0;
}

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

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

footer h5 {
    font-weight: 600;
    margin-bottom: 1.2rem;
}

footer ul.list-unstyled li {
    margin-bottom: 0.6rem;
}

footer .mt-3 a {
    color: white;
    font-size: 1.2rem;
    margin-right: 0.8rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

footer .mt-3 a:hover {
    opacity: 1;
}

/* Copyright */
footer .row:last-child .col-md-12 {
    padding: 1.2rem 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 2rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        background: linear-gradient(to bottom, #1a2980 0%, #26d0ce 100%);
        padding: 3rem 0;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 2.2rem;
    }
    
    .hero-section .lead {
        font-size: 1.2rem;
    }
    
    .message-ribbon {
        padding: 1rem;
        margin-top: -30px;
    }
    
    .message-ribbon p {
        font-size: 1.1rem;
    }
    
    .card-img-top {
        width: 100%;
        max-height: 300px;
        height: auto;
        object-fit: contain;
    }
    
    .service-icon-container img {
        width: 60px;
        height: 60px;
    }
    
    .service-content p {
        font-size: 1rem;
    }
}

/* Service Card Enhancements */
.service-card {
    transition: all 0.4s ease;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    height: 280px; /* Increased height */
    display: flex;
    flex-direction: column;
}

/* Modern Header */
.header {
    background: white;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    padding: 0.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-logo {
    height: 60px;
    transition: transform 0.3s ease;
}

.header-logo:hover {
    transform: scale(1.05);
}

.site-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a2980;
}

.navbar-nav {
    gap: 15px;
}

.nav-link {
    font-weight: 600;
    color: #333;
    position: relative;
    padding: 0.5rem 1rem !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: #26d0ce;
    transition: width 0.3s ease;
}

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

.nav-link:hover,
.nav-link.active {
    color: #1a2980;
}

.header-contact-btn {
    background: linear-gradient(135deg, #1a2980 0%, #26d0ce 100%);
    color: white;
    border-radius: 30px;
    padding: 10px 25px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.header-contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    color: white;
}

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

.service-icon-container {
    background: #f0f9ff;
    padding: 1.5rem;
    text-align: center;
    flex: 0 0 auto;
}

.service-icon-container img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon-container img {
    transform: scale(1.1);
}

.service-content {
    padding: 1.5rem;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
}

.service-content p {
    font-size: 1.2rem;
    color: #333;
    margin: 0;
    text-align: center;
    line-height: 1.6;
    padding-top: 15px;
}