/********** Template CSS **********/
:root {
    --primary: #3B82F6;
    --secondary: #8B5CF6;
    --accent-gradient: linear-gradient(90deg, #3B82F6, #8B5CF6);
    --light: #A1A1AA;
    --dark: #0F0F0F;
    --surface: #1A1A1A;
    --border: rgba(255, 255, 255, 0.08);
    --text-primary: #FFFFFF;
    --text-secondary: #A1A1AA;
}

body {
    font-family: 'Inter', 'Poppins', sans-serif;
    background: var(--dark);
    color: var(--text-secondary);
}

/*** Bootstrap Utility Overrides ***/
.bg-primary {
    background: var(--dark) !important;
}

.bg-secondary {
    background: var(--surface) !important;
}

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

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

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

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

.dropdown-menu {
    background: var(--surface) !important;
    border: 1px solid var(--border) !important;
    color: var(--text-primary) !important;
}

.dropdown-menu .dropdown-item {
    color: var(--text-primary) !important;
}

.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus {
    background: rgba(59, 130, 246, 0.1) !important;
    color: var(--primary) !important;
}

/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}


/*** Heading ***/
h1,
h2,
.fw-bold {
    font-family: 'Poppins', sans-serif;
    font-weight: 700 !important;
}

h3,
h4,
.fw-semi-bold {
    font-family: 'Inter', sans-serif;
    font-weight: 600 !important;
}

h5,
h6,
.fw-medium {
    font-family: 'Inter', sans-serif;
    font-weight: 500 !important;
}

p, a, span, small, label, input, textarea, select {
    font-family: 'Inter', sans-serif;
}


/*** Button ***/
.btn {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    transition: .4s;
    border-radius: 10px;
    letter-spacing: 0.2px;
}

.btn.btn-primary,
.btn.btn-secondary {
    color: #FFFFFF !important;
}

.btn-primary,
.btn-primary:focus,
.btn-primary:hover,
.btn-primary:active,
.btn-check:checked+.btn-primary,
.btn-primary.active,
.show>.btn-primary.dropdown-toggle {
    background: var(--accent-gradient) !important;
    border: none !important;
    color: #FFFFFF !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.35), 0 0 60px rgba(139, 92, 246, 0.15) !important;
    transform: translateY(-1px);
}

.btn-secondary,
.btn-secondary:focus,
.btn-secondary:hover,
.btn-secondary:active,
.btn-check:checked+.btn-secondary,
.btn-secondary.active,
.show>.btn-secondary.dropdown-toggle {
    background: var(--secondary) !important;
    border: none !important;
    color: #FFFFFF !important;
}

.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active {
    background: #7C4FE0 !important;
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.3) !important;
    transform: translateY(-1px);
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 8px;
}


/*** Navbar ***/
.navbar-light .navbar-nav .nav-link {
    position: relative;
    margin-left: 25px;
    padding: 35px 0;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    color: #FFFFFF !important;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.5px;
    outline: none;
    transition: .5s;
}

.sticky-top.navbar-light .navbar-nav .nav-link {
    padding: 20px 0;
    color: #E0E0E0 !important;
}

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

.navbar-light .navbar-brand h1 {
    color: #FFFFFF;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

.navbar-light .navbar-brand img {
    max-height: 60px;
    transition: .5s;
}

.sticky-top.navbar-light .navbar-brand img {
    max-height: 45px;
}

@media (max-width: 991.98px) {
    .sticky-top.navbar-light {
        position: relative;
        background: var(--dark);
    }

    .navbar-light .navbar-collapse {
        margin-top: 15px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .navbar-light .navbar-nav .nav-link,
    .sticky-top.navbar-light .navbar-nav .nav-link {
        padding: 10px 0;
        margin-left: 0;
        color: #E0E0E0 !important;
    }

    .navbar-light .navbar-brand h1 {
        color: var(--primary);
    }

    .navbar-light .navbar-brand img {
        max-height: 45px;
    }
}

@media (min-width: 992px) {
    .navbar-light {
        position: absolute;
        width: 100%;
        top: 0;
        left: 0;
        z-index: 999;
    }

    .sticky-top.navbar-light {
        position: fixed;
        background: var(--dark);
    }

    .sticky-top.navbar-light .navbar-brand h1 {
        color: #FFFFFF;
    }
}


/*** Hero Header ***/
.hero-header {
    background: linear-gradient(135deg, #0F0F0F 0%, #1A1A1A 50%, #0F0F0F 100%);
    position: relative;
    overflow: hidden;
}

.hero-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
    animation: heroGlow 15s ease-in-out infinite;
}

@keyframes heroGlow {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-5%, 3%); }
}

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

.hero-header .display-4 {
    background: linear-gradient(135deg, #FFFFFF 0%, #3B82F6 50%, #8B5CF6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.hero-header p.text-white {
    color: var(--text-secondary) !important;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, .5);
}


