/* Base styles and CSS reset */
:root {
    --primary-color: #ff00ff; /* Vibrant magenta */
    --secondary-color: #00ffff; /* Cyan */
    --accent-color: #f72585; /* Hot pink */
    --dark-bg: #151030; /* Dark purple background */
    --medium-bg: #1a1846; /* Slightly lighter purple */
    --light-bg: #2c1e6a; /* Lighter purple for cards */
    --text-light: #ffffff;
    --text-dark: #0f0f0f;
    --text-muted: #a9a6c2;
    --gradient: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --card-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    --animation-duration: 0.3s;
    --section-spacing: 6rem;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--animation-duration) ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0.8em;
    font-weight: 700;
    line-height: 1.3;
}

p {
    margin-bottom: 1rem;
}

/* Header and Navigation */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(21, 16, 48, 0.95);
    backdrop-filter: blur(8px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 0, 255, 0.2);
    padding: 1rem 0;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-animation {
    display: flex;
    align-items: center;
}

.logo-text-primary {
    background: var(--gradient);
    -webkit-background-clip: text;
    color: transparent;
    margin-right: 0.3rem;
}

.logo-text-secondary {
    color: var(--text-light);
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-menu li {
    margin-left: 2rem;
}

.nav-menu a {
    font-weight: 500;
    position: relative;
    padding-bottom: 0.3rem;
}

.nav-menu a:not(.btn-nav):after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width var(--animation-duration) ease;
}

.nav-menu a:not(.btn-nav):hover:after {
    width: 100%;
}

.btn-nav {
    background: var(--gradient);
    color: var(--text-light);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 0, 255, 0.4);
    transform: translateY(0);
    transition: all var(--animation-duration) ease;
}

.btn-nav:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 0, 255, 0.6);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
}

.mobile-toggle span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: var(--text-light);
    border-radius: 2px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: all 0.25s ease-in-out;
}

.mobile-toggle span:nth-child(1) {
    top: 0px;
}

.mobile-toggle span:nth-child(2) {
    top: 10px;
}

.mobile-toggle span:nth-child(3) {
    top: 20px;
}

/* Hero Section */
.hero {
    padding-top: 8rem;
    padding-bottom: 4rem;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at top right, rgba(255, 0, 255, 0.2), transparent 60%),
                radial-gradient(circle at bottom left, rgba(0, 255, 255, 0.2), transparent 60%),
                var(--dark-bg);
}

.hero .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
}

.hero-content {
    flex: 1 0 450px;
}

.animated-heading {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

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

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--text-muted);
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--animation-duration) ease;
    text-align: center;
}

.btn-primary {
    background: var(--gradient);
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(255, 0, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 0, 255, 0.6);
}

.btn-secondary {
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    background: transparent;
}

.btn-secondary:hover {
    background: rgba(0, 255, 255, 0.1);
    transform: translateY(-3px);
}

.btn-large {
    padding: 1rem 3rem;
    font-size: 1.2rem;
}

.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 0, 255, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(255, 0, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 0, 255, 0);
    }
}

.hero-animation {
    flex: 1 0 400px;
    display: flex;
    justify-content: center;
}

.animation-container {
    width: 100%;
    max-width: 500px;
    background-color: var(--medium-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    position: relative;
}

.animation-frame {
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    background: linear-gradient(45deg, rgba(255, 0, 255, 0.15), rgba(0, 255, 255, 0.15));
    position: relative;
}

.animation-frame::after {
    content: 'AI Animation Preview';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-light);
    font-size: 1.2rem;
    font-weight: 500;
    text-align: center;
}

.animation-controls {
    padding: 1rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.control-item {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--text-muted);
    opacity: 0.5;
    transition: all var(--animation-duration) ease;
}

.control-item.active {
    opacity: 1;
    background: var(--gradient);
    width: 24px;
    border-radius: 6px;
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
    color: var(--medium-bg);
}

/* Features Section */
.features {
    padding: var(--section-spacing) 0;
    background-color: var(--medium-bg);
}

.section-heading {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    color: transparent;
    display: inline-block;
    width: 100%;
}

.section-subheading {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 3rem;
}

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

.feature-card {
    background-color: var(--light-bg);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    transition: all var(--animation-duration) ease;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient);
}

.feature-icon {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-muted);
}

.cta-container {
    margin-top: 3rem;
    text-align: center;
}

/* Animation Styles Section */
.animations {
    padding: var(--section-spacing) 0;
    background-color: var(--dark-bg);
    position: relative;
}

.light {
    color: var(--text-light);
}

.style-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.style-card {
    text-align: center;
}

.style-preview {
    height: 200px;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    position: relative;
}

.style-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(21, 16, 48, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity var(--animation-duration) ease;
    cursor: pointer;
}

.style-overlay:hover {
    opacity: 0.5;
}

.style-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

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

