html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    /*sticky header height. This property tells the browser to offset the scroll position to account for the height of your sticky header. Now, when you click a link in the navigation bar, the page will stop precisely at the top of the section with a little bit of breathing room, instead of the content being tucked under the menu bar.*/
}

:root {
    --primary-blue: #0047ab;
    --secondary-blue: #002366;
    --dark-grey: #0f172a;
    --light-blue-bg: #f8fafc;
    --accent-red: #cc0000;
    --footer-bg: #001a4d;
    --text-color: #334155;
    --surface-color: #ffffff;
    --gradient-primary: linear-gradient(135deg, #0047ab 0%, #002366 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1e293b;
    font-size: 1.125rem;
    line-height: 1.7;
    background-color: #f1f5f9;
}


header {
    background-color: var(--dark-grey);
    border-bottom: none;
}

.navbar-brand img {
    height: 50px;
    background-color: white;
    border-radius: 5px;
    padding: 4px;
}

.nav-link {
    font-weight: 600;
    color: white !important;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    padding: 0.5rem 1rem !important;
    border-radius: 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--light-blue-bg) !important;
    background-color: transparent;
}

/* Specific style for AUCTION SOFTWARE link */
.nav-item>.nav-link:hover {
    background-color: white;
    color: var(--primary-blue) !important;
}

@media (max-width: 991px) {
    .nav-item:first-child .nav-link {
        display: inline-block;
        margin-bottom: 1rem;
    }
}

/* Dropdown Hover Effects (Desktop) */
@media (min-width: 992px) {
    .nav-item.dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .dropdown-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: all 0.3s ease;
        border: none;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        padding: 0.5rem 0;
    }
}

/* Ensure dropdown menu is square on all screens */
.dropdown-menu {
    border-radius: 0 !important;
}

/* Mobile Navbar Adjustments */
.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5) !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

@media (max-width: 991px) {
    .navbar-collapse {
        background-color: var(--dark-grey);
        padding: 1rem;
        margin-top: 1rem;
        border-radius: 0;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-link {
        padding: 0.75rem 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-item:last-child .nav-link {
        border-bottom: none;
    }
}

.dropdown-item {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    padding: 0.6rem 1.5rem;
    color: var(--dark-grey);
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: var(--light-blue-bg);
    color: var(--primary-blue);
    padding-left: 1.75rem;
}

/* Hero Section */
.hero-section {
    background: var(--dark-grey);
    padding: 10rem 0;
    position: relative;
    overflow: hidden;
}

@media (max-width: 991px) {
    .hero-section {
        padding: 5rem 0;
    }
}

.hero-section h1 {
    font-weight: 800;
    letter-spacing: -0.03em;
}

/* Split Hero Option */
.hero-section.split-hero {
    padding: 0;
    display: flex;
    align-items: stretch;
    min-height: 600px;
    background: var(--dark-grey);
}

.hero-section.split-hero .container {
    display: flex;
    max-width: 100%;
    width: 100%;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.hero-content-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    min-width: 350px;
    background: var(--dark-grey);
    text-align: center;
    z-index: 2;
}

.hero-image-side {
    flex: 1.2;
    background-size: cover;
    background-position: center;
    min-height: 500px;
    min-width: 350px;
    position: relative;
    overflow: hidden;
    transition: background-image 1.5s ease-in-out;
}

/* Background Slider Effects */
.hero-slider-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: opacity 1.5s ease-in-out;
    z-index: 0;
}

.hero-section:not(.split-hero) {
    position: relative;
    overflow: hidden;
}

.hero-section:not(.split-hero) .container {
    position: relative;
    z-index: 2;
}

/* Overlay for readability */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.3);
    /* Using var(--dark-grey) equivalent */
    z-index: 1;
}

@media (max-width: 991px) {
    .hero-section.split-hero .container {
        flex-direction: column;
    }

    .hero-image-side {
        order: -1;
        min-height: 400px;
    }

    .hero-content-side {
        padding: 3rem 1.5rem;
    }
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--dark-grey);
    letter-spacing: -0.02em;
}

.section-title {
    color: var(--dark-grey);
    font-weight: 800;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.section-title .highlight,
.section-title .pricing-highlight {
    color: var(--primary-blue);
}

/* Buttons */
.btn-demo {
    background: var(--accent-red);
    color: white;
    padding: 0.6rem 2rem;
    font-weight: 700;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.btn-demo:hover {
    background: #8b0000;
    color: white;
}

.btn-custom-blue {
    background-color: var(--primary-blue);
    color: white !important;
    padding: 0.6rem 2rem;
    font-weight: 700;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    margin-top: 1rem;
    transition: background-color 0.3s ease;
}

.btn-custom-blue:hover {
    background-color: var(--secondary-blue);
    color: white;
}

/* Boxes & Cards */
.sidebar-box {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.sidebar-box h4 {
    font-weight: 800;
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--dark-grey);
}

.xpert-portrait {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid var(--light-blue-bg);
    display: block;
    margin: -1rem auto 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Features */
.feature-card {
    background: var(--surface-color);
    border-radius: 20px;
    padding: 2.5rem;
    height: 100%;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon-wrapper {
    width: 64px;
    height: 64px;
    background: var(--light-blue-bg);
    color: var(--primary-blue);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon-wrapper {
    background: var(--primary-blue);
    color: white;
    transform: rotate(5deg) scale(1.1);
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: var(--text-color);
}

.feature-list li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: #10b981;
    /* Success green */
    background: rgba(16, 185, 129, 0.1);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

/* Steps */
.step-card {
    background: var(--surface-color);
    border-radius: 20px;
    padding: 2.5rem;
    height: 100%;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.step-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.25rem;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

/* Pricing */
.pricing-card {
    background: var(--surface-color);
    border-radius: 24px;
    padding: 3.5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.pricing-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(30%, -30%);
}

/* Testimonials */
.testimonial-card {
    background: var(--surface-color);
    border-radius: 20px;
    padding: 3rem 2.5rem 2.5rem;
    height: 100%;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.testimonial-quote {
    color: var(--primary-blue);
    font-size: 3rem;
    opacity: 0.15;
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
    font-size: 1.05rem;
}

.testimonial-author {
    font-weight: 800;
    color: var(--dark-grey);
    font-size: 1.1rem;
}

.testimonial-company {
    font-size: 0.9rem;
    color: var(--primary-blue);
    font-weight: 600;
}

/* Forms */
.form-control,
.form-select {
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.btn-submit {
    background: var(--dark-grey);
    color: white;
    width: 100%;
    padding: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: black;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    color: white;
}

/* Footer */
.footer {
    background-color: var(--footer-bg);
    color: #f8fafc;
    padding: 5rem 0 2rem;
    position: relative;
}

.footer h5 {
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 1.25rem;
}

.footer p {
    color: #cbd5e1;
}

.footer a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer a:hover {
    color: white;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 4rem;
    padding-top: 2rem;
    font-size: 0.9rem;
    text-align: center;
    color: #94a3b8;
}

/* Animations */
.animate-fade-in {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Override Bootstrap Colors */
.bg-primary {
    background: var(--gradient-primary) !important;
}

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

.border-primary {
    border-color: var(--primary-blue) !important;
}