/* ==========================================================================
   Modern SaaS UI Enhancements - Clean & Rock-Solid Layout
   ========================================================================== */

:root {
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #d946ef 100%);
    --card-gradient: linear-gradient(145deg, #1e1b4b 0%, #0f172a 100%);
    --surface-card: #ffffff;
    --text-heading: #0f172a;
    --text-body: #475569;
    --text-muted: #64748b;
    --card-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05), 0 4px 10px -3px rgba(0, 0, 0, 0.03);
    --border-light: rgba(226, 232, 240, 0.8);
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-full: 9999px;
    --transition-smooth: all 0.25s ease-in-out;
}

/* --- Header / Navbar Safety Fix --- */
.header,
header.header {
    position: relative !important;
    z-index: 9999 !important;
    background: transparent;
    padding-top: 15px;
    padding-bottom: 15px;
}

.header .navbar-nav .nav-link {
    font-weight: 600;
    color: #1e293b !important;
}

/* --- Section Badges --- */
.modern-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    color: #6366f1;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.06);
}

/* --- Hero Section Styling --- */
.hero-section {
    padding-top: 40px !important;
    padding-bottom: 70px !important;
    position: relative;
    z-index: 1;
}

.hero-section .main-banner {
    pointer-events: none !important;
    z-index: 0 !important;
}

.hero-section .hero-content {
    position: relative;
    z-index: 2;
    padding-top: 10px;
}

.hero-section .hero-content h1 {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-heading);
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.hero-section .hero-content p {
    font-size: 1.1rem;
    color: var(--text-body);
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Fixed Non-Overlapping Search Box */
.vcard-alias-search-box {
    position: relative;
    max-width: 480px;
    width: 100%;
    margin-bottom: 10px;
}

@media (max-width: 991px) {
    .vcard-alias-search-box {
        margin: 0 auto 10px auto;
    }
}

.vcard-alias-search-box #search-alias-input {
    width: 100% !important;
    height: 56px !important;
    border-radius: 50px !important;
    padding: 10px 145px 10px 22px !important;
    border: 1.5px solid #cbd5e1 !important;
    background: #ffffff !important;
    font-size: 15px !important;
    color: #0f172a !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05) !important;
    outline: none !important;
}

.vcard-alias-search-box #search-alias-input:focus {
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15) !important;
}

.vcard-alias-search-box #search-alias-btn {
    position: absolute !important;
    top: 5px !important;
    right: 6px !important;
    height: 46px !important;
    border-radius: 50px !important;
    padding: 0 22px !important;
    background: var(--primary-gradient) !important;
    border: none !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 3px 10px rgba(99, 102, 241, 0.35) !important;
    cursor: pointer !important;
    z-index: 5 !important;
    white-space: nowrap !important;
    transform: none !important;
}

.vcard-alias-search-box #search-alias-btn:hover {
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.5) !important;
    color: #ffffff !important;
}

/* Responsive Search Box for small mobile */
@media (max-width: 440px) {
    .vcard-alias-search-box #search-alias-input {
        padding-right: 20px !important;
        margin-bottom: 10px;
    }
    .vcard-alias-search-box #search-alias-btn {
        position: relative !important;
        top: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: 48px !important;
    }
}

/* ==========================================================================
   Clean & Modern Hero Showcase Card (Right Column) - Safe Height & Margin
   ========================================================================== */
.hero-preview-card-container {
    position: relative;
    z-index: 1;
    padding: 10px;
    margin-top: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-smart-card {
    width: 360px;
    max-width: 100%;
    background: var(--card-gradient);
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 20px 50px -10px rgba(15, 23, 42, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
    color: #ffffff;
    transition: var(--transition-smooth);
}

.hero-smart-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 60px -10px rgba(99, 102, 241, 0.35), 0 0 0 1.5px rgba(139, 92, 246, 0.4) inset;
}

.smart-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.chip-nfc-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.smart-card-chip {
    width: 38px;
    height: 28px;
    background: linear-gradient(135deg, #d4af37 0%, #f3e5ab 50%, #aa771c 100%);
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.live-pill {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #10b981;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pulse-dot {
    width: 7px;
    height: 7px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 6px #10b981;
}

.smart-card-body {
    text-align: center;
    margin-bottom: 14px;
}

.card-avatar-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

.card-avatar-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.card-user-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 3px;
    color: #ffffff;
}

.card-user-role {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 16px;
}

.card-quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 16px;
}

.card-btn-action {
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: var(--transition-smooth);
}

.card-btn-action.primary {
    background: var(--primary-gradient);
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

.card-btn-action.primary:hover {
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.55);
    color: #ffffff !important;
}

.card-btn-action.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.card-btn-action.secondary:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff !important;
}

