/* General Styles */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --success-color: #198754;
    --info-color: #0dcaf0;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    
    /* Brand Specific Colors */
    --wine-red: #800020;
    --brand-blue: #0047AB;
    
    /* Spacing */
    --spacing-unit: 1rem;
    --border-radius: 0.375rem;
    --border-radius-lg: 0.5rem;
    
    /* Transitions */
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark-color);
    line-height: 1.6;
    background-color: #ffffff;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: calc(var(--spacing-unit) * 0.75);
}

p {
    margin-bottom: var(--spacing-unit);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all var(--transition-speed) ease;
}

a:hover {
    color: #0a58ca;
}

img {
    max-width: 100%;
    height: auto;
}

.btn {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: all var(--transition-speed) ease;
    display: inline-block;
    text-align: center;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #0a58ca;
    border-color: #0a58ca;
    color: white;
}

.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);
    color: white;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.25rem;
}

.section-padding {
    padding: 5rem 0;
}

/* Announcements Section */
.announcements-section {
    background-color: var(--warning-color);
    position: relative;
    overflow: hidden;
}

.announcements-slider {
    position: relative;
    height: 40px;
    overflow: hidden;
}

.announcement-item {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    animation: slide 15s linear infinite;
}

.announcement-item p {
    margin: 0;
    font-weight: 500;
    color: var(--dark-color);
}

.announcement-icon {
    margin-right: 10px;
    color: var(--danger-color);
}

@keyframes slide {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.sliding-announcements {
    display: flex;
    white-space: nowrap;
}

.announcement-slide {
    padding: 0 1rem;
}

/* Hero Section */
.hero-section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 500px;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    color: white;
    font-weight: 700;
}

.hero-section p {
    color: rgba(255, 255, 255, 0.9);
}

/* Brand Ambassador Styling */
.brand-ambassador-container {
    position: relative;
    padding: 20px;
}

.brand-ambassador-container img {
    max-height: 450px;
    object-fit: contain;
    border: 4px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.brand-ambassador-container img:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.brand-caption {
    background-color: rgba(13, 110, 253, 0.7);
    padding: 15px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    max-width: 80%;
    margin: 0 auto;
}

.brand-caption h4 {
    color: white;
    margin-bottom: 0.5rem;
}

.brand-caption p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
}

/* Page Header */
.page-header {
    background-color: var(--primary-color);
    position: relative;
    padding: 3rem 0;
}

.page-header h1 {
    color: white;
    margin-bottom: 0;
}

.page-header p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
}

