/********** Template CSS **********/
html {
    scroll-behavior: smooth;
}

:root {
    --primary: #0A192F;
    /* Deep Navy Blue (Logo Match) */
    --secondary: #F97316;
    /* Vibrant Orange */
    --accent: #E85D04;
    /* Deep Orange */
    --light: #F8FAFC;
    /* Slate 50 */
    --dark: #0F172A;
    /* Slate 900 */
    --gradient-primary: linear-gradient(135deg, #0A192F 0%, #172A45 100%);
    --gradient-accent: linear-gradient(135deg, #F97316 0%, #FB923C 100%);
    --gradient-dark: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
}


/*** Spinner ***/
.spinner {
    width: 40px;
    height: 40px;
    background: var(--primary);
    margin: 100px auto;
    -webkit-animation: sk-rotateplane 1.2s infinite ease-in-out;
    animation: sk-rotateplane 1.2s infinite ease-in-out;
}

@-webkit-keyframes sk-rotateplane {
    0% {
        -webkit-transform: perspective(120px)
    }

    50% {
        -webkit-transform: perspective(120px) rotateY(180deg)
    }

    100% {
        -webkit-transform: perspective(120px) rotateY(180deg) rotateX(180deg)
    }
}

@keyframes sk-rotateplane {
    0% {
        transform: perspective(120px) rotateX(0deg) rotateY(0deg);
        -webkit-transform: perspective(120px) rotateX(0deg) rotateY(0deg)
    }

    50% {
        transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg);
        -webkit-transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg)
    }

    100% {
        transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
        -webkit-transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
    }
}

#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;
}


/*** Heading ***/
h1,
h2,
.fw-bold {
    font-weight: 800 !important;
}

h3,
h4,
.fw-semi-bold {
    font-weight: 700 !important;
}

h5,
h6,
.fw-medium {
    font-weight: 600 !important;
}


/*** Button ***/
.btn {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    transition: .5s;
}

.btn-primary,
.btn-secondary {
    color: #FFFFFF;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--gradient-primary) !important;
}

.btn-secondary {
    background: var(--secondary) !important;
}

.btn-primary::before,
.btn-secondary::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    z-index: -1;
    transition: 0.3s ease;
    transform: scaleX(0);
    transform-origin: right;
}

.btn-primary:hover::before,
.btn-secondary:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.4);
    transform: translateY(-2px);
}

.btn-secondary:hover {
    box-shadow: 0 8px 25px rgba(5, 150, 105, 0.4);
    transform: translateY(-2px);
}

.btn-square {
    width: 36px;
    height: 36px;
}

.btn-sm-square {
    width: 30px;
    height: 30px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}


/*** Navbar ***/
.navbar-dark .navbar-nav .nav-link {
    font-family: 'Nunito', sans-serif;
    position: relative;
    margin-left: 25px;
    padding: 35px 0;
    color: var(--dark);
    font-size: 18px;
    font-weight: 600;
    outline: none;
    transition: .5s;
}

.sticky-top.navbar-dark .navbar-nav .nav-link {
    padding: 20px 0;
    color: var(--dark);
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--secondary) !important;
}

.navbar-dark .navbar-brand h1 {
    color: var(--primary);
}

.navbar-dark .navbar-toggler {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
}

@media (max-width: 991.98px) {
    .sticky-top.navbar-dark {
        position: relative;
        background: #FFFFFF;
    }

    .navbar-dark .navbar-nav .nav-link,
    .navbar-dark .navbar-nav .nav-link.show,
    .sticky-top.navbar-dark .navbar-nav .nav-link {
        padding: 10px 0;
        color: var(--dark);
    }

    .navbar-dark .navbar-brand h1 {
        color: var(--primary);
    }
}

