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

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: #000000;
    color: #e0e0e0;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
    z-index: 1000;
    padding: 1rem 0;
}

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

.nav-logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, #00ffff, #b967ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-buttons {
    display: flex;
    gap: 1rem;
}

.nav-btn {
    padding: 0.5rem 1rem;
    border: 1px solid;
    border-radius: 8px;
    background: transparent;
    color: #e0e0e0;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.nav-btn.pro-login-btn {
    border-color: #00ffff;
}

.nav-btn.pro-login-btn:hover {
    background: rgba(0, 255, 255, 0.1);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
    transform: translateY(-2px);
}

.nav-btn.unlimited-btn {
    border-color: #b967ff;
}

.nav-btn.unlimited-btn:hover {
    background: rgba(185, 103, 255, 0.1);
    box-shadow: 0 0 10px rgba(185, 103, 255, 0.3);
    transform: translateY(-2px);
}

/* AI Bot Greeting */
.ai-bot-greeting {
    position: fixed;
    top: 80px;
    right: 20px;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 15px;
    padding: 1rem;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 999;
    animation: botSlideIn 1s ease-out 2s both;
    max-width: 300px;
}

.bot-avatar {
    font-size: 1.5rem;
    animation: botBounce 2s infinite;
}

.bot-message {
    color: #00ffff;
    font-size: 0.9rem;
    font-weight: 500;
}

.bot-text {
    display: block;
    animation: typeWriter 2s steps(60) 2s both;
    white-space: nowrap;
    overflow: hidden;
    border-right: 2px solid #00ffff;
    min-width: 250px;
    color: #e0e0e0;
}

@keyframes botSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes botBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-3px);
    }
}

@keyframes typeWriter {
    from {
        width: 0;
    }
    to {
        width: 250px;
    }
}

/* Floating Benefits */
.floating-benefits {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-benefit {
    position: absolute;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #e0e0e0;
    animation: float 6s ease-in-out infinite;
}

.benefit-icon {
    font-size: 1.2rem;
}

.benefit-text {
    font-weight: 500;
}

.benefit-1 {
    top: 20%;
    left: 5%;
    animation-delay: 0s;
}

.benefit-2 {
    top: 30%;
    right: 8%;
    animation-delay: 2s;
}

.benefit-3 {
    bottom: 35%;
    left: 3%;
    animation-delay: 4s;
}

.benefit-4 {
    bottom: 25%;
    right: 5%;
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.7;
    }
    25% {
        transform: translateY(-20px) rotate(1deg);
        opacity: 1;
    }
    50% {
        transform: translateY(-40px) rotate(-1deg);
        opacity: 0.8;
    }
    75% {
        transform: translateY(-20px) rotate(0.5deg);
        opacity: 1;
    }
}

/* Main Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem 2rem;
    min-height: 100vh;
    position: relative;
    z-index: 10;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 3rem;
}

.title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #00ffff, #b967ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
}

.tagline {
    font-size: 1.2rem;
    color: #a0a0a0;
    font-weight: 300;
}

/* Main Content */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Input Section */
.input-section {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

.input-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.input-header h2 {
    font-size: 1.5rem;
    color: #00ffff;
}

.word-counter {
    font-size: 0.9rem;
    color: #a0a0a0;
    font-family: monospace;
}

.input-textarea {
    width: 100%;
    min-height: 200px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    color: #e0e0e0;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    transition: all 0.3s ease;
}

.input-textarea:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
}

.input-textarea::placeholder {
    color: #666;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    justify-content: center;
}

