:root {
    /* Colors - Apple Inspired */
    --primary-blue: #0A84FF;
    --primary-blue-hover: #0077ED;
    --bg-body: #F5F5F7;
    /* Light gray porcelain */
    --bg-card: rgba(255, 255, 255, 0.72);
    --bg-glass: rgba(255, 255, 255, 0.85);
    --text-main: #1D1D1F;
    /* Almost black */
    --text-secondary: #86868B;
    --border-light: rgba(0, 0, 0, 0.05);

    /* Shadows */
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.12);
    --shadow-blue: 0 8px 24px rgba(10, 132, 255, 0.25);

    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 40px;
    --spacing-xl: 80px;

    /* Radius */
    --radius-card: 24px;
    --radius-btn: 999px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden;
    position: relative;
    /* Subtle gradient background - maintaining as base */
    background-image:
        radial-gradient(circle at 10% 10%, rgba(10, 132, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 90% 90%, rgba(10, 132, 255, 0.05) 0%, transparent 50%);
    background-attachment: fixed;
}

/* Ambient Glows via Pseudo-elements - Intensified */
body::before,
body::after {
    content: '';
    position: fixed;
    width: 700px;
    /* Slightly larger for more presence */
    height: 700px;
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
    filter: blur(90px);
    opacity: 0.8;
    /* Increased opacity */
    animation: floatGlow 10s infinite alternate ease-in-out;
}

body::before {
    top: -180px;
    left: -120px;
    background: radial-gradient(circle, rgba(10, 132, 255, 0.45) 0%, transparent 70%);
    /* Stronger blue */
}

body::after {
    bottom: -180px;
    right: -120px;
    background: radial-gradient(circle, rgba(10, 132, 255, 0.35) 0%, transparent 70%);
    /* Stronger blue */
    animation-delay: -5s;
}

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

    100% {
        transform: translate(40px, 40px) scale(1.15);
    }
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 600;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 48px;
    line-height: 1.08;
}

h2 {
    font-size: 24px;
    line-height: 1.2;
    margin-bottom: 8px;
}

p.hero-sub {
    font-size: 24px;
    color: var(--text-secondary);
    margin-top: 16px;
    font-weight: 400;
    letter-spacing: -0.01em;
}

/* Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 16px 24px;
    transition: background-color 0.3s ease;
}

.main-header.scrolled {
    background-color: rgba(245, 245, 247, 0.7);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border-light);
}

.header-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-mini {
    height: 32px;
    width: 32px;
    opacity: 0;
    /* Hidden by default on home, revealed inside project views */
    transform: translateY(-10px);
    transition: all 0.4s ease;
}

.view-project .logo-mini {
    opacity: 1;
    transform: translateY(0);
}

.logo-mini img {
    height: 100%;
    width: auto;
}

.breadcrumbs {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 8px;
    border-radius: 50%;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    color: var(--text-main);
    background-color: rgba(0, 0, 0, 0.05);
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-blue);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-btn);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-primary:hover {
    background-color: var(--primary-blue-hover);
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(10, 132, 255, 0.3);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-secondary {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--text-main);
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-btn);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.btn-secondary.small {
    padding: 6px 14px;
    font-size: 12px;
}

/* Main Container & Views */
main#app-container {
    width: 100%;
    min-height: 100vh;
    position: relative;
    padding-top: 80px;
    /* Space for header */
}

.view {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s;
    padding-bottom: 80px;
}

.view.active-view {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    z-index: 10;
}

/* Home Hero */
.home-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 80vh;
    padding: 0 24px;
}

.logo-large-container {
    margin-bottom: 24px;
}

.logo-large {
    max-width: 280px;
    height: auto;
}

.breathe-animation {
    animation: breathe 5s infinite ease-in-out;
}

@keyframes breathe {

    0%,
    100% {
        transform: scale(1);
        filter: brightness(100%);
    }

    50% {
        transform: scale(1.03);
        filter: brightness(110%);
    }
}

.cards-container {
    display: flex;
    gap: 32px;
    margin-top: 64px;
    perspective: 1000px;
}

.project-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-card);
    width: 280px;
    padding: 20px;
    text-decoration: none;
    color: var(--text-main);
    transition: all var(--transition-smooth);
    position: relative;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.project-card:hover {
    border-color: rgba(10, 132, 255, 0.3);
    /* Vibrant Glow on Hover */
    box-shadow:
        0 20px 48px -12px rgba(10, 132, 255, 0.25),
        0 0 20px rgba(10, 132, 255, 0.1);
}

/* Pulse Animation for Cards to invite click */
@keyframes softPulse {
    0% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
        border-color: var(--border-light);
    }

    50% {
        box-shadow: 0 8px 24px rgba(10, 132, 255, 0.15);
        border-color: rgba(10, 132, 255, 0.2);
    }

    100% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
        border-color: var(--border-light);
    }
}

.project-card,
.video-card {
    /* ... existing props ... */
    /* Add subtle continuous pulse */
    animation: softPulse 4s infinite ease-in-out;
}

.project-card:hover,
.video-card:hover {
    animation: none;
    /* Stop pulse on hover, stick to hover state */
}

.card-image-wrapper {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 16px;
    background: #eee;
}

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

.project-card:hover .card-image-wrapper img {
    transform: scale(1.05);
}