/*** Section Title ***/
.section-title::before {
    position: absolute;
    content: "";
    width: 60px;
    height: 11px;
    bottom: 0;
    left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.section-title::after {
    position: absolute;
    content: "";
    width: 90px;
    height: 1px;
    bottom: 5px;
    left: 0;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.section-title.text-center::before {
    left: 50%;
    margin-left: -30px;
}

.section-title.text-center::after {
    width: 120px;
    left: 50%;
    margin-left: -60px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.section-title h1 {
    background: linear-gradient(135deg, #FFFFFF 0%, #D4D4D8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title h3,
.section-title h4 {
    color: var(--text-primary);
}

.section-title p {
    color: var(--text-secondary);
}


/*** Domain Search ***/
.domain {
    background: var(--dark);
}

.domain h5.fw-bold.text-primary {
    color: var(--primary) !important;
}

.domain p.mb-0 {
    color: var(--text-secondary);
}

.domain .section-title h1 {
    background: linear-gradient(135deg, #FFFFFF 0%, #3B82F6 60%, #8B5CF6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/*** Global Dark Theme Overrides ***/
.container-xxl.bg-white {
    background: var(--dark) !important;
}

.container-xxl.py-5 {
    background: var(--dark);
}

.container-xxl.py-5 + .container-xxl.py-5 {
    background: var(--surface);
}

.container-xxl.domain.mb-5 {
    background: var(--surface);
}

/* Pricing cards */
.position-relative.shadow.rounded {
    background: rgba(26, 26, 26, 0.8) !important;
    border: 1px solid var(--border) !important;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    backdrop-filter: blur(10px);
}

.position-relative.shadow.rounded:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5) !important;
    border-color: rgba(59, 130, 246, 0.25) !important;
    background: rgba(26, 26, 26, 0.95) !important;
}

.position-relative.shadow.rounded .text-center {
    background: transparent !important;
    border-color: var(--border) !important;
}

.position-relative.shadow.rounded p {
    color: var(--text-secondary);
}

.position-relative.shadow.rounded h4 {
    color: var(--text-primary);
}

.position-relative.shadow.rounded h1 {
    color: var(--text-primary);
}

.position-relative.shadow.rounded .text-primary {
    color: var(--primary) !important;
}

.position-relative.shadow.rounded .bg-primary.rounded-circle {
    background: var(--accent-gradient) !important;
}

.position-relative.shadow.rounded .bg-secondary.rounded-circle {
    background: linear-gradient(135deg, #8B5CF6, #6D28D9) !important;
}

/* About section stats */
.bg-light.rounded.text-center.p-4 {
    background: rgba(26, 26, 26, 0.6) !important;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    backdrop-filter: blur(10px);
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.bg-light.rounded.text-center.p-4:hover {
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-4px);
}

.bg-light.rounded.text-center.p-4 h2 {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-light.rounded.text-center.p-4 i {
    color: var(--primary);
}

/* Comparison section */
.comparison .section-title h3 {
    color: var(--text-primary);
}

.comparison p {
    color: var(--text-secondary);
}

.comparison h5.fw-bold {
    color: var(--text-primary) !important;
}

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

.comparison i.text-secondary {
    color: var(--secondary) !important;
}

/* Team items */
.team-item {
    background: rgba(26, 26, 26, 0.6) !important;
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}

.team-item .text-center {
    background: transparent;
}

.team-item .text-center h5 {
    color: var(--text-primary);
}

.team-item .text-center small {
    color: var(--text-secondary);
}

/* Testimonial items */
.testimonial-item.bg-light {
    background: rgba(26, 26, 26, 0.5) !important;
    border: 1px solid var(--border) !important;
    backdrop-filter: blur(10px);
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.testimonial-item.bg-light:hover {
    border-color: rgba(59, 130, 246, 0.2);
    transform: translateY(-2px);
}

.testimonial-item p {
    color: var(--text-secondary);
}

.testimonial-item h6 {
    color: var(--text-primary) !important;
}

.testimonial-item small {
    color: var(--text-secondary) !important;
}

/* Form inputs */
input.form-control,
textarea.form-control {
    background: var(--surface) !important;
    border: 1px solid var(--border) !important;
    color: var(--text-primary) !important;
    border-radius: 8px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input.form-control::placeholder,
textarea.form-control::placeholder {
    color: rgba(161, 161, 170, 0.6) !important;
}

input.form-control:focus,
textarea.form-control:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15) !important;
    outline: none;
}

/* Footer bg override */
.bg-primary.footer {
    background: linear-gradient(180deg, #0F0F0F 0%, #1A1A1A 100%) !important;
}

/* Footer form card */
.footer .bg-light.rounded {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

/* Footer heading overrides */
.footer h5.fw-bold.text-white {
    color: var(--text-primary) !important;
    font-weight: 600 !important;
}

.footer p.mb-3.text-light {
    color: var(--text-secondary) !important;
}

/* Domain search input */
.domain input.form-control {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid var(--border) !important;
}

/* Newsletter submit button in footer */
.footer .position-relative .btn.btn-primary {
    background: var(--accent-gradient);
    border: none;
}

/* Footer newsletter input override */
.footer input.form-control.bg-white {
    background: var(--surface) !important;
    border: 1px solid var(--border) !important;
    color: var(--text-primary) !important;
}

.footer input.form-control.bg-white::placeholder {
    color: rgba(161, 161, 170, 0.5) !important;
}

/* Footer contact paragraphs */
.footer .col-md-6.col-lg-3 p.mb-2 {
    color: var(--text-secondary) !important;
}

/* Footer form card inputs */
.footer .bg-light input.form-control,
.footer .bg-light textarea.form-control {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid var(--border) !important;
    color: var(--text-primary) !important;
}

.footer .bg-light input.form-control::placeholder,
.footer .bg-light textarea.form-control::placeholder {
    color: rgba(161, 161, 170, 0.5) !important;
}

/* Global link styling */
a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary);
}

a:not(.btn):not(.dropdown-item):not(.nav-link):not(.footer-menu a):not(.copyright a):not(.btn-social):not(.btn-link):not(.btn-square) {
    color: var(--primary);
}

a:not(.btn):not(.dropdown-item):not(.nav-link):not(.footer-menu a):not(.copyright a):not(.btn-social):not(.btn-link):not(.btn-square):hover {
    color: var(--secondary);
}

/* Text color utilities */
.text-light-custom {
    color: var(--text-secondary);
}

/* Selection color */
::selection {
    background: rgba(59, 130, 246, 0.3);
    color: #FFFFFF;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/*** Search Modal ***/
#searchModal .form-control::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
}

#searchModal .btn-close {
    filter: invert(1);
}

/*** Back to Top ***/
.back-to-top {
    background: var(--accent-gradient) !important;
    color: #fff !important;
    border: none;
    border-radius: 10px !important;
}

.back-to-top:hover {
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
}

/*** Sticky Navbar Shadow ***/
.sticky-top.shadow-sm {
    background: #0F0F0F !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5) !important;
}


/*** Comparison ***/
@media (min-width: 992px) {
    .comparison::after {
        position: absolute;
        content: "";
        width: 1px;
        top: 56px;
        bottom: 20px;
        left: 50%;
        background: rgba(255, 255, 255, 0.1);
    }
}


/*** Testimonial ***/
.testimonial-carousel .owl-item .testimonial-item,
.testimonial-carousel .owl-item.center .testimonial-item * {
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-item {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(139, 92, 246, 0.1)) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 10px 40px rgba(59, 130, 246, 0.15);
    backdrop-filter: blur(10px);
}

.testimonial-carousel .owl-item.center .testimonial-item .position-absolute {
    background: var(--accent-gradient) !important;
}

.testimonial-carousel .owl-item.center .testimonial-item * {
    color: #FFFFFF;
}

.testimonial-carousel .owl-item.center .testimonial-item h6 {
    color: #FFFFFF !important;
}

.testimonial-carousel .owl-dots {
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    background: #333333;
    border-radius: 15px;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    width: 30px;
    background: var(--accent-gradient);
}


/*** Team ***/
.team-item,
.team-item .bg-primary,
.team-item .bg-primary i {
    transition: .5s;
}

.team-item:hover {
    border-color: var(--primary) !important;
    box-shadow: 0 10px 40px rgba(59, 130, 246, 0.12);
    transform: translateY(-4px);
}

.team-item:hover .bg-primary {
    background: var(--accent-gradient) !important;
}

.team-item:hover .bg-primary i {
    color: #FFFFFF !important;
}


/*** Footer ***/
.footer {
    background: linear-gradient(180deg, #0F0F0F 0%, #1A1A1A 100%) !important;
    position: relative;
}

.footer p {
    font-size: 15px;
    color: var(--text-secondary);
}

.footer .btn.btn-social {
    margin-right: 5px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: 50%;
    transition: .3s;
    background: transparent;
}

.footer .btn.btn-social:hover {
    color: #FFFFFF;
    border-color: var(--primary);
    background: var(--primary);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: normal;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
    color: var(--primary);
}

.footer .btn.btn-link:hover {
    letter-spacing: 0.5px;
    box-shadow: none;
    color: var(--primary);
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid var(--border);
}

.footer .copyright a {
    color: var(--text-secondary);
}

.footer .footer-menu a {
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid var(--border);
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.footer .footer-menu a:hover {
    color: var(--primary);
}

.footer .footer-menu a:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}