.button-group {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.action-btn {
    position: relative;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: 2px solid;
    border-radius: 12px;
    background: transparent;
    color: #e0e0e0;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.translate-btn {
    border-color: #00ffff;
    flex-direction: column;
}

.translate-btn:hover {
    background: rgba(0, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
    transform: translateY(-3px);
}

.improve-btn {
    border-color: #b967ff;
}

.improve-btn:hover {
    background: rgba(185, 103, 255, 0.1);
    box-shadow: 0 0 20px rgba(185, 103, 255, 0.4);
    transform: translateY(-3px);
}

/* Language Dropdown */
.language-dropdown {
    margin-top: 0.5rem;
    width: 100%;
}

.language-dropdown select {
    width: 100%;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 6px;
    color: #e0e0e0;
    font-size: 0.9rem;
}

.language-dropdown select:focus {
    outline: none;
    border-color: #00ffff;
}

/* Loading Spinner */
.loading-spinner {
    display: none;
    text-align: center;
    padding: 2rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(0, 255, 255, 0.3);
    border-top: 3px solid #00ffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner p {
    color: #00ffff;
    font-size: 1.1rem;
}

/* Output Section */
.output-section {
    display: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(185, 103, 255, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

.output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.output-header h2 {
    font-size: 1.5rem;
    color: #b967ff;
}

.copy-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #b967ff;
    border-radius: 8px;
    background: transparent;
    color: #e0e0e0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.copy-btn:hover {
    background: rgba(185, 103, 255, 0.1);
    box-shadow: 0 0 10px rgba(185, 103, 255, 0.3);
    transform: translateY(-2px);
}

.output-textarea {
    width: 100%;
    min-height: 150px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    color: #e0e0e0;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
}

.output-textarea:focus {
    outline: none;
    border-color: #b967ff;
    box-shadow: 0 0 15px rgba(185, 103, 255, 0.2);
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal {
    background: #111;
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 12px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-header h2 {
    color: #00ffff;
    font-size: 1.5rem;
}

.close-btn {
    background: none;
    border: none;
    color: #a0a0a0;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #e0e0e0;
}

.modal-body {
    text-align: center;
}

.modal-body p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #a0a0a0;
}

/* Form Styles */
.input-group {
    margin-bottom: 1rem;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #a0a0a0;
    font-size: 0.9rem;
}

.input-group input {
    width: 100%;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #e0e0e0;
    font-size: 1rem;
}

.input-group input:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
}

.error-message {
    color: #ff4444;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    min-height: 1.2rem;
}

.submit-btn {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(45deg, #00ffff, #b967ff);
    border: none;
    border-radius: 8px;
    color: #000;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.3);
}

/* Modal Buttons */
.modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-btn {
    padding: 0.75rem 1.5rem;
    border: 1px solid;
    border-radius: 8px;
    background: transparent;
    color: #e0e0e0;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-btn.pro-btn {
    border-color: #00ffff;
}

.modal-btn.pro-btn:hover {
    background: rgba(0, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.modal-btn.unlimited-btn {
    border-color: #b967ff;
}

.modal-btn.unlimited-btn:hover {
    background: rgba(185, 103, 255, 0.1);
    box-shadow: 0 0 15px rgba(185, 103, 255, 0.3);
}

/* Notification */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: linear-gradient(45deg, #00ffff, #b967ff);
    color: #000;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 3000;
}

.notification.show {
    transform: translateX(0);
}

/* Benefits Section */
.benefits-section {
    margin-top: 4rem;
    padding: 3rem 0;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    border: 1px solid rgba(0, 255, 255, 0.1);
}

.benefits-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.benefits-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    background: linear-gradient(45deg, #00ffff, #b967ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.benefit-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.benefit-card:hover::before {
    left: 100%;
}

.benefit-card:hover {
    transform: translateY(-10px);
    border-color: #00ffff;
    box-shadow: 0 20px 40px rgba(0, 255, 255, 0.2);
}

.benefit-card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
    animation: iconPulse 2s ease-in-out infinite;
}

.benefit-card h3 {
    font-size: 1.5rem;
    color: #00ffff;
    margin-bottom: 1rem;
    font-weight: 600;
}

.benefit-card p {
    color: #a0a0a0;
    line-height: 1.6;
    font-size: 1rem;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 6rem 1rem 1rem;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .nav-logo h1 {
        font-size: 1.2rem;
    }
    
    .nav-buttons {
        gap: 0.5rem;
    }
    
    .nav-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .title {
        font-size: 2rem;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    .button-group {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .action-btn {
        min-width: 250px;
    }
    
    .modal {
        padding: 1.5rem;
    }
    
    .notification {
        right: 10px;
        left: 10px;
        transform: translateY(-100px);
    }
    
    .notification.show {
        transform: translateY(0);
    }

    /* Mobile AI Bot */
    .ai-bot-greeting {
        position: relative;
        top: auto;
        right: auto;
        margin: 1rem;
        max-width: none;
    }

    /* Mobile Benefits */
    .benefits-title {
        font-size: 2rem;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .benefit-card {
        padding: 1.5rem;
    }

    /* Hide floating benefits on mobile */
    .floating-benefits {
        display: none;
    }
}

@media (max-width: 480px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .container {
        padding-top: 8rem;
    }
    
    .input-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .output-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .benefits-title {
        font-size: 1.8rem;
    }

    .benefit-card h3 {
        font-size: 1.3rem;
    }

    .benefit-card p {
        font-size: 0.9rem;
    }

    .ai-bot-greeting {
        margin: 0.5rem;
        padding: 0.75rem;
    }

    .bot-message {
        font-size: 0.8rem;
    }
}

/* Show states */
.loading-spinner.show {
    display: block;
}

.output-section.show {
    display: block;
}

.modal-overlay.show {
    display: flex;
}
