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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background-color: #ffffff;
}

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

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid #e2e8f0;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-brand h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #5b21b6;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: #2d3748;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 3px;
}

.nav-link {
    text-decoration: none;
    color: #4a5568;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #5b21b6;
}

/* Language Toggle Button */
.lang-toggle {
    background: #5b21b6;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-left: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lang-toggle:hover {
    background: #4c1d95;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(91, 33, 182, 0.2);
}

.lang-text {
    font-size: 0.875rem;
}

.lang-toggle::before {
    content: "🌐";
    font-size: 1rem;
}

/* Hero Section */
.hero {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #ffffff, #e0e7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: #f0f4ff;
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    color: #e0e7ff;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: white;
    color: #5b21b6;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #5b21b6;
}

/* Features Section */
.features {
    padding: 5rem 0;
    background: #f7fafc;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 3rem;
}

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

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: #4a5568;
    line-height: 1.6;
}

/* Generator Section */
.generator {
    padding: 5rem 0;
    background: white;
}

.generator-description {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
    font-size: 1.125rem;
    color: #4a5568;
}

.iframe-container {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
    padding: 2rem;
    background: #f7fafc;
    border-radius: 12px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.generator-tips {
    margin-top: 3rem;
    padding: 2rem;
    background: #fef5e7;
    border-radius: 12px;
    border-left: 4px solid #f39c12;
}

.generator-tips h3 {
    color: #2d3748;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

/* Tips Categories Grid */
.tips-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.tip-category {
    background: white;
    padding: 1.25rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tip-category:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.tip-category h4 {
    color: #5b21b6;
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tip-category ul {
    list-style: none;
    padding: 0;
}

.tip-category li {
    padding: 0.375rem 0;
    color: #4a5568;
    font-size: 0.875rem;
    line-height: 1.5;
    border-left: 2px solid #e2e8f0;
    padding-left: 0.75rem;
    transition: border-color 0.2s ease;
}

.tip-category li:hover {
    border-left-color: #5b21b6;
    color: #2d3748;
}

/* Example Prompt Section */
.tip-example {
    background: linear-gradient(135deg, #f3e7fc 0%, #fef5e7 100%);
    padding: 1.5rem;
    border-radius: 8px;
    border: 2px dashed #d69e2e;
    margin-top: 1rem;
}

.tip-example h4 {
    color: #975a16;
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
}

.tip-example p {
    color: #2d3748;
    font-family: 'Inter', monospace;
    background: white;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    font-size: 0.875rem;
    line-height: 1.6;
}

/* About Section */
.about {
    padding: 5rem 0;
    background: #f7fafc;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.about-text {
    font-size: 1.125rem;
    color: #4a5568;
    line-height: 1.8;
}

.about-text p {
    margin-bottom: 1.5rem;
}

.stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.stat h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #5b21b6;
    margin-bottom: 0.5rem;
}

.stat p {
    color: #4a5568;
    font-weight: 500;
}

/* Footer */
.footer {
    background: #2d3748;
    color: #cbd5e0;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: white;
}

.footer-brand p {
    color: #a0aec0;
}

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

.footer-column h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-column a {
    display: block;
    color: #a0aec0;
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #4a5568;
    padding-top: 1rem;
    text-align: center;
    color: #a0aec0;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Navigation */
    .nav {
        padding: 1rem;
    }

    .mobile-menu-btn {
        display: flex;
        z-index: 1001;
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 2rem 0;
        gap: 0;
    }

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

    .nav-link {
        font-size: 1.125rem;
        padding: 1rem 0;
        display: block;
    }

    .lang-toggle {
        margin: 1rem auto 0;
        transform: scale(1.1);
    }

    /* Hero Section */
    .hero {
        padding: 6rem 0 3rem;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .hero-description {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .btn {
        width: 200px;
        text-align: center;
    }

    /* Features Section */
    .features {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 1.875rem;
        padding: 0 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .feature-icon {
        font-size: 2.5rem;
    }

    /* Generator Section */
    .generator {
        padding: 3rem 0;
    }

    .generator-description {
        padding: 0 1rem;
        font-size: 1rem;
    }

    .iframe-container {
        padding: 1rem;
    }

    .iframe-wrapper {
        width: 100%;
        height: 300px;
    }

    iframe {
        width: 100% !important;
        max-width: 100%;
        height: 300px !important;
        border-radius: 8px;
    }

    .iframe-overlay {
        height: 60px;
    }

    .overlay-title {
        font-size: 1.125rem;
    }

    .generator-tips {
        padding: 1.5rem;
        margin: 2rem 1rem 0;
    }

    .generator-tips h3 {
        font-size: 1.125rem;
    }

    .tips-categories {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .tip-category {
        padding: 1rem;
    }

    .tip-category h4 {
        font-size: 1rem;
    }

    .tip-category li {
        font-size: 0.8125rem;
    }

    .tip-example {
        padding: 1rem;
    }

    .tip-example h4 {
        font-size: 1rem;
    }

    .tip-example p {
        font-size: 0.8125rem;
        padding: 0.5rem 0.75rem;
    }

    /* About Section */
    .about {
        padding: 3rem 0;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }

    .about-text {
        font-size: 1rem;
    }

    .stats {
        flex-direction: row;
        justify-content: space-around;
        gap: 1rem;
    }

    .stat {
        padding: 1rem;
        min-width: 100px;
    }

    .stat h3 {
        font-size: 1.5rem;
    }

    /* Footer */
    .footer {
        padding: 2rem 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .footer-links {
        justify-content: center;
        gap: 3rem;
    }

    .footer-bottom {
        padding-top: 1.5rem;
        font-size: 0.875rem;
    }

    /* Container padding adjustment */
    .container {
        padding: 0 1rem;
    }
}

/* Scroll Animation */
@media (prefers-reduced-motion: no-preference) {
    .feature-card {
        animation: fadeInUp 0.6s ease-out;
    }

    .feature-card:nth-child(1) { animation-delay: 0.1s; }
    .feature-card:nth-child(2) { animation-delay: 0.2s; }
    .feature-card:nth-child(3) { animation-delay: 0.3s; }
    .feature-card:nth-child(4) { animation-delay: 0.4s; }
    .feature-card:nth-child(5) { animation-delay: 0.5s; }
    .feature-card:nth-child(6) { animation-delay: 0.6s; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Iframe container styling */
.iframe-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background: #f7fafc;
    border-radius: 12px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Iframe wrapper for overlay positioning */
.iframe-wrapper {
    position: relative;
    width: 850px;
    height: 450px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Overlay to hide iframe title */
.iframe-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.overlay-title {
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}