:root {
    --primary-color: #92278f;
    --primary-hover: #0F0D1D;
    --dark-bg: #1a081a;
    --light-bg: #f8f9fa;
}

body {
    font-family: 'Inter', sans-serif;
    color: #000;
    overflow-x: hidden;
}

html,
body {
    width: 100%;
    overflow-x: hidden;
}

.row {
    margin-left: 0;
    margin-right: 0;
}


/* Navbar */
.navbar {
    transition: all 0.3s ease;
    padding: 20px 0;
    background-color: #fff;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    padding: 12px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.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(0,0,0,0.8)' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.active {
    background: var(--primary-color) !important;
    color: #fff !important;
}



.nav-link {
    font-weight: 500;
    color: #444;
    margin: 0 15px;
    transition: color 0.3s;
    font-size: 0.9rem !important;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}



/* .btn-primary-nexus {
    background-color: var(--primary-color);
    border: none;
    color: white;
    padding: 12px 31px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 13px;
}

.btn-primary-nexus:hover {
    background-color: var(--primary-hover);
    color: white;
    box-shadow: 0 12px 30px rgba(145, 39, 142, 0.35);
} */
.btn-primary-nexus {
     background-color: var(--primary-color);
    border: none;
    color: white;
    padding: 12px 31px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 13px;
}

.btn-primary-nexus:hover {
    background-color: var(--primary-hover);
    color: white;
    box-shadow: 0 12px 30px rgba(145, 39, 142, 0.35);
}

.btn-xl {
    padding: 16px 48px !important;
    font-size: 20px !important;

}

#home_buttons
{
    margin-top: 23px !important;
}

/* Stats */
.stats-section {
    background: var(--dark-bg);
    padding: 80px 0;
    color: white;
}

.stat-card h2 {
    font-size: 56px !important;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0;
}

.stat-card p {
    color: #888;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 12.8px !important;
    font-weight: 600;
}

/* Services */
.service-card {
    background: white;
    padding: 50px 40px;
    border-radius: 25px;
    border: 1px solid #eee;
    transition: all 0.3s ease;
    height: 100%;
}

.service-card:hover {
    border-color: rgba(145, 39, 142, 0.3);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: #fdf2ff;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    margin-bottom: 25px;
    transition: all 0.3s;
}

.service-card:hover .service-icon {
    background: var(--primary-color);
    color: white;
}

/* Portfolio */
.portfolio-card {
    position: relative;
    border-radius: 25px;
    overflow: hidden;
    aspect-ratio: 4/3;
    margin-bottom: 30px;
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
    opacity: 0;
    transition: opacity 0.4s;
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-card:hover .portfolio-img {
    transform: scale(1.1);
}

/* Blogs */
.blog-card {
    background: white;
    border-radius: 25px;
    overflow: hidden;
    border: 1px solid #eee;
    height: 100%;
    transition: box-shadow 0.3s;
}

.blog-card:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.blog-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.blog-content {
    padding: 30px;
}

/* Footer */
footer {
    background: var(--dark-bg);
    color: white;
    padding: 100px 0 40px;
}

.footer-link {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
    display: block;
    margin-bottom: 12px;
}

.footer-link:hover {
    color: var(--primary-color);
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 10px;
    transition: background 0.3s;
    color: white;
    text-decoration: none;
}

.social-icon:hover {
    background: var(--primary-color);
}

@media (max-width: 576px) {



    /* Navbar */
    .navbar {
        padding: 12px 0;
    }

    .navbar-brand span {
        font-size: 1.4rem;
    }

    .nav-link {
        margin: 10px 0;
        text-align: center;
    }

    .navbar-collapse {
        background: white;
        padding: 20px;
        border-radius: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    }

    /* Hero */
    .hero {
        padding: 120px 0 60px;
        text-align: center;
    }


    .hero p {
        font-size: 1rem;
    }

    .hero .d-flex {
        justify-content: center;
    }

    .hero-img {
        margin-top: 30px;
        transform: rotate(0deg);
    }

    /* Stats */
    .stat-card h2 {
        font-size: 2.2rem;
    }

    .stat-card p {
        font-size: 0.7rem;
        letter-spacing: 1px;
    }

    /* Services */
    .service-card {
        padding: 30px 25px;
        text-align: center;
    }

    .service-icon {
        margin-left: auto;
        margin-right: auto;
    }

    /* Portfolio */
    .portfolio-overlay {
        padding: 20px;
    }

    .portfolio-overlay h4 {
        font-size: 1.1rem;
    }

    /* Blogs */
    .blog-img {
        height: 200px;
    }

    .blog-content {
        padding: 20px;
    }

    /* Footer */
    footer {
        padding: 60px 0 30px;
        text-align: center;
    }

    footer .social-icon {
        margin-bottom: 10px;
    }

    footer .col-lg-4,
    footer .col-lg-2 {
        margin-bottom: 30px;
    }

    /* Newsletter */
    .input-group {
        flex-direction: column;
    }

    .input-group input {
        border-radius: 50px;
        margin-bottom: 10px;
    }

    .input-group button {
        border-radius: 50px;
        width: 100%;
    }
}

/* Navbar Logo */
.navbar-logo {
    height: 42px;
    width: auto;
    transition: all 0.3s ease;
}

/* On scroll (smaller logo) */
.navbar.scrolled .navbar-logo {
    height: 34px;
}

/* Mobile */
@media (max-width: 576px) {
    .navbar-logo {
        height: 36px;
    }
}

/* Footer Logo */
.footer-logo {
    height: 44px;
    width: auto;
}

/* Mobile */
@media (max-width: 576px) {
    .footer-logo {
        height: 36px;
    }
}

/* Footer Contact List */
.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    color: #fff;
    font-size: 0.95rem;
}

