@font-face {
  font-family: 'Material Symbols Outlined';
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url(../fonts/materialsymbolsoutlined.woff2) format('woff2');
}

.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --apple-bg: #F2F2F7;
    --apple-card-bg: #FFFFFF;
    --apple-green: #43946c;
    --apple-green-deep: #43946c;
    --apple-text-primary: #000000;
    --apple-text-secondary: #8E8E93;
    --apple-separator: #C6C6C8;
    --brand-blue: #2f2fd4;
    --card-radius: 16px;
}

body, html {
    width: 100%;
    max-width: 414px;
    height: 100%;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    background: var(--apple-bg);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-font-smoothing: antialiased;
    position: relative;
    margin: 0 auto;
}

.page-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    height: auto;
}

/* Video player styles - 50% height by default */
.video-player {
    position: absolute;
    width: 100%;
    height: 100vh;
    flex-shrink: 0;
    background-size: contain;
    background-color: #000;
}

.video-player.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 2000;
}

.video-player video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: #000;
}

.video-player.fullscreen video {
    object-fit: contain;
}

/* Play overlay - shown when paused */
.video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 5;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.video-play-overlay.hidden {
    display: none;
}

/* .play-button {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    margin-bottom: 12px;
}

.play-button:hover {
    background-color: #fff;
    transform: scale(1.1);
}

.play-button::before {
    content: '';
    width: 0;
    height: 0;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-left: 20px solid #43946c;
    margin-left: 5px;
} */

.video-hint {
    color: #fff;
    font-size: 13px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
    background: rgba(0,0,0,0.25);
    padding: 6px 16px;
    border-radius: 20px;
}

/* Content wrapper with slide animation */
.content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    transform: translateY(0);
    opacity: 1;
    transition: transform 0.3s ease, opacity 0.3s ease;
    overflow-y: auto;
    overflow-x: hidden;
    position: absolute;
    top: 0;
    z-index: 100;
    width: 100%;
    min-height: 100vh;
    height: auto;
    -webkit-overflow-scrolling: touch;
}

.content-wrapper.slide-down {
    transform: translateY(100%);
    opacity: 0;
}

