:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --gold: #d4af37;
    --gold-dark: #b8860b;
    --blue: #3b82f6;
    --red: #ef4444;
    --bg-dark: #0f172a;
    --card-bg: rgba(255, 255, 255, 0.05);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.1);
    --radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

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

/* Glass Background Effect */
.glass-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.15) 0%, transparent 40%),
                radial-gradient(circle at 80% 70%, rgba(212, 175, 55, 0.1) 0%, transparent 40%);
    z-index: -1;
    animation: pulse 20s infinite alternate linear;
}

@keyframes pulse {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-10%, -10%); }
}

/* Hero Section */
.hero {
    padding: 5rem 0 3rem;
    text-align: center;
}

.logo img {
    max-height: 50px;
    width: auto;
    margin-bottom: 2rem;
}

.hero h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--primary), var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero .subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

/* Grid Layout */
.demo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    padding-bottom: 5rem;
    align-items: start; /* CRITICAL: Prevents cards from stretching to match row height */
}

/* Demo Cards */
.demo-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    backdrop-filter: blur(12px);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.demo-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card-image {
    position: relative;
    height: 280px; /* Slightly taller to accommodate different aspect ratios */
    overflow: hidden;
    background: #000; /* Backdrop for contain if needed */
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Changed to contain to show full images as requested */
    background: #000;
    transition: var(--transition);
}

.demo-card:hover .card-image img {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.demo-card:hover .card-overlay {
    opacity: 1;
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
}

.card-content h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

/* Badges */
.badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.badge-blue {
    background: rgba(59, 130, 246, 0.1);
    color: var(--blue);
    border-color: rgba(59, 130, 246, 0.3);
}

.badge-red {
    background: rgba(239, 68, 68, 0.1);
    color: var(--red);
    border-color: rgba(239, 68, 68, 0.3);
}

/* Credentials Section */
.credentials {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.25rem;
    border-radius: 12px;
    border: 1px dashed var(--border);
}

.credential-item {
    font-size: 0.85rem;
    color: var(--text-main);
    margin-bottom: 0.25rem !important;
}

.credential-item strong {
    color: var(--gold);
    margin-right: 0.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
}

.btn-admin {
    background: var(--red);
    color: white;
}

.btn-admin:hover {
    background: #dc2626;
    transform: scale(1.05);
}

/* Footer */
.footer {
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer i {
    color: var(--red);
    margin: 0 0.2rem;
}

/* Mobile Previews Section */
.mobile-section {
    padding: 5rem 0;
    text-align: center;
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--text-main), var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mobile-grid {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.mobile-card {
    max-width: 320px;
    width: 100%;
}

.mobile-frame {
    background: #000;
    border: 8px solid #1e293b;
    border-radius: 40px;
    overflow: hidden;
    height: 600px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.mobile-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Changed from cover to show full content */
    background: #000;
}

.mobile-card:hover .mobile-frame {
    transform: translateY(-15px) scale(1.02);
    border-color: var(--gold);
}

.mobile-info h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.mobile-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    .demo-grid {
        grid-template-columns: 1fr;
    }
    .mobile-grid {
        gap: 2rem;
    }
    .mobile-frame {
        height: 500px;
    }
}
