/*==================================================
    CODEMEDIC UI COMPONENTS
====================================================*/
/*

1. Layout

2. Cards

3. Buttons

4. Badges

5. Icons

6. Dividers

7. Forms

8. Navigation

9. Utilities

*/

/*==================================================
    SECTION
====================================================*/

.section {
    max-width: 1280px;
    margin-inline: auto;
    padding-inline: 1.5rem;
}

/*==================================================
    LOGO
====================================================*/

.logo {
    display: flex;
    align-items: center;
}

    .logo img {
        height: 200px;
        width: auto;
        transition: .30s;
    }

    .logo:hover img {
        transform: scale(1.03);
    }

@media(max-width:768px) {

    .logo img {
        height: 34px;
    }
}

/*==================================================
    CARDS
====================================================*/

.card {
    position: relative;
    overflow: hidden;
    background: linear-gradient( 135deg, var(--surface), #111827 );
    border: 1px solid var(--border);
    border-radius: 24px;
    transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}

    .card::before {
        content: "";
        position: absolute;
        top: -120px;
        right: -120px;
        width: 260px;
        height: 260px;
        border-radius: 50%;
        background: radial-gradient( circle, color-mix(in srgb,var(--primary) 25%, transparent), transparent 70% );
        pointer-events: none;
    }

    .card:hover {
        transform: translateY(-4px);
        border-color: var(--primary);
        box-shadow: 0 25px 45px rgba(0,0,0,.35);
    }



/*==================================================
    SERVICE CARD
====================================================*/

.service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 320px;
    padding: 2.25rem;
    transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}

    .service-card:hover {
        transform: translateY(-10px);
        border-color: var(--primary);
        box-shadow: 0 30px 60px rgba(0,0,0,.35);
    }

.service-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid;
    transition: .35s;
    flex-shrink: 0;
    backdrop-filter: blur(10px);
}

    .service-icon svg {
        width: 30px;
        height: 30px;
        stroke-width: 2;
}

.service-title {
    margin-top: 1.5rem; /* Same as mt-6 */
    font-size: 1.5rem; /* Same as text-2xl */
    font-weight: 700;
    color: var(--primary);
}

.service-text {
    margin-top: 1rem;
    line-height: 1.9;
    color:white;
    flex-grow: 1;
}

.subservice-text {
    margin-top: 1rem;
    margin-bottom: 1rem;
    line-height: 1.5;
    color: var(--primary);
    flex-grow: 1;
}


.service-link {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-top: 2rem;
    font-weight: 600;
    color: var(--primary);
    transition: .3s;
}

    .service-link:hover {
        gap: .8rem;
}
.service-card:hover .service-icon {
    transform: translateY(-4px) scale(1.08);
}

.service-card:hover .service-title {
    color: var(--primary);
}
.service-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient( circle at top right, color-mix(in srgb,var(--primary) 12%, transparent), transparent 45% );
    opacity: 0;
    transition: .35s;
}
.service-card:hover::after {
    opacity: 1;
}


/*==================================================
    BUTTONS
====================================================*/
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    padding: .9rem 1.6rem;
    border-radius: 999px;
    transition: .3s;
    font-weight: 600;
}


.btn-primary {
    background: var(--primary);
    color: white;
}


    .btn-primary:hover {
        background: var(--primary-hover);
    }


.btn-secondary {
    border: 1px solid var(--border);
    color: var(--text);
    background: transparent;
}


    .btn-secondary:hover {
        border-color: var(--primary);
    }

/*==================================================
    BADGE
====================================================*/

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .7rem 1.25rem;
    border-radius: 9999px;
    color: var(--primary);
    font-size: .95rem;
    font-weight: 600;
    letter-spacing: .02em;
    background: rgba(6,182,212,.08);
    border: 1px solid rgba(6,182,212,.28);
    backdrop-filter: blur(10px);
    transition: border-color .3s ease, background .3s ease, transform .3s ease;
}

    .badge:hover {
        background: rgba(6,182,212,.12);
        border-color: rgba(6,182,212,.45);
        transform: translateY(-1px);
    }


/*==================================================
    SERVICE ICONS
====================================================*/

.service-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1px solid;
    transition: .3s;
}

    .service-icon svg {
        width: 24px;
        height: 24px;
        stroke-width: 2;
    }

/* Cyan */


