/* ==========================================================================
   RevGen Healthcare Tammy Hulsey Landing Page Stylesheet
   Inspired by Crafto IT Business About Theme
   ========================================================================== */

:root {
    --primary-color: #074eb9;       /* Crafto Base Blue */
    --accent-color: #e94037;        /* Crafto Flame Red */
    --dark-gray: #252840;           /* Crafto Dark Navy Slate */
    --black: #05060a;               /* Crafto Black */
    --medium-gray: #7d8087;         /* Crafto Text Gray */
    --very-light-gray: #f0f2f8;     /* Crafto Light Neutral Bg */
    --white: #ffffff;
    --primary-font: 'Plus Jakarta Sans', sans-serif;
    --heading-font: 'Outfit', sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --border-radius-custom: 12px;
}

/* --- Global Reset & Base Styles --- */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--primary-font);
    color: var(--medium-gray);
    background-color: var(--white);
    line-height: 1.8;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}

.text-dark-gray {
    color: var(--dark-gray);
}

.Outfit {
    font-family: var(--heading-font);
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--heading-font);
    color: var(--dark-gray);
    font-weight: 700;
    line-height: 1.25;
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--accent-color);
}

/* --- Scroll Progress Bar --- */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    z-index: 9999;
    width: 0%;
    transition: width 0.1s ease-out;
}

/* --- Utility Typography & Badges --- */
.text-gradient {
    background-image: linear-gradient(135deg, #0b58cb, #e94037);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.badge-custom {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--white);
}

.badge-sub {
    display: inline-flex;
    align-items: center;
    background: rgba(11, 88, 203, 0.08);
    border: 1px solid rgba(11, 88, 203, 0.15);
    padding: 6px 18px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary-color);
}

.badge-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, rgba(11, 88, 203, 0.1), rgba(233, 64, 55, 0.1));
    color: var(--primary-color);
    font-family: var(--heading-font);
    font-weight: 800;
    font-size: 18px;
    border-radius: 50%;
}

.section-padding {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

/* --- Buttons --- */
.btn {
    font-family: var(--primary-font);
    font-weight: 600;
    letter-spacing: 0.2px;
    transition: var(--transition-smooth);
}

.btn-rounded {
    border-radius: 100px;
}

.btn-extra-large {
    padding: 15px 38px;
    font-size: 15px;
}

.btn-gradient-purple-pink {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    background-size: 200% auto;
    color: var(--white) !important;
    border: none;
    box-shadow: 0 4px 15px rgba(11, 88, 203, 0.3);
}

.btn-gradient-purple-pink:hover {
    background-position: right center;
    box-shadow: 0 6px 20px rgba(233, 64, 55, 0.4);
    transform: translateY(-2px);
}

.btn-transparent-white {
    background: transparent;
    color: var(--white) !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-transparent-white:hover {
    background: var(--white);
    color: var(--dark-gray) !important;
    border-color: var(--white);
    transform: translateY(-2px);
}

.btn-nav {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white) !important;
    padding: 8px 22px;
    font-size: 14px;
}

.btn-nav:hover {
    background: var(--white);
    color: var(--dark-gray) !important;
    border-color: var(--white);
}

/* --- Header / Navbar (Glassmorphic) --- */
#mainHeader {
    transition: var(--transition-smooth);
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo-text {
    font-family: var(--heading-font);
    font-weight: 800;
    font-size: 22px;
    letter-spacing: -0.5px;
    color: var(--white);
}

.navbar .nav-link {
    font-weight: 500;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.75) !important;
    padding: 8px 18px !important;
    transition: var(--transition-smooth);
}

.navbar .nav-link:hover, .navbar .nav-link.active {
    color: var(--white) !important;
    opacity: 1;
}

/* Sticky Header State */
.navbar-sticky {
    background: rgba(37, 40, 64, 0.9) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar-sticky .navbar {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
}

/* --- Hero Section --- */
.hero-section {
    min-height: 90vh;
    padding-top: 120px;
    padding-bottom: 150px;
}

.hero-image-wrap {
    z-index: 1;
}

.circle-glow-bg {
    position: absolute;
    width: 140%;
    height: 140%;
    top: -20%;
    left: -20%;
    background: radial-gradient(circle, rgba(11, 88, 203, 0.25) 0%, rgba(233, 64, 55, 0.05) 50%, rgba(0,0,0,0) 70%);
    z-index: -1;
    animation: pulseGlow 8s infinite alternate ease-in-out;
}

.rounded-image {
    border-radius: 20px;
    border: 5px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
}

.rounded-image:hover {
    transform: scale(1.02) rotate(1deg);
    border-color: rgba(255, 255, 255, 0.1);
}

.glass-badge {
    position: absolute;
    bottom: 30px;
    left: -30px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 20px 25px;
    color: var(--white);
    z-index: 2;
}

/* --- Wave Separator --- */
.wave-container {
    position: absolute;
    bottom: -1px;
    width: 100%;
    height: 100px;
    min-height: 60px;
    max-height: 120px;
    z-index: 3;
}

.waves {
    position: relative;
    width: 100%;
    height: 100px;
    margin-bottom: -7px;
}

.parallax > use {
    animation: move-forever 25s cubic-bezier(.55,.5,.45,.5)     infinite;
}
.parallax > use:nth-child(1) {
    animation-delay: -2s;
    animation-duration: 7s;
}
.parallax > use:nth-child(2) {
    animation-delay: -3s;
    animation-duration: 10s;
}
.parallax > use:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 13s;
}
.parallax > use:nth-child(4) {
    animation-delay: -5s;
    animation-duration: 20s;
}

