/* ===================================
    OneCareSync - Family Health Management App
    Custom Theme Styles
====================================== */


/* CSS Variables - OneCareSync Brand Colors */
:root {
    --alt-font: 'Nunito', sans-serif;
    --primary-font: 'Nunito', sans-serif;

    /* Primary Colors - NEW */
    --base-color: #4D4D4D;            /* Charcoal Grey - Primary */
    --secondary-color: #87A922;       /* Lime Green - Secondary */
    --accent-color: #0071BC;          /* Medical Blue - Highlighter */

    /* Status Colors */
    --success-color: #87A922;         /* Lime Green */
    --warning-color: #F59E0B;         /* Amber */
    --danger-color: #EF4444;          /* Red */
    --info-color: #0071BC;            /* Medical Blue */

    /* Health Status Colors */
    --status-normal: #87A922;
    --status-attention: #F59E0B;
    --status-alert: #EF4444;

    /* Neutral Colors */
    --dark-gray: #4D4D4D;
    --medium-gray: #6B7280;
    --light-gray: #F3F4F6;
    --white: #FFFFFF;

    /* Background Colors */
    --bg-primary: #F9FAFB;
    --bg-secondary: #F0F7E6;          /* Light lime green tint */
    --bg-accent: #E6F3FB;             /* Light medical blue tint */
    --bg-dark: #4D4D4D;
}

/* Reset and Base */
::-webkit-input-placeholder {
    color: var(--medium-gray) !important;
    text-overflow: ellipsis;
}
::-moz-placeholder {
    color: var(--medium-gray) !important;
    text-overflow: ellipsis;
    opacity: 1;
}
:-ms-input-placeholder {
    color: var(--medium-gray) !important;
    text-overflow: ellipsis;
    opacity: 1;
}

/* Typography */
body {
    font-family: var(--primary-font);
    color: var(--dark-gray);
}

.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
    font-family: var(--alt-font);
    margin-bottom: 25px;
    color: var(--dark-gray);
}

/* Custom Cursor */
@media (hover: hover) and (pointer: fine) {
    .custom-cursor .circle-cursor-outer {
        border: 1px solid transparent;
    }
    .custom-cursor .circle-cursor-inner {
        width: 25px;
        height: 25px;
        background: rgba(30, 59, 85, 0.15);
    }
}

/* OneCareSync Background Colors */
.bg-ocs-primary {
    background-color: var(--base-color) !important;
}
.bg-ocs-secondary {
    background-color: var(--secondary-color) !important;
}
.bg-ocs-accent {
    background-color: var(--accent-color) !important;
}
.bg-ocs-light {
    background-color: var(--bg-primary) !important;
}
.bg-ocs-soft-green {
    background-color: var(--bg-secondary) !important;
}
.bg-ocs-soft-blue {
    background-color: var(--bg-accent) !important;
}
.bg-ocs-dark {
    background-color: var(--bg-dark) !important;
}

/* Gradient Backgrounds */
.bg-gradient-ocs {
    background: linear-gradient(135deg, var(--base-color) 0%, var(--accent-color) 100%);
}
.bg-gradient-ocs-green {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #6B8E1D 100%);
}
.bg-gradient-ocs-hero {
    background: linear-gradient(180deg, #F0F7E6 0%, #E6F3FB 50%, #FFFFFF 100%);
}
.bg-gradient-ocs-blue {
    background: linear-gradient(135deg, var(--accent-color) 0%, #005A96 100%);
}

/* Video Modal Styles - Force black background */
#videoModal .modal-content,
#videoModal .modal-content *,
#videoModal .modal-header,
#videoModal .modal-body {
    background-color: #000000 !important;
    background: #000000 !important;
}

#videoModal .modal-dialog {
    max-width: 900px;
}

#videoModal .ratio {
    background: #000 !important;
}

