/* gallery-aidemo.css - Gallery & AI Demo Sections */

/* Gallery Section */
.gallery-section {
    padding: 100px 40px;
    background: var(--warm-white);
}

.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.gallery-main {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(124, 132, 113, 0.2);
}

.gallery-main img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
    color: white;
    padding: 30px;
    font-size: 1.1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-main:hover .gallery-caption {
    transform: translateY(0);
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    height: 500px;
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(124, 132, 113, 0.9) 0%, transparent 100%);
    color: white;
    padding: 15px;
    font-size: 0.9rem;
    font-weight: 600;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay,
.gallery-item.active .gallery-overlay {
    transform: translateY(0);
}

.gallery-item.active {
    box-shadow: 0 0 0 3px var(--olive);
}

/* AI Demo Section */
.ai-demo-section {
    padding: 100px 40px;
    background: linear-gradient(135deg, var(--light-sage) 0%, var(--cream) 100%);
}

.ai-demo-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

/* Phone Mockup */
.phone-mockup {
    width: 340px;
    height: 680px;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border-radius: 45px;
    padding: 8px;
    box-shadow: 
        0 50px 100px rgba(0,0,0,0.4),
        0 20px 40px rgba(0,0,0,0.3),
        inset 0 0 0 1px rgba(255,255,255,0.1);
    margin: 0 auto;
    position: relative;
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
}

.phone-mockup:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.02);
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 28px;
    background: #1a1a1a;
    border-radius: 20px;
    z-index: 10;
}

.phone-mockup::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 5px;
    background: #333;
    border-radius: 10px;
    z-index: 11;
}

.phone-screen {
    width: 100%;
    height: calc(100% - 70px);
    background: linear-gradient(135deg, var(--cream) 0%, white 100%);
    border-radius: 35px;
    overflow: hidden;
    position: relative;
    margin-top: 35px;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.1);
}

.demo-screen {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 25px 20px 70px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform: translateX(100%);
}

.demo-screen.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.demo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--light-sage);
}

.demo-header h3 {
    color: var(--deep-olive);
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.demo-time {
    color: var(--sage);
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(168, 183, 158, 0.1);
    padding: 5px 12px;
    border-radius: 20px;
}

/* Mood Screen */
.mood-selector {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 35px;
}

.mood-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px 8px;
    background: white;
    border: 2px solid var(--soft-gray);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    font-size: 1.8rem;
}

.mood-option:hover {
    transform: translateY(-5px) scale(1.05);
    border-color: var(--sage);
    box-shadow: 0 10px 25px rgba(168, 183, 158, 0.3);
}

.mood-option.selected {
    background: linear-gradient(135deg, var(--sage), var(--olive));
    border-color: var(--olive);
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(124, 132, 113, 0.3);
}

.mood-option.selected span {
    color: white;
    font-weight: 600;
}

.mood-option span {
    font-size: 0.7rem;
    color: var(--text-light);
    font-weight: 500;
}

.mood-graph {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 180px;
    padding: 20px 10px;
    background: linear-gradient(to bottom, rgba(232, 237, 229, 0.3) 0%, rgba(232, 237, 229, 0) 100%);
    border-radius: 20px;
    position: relative;
}

.mood-graph::before {
    content: 'Weekly Mood Trend';
    position: absolute;
    top: -25px;
    left: 10px;
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.graph-bar {
    width: 35px;
    background: linear-gradient(to top, var(--light-sage), var(--sage));
    border-radius: 10px 10px 0 0;
    position: relative;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    animation: growBar 1s ease-out forwards;
    opacity: 0;
}

@keyframes growBar {
    from {
        opacity: 0;
        transform: scaleY(0);
    }
    to {
        opacity: 1;
        transform: scaleY(1);
    }
}

.graph-bar:nth-child(1) { animation-delay: 0.1s; }
.graph-bar:nth-child(2) { animation-delay: 0.2s; }
.graph-bar:nth-child(3) { animation-delay: 0.3s; }
.graph-bar:nth-child(4) { animation-delay: 0.4s; }
.graph-bar:nth-child(5) { animation-delay: 0.5s; }

.graph-bar:hover {
    background: linear-gradient(to top, var(--sage), var(--olive));
    transform: scaleY(1.05);
}

.graph-bar.today {
    background: linear-gradient(to top, var(--olive), var(--deep-olive));
    box-shadow: 0 5px 20px rgba(124, 132, 113, 0.3);
}

.graph-bar span {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.65rem;
    color: var(--text-light);
    font-weight: 600;
}

.graph-bar::after {
    content: attr(data-value);
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    color: var(--olive);
    font-weight: 700;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.graph-bar:hover::after {
    opacity: 1;
}

/* Journal Screen */
.journal-entry {
    background: linear-gradient(135deg, white 0%, var(--cream) 100%);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.journal-entry::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 20%, rgba(168, 183, 158, 0.16) 0%, rgba(168, 183, 158, 0.08) 30%, rgba(255,255,255,0.05) 50%, transparent 60%);
    animation: rotate 20s linear infinite;
    z-index: 0;
    pointer-events: none;
}

.journal-prompt {
    color: var(--olive);
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 0.95rem;
    position: relative;
    padding-left: 25px;
}

.journal-prompt::before {
    content: '✨';
    position: absolute;
    left: 0;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.2) rotate(180deg); }
}

