:root {
    --background-color: #ffffff;
    --text-color: #212529;
    --accent-color: #00A3E0; /* Original medical blue color */
    --text-gray: #6c757d;
    --mockup-resize-progress: 0;
    --mockup-max-width: 680px;
    --mockup-min-width: 340px;
}

/* Vertical Separator */
.vertical-separator {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    height: 60vh;
    width: 1px;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.powered-by-openai {
    position: fixed;
    right: 40px;
    bottom: 30px;
    transform: rotate(90deg);
    transform-origin: right bottom;
    font-size: 14px;
    color: #6c757d;
    z-index: 1000;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .vertical-separator, .powered-by-openai {
        display: none;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.2;
    min-height: 100vh;
    overflow-x: hidden;
    scroll-snap-type: y proximity;
    scroll-behavior: smooth;
}

/* Header */
header {
    padding: 20px 96px;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 20px;
    border: 1.5px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

@media (min-width: 769px) {
    nav {
        /* These styles are now in the main nav selector */
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 500;
    text-decoration: none;
    color: var(--text-color);
    z-index: 100;
}

.logo-icon {
    width: 24px;
    height: 24px;
    background-image: url('../img/sana.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 4px;
}

.logo-separator {
    display: inline-block;
    width: 1px;
    height: 16px;
    background-color: rgba(0, 0, 0, 0.2);
    margin: 0;
}

.logo-powered-by {
    font-size: 14px;
    font-weight: 400;
    color: #6c757d;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .logo-separator, .logo-powered-by {
        display: inline-block;
    }
    
    .logo-powered-by {
        font-size: 12px;
    }
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 16px;
    position: relative;
    padding: 4px 0;
    transition: all 0.3s ease;
}

.nav-link:after {
    display: none; /* Remove underline completely */
}

.nav-link:hover {
    color: #20aee5; /* Slightly brighter color on hover */
    text-shadow: 0 0 5px rgba(0, 163, 224, 0.7),
                 0 0 10px rgba(0, 163, 224, 0.5),
                 0 0 15px rgba(0, 163, 224, 0.3),
                 0 0 20px rgba(0, 163, 224, 0.2);
    filter: brightness(1.1);
}

.nav-button {
    padding: 8px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
}

.start-header-button {
    background-color: var(--accent-color);
    color: #fff;
    transition: all 0.3s ease;
    margin-left: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.start-header-button:hover {
    box-shadow: 0 0 7px rgba(255, 255, 255, 0.9),
                0 0 13px rgba(255, 255, 255, 0.7),
                0 0 20px rgba(0, 163, 224, 0.5);
    background-color: #20aee5; /* Slightly brighter accent color on hover */
    filter: brightness(1.05);
}

.login {
    color: var(--text-color);
    background: rgba(0, 0, 0, 0.05);
}

.get-started {
    color: #fff;
    background: var(--accent-color);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 24px;
    cursor: pointer;
    z-index: 100;
}

/* Hero Section */
.hero-section {
    padding: 100px 20px 0;
    text-align: center;
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 60px;
}

.subtitle {
    color: #6c757d;
    font-size: clamp(20px, 4.5vw, 28px);
    font-weight: 400;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.whatsapp-logo {
    width: 24px;
    height: 24px;
    filter: none; /* No inversion needed for light theme */
}

.main-title {
    font-size: 72px; /* Fixed size for desktop */
    font-weight: 600;
    margin-bottom: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
    line-height: 1.2;
    position: relative;
}

.demo-container {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 1000px;
    margin: 40px auto 0;
    width: 100%;
    justify-content: center;
    position: relative; /* Create stacking context for children */
}

.demo-input {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 14px;
    padding: 12px 20px;
    width: min(500px, 90%);
    margin: 0;
    gap: 4px;
    font-size: clamp(16px, 2.5vw, 18px);
    height: 52px; /* Explicit height for consistency */
    box-sizing: border-box;
    position: relative;
    z-index: 10; /* Higher z-index to be above start-button */
    border: none;
    box-shadow: none;
}

@media (min-width: 769px) {
    .demo-input {
        margin: 0;
    }
}

.demo-input img {
    width: 24px;
    height: 24px;
    margin-right: 8px;
    flex-shrink: 0;
}

.demo-input .greeting {
    color: #6c757d;
    white-space: nowrap;
    line-height: 1.5;
    margin-right: 4px;
}

.message-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    flex: 1;
}

.demo-input .message {
    color: #6c757d;
    white-space: nowrap;
    line-height: 1.5;
}

.demo-input .arrow {
    background-color: var(--accent-color);
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
    transition: transform 0.3s ease;
    font-weight: 900;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

.demo-input .message.typing {
    animation: typing 1.5s steps(40, end);
}

/* Add a breathing animation for the start button */
@keyframes buttonGlowBreathe {
    0%, 100% {
        box-shadow: 0 0 3px rgba(255, 255, 255, 0.8),
                    0 0 10px rgba(255, 255, 255, 0.5),
                    0 0 17px rgba(0, 163, 224, 0.5),
                    0 0 26px rgba(0, 163, 224, 0.3);
    }
    50% {
        box-shadow: 0 0 4px rgba(255, 255, 255, 0.9),
                    0 0 12px rgba(255, 255, 255, 0.6),
                    0 0 20px rgba(0, 163, 224, 0.6),
                    0 0 30px rgba(0, 163, 224, 0.4);
    }
}

.start-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--accent-color);
    color: #fff;
    font-size: clamp(16px, 2.5vw, 18px);
    font-weight: 500;
    padding: 12px 28px;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin: 0;
    text-align: center;
    white-space: nowrap;
    height: 52px; /* Match the height of demo-input */
    position: relative; /* Create stacking context */
    z-index: 5; /* Lower z-index to be below demo-input */
    box-sizing: border-box;
    animation: buttonGlowBreathe 4s ease-in-out infinite;
}

.start-button:hover {
    box-shadow: 0 0 7px rgba(255, 255, 255, 0.9),
                0 0 13px rgba(255, 255, 255, 0.7),
                0 0 20px rgba(0, 163, 224, 0.6),
                0 0 33px rgba(0, 163, 224, 0.4),
                0 0 46px rgba(0, 163, 224, 0.2);
    background-color: #20aee5; /* Slightly brighter accent color on hover */
    filter: brightness(1.05);
    animation: none; /* Stop breathing animation on hover */
}

.highlight-container {
    display: inline-flex;
    position: relative;
    min-width: clamp(120px, 20vw, 160px);
    text-align: left;
}

.highlight {
    color: var(--accent-color);
    position: relative;
    white-space: nowrap;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-shadow: none;
    filter: none;
}

.highlight.typing::after {
    content: '';
    position: absolute;
    right: -2px;
    top: 0;
    height: 100%;
    width: 2px;
    background-color: var(--accent-color);
    animation: blink 0.8s step-end infinite;
    box-shadow: none;
    filter: none;
}

@keyframes blink {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

/* Neon flicker animation for light theme - keep for buttons but not for text */
@keyframes neonFlicker {
    0%, 100% { 
        opacity: 1;
        filter: brightness(1.2);
        text-shadow: 0 0 2px rgba(255, 255, 255, 0.8),
                    0 0 4px rgba(255, 255, 255, 0.6),
                    0 0 12px var(--accent-color),
                    0 0 24px var(--accent-color),
                    0 0 36px var(--accent-color),
                    0 0 48px var(--accent-color);
    }
    50% { 
        opacity: 0.98;
        filter: brightness(1.1);
        text-shadow: 0 0 2px rgba(255, 255, 255, 0.7),
                    0 0 4px rgba(255, 255, 255, 0.5),
                    0 0 11px var(--accent-color),
                    0 0 22px var(--accent-color),
                    0 0 34px var(--accent-color);
    }
}

.highlight {
    animation: none;
}

.sana-highlight {
    color: var(--accent-color);
    text-shadow: none;
    filter: none;
    animation: none;
}

/* Desktop-specific styles */
@media (min-width: 769px) {
    .highlight {
        display: inline-block;
    }

    .highlight.typing::after {
        top: 0;
        transform: none;
    }

    .demo-container {
        gap: 10px;
    }
}

/* Tablet sizes */
@media (max-width: 1024px) and (min-width: 769px) {
    .main-title {
        font-size: 60px; /* Slightly smaller for medium screens */
    }
}

.backed-by {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    color: #6c757d;
    flex-wrap: wrap;
    padding: 0 20px;
}

.product-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.03);
    padding: 8px 16px;
    border-radius: 100px;
    border: 1px solid #dee2e6;
    white-space: nowrap;
}

.badge-icon {
    color: var(--accent-color);
}

/* Demo Section */
.demo-section {
    padding: 40px 20px;
    display: flex;
    justify-content: center;
}

/* Communication Section */
.communication-section {
    padding: 80px 20px;
    text-align: center;
    overflow: hidden;
    height: calc(100vh - 80px); /* Subtracting estimated footer height */
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
}

.communication-container {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.slogan-content {
    text-align: center;
    width: 100%;
}

.slogan-primary {
    font-size: clamp(32px, 5vw, 48px);
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 16px;
}

.slogan-secondary {
    font-size: clamp(24px, 4vw, 32px);
    color: var(--text-color);
    font-weight: 500;
    margin-top: 0;
    margin-bottom: 40px;
}

.slogan-tertiary {
    font-size: clamp(14px, 2vw, 18px);
    color: #6c757d;
    font-weight: 400;
    margin-top: -30px;
    margin-bottom: 10px; /* Reduced from 40px to make room for user count */
}

.user-count {
    font-size: clamp(36px, 6vw, 60px);
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 40px;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.user-number {
    color: var(--accent-color);
}

.sana-highlight {
    color: var(--accent-color);
    text-shadow: none;
    filter: none;
    animation: none;
}

.features-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--accent-color);
    color: #fff;
    font-size: clamp(16px, 2.5vw, 18px);
    font-weight: 500;
    padding: 12px 28px;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin: 0;
    text-align: center;
    white-space: nowrap;
    height: 52px;
    position: relative;
    z-index: 5;
    box-sizing: border-box;
    animation: buttonGlowBreathe 4s ease-in-out infinite;
}

.features-button:hover {
    box-shadow: 0 0 7px rgba(255, 255, 255, 0.9),
                0 0 13px rgba(255, 255, 255, 0.7),
                0 0 20px rgba(0, 163, 224, 0.6),
                0 0 33px rgba(0, 163, 224, 0.4),
                0 0 46px rgba(0, 163, 224, 0.2);
    background-color: #20aee5; /* Slightly brighter accent color on hover */
    filter: brightness(1.05);
    animation: none;
}

/* Remove old comm content styles or adapt them */
.comm-content {
    display: none;
}

.comm-options {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.comm-option {
    font-size: clamp(32px, 5vw, 64px);
    color: #adb5bd;
    font-weight: 500;
    text-align: left;
}

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

.try-button {
    display: inline-block;
    padding: 12px 24px;
    background: var(--accent-color);
    color: #fff;
    text-decoration: none;
    border-radius: 100px;
    font-weight: 500;
    margin-top: 40px;
}

.phone-demo {
    max-width: min(400px, 100%);
    height: auto;
    margin-left: 60px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .communication-container {
        flex-direction: column;
        align-items: center;
    }

    .phone-demo {
        margin-left: 0;
        margin-top: 40px;
        max-width: 300px;
    }

    .comm-options {
        align-items: center;
    }

    .comm-option {
        text-align: center;
    }
}

@media (max-width: 768px) {
    header {
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        padding: 0;
        border-bottom: none;
    }
    
    nav {
        background: rgba(255, 255, 255, 0.6);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        padding: 0 16px;
        height: 60px;
        display: flex;
        align-items: center;
        border-radius: 0;
        border: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
        width: 100%;
        max-width: 100%;
    }
    
    /* Adjust logo size to better fit the 60px height */
    .logo {
        font-size: 18px;
    }
    
    .logo-icon {
        width: 24px;
        height: 24px;
    }
    
    /* Adjust menu toggle size */
    .menu-toggle {
        font-size: 22px;
    }
    
    .nav-links {
        background-color: rgba(255, 255, 255, 0.7);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }

    .hero-section {
        padding: 40px 24px 0;
        min-height: 50vh;
        margin-bottom: 0;
    }

    .main-title {
        font-size: 48px;
        padding: 0;
        margin: 0 auto 16px;
        max-width: 90%;
        line-height: 1.15;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .highlight-container {
        min-width: clamp(140px, 35vw, 200px);
        justify-content: center;
        height: 52px;
        align-items: center;
        position: relative;
    }

    .highlight {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        width: auto;
        min-width: 20px;
    }

    .highlight.typing::after {
        right: -4px;
        top: 50%;
        transform: translateY(-50%);
        height: 1.1em;
    }

    .subtitle {
        font-size: 16px;
        margin-bottom: 12px;
        gap: 6px;
    }

    .whatsapp-logo {
        width: 16px;
        height: 16px;
    }

    .demo-container {
        flex-direction: column;
        margin: 20px auto 0;
    }

    .demo-input {
        margin: 0;
        width: min(500px, 90%);
        gap: 2px;
        padding: 8px 12px;
        height: 44px;
    }

    .demo-input .greeting {
        margin-right: 2px;
    }

    .start-button {
        margin: 0 auto;
        height: 44px; /* Match mobile demo-input height */
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.7);
        flex-direction: column;
        justify-content: center;
        gap: 24px;
        transition: 0.3s ease;
        padding: 20px;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-button {
        width: 200px;
        text-align: center;
    }

    .highlight {
        display: inline-block;
        text-shadow: none;
    }
    
    .highlight.typing::after {
        box-shadow: none;
    }

    body {
        scroll-snap-type: none;
        height: auto;
        overflow-y: auto;
    }

    .mockup-section {
        padding: 0 20px 60px; /* Changed bottom padding from 0 to 60px */
        height: auto;
        min-height: 0;
        display: block;
        width: 100%;
        box-sizing: border-box;
        overflow: hidden;
        margin-top: 0; /* Ensure no top margin */
    }
    
    .mockup-wrapper {
        height: auto;
        position: static;
    }
    
    .mockup-sticky {
        position: static;
        height: auto;
    }
    
    .mockup-group {
        display: block;
        height: auto;
        padding: 0;
        width: 100%;
        box-sizing: border-box;
        margin: 0 auto;
        position: static;
    }
    
    .mockup-image {
        display: block;
        position: static;
        width: 70%;
        max-width: 240px; /* Reduced from 280px to 240px */
        margin: 0 auto;
        opacity: 1;
        box-shadow: none;
    }
    
    .mockup-content {
        display: block;
        position: static;
        opacity: 1;
        text-align: center;
        margin: 30px auto 0;
        padding: 0 20px;
        max-width: 100%;
        transform: translateX(0);
        pointer-events: auto;
        margin-top: 30px;
        margin-bottom: 40px;
    }
    
    .mockup-text {
        font-size: 28px;
        font-weight: 600;
        margin-bottom: 20px; /* Keep 20px margin for mobile */
        text-align: center;
    }
    
    .mockup-description {
        font-size: 16px;
        line-height: 1.5;
        color: #6c757d;
        text-align: center;
        max-width: 320px;
        margin: 0 auto;
    }
    
    /* Hide the pills navigation on mobile */
    .mockup-pills {
        display: none;
    }

    /* All mockup images use the same size */
    .mockup-image:first-of-type {
        max-width: 80%;
    }
    
    /* Simple sizing for mobile */
    :root {
        --mockup-max-width: 340px;
        --mockup-min-width: 340px;
    }

    .communication-section {
        padding: 60px 20px;
        height: auto;
        min-height: 60vh; /* Increased from 50vh to give more space */
        margin-top: 30px; /* Add some spacing after the previous section */
        margin-bottom: 0; /* Remove any bottom margin */
    }
    
    .slogan-primary {
        font-size: 28px;
        margin-bottom: 12px;
    }
    
    .slogan-secondary {
        font-size: 22px;
        margin-bottom: 30px;
        line-height: 1.4;
    }
    
    .slogan-tertiary {
        font-size: 14px;
        margin-top: -20px;
        margin-bottom: 10px;
    }
    
    .slogan-secondary .highlight {
        position: relative;
        display: inline-block;
        transform: none;
        left: auto;
        min-width: auto;
        width: auto;
        margin: 0 3px;
        color: var(--accent-color); /* Use accent color */
    }
    
    .features-button {
        height: 44px;
        padding: 10px 24px;
        font-size: 16px;
    }

    .start-header-button {
        margin-left: 0;
        margin-top: 10px;
        width: 200px;
        text-align: center;
    }
    
    /* All mockup images use the same size */
    .mockup-image:first-of-type {
        max-width: 80%;
    }
    
    /* Simple sizing for mobile */
    :root {
        --mockup-max-width: 340px;
        --mockup-min-width: 340px;
    }

    .capability-image {
        width: 100%;
        height: auto;
        aspect-ratio: 1/1; /* Maintain square aspect ratio */
    }
    
    .capability-title {
        font-size: 22px;
        font-weight: 600;
        margin: 15px 0 10px;
    }
    
    .capability-description {
        font-size: 16px;
        line-height: 1.5;
    }
    
    .user-count {
        font-size: 28px;
        margin-bottom: 30px;
        line-height: 1.1;
    }

    .testimonial-flag {
        width: 40px;
        height: 40px;
    }
    
    .testimonial-name {
        font-size: 15px;
    }
    
    .testimonial-location {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 100px 16px 40px;
    }

    .main-title {
        font-size: 36px; /* Fixed size for small mobile */
        margin: 0 12px 20px;
    }

    .highlight-container {
        min-width: clamp(120px, 32vw, 180px);
        height: 48px;
    }

    .highlight.typing::after {
        right: -3px;
        height: 1em;
        box-shadow: none;
    }

    .demo-input {
        padding: 8px 12px;
        font-size: 13px;
    }
}

/* Mockup Section */
.mockup-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 96px; /* Match header padding */
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.01));
    gap: 40px;
    height: 100vh;
    position: relative;
    scroll-snap-align: start;
    width: 100%;
}

/* Adjust mockup wrapper height for better scroll experience */
.mockup-wrapper {
    height: 150vh; /* Reduced from 300vh to 150vh */
    position: relative;
    width: 100%;
}

.mockup-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.mockup-group {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 60px;
    width: 100%;
    max-width: 1200px; /* Match nav max-width */
    margin: 0 auto;
    position: relative;
    justify-content: center;
    height: 100%;
    padding: 0; /* Remove horizontal padding */
    margin-left: 24px;
    margin-right: 24px;
}

.mockup-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    max-width: 400px;
    opacity: 0;
    position: absolute;
    left: 0;
    transform: translateX(-100%);
    transition: transform 0.5s ease, opacity 0.5s ease;
    pointer-events: none;
}

.mockup-content.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.mockup-text {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 500;
    color: var(--text-color);
    line-height: 1.2;
    text-align: left;
    margin-bottom: 0; /* Reset to original (no explicit margin) */
}

.mockup-description {
    color: #6c757d;
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.5;
    text-align: left;
}

.mockup-image {
    max-width: min(340px, 90%); /* Set default size to the smaller size */
    height: auto;
    border-radius: 40px;
    box-shadow: none;
    transition: max-width 0.5s ease, opacity 0.5s ease;
    position: absolute;
    opacity: 0;
    pointer-events: none;
    margin: auto;
    z-index: 1;
}

/* First image specific style */
.mockup-image:first-of-type {
    max-width: min(680px, 90%); /* First mockup starts larger */
}

/* Active state for all mockup images */
.mockup-image.active {
    opacity: 1;
    pointer-events: auto;
    position: relative;
}

/* Mockup Pills Navigation */
.mockup-pills {
    display: flex;
    flex-direction: column;
    position: absolute;
    right: 20%;
    top: 50%;
    transform: translateY(-50%);
    gap: 16px;
    z-index: 10;
}

.mockup-pill {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    cursor: pointer;
}

.mockup-pill.active {
    background-color: var(--accent-color);
    transform: scale(1.3);
}

@media (max-width: 768px) {
    /* Completely remade mobile mockup section - simplified to show only mockup_1 */
    body {
        overflow-x: hidden;
    }
    
    .mockup-section {
        padding: 0 20px 60px; /* Changed bottom padding from 0 to 60px */
        height: auto;
        min-height: 0;
        display: block;
        width: 100%;
        box-sizing: border-box;
        overflow: hidden;
        margin-top: 0; /* Ensure no top margin */
    }
    
    /* Hide unnecessary elements */
    .mockup-wrapper {
        height: auto;
        position: static;
    }
    
    .mockup-sticky {
        position: static;
        height: auto;
    }
    
    .mockup-group {
        display: block;
        height: auto;
        padding: 0;
        width: 100%;
        box-sizing: border-box;
        margin: 0 auto;
        position: static;
    }
    
    .mockup-image {
        display: block;
        position: static;
        width: 70%;
        max-width: 240px; /* Reduced from 280px to 240px */
        margin: 0 auto;
        opacity: 1;
        box-shadow: none;
    }
    
    .mockup-content {
        display: block;
        position: static;
        opacity: 1;
        text-align: center;
        margin: 30px auto 0;
        padding: 0 20px;
        max-width: 100%;
        transform: translateX(0);
        pointer-events: auto;
        margin-top: 30px;
        margin-bottom: 40px;
    }
    
    .mockup-text {
        font-size: 28px;
        font-weight: 600;
        margin-bottom: 20px; /* Keep 20px margin for mobile */
        text-align: center;
    }
    
    .mockup-description {
        font-size: 16px;
        line-height: 1.5;
        color: #6c757d;
        text-align: center;
        max-width: 320px;
        margin: 0 auto;
    }
    
    /* Hide the pills navigation on mobile */
    .mockup-pills {
        display: none;
    }

    /* All mockup images use the same size */
    .mockup-image:first-of-type {
        max-width: 80%;
    }
    
    /* Simple sizing for mobile */
    :root {
        --mockup-max-width: 340px;
        --mockup-min-width: 340px;
    }
}

/* Add this CSS rule to replace the JavaScript-based resizing */
.mockup-image:first-of-type {
    max-width: calc(var(--mockup-max-width) - ((var(--mockup-max-width) - var(--mockup-min-width)) * var(--mockup-resize-progress))); /* First mockup starts larger */
}

/* Footer Styles */
.site-footer {
    padding: 0 96px;
    width: 100%;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 500;
}

.footer-copyright {
    color: #6c757d;
    font-size: 14px;
}

.social-icons {
    display: flex;
    gap: 15px;
    align-items: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.social-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background-color: transparent;
    text-decoration: none;
}

.social-icon:hover {
    transform: translateY(-2px);
}

.social-icon i {
    color: #6c757d;
    font-size: 18px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #6c757d;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #495057;
}

@media (max-width: 768px) {
    .site-footer {
        padding: 0 16px;
    }

    .footer-content {
        flex-direction: column;
        gap: 15px;
        padding: 20px 0;
    }

    .social-icons {
        position: static;
        transform: none;
        margin: 15px 0;
    }
    
    .footer-links {
        margin-left: 0;
    }
}

/* Feature Labels */
.feature-labels {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 40px;
    z-index: 10;
    text-align: right;
}

.feature-label {
    font-size: 48px; /* Fixed size instead of clamp */
    font-weight: 500;
    color: rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
    position: relative;
    opacity: 0;
    transform: translateX(30px);
}

.feature-label.active {
    color: var(--text-color); /* Default active is black */
    opacity: 1;
    transform: translateX(0);
}

/* Target 2nd and 3rd feature labels using nth-child */
.feature-label:nth-child(2).active,
.feature-label:nth-child(3).active {
    color: var(--accent-color); /* Blue color for 2nd and 3rd feature labels */
}

.feature-description {
    font-size: 20px; /* Fixed size instead of clamp */
    color: #6c757d;
    line-height: 1.5;
    margin-top: 20px; /* Reset back to original 20px */
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    max-width: 300px;
    text-align: right;
}

.feature-description.active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .feature-labels {
        position: static;
        transform: none;
        flex-direction: row;
        justify-content: center;
        gap: 20px;
        margin: 30px 0 0;
        text-align: center;
        flex-wrap: wrap;
    }

    .feature-label {
        font-size: 28px;
        font-weight: 600;
        opacity: 0.6;
        transform: none;
        color: #6c757d; /* Inactive color */
        margin-bottom: 0;
    }
    
    /* Make the first label black */
    .feature-labels > *:first-child,
    .feature-labels > .feature-label:first-child {
        color: #212529; /* Black for first label */
        opacity: 1;
    }
    
    /* Make the 2nd and 3rd labels blue */
    .feature-labels > *:nth-child(2),
    .feature-labels > *:nth-child(3),
    .feature-labels > .feature-label:nth-child(2),
    .feature-labels > .feature-label:nth-child(3) {
        color: var(--accent-color); /* Blue for 2nd and 3rd */
        opacity: 1;
    }
    
    .feature-description {
        font-size: 16px;
        text-align: center;
        opacity: 1;
        transform: none;
        margin: 0 auto;
        max-width: 320px;
        width: 100%;
        flex-basis: 100%;
        color: #6c757d;
        line-height: 1.5;
    }
    
    /* Ensure mockup-text has 12px margin-bottom exactly */
    .mockup-text {
        font-size: 28px;
        font-weight: 600;
        margin-bottom: 20px;
        text-align: center;
    }
}