/* --- About & Metric boxes --- */
.about-visuals {
    z-index: 1;
}

.metric-box {
    border-radius: 15px;
    transition: var(--transition-smooth);
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03) !important;
}

.metric-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(7, 78, 185, 0.08) !important;
}

.icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(7, 78, 185, 0.05);
    font-size: 24px;
    transition: var(--transition-smooth);
}

.metric-box:hover .icon-circle {
    background: var(--primary-color);
    color: var(--white) !important;
}

.metric-box:hover .icon-circle i {
    color: var(--white) !important;
}

.text-primary-color {
    color: var(--primary-color);
}

.signature-font {
    font-family: 'Outfit', cursive;
    font-style: italic;
    font-weight: 300;
}

/* --- Cards for About RevGen --- */
.card-glow-bg {
    position: absolute;
    width: 200px;
    height: 200px;
    right: -50px;
    top: -50px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(233, 64, 55, 0.25) 0%, rgba(0,0,0,0) 70%);
    filter: blur(20px);
}

/* --- Service Cards --- */
.service-card {
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    border-radius: var(--border-radius-custom) !important;
    transition: var(--transition-smooth);
    overflow: hidden;
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0%;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
    transition: var(--transition-smooth);
}

.service-card:hover::before {
    height: 100%;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08) !important;
    border-color: transparent !important;
}

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    border-radius: 12px;
    background: rgba(7, 78, 185, 0.06);
    color: var(--primary-color);
    font-size: 22px;
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
}

/* --- Why Partner Pillars --- */
.hover-translate-y:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.06) !important;
}

/* --- Performance Benchmarks --- */
.benchmark-card {
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.06) !important;
    border-radius: var(--border-radius-custom);
    transition: var(--transition-smooth);
}

.benchmark-card:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 35px rgba(7, 78, 185, 0.08);
    border-color: rgba(7, 78, 185, 0.15) !important;
}

.benchmark-number {
    font-size: 3.5rem;
    line-height: 1.1;
}

.text-success-color {
    color: #28a745;
}

.text-danger-color {
    color: #dc3545;
}

/* --- Let's Connect / Contact Card --- */
.connect-challenges-list li {
    font-size: 16px;
    font-weight: 500;
    color: var(--dark-gray);
    display: flex;
    align-items: center;
}

.contact-profile-card {
    border-radius: 20px !important;
    background: var(--white) !important;
}

.card-glow-bg-primary {
    position: absolute;
    width: 250px;
    height: 250px;
    left: -100px;
    bottom: -100px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(7, 78, 185, 0.08) 0%, rgba(0,0,0,0) 70%);
    filter: blur(25px);
}

.contact-avatar {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border: 4px solid var(--very-light-gray);
}

.contact-icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(7, 78, 185, 0.06);
    font-size: 18px;
}

.contact-link {
    transition: var(--transition-smooth);
}

.contact-link:hover {
    color: var(--accent-color);
}

/* --- Footer --- */
.footer-social-links li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    font-size: 16px;
    transition: var(--transition-smooth);
}

.footer-social-links li a:hover {
    background: var(--white);
    color: var(--dark-gray);
    transform: translateY(-3px);
}

/* --- Scroll To Top Button --- */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    color: var(--white) !important;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
    transition: var(--transition-smooth);
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

/* --- Animations --- */
@keyframes move-forever {
    0% {
        transform: translate3d(-90px, 0, 0);
    }
    100% {
        transform: translate3d(85px, 0, 0);
    }
}

@keyframes pulseGlow {
    0% {
        transform: scale(0.9) opacity(0.8);
    }
    100% {
        transform: scale(1.1) opacity(1);
    }
}

/* --- Responsive Breakpoints --- */
@media (max-width: 991.98px) {
    .section-title {
        font-size: 2.2rem;
    }
    .hero-section {
        padding-top: 100px;
        padding-bottom: 120px;
    }
    .navbar-collapse {
        background: var(--dark-gray);
        margin-top: 15px;
        border-radius: var(--border-radius-custom);
        padding: 20px;
        border: 1px solid rgba(255, 255, 255, 0.08);
    }
    .navbar .nav-link {
        padding: 10px 15px !important;
    }
    .glass-badge {
        bottom: 20px;
        left: 20px;
        padding: 15px 20px;
    }
}

@media (max-width: 575.98px) {
    .section-title {
        font-size: 1.8rem;
    }
    .benchmark-number {
        font-size: 2.8rem;
    }
    .btn-extra-large {
        padding: 12px 30px;
        font-size: 14px;
        width: 100%;
        text-align: center;
    }
}