.journal-text {
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 20px;
    font-family: Georgia, serif;
    font-size: 0.95rem;
    padding: 15px;
    background: rgba(255,255,255,0.7);
    border-radius: 12px;
    border-left: 3px solid var(--sage);
    position: relative;
}

.journal-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    position: relative;
}

.tag {
    background: linear-gradient(135deg, var(--light-sage), var(--sage));
    color: white;
    padding: 6px 14px;
    border-radius: 25px;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tag:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 5px 15px rgba(168, 183, 158, 0.4);
}

/* Wellness Screen */
.wellness-cards {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.wellness-card {
    background: white;
    border: 2px solid var(--light-sage);
    border-radius: 18px;
    padding: 18px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 15px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
}

.wellness-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(168, 183, 158, 0.2), transparent);
    transition: left 0.5s ease;
}

.wellness-card:hover::before {
    left: 100%;
}

.wellness-card:hover {
    transform: translateX(5px);
    border-color: var(--olive);
    box-shadow: 0 10px 30px rgba(124, 132, 113, 0.15);
}

.wellness-icon {
    font-size: 1.8rem;
    animation: float 3s ease-in-out infinite;
}

.wellness-card:nth-child(1) .wellness-icon { animation-delay: 0s; }
.wellness-card:nth-child(2) .wellness-icon { animation-delay: 1s; }
.wellness-card:nth-child(3) .wellness-icon { animation-delay: 2s; }

.wellness-card h4 {
    color: var(--deep-olive);
    font-size: 1rem;
    margin-bottom: 4px;
    font-weight: 600;
}

.wellness-card p {
    color: var(--text-light);
    font-size: 0.75rem;
    margin: 0;
}

.progress-bar {
    width: 60px;
    height: 8px;
    background: var(--soft-gray);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, var(--sage), var(--olive));
    border-radius: 10px;
    transition: width 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
}

.progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Phone Navigation */
.phone-nav {
    position: absolute;
    bottom: 0;
    left: 8px;
    right: 8px;
    height: 65px;
    background: linear-gradient(135deg, white 0%, var(--cream) 100%);
    border-radius: 0 0 35px 35px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 2px solid var(--light-sage);
    padding: 0 20px;
}

.nav-btn {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-light);
    cursor: pointer;
    padding: 8px 20px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
}

.nav-btn::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--sage), var(--olive));
    border-radius: 2px;
    transition: transform 0.3s ease;
}

.nav-btn.active::before {
    transform: translateX(-50%) scaleX(1);
}

.nav-btn.active {
    color: var(--olive);
    transform: translateY(-2px);
}

.nav-btn:hover:not(.active) {
    color: var(--sage);
    transform: translateY(-2px);
}

.nav-btn span:first-child {
    font-size: 1.3rem;
}

.nav-btn span:last-child {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Demo Features */
.demo-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.demo-feature {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    padding: 25px;
    background: white;
    border-radius: 20px;
    border: 1px solid rgba(168, 183, 158, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.demo-feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--sage), var(--olive));
    transform: translateX(-100%);
    transition: transform 0.4s ease;
}

.demo-feature:hover::before {
    transform: translateX(0);
}

.demo-feature:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 60px rgba(124, 132, 113, 0.15);
    border-color: var(--sage);
}

.feature-icon-wrapper {
    position: relative;
    flex-shrink: 0;
    width: 60px;
    height: 60px;
}

.feature-icon-wrapper .feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--light-sage), var(--sage));
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    color: var(--deep-olive);
}

.icon-bg-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--sage), var(--olive));
    border-radius: 18px;
    opacity: 0.2;
    animation: pulse 3s ease-in-out infinite;
    z-index: 1;
}

.demo-feature:hover .feature-icon {
    transform: rotate(-5deg) scale(1.05);
    background: linear-gradient(135deg, var(--sage), var(--olive));
    color: white;
}

.feature-content {
    flex: 1;
}

.feature-content h3 {
    color: var(--deep-olive);
    margin-bottom: 10px;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.feature-content p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.feature-highlights {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.highlight-tag {
    background: linear-gradient(135deg, rgba(168, 183, 158, 0.1), rgba(124, 132, 113, 0.1));
    color: var(--olive);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: 1px solid rgba(168, 183, 158, 0.3);
    transition: all 0.3s ease;
}

.demo-feature:hover .highlight-tag {
    background: var(--sage);
    color: white;
    border-color: var(--sage);
    transform: translateY(-2px);
}

.demo-feature.active-demo {
    background: linear-gradient(135deg, rgba(232, 237, 229, 0.3) 0%, white 100%);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 25px 70px rgba(124, 132, 113, 0.2);
    border-color: var(--olive);
}

.demo-feature.active-demo::before {
    transform: translateX(0);
}

.demo-feature.active-demo .feature-icon {
    transform: rotate(-5deg) scale(1.1);
    background: linear-gradient(135deg, var(--sage), var(--olive));
    color: white;
}

.demo-feature.active-demo .icon-bg-effect {
    animation: pulse 1s ease-in-out infinite;
}

.demo-feature.active-demo .highlight-tag {
    background: var(--olive);
    color: white;
    border-color: var(--olive);
    animation: tagPulse 0.5s ease;
}

@keyframes tagPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}