/* Custom styles for Policy Shifter */

/* Hero section styling */
.hero-section {
    background: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-primary-rgb, 13, 110, 253) 100%);
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.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="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="25" cy="75" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="75" cy="25" r="1" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

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

/* Card hover effects */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

/* Icon animations */
.fas, .fab {
    transition: transform 0.3s ease;
}

.card:hover .fas {
    transform: scale(1.1);
}

/* Form styling enhancements */
.form-control:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.25);
}

/* Button enhancements */
.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-learn-more {
    background-color: #8e7cc3;
    border-color: #8e7cc3;
    color: white;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    border-radius: 0.375rem;
    padding: 0.75rem 1.5rem;
    font-size: 1.125rem;
    font-weight: 500;
    box-shadow: 0 4px 9px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.btn-learn-more:hover {
    background-color: #7a6bb8;
    border-color: #7a6bb8;
    color: white;
    transform: translateY(-2px);
}

/* Navigation enhancements */
.navbar-nav .nav-link {
    transition: color 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--bs-primary) !important;
}

/* Section spacing */
section {
    scroll-margin-top: 0px;
}

/* Dropdown menu styling */
.dropdown-menu {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border-radius: 0.5rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    visibility: hidden;
}

.dropdown-menu.show {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.dropdown-item:hover {
    background-color: var(--bs-primary);
    color: white;
}

/* Testimonials carousel styling */
#testimonialCarousel .carousel-control-prev,
#testimonialCarousel .carousel-control-next {
    width: 5%;
    color: var(--bs-primary);
}

#testimonialCarousel .carousel-control-prev-icon,
#testimonialCarousel .carousel-control-next-icon {
    background-color: var(--bs-primary);
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
}

#testimonialCarousel .carousel-indicators {
    bottom: -50px;
}

#testimonialCarousel .carousel-indicators button {
    background-color: var(--bs-primary);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 5px;
}

/* Hero Canvas Animation */
#heroCanvas {
    mix-blend-mode: overlay;
}

/* Responsive section heights */
@media (max-width: 768px) {
    .min-vh-100 {
        min-height: auto !important;
    }
    
    section {
        padding: 3rem 0 !important;
    }
}

/* Services section card styling for dark background */
.bg-primary .card {
    background-color: rgba(255, 255, 255, 0.95) !important;
}

.bg-primary .card .card-body {
    color: #333 !important;
}

/* Testimonials section card styling for dark background */
.bg-primary #testimonialCarousel .card {
    background-color: rgba(255, 255, 255, 0.95) !important;
}

.bg-primary #testimonialCarousel .card .card-body {
    color: #333 !important;
}

/* Carousel controls for dark background */
.bg-primary #testimonialCarousel .carousel-control-prev-icon,
.bg-primary #testimonialCarousel .carousel-control-next-icon {
    background-color: rgba(255, 255, 255, 0.8);
}

.bg-primary #testimonialCarousel .carousel-indicators button {
    background-color: rgba(255, 255, 255, 0.8);
}

/* Team member cards */
.team-card {
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-10px);
}

/* Case study badges */
.badge {
    font-size: 0.75rem;
    font-weight: 600;
}

/* Contact section background */
#contact {
    background: linear-gradient(135deg, rgba(var(--bs-light-rgb), 0.8) 0%, rgba(var(--bs-light-rgb), 1) 100%);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section .display-4 {
        font-size: 2.5rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .hero-section {
        padding-top: 100px !important;
        padding-bottom: 80px !important;
    }
    
    .hero-section .min-vh-100 {
        min-height: auto !important;
    }
}

/* Loading states for form submission */
.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* reCAPTCHA styling */
.g-recaptcha {
    margin: 1rem 0;
}

/* Alert styling enhancements */
.alert {
    border: none;
    border-radius: 0.5rem;
    font-weight: 500;
}

/* Footer enhancements */
footer a:hover {
    color: var(--bs-primary) !important;
    transition: color 0.3s ease;
}

/* Ensure View Demo button matches Learn More button size */
.btn-light.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.125rem;
    font-weight: 500;
    border-radius: 0.375rem;
}

/* Enhanced paragraph spacing in services section */
.services-paragraph {
    text-indent: 1.5rem;
    margin-bottom: 1rem;
}

/* Enhanced bullet indentation in services section */
.services-bullets {
    padding-left: 2rem;
}

.services-bullets li {
    padding-left: 0.5rem;
}
