/* CSS Variables */
:root {
    --primary-color: #6e45e2;
    --secondary-color: #88d3ce;
    --accent-color: #00f2fe;
    --dark-color: #0f0c29;
    --darker-color: #0a081f;
    --light-color: #ffffff;
    --glass-color: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Orbitron', sans-serif;
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--light-color);
    background: linear-gradient(135deg, var(--dark-color), var(--darker-color));
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

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

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-secondary);
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 20px;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 30px;
    text-align: center;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

p {
    margin-bottom: 15px;
    font-weight: 300;
}

span {
    color: var(--accent-color);
}

.subtext {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 30px;
    text-align: center;
}

/* Glassmorphism Effect */
.glassmorphism {
    background: var(--glass-color);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: var(--border-radius);
}

/* Buttons */
.cta-btn, .glow-btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    color: var(--light-color);
    border: none;
    border-radius: 50px;
    font-family: var(--font-secondary);
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.glow-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.glow-btn:hover::before {
    opacity: 1;
}

.glow-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 242, 254, 0.3);
}

.cta-btn {
    font-size: 1.1rem;
    margin-top: 20px;
}

.filter-btn {
    padding: 8px 20px;
    background: transparent;
    color: var(--light-color);
    border: 1px solid var(--accent-color);
    border-radius: 50px;
    font-family: var(--font-secondary);
    margin: 0 5px 10px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
    background: var(--accent-color);
    color: var(--dark-color);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: var(--transition);
}

header.scrolled {
    padding: 15px 0;
    background: rgba(15, 12, 41, 0.9);
}

.logo {
    font-family: var(--font-secondary);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--light-color);
    text-decoration: none;
}

.logo span {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--light-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--light-color);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Sections */
.hero, .about-hero, .gallery-hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    position: relative;
}

.hero::before, .about-hero::before, .gallery-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(110, 69, 226, 0.2) 0%, transparent 70%);
    z-index: -1;
}

/* Generator Section */
.generator-section {
    padding: 100px 0;
}

.generator-card {
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.prompt-input {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.prompt-input input {
    flex: 1;
    min-width: 200px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    color: var(--light-color);
    font-size: 1rem;
}

.prompt-input input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.prompt-input select {
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    color: var(--light-color);
    font-size: 1rem;
    cursor: pointer;
}

.result-container {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.loading-animation {
    text-align: center;
}

.dot-flashing {
    position: relative;
    width: 10px;
    height: 10px;
    border-radius: 5px;
    background-color: var(--accent-color);
    color: var(--accent-color);
    animation: dot-flashing 1s infinite linear alternate;
    animation-delay: 0.5s;
    margin: 0 auto 20px;
}

.dot-flashing::before, .dot-flashing::after {
    content: '';
    display: inline-block;
    position: absolute;
    top: 0;
    width: 10px;
    height: 10px;
    border-radius: 5px;
    background-color: var(--accent-color);
    color: var(--accent-color);
}

.dot-flashing::before {
    left: -15px;
    animation: dot-flashing 1s infinite alternate;
    animation-delay: 0s;
}

.dot-flashing::after {
    left: 15px;
    animation: dot-flashing 1s infinite alternate;
    animation-delay: 1s;
}

@keyframes dot-flashing {
    0% {
        opacity: 0.3;
        transform: translateY(0);
    }
    50%, 100% {
        opacity: 1;
        transform: translateY(-10px);
    }
}

.result-card {
    width: 100%;
    text-align: center;
    padding: 30px;
}

.image-placeholder {
    width: 100%;
    height: 400px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    overflow: hidden;
}

.image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.result-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.download-btn, .regenerate-btn {
    padding: 10px 25px;
    border: none;
    border-radius: 50px;
    font-family: var(--font-primary);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.download-btn {
    background: var(--accent-color);
    color: var(--dark-color);
}

.regenerate-btn {
    background: transparent;
    color: var(--light-color);
    border: 1px solid var(--accent-color);
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 242, 254, 0.3);
}

.regenerate-btn:hover {
    background: rgba(0, 242, 254, 0.1);
}

/* Showcase Section */
.showcase-section {
    padding: 100px 0;
    background: linear-gradient(180deg, rgba(15, 12, 41, 0) 0%, rgba(15, 12, 41, 0.8) 100%);
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.showcase-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    aspect-ratio: 1/1;
}

.showcase-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.showcase-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.showcase-item:hover img {
    transform: scale(1.05);
}

.showcase-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    opacity: 0;
    transition: var(--transition);
}

.showcase-item:hover .showcase-overlay {
    opacity: 1;
}

.showcase-overlay p {
    margin: 0;
    font-weight: 600;
}

/* How It Works Section */
.how-it-works {
    padding: 100px 0;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.step {
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
}

.step:hover {
    transform: translateY(-10px);
}

.step-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    font-size: 2rem;
}

/* Testimonials Section */
.testimonials {
    padding: 100px 0;
    background: linear-gradient(180deg, rgba(15, 12, 41, 0.8) 0%, rgba(15, 12, 41, 0) 100%);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    padding: 30px;
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-10px);
}

.avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--accent-color);
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.role {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 15px;
}