@media (min-width: 992px) {
    .navbar-dark {
        position: absolute;
        width: 100%;
        top: 0;
        left: 0;
        border-bottom: 1px solid rgba(256, 256, 256, .1);
        z-index: 999;
    }

    .sticky-top.navbar-dark {
        position: fixed;
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    }

    .navbar-dark .navbar-nav .nav-link::before {
        position: absolute;
        content: "";
        width: 0;
        height: 2px;
        bottom: -1px;
        left: 50%;
        background: var(--primary);
        transition: .5s;
    }

    .navbar-dark .navbar-nav .nav-link:hover::before,
    .navbar-dark .navbar-nav .nav-link.active::before {
        width: 100%;
        left: 0;
    }

    .navbar-dark .navbar-nav .nav-link.nav-contact::before {
        display: none;

    }

    .sticky-top.navbar-dark .navbar-brand h1 {
        color: var(--primary);

    }
}


/*** Carousel ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(10, 25, 47, 0.9) 0%, rgba(10, 25, 47, 0.5) 60%, rgba(249, 115, 22, 0.4) 100%);
    z-index: 1;
}

@media (max-width: 576px) {
    .carousel-caption h5 {
        font-size: 14px;
        font-weight: 500 !important;
    }

    .carousel-caption h1 {
        font-size: 30px;
        font-weight: 600 !important;
    }
}

.carousel-control-prev,
.carousel-control-next {
    width: 10%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
}


/*** Section Title ***/
.section-title::before {
    position: absolute;
    content: "";
    width: 150px;
    height: 5px;
    left: 0;
    bottom: 0;
    background: var(--primary);
    border-radius: 2px;
}

.section-title.text-center::before {
    left: 50%;
    margin-left: -75px;
}

.section-title.section-title-sm::before {
    width: 90px;
    height: 3px;
}

.section-title::after {
    position: absolute;
    content: "";
    width: 6px;
    height: 5px;
    bottom: 0px;
    background: #FFFFFF;
    -webkit-animation: section-title-run 5s infinite linear;
    animation: section-title-run 5s infinite linear;
}

.section-title.section-title-sm::after {
    width: 4px;
    height: 3px;
}

.section-title.text-center::after {
    -webkit-animation: section-title-run-center 5s infinite linear;
    animation: section-title-run-center 5s infinite linear;
}

.section-title.section-title-sm::after {
    -webkit-animation: section-title-run-sm 5s infinite linear;
    animation: section-title-run-sm 5s infinite linear;
}

@-webkit-keyframes section-title-run {
    0% {
        left: 0;
    }

    50% {
        left: 145px;
    }

    100% {
        left: 0;
    }
}

@-webkit-keyframes section-title-run-center {
    0% {
        left: 50%;
        margin-left: -75px;
    }

    50% {
        left: 50%;
        margin-left: 45px;
    }

    100% {
        left: 50%;
        margin-left: -75px;
    }
}

@-webkit-keyframes section-title-run-sm {
    0% {
        left: 0;
    }

    50% {
        left: 85px;
    }

    100% {
        left: 0;
    }
}


/*** Service ***/
.service-item {
    position: relative;
    height: 300px;
    padding: 30px;
    transition: 0.5s;
    border-radius: 16px;
    background: #FFFFFF;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.service-item .service-icon {
    margin-bottom: 30px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(30, 58, 138, 0.2);
    transform: rotate(0deg);
    transition: 0.5s;
}

.service-item:hover .service-icon {
    transform: rotate(10deg) scale(1.1);
}

.service-item .service-icon i {
    transform: rotate(0deg);
    font-size: 24px;
}

.service-item a.btn {
    position: absolute;
    width: 60px;
    bottom: -48px;
    left: 50%;
    margin-left: -30px;
    opacity: 0;
}

.service-item:hover a.btn {
    bottom: -24px;
    opacity: 1;
}


/*** Testimonial ***/
.testimonial-carousel .owl-dots {
    margin-top: 15px;
    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: #DDDDDD;
    border-radius: 2px;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    width: 30px;
    background: var(--primary);
}

