:root {
    --bg-color: #f1f5f9;
    /* Soft Slate/Ice Blue */
    --text-primary: #0f172a;
    /* Deep Navy/Charcoal */
    --text-secondary: #475569;
    /* Muted Blue Gray */
    --accent-blue: #0ea5e9;
    /* Trustworthy Ocean Blue */
    --accent-pink: #14b8a6;
    /* Changed pink to Teal for clinical calm */
    --accent-teal: #0284c7;
    /* Deep Sea Blue */
    --glass-bg: rgba(255, 255, 255, 0.4);
    --glass-border: rgba(255, 255, 255, 0.6);
}

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

body {
    font-family: 'Zilla Slab', serif;
    font-weight: 300;
    font-size: 17px;
    /* Base 16px + 1pt equivalent */
    background-color: #ffffff;
    /* White background for the whole page */
    color: var(--text-primary);
    line-height: 1.6;
}

/* Background Animated Blobs */
.background-blobs {
    position: absolute;
    /* Changed from fixed so it only covers the top/hero */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    /* Limits blobs to the initial screen height */
    z-index: -1;
    overflow: hidden;
    background-color: var(--bg-color);
    /* Apply the slate/ice color only here */
}

.background-blobs-section {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background-color: var(--bg-color);
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
    animation: float 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--accent-blue) 0%, transparent 70%);
}

.blob-2 {
    bottom: -20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--accent-pink) 0%, transparent 70%);
    animation-delay: -5s;
}

.blob-3 {
    top: 40%;
    left: 50%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, var(--accent-teal) 0%, transparent 70%);
    animation-delay: -10s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 50px) scale(1.1);
    }
}

/* Typography & Layout */
h1,
h2,
h3,
h4,
h5,
h6,
.logo {
    font-family: 'Noto Serif Display', sans-serif;
}

h1 {
    font-size: clamp(1rem, 6vw, 5.5rem);
    font-weight: 500;
    line-height: 1.1;
    margin-bottom: 24px;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    margin-bottom: 16px;
}

.text-gradient {
    background: linear-gradient(90deg, #0284c7, #0ea5e9, #14b8a6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section {
    padding: 100px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Navigation */
.glass-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: rgba(241, 245, 249, 0.7);
    /* Lighter nav back */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 50px;
    z-index: 100;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    /* Soft shadow for depth on light theme */
}

.logo {
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: 0.50px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    gap: 50px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 10;
}

.hero-content p {
    font-size: 1.25rem;
    /* Increased size (1rem * 1.25 = 1.25rem) */
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.cta-btn {
    background: linear-gradient(135deg, var(--accent-blue), #38bdf8);
    color: white;
    border: none;
    padding: 16px 36px;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(2, 132, 199, 0.3);
    /* Softer blue shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-family: 'Noto Serif Display', sans-serif;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(2, 132, 199, 0.5);
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    perspective: 1000px;
}

/* CSS Phone Mockup */
.phone-mockup {
    width: 320px;
    height: 650px;
    background: #000;
    border-radius: 45px;
    padding: 12px;
    position: relative;
    box-shadow: 0 0 0 2px #333,
        inset 0 0 0 2px #111,
        0 30px 60px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(79, 70, 229, 0.3);
    /* Subtle blue glow */
    transform: rotate3d(0, 0, 0, 0);
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Removing hover zoom */

.phone-notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 30px;
    background: #000;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 35px;
    overflow: hidden;
    position: relative;
}

/* Slider inside phone */
.phone-screen .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    transform: translateX(100%);
    /* Default to off-screen right */
}

/* Off-screen left */
.phone-screen .slide.slide-right {
    transform: translateX(-100%);
}

/* Off-screen right */
.phone-screen .slide.slide-left {
    transform: translateX(100%);
}

/* Active position (center) */
.phone-screen .slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    /* Slide into view */
}

.slider-controls {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    display: flex;
    justify-content: space-between;
    padding: 0;
    z-index: 100;
    pointer-events: auto;
}

.slider-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(15, 23, 42, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    pointer-events: auto;
    transition: background 0.3s, transform 0.2s;
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.1);
}

.pulse-anim-light {
    animation: floatingDevice 6s ease-in-out infinite alternate;
}

@keyframes floatingDevice {
    0% {
        transform: translateY(0px) rotate3d(0, 0, 0, 0);
    }

    100% {
        transform: translateY(-20px) rotate3d(0, 0, 0, 0);
    }
}

.phone-mockup:hover.pulse-anim-light {
    animation: none;
    /* stop floating when hovering */
}


/* Cards Section */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.2rem;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.glass-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}