/* Main Content - takes remaining space */
.main-content {
    flex: 1;
    padding: 20px;
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    background: transparent;
    position: relative;
    z-index: 10;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    -webkit-overflow-scrolling: touch;
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Expert Stack */
.expert-stack-container {
    position: relative;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.stack-item {
    position: absolute;
    border-radius: 9999px;
    width: 100px;
    height: 100px;
    cursor: pointer;
    transform-origin: bottom;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.5s ease,
                z-index 0s;
}

.stack-item.center {
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.avatar-ring {
    padding: 3px;
    border-radius: 9999px;
    /* background: white; */
    display: block;
    width: 100%;
    height: 100%;
    transition: background 0.5s ease, padding 0.5s ease;
}

.center .avatar-ring {
    /* background: linear-gradient(180deg, var(--apple-green), #A7E9AF); */
    padding: 4px;
    position: relative;
}

.avatar-ring img {
    width: 100%;
    height: 100%;
    /* border-radius: 9999px; */
    object-fit: cover;
    transition: filter 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.center .avatar-ring img {
    /* border: 2px solid white; */
}

.halo-connector {
    position: absolute;
    bottom: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 116px;
    height: 60px;
    background: radial-gradient(circle at top, var(--apple-green) 0%, transparent 70%);
    opacity: 0.15;
    z-index: 30;
    pointer-events: none;
}

.name-tag {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 20px;
    font-weight: 700;
    white-space: nowrap;
    text-shadow: 0 4px 12px rgb(68 148 108);
    z-index: 60;
    color: #eaebec;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

/* Navigation Arrows */
.nav-arrow {
    position: absolute;
    top: 36px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(67, 148, 108, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.nav-arrow:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: scale(1.05);
}

.nav-arrow:active {
    transform: scale(0.95);
}

.nav-arrow-left {
    left: 0px;
}

.nav-arrow-right {
    right: 0px;
}

.nav-arrow .material-symbols-outlined {
    font-size: 20px;
    color: var(--apple-green);
    font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}

/* Expert Card */
.expert-card {
    background: white;
    border-radius: var(--card-radius);
    padding: 30px 20px 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    text-align: center;
    margin-top: -10px;
    transition: opacity 0.2s ease;
    position: relative;
    z-index: 100;
}

.expert-card .name {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    color: #44946c;
    border: 1px solid rgb(45 177 78 / 50%);
    border-radius: 14px;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 500;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 12px;
}

.tag-pill-dual {
    display: inline-flex;
    align-items: center;
    border-radius: 4px;
    overflow: hidden;
    border: 0.5px solid rgba(68, 109, 245, 0.15);
    font-size: 12px;
}

.tag-pill-dual .part-1 {
    background: var(--brand-blue);
    color: white;
    padding: 1px 6px;
}

.tag-pill-dual .part-2 {
    background: rgba(68, 109, 245, 0.05);
    color: var(--brand-blue);
    padding: 1px 6px;
}

.tag-pill-simple {
    font-size: 12px;
    padding: 1px 8px;
    border-radius: 4px;
    font-weight: 500;
    background: #E8F8EE;
    color: #43946c;
    border: 1px solid rgba(45, 177, 78, 0.1);
}

.card-description {
    font-size: 12px;
    color: var(--apple-text-secondary);
    line-height: 1.6;
    padding: 0 4px;
}

.card-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
    font-size: 11px;
    color: var(--apple-text-secondary);
}

.card-stats .material-symbols-outlined {
    font-size: 15px;
    margin-right: 4px;
    opacity: 0.7;
}

/* Video Card */
.video-card {
    height: 150px;
    background: white;
    border-radius: var(--card-radius);
    padding: 8px;
    display: flex;
    align-items: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    margin-bottom: 16px;
}

.video-thumbnail {
    position: relative;
    width: 96px;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f0f0f0;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-play-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.1);
}

.play-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-circle .material-symbols-outlined {
    font-size: 16px;
    color: var(--apple-green);
    font-variation-settings: 'FILL' 1;
}

.video-info {
    margin-left: 12px;
    flex: 1;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

.video-info h3 {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.video-info p {
    font-size: 11px;
    color: var(--apple-text-secondary);
    margin-top: 2px;
}

.video-cta {
    display: flex;
    align-items: center;
    color: var(--apple-green);
    font-size: 11px;
    font-weight: 600;
    margin-top: 4px;
}

.video-cta .material-symbols-outlined {
    font-size: 13px;
    margin-left: 2px;
}

/* Service Card */
.service-card {
    background: white;
    border-radius: var(--card-radius);
    padding: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    margin-bottom: 16px;
}

.service-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.service-icon {
    width: 36px;
    height: 36px;
    background: rgba(52, 199, 89, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon img{
    width: 36px; 
    height: 36px;
}

.service-icon .material-symbols-outlined {
    font-size: 22px;
    color: var(--apple-green);
}

.service-title-wrap {
    margin-left: 12px;
}

.service-title-wrap h4 {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.service-title-wrap p {
    font-size: 11px;
    color: var(--apple-text-secondary);
}

.service-title-wrap p span {
    color: var(--apple-green);
    font-weight: 700;
}

.service-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.service-item {
    background: rgba(242, 242, 247, 0.5);
    border-radius: 12px;
    padding: 12px;
    text-align: center;
}

.service-item .material-symbols-outlined {
    font-size: 20px;
    color: var(--apple-green);
    margin-bottom: 4px;
}

.service-item h5 {
    font-size: 12px;
    font-weight: 700;
}

.service-item p {
    font-size: 10px;
    color: var(--apple-text-secondary);
}

/* CTA Section */
.cta-section {
    margin-top: 16px;
}

.cta-button {
    width: 100%;
    background: #43946c;
    color: #fff;
    border: none;
    border-radius: var(--card-radius);
    padding: 0;
    height: 54px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.cta-button:active {
    transform: scale(0.98);
}

.cta-button .material-symbols-outlined {
    font-size: 20px;
    font-weight: 700;
}

.footer-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 4px 0;
    margin-top: 12px;
    color: #fff;
}

.footer-text p {
    font-size: 11px;
}

.footer-text .dot {
    font-size: 8px;
}

/* Hide content when video is fullscreen */
.content-hidden {
    display: none !important;
}

/* QR Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    padding: 20px;
}

.modal-overlay.hidden {
    display: none;
}

.modal-content {
    background: #f5fbfa;
    border-radius: 16px;
    padding: 28px 24px 24px;
    max-width: 300px;
    width: 100%;
    text-align: center;
    position: relative;
    color: #000;
    border: 2px solid #43946c;
}

.modal-icon {
    width: 50px;
    height: 50px;
    background: #43946c;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto -25px;
    position: relative;
    top: -50px;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.4);
}

.modal-icon svg {
    width: 28px;
    height: 28px;
    fill: #fff;
}

.modal-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    margin-top: -10px;
    line-height: 1.4;
}

.modal-subtitle {
    font-size: 14px;
    margin-bottom: 24px;
    line-height: 1.6;
    color: #666;
}

.qr-wrapper {
    padding: 24px;
    border-radius: 8px;
    margin-bottom: 20px;
    position: relative;
}

.qr-wrapper::before,
.qr-wrapper::after {
    content: '';
    position: absolute;
    width: 13px;
    height: 13px;
    border: 3px solid #43946c;
}

.qr-wrapper::before {
    top: 12px;
    left: 12px;
    border-right: none;
    border-bottom: none;
}

.qr-wrapper::after {
    bottom: 12px;
    right: 12px;
    border-left: none;
    border-top: none;
}

.qr-corner-tr {
    position: absolute;
    width: 16px;
    height: 16px;
    border: 3px solid #43946c;
    top: 12px;
    right: 12px;
    border-left: none;
    border-bottom: none;
}

.qr-corner-bl {
    position: absolute;
    width: 16px;
    height: 16px;
    border: 3px solid #43946c;
    bottom: 12px;
    left: 12px;
    border-right: none;
    border-top: none;
}

.qr-inner {
    background: #fff;
    padding: 12px;
    border-radius: 6px;
}

.qr-image {
    width: 100%;
    max-width: 160px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.modal-footer {
    font-size: 12px;
    color: #666;
    letter-spacing: 2px;
}

.close-btn {
    width: 44px;
    height: 44px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 24px;
    position: relative;
}

.close-btn::before,
.close-btn::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 2px;
    background: rgba(255, 255, 255, 0.8);
}

.close-btn::before {
    transform: rotate(45deg);
}

.close-btn::after {
    transform: rotate(-45deg);
}

.icon-container{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    align-items: center;
    padding: 16px 0;
}

.icon-container img{
    width: 100px;
    height: auto;
}

/* Responsive styles for smaller screens (iPhone SE, etc.) */
@media screen and (max-height: 667px) {
    .main-content {
        padding: 16px;
        padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    }
    
    .expert-stack-container {
        height: 90px;
    }
    
    .stack-item {
        width: 80px;
        height: 80px;
    }
    
    .expert-card {
        padding: 20px 16px 16px;
        margin-bottom: 12px;
    }
    
    .video-card {
        margin-bottom: 12px;
    }
    
    .video-thumbnail {
        width: 80px;
        height: 120px;
    }
    
    .service-card {
        padding: 12px;
        margin-bottom: 12px;
    }
    
    .cta-button {
        height: 48px;
        font-size: 15px;
    }
    
    .nav-arrow {
        top: 55px;
        width: 32px;
        height: 32px;
    }
    
    .name-tag {
        bottom: -12px;
        font-size: 10px;
        padding: 2px 10px;
    }
}

/* Extra small screens (iPhone SE 1st gen - 320px width) */
@media screen and (max-width: 350px) {
    .main-content {
        padding: 12px;
        padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    }
    
    .expert-stack-container {
        height: 80px;
    }
    
    .stack-item {
        width: 70px;
        height: 70px;
    }
    
    .expert-card {
        padding: 16px 12px 12px;
    }
    
    .card-tags {
        gap: 4px;
    }
    
    .tag-pill-dual,
    .tag-pill-simple {
        font-size: 11px;
    }
    
    .card-description {
        font-size: 11px;
    }
    
    .video-thumbnail {
        width: 70px;
        height: 100px;
    }
    
    .video-info h3 {
        font-size: 13px;
    }
    
    .service-grid {
        gap: 8px;
    }
    
    .service-item {
        padding: 10px;
    }
    
    .cta-button {
        height: 44px;
        font-size: 14px;
    }
    
    .nav-arrow {
        top: 48px;
        width: 28px;
        height: 28px;
    }
    
    .nav-arrow .material-symbols-outlined {
        font-size: 16px;
    }
}