:root {
    --bg-light: #f7f8fc;
    --brand: #6c5ce7;
    --brand-2: #9775fa;
    --text: #1f2937;
    --muted: #6b7280;
    --card: #ffffff;
    --shadow: 0 10px 30px rgba(17, 24, 39, .08);
    --radius: 1.25rem;

    --card-radius: 1rem;
    --line: #cfd8dc;
    --dot: var(--brand);
    --soft-shadow: 0 10px 25px rgba(0, 0, 0, .06);
    --soft-shadow-lg: 0 18px 40px rgba(0, 0, 0, .12);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial;
    color: var(--text);
}

body {
    background: var(--bg-light);
}

.btn-xs {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    line-height: 1.5;
    border-radius: 0.2rem;
}

.container-section {
    padding-top: 80px;
    padding-bottom: 80px;
}

/* Navbar */
.navbar {
    box-shadow: var(--shadow);
    background: #fff;
}

.navbar .navbar-brand {
    font-weight: 700;
    letter-spacing: .2px;
}

.nav-btn {
    border-radius: 999px;
    padding: .45rem 1rem;
}

.ani-item a {
    text-decoration: none;
    position: relative;
}

.ani-item a::before,
.ani-item a::after {
    content: "";
    position: absolute;
    display: block;
    border: 0 solid transparent;
    width: 0%;
    height: 0%;
    transition: all 0.5s ease;
}

.ani-item a::after {
    top: 0;
    left: 0;
    border-top: 2px solid transparent;
    border-left: 2px solid transparent;
}

.ani-item a::before {
    right: 0;
    bottom: 0;
    border-bottom: 2px solid transparent;
    border-right: 2px solid transparent;
}

.ani-item a:hover::before,
.ani-item a:hover::after {
    width: 100%;
    height: 100%;
    border-color: var(--brand);
    border-radius: 5px;
}

.ani-item a:hover {
    color: var(--brand);
}

/* Helpers */
.btn-brand {
    background: var(--brand);
    color: #fff;
    border: none;
}

.btn-brand:hover {
    background: #584adf;
    color: #fff;
}

.btn-soft {
    background: #eef2ff;
    color: var(--brand);
    border: none;
}

.section-title {
    font-weight: 700;
    margin-bottom: .25rem;
}

.section-subtitle {
    color: var(--muted);
    max-width: 640px;
    margin: 0 auto 2rem;
}