.card-info h3 {
    font-size: 18px;
    margin-bottom: 4px;
}

.card-info span {
    font-size: 13px;
    color: var(--text-secondary);
}

.card-icon {
    position: absolute;
    bottom: 20px;
    right: 20px;
    color: var(--primary-blue);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.project-card:hover .card-icon {
    opacity: 1;
    transform: translateX(0);
}

.scroll-hint {
    margin-top: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 13px;
    opacity: 0.7;
    animation: bounce 2s infinite;
}

@keyframes bounce {

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

    40% {
        transform: translateY(-5px);
    }

    60% {
        transform: translateY(-3px);
    }
}


/* Project Views (Sinapsis/Juliana) */
.project-hero {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    max-width: 1000px;
    margin: 80px auto 120px;
    padding: 0 40px;
    align-items: center;
    gap: 40px;
}

.text-side h1 {
    font-size: 44px;
    margin-bottom: 16px;
}

.text-side p {
    font-size: 22px;
    color: var(--text-secondary);
}

.image-side img {
    width: 100%;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-lg);
}

/* Videos Grid */
.videos-grid {
    display: flex;
    flex-direction: column;
    gap: 120px;
    /* Lots of breathing room for scroll chapters */
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

.video-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-card);
    padding: 40px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-smooth);
    /* Initial State for Scroll Reveal */
    opacity: 0.5;
    transform: scale(0.95);
    filter: blur(2px);
}

/* Active Focus State (via JS) */
.video-card.in-focus {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
    box-shadow: var(--shadow-md);
    border-color: rgba(10, 132, 255, 0.2);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.video-number {
    font-family: monospace;
    font-size: 14px;
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.03);
    padding: 4px 8px;
    border-radius: 8px;
}

.tags {
    display: flex;
    gap: 8px;
}

.tag {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary-blue);
    background: rgba(10, 132, 255, 0.08);
    padding: 4px 10px;
    border-radius: 100px;
    font-weight: 600;
}

.description {
    color: var(--text-secondary);
    font-size: 18px;
    margin-top: 12px;
    margin-bottom: 32px;
}

.actions {
    display: flex;
    gap: 16px;
}

.status-badge {
    margin-top: 16px;
    display: inline-block;
    color: #34C759;
    /* Apple Green */
    font-weight: 600;
    font-size: 14px;
    border: 1px solid rgba(52, 199, 89, 0.2);
    padding: 6px 12px;
    border-radius: 99px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.video-card.approved .status-badge {
    opacity: 1;
    transform: translateY(0);
}

.video-card.approved .actions {
    display: none;
}

/* Checklist Accordion */
.checklist-section {
    max-width: 600px;
    margin: 80px auto;
    padding: 0 24px;
}

.apple-accordion {
    background: white;
    padding: 20px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

summary {
    font-weight: 600;
    list-style: none;
    /* Hide default triangle */
    display: flex;
    align-items: center;
    justify-content: space-between;
}

summary::-webkit-details-marker {
    display: none;
}

.accordion-content {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}

.accordion-content ul {
    list-style: none;
}

.accordion-content li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
}

.check-icon {
    color: var(--primary-blue);
    font-weight: bold;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.modal-card {
    background: white;
    width: 90%;
    max-width: 500px;
    border-radius: 20px;
    padding: 32px;
    box-shadow: var(--shadow-lg);
    transform: scale(0.9);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-card {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.close-modal {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-secondary);
    cursor: pointer;
}

.modal-body textarea {
    width: 100%;
    height: 120px;
    border: 1px solid #ccc;
    border-radius: 12px;
    padding: 12px;
    font-family: inherit;
    font-size: 16px;
    resize: none;
    margin-top: 16px;
}

.modal-body textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.1);
}

.modal-footer {
    margin-top: 24px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* CTA & Footer */
.cta-section {
    text-align: center;
    margin: 120px 0;
    padding: 0 24px;
}

.whatsapp-link,
.btn-link {
    color: var(--primary-blue);
    font-weight: 600;
    text-decoration: none;
    font-size: 18px;
    margin-top: 16px;
    display: inline-block;
}

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

footer {
    text-align: center;
    padding: 40px 24px;
    color: var(--text-secondary);
    font-size: 13px;
    border-top: 1px solid var(--border-light);
}

.back-home-link {
    display: block;
    margin-top: 12px;
    color: var(--text-main);
    text-decoration: none;
}

/* Utilities */
.hidden {
    display: none !important;
}

/* Date Pill */
.date-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(10, 132, 255, 0.1);
    color: var(--primary-blue);
    padding: 6px 12px;
    border-radius: 99px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 12px;
    border: 1px solid rgba(10, 132, 255, 0.2);
    width: fit-content;
}

.date-pill strong {
    font-weight: 700;
}

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

    .logo-large {
        max-width: 200px;
    }

    .project-hero {
        grid-template-columns: 1fr;
        text-align: center;
        margin-top: 40px;
    }

    .project-hero .image-side {
        order: -1;
        max-width: 80%;
        margin: 0 auto;
    }

    .cards-container {
        flex-direction: column;
        width: 100%;
    }

    .project-card {
        width: 100%;
        max-width: 340px;
        margin: 0 auto;
    }

    .videos-grid {
        gap: 60px;
        padding: 0 16px;
    }

    .video-card {
        padding: 24px;
    }
}