.testimonial-carousel .owl-item.center {
    position: relative;
    z-index: 1;
}

.testimonial-carousel .owl-item .testimonial-item {
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-item {
    background: #FFFFFF !important;
    box-shadow: 0 0 30px #DDDDDD;
}


/*** Team ***/
.team-item {
    transition: .5s;
}

.team-social {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .5s;
}

.team-social a.btn {
    position: relative;
    margin: 0 3px;
    margin-top: 100px;
    opacity: 0;
}

.team-item:hover {
    box-shadow: 0 0 30px #DDDDDD;
}

.team-item:hover .team-social {
    background: rgba(15, 23, 42, 0.7);
}

.team-item:hover .team-social a.btn:first-child {
    opacity: 1;
    margin-top: 0;
    transition: .3s 0s;
}

.team-item:hover .team-social a.btn:nth-child(2) {
    opacity: 1;
    margin-top: 0;
    transition: .3s .05s;
}

.team-item:hover .team-social a.btn:nth-child(3) {
    opacity: 1;
    margin-top: 0;
    transition: .3s .1s;
}

.team-item:hover .team-social a.btn:nth-child(4) {
    opacity: 1;
    margin-top: 0;
    transition: .3s .15s;
}

.team-item .team-img img {
    transition: .5s;
}

.team-item:hover .team-img img {
    transform: scale(1.15);
}


/*** Miscellaneous ***/
@media (min-width: 991.98px) {
    .facts {
        position: relative;
        margin-top: -75px;
        z-index: 1;
    }
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

.bg-header {
    background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.8)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.link-animated a {
    transition: .5s;
}

.link-animated a:hover {
    padding-left: 10px;
}

@media (min-width: 767.98px) {
    .footer-about {
        margin-bottom: -75px;
    }
}

/*** Pricing ***/
.pricing-item {
    background: #FFFFFF;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
    border: 1px solid rgba(15, 23, 42, 0.05);
    transition: 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.pricing-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: 0.5s ease;
}

.pricing-item:hover::before {
    transform: scaleX(1);
}

.pricing-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 45px rgba(15, 23, 42, .15);
}

.pricing-item.active {
    border-color: var(--primary);
    box-shadow: 0 0 45px rgba(30, 58, 138, .15);
}

.pricing-item .price-amount {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

.pricing-item .price-period {
    font-size: 1rem;
    color: green;
    font-weight: 500;
}

.pricing-item ul li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(15, 23, 42, .05);
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.pricing-item ul li:last-child {
    border-bottom: none;
}

.btn-outline-gold {
    color: var(--accent);
    border-color: var(--accent);
    background-color: transparent;
    transition: 0.3s;
}

.btn-outline-gold:hover {
    color: #fff;
    background: var(--gradient-accent);
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
}

/* Domain Checker Styles */
#domainResultsContainer {
    animation: fadeInUp 0.5s ease-out;
}

.hover-up {
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.hover-up:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12) !important;
}

#domainResultsContainer .card {
    transition: all 0.3s ease;
    border: none;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05) !important;
}

#domainResultsContainer .border-bottom:last-child {
    border-bottom: none !important;
}

#domainResultsContainer .suggestion-row {
    transition: all 0.2s ease;
    padding-left: 15px;
    padding-right: 15px;
    border-radius: 8px;
}

#domainResultsContainer .suggestion-row:hover {
    background-color: rgba(30, 58, 138, 0.04);
    transform: scale(1.005);
}

@media (max-width: 576px) {
    #domainResultsContainer .suggestion-row {
        text-align: center;
        flex-direction: column !important;
        align-items: center !important;
        gap: 12px !important;
    }

    #domainResultsContainer .suggestion-row .d-flex {
        justify-content: center;
        width: 100%;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.4);
    }

    50% {
        transform: scale(1.03);
        box-shadow: 0 0 0 8px rgba(46, 204, 113, 0);
    }
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* Glassmorphism details for cards */
.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
}

