/* ===================================
    Crafto - Web agency
====================================== */
/* font */
@import url('../../css2-3');
/* variable */
:root {
    --base-color: #21f1a8;
    --medium-gray:#6F7071;
    --dark-gray:#171717;
    --alt-font: 'Inter', sans-serif;
    --primary-font: 'Inter', sans-serif;
}
body {
    font-size: 17px;
    line-height: 32px;
}
.top-space-margin {
    margin-top: 120px;
}
/* header */
.navbar .navbar-nav .nav-link {
    font-weight: 500;
    font-size: 18px;
}
.mega-dropdown {
    position: relative;
}
.mega-dropdown-link {
    position: relative;
    z-index: 2;
}
.mega-dropdown-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-left: 8px;
    padding: 0;
    border: 1px solid rgba(28, 29, 31, 0.12);
    border-radius: 999px;
    background-color: var(--white);
    color: var(--dark-gray);
    font: inherit;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.mega-dropdown-toggle:hover {
    transform: translateY(-1px);
    border-color: rgba(28, 29, 31, 0.2);
}
.mega-dropdown-panel {
    position: absolute;
    left: 50%;
    top: calc(100% + 14px);
    width: min(1120px, calc(100vw - 32px));
    transform: translate(-50%, 8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 1050;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}
.mega-dropdown.is-open .mega-dropdown-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
}
.mega-dropdown-shell {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid rgba(28, 29, 31, 0.08);
    border-radius: 24px;
    background: var(--white);
    box-shadow: 0 24px 60px rgba(28, 29, 31, 0.14);
}
.mega-dropdown-shell-single {
    grid-template-columns: 1fr;
}
.mega-dropdown-sidebar {
    padding: 24px;
    border-right: 1px solid rgba(28, 29, 31, 0.08);
    background: linear-gradient(180deg, rgba(190, 255, 1, 0.12), rgba(255, 255, 255, 0));
}
.mega-category {
    display: flex;
    width: 100%;
    margin: 0;
    padding: 14px 16px;
    border: 1px solid transparent;
    border-radius: 18px;
    background: transparent;
    color: var(--dark-gray);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.mega-category + .mega-category {
    margin-top: 8px;
}
.mega-category:hover,
.mega-category.is-active {
    background-color: rgba(190, 255, 1, 0.16);
    border-color: rgba(190, 255, 1, 0.34);
    box-shadow: 0 10px 24px rgba(28, 29, 31, 0.06);
    transform: translateX(4px);
}
.mega-category-title {
    display: block;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 600;
    letter-spacing: -0.01em;
}
.mega-dropdown-content {
    padding: 24px;
}
.mega-panel {
    display: none;
}
.mega-panel.is-active {
    display: block;
}
.mega-panel-header {
    margin-bottom: 14px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--medium-gray);
}
.mega-service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px 10px;
}
.mega-service-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 14px;
    color: var(--dark-gray);
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.mega-service-item:hover {
    background-color: rgba(28, 29, 31, 0.04);
    color: var(--dark-gray);
    transform: translateX(3px);
}
.mega-service-bullet {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    margin-top: 8px;
    border-radius: 999px;
    background-color: var(--base-color);
    box-shadow: 0 0 0 4px rgba(190, 255, 1, 0.18);
}
header .navbar-brand img {
    max-height:56px;
}
header .btn.btn-switch-text.btn-medium > span {
    padding: 11px 30px;
}
.navbar .navbar-nav .dropdown.dropdown-with-icon .dropdown-menu li a img {
    border-radius: 0;
}
/* btn  */
.btn.btn-base-color {
    color: var(--dark-gray);
}
.btn.btn-box-shadow.btn-base-color:hover, .btn.btn-box-shadow.btn-base-color:active {
    color: var(--dark-gray);
}
/* letter spacing */
.bg-base-color-transparent {
    background-color: rgba(204, 255, 0,0.9);
}
/* banner title */
.banner-title {
    font-size: 650px;
    word-break: normal;
    letter-spacing: -40px;
}
/* letter spacing */
.ls-minus-20px {
    letter-spacing: -20px;
}
.ls-minus-13px {
    letter-spacing: -13px;
}
.mt-minus-12 {
    margin-top: -12%;
}
/* word break normal */
.word-break-normal {
    word-break: normal;
}
/* bg color */
.bg-sherpa-blue {
    background-color: #333436;
}
/* page title */
.page-title-extra-large h1 {
    font-size: 5rem;
    line-height: 5rem;
}
/* team style */
.team-style-05 img {
    filter: grayscale(100%);
    -webkit-filter: grayscale(100%);
    -moz-filter: grayscale(100%);
}
.team-style-05:hover img {
    filter: grayscale(0%);
    -webkit-filter: grayscale(0%);
    -moz-filter: grayscale(0%);
}
.team-style-08 figure img {
    filter: grayscale(100%);
    -webkit-filter: grayscale(100%);
    -moz-filter: grayscale(100%);
}
.team-style-08:hover figure img {
    filter: grayscale(0%);
    -webkit-filter: grayscale(0%);
    -moz-filter: grayscale(0%);
}
.team-style-08 figure figcaption .social-icon a {
    background-color: var(--base-color);
}
.team-style-08 figure figcaption .social-icon a:hover {
    color: var(--dark-gray);
}
/* blog comment */
.blog-classic .card .blog-image img {
    filter: grayscale(100%);
    -webkit-filter: grayscale(100%);
    -moz-filter: grayscale(100%);
}
.blog-comment li .btn-reply:hover {
    color: var(--text-dark-gray);
}
/* tag */
.tag-cloud a {
    background-color: var(--white);
}
/* portfolio-image */
.portfolio-simple .grid-item .portfolio-image img {
    filter: grayscale(100%);
    -webkit-filter: grayscale(100%);
    -moz-filter: grayscale(100%);
}
.portfolio-simple .portfolio-box:hover .portfolio-image img {
    opacity: 1;
    filter: grayscale(0%);
    -webkit-filter: grayscale(0%);
    -moz-filter: grayscale(0%);
}
/* popular post sidebar */
.popular-post-sidebar li figure {
    width: 190px;
    height: auto;
}
.popular-post-sidebar li .media-body {
    padding-left: 40px;
}
/* social icon style 06 */
.social-icon-style-06 li {
    position: relative;
}
.social-icon-style-06 li:before {
    width: 6px;
    height: 6px;
    border-radius: 100%;
    background-color: var(--medium-gray);
    content: "";
    display: block;
    position: absolute;
    top: 50%;
    right: -15px;
    transform: translateY(-50%);
    opacity: .5;
}
.social-icon-style-06 li:last-child:before {
    display: none;
}
/* footer */
footer .footer-logo img {
    max-height: 56px;
}
footer .nav-link {
    color:  var(--dark-gray);
}
.footer-navbar li a:hover {
    color: var(--dark-gray);
}

