/* ============================================
   EL BETHUEL WEB HOSTING - COSMIC THEME
   Dark Space Background with Stars, Planets, Galaxies
   ============================================ */

:root {
    --primary-gold: #D4AF37;
    --bright-gold: #F1D592;
    --white-text: #FFFFFF;
    --light-gray: #E8E8E8;
    --dark-space: #0a0a0a;
    --darker-space: #050505;
    --cosmic-blue: #1a2a4a;
    --cosmic-purple: #2a1a4a;
    --accent-cyan: #00D9FF;
    --accent-magenta: #FF00FF;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   GLOBAL STYLES
   ============================================ */

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

html, body {
    width: 100%;
    height: 100%;
    background: var(--dark-space);
    color: var(--white-text);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

body {
    position: relative;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, var(--bright-gold), rgba(241, 213, 146, 0)),
        radial-gradient(2px 2px at 60px 70px, var(--white-text), rgba(255, 255, 255, 0)),
        radial-gradient(1px 1px at 50px 50px, var(--accent-cyan), rgba(0, 217, 255, 0)),
        radial-gradient(1px 1px at 130px 80px, var(--bright-gold), rgba(241, 213, 146, 0)),
        radial-gradient(2px 2px at 90px 10px, var(--white-text), rgba(255, 255, 255, 0));
    background-repeat: repeat;
    background-size: 200px 200px;
    background-attachment: fixed;
}

/* Animated starfield background */
@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

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

@keyframes glow {
    0%, 100% { box-shadow: 0 0 10px var(--primary-gold); }
    50% { box-shadow: 0 0 20px var(--primary-gold), 0 0 30px var(--accent-cyan); }
}

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

/* ============================================
   COSMIC BACKGROUND ELEMENTS
   ============================================ */

.cosmic-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0a2e 50%, #0f0a1f 100%);
    overflow: hidden;
}

.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--white-text);
    border-radius: 50%;
    animation: twinkle 3s infinite;
}

.planet {
    position: absolute;
    border-radius: 50%;
    opacity: 0.6;
}

.planet-1 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle at 30% 30%, #FFD700, #D4AF37);
    top: 10%;
    right: 10%;
    animation: float 20s ease-in-out infinite;
}

.planet-2 {
    width: 100px;
    height: 100px;
    background: radial-gradient(circle at 30% 30%, #FF6B6B, #8B0000);
    bottom: 20%;
    left: 5%;
    animation: float 25s ease-in-out infinite;
    animation-delay: 5s;
}

.planet-3 {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle at 30% 30%, #4A90E2, #1a3a52);
    top: 50%;
    right: 20%;
    animation: float 30s ease-in-out infinite;
    animation-delay: 10s;
}

.galaxy {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    filter: blur(40px);
}

.galaxy-1 {
    width: 400px;
    height: 400px;
    top: 5%;
    left: 10%;
    animation: float 40s ease-in-out infinite;
}

.galaxy-2 {
    width: 300px;
    height: 300px;
    bottom: 10%;
    right: 15%;
    animation: float 45s ease-in-out infinite;
    animation-delay: 15s;
}

/* ============================================
   NAVIGATION
   ============================================ */

nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--primary-gold);
    padding: 1rem 2rem;
}

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

nav .logo {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--white-text);
}

nav .logo span {
    color: var(--primary-gold);
}

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

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

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

nav a:hover::after {
    width: 100%;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    margin-top: 60px;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: var(--white-text);
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.hero-content h1 span {
    color: var(--primary-gold);
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.8), 0 0 60px rgba(212, 175, 55, 0.4);
}

.hero-content p {
    font-size: 1.5rem;
    color: var(--light-gray);
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-badge {
    background: rgba(212, 175, 55, 0.1);
    border: 2px solid var(--primary-gold);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    color: var(--primary-gold);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.feature-badge:hover {
    background: rgba(212, 175, 55, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
}

/* ============================================
   PRICING CARDS
   ============================================ */

.pricing-section {
    padding: 4rem 2rem;
    position: relative;
    z-index: 1;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.pricing-card {
    background: rgba(26, 42, 74, 0.5);
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 20px;
    padding: 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), transparent);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.pricing-card:hover {
    border-color: var(--primary-gold);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.2), 0 0 40px rgba(0, 217, 255, 0.1);
}

.pricing-card:hover::before {
    opacity: 1;
}

.pricing-card.popular {
    border-color: var(--primary-gold);
    background: rgba(212, 175, 55, 0.08);
    transform: scale(1.05);
}

.pricing-card.popular::after {
    content: 'MOST POPULAR';
    position: absolute;
    top: 20px;
    right: -30px;
    background: var(--primary-gold);
    color: var(--dark-space);
    padding: 5px 40px;
    transform: rotate(45deg);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1px;
}

.card-header {
    margin-bottom: 1.5rem;
}

.card-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--white-text);
    margin-bottom: 0.5rem;
}