/* Capabilities Section */
.capabilities-section {
    min-height: 100vh; /* Make it full screen height */
    padding: 0;
    text-align: center;
    background-color: var(--background-color);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
}

.capabilities-wrapper {
    height: 150vh; /* Similar to mockup wrapper for scrolling room */
    position: relative;
    width: 100%;
}

.capabilities-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.capabilities-grid.active {
    opacity: 1;
    transform: translateY(0);
}

.capability-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 24px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1.5px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.03);
}

.capability-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
    background: rgba(255, 255, 255, 0.5);
    border: 1.5px solid rgba(0, 0, 0, 0.08);
}

.capability-image {
    width: 200px;
    height: 200px;
    border-radius: 0;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: none;
}

.capability-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.capability-card:hover .capability-image img {
    transform: none;
}

.capability-title {
    font-size: 20px;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 10px;
}

.capability-description {
    font-size: 16px;
    color: #6c757d;
    line-height: 1.5;
    max-width: 250px;
}

/* Media queries for capabilities section */
@media (max-width: 1024px) {
    .capabilities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .capabilities-section {
        min-height: auto;
        padding: 60px 20px;
    }
    
    .capabilities-wrapper {
        height: auto;
    }
    
    .capabilities-sticky {
        position: relative;
        height: auto;
    }
    
    .capabilities-title {
        font-size: 28px; /* Match mobile mockup-text size */
        font-weight: 600; /* Increase weight to match other headings */
        margin-bottom: 20px; /* Changed from 40px to 20px */
    }
    
    .capabilities-subtitle {
        font-size: 16px;
        margin-bottom: 30px;
    }
    
    .capability-image {
        width: 100%;
        height: auto;
        aspect-ratio: 1/1; /* Maintain square aspect ratio */
    }
    
    .capability-title {
        font-size: 22px;
        font-weight: 600;
        margin: 15px 0 10px;
    }
    
    .capability-description {
        font-size: 16px;
        line-height: 1.5;
    }
    
    /* The rest of the mobile styles for capabilities are now combined with testimonials styles above */
}