/* Hero Wave Background - Brand Colors */
.hero-wave-bg {
    background:
        /* Top-left blue blob - strong */
        radial-gradient(ellipse 80% 60% at 0% 0%, rgba(0, 113, 188, 0.5) 0%, transparent 70%),
        /* Top-right green blob - strong */
        radial-gradient(ellipse 60% 50% at 100% 10%, rgba(135, 169, 34, 0.6) 0%, transparent 60%),
        /* Bottom-left green blob - strong */
        radial-gradient(ellipse 70% 80% at 5% 100%, rgba(135, 169, 34, 0.6) 0%, transparent 60%),
        /* Bottom-right blue blob - strong */
        radial-gradient(ellipse 50% 60% at 95% 90%, rgba(0, 113, 188, 0.5) 0%, transparent 50%),
        /* Center fade */
        radial-gradient(ellipse 100% 100% at 50% 50%, rgba(255, 255, 255, 0.9) 0%, transparent 70%),
        /* Base white */
        #ffffff;
}

/* Text Colors */
.text-ocs-primary {
    color: var(--base-color) !important;
}
.text-ocs-secondary {
    color: var(--secondary-color) !important;
}
.text-ocs-accent {
    color: var(--accent-color) !important;
}

/* Gradient Text */
.text-gradient-ocs {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    border-radius: 8px;
    transition: all 0.3s ease;
}
.btn.btn-extra-large {
    font-size: 17px;
}
.btn.btn-large {
    font-size: 15px;
}
.btn.btn-medium {
    font-size: 14px;
}
.btn.btn-small {
    font-size: 13px;
}
.btn.btn-very-small {
    font-size: 12px;
}

/* Primary Button */
.btn-ocs-primary {
    background-color: var(--secondary-color);
    color: var(--white);
    border: 2px solid var(--secondary-color);
}
.btn-ocs-primary:hover {
    background-color: #6B8E1D;
    border-color: #6B8E1D;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(135, 169, 34, 0.3);
}

/* Secondary Button */
.btn-ocs-secondary {
    background-color: var(--accent-color);
    color: var(--white);
    border: 2px solid var(--accent-color);
}
.btn-ocs-secondary:hover {
    background-color: #005A96;
    border-color: #005A96;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 113, 188, 0.3);
}

/* Outline Button */
.btn-ocs-outline {
    background-color: transparent;
    color: var(--base-color);
    border: 2px solid var(--base-color);
}
.btn-ocs-outline:hover {
    background-color: var(--base-color);
    color: var(--white);
}

/* Gradient Button */
.btn-gradient-ocs {
    background: linear-gradient(135deg, var(--base-color), var(--accent-color));
    background-size: 200% auto;
    color: var(--white);
    border: none;
}
.btn-gradient-ocs:hover {
    background-position: right center;
    color: var(--white);
}

