/* Home Page Styles */

/* Hero */
.hero-section {
    text-align: center;
    padding: 6rem 0 4rem;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

/* Typewriter Animation new style */
.typewriter-container {
    display: inline-block;
    min-width: 300px;
    text-align: left;
    height: 1.2em;
    /* Reserve height */
}

.typewriter-text {
    background: linear-gradient(120deg, var(--primary-color), #FF9800);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    border-right: 4px solid var(--primary-color);
    padding-right: 8px;
    animation: blinkCursor 0.8s step-end infinite;
    white-space: nowrap;
}

@keyframes blinkCursor {

    from,
    to {
        border-color: transparent
    }

    50% {
        border-color: var(--primary-color)
    }
}


.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-tertiary);
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* Apps Grid */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
    padding-bottom: 4rem;
}

.app-card {
    background: var(--bg-surface);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    /* No underline */
    color: var(--text-primary);
}

.app-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

/* Ensure no text underline on hover for any child */
.app-card:hover h3,
.app-card:hover p,
.app-card:hover span {
    text-decoration: none;
}

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

.app-icon {
    width: 64px;
    height: 64px;
    background-size: cover;
    border-radius: var(--radius-md);
    background-color: var(--bg-alt);
}

.app-header h3 {
    font-size: 1.5rem;
    margin: 0;
}

.app-desc {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    flex-grow: 1;
}

/* Buttons inside Card */
.app-actions {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.btn-card {
    flex: 1;
    text-align: center;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
    background: var(--bg-alt);
    color: var(--text-primary);
}

.btn-card:hover {
    background: var(--primary-color);
    color: black;
    /* Contrast */
}

/* Primary Action Button Style for Cards */
.btn-card.primary {
    background: var(--secondary-color);
    /* Black */
    color: white;
}

.btn-card.primary:hover {
    background: var(--primary-color);
    color: black;
}

@media(max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        padding: 0 1.5rem;
    }
    
    .typewriter-text {
        font-size: 0.85em;
    }
}

/* Home Card Categories */
.app-title-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.app-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: black;
    font-weight: 700;
    margin-top: 0.25rem;
    background: var(--primary-color);
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-block;
}

/* Apps Meta Data Design */
.app-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

.meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--bg-body);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    font-weight: 500;
    color: var(--text-secondary);
}

.meta-badge svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

/* Privacy Commitment Section */
.features-section {
    padding: 4rem 0;
    background: transparent;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-surface);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    text-align: left;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: inline-block;
    padding: 10px;
    background: var(--bg-alt);
    border-radius: 12px;
}

.feature-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Contact Section */
.contact-section {
    padding: 4rem 0 6rem;
    text-align: center;
}

.contact-box {
    background: linear-gradient(135deg, var(--bg-surface) 0%, #FFF8E1 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 3rem 2rem;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .contact-box {
    background: linear-gradient(135deg, var(--bg-surface) 0%, #222 100%);
}

.contact-box h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-box p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: var(--text-tertiary);
}