.glass-card .icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.glass-card h3 {
    margin-bottom: 12px;
    font-size: 1.5rem;
}

.glass-card p {
    color: var(--text-secondary);
}


/* Timeline Section */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 40px;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: var(--line-start, 26px);
    left: 25px;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-blue), var(--accent-pink), var(--accent-teal));
    height: var(--line-height, calc(100% - 52px));
    z-index: 0;
    /* below the step number */
}

.timeline-step {
    display: flex;
    gap: 30px;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #fff;
    /* White background for light theme */
    border: 3px solid var(--accent-blue);
    /* Thicker border */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    color: var(--accent-blue);
    /* Text colored as accent blue */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    /* Soft shadow */
}

.step-content {
    flex: 1;
    padding: 30px;
    border-radius: 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    transition: all 0.5s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    /* Soft shadow */
}

.step-content h3 {
    margin-bottom: 10px;
    color: var(--text-primary);
}

.step-content p {
    color: var(--text-secondary);
}

/* Interactive Reveal Demo */
.interactive-reveal {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.interactive-reveal .blur-text {
    filter: blur(8px);
    transition: filter 0.6s ease;
}

.interactive-reveal::after {
    content: 'Reveal Identity';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-pink);
    opacity: 1;
    transition: opacity 0.4s ease, transform 0.4s ease;
    z-index: 10;
    pointer-events: none;
}

.interactive-reveal:hover .blur-text {
    filter: blur(0px);
}

.interactive-reveal:hover::after {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
}

/* Score Section Styles */
.score-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.score-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.score-card h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
    height: 60px;
    /* Ensure alignment between cards */
}

.score-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    height: 48px;
}

.score-visualization {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: auto;
}

.chart-layout {
    display: flex;
    align-items: center;
}

.chart-y-label {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-right: 15px;
}

.chart-main {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.chart-x-label {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.animated-square-chart {
    width: 240px;
    height: 240px;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid var(--glass-border);
    border-radius: 12px;
    position: relative;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.02);
    margin-bottom: 40px;
    /* space for bottom score */
    margin-right: 60px;
    /* space for right score */
}

.square-fill {
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.8), rgba(2, 132, 199, 0.9));
    border-top-left-radius: 12px;
    border-bottom-right-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50%;
    height: 50%;
    transition: width 2s cubic-bezier(0.2, 0.8, 0.2, 1), height 2s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 2px 2px 15px rgba(2, 132, 199, 0.3);
}

.score-val-bottom {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-blue);
    font-family: 'Noto Serif Display', sans-serif;
    opacity: 1;
    transition: opacity 0.5s ease 1s;
}

.score-val-right {
    position: absolute;
    top: 50%;
    right: -60px;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-blue);
    font-family: 'Noto Serif Display', sans-serif;
    opacity: 1;
    transition: opacity 0.5s ease 1s;
}

.animated-square-chart.visible .score-val-bottom,
.animated-square-chart.visible .score-val-right {
    opacity: 1;
}

/* Second box slightly different color */
.full-group .square-fill {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.8), rgba(15, 118, 110, 0.9));
    box-shadow: 2px 2px 15px rgba(15, 118, 110, 0.3);
}

.full-group .score-val-bottom,
.full-group .score-val-right {
    color: var(--accent-teal);
}


/* Science Section */
.grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.space-top {
    margin-top: 30px;
}

.science-list {
    list-style: none;
    margin-top: 15px;
}

.science-list li {
    margin-bottom: 15px;
    padding-left: 20px;
    position: relative;
    color: var(--text-secondary);
}

/* KYKM & Company Section Styles */
.highlight-text {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-primary);
}

.mb-2 {
    margin-bottom: 1.5rem;
}

.store-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.store-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    /* Side by side and centered */
}

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: flex-start;
}

#science,
#company,
#how-it-works {
    position: relative;
    z-index: 1;
}