/* Feature Boxes */
.feature-box-ocs {
    background: var(--white);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(77, 77, 77, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(77, 77, 77, 0.05);
}
.feature-box-ocs:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(77, 77, 77, 0.15);
}
.feature-box-ocs.feature-highlighted {
    border: 2px solid var(--secondary-color);
    background: linear-gradient(180deg, var(--white) 0%, #F0F7E6 100%);
    box-shadow: 0 15px 50px rgba(135, 169, 34, 0.15);
}
.feature-box-ocs.feature-highlighted:hover {
    box-shadow: 0 25px 70px rgba(135, 169, 34, 0.25);
}

/* AI Feature Card with Shimmer Effect */
.ai-feature-card {
    border: 2px solid var(--secondary-color) !important;
    background: linear-gradient(180deg, var(--white) 0%, #F0F7E6 100%) !important;
    overflow: hidden;
}

/* AI Powered Badge */
.feature-badge {
    position: absolute;
    top: 8px;
    right: 23px;
    background: linear-gradient(135deg, #87A922 0%, #10B981 100%);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 20px;
    z-index: 10;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(135, 169, 34, 0.3);
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(135, 169, 34, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 16px rgba(135, 169, 34, 0.4);
    }
}

.shimmer-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(135, 169, 34, 0.08) 50%,
        transparent 100%
    );
    animation: shimmer-move 2.5s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}
@keyframes shimmer-move {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Feature Text Highlight - Underline Style */
.text-highlight {
    font-weight: 600;
    border-bottom: 2px solid #0071BC;
    padding-bottom: 1px;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

/* Feature Card Hover Effects */
.feature-box {
    transition: all 0.3s ease;
    border: 1px solid #E5E7EB;
}
.feature-box:hover {
    border-color: var(--secondary-color) !important;
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(135, 169, 34, 0.15) !important;
}
.feature-box:hover .feature-box-icon > div {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}
.feature-box .feature-box-icon > div {
    transition: transform 0.3s ease;
}
/* AI Feature Card - Green border by default */
.ai-feature-card {
    border: 2px solid var(--secondary-color) !important;
}

.feature-icon-ocs {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.feature-icon-ocs.health {
    background: linear-gradient(135deg, #FEE2E2, #FECACA);
    color: var(--danger-color);
}
.feature-icon-ocs.schedule {
    background: linear-gradient(135deg, #E0F2FE, #BAE6FD);
    color: var(--info-color);
}
.feature-icon-ocs.family {
    background: linear-gradient(135deg, #DCFCE7, #BBF7D0);
    color: var(--success-color);
}
.feature-icon-ocs.reports {
    background: linear-gradient(135deg, #FEF3C7, #FDE68A);
    color: var(--warning-color);
}

/* Health Status Cards */
.health-status-card {
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}
.health-status-card.normal {
    background: linear-gradient(135deg, #DCFCE7, #BBF7D0);
    border-left: 4px solid var(--status-normal);
}
.health-status-card.attention {
    background: linear-gradient(135deg, #FEF3C7, #FDE68A);
    border-left: 4px solid var(--status-attention);
}
.health-status-card.alert {
    background: linear-gradient(135deg, #FEE2E2, #FECACA);
    border-left: 4px solid var(--status-alert);
}

/* Process Steps */
.process-step-ocs .process-step-icon {
    background: var(--bg-accent);
    color: var(--base-color);
    border: 2px solid var(--accent-color);
}
.process-step-ocs .process-step-icon:hover,
.process-step-ocs:hover .process-step-icon {
    background: var(--accent-color);
    color: var(--white);
}
.process-step-ocs .progress-step-separator {
    background: var(--accent-color);
}

/* iPhone Mockup */
.iphone-mockup {
    filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.25));
}
.iphone-mockup:hover {
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.3));
    transition: filter 0.3s ease;
}

/* Phone Mockup Image Quality - Prevent blur */
.phone-mockup-container img,
.phone-mockup-container picture img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: high-quality;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0); /* Force GPU rendering */
}

.phone-mockup-container {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Picture element - ensure proper sizing */
.phone-mockup-container picture {
    display: block;
    width: 100%;
    height: 100%;
}

.phone-mockup-container picture img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

/* Float animation - smoother to reduce blur */
.phone-mockup-container.animation-float {
    animation: float 4s ease-in-out infinite;
}

/* Review Stars */
.review-star-icon i {
    color: #FFB800;
}

/* Newsletter */
.newsletter-style-02 .btn {
    padding: 7px 18px 9px 18px;
}
.newsletter-style-02 input {
    padding-right: 50px;
    font-size: 14px;
    border-radius: 8px;
}

/* Header */
header .navbar-brand img {
    max-height: 40px;
}
.navbar .navbar-nav .nav-link {
    font-weight: 600;
    font-size: 16px;
    color: var(--dark-gray);
}
.navbar .navbar-nav .nav-link:hover {
    color: var(--secondary-color);
}
header .btn i {
    top: -1px !important;
}

/* Hero Phone - prevent overflow into nav */
.hero-section .hero-phone {
    max-height: calc(100vh - 180px);
}

/* Hero Section */
.hero-ocs {
    background: linear-gradient(180deg, #F0F7E6 0%, #E6F3FB 50%, #FFFFFF 100%);
    position: relative;
    overflow: hidden;
}
.hero-ocs::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 80%;
    height: 100%;
    background: radial-gradient(circle, rgba(0,113,188,0.08) 0%, transparent 70%);
    z-index: 0;
}
.hero-ocs::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -20%;
    width: 60%;
    height: 80%;
    background: radial-gradient(circle, rgba(135,169,34,0.08) 0%, transparent 70%);
    z-index: 0;
}

/* Pricing Cards */
.pricing-card-ocs {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 50px rgba(77, 77, 77, 0.1);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}
.pricing-card-ocs:hover,
.pricing-card-ocs.featured {
    border-color: #87A922;
    transform: translateY(-10px);
}
.pricing-card-ocs.featured {
    background: linear-gradient(180deg, var(--white) 0%, #F0F7E6 100%);
}

/* Testimonial Cards */
.testimonial-card-ocs {
    background: var(--white);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(30, 59, 85, 0.08);
}
.testimonial-card-ocs .avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--secondary-color);
}

/* Footer */
footer.footer-ocs {
    background: #4D4D4D;
    color: var(--white);
}
footer.footer-ocs a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}
footer.footer-ocs a:hover {
    color: #87A922;
}
footer .footer-logo img {
    max-height: 40px;
}
footer ul li {
    margin-bottom: 0;
}

/* App Download Section */
.app-download-section {
    background: linear-gradient(135deg, #87A922 0%, #6B8E1D 100%);
    border-radius: 24px;
    padding: 60px;
    position: relative;
    overflow: hidden;
}
.app-download-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -25%;
    width: 70%;
    height: 150%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    z-index: 0;
}

/* Badge Styles */
.badge-ocs {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge-ocs.primary {
    background: #4D4D4D;
    color: var(--white);
}
.badge-ocs.secondary {
    background: #87A922;
    color: var(--white);
}
.badge-ocs.soft {
    background: #F0F7E6;
    color: #87A922;
}
.badge-ocs.accent {
    background: #0071BC;
    color: var(--white);
}
.badge-ocs.ai {
    background: linear-gradient(135deg, #8B5CF6, #A855F7);
    color: var(--white);
    display: inline-flex;
    align-items: center;
}

/* AI Feature Badge */
.ai-feature-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #8B5CF6, #A855F7);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Card Hover Effects */
.card-hover-ocs {
    transition: all 0.3s ease;
}
.card-hover-ocs:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(30, 59, 85, 0.15);
}

/* Spacing Utilities */
.bottom-130px {
    bottom: 130px;
}
.bottom-150px {
    bottom: 150px;
}
.top-25 {
    top: 25% !important;
}

/* Height Utilities */
.h-64px {
    height: 64px !important;
}

/* Margin Utilities */
.margin-minus-95px-bottom {
    margin-bottom: -95px;
}

/* Border Utilities */
.border-radius-ocs {
    border-radius: 16px !important;
}
.border-radius-ocs-lg {
    border-radius: 24px !important;
}

/* Scrolling Text */
.marquees-text {
    word-break: normal;
    color: rgba(30, 59, 85, 0.05);
}

/* Counter Section */
.counter-ocs h2 {
    color: var(--base-color);
    font-weight: 800;
}

/* Use Case Tabs */
.use-case-tabs .nav-link {
    background: var(--white);
    border: 2px solid var(--light-gray);
    border-radius: 12px;
    padding: 20px 30px;
    color: var(--dark-gray);
    transition: all 0.3s ease;
}
.use-case-tabs .nav-link:hover,
.use-case-tabs .nav-link.active {
    border-color: var(--secondary-color);
    background: var(--bg-secondary);
    color: var(--base-color);
}

/* Mobile Responsive */
@media (max-width: 1199px) {
    .review-star-icon i {
        letter-spacing: 2px;
    }
    .newsletter-style-02 input {
        padding-left: 15px;
    }
}

@media (max-width: 991px) {
    .hero-ocs h1 {
        font-size: 2.5rem;
    }
    .app-download-section {
        padding: 40px 30px;
    }
}

@media (max-width: 767px) {
    .feature-box-ocs {
        padding: 25px;
    }
    .pricing-card-ocs {
        padding: 30px;
    }
}

@media (max-width: 575px) {
    header .header-icon .btn.btn-rounded.btn-small {
        padding-left: 20px;
    }
    .hero-ocs h1 {
        font-size: 2rem;
    }
}

/* Animation Classes */
.float-animation {
    animation: float 3s ease-in-out infinite;
}
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.pulse-animation {
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Logo Text Styling */
.navbar-brand {
    gap: 0 !important;
}
.logo-text {
    font-family: var(--alt-font);
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    letter-spacing: -0.5px;
}
.logo-one {
    color: var(--base-color);
}
.logo-sync {
    color: var(--secondary-color);
}
@media (max-width: 767px) {
    .logo-text {
        font-size: 20px;
    }
}
@media (max-width: 575px) {
    .logo-text {
        font-size: 18px;
    }
}

/* Navigation Active State (Scroll Spy) */
.navbar .navbar-nav .nav-link.active {
    color: var(--secondary-color) !important;
    font-weight: 700;
}
.navbar .navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}
.navbar .navbar-nav .nav-item {
    position: relative;
}

/* Sticky Header Background */
header.sticky-header nav.navbar {
    background-color: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

/* Hide Header for Stack Box Section */
header.header-compact {
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.3s ease;
}

/* Floating Logo for Stack Box Section */
.floating-logo {
    position: fixed;
    top: 15px;
    left: 20px;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.floating-logo.visible {
    opacity: 1;
    pointer-events: auto;
}

.floating-logo img {
    max-height: 40px;
}

.floating-logo .logo-text {
    font-family: var(--alt-font);
    font-size: 22px;
    font-weight: 800;
}

/* Stack Box - 7 Items Support */
.stack-box {
    height: 700vh; /* 7 stack items */
}

.stack-box .stack-item.stack-item-04 {
    z-index: 8;
}
.stack-box .stack-item.stack-item-05 {
    z-index: 7;
}
.stack-box .stack-item.stack-item-06 {
    z-index: 6;
}
.stack-box .stack-item.stack-item-07 {
    z-index: 5;
}

/* Stack Box Mobile Responsive */
@media (max-width: 1199px) {
    .stack-box {
        height: auto !important;
    }
    .stack-box .stack-box-contain {
        height: auto !important;
        position: relative !important;
    }
    .stack-box .stack-item {
        height: auto !important;
        position: relative !important;
        padding-top: 60px !important;
        padding-bottom: 60px !important;
    }
    .stack-box .stack-item .stack-item-wrapper {
        position: relative !important;
        height: auto !important;
    }
}

/* Stack Box Phone Frame */
.stack-box .phone-mockup-container {
    transition: transform 0.3s ease;
}
.stack-box .phone-mockup-container:hover {
    transform: translateY(-10px);
}

/* Stack box phone size for 15 inch monitors */
@media (max-width: 1440px) and (max-height: 900px) {
    .stack-box .phone-mockup-container {
        max-width: 300px !important;
    }
}

/* Stack box phone size for 14 inch monitors */
@media (max-height: 800px) {
    .stack-box .phone-mockup-container {
        max-width: 280px !important;
    }
}

/* Stack box phone size for very small screens */
@media (max-height: 768px) {
    .stack-box .phone-mockup-container {
        max-width: 260px !important;
    }
}

/* ===================================
   Video Thumbnail with Pulse Animation
====================================== */
.video-thumbnail-wrapper {
    display: flex;
    justify-content: center;
}

@media (min-width: 992px) {
    .video-thumbnail-wrapper {
        justify-content: flex-start;
    }
}

.video-thumbnail {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-thumbnail:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 50px rgba(0,0,0,0.2) !important;
}

.video-thumbnail:hover .play-button {
    transform: scale(1.1);
}

.play-button {
    transition: transform 0.3s ease;
}

/* Pulse Animation */
.play-button-pulse {
    position: absolute;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(135, 169, 34, 0.4);
    animation: pulse-animation 2s ease-out infinite;
}

@keyframes pulse-animation {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

/* Video Demo Section */
#demo-video .video-thumbnail {
    max-width: 500px;
}

#demo-video .play-button-pulse {
    width: 90px;
    height: 90px;
}

/* Video thumbnail responsive sizes */
@media (max-width: 991px) {
    #demo-video .video-thumbnail {
        max-width: 100% !important;
    }
    #demo-video .play-button-pulse,
    #demo-video .video-thumbnail .play-button {
        width: 70px !important;
        height: 70px !important;
    }
    #demo-video .video-thumbnail .play-button i {
        font-size: 26px !important;
    }
}

@media (max-width: 575px) {
    #demo-video .play-button-pulse,
    #demo-video .video-thumbnail .play-button {
        width: 60px !important;
        height: 60px !important;
    }
    #demo-video .video-thumbnail .play-button i {
        font-size: 22px !important;
    }
}