/* Styling for opacity utility */
.opacity-60 {
    opacity: 0.6;
}

.bg-light-subtle {
    background-color: rgba(248, 249, 250, 0.5) !important;
}

/* Mobile Responsiveness Optimizations */
@media (max-width: 991.98px) {

    /* Position navbar absolutely over the header/carousel */
    .navbar-dark {
        position: absolute !important;
        width: 100% !important;
        top: 0 !important;
        left: 0 !important;
        z-index: 999 !important;
        background: transparent !important;
        padding-top: 15px !important;
        padding-bottom: 15px !important;
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }

    /* When scrolled and sticky, make it fixed with white background */
    .sticky-top.navbar-dark {
        position: fixed !important;
        background: #FFFFFF !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }

    /* Brand styling when transparent */
    .navbar-dark .navbar-brand h1 {
        color: #FFFFFF !important;
        font-size: 22px !important;
    }

    /* Brand styling when sticky */
    .sticky-top.navbar-dark .navbar-brand h1 {
        color: var(--primary) !important;
    }

    /* Ensure brand container is visible and aligned */
    .navbar-dark .navbar-brand {
        display: flex !important;
        align-items: center !important;
        z-index: 1000 !important;
    }

    /* Brand logo image responsiveness */
    .navbar-dark .navbar-brand img {
        height: 40px !important;
        width: auto !important;
        display: block !important;
    }

    /* Toggler styling when transparent */
    .navbar-dark .navbar-toggler {
        color: #FFFFFF !important;
        border-color: #FFFFFF !important;
        order: 2 !important;
        /* Force to the right side */
    }

    /* Toggler styling when sticky */
    .sticky-top.navbar-dark .navbar-toggler {
        color: var(--primary) !important;
        border-color: var(--primary) !important;
    }

    /* Collapse menu styling for mobile */
    .navbar-dark .navbar-collapse {
        background: rgba(15, 23, 42, 0.98) !important;
        border-radius: 8px !important;
        padding: 15px !important;
        margin-top: 15px !important;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25) !important;
    }

    .sticky-top.navbar-dark .navbar-collapse {
        background: #FFFFFF !important;
        border: 1px solid rgba(0, 0, 0, 0.08) !important;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1) !important;
    }

    .navbar-dark .navbar-nav .nav-link {
        color: #FFFFFF !important;
        padding: 10px 0 !important;
        margin-left: 0 !important;
    }

    .sticky-top.navbar-dark .navbar-nav .nav-link {
        color: var(--dark) !important;
    }

    .navbar-dark .navbar-nav .nav-link:hover,
    .navbar-dark .navbar-nav .nav-link.active {
        color: var(--primary) !important;
    }
}

@media (max-width: 576px) {
    .navbar-dark {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .navbar-dark .navbar-brand h1 {
        font-size: 18px !important;
    }

    .navbar-dark .navbar-brand img {
        height: 35px !important;
    }

    /* Domain search responsiveness */
    #domainSearchForm {
        width: 100%;
        padding: 0 15px;
    }

    #domainInput {
        width: 100% !important;
        max-width: 100% !important;
    }

    #domainSubmitBtn {
        width: 100% !important;
    }

    /* Footer layout adjust */
    .footer-about {
        margin-bottom: 30px !important;
    }
}

/* Global Color Overrides for Premium Aesthetic */
.text-primary {
    color: var(--primary) !important;
}

.bg-primary {
    background: var(--gradient-primary) !important;
}

.text-secondary {
    color: var(--secondary) !important;
}

.bg-secondary {
    background: var(--secondary) !important;
}

.text-dark {
    color: var(--dark) !important;
}

.bg-dark {
    background: var(--gradient-dark) !important;
}

