/* Root Variables */
:root {
    --primary-color: #d32f2f;
    --primary-dark: #b71c1c;
    --primary-light: #ef5350;
    --secondary-color: #2c3e50;
    --dark-color: #1a1a1a;
    --light-color: #f8f9fa;
    --gray-color: #6c757d;
    --success-color: #28a745;
    --gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    --gradient-light: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    --box-shadow-hover: 0 20px 40px rgba(0,0,0,0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

navbar-collapse {
    background: white;
    border-top: 1px solid rgba(0,0,0,0.06);
    padding: 1rem 0.5rem;
    margin-top: 0.5rem;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

nav-link { margin: 0.15rem 0; padding: 0.6rem 0.75rem !important; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark-color);
    line-height: 1.6;
    overflow-x: hidden;
}


h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

/* Navbar Styles */
#mainNav {
    background: transparent;
    transition: var(--transition);
    padding: 1.5rem 0;
}

#mainNav.navbar-scrolled {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.8rem 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.navbar-brand .logo-img {
    height: 50px;
    transition: var(--transition);
}

.navbar-scrolled .navbar-brand .logo-img {
    height: 40px;
}

.brand-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.navbar-nav .nav-link {
    color: white !important;
    font-weight: 500;
    margin: 0 0.5rem;
    position: relative;
    transition: var(--transition);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 100%;
}

/* Hero Carousel */
.carousel-item {
    position: relative;
    height: 100vh;
    min-height: 600px;
}

.carousel-image-wrapper {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.carousel-item img {
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 8s ease;
}

.carousel-item.active img {
    transform: scale(1.05);
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
}

.carousel-caption {
    bottom: 50%;
    transform: translateY(50%);
    z-index: 2;
}

.carousel-caption h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.carousel-caption p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-subtitle {
    display: inline-block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.title-divider {
    width: 60px;
    height: 3px;
    background: var(--gradient);
    margin: 1rem auto 0;
}

.section-header.light .section-title {
    color: white;
}

/* Mission & Vision Cards */
.mission-vision-section {
    padding: 5rem 0;
    background: var(--light-color);
}

.mission-card, .vision-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
}

.mission-card:hover, .vision-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.icon-wrapper i {
    font-size: 2rem;
    color: white;
}

.mission-card h3, .vision-card h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

/* Product Cards */
.products-section {
    padding: 5rem 0;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card: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: var(--transition);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-content {
    padding: 1.5rem;
}

.product-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-size: 0.75rem;
    margin-bottom: 0.75rem;
}

.product-content h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

/* Value Cards */
.values-section {
    padding: 5rem 0;
    background: var(--light-color);
}

.value-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.value-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.value-icon i {
    font-size: 1.75rem;
    color: white;
}

.value-card h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

/* Advantages Section */
.advantages-section {
    padding: 5rem 0;
    background: var(--gradient);
    color: white;
}

.advantage-card {
    text-align: center;
    padding: 2rem;
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.advantage-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.2);
}

.advantage-icon {
    width: 70px;
    height: 70px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.advantage-icon i {
    font-size: 1.75rem;
    color: var(--primary-color);
}

.advantage-card h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

/* Page Header */
.page-header {
    padding: 150px 0 80px;
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--secondary-color) 100%);
    color: white;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.breadcrumb {
    justify-content: center;
    background: transparent;
}

.breadcrumb-item a {
    color: white;
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--primary-color);
}

/* Team Cards */
.team-detail-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.team-detail-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
}

.team-detail-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.team-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-contact-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 1rem;
    display: flex;
    gap: 1rem;
    transform: translateY(100%);
    transition: var(--transition);
}

.team-detail-card:hover .team-contact-info {
    transform: translateY(0);
}

.team-contact-info a {
    width: 35px;
    height: 35px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
}

.team-contact-info a:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.team-detail-info {
    padding: 1.5rem;
}

.team-detail-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.position {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.team-bio {
    margin-top: 1rem;
}

.team-bio h5 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--gray-color);
}

.team-bio p {
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Contact Cards */
.contact-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

.contact-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.contact-icon i {
    font-size: 1.75rem;
    color: white;
}

.contact-card h4 {
    margin-bottom: 0.5rem;
}

/* Contact Form */
.contact-form-wrapper {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--box-shadow);
}

.form-group {
    position: relative;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
}

.form-control {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(211, 47, 47, 0.25);
}

.input-icon {
    position: absolute;
    right: 1rem;
    top: 2.5rem;
    color: var(--gray-color);
}

/* Map Container */
.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.map-container iframe {
    width: 100%;
    height: 400px;
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-widget h4, .footer-widget h5 {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.footer-text {
    color: #999;
    margin-bottom: 1.5rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #999;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    margin-bottom: 1rem;
    color: #999;
}

.footer-contact li i {
    margin-right: 10px;
    color: var(--primary-color);
}

.newsletter-form .form-control {
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
}

.newsletter-form .form-control::placeholder {
    color: #999;
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #999;
}

/* Responsive */
@media (max-width: 768px) {
    .carousel-caption h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .cta-content h2 {
        font-size: 1.75rem;
    }

    .stats-grid {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Button Styles */
.btn-primary {
    background: var(--gradient);
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(211, 47, 47, 0.3);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}