:root {
    --bg-main: #F8FAFC;
    --primary-color: #A4D007;
    /* Hodo Green */
    --secondary-color: #F58220;
    /* Hodo Orange */
    --text-main: #1e293b;
    /* Slate 800 */
    --text-muted: #64748b;
    /* Slate 500 */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    min-height: 100vh;
    background-color: var(--bg-main);
    overflow: hidden;
    /* ?��? body ?�軸，由 container ?�管 */
    position: relative;
    color: var(--text-main);
}

/* ?�螢幕翻?�容??(PPT 模�?) */
.scroll-snap-container {
    height: 100vh;
    width: 100%;
    overflow: hidden;
    /* ?��??��??��? */
    position: relative;
}

.slides-wrapper {
    height: 100vh;
    width: 100%;
    transition: transform 0.8s cubic-bezier(0.645, 0.045, 0.355, 1);
    will-change: transform;
}

/* ?�個�??�卡??*/
.snap-page {
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 2rem;
}

/* Background Gradients from Hodo */
.bg-blobs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: radial-gradient(circle at top right, #f0fdf4, transparent 40%),
        radial-gradient(circle at bottom left, #fff7ed, transparent 40%);
}

/* Main Container */
.container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1000px;
    padding: 2rem;
    text-align: center;
}

header {
    margin-bottom: 4rem;
    animation: fadeInDown 0.8s ease-out;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header-main {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 0.5rem;
}

.logo-wrapper {
    background: white;
    padding: 0.8rem;
    border-radius: 18px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

#portal-logo {
    height: 100px;
    width: auto;
}

h1 {
    font-size: 3rem;
    font-weight: 900;
    color: var(--text-main);
    letter-spacing: -0.02em;
    margin-bottom: 0;
}

p.subtitle {
    color: var(--text-muted);
    font-size: 1.2rem;
    font-weight: 600;
}

/* Selection Cards - Clay-like style */
.selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
}

.card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 40px;
    padding: 3.5rem 2.5rem;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: var(--card-shadow);
    animation: fadeInUp 0.8s ease-out both;
    position: relative;
    overflow: hidden;
}

.card:nth-child(1) {
    animation-delay: 0.1s;
    border-bottom: 8px solid var(--primary-color);
}

.card:nth-child(2) {
    animation-delay: 0.2s;
    border-bottom: 8px solid var(--secondary-color);
}

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

.icon-wrapper {
    width: 120px;
    height: 120px;
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border-radius: 35px;
    transition: var(--transition);
    font-size: 4.5rem;
    /* 大�?增�? Emoji 大�? */
}

#hodo-entry .icon-wrapper {
    color: var(--primary-color);
}

#shoulder-entry .icon-wrapper {
    color: var(--secondary-color);
}

.card:hover .icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    background: white;
}

.card h2 {
    color: var(--text-main);
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 900;
}

.card p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 1.1rem;
    font-weight: 500;
}

.enter-btn {
    margin-top: 2.5rem;
    padding: 1rem 2.5rem;
    background: #f8fafc;
    color: var(--text-main);
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    font-weight: 800;
    font-size: 1.2rem;
    transition: var(--transition);
}

.card:hover .enter-btn {
    background: var(--text-main);
    color: white;
    border-color: var(--text-main);
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .selection-grid {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 2.5rem;
    }
}

/* Slide Navigation Enhanced */
.side-nav {
    position: fixed;
    right: 3rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 2rem;
    z-index: 100;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border: 2px solid var(--text-muted);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.nav-dot::after {
    content: attr(data-title);
    position: absolute;
    right: 2.5rem;
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-muted);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}

.nav-dot:hover::after,
.nav-dot.active::after {
    opacity: 1;
    right: 2rem;
}

.nav-dot.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.5);
}

/* Feature Slides Premium Layout */
.feature-slide {
    background: white;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 5rem;
    text-align: left;
}

.grid-2-rev {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    align-items: center;
    gap: 5rem;
    text-align: left;
}

