:root {
    --primary-color: #9d4edd;
    --secondary-color: #240046;
    --text-color: #e0aaff;
    --accent-color: #ff9e00;
    --bg-color: #10002b;
}

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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(
        -45deg, 
        #10002b, /* Deep violet */
        #240046, /* Dark violet */
        #3c096c, /* Violet */
        #5a189a, /* Purple */
        #240046, /* Back to dark */
        #000000  /* Black space */
    );
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: var(--text-color);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

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

/* Background animation */
.stars, .twinkling {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.stars {
    background: transparent url('http://www.script-tutorials.com/demos/360/images/stars.png') repeat top center;
    z-index: -2;
}

.twinkling {
    background: transparent url('http://www.script-tutorials.com/demos/360/images/twinkling.png') repeat top center;
    z-index: -1;
    animation: move-twink-back 200s linear infinite;
    opacity: 0.4;
}

@keyframes move-twink-back {
    from {background-position:0 0;}
    to {background-position:-10000px 5000px;}
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    padding: 20px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.lang-switcher select {
    background: rgba(36, 0, 70, 0.5);
    color: var(--text-color);
    border: 1px solid var(--primary-color);
    padding: 8px 12px;
    border-radius: 20px;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
}

.lang-switcher select:hover {
    background: rgba(36, 0, 70, 0.8);
    border-color: var(--accent-color);
}

.logo {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(157, 78, 221, 0.5);
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 0;
}

.hero h1 {
    font-family: 'Cinzel', serif;
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
    background: linear-gradient(45deg, #e0aaff, #9d4edd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 600px;
    color: #c77dff;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(45deg, var(--primary-color), #7b2cbf);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(157, 78, 221, 0.4);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(157, 78, 221, 0.6);
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 80px;
    width: 100%;
}

.feature-card {
    background: rgba(36, 0, 70, 0.5);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(157, 78, 221, 0.2);
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(36, 0, 70, 0.7);
}

.feature-card h3 {
    font-family: 'Cinzel', serif;
    color: var(--accent-color);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

footer {
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
    color: #7b2cbf;
    margin-top: 40px;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
}