.footer-contact-list i {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 10px;
    transition: background 0.3s;
    color: white;
    text-decoration: none;
}

.footer-contact-list li:hover i {
    background: var(--primary-color);
}


/* Mobile center */
@media (max-width: 576px) {
    .footer-contact-list li {
        justify-content: center;
    }
}

.counter {
    color: var(--primary-color);
}

@media (max-width: 576px) {

    footer {
        text-align: center;
    }

    footer .row>div {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Footer links center */
    .footer-link {
        text-align: center;
    }

    /* Contact list fully center */
    .footer-contact-list {
        align-items: center;
    }

    .footer-contact-list li {
        justify-content: center;
        text-align: center;
    }

    /* Social icons center */
    footer .social-icon {
        margin: 6px;
    }

    /* Footer text spacing */
    footer p {
        text-align: center;
    }

    nav#mainNav {
        text-align-last: center;
    }
}

.hero-img-wrapper {
    max-width: 100%;
    overflow: hidden;
}

.hero-img {
    width: 100%;
    height: auto;
}

section {
    overflow-x: hidden;
}

/* Card reset */
.service-card-img {
    padding: 0;
    overflow: hidden;
}

/* Image container */
.service-img {
    position: relative;
    height: 220px;
    overflow: hidden;
}

/* Image */
.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

/* ICON ON IMAGE */
.overlay-icon {
    position: absolute;
    bottom: 20px;
    /* left: 20px; */
    width: 60px;
    height: 60px;
    right: 17px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 30px rgba(145, 39, 142, 0.35);
    transition: all 0.3s ease;
}

/* Content */
.service-content {
    padding: 35px 30px 40px;
}

/* Hover effects */
.service-card-img:hover .service-img img {
    transform: scale(1.1);
}

.service-card-img:hover .overlay-icon {
    transform: translateY(-6px);
    background: var(--primary-hover);
}

/* Navbar ke liye overflow allow */
.navbar,
.navbar .container {
    overflow: visible !important;
}


/* RESPONSIVE */
@media (max-width: 576px) {
    .service-img {
        height: 180px;
    }

    .navbar .nav-link {
        font-size: 1rem;
        padding: 10px 16px;
    }

    .overlay-icon {
        left: 50%;
        bottom: 15px;
        transform: translateX(-50%);
    }

    .service-content {
        text-align: center;
    }
}

/* NAVBAR LINKS */
.navbar .nav-link {
    font-size: 1.05rem;
    /* thora bara font */
    font-weight: 500;
    padding: 10px 22px;
    /* gap increase */
    line-height: 1.4;
    border-radius: 999px;
}

/* Hover state – size SAME rahe */
.nav-item:hover .nav-link {
    background: var(--primary-color);
    color: #fff !important;
    padding: 8px 22px;
    /* gap increase */
}

.navbar {
    padding: 22px 0;
    /* upar neeche gap */
}

@media (max-width: 991px) {

    .dropdown-submenu>.dropdown-menu {
        display: none;
        margin-left: 15px;
    }

    .dropdown-submenu>.dropdown-menu.show {
        display: block;
    }
}

.dropdown-item {
    font-size: 1.4rem;
}

.dropdown-item {
    line-height: 3;
    align-items: anchor-center;
}

.dropdown-item i {
    font-size: 14px;
    margin-left: 10px;
}


/* Hero Section */
.hero {
    padding: 160px 0 100px;
    background: radial-gradient(circle at top right, rgba(145, 39, 142, 0.05), transparent);
    position: relative;
}

.hero h1 {
    font-size: 64px !important;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
}

.text-purple {
    color: var(--primary-color);
}

.hero-img-wrapper {
    position: relative;
    z-index: 1;
}

.hero-img {
    border-radius: 30px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    transform: rotate(2deg);
    transition: transform 0.5s ease;
}

.hero-img:hover {
    transform: rotate(0deg);
}
.hero .banner_text {
       font-size: 20px !important;
    font-weight: 300;
    color: #000;
}
.blog-content p.description {
    display: -webkit-box;
    -webkit-line-clamp: 5 !important; 
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mobile-dropdown-btn[aria-expanded="true"] i,
.mobile-submenu-btn[aria-expanded="true"] i {
    transform: rotate(180deg);
}
.mobile-dropdown-btn i,
.mobile-submenu-btn i {
    transition: transform 0.3s ease;
}

.mobile-dropdown-btn[aria-expanded="true"] i,
.mobile-submenu-btn[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.offcanvas.offcanvas-start {
    top: 0;
    left: 0;
    width: var(--bs-offcanvas-width);
    border-right: var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);
    transform: translate(-100%);
    width: 76%;
}

.mobile-dropdown-btn[aria-expanded="true"] i,
.mobile-submenu-btn[aria-expanded="true"] i {
    transform: rotate(180deg);
}
.mobile-dropdown-btn i,
.mobile-submenu-btn i {
    transition: transform 0.3s ease;
}

.mobile-dropdown-btn[aria-expanded="true"] i,
.mobile-submenu-btn[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.offcanvas.offcanvas-start {
    top: 0;
    left: 0;
    width: var(--bs-offcanvas-width);
    border-right: var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);
    transform: translate(-100%);
    width: 76%;
}