/* Update capabilities title styles */
.capabilities-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 20px;
    text-align: center;
    position: relative;
}

.capabilities-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 24px;
}

/* Update mobile styles for capabilities title */
@media (max-width: 768px) {
    .capabilities-title {
        font-size: 28px; /* Match mobile mockup-text size */
        font-weight: 600; /* Increase weight to match other headings */
        margin-bottom: 20px; /* Changed from 40px to 20px */
    }
}

/* Add CSS for the subtitle */
.capabilities-subtitle {
    color: #6c757d;
    font-size: 18px;
    text-align: center;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .capabilities-subtitle {
        font-size: 16px;
        margin-bottom: 30px;
    }
}

/* Protocols & Testimonials Section */
.protocols-testimonials-wrapper {
    height: 150vh; /* Same as mockup wrapper */
    position: relative;
    width: 100%;
}

.protocols-testimonials-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.protocols-testimonials-section {
    width: 100%;
    height: 100vh;
    position: relative;
    background-color: var(--background-color);
    display: flex;
    flex-direction: column;
    padding: 100px 96px 0;
    scroll-snap-align: start;
    overflow-y: visible; /* Changed from auto to visible */
}

.protocols-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    min-height: 25vh;
    margin-top: 0;
}

.protocols-content {
    max-width: 1200px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.protocols-title {
    font-size: clamp(28px, 5vw, 36px);
    font-weight: 500;
    color: var(--text-color);
    text-align: center;
    margin-bottom: 0;
}

.protocols-description {
    font-size: 16px;
    line-height: 1.5;
    color: #6c757d;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.protocols-logos {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    gap: 20px;
    padding: 0 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.protocol-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.6;
    transition: opacity 0.3s ease, filter 0.3s ease;
    filter: grayscale(100%);
    height: 50px;
    width: 100px;
}

.protocol-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
}

