/* Inforbarras Website Styles */

:root {
    --primary-color: #2c5aa0;
    --secondary-color: #f8f9fa;
    --accent-color: #007bff;
    --text-dark: #333333;
    --text-light: #666666;
    --border-color: #dee2e6;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    
    /* Red accent variables - default OFF */
    /*
    --red-accent-color: transparent;
    --red-accent-border: transparent;
    --red-accent-hover: transparent;
    */
}

/* Red accent system - ACTIVE */
body {
    --red-accent-color: #dc3545;
    --red-accent-border: #dc3545;
    --red-accent-hover: rgba(220, 53, 69, 0.1);
}

/* Base Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

/* Navigation Styles */
.navbar {
    transition: padding 0.2s ease, box-shadow 0.2s ease;
    padding: 1.5rem 0;
    border-bottom: 2px solid rgba(0,0,0,0.15);
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
    background: repeating-linear-gradient(
        0deg,
        #f8f9fa,
        #f8f9fa 3px,
        #e9ecef 3px,
        #e9ecef 4px
    ) !important;
    will-change: padding, box-shadow;
    backface-visibility: hidden;
}

.navbar.scrolled {
    padding: 0.25rem 0; /* Much more aggressive reduction */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand img {
    height: 80px;
    transition: height 0.2s ease;
    backface-visibility: hidden;
    will-change: height;
}

.navbar-brand small {
    transition: opacity 0.2s ease;
    will-change: opacity;
}

/* Scale logo to 80% of original size when scrolling */
.scrolled .navbar-brand img {
    height: 64px; /* 80% of original 80px */
}

.scrolled .navbar-brand small {
    display: none !important; /* Completely remove from layout */
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    transition: color 0.3s ease;
    padding: 0.75rem 1.5rem !important;
    font-size: 1.1rem;
}

.nav-link:hover {
    color: var(--primary-color) !important;
    border-bottom: 2px solid var(--red-accent-border);
}

.nav-link.active {
    border-bottom: 2px solid var(--red-accent-border);
}

.client-area-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border: none;
    border-radius: 25px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.client-area-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(44, 90, 160, 0.3);
}

/* Dropdown Submenu Styles */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -1px;
}

.dropdown-submenu:hover .dropdown-menu {
    display: block;
}

.dropdown-item {
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    transform: translateX(2px);
}

@media (max-width: 576px) {
    .client-area-btn span {
        display: none !important;
    }
    .client-area-btn {
        padding: 0.5rem 1rem;
        border-radius: 50%;
        width: 40px;
        height: 40px;
    }
    
    /* Mobile dropdown adjustments */
    .dropdown-submenu .dropdown-menu {
        position: static;
        left: auto;
        margin-left: 1rem;
        box-shadow: none;
        border: none;
        background-color: #f8f9fa;
    }
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 4rem 0;
    margin-bottom: 0;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
}

/* Carousel Styles */
.carousel-item {
    height: 500px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 90, 160, 0.6);
}

.carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 80%;
}

.carousel-caption h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .carousel-item {
        height: 300px;
    }
    .carousel-caption h2 {
        font-size: 1.8rem;
    }
}

/* Section Styles */
.section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Card Styles */
.card {
    border: 1px solid var(--red-accent-border);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    background-color: var(--red-accent-hover);
    border-color: var(--red-accent-color);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

.product-card {
    border-radius: 15px;
    overflow: hidden;
}

.product-card .card-body {
    padding: 1.5rem;
}

.product-card h5 {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.product-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 500;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(44, 90, 160, 0.3);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 25px;
    padding: 0.75rem 2rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* News Styles */
.news-card {
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.news-date {
    color: var(--text-light);
    font-size: 0.9rem;
}

.news-title {
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-title:hover {
    color: var(--primary-color);
}

/* Solutions/Services Styles */
.solution-item {
    padding: 2rem;
    border-radius: 15px;
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 2rem;
}

.solution-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.solution-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 1.5rem;
}

.solution-details {
    display: none;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.solution-item.expanded .solution-details {
    display: block;
}

.screenshot-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.screenshot-gallery img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.screenshot-gallery img:hover {
    transform: scale(1.05);
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.9);
    color: white;
    padding: 1rem 0;
    z-index: 9999;
}

/* Contact Form */
.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.form-control {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: none;
}

/* Responsive */
@media (max-width: 768px) {
    .section {
        padding: 2rem 0;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .solution-item {
        padding: 1.5rem;
    }
    
    .hero-section {
        padding: 2rem 0;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Shopping Cart */
.cart-item {
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

.cart-item:last-child {
    border-bottom: none;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quantity-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.cart-summary {
    background: var(--secondary-color);
    padding: 1.5rem;
    border-radius: 15px;
    position: sticky;
    top: 100px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Product Page Styles */
.sidebar-content {
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    align-self: flex-start;
}

.sidebar-content .card {
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.sidebar-content .card:last-child {
    margin-bottom: 0;
}

.sidebar-content .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.sidebar-content .card-body {
    padding: 1.5rem;
}

/* Compact sidebar cards */
.sidebar-content .card-title {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.sidebar-content .card-text {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.sidebar-content ul li {
    font-size: 0.8rem;
    padding: 0.1rem 0;
    line-height: 1.3;
}

.sidebar-content .btn {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
}

.sidebar-content .card-body {
    padding: 1rem;
}

.sidebar-content h6 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.feature-item {
    padding: 1.5rem;
    border-radius: 10px;
    background: white;
    transition: all 0.3s ease;
    height: 100%;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.feature-icon {
    margin-bottom: 1rem;
}

/* Improved spacing for product pages */
.hero-section + section {
    padding-top: 5rem;
}

section.py-5 {
    padding: 5rem 0;
}

section.bg-light {
    padding: 4rem 0;
}

/* Mobile responsiveness for product pages */
@media (max-width: 991px) {
    .sidebar-content {
        position: static;
        margin-top: 3rem;
    }
    
    .sidebar-content .card {
        margin-bottom: 2rem;
    }
    
    .hero-section + section {
        padding-top: 3rem;
    }
    
    section.py-5 {
        padding: 3rem 0;
    }
}

@media (max-width: 768px) {
    .feature-item {
        padding: 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    section.py-5 {
        padding: 2rem 0;
    }
}

/* Homepage Hero Animations */
.floating-card {
    animation: float 6s ease-in-out infinite;
}

.floating-card:nth-child(2) {
    animation-delay: -2s;
}

.floating-card:nth-child(3) {
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Floating card hover effects */
.floating-card:hover .card {
    transform: scale(1.05) translateY(-10px) !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2) !important;
}

.floating-card .card {
    transition: all 0.3s ease !important;
}

.pulse-animation {
    position: relative;
    display: inline-block;
}

.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: pulse 3s infinite;
}

.pulse-ring-delay-1 {
    animation-delay: 1s;
}

.pulse-ring-delay-2 {
    animation-delay: 2s;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.85) !important;
}

.stat-item h3 {
    font-size: 2rem;
    margin-bottom: 0;
}

/* Print Styles */
@media print {
    .navbar, footer, .cookie-consent {
        display: none !important;
    }
}