.card-social-strip {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.card-social-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    text-decoration: none !important;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.card-social-icon:hover {
    background: var(--primary-gradient);
    color: #ffffff !important;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.smart-card-footer {
    padding-top: 12px;
    text-align: center;
}

.footer-stat {
    font-size: 11px;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.06);
    padding: 5px 12px;
    border-radius: 50px;
}

/* --- Section Heading Polish --- */
.section-heading h2 {
    font-size: clamp(1.8rem, 3.2vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-heading);
    position: relative;
    margin-bottom: 12px;
}

/* --- vCard Templates Slider Section --- */
.vcard-template-section {
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.6) 0%, rgba(241, 245, 249, 0.8) 100%);
    border-radius: 30px;
    margin: 20px auto;
    padding-top: 50px;
    padding-bottom: 70px;
}

.vcard-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--surface-card);
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-light);
    transition: var(--transition-smooth);
    padding: 12px;
    margin: 15px;
}

.vcard-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(99, 102, 241, 0.18);
    border-color: rgba(99, 102, 241, 0.3);
}

.vcard-card img.vcard-img {
    border-radius: calc(var(--radius-lg) - 4px);
}

.btn-primary-light {
    background: var(--primary-gradient) !important;
    color: #ffffff !important;
    border-radius: var(--radius-full);
    padding: 14px 34px;
    font-weight: 600;
    font-size: 15px;
    border: none;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(99, 102, 241, 0.45);
    color: #ffffff !important;
}

/* --- Features Section --- */
.features-section {
    padding-top: 70px;
    padding-bottom: 70px;
}

.feature-slider .feature-card {
    background: var(--surface-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: var(--card-shadow);
    padding: 26px 22px;
    margin: 15px;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.feature-slider .feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px -8px rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
}

.feature-card .card-img {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background: rgba(99, 102, 241, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    padding: 8px;
}

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-body);
    line-height: 1.6;
}

/* --- Testimonials Section --- */
.testimonial-section {
    padding-top: 70px;
    padding-bottom: 70px;
}

.testimonial-section .testimonial {
    background: transparent !important;
}

.testimonial-card {
    background: var(--surface-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: var(--card-shadow);
    padding: 32px 28px;
    margin: 15px;
    transition: var(--transition-smooth);
}

.testimonial-card:hover {
    box-shadow: 0 16px 36px -8px rgba(99, 102, 241, 0.15);
    transform: translateY(-4px);
}

.testimonial-card .profile-img {
    width: 54px;
    height: 54px;
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 2px solid rgba(99, 102, 241, 0.2);
}

.testimonial-stars {
    color: #f59e0b;
    font-size: 14px;
    margin-bottom: 10px;
    display: flex;
    gap: 4px;
}

.testimonial-card .profile-text {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text-body);
}

/* --- Contact Us Section --- */
.contact-section {
    padding-top: 70px;
    padding-bottom: 90px;
    background: linear-gradient(180deg, #ffffff 0%, rgba(241, 245, 249, 0.6) 100%);
}

.contact-info__block {
    background: var(--surface-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: 16px;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
}

.contact-info__block:hover {
    transform: translateX(4px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.1);
}

.contact-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--primary-gradient);
    color: #ffffff;
    font-size: 18px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 14px;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3);
}

.contact-form {
    background: var(--surface-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.08);
    padding: 36px;
}

.contact-form .front-input {
    border-radius: var(--radius-md) !important;
    border: 1.5px solid var(--border-light) !important;
    padding: 13px 16px !important;
    font-size: 15px !important;
    background: #f8fafc !important;
    color: var(--text-heading) !important;
    transition: var(--transition-smooth);
}

.contact-form .front-input:focus {
    background: #ffffff !important;
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12) !important;
}

/* Crystal Clear High Contrast Send Message Button */
.contact-section-submit-btn,
button.contact-section-submit-btn,
input[type="submit"].contact-section-submit-btn {
    background: var(--primary-gradient) !important;
    background-color: #6366f1 !important;
    border: none !important;
    border-radius: var(--radius-full) !important;
    padding: 15px 44px !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    color: #ffffff !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4) !important;
    transition: var(--transition-smooth) !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.contact-section-submit-btn:hover,
button.contact-section-submit-btn:hover,
input[type="submit"].contact-section-submit-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 26px rgba(99, 102, 241, 0.55) !important;
    color: #ffffff !important;
}