.rating {
    color: var(--accent-color);
    margin-top: 15px;
}

/* About Page Styles */
.our-mission {
    padding: 80px 0;
}

.mission-card {
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.our-story {
    padding: 80px 0;
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    align-items: center;
}

.story-image {
    overflow: hidden;
    border-radius: var(--border-radius);
}

.story-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

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

.why-choose-us {
    padding: 80px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    padding: 30px;
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    font-size: 1.5rem;
}

.team-section {
    padding: 80px 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.team-card {
    padding: 30px;
    text-align: center;
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-10px);
}

.team-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--accent-color);
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Gallery Page Styles */
.gallery-section {
    padding: 80px 0 100px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    aspect-ratio: 1/1;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h3 {
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.gallery-overlay p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--accent-color);
}

/* Lightbox Modal */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.lightbox-modal.show {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    width: auto;
    height: auto;
    padding: 20px;
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    display: block;
    border-radius: var(--border-radius);
}

.close-lightbox {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    color: var(--light-color);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.close-lightbox:hover {
    color: var(--accent-color);
    transform: rotate(90deg);
}

.lightbox-caption {
    text-align: center;
    margin-top: 15px;
}

/* Footer */
footer {
    padding: 80px 0 30px;
    background: linear-gradient(180deg, rgba(15, 12, 41, 0) 0%, rgba(15, 12, 41, 1) 100%);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
    color: var(--accent-color);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--light-color);
    text-decoration: none;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--light-color);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent-color);
    color: var(--dark-color);
    transform: translateY(-3px);
}

.newsletter-form {
    display: flex;
    margin-top: 20px;
}

.newsletter-form input {
    flex: 1;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px 0 0 50px;
    color: var(--light-color);
    font-size: 0.9rem;
}

.newsletter-form button {
    padding: 10px 20px;
    border-radius: 0 50px 50px 0;
    font-size: 0.9rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animations */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 242, 254, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(0, 242, 254, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 242, 254, 0);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(15, 12, 41, 0.95);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
        z-index: 999;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 15px 0;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero, .about-hero, .gallery-hero {
        padding-top: 120px;
    }
}

@media (max-width: 768px) {
    .prompt-input {
        flex-direction: column;
    }

    .prompt-input input, .prompt-input select {
        width: 100%;
    }

    .result-actions {
        flex-direction: column;
    }

    .story-grid {
        grid-template-columns: 1fr;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input {
        border-radius: 50px;
        margin-bottom: 10px;
    }

    .newsletter-form button {
        border-radius: 50px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }

    .generator-card, .mission-card {
        padding: 30px 20px;
    }

    .step, .testimonial-card, .feature-card, .team-card {
        padding: 25px 20px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}