@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&family=Outfit:wght@400;600;800&display=swap');

:root {
    --bg-color: #002418;
    --card-bg: rgba(0, 36, 24, 0.6);
    --card-border: rgba(163, 243, 97, 0.15);
    --accent-primary: #a3f361;
    --accent-secondary: #d1ff9a;
    --text-main: #f0fdf4;
    --text-muted: #86efac;
    --glass-blur: 16px;
    --transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* Background Gradients - Premium Glow */
body::before {
    content: '';
    position: fixed;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: 
        radial-gradient(circle at 15% 15%, rgba(163, 243, 97, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 85%, rgba(163, 243, 97, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0) 0%, rgba(0, 36, 24, 0.5) 100%);
    z-index: -1;
}

/* Typography */
h1, h2, h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
}

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

/* Header Section */
.header {
    text-align: center;
    margin-bottom: 6rem;
    animation: fadeInDown 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo-container {
    margin-bottom: 2rem;
}

.main-logo {
    max-width: 180px;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(163, 243, 97, 0.3));
    transition: var(--transition);
}

.main-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 30px rgba(163, 243, 97, 0.5));
}

.header h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    background: linear-gradient(135deg, #fff 40%, var(--accent-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.header p {
    color: var(--text-muted);
    font-size: 1.25rem;
    max-width: 650px;
    margin: 0 auto;
    opacity: 0.9;
    font-weight: 300;
}

/* Demo Grid */
.demo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 3rem;
    perspective: 1200px;
}

/* Card Styling - Refined Premium Look */
.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 28px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    display: flex;
    flex-direction: column;
    will-change: transform, opacity;
}

.card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: rgba(163, 243, 97, 0.4);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 
                0 0 30px rgba(163, 243, 97, 0.1);
}

.card-image-wrapper {
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    position: relative;
    background: #00120d;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    opacity: 0.7;
    will-change: transform;
}

.card:hover .card-image {
    transform: scale(1.08);
    opacity: 1;
}

.card-content {
    padding: 2rem;
    background: linear-gradient(to bottom, transparent, rgba(0,36,24,0.8));
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: #fff;
    transition: var(--transition);
}

.card:hover .card-title {
    color: var(--accent-primary);
}

.card-description {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 300;
    opacity: 0.8;
}

/* Iframe Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 18, 12, 0.95);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(25px);
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

.overlay-header {
    padding: 1.25rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 36, 24, 0.8);
    border-bottom: 1px solid var(--card-border);
}

.overlay-header h3 {
    color: var(--accent-primary);
    font-size: 1.5rem;
}

.close-btn {
    background: rgba(163, 243, 97, 0.1);
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
    padding: 0.75rem 2rem;
    border-radius: 99px;
    cursor: pointer;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.8rem;
    transition: var(--transition);
}

.close-btn:hover {
    background: var(--accent-primary);
    color: var(--bg-color);
    box-shadow: 0 0 20px rgba(163, 243, 97, 0.4);
}

.iframe-container {
    flex-grow: 1;
    position: relative;
    background: #fff;
}

iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 3px solid rgba(163, 243, 97, 0.1);
    border-radius: 50%;
    border-top-color: var(--accent-primary);
    animation: spin 1s linear infinite;
    z-index: 5;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(40px);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container { padding: 4rem 1.5rem; }
    .header { margin-bottom: 4rem; }
    .demo-grid { grid-template-columns: 1fr; gap: 2rem; }
    .overlay-header { padding: 1rem 1.5rem; }
    .main-logo { max-width: 140px; }
}

