:root {
    --bg-color: #050505;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
    --card-hover-border: rgba(255, 255, 255, 0.2);
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --accent-1: #6366f1;
    --accent-2: #ec4899;
    --gradient: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Background Animated Blobs */
.background-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: float 20s infinite alternate ease-in-out;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: var(--accent-1);
    top: -200px;
    left: -100px;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: var(--accent-2);
    bottom: -150px;
    right: -100px;
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, 50px) scale(1.1); }
    100% { transform: translate(-30px, 80px) scale(0.9); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    flex: 1;
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 5rem;
    animation: fadeInDown 1s ease-out;
}

.title {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

/* Search Bar (Glassmorphism) */
.search-container {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-radius: 999px;
    padding: 0.5rem 1.5rem;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.search-container:focus-within {
    border-color: var(--accent-1);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.search-icon {
    color: var(--text-muted);
    margin-right: 1rem;
}

.search-container input {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.1rem;
    font-family: var(--font-body);
    width: 100%;
    padding: 0.75rem 0;
    outline: none;
}

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

/* Grid & Cards */
.prototypes-section {
    position: relative;
    min-height: 300px;
}

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

.card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out backwards;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--card-hover-border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    background: rgba(255, 255, 255, 0.05);
}

.card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--gradient);
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-transform: capitalize;
}

.card-desc {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.5;
    flex-grow: 1;
}

.card-footer {
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    color: var(--accent-1);
    font-weight: 600;
    font-size: 0.9rem;
}

.card-footer svg {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.card:hover .card-footer svg {
    transform: translateX(5px);
}

/* Utility States */
.loading, .error, .no-results {
    text-align: center;
    padding: 3rem;
    font-size: 1.2rem;
    color: var(--text-muted);
    width: 100%;
}

.error {
    color: #ef4444;
}

.hidden {
    display: none;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    border-top: 1px solid var(--card-border);
    margin-top: auto;
}

.heart {
    color: var(--accent-2);
    display: inline-block;
    animation: pulse 2s infinite;
}

/* Animations */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Responsive */
@media (max-width: 768px) {
    .title { font-size: 3rem; }
    .subtitle { font-size: 1.1rem; }
    .container { padding: 3rem 1.5rem; }
}