/* Service Cards */
.service-card {
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.service-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.service-icon {
    height: 80px;
    width: 80px;
    background-color: rgba(13, 110, 253, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--primary-color);
}

/* Product Cards */
.product-card {
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.product-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.product-icon {
    height: 80px;
    width: 80px;
    background-color: rgba(13, 110, 253, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--primary-color);
}

.product-card ul {
    text-align: left;
    margin-bottom: 1.5rem;
    width: 100%;
}

.product-card ul li {
    margin-bottom: 0.5rem;
}

.category-icon {
    height: 100px;
    width: 100px;
    background-color: rgba(13, 110, 253, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    color: var(--primary-color);
}

/* Demo Request Modal */
.modal-content {
    border-radius: var(--border-radius-lg);
    border: none;
}

.modal-header {
    border-bottom: 1px solid #dee2e6;
    background-color: #f8f9fa;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.modal-footer {
    border-top: 1px solid #dee2e6;
    background-color: #f8f9fa;
    border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
}

/* Testimonials */
.testimonial-card {
    height: 100%;
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.testimonial-card .card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.testimonial-card .d-flex {
    margin-top: auto;
}

/* Gallery */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

.gallery-item img {
    transition: transform 0.5s ease;
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 110, 253, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-info {
    color: white;
    text-align: center;
    padding: 1rem;
}

.gallery-info h5 {
    margin-bottom: 0.5rem;
}

/* Partners */
.partner-logo {
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all var(--transition-speed) ease;
    max-height: 80px;
    width: auto;
    margin: 0 auto;
}

.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* Team Cards */
.team-card {
    overflow: hidden;
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: transform var(--transition-speed) ease;
    height: 100%;
}

.team-card:hover {
    transform: translateY(-10px);
}

.team-card .card-img-top {
    height: 250px;
    object-fit: cover;
}

.team-card .card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.team-card .social-links {
    margin-top: auto;
}

/* Contact Section */
.contact-icon {
    height: 70px;
    width: 70px;
    background-color: rgba(13, 110, 253, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.75rem;
    color: var(--primary-color);
}

.map-container {
    height: 450px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* FAQ Section */
.accordion-button:not(.collapsed) {
    background-color: rgba(13, 110, 253, 0.1);
    color: var(--primary-color);
}

.accordion-button:focus {
    box-shadow: none;
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230d6efd'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230d6efd'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    transform: rotate(180deg);
}

/* Social Links */
.social-links a {
    display: inline-block;
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all var(--transition-speed) ease;
    color: inherit;
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
    color: white;
}

.social-icons-large a {
    display: inline-block;
    width: 60px;
    height: 60px;
    line-height: 60px;
    text-align: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all var(--transition-speed) ease;
    color: inherit;
}

.social-icons-large a:hover {
    background-color: white;
    color: var(--primary-color) !important;
    transform: translateY(-5px);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: rgba(255, 255, 255, 0.8);
    padding: 3rem 0 1rem;
}

footer a {
    color: rgba(255, 255, 255, 0.8);
}

footer a:hover {
    color: white;
}

footer h3, footer h4 {
    color: white;
    margin-bottom: 1rem;
}

footer ul li {
    margin-bottom: 0.5rem;
}

footer hr {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Value Boxes */
.value-icon {
    height: 80px;
    width: 80px;
    background-color: rgba(13, 110, 253, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--primary-color);
}

/* Stats */
.stat-box {
    padding: 1rem;
    text-align: center;
}

.stat-box h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* Form Styles */
.form-control, .form-select {
    border-radius: var(--border-radius);
    border: 1px solid #ced4da;
    padding: 0.75rem 1rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Backend Admin Styles */
.admin-sidebar {
    background-color: var(--dark-color);
    min-height: 100vh;
    color: white;
    padding: 1.5rem 0;
}

.admin-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    border-radius: var(--border-radius);
    margin-bottom: 0.5rem;
    padding: 0.75rem 1rem;
    transition: all var(--transition-speed) ease;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background-color: var(--primary-color);
    color: white;
}

.admin-sidebar .nav-link i {
    margin-right: 0.5rem;
    width: 20px;
    text-align: center;
}

.admin-content {
    padding: 2rem;
    background-color: #f8f9fa;
    min-height: 100vh;
}

.admin-card {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: transform var(--transition-speed) ease;
    height: 100%;
}

.admin-card:hover {
    transform: translateY(-5px);
}

.admin-card .card-icon {
    height: 60px;
    width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.admin-card .card-icon.primary {
    background-color: rgba(13, 110, 253, 0.1);
    color: var(--primary-color);
}

.admin-card .card-icon.success {
    background-color: rgba(25, 135, 84, 0.1);
    color: var(--success-color);
}

.admin-card .card-icon.warning {
    background-color: rgba(255, 193, 7, 0.1);
    color: var(--warning-color);
}

.admin-card .card-icon.danger {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
}

.admin-card .card-icon.info {
    background-color: rgba(13, 202, 240, 0.1);
    color: var(--info-color);
}

/* Login Page Styles */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), #0a58ca);
    padding: 2rem;
}

.login-form {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 400px;
}

.login-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.login-form .btn-primary {
    width: 100%;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .brand-ambassador-container {
        margin-top: 30px;
    }
    
    .brand-ambassador-container img {
        max-height: 350px;
    }
    
    .admin-sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 100;
        padding-top: 48px;
        width: 100%;
        max-width: 250px;
        transform: translateX(-100%);
        transition: transform var(--transition-speed) ease;
    }
    
    .admin-sidebar.show {
        transform: translateX(0);
    }
    
    .admin-content {
        margin-left: 0;
    }
    
    .navbar-toggler-admin {
        display: block;
        position: fixed;
        top: 15px;
        left: 15px;
        z-index: 101;
        background-color: var(--primary-color);
        border: none;
        color: white;
        padding: 0.5rem;
        border-radius: var(--border-radius);
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 400px;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .section-padding {
        padding: 3rem 0;
    }
    
    .brand-ambassador-container img {
        max-height: 300px;
    }
    
    .brand-caption {
        max-width: 100%;
    }
    
    .admin-content {
        padding: 1rem;
    }
    
    .social-icons-large a {
        width: 50px;
        height: 50px;
        line-height: 50px;
    }
}

@media (min-width: 992px) {
    .hero-section {
        min-height: 600px;
    }
    
    .admin-sidebar {
        transform: translateX(0);
    }
    
    .navbar-toggler-admin {
        display: none;
    }
}

@media (min-width: 1200px) {
    .hero-section {
        min-height: 650px;
    }
}

@media (min-width: 1400px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
        max-width: 1320px;
    }
}

/* Loading Spinner */
.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border-left-color: var(--primary-color);
    animation: spin 1s linear infinite;
    display: inline-block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Custom Animations */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-up {
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Utility Classes */
.text-justify {
    text-align: justify;
}

.shadow-hover {
    transition: box-shadow var(--transition-speed) ease;
}

.shadow-hover:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.hover-scale {
    transition: transform var(--transition-speed) ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

.hover-lift {
    transition: transform var(--transition-speed) ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
}