.border-primary {
    border-color: var(--primary) !important;

    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.4);
    }

    50% {
        transform: scale(1.03);
        box-shadow: 0 0 0 8px rgba(46, 204, 113, 0);
    }
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* Glassmorphism details for cards */
.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
}

/* Styling for opacity utility */
.opacity-60 {
    opacity: 0.6;
}

.bg-light-subtle {
    background-color: rgba(248, 249, 250, 0.5) !important;
}

/* Mobile Responsiveness Optimizations */
@media (max-width: 991.98px) {

    /* Position navbar absolutely over the header/carousel */
    .navbar-dark {
        position: absolute !important;
        width: 100% !important;
        top: 0 !important;
        left: 0 !important;
        z-index: 999 !important;
        background: transparent !important;
        padding-top: 15px !important;
        padding-bottom: 15px !important;
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }

    /* When scrolled and sticky, make it fixed with white background */
    .sticky-top.navbar-dark {
        position: fixed !important;
        background: #FFFFFF !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }

    /* Brand styling when transparent */
    .navbar-dark .navbar-brand h1 {
        color: var(--primary) !important;
        font-size: 22px !important;
    }

    /* Brand styling when sticky */
    .sticky-top.navbar-dark .navbar-brand h1 {
        color: var(--primary) !important;
    }

    /* Ensure brand container is visible and aligned */
    .navbar-dark .navbar-brand {
        display: flex !important;
        align-items: center !important;
        z-index: 1000 !important;
    }

    /* Brand logo image responsiveness */
    .navbar-dark .navbar-brand img {
        height: 40px !important;
        width: auto !important;
        display: block !important;
    }

    /* Toggler styling when transparent */
    .navbar-dark .navbar-toggler {
        color: var(--primary) !important;
        border-color: var(--primary) !important;
        order: 2 !important;
        /* Force to the right side */
    }

    /* Toggler styling when sticky */
    .sticky-top.navbar-dark .navbar-toggler {
        color: var(--primary) !important;
        border-color: var(--primary) !important;
    }

    /* Collapse menu styling for mobile */
    .navbar-dark .navbar-collapse {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(10px);
        border-radius: 0 0 16px 16px !important;
        margin-top: 0 !important;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }

    .navbar-dark .navbar-collapse.show {
        display: flex !important;
        flex-direction: column !important;
    }

    .navbar-dark .navbar-collapse .navbar-nav {
        width: 100%;
        display: flex;
        flex-direction: column;
    }

    .sticky-top.navbar-dark .navbar-collapse {
        background: #FFFFFF !important;
        border: none !important;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
    }

    /* Add animation to collapse */
    .navbar-dark .navbar-collapse.show {
        animation: slideDown 0.3s ease-out forwards;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .navbar-dark .navbar-nav .nav-link,
    .sticky-top.navbar-dark .navbar-nav .nav-link {
        color: var(--dark) !important;
        padding: 12px 15px !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        border-radius: 8px;
        transition: all 0.3s ease;
        margin-bottom: 5px !important;
        font-weight: 600;
        margin-left: 0 !important;
    }

    .navbar-dark .navbar-nav .nav-link:hover,
    .navbar-dark .navbar-nav .nav-link.active,
    .sticky-top.navbar-dark .navbar-nav .nav-link:hover,
    .sticky-top.navbar-dark .navbar-nav .nav-link.active {
        background: rgba(10, 25, 47, 0.05);
        color: var(--primary) !important;
        transform: translateX(8px);
        border-bottom-color: transparent;
    }
}

@media (max-width: 576px) {
    .navbar-dark {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .navbar-dark .navbar-brand h1 {
        font-size: 18px !important;
    }

    .navbar-dark .navbar-brand img {
        height: 35px !important;
    }

    /* Domain search responsiveness */
    #domainSearchForm {
        width: 100%;
        padding: 0 15px;
    }

    #domainInput {
        width: 100% !important;
        max-width: 100% !important;
    }

    #domainSubmitBtn {
        width: 100% !important;
    }

    /* Footer layout adjust */
    .footer-about {
        margin-bottom: 30px !important;
    }
}

