:root {
    /* Light Mode Colors */
    --background-color: #f8f9ff;
    --text-color: #172b4d;
    --primary-color: #5b6de8;
    --accent-color: #ff6b6b;
    --secondary-color: #8bd3dd;
    --nav-color: rgba(255, 255, 255, 0.8);
    --card-bg: #ffffff;
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --button-hover: #4c5cd6;
}

/* Dark Mode Colors */
.dark-mode {
    --background-color: #121628;
    --text-color: #e6e8f0;
    --primary-color: #7580ff;
    --accent-color: #ff7a7a;
    --secondary-color: #5fb9c5;
    --nav-color: rgba(18, 22, 40, 0.8);
    --card-bg: #1e2133;
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    --button-hover: #5f69e6;
}

/* RTL language support */
[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .language-dropdown,
[dir="rtl"] .theme-toggle {
    left: 20px;
    right: auto;
}

[dir="rtl"] .button-arrow {
    transform: rotate(180deg);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    z-index: 1;
}

header {
    padding: 40px 0;
    text-align: center;
    width: 100%;
}

.logo-container {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
}

.quantum-logo {
    width: 100%;
    height: 100%;
}

.main-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    display: inline-block;
}

.title-part {
    display: inline-block;
    position: relative;
}

.title-part:first-child::after {
    content: "";
    display: inline-block;
    width: 8px;
    margin: 0 5px;
}

main {
    width: 100%;
    text-align: center;
    padding: 20px 0 80px;
}

.content {
    max-width: 700px;
    margin: 0 auto;
    animation: fadeIn 1s ease-in-out;
}

.tagline {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.description {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 40px;
    color: var(--text-color);
    opacity: 0.9;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(91, 109, 232, 0.3);
}

.dark-mode .cta-button {
    box-shadow: 0 4px 15px rgba(117, 128, 255, 0.3);
}

.cta-button:hover {
    background-color: var(--button-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(91, 109, 232, 0.4);
}

.dark-mode .cta-button:hover {
    box-shadow: 0 6px 20px rgba(117, 128, 255, 0.4);
}

.button-text {
    margin-right: 10px;
}

.button-arrow {
    width: 20px;
    height: 20px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.cta-button:hover .button-arrow {
    transform: translateX(5px);
}

footer {
    padding: 20px;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
    position: relative;
    z-index: 2;
}

/* Language Selector */
.language-selector {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 100;
}

.current-language {
    display: flex;
    align-items: center;
    background-color: var(--nav-color);
    border: none;
    border-radius: 50px;
    padding: 10px 20px;
    font-size: 1rem;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--card-shadow);
}

.current-language:hover {
    background-color: var(--card-bg);
}

.language-icon {
    margin-right: 8px;
    font-size: 1.2rem;
}

.dropdown-arrow {
    margin-left: 8px;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.language-dropdown {
    position: absolute;
    top: 50px;
    left: 0;
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 10px;
    box-shadow: var(--card-shadow);
    display: none;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
    min-width: 220px;
    max-height: 300px;
    overflow-y: auto;
}

.language-dropdown.active {
    display: grid;
}

.language-dropdown button {
    background: none;
    border: none;
    padding: 8px 12px;
    text-align: left;
    color: var(--text-color);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.language-dropdown button:hover {
    background-color: rgba(91, 109, 232, 0.1);
}

.language-dropdown button.active {
    background-color: var(--primary-color);
    color: white;
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
}

.theme-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--nav-color);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--card-shadow);
}

.theme-button:hover {
    background-color: var(--card-bg);
}

.sun-icon, 
.moon-icon {
    position: absolute;
    width: 24px;
    height: 24px;
    transition: all 0.3s ease;
    fill: var(--text-color);
}

.light-mode .sun-icon {
    opacity: 1;
    transform: scale(1);
}

.light-mode .moon-icon {
    opacity: 0;
    transform: scale(0.5);
}

.dark-mode .sun-icon {
    opacity: 0;
    transform: scale(0.5);
}

.dark-mode .moon-icon {
    opacity: 1;
    transform: scale(1);
}

/* Animated Background */
.animated-bg {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.wave-pattern {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20vh;
    min-height: 100px;
}

.wave-1, 
.wave-2, 
.wave-3 {
    transition: fill 0.3s ease;
}

/* Animated Objects */
.animated-objects {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.floating-object {
    position: absolute;
    width: 80px;
    height: 80px;
    opacity: 0.7;
    transition: stroke 0.3s ease, fill 0.3s ease;
}

.obj-1 {
    top: 15%;
    right: 10%;
}

.obj-2 {
    bottom: 20%;
    left: 10%;
}

.obj-3 {
    top: 60%;
    right: 15%;
}

/* Logo Animations */
.logo-orbits ellipse {
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    animation: drawOrbit 3s forwards;
}

.logo-orbits ellipse:nth-child(2) {
    animation-delay: 0.5s;
}

.logo-orbits ellipse:nth-child(3) {
    animation-delay: 1s;
}

.logo-core {
    opacity: 0;
    animation: fadeIn 1s forwards 1.5s;
}

.logo-particles circle {
    opacity: 0;
    animation: fadeIn 1s forwards 2s;
}

.logo-particles circle:nth-child(2) {
    animation-delay: 2.2s;
}

.logo-particles circle:nth-child(3) {
    animation-delay: 2.4s;
}

@keyframes drawOrbit {
    to {
        stroke-dashoffset: 0;
    }
}

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

/* Media Queries */
@media (max-width: 768px) {
    .main-title {
        font-size: 2.5rem;
    }
    
    .tagline {
        font-size: 1.5rem;
    }
    
    .description {
        font-size: 1rem;
        padding: 0 20px;
    }
    
    .logo-container {
        width: 120px;
        height: 120px;
    }
    
    .cta-button {
        padding: 12px 24px;
    }
    
    .floating-object {
        width: 60px;
        height: 60px;
    }
    
    .language-dropdown {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2rem;
    }
    
    .current-language .language-name {
        display: none;
    }
    
    .current-language {
        padding: 10px;
    }
    
    .language-icon {
        margin-right: 0;
    }
    
    .dropdown-arrow {
        margin-left: 5px;
    }
    
    .theme-button {
        width: 40px;
        height: 40px;
    }
    
    .floating-object {
        width: 50px;
        height: 50px;
    }
}