/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0f0f23;
    --secondary-color: #1a1a2e;
    --accent-color: #00d9ff;
    --accent-secondary: #7b2cbf;
    --text-color: #ffffff;
    --text-secondary: #b0b0b0;
    --bg-dark: #0a0a0a;
    --bg-section: #141414;
    --border-color: #2a2a3e;
    --hover-color: #00b8d4;
    --gradient-start: #00d9ff;
    --gradient-end: #7b2cbf;
    --shadow-glow: rgba(0, 217, 255, 0.3);
    --shadow-purple: rgba(123, 44, 191, 0.3);
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(0, 217, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(123, 44, 191, 0.03) 0%, transparent 50%);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7), 0 0 30px var(--shadow-glow);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--accent-color);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: transform 0.3s;
    display: inline-block;
}

.logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 10px var(--shadow-glow));
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    flex-wrap: wrap;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-secondary));
    transition: all 0.3s;
    transform: translateX(-50%);
}

.nav-links a:hover {
    color: var(--accent-color);
    background: rgba(0, 217, 255, 0.1);
}

.nav-links a:hover::before {
    width: 80%;
}

/* Language Switcher */
.lang-switcher {
    position: relative;
    display: inline-block;
}

.lang-btn {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: var(--text-color);
    border: 2px solid var(--accent-color);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.2);
}

.lang-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(0, 217, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.lang-btn:hover::before {
    width: 300px;
    height: 300px;
}

.lang-btn:hover {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-secondary) 100%);
    border-color: var(--accent-secondary);
    transform: translateY(-2px);
    box-shadow: 0 5px 25px var(--shadow-glow);
    color: var(--primary-color);
    font-weight: 700;
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    border: 2px solid var(--accent-color);
    border-radius: 10px;
    min-width: 160px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 20px var(--shadow-glow);
    z-index: 1001;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
    pointer-events: none;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lang-dropdown.active {
    display: block;
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
    animation: slideDown 0.3s ease-out;
}

.lang-dropdown a {
    display: block;
    padding: 0.85rem 1.2rem;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
    border-left: 3px solid transparent;
}

.lang-dropdown a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-secondary));
    transition: width 0.3s;
}

.lang-dropdown a:hover {
    background: rgba(0, 217, 255, 0.15);
    border-left-color: var(--accent-color);
    padding-left: 1.5rem;
    transform: translateX(5px);
}

.lang-dropdown a:hover::before {
    width: 3px;
}

.lang-dropdown a.active {
    background: linear-gradient(90deg, rgba(0, 217, 255, 0.2), rgba(123, 44, 191, 0.2));
    border-left-color: var(--accent-color);
    color: var(--accent-color);
    font-weight: 600;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--bg-section) 0%, var(--primary-color) 100%);
    padding: 5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(0, 217, 255, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 70%, rgba(123, 44, 191, 0.15) 0%, transparent 50%);
    pointer-events: none;
    animation: rotate 20s linear infinite;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 30%, rgba(0, 217, 255, 0.05) 50%, transparent 70%),
        linear-gradient(-45deg, transparent 30%, rgba(123, 44, 191, 0.05) 50%, transparent 70%);
    pointer-events: none;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes shimmer {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-secondary) 50%, var(--hover-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: gradientShift 3s ease infinite;
    filter: drop-shadow(0 0 20px var(--shadow-glow));
    font-weight: 800;
    letter-spacing: -1px;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 2rem;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Content Sections */
.content-section {
    padding: 4rem 0;
    position: relative;
}

.content-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    opacity: 0.3;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.subsection {
    margin-bottom: 3rem;
}

.subsection h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    border-left: 4px solid var(--accent-color);
    padding-left: 1rem;
    position: relative;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.subsection h2::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--accent-color), var(--accent-secondary));
    box-shadow: 0 0 10px var(--shadow-glow);
}

.subsection h3 {
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    padding-left: 1.5rem;
}

.subsection h3::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-size: 1.2rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: translateX(0); }
    50% { opacity: 0.6; transform: translateX(5px); }
}

.subsection p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    transition: color 0.3s;
}

.subsection p:hover {
    color: var(--text-color);
}

