﻿/*
Theme Name: Epfortal Theme
Theme URI: https://epfortal.in/
Author: Antigravity
Author URI: #
Description: A modern premium theme for AI Prompts.
Version: 1.0
Text Domain: epfortal
*/
:root {
    --primary-color: #26294d;
    --primary-hover: #3a3f6b;
    --bg-color: #f7f9fc;
    --nav-bg: rgba(255, 255, 255, 0.85); /* Glassmorphism */
    --text-main: #333333;
    --text-muted: #666666;
    --whatsapp-color: #25D366;
    --whatsapp-hover: #1EBE55;
    --card-bg: #ffffff;
    --card-title-bg: linear-gradient(135deg, #ffffff 0%, #f9f9fc 100%);
    --highlight-color: #00b4d8;
    --mesh-color-1: rgba(0, 180, 216, 0.15);
    --mesh-color-2: rgba(131, 56, 236, 0.15);
    --search-bg: rgba(255, 255, 255, 0.9);
}

/* Dark Theme Overrides */
body.dark-theme {
    --primary-color: #8c90eb;
    --primary-hover: #a3a7f8;
    --bg-color: #0f111a;
    --nav-bg: rgba(15, 17, 26, 0.85);
    --text-main: #f0f0f0;
    --text-muted: #a0a0a0;
    --card-bg: #1a1d2d;
    --card-title-bg: linear-gradient(135deg, #1a1d2d 0%, #151724 100%);
    --mesh-color-1: rgba(0, 180, 216, 0.08);
    --mesh-color-2: rgba(131, 56, 236, 0.08);
    --search-bg: rgba(26, 29, 45, 0.7);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    transition: background-color 0.4s ease, color 0.4s ease;
    overflow-x: hidden;
}

/* Animated Mesh Background */
.bg-mesh {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 60vh;
    background: radial-gradient(circle at 15% 50%, var(--mesh-color-1), transparent 50%),
                radial-gradient(circle at 85% 30%, var(--mesh-color-2), transparent 50%);
    z-index: -1;
    animation: flow 15s ease-in-out infinite alternate;
}

@keyframes flow {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-20px) scale(1.05); }
}

/* Navbar */
.navbar {
    background-color: var(--nav-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background-color 0.4s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
    padding: 0.25rem;
}
.theme-toggle:hover {
    color: var(--highlight-color);
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

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

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-main);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.typewriter-text {
    color: var(--highlight-color);
}

.cursor {
    display: inline-block;
    width: 3px;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.search-container {
    display: flex;
    max-width: 600px;
    margin: 0 auto 2rem;
    position: relative;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    border-radius: 50px;
    background: var(--search-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    transition: background-color 0.4s ease, box-shadow 0.3s ease;
}

.search-container:focus-within {
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.search-input {
    flex: 1;
    padding: 1.25rem 2rem;
    border: 2px solid transparent;
    border-radius: 50px 0 0 50px;
    font-size: 1rem;
    outline: none;
    background: transparent;
    color: var(--text-main);
    transition: border-color 0.3s;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0 2rem;
    border-radius: 0 50px 50px 0;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.hero-subtext {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 650px;
    margin: 0 auto;
}

/* Grid Layout */
.grid-container {
    max-width: 1200px;
    margin: 0 auto 4rem;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

/* Cards */
.card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(128, 128, 128, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    position: relative;
    /* Hide filtered cards */
    display: flex;
}
.card.filtered-out {
    display: none !important;
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.card-image-container {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    position: relative;
}

.card-image-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 40%);
    z-index: 1;
    pointer-events: none;
}

.card-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.4s ease;
}

.card:hover .card-image-container img {
    transform: scale(1.08);
    filter: brightness(0.85);
}

/* Copy Button Overlay */
.copy-btn {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.4);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
    cursor: pointer;
}

.card:hover .copy-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.copy-btn:hover {
    background: white;
    color: #111;
}

.copy-btn.copied {
    background: var(--whatsapp-color);
    color: white;
    border-color: var(--whatsapp-color);
}

.card-title {
    padding: 1.5rem 1.25rem;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-main);
    text-align: center;
    line-height: 1.4;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-title-bg);
    border-top: 1px solid rgba(128,128,128,0.05);
    transition: background 0.4s ease, color 0.4s ease;
}


/* Footer */
.site-footer {
    background-color: var(--nav-bg);
    backdrop-filter: blur(16px);
    border-top: 1px solid rgba(128, 128, 128, 0.08);
    padding: 4rem 1rem 2rem;
    margin-top: 4rem;
    transition: background-color 0.4s ease;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--highlight-color);
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-align: center;
    border-top: 1px solid rgba(128,128,128,0.1);
    padding-top: 2rem;
    width: 100%;
}

/* WhatsApp Floater */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--whatsapp-color);
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    z-index: 100;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.whatsapp-float:hover {
    background-color: var(--whatsapp-hover);
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--nav-bg);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        flex-direction: column;
        align-items: center;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
        gap: 1.5rem;
    }

    .nav-links.active {
        max-height: 400px;
        padding: 2rem 0;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero h1 {
        font-size: 2rem;
    }

    .grid-container {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
}