.card-subtitle {
    color: var(--primary-gold);
    font-weight: 600;
}

.price {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-gold);
    margin: 1.5rem 0;
}

.price-currency {
    font-size: 1.5rem;
    vertical-align: super;
}

.price-period {
    font-size: 1rem;
    color: var(--light-gray);
    font-weight: 400;
}

.features-list {
    list-style: none;
    margin: 2rem 0;
}

.features-list li {
    padding: 0.75rem 0;
    color: var(--light-gray);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.features-list li::before {
    content: '✓';
    color: var(--primary-gold);
    font-weight: bold;
    font-size: 1.2rem;
}

/* ============================================
   BUTTONS
   ============================================ */

.cta-button {
    background: linear-gradient(135deg, var(--primary-gold), var(--bright-gold));
    color: var(--dark-space);
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    text-align: center;
    width: 100%;
    margin-top: 1.5rem;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.5);
}

.secondary-button {
    background: transparent;
    border: 2px solid var(--primary-gold);
    color: var(--primary-gold);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.secondary-button:hover {
    background: var(--primary-gold);
    color: var(--dark-space);
}

/* ============================================
   FORMS & MODALS
   ============================================ */

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

.modal.active {
    display: flex;
}

.modal-content {
    background: rgba(10, 10, 10, 0.95);
    border: 2px solid var(--primary-gold);
    border-radius: 20px;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

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

.modal-header h2 {
    color: var(--white-text);
    font-size: 1.8rem;
}

.modal-close {
    background: none;
    border: none;
    color: var(--primary-gold);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--bright-gold);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-gold);
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.85rem;
    background: #ffffff; /* Solid white background for high contrast */
    border: 2px solid var(--primary-gold);
    border-radius: 8px;
    color: #000000; /* Black text for readability on white background */
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition);
}

.form-group select option {
    background: #ffffff;
    color: #000000;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #666666;
}

.form-group select option:checked {
    background: rgba(212, 175, 55, 0.3);
    color: var(--white-text);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

/* ============================================
   AI ASSISTANT WIDGET
   ============================================ */

.ai-assistant-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.ai-chat-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-gold), var(--bright-gold));
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
    transition: var(--transition);
    animation: pulse 2s ease-in-out infinite;
}

.ai-chat-button:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.6);
}

.ai-chat-window {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    height: 500px;
    background: rgba(10, 10, 10, 0.95);
    border: 2px solid var(--primary-gold);
    border-radius: 20px;
    display: none;
    flex-direction: column;
    z-index: 999;
    box-shadow: 0 20px 60px rgba(212, 175, 55, 0.3);
}

.ai-chat-window.active {
    display: flex;
}

.ai-chat-header {
    background: linear-gradient(135deg, var(--primary-gold), var(--bright-gold));
    color: var(--dark-space);
    padding: 1rem;
    border-radius: 18px 18px 0 0;
    font-weight: 700;
    text-align: center;
}

.ai-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ai-message {
    background: rgba(212, 175, 55, 0.1);
    border-left: 3px solid var(--primary-gold);
    padding: 0.75rem;
    border-radius: 8px;
    color: var(--light-gray);
    font-size: 0.9rem;
}

.user-message {
    background: rgba(0, 217, 255, 0.1);
    border-left: 3px solid var(--accent-cyan);
    color: var(--accent-cyan);
    margin-left: 1rem;
}

.ai-chat-input {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.ai-chat-input input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    color: var(--white-text);
}

.ai-chat-input button {
    background: var(--primary-gold);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-space);
    font-weight: bold;
    transition: var(--transition);
}

.ai-chat-input button:hover {
    background: var(--bright-gold);
}

/* ============================================
   FOOTER
   ============================================ */

footer {
    background: rgba(10, 10, 10, 0.8);
    border-top: 2px solid var(--primary-gold);
    padding: 3rem 2rem;
    margin-top: 4rem;
    position: relative;
    z-index: 1;
}

footer .container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

footer h3 {
    color: var(--primary-gold);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

footer p, footer a {
    color: var(--light-gray);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

footer a:hover {
    color: var(--primary-gold);
}

footer .footer-bottom {
    grid-column: 1 / -1;
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    color: var(--light-gray);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    nav ul {
        gap: 1rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.popular {
        transform: scale(1);
    }
    
    .ai-chat-window {
        width: 100%;
        height: 100%;
        bottom: 0;
        right: 0;
        border-radius: 0;
    }
    
    .modal-content {
        width: 95%;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

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

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

.text-gold {
    color: var(--primary-gold);
}

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

.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}
