/* css/components.css - Reusable UI Components */

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--blue);
    color: #fff;
    font-family: 'Oxanium', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    padding: 16px 36px;
    border-radius: 50px;
    text-decoration: none;
    border: none;
    cursor: none;
    box-shadow: 0 8px 32px rgba(5, 86, 243, 0.35);
    transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
	    margin: 10px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 44px rgba(5, 86, 243, 0.48);
    background: #0341C8;
    color: #fff;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: var(--text-primary);
    font-family: 'Oxanium', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    padding: 14px 36px;
    border-radius: 50px;
    text-decoration: none;
    border: 2px solid rgba(13, 26, 45, 0.15);
    cursor: none;
    transition: border-color 0.25s, color 0.25s, background 0.25s;
	    margin: 10px;
}

.btn-secondary:hover {
    border-color: var(--blue);
    color: var(--blue);
    background: rgba(5, 86, 243, 0.05);
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6vw;
    height: 80px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(5, 86, 243, 0.05);
    transition: box-shadow 0.4s, background 0.4s;
}

nav.scrolled {
    box-shadow: var(--shadow-glass);
    background: rgba(255, 255, 255, 0.95);
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo img {
    height: 38px;
}

.nav-logo-fb {
    font-family: 'Oxanium', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--blue);
    display: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-links a,
.nav-links>li>button {
    font-family: 'Oxanium', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-primary);
    text-decoration: none;
    padding: 0 16px;
    border-radius: 8px;
    border: none;
    background: transparent;
    cursor: none;
    transition: color 0.2s, background 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    height: 38px;
    box-sizing: border-box;
    margin: 0;
}

.nav-links a:hover,
.nav-links>li>button:hover {
    color: var(--blue);
    background: rgba(5, 86, 243, 0.07);
}

.nav-btn {
    background: var(--blue) !important;
    color: #fff !important;
    border-radius: 50px !important;
    padding: 0 24px !important;
    height: 38px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.nav-btn:hover {
    background: #0341C8 !important;
    color: #fff !important;
}

/* Dropdown */
.dropdown {
    position: relative;

    /* padding-bottom: 5px; */
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    border-radius: 16px;
    min-width: 240px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    padding: 12px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.9rem;
    text-transform: none;
    font-weight: 500;
}

.dropdown-menu a i {
    color: var(--blue);
    margin-right: 12px;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

/* Cards (Replacing the old why-cards with light theme glassmorphic ones) */
.glass-card {
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 36px 28px;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--blue), var(--cyan));
    opacity: 0;
    transition: opacity 0.3s;
}

.glass-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.glass-card:hover::before {
    opacity: 1;
}

.icon-box {
    width: 56px;
    height: 56px;
	padding: 12px;
    border-radius: 16px;
    background: rgba(5, 86, 243, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--blue);
    margin-bottom: 24px;
    transition: background 0.3s;
}

.glass-card:hover .icon-box {
    background: var(--blue);
    color: #fff;
}

.glass-card h4 {
    font-family: 'Oxanium', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.glass-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* Specific Feature Item List */
.feature-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.feature-item {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid transparent;
    transition: border-color 0.3s, background 0.3s;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.feature-item:hover {
    border-color: var(--border);
    background: var(--bg-secondary);
}

/* Mockup Widget Block */
.mockup {
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 32px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.mockup::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 30%, rgba(0, 200, 255, 0.05), transparent 60%);
    pointer-events: none;
}

.mbar {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.mbar span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.mbar span:nth-child(1) {
    background: #ff5f57;
}

.mbar span:nth-child(2) {
    background: #febc2e;
}

.mbar span:nth-child(3) {
    background: #28c840;
}

.mstats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.sbox {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid var(--border);
}

.sbox .val {
    font-family: 'Oxanium', sans-serif;
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.sbox .lbl {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.sbox .tr {
    font-size: 0.75rem;
    color: #00C851;
    margin-top: 6px;
    font-weight: 600;
}

/* Forms */
.cform {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.frow {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.cform input,
.cform textarea {
    background: #fff;
    border: 1px solid var(--border-strong);
    border-radius: 14px;
    padding: 16px 20px;
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    outline: none;
    width: 100%;
    transition: border-color 0.25s, box-shadow 0.25s;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.cform input::placeholder,
.cform textarea::placeholder {
    color: var(--text-placeholder);
}

.cform input:focus,
.cform textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(5, 86, 243, 0.15);
}

.cform textarea {
    min-height: 140px;
    resize: vertical;
}

/* Footer elements */
footer {
    background: var(--navy2);
    color: var(--text-secondary);
    padding: 64px 6vw 32px;
    border-top: 1px solid var(--border);
}

.fcol h5 {
    font-family: 'Oxanium', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-primary);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.fcol a {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.fcol a:hover {
    color: var(--blue);
}

.social-icon {
    list-style: none;
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

.social-icon li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.1rem;
    transition: background 0.3s, color 0.3s, transform 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-icon li a:hover {
    background: var(--blue);
    color: #fff;
    transform: translateY(-3px);
    border-color: var(--blue);
}

/* Fix text contrast since footer background is now dark navy */
footer .fcol h5,
footer .flogo {
    color: #fff;
}

footer .fcol a,
footer .footer-brand p,
footer .fbot {
    color: rgba(255, 255, 255, 0.6);
}

footer .fcol a:hover {
    color: #fff;
}

footer {
    border-top: none;
}

/* Mobile Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: none;
    padding: 8px;
}

.hamburger span {
    width: 28px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    display: block;
    transition: 0.3s;
}

@media(max-width: 880px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        align-items: stretch;
        position: fixed;
        inset: 0;
        top: 80px;
        background: rgba(255, 255, 255, 0.98);
        padding: 32px 6vw;
        gap: 12px;
        z-index: 999;
        border-top: 1px solid var(--border);
        height: calc(100vh - 80px);
        /* Fill the entire screen below header */
        overflow-y: auto;
        /* Allow scrolling if menu is tall */
    }

    .nav-links a,
    .nav-links>li>button {
        text-align: left;
        width: 100%;
        justify-content: space-between;
        display: flex;
    }

    .nav-links.open {
        display: flex !important;
    }

    /* Change dropdown to act as an accordion */
    .dropdown-menu {
        display: none;
        /* Hide by default on mobile instead of using opacity */
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        background: var(--bg-primary);
        border-radius: 12px;
        width: 100%;
        margin-top: 12px;
        padding: 8px 0;
        opacity: 1;
        visibility: visible;
    }

    .dropdown.active .dropdown-menu {
        display: block;
        /* Show only when active class is toggled via JS */
    }

    .dropdown:hover .dropdown-menu {
        /* Disable hover reveal on mobile */
        display: none;
    }

    .dropdown.active:hover .dropdown-menu {
        display: block;
    }

    .dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        background: var(--bg-primary);
        /* solid background instead of transparent secondary */
        border-radius: 12px;
        opacity: 1;
        visibility: visible;
        width: 100%;
        margin-top: 12px;
        padding: 8px 0;
        /* consistent spacing */
    }

    .dropdown-menu a {
        padding: 14px 16px;
        /* larger tap targets */
    }

    .dropdown {
        padding-bottom: 0;
        /* remove desktop bridge gap */
        width: 100%;
    }

    .dropdown:hover .dropdown-menu {
        transform: none;
        /* remove hover shifting on mobile */
    }
}