#company::before,
#how-it-works::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    background-color: #f7f9fc;
    /* Lightest grey/ice tint */
    z-index: -1;
    border-top: 1px solid rgba(0, 0, 0, 0.03);
    /* very soft separation edge */
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    /* very soft separation edge */
}

.single-column-layout {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.kykm-title {
    font-size: 3rem;
    margin-bottom: 20px;
}

.kykm-subtitle {
    font-size: 2rem;
    margin-bottom: 40px;
    line-height: 1.3;
}

.mb-4 {
    margin-bottom: 2.5rem;
}

.no-underline {
    text-decoration: none !important;
}

.company-outcome-layout {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    height: 100%;
}

.action-buttons-vertical {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    margin-top: 30px;
}

.action-buttons-vertical .cta-btn {
    text-align: center;
    max-width: 300px;
}

.secondary-btn {
    background: transparent;
    border: 2px solid var(--accent-teal);
    box-shadow: none;
}

.secondary-btn:hover {
    background: rgba(20, 184, 166, 0.1);
    /* light teal hover */
    box-shadow: 0 10px 25px rgba(20, 184, 166, 0.2);
}

.quote-text {
    font-size: 1.8rem;
    font-style: italic;
    color: var(--accent-pink);
    border-left: 4px solid var(--accent-pink);
    padding-left: 20px;
    margin: 20px 0;
}

.feature-card {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
}

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

.science-list li strong {
    color: var(--text-primary);
}

.science-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-blue);
}

/* Johari Window Grid */
.johari-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 10px;
    aspect-ratio: 1;
    background: var(--glass-border);
    padding: 10px;
    border-radius: 20px;
}

.j-cell {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.j-cell:hover {
    transform: scale(0.95);
    z-index: 10;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
}

.open-area {
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.3);
    color: #0369a1;
}

.blind-spot {
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #0284c7;
}

.hidden-area {
    background: rgba(2, 132, 199, 0.1);
    border: 1px solid rgba(2, 132, 199, 0.3);
    color: #075985;
}

.unknown-area {
    background: rgba(241, 245, 249, 0.8);
    border: 1px solid rgba(203, 213, 225, 0.8);
    color: var(--text-secondary);
    filter: blur(3px);
}

.unknown-area:hover {
    filter: blur(0);
    background: #fff;
}


/* Animations */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0px);
    /* Temporarily reset translate for debugging */
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.fade-in-up {
    animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

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

footer {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
    border-top: 1px solid var(--glass-border);
    margin-top: 50px;
}

/* Creator Section Styles */
.creator-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: flex-start;
    max-width: 1100px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .creator-grid {
        grid-template-columns: 1fr 1.5fr;
    }
}

.creator-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

.creator-full-text {
    max-width: 1100px;
    margin: 0 auto;
}

.text-link {
    color: #0f9d58;
    text-decoration: none;
    font-weight: 500;
}

.text-link:hover {
    text-decoration: underline;
}

.green-btn {
    background: #0f9d58;
    color: white;
    box-shadow: 0 4px 15px rgba(15, 157, 88, 0.4);
    border: none;
}

.green-btn:hover {
    background: #0b8043;
    box-shadow: 0 6px 20px rgba(15, 157, 88, 0.6);
}

/* Responsive */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
    }

    .hero-content {
        align-items: center;
        display: flex;
        flex-direction: column;
    }

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

    .hero-visual {
        width: 100%;
        max-width: 500px;
        height: 400px;
    }

    .nav-links {
        display: none;
    }
}

@media (max-width: 768px) {
    .animated-square-chart {
        width: 180px;
        height: 180px;
        margin-right: 40px;
        /* space for right score */
        margin-bottom: 30px;
        /* space for bottom score */
    }

    .score-val-right {
        right: -40px;
        font-size: 1.2rem;
    }

    .score-val-bottom {
        bottom: -25px;
        font-size: 1.2rem;
    }

    .chart-layout {
        flex-direction: column;
        align-items: center;
    }

    .chart-y-label {
        writing-mode: horizontal-tb;
        transform: rotate(0deg);
        margin-right: 0;
        margin-bottom: 10px;
    }

    .score-card h3 {
        height: auto;
        min-height: auto;
        margin-bottom: 5px;
    }

    .score-subtitle {
        height: auto;
        min-height: auto;
        margin-bottom: 15px;
    }
}