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

:root {
    --primary-color: #0f172a;
    --secondary-color: #1e293b;
    --accent-color: #00d4ff;
    --accent-gradient: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    --text-color: #1e293b;
    --text-light: #64748b;
    --bg-color: #ffffff;
    --bg-light: #f8fafc;
    --bg-gradient: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 20px rgba(0, 212, 255, 0.3);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    background-attachment: fixed;
    font-size: 16px;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Prevent horizontal scroll on mobile */
* {
    max-width: 100%;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.5));
}

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

.nav-menu a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--accent-color);
}

.nav-menu a:hover::after {
    width: 100%;
}

.lang-switcher {
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.lang-btn:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
}

.lang-btn.active {
    background: var(--accent-gradient);
    border-color: var(--accent-color);
    box-shadow: var(--shadow-glow);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    color: white;
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(0, 212, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    background: linear-gradient(135deg, #ffffff 0%, #00d4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease 0.2s both;
}

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

/* Content Sections */
.content-section {
    padding: 3rem 0;
    position: relative;
}

.content-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--accent-color) 50%, transparent 100%);
    opacity: 0.3;
}

.content-block {
    background: var(--bg-color);
    margin-bottom: 3rem;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.content-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.content-block:hover::before {
    transform: scaleX(1);
}

.content-block:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-color);
}

.content-block h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    border-bottom: 3px solid transparent;
    border-image: var(--accent-gradient) 1;
    padding-bottom: 0.5rem;
    position: relative;
    padding-left: 1rem;
}

.content-block h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

.content-block h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    position: relative;
    padding-left: 1.5rem;
}

.content-block h3::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-size: 1.2rem;
    animation: pulse 2s infinite;
}

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

.content-block p {
    margin-bottom: 1rem;
    color: var(--text-light);
    line-height: 1.8;
}

.content-image {
    width: 100%;
    max-width: 600px;
    max-height: 400px;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    margin: 2rem auto;
    box-shadow: var(--shadow);
    display: block;
    transition: transform 0.3s ease;
}

.content-image:hover {
    transform: scale(1.02);
}

/* FAQ Section */
.faq-block {
    background: var(--bg-gradient);
    border-radius: 16px;
    padding: 2rem;
}

.faq-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    border-left: 4px solid var(--accent-color);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
}

.faq-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-hover);
    border-left-width: 6px;
}

.faq-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.faq-item p {
    color: var(--text-light);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    text-align: center;
    padding: 3rem 0;
    margin-top: 4rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--accent-gradient);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-menu-toggle:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.menu-icon {
    display: block;
    font-size: 1.5rem;
    line-height: 1;
}

/* Responsive Design */
/* Tablet */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 4rem 0;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .content-block {
        padding: 2rem;
    }
}

