/* DataForge Canada Custom Styles */

:root {
    --primary-color: #4A4A68;
    --secondary-color: #3D3D56;
    --accent-color: #F4C430;
    --light-gray: #f8f9fa;
    --dark-gray: #343a40;
    --success-color: #28a745;
    --danger-color: #dc3545;
}

/* Global Styles */
body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

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

.btn-accent {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: #333;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-accent:hover {
    background-color: #E6B429;
    border-color: #E6B429;
    color: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(244, 196, 48, 0.4);
}

.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);
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(74, 74, 104, 0.3);
}

.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);
}

/* Navigation */
.navbar {
    padding: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
    min-height: 80px;
    max-height: 80px;
    overflow: visible;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Logo Styles */
.logo-img {
    height: 156px;
    width: auto;
    transition: all 0.3s ease;
    position: relative;
    top: 8px;
}

.logo-img:hover {
    transform: scale(1.05);
}

/* Mobile Logo */
@media (max-width: 991.98px) {
    .logo-img {
        height: 60px;
        top: 0;
    }
    
    .navbar {
        min-height: 70px;
        max-height: none;
        padding: 8px 0;
    }
}

.logo-img-footer {
    height: 35px;
    width: auto;
    background: white;
    border-radius: 50%;
    padding: 2px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 8px;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #fff !important;
}

/* Mobile Navigation Styles */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: var(--primary-color);
        border-radius: 10px;
        margin-top: 10px;
        padding: 20px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    }
    
    .navbar-nav .nav-link {
        margin: 0;
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 1.1rem;
        display: block;
        color: rgba(255, 255, 255, 0.9) !important;
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
    
    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link:focus {
        color: var(--accent-color) !important;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 8px;
    }
    
    .navbar-toggler {
        border: 2px solid rgba(255, 255, 255, 0.5);
        padding: 8px 12px;
        border-radius: 8px;
    }
    
    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
    }
    
    .navbar-toggler-icon {
        width: 24px;
        height: 24px;
    }
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(74, 74, 104, 0.95), rgba(61, 61, 86, 0.95)) !important;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center top;
    background-attachment: scroll !important;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    z-index: 1;
    isolation: isolate;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.cta-card {
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Flash Messages */
.flash-messages {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1050;
    max-width: 400px;
}

.flash-messages .alert {
    margin-bottom: 10px;
    border-radius: 10px;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Cost savings banner - permanent element that shouldn't auto-hide */
.cost-savings-banner {
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 2px 10px rgba(40, 167, 69, 0.2);
}

/* Testimonials */
#testimonials {
    background: #f8f9fa !important;
    position: relative;
    z-index: 10;
    isolation: isolate;
    overflow: hidden;
}

.testimonial-card {
    border-radius: 15px;
    border: none;
    transition: transform 0.3s ease;
    background: white !important;
    position: relative;
    z-index: 11;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-card .blockquote p {
    font-size: clamp(1rem, 4vw, 1.25rem);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    font-size: clamp(0.9rem, 3vw, 1.1rem);
}

.stars {
    font-size: clamp(1rem, 3vw, 1.2rem);
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    color: var(--primary-color);
    z-index: 2;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    opacity: 0.8;
}

/* Hide carousel controls on mobile to prevent text overlap */
@media (max-width: 768px) {
    .carousel-control-prev,
    .carousel-control-next {
        display: none !important;
    }
    
    /* Hide indicators on mobile to prevent text overlap */
    .carousel-indicators {
        display: none !important;
    }
    
    /* Remove any focus outlines or touch indicators from carousel */
    #testimonialCarousel,
    #testimonialCarousel *,
    .carousel-inner,
    .carousel-item {
        outline: none !important;
        border: none !important;
        box-shadow: none !important;
    }
    
    /* Override any Bootstrap carousel focus styles on mobile */
    .carousel:focus,
    .carousel *:focus {
        outline: none !important;
        box-shadow: none !important;
    }
    
    /* Add extra padding to testimonial cards on mobile to account for no indicators */
    .testimonial-card {
        margin-bottom: 2rem;
        outline: none !important;
    }
}

.carousel-indicators button {
    background-color: var(--primary-color);
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

/* Services Section */
.service-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.services-visual {
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.services-visual:hover {
    transform: scale(1.02);
}

/* About Section */
.about-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Client Portfolio */
.client-logo {
    border-radius: 10px;
    transition: all 0.3s ease;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.client-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Software Partners */
.partner-logo {
    border-radius: 10px;
    transition: all 0.3s ease;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.partner-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.partner-img {
    max-width: 100%;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.enterprise-logo-text {
    padding: 10px 0;
}

.enterprise-logo-text h4 {
    font-size: 1.5rem;
    margin-bottom: 2px;
}

.enterprise-logo-text small {
    font-size: 0.8rem;
}

/* Contact Section */
.contact-form-card,
.contact-info-card {
    border-radius: 15px;
    border: none;
}

.contact-info-card {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
}

.form-control {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
}

.contact-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 1rem;
}

.contact-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* Blog Visual */
.blog-visual {
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.blog-visual:hover {
    transform: scale(1.02);
}

/* Footer - Only apply to main site footer, not blog post footers */
footer.bg-dark {
    background: linear-gradient(135deg, var(--dark-gray), #2c2c2c) !important;
}

.newsletter-form .input-group {
    border-radius: 8px;
    overflow: hidden;
}

.newsletter-form .form-control {
    border: none;
    border-radius: 0;
}

.newsletter-form .btn {
    border-radius: 0;
    border: none;
    padding: 12px 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 130px 0 50px;
        min-height: auto;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .cta-card {
        margin-bottom: 2rem;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .flash-messages {
        top: 70px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    /* Mobile-friendly buttons */
    .btn {
        min-height: 44px;
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    .btn-lg {
        min-height: 48px;
        padding: 14px 24px;
        font-size: 1.1rem;
    }
    
    /* Mobile touch targets */
    .nav-link, .btn, .form-control {
        min-height: 44px;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .btn-lg {
        padding: 12px 20px;
        font-size: 1rem;
        min-height: 50px;
    }
    
    .cta-card {
        padding: 1.5rem !important;
    }
    
    .testimonial-card {
        padding: 1.5rem !important;
        margin: 0 0.5rem;
    }
    
    .testimonial-card .blockquote p {
        font-size: 1rem !important;
        line-height: 1.8 !important;
    }
    
    .testimonial-card .stars {
        font-size: 1rem !important;
        margin-bottom: 1rem !important;
    }
    
    .testimonial-author {
        font-size: 0.9rem !important;
    }
    
    /* Improve carousel controls for mobile */
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 35px;
        height: 35px;
    }
    
    .carousel-indicators {
        margin-bottom: 0;
    }
    
    /* Extra small screen navigation */
    .navbar-nav .nav-link {
        padding: 18px 20px;
        font-size: 1.2rem;
    }
    
    .navbar-toggler {
        padding: 10px 14px;
    }
    
    /* Ensure all interactive elements are touch-friendly */
    a, button, .btn, .form-control, .nav-link {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Section Spacing */
section {
    scroll-margin-top: 80px;
}

/* Mobile section spacing */
@media (max-width: 991.98px) {
    section {
        scroll-margin-top: 70px;
    }
    
    /* Ensure page content doesn't get cut off by navbar */
    .main-content,
    .services-hero,
    .about-hero,
    .pricing-hero,
    .blog-hero {
        padding-top: 90px;
        margin-top: -20px;
    }
}

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* Team Section */
.team-card {
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.team-img {
    width: 100%;
    height: auto;
    border: 4px solid var(--primary-color);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.team-photo {
    position: relative;
    display: inline-block;
}

/* About Page Specific */
.about-hero {
    background: linear-gradient(135deg, rgba(90, 79, 207, 0.1), rgba(255, 149, 0, 0.1));
}

.about-content {
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Utility Classes */
.shadow-lg-custom {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1) !important;
}

.border-radius-lg {
    border-radius: 15px !important;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
