:root {
    /* Bootstrap theme colors */
    --tb-primary: #405189;
    --tb-primary-rgb: 64, 81, 137;
    --tb-primary-text-emphasis: #1a1f3a;
    --tb-secondary: #3577f1;
    --tb-secondary-rgb: 53, 119, 241;
    --tb-secondary-text-emphasis: #142c5c;
    
    /* Updated colors based on Bootstrap theme */
    --primary-color: var(--tb-primary);
    --secondary-color: var(--tb-secondary);
    --gradient: linear-gradient(135deg, var(--tb-primary) 0%, var(--tb-secondary) 100%);
    --light-bg: #f8fafc;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

.hero-section {
    background: var(--gradient);
    color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    animation: float 20s ease-in-out infinite;
    z-index: 1;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(1deg);
    }
}

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

.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 900;
    font-size: 1.8rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-primary {
    --tb-btn-bg: var(--tb-primary);
    --tb-btn-border-color: var(--tb-primary);
    --tb-btn-hover-bg: var(--tb-primary-text-emphasis);
    --tb-btn-hover-border-color: var(--tb-primary-text-emphasis);
    --tb-btn-focus-shadow-rgb: var(--tb-primary-rgb);
    --tb-btn-active-bg: var(--tb-primary-text-emphasis);
    --tb-btn-active-border-color: var(--tb-primary-text-emphasis);
    
    background: var(--gradient);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--tb-btn-hover-bg);
    border-color: var(--tb-btn-hover-border-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(var(--tb-primary-rgb), 0.3);
}

.btn-primary:focus {
    box-shadow: 0 0 0 0.25rem rgba(var(--tb-btn-focus-shadow-rgb), 0.5);
}

.btn-primary:active {
    background: var(--tb-btn-active-bg) !important;
    border-color: var(--tb-btn-active-border-color) !important;
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 28px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--gradient);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(var(--tb-primary-rgb), 0.3);
}

.btn-light {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.btn-light:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.stats-section {
    background: var(--light-bg);
    padding: 80px 0;
}

.stat-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border: 1px solid rgba(var(--tb-primary-rgb), 0.1);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(var(--tb-primary-rgb), 0.05), transparent);
    transition: left 0.5s;
}

.stat-card:hover::before {
    left: 100%;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(var(--tb-primary-rgb), 0.15);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.features-section {
    padding: 100px 0;
}

.feature-card {
    background: var(--light-bg);
    border-radius: 20px;
    padding: 40px 30px;
    height: 100%;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.feature-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(var(--tb-primary-rgb), 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin-bottom: 25px;
}

.demo-section {
    background: var(--light-bg);
    padding: 100px 0;
}

.demo-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    height: 100%;
}

.demo-card:hover {
    transform: scale(1.02);
}

.demo-header {
    background: var(--gradient);
    color: white;
    padding: 20px 25px;
    font-weight: 600;
}

.demo-content {
    padding: 25px;
    font-size: 0.9rem;
}

.pricing-section {
    padding: 100px 0;
}

.pricing-card {
    background: white;
    border: 3px solid #e9ecef;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
}

.pricing-card.featured {
    border-color: var(--primary-color);
    transform: scale(1.05);
    z-index: 2;
}

.pricing-card:hover {
    border-color: var(--secondary-color);
    transform: scale(1.08);
    box-shadow: 0 20px 40px rgba(var(--tb-primary-rgb), 0.2);
}

.price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin: 20px 0 10px;
}

.cta-section {
    background: linear-gradient(135deg, var(--tb-primary-text-emphasis) 0%, var(--tb-secondary-text-emphasis) 100%);
    color: white;
    padding: 100px 0;
}

.table-responsive {
    border-radius: 10px;
    overflow: hidden;
}

.table th {
    background: var(--light-bg);
    border: none;
    font-weight: 600;
}

.grade-ee {
    color: #059669;
    font-weight: 600;
}

.grade-me {
    color: var(--secondary-color);
    font-weight: 600;
}

.grade-ae {
    color: #dc2626;
    font-weight: 600;
}

/* Screenshot Cards Styling */
.screenshot-card {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
}

.screenshot-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(var(--tb-primary-rgb), 0.15);
}

.screenshot-card img {
    transition: transform 0.3s ease;
    border: 3px solid #e9ecef;
    min-height: 200px;
    object-fit: cover;
}

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

.screenshot-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(var(--tb-primary-rgb), 0.9);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.screenshot-card:hover .screenshot-overlay {
    opacity: 1;
}

.screenshot-info {
    padding: 20px;
    background: white;
    border-radius: 0 0 15px 15px;
    margin-top: -5px;
    position: relative;
    z-index: 5;
}

/* Modal Image Styling */
.modal-xl .modal-body img {
    max-height: 80vh;
    width: auto;
    object-fit: contain;
}

/* Hero Carousel Styling */
#heroImageCarousel {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    position: relative;
}

.hero-slide-img {
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
}

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

.carousel-indicators button {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.carousel-indicators button.active {
    background-color: white;
    border-color: var(--primary-color);
    transform: scale(1.2);
}

.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.3s ease;
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

#heroImageCarousel:hover .carousel-control-prev,
#heroImageCarousel:hover .carousel-control-next {
    opacity: 1;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 24px;
    height: 24px;
    filter: invert(1);
}

.carousel-caption {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 20px 20px;
    border-radius: 0 0 20px 20px;
}

.carousel-caption h5 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.carousel-caption p {
    font-size: 0.9rem;
    margin-bottom: 0;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .hero-slide-img {
        height: 300px;
    }

    .carousel-indicators {
        bottom: -40px;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 45px;
        height: 45px;
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .pricing-card.featured {
        transform: none;
    }
}