/* Image Styles */
.content-image {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    margin: 2rem 0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 20px var(--shadow-glow);
    display: block;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid transparent;
    background: linear-gradient(var(--bg-section), var(--bg-section)) padding-box,
                linear-gradient(135deg, var(--accent-color), var(--accent-secondary)) border-box;
}

.content-image:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 30px var(--shadow-glow);
}

.image-container {
    text-align: center;
    margin: 2rem 0;
}

/* Feature Cards */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.feature-card {
    background: linear-gradient(135deg, var(--bg-section) 0%, var(--primary-color) 100%);
    padding: 2.5rem;
    border-radius: 15px;
    border: 2px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 217, 255, 0.1), transparent);
    transition: left 0.5s;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 217, 255, 0.3), 0 0 30px var(--shadow-glow);
    border-color: var(--accent-color);
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.05) 0%, var(--primary-color) 100%);
}

.feature-card h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-secondary);
}

/* Steps Section */
.steps-list {
    list-style: none;
    counter-reset: step-counter;
}

.steps-list li {
    counter-increment: step-counter;
    margin-bottom: 2rem;
    padding-left: 3rem;
    position: relative;
}

.steps-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-secondary) 100%);
    color: var(--primary-color);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px var(--shadow-glow), inset 0 2px 5px rgba(255, 255, 255, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}

.steps-list li:hover::before {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px var(--shadow-glow), inset 0 2px 5px rgba(255, 255, 255, 0.4);
}

/* FAQ Section */
.faq-section {
    background: linear-gradient(135deg, var(--bg-section) 0%, var(--primary-color) 100%);
    padding: 4rem 2rem;
    margin: 4rem 0;
    border-radius: 15px;
    border: 2px solid var(--border-color);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), inset 0 0 50px rgba(0, 217, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.faq-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 217, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.faq-item {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 10px;
    transition: all 0.3s;
    position: relative;
}

.faq-item:hover {
    background: rgba(0, 217, 255, 0.05);
    border-color: var(--accent-color);
    transform: translateX(5px);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    font-size: 1.25rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 2.5rem;
    padding-right: 2rem;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s;
}

.faq-question::before {
    content: '❓';
    position: absolute;
    left: 0;
    font-size: 1rem;
    opacity: 0.8;
}

.faq-question:hover {
    transform: translateX(3px);
}

.faq-question:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
    border-radius: 5px;
}

.faq-icon {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-secondary) 100%);
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 10px var(--shadow-glow);
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    background: linear-gradient(135deg, var(--accent-secondary) 0%, var(--accent-color) 100%);
    transform: translateY(-50%) rotate(180deg) scale(1.1);
    box-shadow: 0 4px 15px var(--shadow-purple);
}

.faq-item.active .faq-question {
    margin-bottom: 1rem;
}

.faq-item.active {
    background: rgba(0, 217, 255, 0.08);
    border-color: var(--accent-color);
    box-shadow: 0 4px 15px rgba(0, 217, 255, 0.1);
}

.faq-answer {
    color: var(--text-secondary);
    line-height: 1.8;
    padding-left: 2.5rem;
    position: relative;
}

.faq-answer::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--accent-color), var(--accent-secondary));
    opacity: 0.3;
    border-radius: 2px;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--bg-dark) 100%);
    padding: 3rem 2rem;
    text-align: center;
    margin-top: 4rem;
    border-top: 2px solid var(--accent-color);
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-color), var(--accent-secondary), transparent);
    box-shadow: 0 0 20px var(--shadow-glow);
}

footer p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

footer p::before {
    content: '©';
    margin-right: 0.3rem;
    color: var(--accent-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    nav {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        text-align: center;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .subsection h2 {
        font-size: 1.5rem;
    }

    .subsection h3 {
        font-size: 1.25rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 1rem;
    }

    .content-section {
        padding: 2rem 0;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.75rem;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 2rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.highlight {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-secondary));
    opacity: 0.3;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent-color), var(--accent-secondary));
    border-radius: 6px;
    border: 2px solid var(--bg-dark);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--hover-color), var(--accent-color));
}

/* Smooth transitions for all interactive elements */
a, button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Loading animation for images */
.content-image {
    opacity: 0;
    animation: fadeIn 0.6s ease-in forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

