/* ============================================
   CSS Variables & Root Styles
   ============================================ */
:root {
    --primary-color: rgb(0, 184, 184);
    --primary-dark: teal;
    --primary-light: rgb(0, 235, 235);
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    --danger-color: #ef4444;
    
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --text-white: #ffffff;
    
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    --bg-dark: #1f2937;
    
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    --transition: all 0.3s ease;
    --border-radius: 0.5rem;
}

/* ============================================
   Reset & Base Styles
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ============================================
   Container
   ============================================ */
.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ============================================
   Header
   ============================================ */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--text-white);
    padding: 4rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.header-content {
    max-width: 800px;
    margin: 0 auto;
}

.logo {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.tagline {
    font-size: 1.25rem;
    opacity: 0.9;
    font-weight: 300;
}

/* ============================================
   Main Content
   ============================================ */
.main-content {
    flex: 1;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    padding: 3rem 2rem;
}

/* ============================================
   Section Styles
   ============================================ */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    color: var(--text-primary);
    text-align: center;
}

/* ============================================
   Demos Grid
   ============================================ */
.demos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

@media (max-width: 768px) {
    .demos-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ============================================
   Demo Card
   ============================================ */
.demo-card {
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.demo-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

.demo-card-image {
    position: relative;
    overflow: hidden;
    background: var(--bg-tertiary);
    aspect-ratio: 16 / 9;
}

.demo-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.demo-card:hover .demo-card-image img {
    transform: scale(1.05);
}

.demo-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-color);
    color: var(--text-white);
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.demo-badge.coming-soon {
    background: var(--text-light);
}

.demo-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.demo-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.demo-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
    flex-grow: 1;
}

.demo-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.demo-features li {
    color: var(--text-secondary);
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.demo-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

.demo-meta {
    margin-bottom: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.tech-stack {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.demo-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--text-white);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    align-self: flex-start;
    border: 2px solid transparent;
}

.demo-link:hover {
    transform: translateX(4px);
}

.demo-link:active {
    transform: translateX(2px);
}

.arrow-icon {
    width: 1rem;
    height: 1rem;
    transition: transform 0.3s ease;
}

.demo-link:hover .arrow-icon {
    transform: translateX(4px);
}

/* ============================================
   Info Section
   ============================================ */
.info-section {
    background: var(--bg-primary);
    padding: 3rem 2rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
}

.info-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.info-section > p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
    font-size: 1.05rem;
}

.info-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.info-box {
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.info-box:hover {
    background: var(--bg-tertiary);
    transform: translateX(4px);
}

.info-box h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.info-box p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 2rem;
    text-align: center;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content p {
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-light);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
    .logo {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .main-content {
        padding: 2rem 1rem;
    }

    .demos-section {
        margin-bottom: 2rem;
    }

    .info-section {
        padding: 2rem 1rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 2rem 1rem;
    }

    .logo {
        font-size: 1.5rem;
    }

    .tagline {
        font-size: 0.9rem;
    }

    .demo-card-content {
        padding: 1rem;
    }

    .footer-links {
        gap: 1rem;
        flex-direction: column;
    }
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.demo-card {
    animation: fadeIn 0.6s ease-out;
}

.demo-card:nth-child(2) {
    animation-delay: 0.1s;
}

.demo-card:nth-child(3) {
    animation-delay: 0.2s;
}

.demo-card:nth-child(4) {
    animation-delay: 0.3s;
}

.demo-card:nth-child(5) {
    animation-delay: 0.4s;
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .footer {
        display: none;
    }

    .demo-link {
        display: none;
    }
}