/* Hero */
.hero-card {
    background: radial-gradient(1200px 600px at 90% -20%, #ffe8f3, transparent 60%),
        radial-gradient(1000px 500px at -10% 20%, #e9f1ff, transparent 60%),
        linear-gradient(135deg, #ffffff, #ffffff);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem 2rem;
}

.avatar-wrap {
    position: relative;
}

.avatar-wrap::after {
    content: "";
    position: absolute;
    inset: -10px;
    z-index: 0;
    border-radius: calc(var(--radius) + 10px);
    background: linear-gradient(135deg, #f1e7ff, #e6fbff, #fff5e8);
    filter: blur(20px);
}

.avatar-card {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden; 
    cursor: pointer;
}

.avatar-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.overlay-color,
.avatar-card p,
.icons {
    position: absolute;
    opacity: 0;
    transition: all .5s ease;
}

.overlay-color {
    bottom: 0;
    left: 0;
    width: 100%;
    height: 45%;
    background: var(--brand);
    clip-path: polygon(0 0, 100% 80%, 100% 100%, 0 100%);
    transform: translateY(100%);
}

.avatar-card p {
    bottom: 80px;
    left: 20px;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    transform: translateX(-50px);
}

.icons {
    bottom: 40px;
    left: 20px;
    display: flex;
    gap: 10px;
    font-size: 20px;
    color: #fff;
    font-weight: bold;
    transform: translateY(40px);
}

.icons i {
    transition: .3s;
    cursor: pointer;
}

/* Tooltip Main Style Start */
.custom-tooltip {
    position: relative;
    display: inline-block;
    margin: 3px;
    transition: transform 0.2s ease-in-out;
}

.custom-tooltip:hover {
    transform: scale(1.15);
}

.custom-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    top: calc(100% + 7px); 
    left: 80%;
    transform: translateX(-50%);
    background: #e83e8c; 
    color: #ffffff; 
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 5px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.custom-tooltip:hover::after {
    opacity: 1;
    top: calc(100% + 7px); 
}

/* Tooltip Main Style End */

/* Hover effects */
.avatar-card:hover img {
    transform: scale(1.05);
}

.avatar-card:hover .overlay-color {
    opacity: .9;
    transform: translateY(0);
}

.avatar-card:hover p {
    opacity: 1;
    transform: translateX(0);
}

.avatar-card:hover .icons {
    opacity: 1;
    transform: translateY(0);
}

.stats-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    background: #f6ebfe;
    padding: .75rem 1rem;
    min-width: 25%;
}

.stats-pill span {
    display: block;
    line-height: 1.5;
}

/* Cards */
.soft-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.soft-card .icon {
    width: 42px;
    height: 42px;
    border-radius: .75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef2ff;
    color: var(--brand);
}

.card-link {
    text-decoration: none;
    color: var(--text);
}

.card-link:hover {
    color: var(--brand);
}

/* Work process */
.work-step {
    transition: all 0.3s ease-in-out;
}

.work-step:hover {
    background-color: var(--brand);
    transform: translateY(-8px);
    color: #fff;
}

.work-step:hover h6,
.work-step:hover p {
    color: #fff !important;
}

.work-step h6 {
    margin: .5rem 0 .25rem;
}

.work-step p {
    color: var(--muted);
    font-size: .925rem;
}

/* Portfolio */
.portfolio .item {
    border: 1px solid #eef2ff;
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow);
}

.portfolio .item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.portfolio .meta {
    padding: 1rem;
}

.portfolio .meta .badge {
    background: #eef2ff;
    color: var(--brand);
}

/* CTA dark */
.cta {
    background: #0f172a;
    border-radius: var(--radius);
    color: #fff;
    box-shadow: var(--shadow);
}

.cta .btn {
    border-radius: 999px;
}

/* Blog */
.blog .card {
    border: none;
    box-shadow: var(--shadow);
    border-radius: var(--radius);
}

.blog .card-img-top {
    height: 150px;
    object-fit: cover;
}

/* Services */
.service-card {
    border: none;
    background: #fff;
    border-left: 4px solid var(--brand-2);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.service-card:hover {
    /* border-left-color: var(--brand); */
    transform: translateY(-8px);
}

.services-box {
    background-color: #fff;
    color: #000;
    padding: 30px 20px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease-in-out;
    height: 100%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.services-box:hover {
    background-color: var(--brand);
    color: #fff;
    transform: translateY(-8px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.services-box h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.services-box p {
    margin: 0;
    font-size: 14px;
    text-align: center;
}

.services-box i {
    background-color: var(--brand);
    color: #fff;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    margin-bottom: 16px;
    font-size: 24px;
    transition: 0.3s ease-in-out;
}

.services-box:hover i {
    background-color: #fff;
    color: #222222;
}

/* Clients */
.happy-clients {
    background-color: #f8f9fa;
}

.client-logo {
    height: 80px;
    padding: 10px;
    transition: all 0.3s ease-in-out;
}

.client-logo:hover {
    opacity: 1;
    transform: scale(1.1);
}


/* Testimonial */
.testimonial {
    text-align: center;
}

.testimonial .avatar {
    width: 70px !important;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--shadow);
}

/* Contact */
.contact .info {
    background: #fff;
    box-shadow: var(--shadow);
    border-radius: var(--radius);
}

.contact form {
    background: #fff;
    box-shadow: var(--shadow);
    border-radius: var(--radius);
}

/* Footer */
footer {
    color: #94a3b8;
}

.text-justify {
    text-align: justify !important;
}

.bg-purple {
    background-color: #6f42c1;
}

.bg-pink {
    background-color: #e83e8c;
}

#captchaQuestion {
    font-size: 18px;
    color: #333;
}

/* Education css */
.timeline-title {
    letter-spacing: .06em;
    color: var(--brand);
    font-weight: 800;
}
.timeline {
    position: relative;
    margin-left: 30px;
}

.timeline:before {
    content: "";
    position: absolute;
    left: 8px;
    top: .25rem;
    bottom: .25rem;
    width: 2px;
    background: linear-gradient(180deg, var(--brand) 0%, var(--line) 10%, var(--line) 90%, var(--brand) 100%);
    opacity: .6;
}

.timeline-item {
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 1.25rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item:before {
    content: "";
    position: absolute;
    left: -1px;
    top: 1.25rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--dot);
    border: 3px solid #fff;
    outline: 2px solid var(--brand-2);
    box-shadow: 0 0 0 6px var(--brand-2);
}

.t-card {
    border: 1px solid #e9ecef;
    border-radius: var(--card-radius);
    background: #fff;
    box-shadow: var(--soft-shadow);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.t-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--soft-shadow-lg);
    border-color: var(--brand-2)
}

.t-meta {
    font-weight: 700;
    letter-spacing: .03em;
    color: var(--brand-2)
}

.t-title {
    font-weight: 800;
    margin: .25rem 0 .5rem;
}


.badge-soft {
    background: rgba(22, 160, 133, .08);
    color: #000;
    border: 1px solid rgba(22, 160, 133, .15);
    font-weight: 700;
}

/* contact css */
.icon-box {
    width: 35px;
    height: 35px;
    background-color: #0d6efd;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 15px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
}

.map-container iframe {
    border-radius: 12px;
}

.icon-box:hover {
    background-color: #fff;
    color: #0d6efd;
    border: 1px solid #0d6efd;
}

.text-brand {
    color: #0d6efd;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    
    .t-card {
        background: #0b1220;
        border-color: #1e293b;
    }

    .timeline:before {
        opacity: .3;
    }

    .timeline-item:before {
        border-color: #0b1220;
    }
}

@media (min-width: 992px) {
    .hero-card {
        padding: 3rem;
    }
}