/* ===================================
   Hero Slideshow
====================================== */
.hero-slideshow {
    position: absolute;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

/* Ensure picture element images fill container */
.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

/* ===================================
   Hero Section - Large Screens Text
====================================== */
@media (min-width: 1441px) {
    /* Title - bigger, main focus (reduced 10%) */
    .hero-section .fs-90 {
        font-size: 65px !important;
    }
    .hero-section .xl-fs-80 {
        font-size: 58px !important;
    }
    .hero-section .lh-80 {
        line-height: 72px !important;
    }
    /* Description (reduced 10%) */
    .hero-section .fs-19 {
        font-size: 26px !important;
        line-height: 38px !important;
    }
}

/* ===================================
   Hero Section - Responsive Fit
====================================== */
.hero-section {
    height: 100vh !important;
    max-height: 100vh !important;
    overflow: hidden !important;
}

.hero-section .container {
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-section .row {
    width: 100%;
}

/* Hide marquee text on smaller screens to save space */
@media (max-height: 800px) {
    .marquees-text {
        display: none !important;
    }
}

/* ===================================
   14/15 inch Monitor Responsive (1366x768 to 1440x900)
====================================== */
@media (max-width: 1440px) {
    /* Hero Title - Smaller */
    .fs-90 {
        font-size: 52px !important;
    }
    .xl-fs-80 {
        font-size: 48px !important;
    }
    .lh-80 {
        line-height: 52px !important;
    }

    /* Hero Description */
    .fs-19 {
        font-size: 15px !important;
    }
    .lh-32 {
        line-height: 24px !important;
    }

    /* Phone Mockup - Responsive */
    .hero-section .phone-mockup-container:not(.hero-phone) {
        max-width: 280px !important;
    }

    /* Reduce section padding */
    section:not(.hero-section) {
        padding-top: 50px !important;
        padding-bottom: 50px !important;
    }

    /* Features section */
    .feature-box {
        padding: 18px !important;
    }
    .feature-box-icon .w-70px {
        width: 50px !important;
        height: 50px !important;
    }
    .feature-box-icon svg {
        width: 22px !important;
        height: 22px !important;
    }

    /* Marquee text */
    .marquees-text {
        font-size: 100px !important;
        bottom: 40px !important;
    }

    /* Stack box items */
    .stack-box .phone-mockup-container {
        max-width: 280px !important;
    }

    /* Pricing cards */
    .pricing-card-ocs {
        padding: 22px !important;
    }

    /* Section titles */
    h2 {
        font-size: 26px !important;
    }
    h3 {
        font-size: 20px !important;
    }

    /* Reduce margins */
    .mb-25px {
        margin-bottom: 12px !important;
    }
    .mb-30px {
        margin-bottom: 15px !important;
    }
}

/* Specifically for 14/15 inch laptops (1366x768 - 1440x900) */
@media (max-width: 1440px) and (max-height: 900px) {
    .hero-section .phone-mockup-container:not(.hero-phone) {
        max-width: 260px !important;
    }

    .hero-section .hero-phone {
        max-width: 320px !important;
    }

    .fs-90, .xl-fs-80 {
        font-size: 56px !important;
    }
    .lh-80 {
        line-height: 60px !important;
    }

    .fs-19 {
        font-size: 17px !important;
    }
    .lh-32 {
        line-height: 28px !important;
    }

    /* Reduce hero container padding */
    .hero-section .container {
        padding-top: 60px !important;
        padding-bottom: 10px !important;
    }
}

/* Specifically for 14 inch laptops (1366x768) */
@media (max-width: 1366px) {
    .fs-90, .xl-fs-80 {
        font-size: 52px !important;
    }
    .lh-80 {
        line-height: 56px !important;
    }

    .fs-19 {
        font-size: 16px !important;
    }

    /* Phone Mockup */
    .hero-section .phone-mockup-container:not(.hero-phone) {
        max-width: 240px !important;
    }

    .hero-section .hero-phone {
        max-width: 300px !important;
    }

    /* Watch Demo Button */
    a[onclick="openVideoPopup()"] img {
        height: 38px !important;
    }

    /* Stack box items */
    .stack-box .phone-mockup-container {
        max-width: 260px !important;
    }

    /* Container padding */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Feature text */
    .feature-box-content span {
        font-size: 15px !important;
    }
    .feature-box-content p {
        font-size: 13px !important;
    }

    /* App store buttons */
    .hero-section img[alt*="Store"] {
        max-height: 45px !important;
    }
}

/* Very small height screens */
@media (max-height: 768px) {
    .hero-section .phone-mockup-container:not(.hero-phone) {
        max-width: 220px !important;
    }

    .hero-section .hero-phone {
        max-width: 280px !important;
    }

    .fs-90, .xl-fs-80 {
        font-size: 48px !important;
    }
    .lh-80 {
        line-height: 52px !important;
    }

    .fs-19 {
        font-size: 15px !important;
    }

    .hero-section .container {
        padding-top: 50px !important;
        padding-bottom: 5px !important;
    }
}

/* ===================================
   Mobile Navigation Fix
====================================== */
@media (max-width: 991px) {
    /* Header layout - flex row */
    header nav.navbar .container-fluid {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    /* Logo column */
    header nav.navbar .col-auto.me-auto {
        flex: 0 0 auto;
        order: 1;
    }

    /* Smaller logo on mobile */
    header nav.navbar .navbar-brand img {
        max-height: 32px !important;
    }

    /* Smaller logo text on mobile */
    header nav.navbar .logo-text {
        font-size: 18px !important;
    }

    /* Menu order column - contains hamburger */
    header nav.navbar .col-auto.menu-order {
        flex: 0 0 auto;
        order: 2;
        position: static !important;
    }

    /* Hamburger button positioning */
    .navbar-toggler {
        display: flex !important;
        align-items: center;
        justify-content: center;
        position: relative !important;
        float: none !important;
        margin: 0 !important;
        z-index: 9999;
    }

    /* Hamburger lines visible */
    .navbar-toggler-line {
        background-color: #4D4D4D !important;
    }

    /* Hide "Get the App" button on mobile to make room */
    header nav.navbar .header-button {
        display: none !important;
    }

    /* Hide floating logo on mobile */
    .floating-logo {
        display: none !important;
    }

    /* Mobile header - smaller padding */
    header nav.navbar {
        padding: 8px 0 !important;
    }

    /* Navbar collapse - mobile menu dropdown */
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        z-index: 9998;
    }

    /* Hero section - full visibility on mobile */
    .hero-section {
        height: auto !important;
        min-height: 100vh !important;
        max-height: none !important;
        padding-top: 50px !important;
        padding-bottom: 20px !important;
    }

    .hero-section .container {
        height: auto !important;
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }

    /* Hero phone mockup on mobile */
    .hero-section .hero-phone {
        max-width: 280px !important;
        margin: 0 auto;
    }

    /* Hero text adjustments for mobile */
    .hero-section .fs-90,
    .hero-section .xl-fs-80 {
        font-size: 36px !important;
        line-height: 42px !important;
    }

    .hero-section .lh-80 {
        line-height: 42px !important;
    }

    .hero-section .fs-19 {
        font-size: 14px !important;
    }

    /* Store & Watch Demo buttons - responsive sizing on mobile */
    .hero-section .d-flex.flex-wrap img[alt="Get it on Google Play"],
    .hero-section .d-flex.flex-wrap img[alt="Download on App Store"] {
        height: 40px !important;
    }
    .watch-demo-btn {
        flex-basis: 100% !important;
        display: flex !important;
        justify-content: center;
        margin-top: 2px;
    }
    .watch-demo-btn img {
        height: 40px !important;
        width: auto !important;
    }
}


/* ===================================
   How It Works - Interactive Slideshow
====================================== */

/* Slide Images */
.hiw-slide-images {
    position: relative;
}

.hiw-slide-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.hiw-slide-img.active {
    opacity: 1;
}

/* Step Items */
.hiw-step {
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 5px;
    margin-left: -5px;
}

.hiw-step:hover {
    background: rgba(135, 169, 34, 0.05);
}

.hiw-step.active {
    background: rgba(135, 169, 34, 0.08);
}

.hiw-step.active .process-step-icon,
.hiw-step.completed .process-step-icon {
    background: var(--secondary-color) !important;
}

.hiw-step.active .process-step-icon .number,
.hiw-step.completed .process-step-icon .number {
    color: white !important;
}

.hiw-step.active .process-step-icon .box-overlay,
.hiw-step.completed .process-step-icon .box-overlay {
    transform: scale(1);
    opacity: 1;
}

/* Hide horizontal progress bar */
.hiw-progress-bar {
    display: none;
}

/* Vertical Progress Line */
.hiw-step .progress-step-separator {
    position: absolute;
    left: 50%;
    top: 55px;
    transform: translateX(-50%);
    width: 5px;
    height: calc(100% - 55px);
    background: transparent !important;
    overflow: visible;
    border-radius: 3px;
}

.hiw-step .progress-step-separator::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: #87A922;
    border-radius: 3px;
    box-shadow: 0 0 8px rgba(135, 169, 34, 0.6);
    transition: height 0.1s linear;
}

.hiw-step.active .progress-step-separator::after {
    animation: hiwVerticalFill 2.5s linear forwards;
}

/* Keep green line visible for completed steps */
.hiw-step.completed .progress-step-separator::after {
    height: 100%;
}

@keyframes hiwVerticalFill {
    from { height: 0%; }
    to { height: 100%; }
}

/* Larger text container for How It Works */
#how-it-works .process-content {
    padding-right: 15px;
}

/* Align phone mockup with steps */
#how-it-works .phone-mockup-container {
    margin-top: 0;
}

/* Pause animation on hover */
.hiw-steps-container:hover .hiw-step.active .progress-step-separator::after {
    animation-play-state: paused;
}

/* Trust Stats Section */
.ocs-stat-item + .ocs-stat-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 25%;
    height: 50%;
    width: 1px;
    background: #E2E8F0;
}
@media (max-width: 767px) {
    .ocs-stat-item + .ocs-stat-item::before { display: none; }
    .ocs-stat-item { padding: 20px 10px !important; }
    .ocs-stat-item div[style*="font-size: 36px"] { font-size: 28px !important; }
}
