/* Home 4 - Dark Elegant Design */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #111827;
    color: #f3f4f6;
    line-height: 1.6;
}

/* Navigation */
.navbar {
    background: rgba(17, 24, 39, 0.98);
    backdrop-filter: blur(15px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(236, 72, 153, 0.2);
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

.logo h2 {
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.8rem;
    font-weight: 700;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: #f3f4f6;
    font-weight: 500;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link:hover {
    color: #ec4899;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #1f2937;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    border: 1px solid rgba(236, 72, 153, 0.2);
    list-style: none;
    padding: 0.75rem 0;
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

@media (max-width: 768px) {
    .dropdown-menu {
        right: 0;
        left: auto;
        max-width: 200px;
    }
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: #e2e8f0;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.dropdown-menu a:hover {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
    color: #ec4899;
    padding-left: 1.75rem;
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: #f3f4f6;
    text-decoration: none;
    transition: all 0.3s ease;
}

.dropdown-menu a:hover {
    background: rgba(236, 72, 153, 0.1);
    color: #ec4899;
}

/* Hero Section */
.hero {
    background: #111827;
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(236, 72, 153, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(139, 92, 246, 0.15) 0%, transparent 50%);
    animation: bgPulse 8s ease-in-out infinite;
}

@keyframes bgPulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 0.8;
    }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    animation: slideInLeft 0.8s ease-out;
}

@keyframes slideInLeft {
    from {
        transform: translateX(-50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.hero-tag {
    display: inline-block;
    background: rgba(236, 72, 153, 0.2);
    color: #ec4899;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(236, 72, 153, 0.3);
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: #f9fafb;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: #d1d5db;
    line-height: 1.7;
}

.hero-benefits {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.benefit-icon {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.benefit-icon i {
    color: #fff;
    font-size: 0.9rem;
}

.benefit-item span {
    color: #e5e7eb;
    font-size: 1.05rem;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    color: #fff;
    padding: 1.1rem 2.75rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(236, 72, 153, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(236, 72, 153, 0.4);
}

.hero-graphic {
    position: relative;
    height: 400px;
    animation: slideInRight 0.8s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.graphic-element {
    position: absolute;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 1px solid rgba(236, 72, 153, 0.2);
}

.element-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 10%;
    animation: float 6s ease-in-out infinite;
}

.element-2 {
    width: 150px;
    height: 150px;
    top: 50%;
    right: 15%;
    animation: float 8s ease-in-out infinite;
    animation-delay: 1s;
}

.element-3 {
    width: 100px;
    height: 100px;
    bottom: 15%;
    left: 30%;
    animation: float 7s ease-in-out infinite;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

.hero-chat-preview {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #1f2937;
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(236, 72, 153, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

.preview-message {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.preview-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1.3rem;
}

.preview-text {
    color: #f3f4f6;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Chat Section */
.chat-section {
    padding: 5rem 2rem;
    background: #1f2937;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out;
}

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

.section-header h2 {
    font-size: 2.5rem;
    color: #f9fafb;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    color: #9ca3af;
}

.chat-wrapper {
    max-width: 900px;
    margin: 0 auto;
    animation: scaleIn 0.8s ease-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.chat-container {
    background: #111827;
    border-radius: 24px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    border: 3px solid transparent;
    background-clip: padding-box;
    position: relative;
}

.chat-container::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, #ec4899, #8b5cf6, #ec4899, #8b5cf6);
    background-size: 400% 400%;
    border-radius: 24px;
    z-index: -1;
    animation: gradientRotate 6s ease infinite;
}

@keyframes gradientRotate {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.chat-header {
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    color: #fff;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.clear-button {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.clear-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.username-section {
    padding: 1.5rem;
    background: #1f2937;
    border-bottom: 1px solid rgba(236, 72, 153, 0.2);
}

.username-input-wrapper {
    display: flex;
    gap: 1rem;
}

#usernameInput {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid rgba(236, 72, 153, 0.2);
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    background: #111827;
    color: #f3f4f6;
    transition: border-color 0.3s ease;
}

#usernameInput:focus {
    border-color: #ec4899;
}

.set-username-btn {
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.set-username-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
}

.username-hint {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #9ca3af;
    font-style: italic;
}

.chat-messages {
    height: 450px;
    overflow-y: auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: #111827;
}

.message {
    display: flex;
    gap: 1rem;
    max-width: 80%;
    animation: messageSlideIn 0.4s ease-out;
}

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

.user-message {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.assistant-message {
    align-self: flex-start;
}

.message-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 600;
    flex-shrink: 0;
}

.user-message .message-avatar {
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    color: #fff;
}

.assistant-message .message-avatar {
    background: #1f2937;
    color: #ec4899;
    border: 2px solid rgba(236, 72, 153, 0.3);
}

.message-content {
    background: #1f2937;
    padding: 1rem 1.25rem;
    border-radius: 18px;
    border: 1px solid rgba(236, 72, 153, 0.2);
    word-wrap: break-word;
}

.user-message .message-content {
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    color: #fff;
    border: none;
}

.message-content p {
    margin: 0;
    line-height: 1.6;
    font-size: 1rem;
    color: #f3f4f6;
}

.user-message .message-content p {
    color: #fff;
}

.sample-prompts {
    padding: 0 2rem 2rem;
    border-bottom: 1px solid rgba(236, 72, 153, 0.2);
    background: #111827;
}

.sample-prompts h4 {
    margin-bottom: 1rem;
    color: #f3f4f6;
    font-size: 1rem;
}

.prompt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.75rem;
}

.sample-prompt {
    background: #1f2937;
    border: 1px solid rgba(236, 72, 153, 0.2);
    border-radius: 12px;
    padding: 0.875rem 1rem;
    text-align: left;
    cursor: pointer;
    font-size: 0.95rem;
    color: #f3f4f6;
    transition: all 0.3s ease;
}

.sample-prompt:hover {
    background: rgba(236, 72, 153, 0.1);
    border-color: #ec4899;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.2);
}

.sample-prompt:active {
    transform: translateY(0);
}

.chat-input-container {
    padding: 1.5rem;
    background: #111827;
}

.input-wrapper {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    background: #1f2937;
    border: 2px solid rgba(236, 72, 153, 0.2);
    border-radius: 16px;
    padding: 1rem;
    transition: border-color 0.3s ease;
}

.input-wrapper:focus-within {
    border-color: #ec4899;
}

#messageInput {
    flex: 1;
    border: none;
    outline: none;
    resize: none;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.5;
    min-height: 24px;
    max-height: 120px;
    background: transparent;
    color: #f3f4f6;
}

#messageInput::placeholder {
    color: #6b7280;
}

.send-button {
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    border: none;
    border-radius: 12px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.send-button:hover:not(:disabled) {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(236, 72, 153, 0.3);
}

.send-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.input-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: #9ca3af;
}

.char-count {
    font-weight: 500;
}

.app-info {
    font-style: italic;
}

.loading-indicator {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: #111827;
    border-top: 1px solid rgba(236, 72, 153, 0.2);
}

.loading-dots {
    display: flex;
    gap: 0.5rem;
}

.loading-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ec4899;
    animation: loadingDots 1.4s infinite ease-in-out both;
}

.loading-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.loading-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes loadingDots {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

.loading-text {
    color: #9ca3af;
    font-size: 0.95rem;
}

/* Footer */
.footer {
    background: #030712;
    color: #f3f4f6;
    padding: 3rem 2rem 1.5rem;
    border-top: 1px solid rgba(236, 72, 153, 0.2);
}

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

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

.footer-brand h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand p {
    color: #9ca3af;
    font-size: 1rem;
}

.footer-social h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(236, 72, 153, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f3f4f6;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(236, 72, 153, 0.2);
}

.social-icon:hover {
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    transform: translateY(-3px);
    border-color: transparent;
}

.footer-bottom {
    border-top: 1px solid rgba(236, 72, 153, 0.2);
    padding-top: 1.5rem;
    text-align: center;
    color: #9ca3af;
}

/* Scrollbar */
.chat-messages::-webkit-scrollbar {
    width: 8px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #1f2937;
    border-radius: 4px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #ec4899;
    border-radius: 4px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #8b5cf6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        padding: 1rem;
    }
    
    .logo h2 {
        font-size: 1.5rem;
    }
    
    .hero {
        padding: 4rem 1.5rem;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-graphic {
        height: 300px;
    }
    
    .element-1 {
        width: 150px;
        height: 150px;
    }
    
    .element-2 {
        width: 120px;
        height: 120px;
    }
    
    .element-3 {
        width: 80px;
        height: 80px;
    }
    
    .hero-chat-preview {
        padding: 1rem;
    }
    
    .preview-avatar {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .preview-text {
        font-size: 1rem;
    }
    
    .chat-section {
        padding: 3rem 1.5rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .chat-messages {
        height: 400px;
        padding: 1.5rem;
    }
    
    .message {
        max-width: 90%;
    }
    
    .prompt-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .cta-button {
        padding: 0.95rem 2.25rem;
        font-size: 1rem;
    }
    
    .chat-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .header-controls {
        width: 100%;
        justify-content: space-between;
    }
    
    .chat-messages {
        height: 350px;
        padding: 1rem;
    }
    
    .message {
        max-width: 95%;
    }
    
    .message-avatar {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .username-input-wrapper {
        flex-direction: column;
    }
    
    .set-username-btn {
        width: 100%;
    }
}