[data-style="realistic"] {
    background: linear-gradient(45deg, #480876, #7f1eb0);
}

[data-style="anime"] {
    background: linear-gradient(45deg, #f72585, #b5179e);
}

[data-style="cartoon"] {
    background: linear-gradient(45deg, #4361ee, #3a0ca3);
}

[data-style="fantasy"] {
    background: linear-gradient(45deg, #4cc9f0, #7209b7);
}

.animation-demo {
    margin-top: 3rem;
}

.demo-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.demo-placeholder {
    padding-top: 56.25%; /* 16:9 aspect ratio */
    position: relative;
    background-color: var(--light-bg);
    border-radius: 12px;
    overflow: hidden;
}

.placeholder-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

/* How It Works Section */
.how-it-works {
    padding: var(--section-spacing) 0;
    background-color: var(--medium-bg);
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.step-number {
    min-width: 50px;
    height: 50px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.step-content h3 {
    margin-bottom: 0.5rem;
}

.step-content p {
    color: var(--text-muted);
}

.demo-container {
    max-width: 800px;
    margin: 0 auto;
}

.demo-interface {
    background-color: var(--light-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.interface-header {
    background-color: #0f0f1a;
    padding: 1rem;
    display: flex;
    align-items: center;
}

.interface-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ff5f56;
    margin-right: 0.5rem;
    display: inline-block;
}

.interface-dot:nth-child(2) {
    background-color: #ffbd2e;
}

.interface-dot:nth-child(3) {
    background-color: #27c93f;
}

.interface-title {
    margin-left: 1rem;
    color: var(--text-muted);
    font-weight: 500;
}

.interface-body {
    padding: 2rem;
}

.prompt-container {
    margin-bottom: 1.5rem;
}

.prompt-label {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.prompt-field {
    background-color: var(--dark-bg);
    border-radius: 8px;
    padding: 1rem;
    min-height: 100px;
    color: var(--text-muted);
    cursor: text;
}

.options-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.option label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.option select {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--dark-bg);
    color: var(--text-light);
    border: none;
    border-radius: 8px;
    appearance: none;
    cursor: pointer;
}

.generate-button-container {
    text-align: center;
    margin-top: 2rem;
}

.generate-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--gradient);
    border-radius: 50px;
    color: var(--text-light);
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 0, 255, 0.4);
    transition: all var(--animation-duration) ease;
}

.generate-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 0, 255, 0.6);
}

/* Testimonials Section */
.testimonials {
    padding: var(--section-spacing) 0;
    background-color: var(--dark-bg);
}

.testimonial-carousel {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial-card {
    background-color: var(--light-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    margin-bottom: 2rem;
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.testimonial-content p {
    font-style: italic;
    position: relative;
    padding: 0 1.5rem;
}

.testimonial-content p::before,
.testimonial-content p::after {
    content: '"';
    font-size: 2rem;
    color: var(--accent-color);
    position: absolute;
    opacity: 0.5;
}

.testimonial-content p::before {
    left: 0;
    top: -10px;
}

.testimonial-content p::after {
    right: 0;
    bottom: -30px;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-info {
    margin-left: 0.5rem;
}

.author-name {
    font-weight: 600;
}

.author-title {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.testimonial-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--text-muted);
    opacity: 0.5;
    cursor: pointer;
}

.indicator.active {
    opacity: 1;
    background: var(--gradient);
    width: 20px;
    border-radius: 5px;
}

/* Final CTA Section */
.final-cta {
    padding: 4rem 0;
    background: radial-gradient(circle at top right, rgba(255, 0, 255, 0.3), transparent 60%),
                radial-gradient(circle at bottom left, rgba(0, 255, 255, 0.3), transparent 60%),
                var(--dark-bg);
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

/* Footer */
.site-footer {
    background-color: #0f0f1a;
    padding: 4rem 0 2rem;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.footer-logo a {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo svg {
    width: 40px;
    height: 40px;
}

.footer-nav ul {
    display: flex;
    gap: 2rem;
}

.footer-middle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.footer-description {
    max-width: 500px;
    color: var(--text-muted);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-legal p {
    margin-bottom: 0.5rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    :root {
        --section-spacing: 4rem;
    }
    
    .hero-content {
        flex: 1 0 100%;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .animated-heading {
        font-size: 2.8rem;
    }
    
    .section-heading {
        font-size: 2rem;
    }
    
    .footer-top, .footer-middle, .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .footer-nav ul {
        justify-content: center;
    }
    
    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .hero {
        padding-top: 6rem;
    }
    
    .mobile-toggle {
        display: block;
        z-index: 1001;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--dark-bg);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        transition: right 0.3s ease;
        z-index: 1000;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        margin: 0;
    }
    
    .animated-heading {
        font-size: 2.2rem;
    }
    
    .step {
        flex-direction: column;
    }
    
    .step-number {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
    }
    
    .animated-heading {
        font-size: 1.8rem;
    }
    
    .section-heading {
        font-size: 1.8rem;
    }
    
    .section-subheading {
        font-size: 1rem;
    }
}