/* Mobile and Tablet */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    /* Header Mobile */
    .header {
        padding: 0.75rem 0;
    }

    .nav-wrapper {
        flex-wrap: nowrap;
        gap: 1rem;
    }

    .logo {
        font-size: 1.3rem;
    }

    .mobile-menu-toggle {
        display: block;
        order: 3;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
        flex-direction: column;
        gap: 0;
        width: 100%;
        padding: 1rem 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
        z-index: 999;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        display: block;
        padding: 1rem 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-menu a::after {
        display: none;
    }

    .lang-switcher {
        order: 2;
        gap: 0.25rem;
    }

    .lang-btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.875rem;
    }

    /* Hero Mobile */
    .hero {
        padding: 3rem 0;
    }

    .hero h1 {
        font-size: 1.75rem;
        line-height: 1.3;
        padding: 0 10px;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        padding: 0 10px;
    }

    /* Content Mobile */
    .content-section {
        padding: 2rem 0;
    }

    .content-block {
        padding: 1.25rem;
        margin-bottom: 2rem;
        border-radius: 12px;
    }

    .content-block h2 {
        font-size: 1.4rem;
        margin-bottom: 1rem;
        padding-left: 0.75rem;
        line-height: 1.3;
    }

    .content-block h2::before {
        width: 3px;
    }

    .content-block h3 {
        font-size: 1.15rem;
        margin-top: 1.5rem;
        margin-bottom: 0.75rem;
        padding-left: 1.25rem;
    }

    .content-block h3::before {
        font-size: 1rem;
    }

    .content-block p {
        font-size: 0.95rem;
        line-height: 1.7;
        margin-bottom: 0.875rem;
    }

    .content-image {
        max-width: 100%;
        max-height: 250px;
        margin: 1.5rem auto;
        border-radius: 8px;
    }

    /* FAQ Mobile */
    .faq-block {
        padding: 1.5rem;
        border-radius: 12px;
    }

    .faq-item {
        padding: 1.25rem;
        margin-bottom: 1.5rem;
        border-radius: 8px;
    }

    .faq-item h3 {
        font-size: 1.1rem;
    }

    .faq-item p {
        font-size: 0.9rem;
    }

    /* Footer Mobile */
    .footer {
        padding: 2rem 0;
        margin-top: 3rem;
    }

    .footer p {
        font-size: 0.9rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .header {
        padding: 0.5rem 0;
    }

    .logo {
        font-size: 1.2rem;
    }

    .lang-btn {
        padding: 0.35rem 0.6rem;
        font-size: 0.8rem;
    }

    .hero {
        padding: 2.5rem 0;
    }

    .hero h1 {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .hero-subtitle {
        font-size: 0.875rem;
    }

    .content-section {
        padding: 1.5rem 0;
    }

    .content-block {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }

    .content-block h2 {
        font-size: 1.25rem;
        padding-left: 0.5rem;
    }

    .content-block h2::before {
        width: 2px;
    }

    .content-block h3 {
        font-size: 1.05rem;
        padding-left: 1rem;
        margin-top: 1.25rem;
    }

    .content-block p {
        font-size: 0.9rem;
    }

    .content-image {
        max-height: 200px;
        margin: 1rem auto;
    }

    .faq-block {
        padding: 1rem;
    }

    .faq-item {
        padding: 1rem;
        margin-bottom: 1.25rem;
    }

    .footer {
        padding: 1.5rem 0;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .content-block:hover {
        transform: none;
    }

    .content-block:hover::before {
        transform: scaleX(0);
    }

    .lang-btn:hover {
        transform: none;
    }

    .nav-menu a:hover::after {
        width: 0;
    }

    /* Larger touch targets */
    .lang-btn {
        min-height: 44px;
        min-width: 44px;
    }

    .nav-menu a {
        min-height: 44px;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 2.5rem 0;
    }

    .hero h1 {
        font-size: 1.6rem;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .content-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print styles */
@media print {
    .header,
    .footer,
    .lang-switcher,
    .mobile-menu-toggle {
        display: none;
    }

    .content-block {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* Accessibility improvements for mobile */
@media (max-width: 768px) {
    /* Ensure text is readable */
    body {
        font-size: 16px; /* Prevent zoom on iOS */
    }

    /* Better focus indicators */
    a:focus,
    button:focus {
        outline: 3px solid var(--accent-color);
        outline-offset: 2px;
    }

    /* Prevent text size adjustment */
    input,
    select,
    textarea,
    button {
        font-size: 16px;
    }
}

/* Additional Block Styles */
.content-block:nth-child(even) {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.content-block:nth-child(odd) {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

/* Animated gradient background for alternating blocks */
.content-block:nth-child(3n) {
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
}

/* Feature cards with icons */
.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-color);
}

/* Link Styles */
a {
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

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

a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: width 0.3s ease;
}

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

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animation */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* Scroll animations */
@media (prefers-reduced-motion: no-preference) {
    .content-block {
        animation: fadeInUp 0.6s ease-out;
    }
    
    .content-block:nth-child(1) { animation-delay: 0.1s; }
    .content-block:nth-child(2) { animation-delay: 0.2s; }
    .content-block:nth-child(3) { animation-delay: 0.3s; }
    .content-block:nth-child(4) { animation-delay: 0.4s; }
    .content-block:nth-child(5) { animation-delay: 0.5s; }
}

/* Enhanced button styles */
button, .lang-btn {
    position: relative;
    overflow: hidden;
}

button::before, .lang-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

button:hover::before, .lang-btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Badge styles for special content */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--accent-gradient);
    color: white;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

/* Enhanced card styles */
.card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

/* Gradient text */
.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
