﻿/*====================================================
                KINGKROWN DIGITAL
                  COMMON CSS V4
======================================================*/


/*====================================================
                    GOOGLE FONT
====================================================*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');


/*====================================================
                    RESET
====================================================*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins',sans-serif;
    background: #fff;
    color: #222;
    overflow-x: hidden;
    line-height: 1.7;
}


/*====================================================
                COMMON ELEMENTS
====================================================*/

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    transition: .3s;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1350px;
    margin: auto;
}


/*====================================================
                    BUTTONS
====================================================*/

.btn {
    display: inline-block;
    padding: 15px 35px;
    background: #ff9800;
    color: #fff;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    transition: .35s;
    box-shadow: 0 10px 25px rgba(255,152,0,.30);
}

    .btn:hover {
        background: #0d47a1;
        color: #fff;
        transform: translateY(-4px);
        box-shadow: 0 18px 35px rgba(13,71,161,.30);
    }


/*====================================================
                    HEADER
====================================================*/

header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background: #0d47a1;
    z-index: 9999;
    transition: .35s;
    box-shadow: 0 8px 25px rgba(0,0,0,.15);
}

    header:hover {
        box-shadow: 0 15px 35px rgba(0,0,0,.18);
    }

    header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 18px 0;
        position: relative;
    }


/*====================================================
                    LOGO
====================================================*/

.logo {
    display: flex;
    align-items: center;
    gap: 18px;
}

    .logo img {
        width: 82px;
        height: 82px;
        border-radius: 50%;
        object-fit: cover;
        border: 3px solid rgba(255,255,255,.25);
    }

.logo-text h2 {
    color: #fff;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.1;
}

.logo-text span {
    color: #d7e5ff;
    font-size: 15px;
}


/*====================================================
                MOBILE MENU BUTTON
====================================================*/

.menu-toggle {
    display: none;
    width: 45px;
    height: 45px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    font-size: 28px;
    transition: .3s;
}

    .menu-toggle:hover {
        color: #ff9800;
    }


/*====================================================
                    NAVIGATION
====================================================*/

#navbar {
    display: flex;
    align-items: center;
    gap: 35px;
}

    #navbar > a,
    #navbar > .dropdown {
        display: flex;
        align-items: center;
    }

    #navbar > a,
    .dropbtn {
        position: relative;
        color: #fff;
        font-size: 18px;
        font-weight: 600;
        white-space: nowrap;
        transition: .3s;
    }

        #navbar > a:hover,
        .dropbtn:hover,
        #navbar > a.active,
        .dropbtn.active {
            color: #ff9800;
        }

        #navbar > a::after,
        .dropbtn::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: -8px;
            width: 0;
            height: 3px;
            background: #ff9800;
            border-radius: 50px;
            transition: .3s;
        }

        #navbar > a:hover::after,
        #navbar > a.active::after {
            width: 100%;
        }


/*====================================================
                SERVICES DROPDOWN
====================================================*/

.dropdown {
    position: relative;
}