.icon-cyan {
    color: #22D3EE;
    background: rgba(34,211,238,.08);
    border-color: rgba(34,211,238,.35);
    box-shadow: 0 0 24px rgba(34,211,238,.15), inset 0 1px 0 rgba(255,255,255,.08);
}

/* Green */
.icon-green {
    color: #22C55E;
    background: rgba(34,197,94,.08);
    border-color: rgba(34,197,94,.35);
    box-shadow: 0 0 24px rgba(34,197,94,.18), inset 0 1px 0 rgba(34,197,94,.18);
}


/* Purple */

.icon-purple {
    color: #8B5CF6;
    background: rgba(139,92,246,.10);
    border-color: rgba(139,92,246,.30);
    box-shadow: 0 0 24px rgba(139,92,246,.30), inset 0 1px 0 rgba(139,92,246,.30);
}


/* Orange */

.icon-orange {
    color: #FB923C;
    background: rgba(251,146,60,.10);
    border-color: rgba(251,146,60,.30);
    box-shadow: 0 0 24px rgba(251,146,60,.30), inset 0 1px 0 rgba(251,146,60,.30);
}


/* Pink */

.icon-pink {
    color: #EC4899;
    background: rgba(236,72,153,.10);
    border-color: rgba(236,72,153,.30);
    box-shadow: 0 0 24px rgba(236,72,153,.30), inset 0 1px 0 rgba(236,72,153,.30);
}


/*==================================================
    DIVIDER
====================================================*/

.hero-divider {
    position: relative;
    width: 240px;
    height: 3px;
    margin-top: 2rem;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255,255,255,.08);
}

    .hero-divider::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient( 90deg, var(--primary) 0%, #4F7CFF 40%, #A855F7 75%, transparent 100% );
    }

    .hero-divider::after {
        content: "";
        position: absolute;
        left: 70%;
        top: 50%;
        width: 55px;
        height: 14px;
        transform: translate(-50%, -50%);
        background: var(--primary);
        filter: blur(12px);
        opacity: .9;
    }
/*==================================================*/

.feature-divider {
    position: relative;
    height: 1px;
    margin: 5px 0 0 0;
    background: rgba(255,255,255,.08);
    overflow: visible;
}

    .feature-divider::after {
        content: "";
        position: absolute;
        left: 50%;
        top: 10%;
        width: 70px;
        height: 8px;
        transform: translate(-50%, -50%);
        border-radius: 999px;
        background: var(--primary);
        filter: blur(10px);
        opacity: .45;
    }
/*==================================================
    UTILITIES
====================================================*/

.glow {
    box-shadow: 0 0 30px color-mix(in srgb,var(--primary) 20%, transparent);
}
/*==================================================
    MOBILE MENU BUTTON
====================================================*/

.menu-button {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: var(--text);
    background: rgba(255,255,255,.04);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    transition: all .3s ease;
}

    .menu-button svg {
        width: 26px;
        height: 26px;
        stroke-width: 2;
    }

    .menu-button:hover {
        color: var(--primary);
        border-color: var(--primary);
        background: rgba(255,255,255,.07);
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(0,0,0,.25), 0 0 15px color-mix(in srgb, var(--primary) 20%, transparent);
    }

    .menu-button:active {
        transform: scale(.96);
    }

/*==================================================
    MOBILE MENU
====================================================*/

header {
    position: sticky;
}

.mobile-menu {
    position: absolute;
    top: 80px; /* same as header height */

    left: 0;
    right: 0;
    width: 100%;
    background: rgba(15,23,42,.98);
    backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255,255,255,.05);
    border-bottom: 1px solid rgba(255,255,255,.05);
    z-index: 9999;
}
.mobile-nav {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
}
.mobile-nav-link {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255,255,255,.05);
    transition: .3s;
}
    .mobile-nav-link:hover {
        color: var(--primary);
        padding-left: .75rem;
}
    .mobile-nav-link:last-child {
        border-bottom: none;
}
.mobile-menu {
    animation: mobileMenu .25s ease;
}
@keyframes mobileMenu {

    from {
        opacity: 0;
        transform: translateY(-15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*==================================================
    MEDIA QUERIES
====================================================*/

/* Desktop */
@media (min-width: 768px) {

    #menuButton {
        display: none;
    }
}

/* Mobile */
@media (max-width: 767px) {

    #menuButton {
        display: flex;
    }
}
