/* Custom Styles for Biomec */

:root {
    --primary-color: #3A6E79;
    --secondary-color: #76B79E;
    --tertiary-color: #2C549C;
    --neutral-color: #808183;
    --dark-color: #1D1D1B;
    --success-color: #76B79E;
    --warning-color: #76B79E;
    --danger-color: #3A6E79;
    --info-color: #2C549C;
    --light-color: #f8f9fa;
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* Navigation */
.navbar {
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: 1px;
}

/* Logo styles */
.logo-navbar {
    height: 40px;
    width: auto;
    transition: all 0.3s ease;
}

.brand-text {
    font-weight: 700;
    letter-spacing: 1.5px;
}

@media (max-width: 768px) {
    .logo-navbar {
        height: 35px;
    }
    
    .brand-text {
        font-size: 1.2rem;
    }
}

.nav-link {
    transition: color 0.3s ease;
    font-weight: 500;
}

.nav-link:hover {
    color: var(--warning-color) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--tertiary-color) 100%);
    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 xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="25" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="25" cy="75" r="1" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-image {
    text-align: center;
    animation: float 3s ease-in-out infinite;
}

/* Hero Logo Styles */
.hero-logo-container {
    position: relative;
}

.hero-logo {
    max-width: 200px;
    height: auto;
    filter: brightness(0) invert(1);
    animation: logoGlow 2s ease-in-out infinite alternate;
}

.hero-icon {
    opacity: 0.7;
}

@keyframes logoGlow {
    0% { 
        filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(118, 183, 158, 0.5));
    }
    100% { 
        filter: brightness(0) invert(1) drop-shadow(0 0 20px rgba(118, 183, 158, 0.8));
    }
}

@media (max-width: 768px) {
    .hero-logo {
        max-width: 150px;
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Service Cards */
.service-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
}

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

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

/* About Section */
.about-stats {
    transition: all 0.3s ease;
}

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

/* Product Cards */
.product-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

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

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

.product-card:hover .product-icon {
    transform: scale(1.2);
}

/* Contact Form */
.contact-form .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.contact-form .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--warning-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
    color: white;
}

.contact-form .form-floating > label {
    color: rgba(255, 255, 255, 0.7);
}

.contact-form .form-control:focus ~ label,
.contact-form .form-control:not(:placeholder-shown) ~ label {
    color: var(--warning-color);
}

/* Buttons */
.btn {
    transition: all 0.3s ease;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Social Links */
.social-links a {
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-links a:hover {
    color: var(--secondary-color) !important;
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .hero-image {
        margin-top: 2rem;
    }
}

/* Smooth Scrolling for Navigation Links */
section {
    scroll-margin-top: 80px;
}

/* Loading Animation for Images */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--tertiary-color);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Custom Badge */
.custom-badge {
    background: linear-gradient(45deg, var(--primary-color), var(--info-color));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Bootstrap Color Overrides */
.bg-primary {
    background-color: var(--primary-color) !important;
}

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

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--tertiary-color);
    border-color: var(--tertiary-color);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

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

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

.btn-warning {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}

.btn-warning:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

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

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

/* Navigation hover effects */
.nav-link:hover {
    color: var(--secondary-color) !important;
}

/* Navbar background with new color */
.navbar {
    background-color: var(--primary-color) !important;
}

/* Contact section background */
.bg-dark {
    background-color: var(--dark-color) !important;
}

/* Contact form styling with brand colors */
.contact-form .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(118, 183, 158, 0.25);
    color: white;
}

.contact-form .form-control:focus ~ label,
.contact-form .form-control:not(:placeholder-shown) ~ label {
    color: var(--secondary-color);
}

/* Icons in contact section with brand colors */
.contact-section .display-6 {
    color: var(--secondary-color) !important;
}

/* Statistics colors */
.about-stats h3.text-primary {
    color: var(--primary-color) !important;
}

.about-stats h3.text-success {
    color: var(--secondary-color) !important;
}

.about-stats h3.text-warning {
    color: var(--tertiary-color) !important;
}

/* Custom accent classes */
.text-accent {
    color: var(--secondary-color) !important;
}

.btn-accent {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}

.btn-accent:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.bg-accent {
    background-color: var(--secondary-color) !important;
}

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

/* Footer Logo Styles */
.logo-footer {
    height: 30px;
    width: auto;
    filter: brightness(0) invert(1);
}

/* About Section Logo */
.about-brand-logo {
    height: 60px;
    width: auto;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.about-content:hover .about-brand-logo {
    opacity: 1;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .about-brand-logo {
        height: 50px;
    }
}