.dropbtn {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .dropbtn i {
        font-size: 12px;
        transition: .3s;
    }

.dropdown:hover .dropbtn i {
    transform: rotate(180deg);
}

.dropdown-content {
    position: absolute;
    top: 100%;
    right: 0;
    width: 320px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: .35s;
    z-index: 9999;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content a {
    display: block;
    color: #333;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    font-size: 16px;
    transition: .3s;
}

    .dropdown-content a:last-child {
        border-bottom: none;
    }

    .dropdown-content a:hover {
        background: #0d47a1;
        color: #fff;
        padding-left: 28px;
    }
/*====================================================
                PAGE BANNER
====================================================*/

.page-banner {
    position: relative;
    width: 100%;
    height: 430px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(rgba(13,71,161,.88), rgba(13,71,161,.88)), url("../images/banner.jpg");
    background-size: cover;
    background-position: center;
}

.banner-overlay {
    width: 90%;
    max-width: 900px;
}

    .banner-overlay h1 {
        color: #fff;
        font-size: 64px;
        font-weight: 800;
        margin-bottom: 20px;
    }

    .banner-overlay p {
        color: #f5f5f5;
        font-size: 22px;
        line-height: 1.8;
    }
/*====================================================
                COMMON SECTION
====================================================*/

section {
    width: 100%;
}

.section-padding {
    padding: 100px 0;
}

.bg-light {
    background: #f8f9fc;
}

.bg-white {
    background: #ffffff;
}


/*====================================================
                SECTION TITLE
====================================================*/

.section-title {
    text-align: center;
    margin-bottom: 70px;
}

    .section-title span {
        display: inline-block;
        color: #ff9800;
        font-size: 15px;
        font-weight: 700;
        letter-spacing: 2px;
        margin-bottom: 15px;
    }

    .section-title h2 {
        color: #0d47a1;
        font-size: 48px;
        font-weight: 800;
        margin-bottom: 20px;
    }

    .section-title p {
        max-width: 850px;
        margin: auto;
        color: #666;
        font-size: 18px;
        line-height: 1.9;
    }


/*====================================================
                COMMON CARD
====================================================*/

.card {
    background: #fff;
    border-radius: 22px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0,0,0,.08);
    transition: .35s;
}

    .card:hover {
        transform: translateY(-10px);
        box-shadow: 0 22px 45px rgba(0,0,0,.15);
    }


/*====================================================
                COMMON ICON
====================================================*/

.icon {
    width: 90px;
    height: 90px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: auto;
    margin-bottom: 25px;
    border-radius: 50%;
    background: linear-gradient(135deg,#0d47a1,#1565c0);
    color: #fff;
    font-size: 40px;
    transition: .35s;
}

.card:hover .icon {
    transform: rotate(8deg) scale(1.08);
}


/*====================================================
                GRID SYSTEM
====================================================*/

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 60px;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 35px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 30px;
}


/*====================================================
                IMAGE EFFECT
====================================================*/

.image-hover {
    overflow: hidden;
    border-radius: 22px;
}

    .image-hover img {
        transition: .45s;
    }

    .image-hover:hover img {
        transform: scale(1.08);
    }


/*====================================================
                CALL TO ACTION
====================================================*/

.cta {
    padding: 100px 20px;
    background: linear-gradient(135deg,#0d47a1,#1565c0);
    text-align: center;
    color: #fff;
}

    .cta h2 {
        font-size: 52px;
        font-weight: 800;
        margin-bottom: 20px;
    }

    .cta p {
        width: 90%;
        max-width: 850px;
        margin: 0 auto 35px;
        color: #dfe8ff;
        font-size: 18px;
        line-height: 1.9;
    }


/*====================================================
                TEXT UTILITIES
====================================================*/

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.text-primary {
    color: #0d47a1;
}

.text-secondary {
    color: #666;
}

.text-white {
    color: #fff;
}


/*====================================================
                MARGIN UTILITIES
====================================================*/

.mt-30 {
    margin-top: 30px;
}

.mt-50 {
    margin-top: 50px;
}

.mb-30 {
    margin-bottom: 30px;
}

.mb-50 {
    margin-bottom: 50px;
}


/*====================================================
                SHADOW UTILITIES
====================================================*/

.rounded {
    border-radius: 20px;
}

.shadow {
    box-shadow: 0 15px 35px rgba(0,0,0,.08);
}

.shadow-lg {
    box-shadow: 0 20px 45px rgba(0,0,0,.15);
}


/*====================================================
                FADE UP ANIMATION
====================================================*/

.fade-up {
    animation: fadeUp .8s ease;
}

@keyframes fadeUp {

    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/*====================================================
                    FOOTER
====================================================*/

.footer {
    background: #0b1320;
    color: #ddd;
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.3fr;
    gap: 55px;
    padding-bottom: 50px;
}

.footer-column h3 {
    color: #fff;
    font-size: 22px;
    margin-bottom: 22px;
}

.footer-column p {
    color: #c7d1df;
    line-height: 1.9;
    font-size: 16px;
    margin-bottom: 15px;
}

.footer-column ul {
    list-style: none;
}

    .footer-column ul li {
        margin-bottom: 16px;
    }

        .footer-column ul li a {
            color: #c7d1df;
            transition: .3s;
        }

            .footer-column ul li a:hover {
                color: #ff9800;
                padding-left: 6px;
            }


/*====================================================
                FOOTER LOGO
====================================================*/

.footer-logo {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 25px;
}

    .footer-logo img {
        width: 78px;
        height: 78px;
        border-radius: 50%;
        object-fit: cover;
        border: 5px solid #fff;
        padding: 4px;
        background: #fff;
    }

    .footer-logo h2 {
        color: #fff;
        font-size: 28px;
        font-weight: 700;
    }


/*====================================================
                FOOTER SOCIAL
====================================================*/

.footer-social {
    display: flex;
    gap: 18px;
    margin-top: 28px;
}

    .footer-social a {
        width: 52px;
        height: 52px;
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 50%;
        background: #1d2739;
        color: #fff;
        font-size: 20px;
        transition: .35s;
    }

        .footer-social a:hover {
            background: #ff9800;
            transform: translateY(-5px);
        }


/*====================================================
            FOOTER BOTTOM
====================================================*/

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.12);
    margin-top: 30px;
    padding: 28px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

    .footer-bottom .copyright {
        color: #bfc8d8;
        font-size: 15px;
    }

    .footer-bottom .developer {
        position: absolute;
        right: 0;
        color: #bfc8d8;
        font-size: 15px;
    }

        .footer-bottom .developer a {
            color: #ff9800;
            font-weight: 600;
        }

            .footer-bottom .developer a:hover {
                color: #fff;
            }


/*====================================================
                SCROLLBAR
====================================================*/

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #eeeeee;
}

::-webkit-scrollbar-thumb {
    background: #0d47a1;
    border-radius: 30px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #1565c0;
    }


/*====================================================
                TEXT SELECTION
====================================================*/

::selection {
    background: #0d47a1;
    color: #ffffff;
}


/*====================================================
                END UTILITIES
====================================================*/

hr {
    border: none;
    height: 1px;
    background: rgba(255,255,255,.12);
    margin: 20px 0;
}

strong {
    font-weight: 700;
}

em {
    font-style: italic;
}
/*====================================================
            RESPONSIVE DESIGN
====================================================*/

/* Hide Hamburger on Desktop */

.menu-toggle {
    display: none;
}

/*==============================
        TABLET & MOBILE
==============================*/

@media (max-width:991px) {

    header .container {
        position: relative;
        padding: 15px 0;
    }

    .logo {
        width: 100%;
        justify-content: space-between;
        align-items: center;
    }

        .logo img {
            width: 65px;
            height: 65px;
        }

    .logo-text h2 {
        font-size: 24px;
    }

    .logo-text span {
        font-size: 13px;
    }

    /* Hamburger */

    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        right: 0;
        top: 18px;
        width: 45px;
        height: 45px;
        cursor: pointer;
    }

    /* Navigation */

    #navbar {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        margin-top: 20px;
        background: #0d47a1;
        border-radius: 12px;
        overflow: hidden;
    }

        #navbar.active {
            display: flex;
        }

        #navbar > a {
            width: 100%;
            padding: 18px 25px;
            border-bottom: 1px solid rgba(255,255,255,.12);
        }

            #navbar > a:last-child {
                border-bottom: none;
            }

    /* Dropdown */

    .dropdown {
        width: 100%;
    }

    .dropbtn {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 18px 25px;
    }

    @media (max-width:991px) {

        .dropdown {
            position: static !important;
        }

        .dropdown-content {
            position: relative !important;
            top: 0 !important;
            left: 0 !important;
            right: 0 !important;
            width: 100% !important;
            margin-top: 10px;
            display: none;
            opacity: 1 !important;
            visibility: visible !important;
            transform: none !important;
            background: #1565c0 !important;
            border-radius: 10px;
            box-shadow: none !important;
            z-index: 1 !important;
        }

        .dropdown.active .dropdown-content {
            display: block !important;
        }

        .dropdown-content a {
            display: block;
            padding: 15px 25px;
            color: #fff;
            border-bottom: 1px solid rgba(255,255,255,.08);
        }
    }

    /* Banner */

    .page-banner {
        height: 340px;
    }

    .banner-overlay h1 {
        font-size: 42px;
    }

    .banner-overlay p {
        font-size: 18px;
    }

    /* Grid */

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    .grid-4 {
        grid-template-columns: 1fr;
    }

    /* Footer */

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-bottom {
        display: block;
        text-align: center;
    }

        .footer-bottom .developer {
            position: static;
            margin-top: 12px;
        }
}

