/* Custom CSS for Milkomatic Landing Page */

:root {
    --primary-color: #0575A8;
    --primary-light: #2691c4;
    --primary-dark: #045a8c;
    --secondary-color: #A7052F;
    --secondary-light: #c82650;
    --secondary-dark: #8b0426;
    --accent-color: #0575A8;
    --text-dark: #333;
    --text-light: #666;
    --border-light: #e9ecef;
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(5, 117, 168, 0.3);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(5, 117, 168, 0.3);
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    border-color: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(167, 5, 47, 0.3);
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

/* Navigation */
.navbar {
    transition: all 0.3s ease;
    padding: 15px 0;
}

.navbar.scrolled {
    padding: 10px 0;
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
}

.navbar-brand {
    font-size: 1.8rem;
    color: var(--primary-color) !important;
    text-decoration: none;
}

.navbar-brand img {
    max-height: 40px;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.footer-brand img {
    max-height: 30px;
    width: auto;
    object-fit: contain;
}

/* Logo styling */
.logo-img {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    max-width: 150px;
}

/* Hide brand text when logo is loaded */
.navbar-brand img + .brand-text {
    display: none;
}

/* Show brand text only if logo fails to load */
.navbar-brand img[src*="logo-generator"] + .brand-text {
    display: inline;
}

.logo-fallback {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    transition: color 0.3s ease;
    margin: 0 5px;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Login button styling */
.navbar .btn-primary {
    border-radius: 25px;
    padding: 8px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
}

.navbar .btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(5, 117, 168, 0.3);
}

@media (max-width: 768px) {
    .navbar .btn-primary {
        margin-top: 10px;
        width: 100%;
    }
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 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="50" cy="50" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem 0;
}

.hero-content h1 {
    color: var(--text-dark);
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.hero-buttons .btn {
    margin-right: 1rem;
    margin-bottom: 1rem;
}

.hero-stats {
    background: rgba(255, 255, 255, 0.8);
    padding: 1.5rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-light);
}

.hero-image img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1));
}

/* Feature Cards */
.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 20px rgba(5, 117, 168, 0.2);
}

.feature-icon i {
    font-size: 2rem;
    color: white;
}

.feature-card h4 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature-card p {
    color: var(--text-light);
    margin-bottom: 0;
}

/* Add secondary color accents */
.feature-card:nth-child(odd) .feature-icon {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
    box-shadow: 0 10px 20px rgba(167, 5, 47, 0.2);
}

/* Screenshots Carousel */
.carousel-item img {
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev {
    left: -25px;
}

.carousel-control-next {
    right: -25px;
}

.carousel-indicators {
    bottom: -50px;
}

.carousel-indicators button {
    background-color: var(--primary-color);
    border-radius: 50%;
    width: 12px;
    height: 12px;
    margin: 0 5px;
}

/* Testimonials */
.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--border-light);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.stars i {
    color: #ffc107;
    margin-right: 2px;
}

/* FAQ Accordion */
.accordion-item {
    border: 1px solid var(--border-light);
    border-radius: 15px !important;
    margin-bottom: 1rem;
    overflow: hidden;
}

.accordion-button {
    background-color: white;
    border: none;
    font-weight: 600;
    color: var(--text-dark);
    padding: 1.5rem;
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: white;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border: none;
}

.accordion-body {
    padding: 1.5rem;
    background-color: #f8f9fa;
}

/* Contact Form */
.contact-form {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-form .form-control,
.contact-form .form-select {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    padding: 12px 15px;
    color: var(--text-dark);
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    background: white;
    border-color: white;
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
}

.contact-form .form-label {
    color: white;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-form .btn-light:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
}

.contact-info {
    text-align: center;
    padding: 1rem;
}

.contact-info i {
    opacity: 0.8;
}

.contact-info h5 {
    margin: 1rem 0 0.5rem;
    font-weight: 600;
}

.contact-info p {
    margin: 0;
    opacity: 0.9;
}

/* Footer */
footer {
    border-top: 1px solid #444;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: bold;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

.footer-links a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        text-align: center;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin: 0 0 1rem 0;
    }
    
    .feature-card {
        margin-bottom: 2rem;
    }
    
    .testimonial-card {
        margin-bottom: 2rem;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        display: none;
    }
    
    .contact-form {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-stats {
        margin-top: 2rem;
    }
    
    .hero-stats .col-4 {
        margin-bottom: 1rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.8rem;
    }
    
    .lead {
        font-size: 1.1rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
.loading {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.loading.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.shadow-custom {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.border-primary {
    border-color: var(--primary-color) !important;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
}

/* Dashboard Sidebar Styles */
.sidebar {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    min-height: calc(100vh - 76px);
    color: white !important;
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin: 0.25rem 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.sidebar .nav-link i {
    color: rgba(255, 255, 255, 0.8) !important;
    margin-right: 0.5rem;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background: rgba(255, 255, 255, 0.1);
    color: white !important;
}

.sidebar .nav-link:hover i,
.sidebar .nav-link.active i {
    color: white !important;
}

.sidebar h6,
.sidebar .text-white-50,
.sidebar small {
    color: rgba(255, 255, 255, 0.7) !important;
}

.sidebar strong {
    color: white !important;
}