/* Global Color Overrides for Premium Aesthetic */
.text-primary {
    color: var(--primary) !important;
}

.bg-primary {
    background: var(--gradient-primary) !important;
}

.text-secondary {
    color: var(--secondary) !important;
}

.bg-secondary {
    background: var(--secondary) !important;
}

.text-dark {
    color: var(--dark) !important;
}

.bg-dark {
    background: var(--gradient-dark) !important;
}

.border-primary {
    border-color: var(--primary) !important;
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    color: #fff;
    background: var(--gradient-primary);
    border-color: transparent;
}

/* Projects Section Styles */
.project-item {
    transition: 0.5s;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.project-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
}

.project-overlay {
    background: var(--gradient-primary) !important;
}

.project-item:hover .project-overlay {
    opacity: 0.85 !important;
}

.project-img img {
    transition: 0.5s;
}

.project-item:hover .project-img img {
    transform: scale(1.1);
}

/* Animations & Transitions */
.transition-hover {
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

.transition-hover:hover {
    transform: translateY(-12px) !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15) !important;
    z-index: 2;
}

/* Beautiful Dark Mode Styles */
body.dark-mode {
    background-color: #0B1120 !important;
    color: #94A3B8 !important;
    transition: background-color 0.4s ease, color 0.4s ease;
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6 {
    color: #F8FAFC !important;
}

body.dark-mode .bg-light,
body.dark-mode .bg-white {
    background-color: #1E293B !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
}

body.dark-mode .text-dark {
    color: #F8FAFC !important;
}

body.dark-mode .text-primary {
    color: var(--secondary) !important;
}

body.dark-mode .text-muted {
    color: #94A3B8 !important;
}

/* Button visibility in Dark Mode */
body.dark-mode .btn-primary {
    background-color: var(--secondary) !important;
    border-color: var(--secondary) !important;
    color: #FFFFFF !important;
}

body.dark-mode .btn-primary:hover {
    background-color: #d15f0b !important;
    border-color: #d15f0b !important;
}

body.dark-mode .btn-outline-primary {
    color: var(--secondary) !important;
    border-color: var(--secondary) !important;
}

body.dark-mode .btn-outline-primary:hover {
    background-color: var(--secondary) !important;
    color: #FFFFFF !important;
}

body.dark-mode .project-item,
body.dark-mode .service-item,
body.dark-mode .pricing-item,
body.dark-mode .team-item,
body.dark-mode .testimonial-item,
body.dark-mode .bg-white .owl-carousel {
    background-color: #1E293B !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
}

body.dark-mode .form-control,
body.dark-mode .form-select {
    background-color: #0F172A !important;
    color: #F8FAFC !important;
    border: 1px solid #334155 !important;
}

body.dark-mode .form-control::placeholder {
    color: #64748B !important;
}

body.dark-mode .p-4.bg-white,
body.dark-mode .bg-white.rounded {
    background-color: #1E293B !important;
}

body.dark-mode #domainSearchForm .form-control {
    background-color: #1E293B !important;
    color: #F8FAFC !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
}

body.dark-mode .container-fluid[style*="background: #fdfbf7;"] {
    background: #0B1120 !important;
}

/* Navbar Dark Mode Adjustments */
body.dark-mode .sticky-top.navbar-dark {
    background: #0F172A !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
}

body.dark-mode .sticky-top.navbar-dark .navbar-nav .nav-link {
    color: #F8FAFC !important;
}

body.dark-mode .sticky-top.navbar-dark .navbar-nav .nav-link:hover,
body.dark-mode .sticky-top.navbar-dark .navbar-nav .nav-link.active {
    color: var(--primary) !important;
}