.protocol-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.testimonials-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0;
}

.testimonials-title {
    font-size: clamp(28px, 5vw, 36px);
    font-weight: 600;
    color: var(--text-color);
    text-align: center;
    margin-bottom: 60px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 30px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1.5px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.5s ease, box-shadow 0.3s ease, opacity 0.5s ease;
    opacity: 0;
    transform: translateY(30px);
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.testimonial-content {
    flex-grow: 1;
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.testimonial-flag {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.03);
    border: 2px solid rgba(0, 0, 0, 0.05);
}

.testimonial-flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-info {
    display: flex;
    flex-direction: column;
}

.testimonial-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.testimonial-location {
    font-size: 14px;
    color: #6c757d;
    margin: 0;
}

/* Responsive styles for protocols and testimonials */
@media (max-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .protocols-logos {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .protocols-testimonials-wrapper {
        height: auto;
    }
    
    .protocols-testimonials-sticky {
        position: relative; /* Change to relative on mobile to avoid interference */
        height: auto;
        top: 0;
    }
    
    .protocols-testimonials-section {
        height: auto;
        min-height: auto; /* Change to auto to avoid forcing height */
        padding: 60px 20px 30px; /* Add bottom padding */
        overflow-y: visible; /* Allow content to flow normally */
    }
    
    .testimonial-card {
        opacity: 1; /* Always visible on mobile */
        transform: translateY(0); /* No transform on mobile */
    }
    
    .protocols-container {
        height: auto;
        padding-bottom: 30px;
        margin-bottom: 30px;
    }
    
    .testimonials-container {
        height: auto;
        padding: 0;
    }
    
    .protocols-logos {
        gap: 20px;
    }
    
    .protocol-logo {
        height: 40px;
        width: 80px;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-card {
        padding: 25px;
    }
    
    .protocols-title {
        font-size: 28px; /* Match other mobile headings */
        font-weight: 600;
        margin-bottom: 10px; /* Add some spacing */
    }
    
    .protocols-description {
        font-size: 16px; /* Match other mobile descriptions */
        line-height: 1.5;
        padding: 0 10px;
        max-width: 100%;
    }
    
    .protocols-content {
        gap: 15px; /* Increase spacing between elements */
    }
    
    /* Mobile Testimonials Slider */
    .testimonials-container,
    .capabilities-container {
        overflow: visible;
        width: 100%;
        padding: 0;
    }
    
    /* Make both grids have the same styling */
    .testimonials-grid,
    .capabilities-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        padding: 20px;
        margin: 0 -20px;
        width: calc(100% + 40px);
        gap: 15px;
        opacity: 1;
        transform: none;
    }
    
    /* Make sure both card types have the exact same width and margins */
    .testimonial-card,
    .capability-card {
        flex: 0 0 80%;
        scroll-snap-align: center;
        margin: 0;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    }
    
    /* Center the first card for both sliders */
    .testimonial-card:first-child,
    .capability-card:first-child {
        margin-left: 10%;
    }
    
    /* Balance the right side for both sliders */
    .testimonial-card:last-child,
    .capability-card:last-child {
        margin-right: 10%;
    }
    
    /* Hide scrollbars on both sliders */
    .testimonials-grid::-webkit-scrollbar,
    .capabilities-grid::-webkit-scrollbar {
        display: none;
    }
    
    .testimonials-grid,
    .capabilities-grid {
        -ms-overflow-style: none;  /* IE and Edge */
        scrollbar-width: none;  /* Firefox */
    }
    
    .testimonial-flag {
        width: 40px;
        height: 40px;
    }
    
    .testimonial-name {
        font-size: 15px;
    }
    
    .testimonial-location {
        font-size: 13px;
    }
}

/* Testimonial Dots Navigation */
.testimonials-dots {
    display: none; /* Hidden by default on desktop */
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.testimonial-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-dot.active {
    background-color: var(--accent-color);
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .testimonials-dots {
        display: flex; /* Only show on mobile */
    }
}

/* Capabilities Dots Navigation */
.capabilities-dots {
    display: none; /* Hidden by default on desktop */
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.capabilities-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.capabilities-dot.active {
    background-color: var(--accent-color);
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .capabilities-dots {
        display: flex; /* Only show on mobile */
    }
} 