/*==============================
        SMALL MOBILE
==============================*/

@media (max-width:576px) {

    .logo img {
        width: 55px;
        height: 55px;
    }

    .logo-text h2 {
        font-size: 19px;
    }

    .logo-text span {
        display: none;
    }

    .banner-overlay h1 {
        font-size: 30px;
    }

    .banner-overlay p {
        font-size: 15px;
    }

    .section-title h2 {
        font-size: 30px;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}


/*==============================
        MENU ANIMATION
==============================*/

@keyframes slideDown {

    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* ===========================
   FINAL MOBILE NAV FIX
=========================== */

@media screen and (max-width:991px) {

    .menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 22px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 28px;
        color: #fff;
        cursor: pointer;
        z-index: 10001;
    }

    header .container {
        position: relative;
        display: block;
    }

    .logo {
        width: calc(100% - 70px);
    }

    #navbar {
        display: none !important;
        flex-direction: column;
        width: 100%;
        background: #0d47a1;
        margin-top: 18px;
        border-radius: 12px;
        overflow: hidden;
    }

        #navbar.active {
            display: flex !important;
            animation: slideDown .35s ease;
        }

        #navbar > a,
        #navbar > .dropdown {
            width: 100%;
        }

        #navbar > a {
            padding: 18px 25px;
            border-bottom: 1px solid rgba(255,255,255,.12);
        }

    .dropbtn {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 18px 25px;
        color: #fff;
    }

    /* ✅ FIXED DROPDOWN */

    .dropdown-content {
        position: static !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;
        width: 100%;
        display: none;
        opacity: 1;
        visibility: visible;
        background: rgba(255,255,255,.08);
        border-radius: 0;
        box-shadow: none;
        overflow: hidden;
    }

    .dropdown.active .dropdown-content {
        display: block;
    }

    .dropdown-content a {
        display: block;
        width: 100%;
        padding: 14px 45px;
        color: #fff;
        background: transparent;
        border-bottom: 1px solid rgba(255,255,255,.08);
    }

        .dropdown-content a:hover {
            background: rgba(255,255,255,.08);
            color: #ff9800;
            padding-left: 55px;
        }
}
/* ===== FORCE MOBILE DROPDOWN ===== */

@media (max-width:991px) {

    .dropdown {
        position: static !important;
    }

        .dropdown:hover .dropdown-content {
            opacity: 1 !important;
            visibility: visible !important;
            transform: none !important;
        }

    .dropdown-content {
        position: static !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        width: 100% !important;
        display: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        background: #1565c0 !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }

    .dropdown.active .dropdown-content {
        display: block !important;
    }

    .dropdown-content a {
        display: block;
        width: 100%;
        padding: 14px 45px;
        color: #fff;
    }
}