.hero {
    background: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('../assets/images/hero-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.2;
    z-index: 0;
}
.hero-content { max-width: 800px; margin: 0 auto; position: relative; z-index: 1; }
.hero h1 { font-size: 2.5rem; margin-bottom: 1rem; }
.hero p { font-size: 1.2rem; margin-bottom: 2rem; opacity: 0.95; }

.hero .cta-button:hover { transform: translateY(-2px); }
.hero .cta-button.secondary { background: transparent; color: white; border: 2px solid white; }

.hero .video-note {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.hero .video-note i {
    margin-right: 0.5rem;
}

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.feature-card { 
    background: #f5f5f5; 
    border-radius: 8px; 
    transition: transform 0.3s, box-shadow 0.3s; 
    overflow: hidden; /* To keep the image corners rounded */
    display: flex;
    flex-direction: column;
}
.feature-card:hover { 
    transform: translateY(-4px); 
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}
.feature-card-content {
    padding: 2rem;
    padding-top: 1.5rem;
    flex-grow: 1;
}
.feature-card h3 { color: #1565c0; margin-bottom: 1rem; }

.feature-screenshot {
    position: relative;
    overflow: hidden;
    height: 180px; /* You can adjust this value */
}
.feature-screenshot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, filter 0.3s ease; /* Added filter to transition */
    cursor: pointer;
    filter: grayscale(40%) brightness(0.9); /* Apply a subtle filter by default */
}
.feature-card:hover .feature-screenshot img {
    transform: scale(1.05);
    filter: none; /* Remove filter on hover to reveal full color */
}

.privacy-link-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* Community Library Section */
.community-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    background: #f5f5f5;
    padding: 2rem;
    border-radius: 8px;
}
.community-content h3 {
    color: #1565c0;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}
.community-content .cta-button { margin-top: 1rem; }
.community-content .cta-button.secondary { background: transparent; border: 2px solid #1565c0; }

@media (max-width: 768px) {
    .hero h1 { font-size: 1.8rem; }
    .hero p { font-size: 1rem; }
    .hero {
        padding: 3rem 1rem;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    animation: zoomIn 0.3s ease-out;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    padding: 16px;
    user-select: none;
    transition: background-color 0.3s ease;
}

.modal-nav:hover {
    background-color: rgba(0, 0, 0, 0.3);
}

.modal-prev { left: 10px; }
.modal-next { right: 10px; }

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}