/* media query responsive */
@media (min-width: 992px) {
    .navbar .navbar-nav .dropdown.dropdown-with-icon .dropdown-menu {
        padding: 15px 25px;
    }
}
@media (min-width: 768px) {
    /* heading tag */
    h1 {
        font-size: 5rem;
        line-height: 5rem;
    }
    h2 {
        font-size: 3.75rem;
        line-height: 3.75rem;
    }
    h3 {
        font-size: 3.125rem;
        line-height: 3.125rem;
    }
}
@media (max-width: 1399px) {
    .banner-title {
        font-size: 500px;
    }
    header .btn.btn-switch-text.btn-medium > span {
        padding: 11px 22px;
    }
}
@media (max-width: 1199px) {
    .banner-title {
        font-size: 380px;
        letter-spacing: -25px;
    }
    .ls-minus-20px {
        letter-spacing: -15px;
    }
    header .btn.btn-switch-text.btn-medium > span {
        padding: 6px 11px;
    }
    .navbar .navbar-nav .nav-link {
        padding: 10px 12px;
    }
    .mega-service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    footer .nav-link {
        padding: 2px 8px;
    }
}
@media (max-width: 991px) {
    header .container-fluid {
        align-items: center;
    }
    header .container-fluid > .col-auto {
        width: auto;
    }
    header .menu-order {
        flex: 0 0 auto;
        margin-left: auto;
    }
    header .navbar-brand {
        max-width: calc(100vw - 120px);
    }
    header .navbar-brand img {
        max-height: 44px;
    }
    header .header-icon .header-button {
        display: none;
    }
    .banner-title {
        font-size: 270px;
        letter-spacing: -15px;
    }
    .ls-minus-20px {
        letter-spacing: -10px;
    }
    .top-space-margin {
        margin-top: 100px;
    }
    
    /* --- BULLETPROOF MEGA DROPDOWN MOBILE FIX --- */
    .navbar-nav .mega-dropdown {
        display: flex !important;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        position: static !important; 
    }
    
    .navbar-nav .mega-dropdown .mega-dropdown-link {
        flex: 1;
        max-width: calc(100% - 60px); 
        padding-right: 10px;
    }

    /* Keep the button isolated and clickable */
    .navbar-nav .mega-dropdown .mega-dropdown-toggle {
        display: flex !important;
        flex: 0 0 36px !important;
        height: 36px !important;
        align-items: center;
        justify-content: center;
        margin-left: auto;
        margin-right: 15px; 
        border: 1px solid rgba(28, 29, 31, 0.15);
        border-radius: 6px;
        background-color: #f8f9fa;
        color: #1C1D1F;
        cursor: pointer;
        position: relative;
        z-index: 9999; /* Block absolutely nothing from covering this */
    }

    /* By default, hide the panel on mobile */
    .navbar-nav .mega-dropdown .mega-dropdown-panel {
        display: none; /* Crucial: This hides it initially */
        flex: 0 0 100%;
        width: 100% !important;
        position: relative !important;
        left: 0 !important;
        right: 0 !important;
        margin-top: 12px;
        transform: none !important;
        box-shadow: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    /* When the Javascript triggers this class, it opens */
    .navbar-nav .mega-dropdown.is-open .mega-dropdown-panel {
        display: block !important;
    }

    .mega-dropdown-shell {
        display: flex !important;
        flex-direction: column !important;
        width: 100%;
        border-radius: 20px;
    }
    .mega-dropdown-sidebar {
        width: 100%;
        padding: 16px;
        border-right: 0;
        border-bottom: 1px solid rgba(28, 29, 31, 0.08);
    }
    .mega-category {
        padding: 12px 14px;
        width: 100%;
        white-space: normal !important; 
    }
    .mega-dropdown-content {
        width: 100%;
        padding: 16px;
    }
    .mega-service-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    header .btn.btn-switch-text.btn-medium > span {
        padding: 9px 24px;
    }
}
@media (max-width: 767px) {
    .banner-title {
        font-size: 200px;
        letter-spacing: -15px;
    }
    .process-step-style-10.hover-box:hover .hover-content {
        bottom: 0;
    }
    .ls-minus-20px {
        letter-spacing: -4px;
    }
    .ls-minus-13px {
        letter-spacing: -5px;
    }
}
@media (max-width: 575px) {
    .banner-title {
        font-size: 110px;
        letter-spacing: -3px;
    }
    .popular-post-sidebar li figure {
        width: 100%;
    }
    .popular-post-sidebar li .media-body {
        padding-left: 0;
        padding-top: 25px;
    }
}