/* Custom styles for FramePack website */

/* Base Styles */
:root {
    --primary: #4834d4;
    --primary-light: #686de0;
    --primary-dark: #30336b;
    --accent: #7d5fff;
    --accent-light: #a55eea;
    --background: #ffffff;
    --background-alt: #f7f7ff;
    --text: #2c3e50;
    --text-light: #636e72;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--background);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Navigation */
.nav-container {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-link {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s;
    color: var(--text);
}

.nav-link:hover {
    color: var(--primary);
    transform: translateY(-1px);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--background-alt) 0%, var(--background) 100%);
    padding-top: 4rem;
}

.hero-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    gap: 4rem;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    text-align: left;
    padding: 2rem 0;
}

.hero-text {
    font-size: 2.5rem;
    line-height: 1.2;
    font-weight: 700;
    background: linear-gradient(to right, #4834d4, #686de0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.125rem;
    line-height: 1.6;
    color: #4a5568;
    margin-bottom: 2rem;
    max-width: 90%;
}

.hero-video {
    flex: 1;
    max-width: 650px;
}

.video-container {
    position: relative;
    width: 100%;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    background: var(--background);
    aspect-ratio: 16/9;
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background-dark);
    transition: opacity 0.3s ease;
}

.thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-button {
    position: absolute;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.play-button:hover {
    transform: scale(1.1);
    background: white;
}

.play-icon {
    width: 40px;
    height: 40px;
    color: var(--primary);
    margin-left: 5px;
}

iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.demo-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(72, 52, 212, 0.05) 0%,
        rgba(125, 95, 255, 0.05) 100%
    );
    pointer-events: none;
}

.btn-container {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 0.75rem;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(72, 52, 212, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(72, 52, 212, 0.3);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    font-weight: 600;
    color: var(--primary);
    background: rgba(72, 52, 212, 0.1);
    border-radius: 0.75rem;
    transition: all 0.3s;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    background: rgba(72, 52, 212, 0.15);
}

/* Sections */
.section {
    padding: 6rem 1rem;
}

.section-light {
    background: var(--background);
}

.section-dark {
    background: var(--background-alt);
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    text-align: center;
    max-width: 48rem;
    margin: 0 auto;
}

/* Cards */
.card {
    padding: 2rem;
    border-radius: 1rem;
    background: var(--background);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(72, 52, 212, 0.2);
}

/* Code Blocks */
.code-block {
    display: block;
    padding: 1rem;
    margin: 1rem 0;
    background: #2d3436;
    color: #dfe6e9;
    border-radius: 0.75rem;
    font-family: 'Fira Code', monospace;
    font-size: 0.875rem;
    line-height: 1.5;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    max-width: 100%;
}

@media (max-width: 640px) {
    .code-block {
        font-size: 0.75rem;
        padding: 0.75rem;
    }
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 4rem 1rem;
    color: white;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s;
}

.footer-link:hover {
    color: white;
    transform: translateX(5px);
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    z-index: 50;
}

.mobile-menu-content {
    position: fixed;
    right: 0;
    top: 0;
    height: 100%;
    width: 20rem;
    background: var(--background);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
}

.mobile-nav-link {
    @apply block px-4 py-2 text-gray-600 hover:bg-indigo-50 hover:text-indigo-600 rounded-lg transition-colors duration-200;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .hero-container {
        flex-direction: column;
        padding: 2rem;
        gap: 2rem;
    }

    .hero-content {
        text-align: center;
        padding: 0;
    }

    .hero-text {
        font-size: 2.5rem;
    }

    .btn-container {
        justify-content: center;
    }

    .hero-video {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .hero-text {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
}

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
    :root {
        --primary: #686de0;
        --primary-light: #7d5fff;
        --primary-dark: #4834d4;
        --accent: #a55eea;
        --accent-light: #cd84f1;
        --background: #1a1a2e;
        --background-alt: #16213e;
        --text: #ffffff;
        --text-light: #b2bec3;
    }

    .nav-container {
        background: rgba(26, 26, 46, 0.95);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .card {
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.05);
    }

    .btn-secondary {
        background: rgba(255, 255, 255, 0.1);
    }

    .btn-secondary:hover {
        background: rgba(255, 255, 255, 0.15);
    }

    .video-container {
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    }
    
    .video-overlay {
        background: linear-gradient(
            135deg,
            rgba(72, 52, 212, 0.1) 0%,
            rgba(125, 95, 255, 0.1) 100%
        );
    }
}

/* Showcase Section */
.showcase-item {
    position: relative;
    transition: all 0.3s ease;
}

.showcase-item:hover {
    transform: translateY(-5px);
}

.showcase-content {
    padding: 1rem;
    background: var(--background);
    border-radius: 0 0 1rem 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.prompt-container {
    background: rgba(72, 52, 212, 0.05);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-top: 0.5rem;
}

.prompt-text {
    font-family: 'Fira Code', monospace;
    font-size: 0.875rem;
    color: var(--primary);
    line-height: 1.5;
}

@media (prefers-color-scheme: dark) {
    .prompt-container {
        background: rgba(255, 255, 255, 0.05);
    }
    
    .showcase-content {
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.05);
    }
} 