body.dark-mode #darkModeToggle {
    border-color: #F8FAFC !important;
    color: #F8FAFC !important;
}

body.dark-mode #darkModeToggle:hover {
    background-color: #F8FAFC !important;
    color: #0F172A !important;
}

/* Dark mode logo visibility */
body.dark-mode img.brand-logo {
    filter: brightness(0) invert(1);
}

/* Dark Mode Hero Section */
body.dark-mode .hero-header {
    background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.08), transparent 50%), radial-gradient(circle at bottom left, rgba(10, 25, 47, 0.5), transparent 50%), #0B1120 !important;
}

body.dark-mode .hero-header .hero-title {
    color: #F8FAFC !important;
}

body.dark-mode .hero-header .hero-desc {
    color: #94A3B8 !important;
}

body.dark-mode .hero-header .hero-mockup {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

body.dark-mode .navbar-dark .navbar-brand h1 {
    color: #FFFFFF !important;
}

body.dark-mode .navbar-dark .navbar-nav .nav-link {
    color: #F8FAFC !important;
}

body.dark-mode .navbar-dark .navbar-toggler {
    color: var(--secondary) !important;
    border-color: var(--secondary) !important;
}

body.dark-mode .navbar-dark .navbar-nav .nav-link.active,
body.dark-mode .navbar-dark .navbar-nav .nav-link:hover {
    color: var(--secondary) !important;
}

/* Mobile Responsive Dark Mode Links Fix */
@media (max-width: 991.98px) {

    body.dark-mode .sticky-top.navbar-dark .navbar-collapse,
    body.dark-mode .navbar-dark .navbar-collapse {
        background: #0F172A !important;
        border-color: rgba(255, 255, 255, 0.1) !important;
    }

    body.dark-mode .sticky-top.navbar-dark .navbar-nav .nav-link,
    body.dark-mode .navbar-dark .navbar-nav .nav-link {
        color: #F8FAFC !important;
    }

    body.dark-mode .sticky-top.navbar-dark .navbar-nav .nav-link:hover,
    body.dark-mode .sticky-top.navbar-dark .navbar-nav .nav-link.active,
    body.dark-mode .navbar-dark .navbar-nav .nav-link:hover,
    body.dark-mode .navbar-dark .navbar-nav .nav-link.active {
        color: var(--secondary) !important;
    }
}

/* ===== Contact Section — Light Mode Base ===== */
#contact-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.contact-card {
    background: #ffffff;
    box-shadow: 0 8px 30px rgba(10, 25, 47, 0.08);
    transition: background 0.3s, box-shadow 0.3s;
}

.contact-form-box {
    background: #ffffff;
    box-shadow: 0 8px 40px rgba(10, 25, 47, 0.10);
    transition: background 0.3s, box-shadow 0.3s;
}

.contact-input {
    background: #f8fafc !important;
    transition: background 0.3s, color 0.3s;
}

/* ===== Contact Section — Dark Mode ===== */
body.dark-mode #contact-section {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%) !important;
}

body.dark-mode #contact-section h1,
body.dark-mode #contact-section h4,
body.dark-mode #contact-section h5 {
    color: #F8FAFC !important;
}

body.dark-mode #contact-section p,
body.dark-mode #contact-section .text-muted,
body.dark-mode #contact-section small {
    color: #94A3B8 !important;
}

body.dark-mode .contact-card {
    background: #1E293B !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35) !important;
}

body.dark-mode .contact-form-box {
    background: #1E293B !important;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35) !important;
}

body.dark-mode .contact-input {
    background: #0F172A !important;
    color: #F8FAFC !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body.dark-mode .contact-input::placeholder {
    color: #64748B !important;
}

body.dark-mode .contact-form-box .form-floating label {
    color: #64748B !important;
}

body.dark-mode .contact-form-box .mt-4.pt-4 {
    border-color: rgba(255, 255, 255, 0.1) !important;
}