.text-side {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.active .text-side {
    opacity: 1;
    transform: translateY(0);
}

.tag {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: #f0fdf4;
    color: var(--primary-color);
    border-radius: 100px;
    font-weight: 800;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.feature-slide h2 {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 2rem;
}

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

.feature-slide p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.7;
    font-weight: 500;
}

/* Visual Side Decoration */
.visual-side {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: scale(0.9);
    transition: all 1s ease-out 0.3s;
}

.active .visual-side {
    opacity: 1;
    transform: scale(1);
}

.mockup-circle {
    width: 300px;
    height: 300px;
    background: #f8fafc;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    box-shadow: 20px 20px 60px #d1d9e6, -20px -20px 60px #ffffff;
}

.mockup-circle .icon {
    font-size: 8rem;
    z-index: 2;
}

.pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: pulseAnim 3s infinite;
}

@keyframes pulseAnim {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.game-previews {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.game-item {
    width: 120px;
    height: 120px;
    background: white;
    border-radius: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 4rem;
    box-shadow: var(--card-shadow);
    animation: float 4s infinite ease-in-out;
}

.game-item:nth-child(2) {
    animation-delay: 1s;
}

.game-item:nth-child(3) {
    animation-delay: 2s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.cta-btn {
    margin-top: 3rem;
    padding: 1.5rem 3.5rem;
    background: var(--text-main);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1.5rem;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.cta-btn:hover {
    transform: scale(1.05);
    background: var(--primary-color);
}

/* Mobile Adjustments for PPT */
@media (max-width: 968px) {

    .grid-2,
    .grid-2-rev {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .feature-slide h2 {
        font-size: 2.5rem;
    }

    .side-nav {
        display: none;
    }

    .visual-side {
        display: none;
    }
}

/* LINE ����������~�� */
.mockup-container {
    width: 320px;
    height: auto;
    background: white;
    padding: 0.8rem;
    border-radius: 45px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.15);
    border: 10px solid #1e293b;
    overflow: hidden;
    margin: 0 auto;
    animation: floatingPhone 4s infinite ease-in-out;
}

.family-mockup {
    width: 100%;
    height: auto;
    border-radius: 35px;
    display: block;
}

@keyframes floatingPhone {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(2deg);
    }
}

/* LINE Bot ²���ϥܼ˦� */
.line-bot-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
    aspect-ratio: 9/16;
    height: 480px;
    /* �T�w�������?*/
    width: auto;
}

.bot-icon {
    width: 80%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1));
}

/* Claymorphism Card for QR Code */
.clay-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-width: 320px;
    padding: 2.5rem !important;
    background: white;
    border-radius: 3rem;
    border: 4px solid #fff;
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.05), inset -8px -8px 15px rgba(0, 0, 0, 0.05), inset 8px 8px 15px rgba(255, 255, 255, 0.8);
    transition: all 0.4s ease;
}


/* Container override to prevent cards from covering side nav */
.container {
    padding: 2rem 6rem;
}

/* Corporate Footer */
.corporate-footer {
    position: absolute;
    bottom: -30px;
    left: 0;
    right: 0;
    text-align: center;
    color: rgba(71, 85, 105, 0.4);
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.6;
    z-index: 0;
    pointer-events: none;
}

/* Modal Overlay & Glassmorphism */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.modal-header h2 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--text-dark);
}

.modal-body {
    padding: 1.5rem 2rem;
    overflow-y: auto;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.modal-body h3 {
    font-size: 1rem;
    color: var(--text-dark);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.modal-body h3:first-child {
    margin-top: 0;
}

.modal-body ul,
.modal-body ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background: rgba(255, 255, 255, 0.5);
    border-radius: 0 0 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.consent-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-dark);
    cursor: pointer;
}

.consent-check input[type="checkbox"] {
    width: 1.5rem;
    height: 1.5rem;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.btn-group {
    display: flex;
    justify-content: flex-start;
    gap: 1rem;
}










/* Premium Modal Buttons */
.btn-cancel {
    padding: 0.8rem 1.8rem;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-cancel:hover {
    background: rgba(100, 116, 139, 0.1);
    color: var(--text-main);
}

.btn-confirm {
    padding: 0.8rem 2rem;
    border: none;
    background: linear-gradient(135deg, var(--primary-color), #85a905);
    color: white;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(164, 208, 7, 0.4);
    transition: all 0.3s ease;
}

.btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(164, 208, 7, 0.6);
}