/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* Safe area support for iPhone with notch */
.navbar {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

.container {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
}

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #8b5cf6;
    --accent-color: #06d6a0;
    --background: #0f0f23;
    --surface: #1a1a2e;
    --surface-light: #262640;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b8;
    --text-muted: #6b7280;
    --border-color: rgba(255, 255, 255, 0.1);
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-secondary: linear-gradient(135deg, #06d6a0 0%, #22d3ee 100%);
    --gradient-hero: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #262640 100%);
    --shadow-light: rgba(99, 102, 241, 0.1);
    --shadow-medium: rgba(99, 102, 241, 0.2);
    --border-radius: 12px;
    --border-radius-large: 20px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 20px var(--shadow-light);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--shadow-medium);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--surface-light);
    border-color: var(--primary-color);
}

.cta-button {
    background: var(--gradient-secondary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(6, 214, 160, 0.3);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 15, 35, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 1rem 0;
    overflow: visible !important;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: visible !important;
    min-height: 60px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo {
    width: 40px;
    height: 40px;
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* Language Selector */
.language-selector {
    position: relative;
    margin: 0 1rem;
}

.language-dropdown {
    position: relative;
}

.language-button {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}



/* Flag Icons Styling */
.language-button .fi {
    font-size: 1.2em;
    width: 20px;
    height: 15px;
}

.language-option .fi {
    font-size: 1.1em;
    width: 18px;
    height: 13px;
}

.language-flag .fi {
    font-size: 4rem;
    width: 64px;
    height: 48px;
}

/* Mobile optimizations for backgrounds */
@media (max-width: 768px) {
    .section.about,
    .section.features,
    .section.for-whom,
    .section.status,
    .section.contact {
        background-attachment: scroll;
        background-size: 150% auto;
    }
    
    .section::before {
        background: rgba(15, 15, 35, 0.9);
    }
    
    .section::after {
        background: linear-gradient(
            180deg,
            rgba(15, 15, 35, 0.5) 0%,
            transparent 20%,
            transparent 80%,
            rgba(15, 15, 35, 0.5) 100%
        );
    }
}

/* Smooth blending improvements */
.section {
    transition: all 0.3s ease-in-out;
}

.section:hover::before {
    background: rgba(15, 15, 35, 0.75);
}

/* RTL Support for Arabic */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .hero-buttons {
    flex-direction: row-reverse;
}

[dir="rtl"] .hero-stats {
    direction: ltr;
    text-align: center;
}

[dir="rtl"] .nav-links {
    flex-direction: row-reverse;
}

[dir="rtl"] .navbar .container {
    flex-direction: row-reverse;
}

[dir="rtl"] .language-menu {
    left: 0;
    right: auto;
}

[dir="rtl"] .features-grid {
    direction: ltr;
}

[dir="rtl"] .sources-grid {
    direction: ltr;
}

[dir="rtl"] .audience-cards {
    direction: ltr;
}

[dir="rtl"] .contact-content {
    flex-direction: row-reverse;
}

[dir="rtl"] .about-content {
    flex-direction: row-reverse;
}

[dir="rtl"] .status-content {
    flex-direction: row-reverse;
}

[dir="rtl"] .timeline-content {
    text-align: right;
}

[dir="rtl"] .form-group label {
    text-align: right;
}

[dir="rtl"] .form-group input,
[dir="rtl"] .form-group select,
[dir="rtl"] .form-group textarea {
    text-align: right;
}

[dir="rtl"] .form-group select {
    background-position: left 0.75rem center;
    padding-right: 0.75rem;
    padding-left: 2.5rem;
}

[dir="rtl"] .contact-method {
    flex-direction: row-reverse;
}

[dir="rtl"] .contact-method a {
    text-align: right;
}

.language-button:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
}

.language-button i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.language-dropdown.active .language-button i {
    transform: rotate(180deg);
}

.language-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 150px;
    min-height: 60px;
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
}

/* Fixed language menu styles */

.language-dropdown.active .language-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0);
    display: block !important;
}

.language-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.language-option:last-child {
    border-bottom: none;
}

.language-option:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.language-option.active {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    font-weight: 500;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.animated-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(99, 102, 241, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.1;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.stat {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.dashboard-image {
    width: 100%;
    max-width: 500px;
    border-radius: var(--border-radius-large);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: float 6s ease-in-out infinite;
}

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

.floating-cards {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.data-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    animation: float-card 4s ease-in-out infinite;
}

.data-card.crypto {
    top: 20%;
    right: -10%;
    animation-delay: 0s;
}

.data-card.ai {
    top: 60%;
    left: -15%;
    animation-delay: 1s;
}

.data-card.news {
    bottom: 20%;
    right: -5%;
    animation-delay: 2s;
}

@keyframes float-card {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
}

/* Sections */
.section {
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

/* Section backgrounds */
.section.about {
    background-image: url('/images/about-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-blend-mode: multiply;
}

.section.features {
    background-image: url('/images/features-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-blend-mode: multiply;
}

.section.for-whom {
    background-image: url('/images/audience-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-blend-mode: multiply;
}

.section.status {
    background-image: url('/images/status-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-blend-mode: multiply;
}

.section.contact {
    background-image: url('/images/contact-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-blend-mode: multiply;
}

/* Section separators for smooth transitions */
.section + .section::before {
    background: linear-gradient(
        to bottom,
        rgba(15, 15, 35, 1) 0%,
        rgba(15, 15, 35, 0.9) 50%,
        rgba(15, 15, 35, 0.8) 100%
    );
}

/* Smooth transition dividers */
.section-divider {
    height: 100px;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(15, 15, 35, 0.1) 25%,
        rgba(15, 15, 35, 0.2) 50%,
        rgba(15, 15, 35, 0.1) 75%,
        transparent 100%
    );
    position: relative;
    overflow: hidden;
}

.section-divider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        ellipse at center,
        rgba(99, 102, 241, 0.05) 0%,
        transparent 70%
    );
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 15, 35, 0.8);
    z-index: 1;
}

/* Gradient overlays for smooth transitions */
.section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(15, 15, 35, 0.3) 0%,
        transparent 15%,
        transparent 85%,
        rgba(15, 15, 35, 0.3) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.section .container {
    position: relative;
    z-index: 2;
}

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease-out;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease-out;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s ease-out;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Floating animations for cards */
.floating-card {
    animation: cardFloat 6s ease-in-out infinite;
}

.floating-card:nth-child(2n) {
    animation-delay: 1s;
}

.floating-card:nth-child(3n) {
    animation-delay: 2s;
}

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

/* Pulse effect for CTA buttons */
.pulse-effect {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(99, 102, 241, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
    }
}

/* Glowing text effect */
.glow-text {
    text-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
    animation: textGlow 3s ease-in-out infinite alternate;
}

@keyframes textGlow {
    from {
        text-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
    }
    to {
        text-shadow: 0 0 20px rgba(99, 102, 241, 0.8), 0 0 30px rgba(139, 92, 246, 0.4);
    }
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    background: var(--surface);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.flow-diagram {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

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

.sources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.source-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.source-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-light);
}

.source-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--shadow-light);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

/* For Whom Section */
.for-whom {
    background: var(--surface);
}

.audience-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.audience-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.audience-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--shadow-light);
}

.audience-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.audience-icon i {
    font-size: 2rem;
    color: white;
}

.audience-card h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.audience-card ul {
    list-style: none;
    margin-top: 1.5rem;
    text-align: left;
}

.audience-card li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
}

.audience-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.cta-section {
    text-align: center;
    padding: 3rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--border-radius-large);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

/* Status Section */
.status-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.timeline {
    margin: 3rem 0;
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    position: relative;
}

.timeline-item:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 15px;
    top: 40px;
    width: 2px;
    height: 40px;
    background: var(--border-color);
}

.timeline-marker {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 3px solid var(--border-color);
    background: var(--surface);
    flex-shrink: 0;
}

.timeline-item.completed .timeline-marker {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.timeline-item.active .timeline-marker {
    background: var(--primary-color);
    border-color: var(--primary-color);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(99, 102, 241, 0); }
    100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); }
}

.timeline-content h4 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.timeline-status {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.early-access {
    margin-top: 2rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.progress-image {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* Contact Section */
.contact {
    background: var(--surface);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-methods {
    margin: 2rem 0;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.contact-method i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.contact-method div {
    display: flex;
    flex-direction: column;
}

.contact-method strong {
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.contact-method span {
    color: var(--text-secondary);
}

.contact-method a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 6px;
    padding: 4px 8px;
    margin: -4px -8px;
    display: inline-block;
    position: relative;
}

.contact-method a:hover {
    color: var(--primary-color);
    background: rgba(115, 102, 255, 0.1);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(115, 102, 255, 0.2);
}

.contact-method a:active {
    transform: translateY(0);
    background: rgba(115, 102, 255, 0.2);
}

.contact-method a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    background: rgba(115, 102, 255, 0.1);
}

/* Специальные стили для mailto ссылок */
.contact-method a[href^="mailto:"] {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(255, 107, 107, 0.05));
}

.contact-method a[href^="mailto:"]:hover {
    color: #ff6b6b;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.2), rgba(255, 107, 107, 0.1));
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

/* Специальные стили для Telegram ссылок */
.contact-method a[href^="https://t.me/"] {
    background: linear-gradient(135deg, rgba(0, 136, 204, 0.1), rgba(0, 136, 204, 0.05));
}

.contact-method a[href^="https://t.me/"]:hover {
    color: #0088cc;
    background: linear-gradient(135deg, rgba(0, 136, 204, 0.2), rgba(0, 136, 204, 0.1));
    box-shadow: 0 2px 8px rgba(0, 136, 204, 0.3);
}

.use-cases {
    margin-top: 2rem;
}

.use-cases ul {
    list-style: none;
    margin: 1rem 0;
}

.use-cases li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
}

.use-cases li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.crypto-payment {
    color: var(--accent-color);
    font-weight: 500;
    margin-top: 1rem;
}

/* Contact Form */
.contact-form {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group select {
    /* Улучшение для Safari и других браузеров */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a8a8b3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
}

.form-group select option {
    background: #1a1a2e !important;
    color: #ffffff !important;
    padding: 8px 12px;
}

.form-group select option:hover,
.form-group select option:checked,
.form-group select option:focus {
    background: var(--primary-color) !important;
    color: #ffffff !important;
}

/* Дополнительные стили для разных браузеров */
.form-group select option[selected] {
    background: var(--primary-color) !important;
    color: #ffffff !important;
}

/* Принудительные стили для всех браузеров */
@supports (-webkit-appearance: none) {
    .form-group select option {
        background-color: #1a1a2e !important;
        color: #ffffff !important;
    }
}

/* Для Firefox */
@-moz-document url-prefix() {
    .form-group select option {
        background-color: #1a1a2e !important;
        color: #ffffff !important;
    }
}

/* Yandex Forms Integration */
.yandex-form-container {
    position: relative;
    width: 100%;
    min-height: 650px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
}

.yandex-form-iframe {
    border-radius: var(--border-radius);
    transition: opacity 0.3s ease;
    background: transparent;
}

.yandex-form-iframe:hover {
    box-shadow: 0 8px 32px var(--shadow-dark);
}

/* Fallback стили */
.form-fallback {
    padding: 2rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(115, 102, 255, 0.1), rgba(255, 107, 107, 0.1));
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.fallback-message {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.fallback-message i {
    color: #ffab00;
    margin-right: 0.5rem;
    vertical-align: middle;
}

.fallback-contacts {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.fallback-contacts .btn {
    flex: 1;
    min-width: 200px;
    max-width: 250px;
}

/* Мобильная ссылка на форму */
.mobile-form-link {
    margin-top: 1rem;
    text-align: center;
}

.mobile-only {
    display: none;
}

/* Адаптивность для Yandex Forms */
@media (max-width: 768px) {
    .yandex-form-container {
        min-height: 500px;
    }
    
    .yandex-form-iframe {
        height: 500px;
    }
    
    .mobile-only {
        display: inline-flex;
    }
    
    .yandex-form-iframe {
        display: none;
    }
    
    .fallback-contacts {
        flex-direction: column;
        align-items: center;
    }
    
    .fallback-contacts .btn {
        width: 100%;
        max-width: 300px;
    }
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--shadow-light);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Footer */
.footer {
    background: var(--background);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-text {
    color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-visual {
        order: -1;
        margin-bottom: 1rem;
    }
    
    .about-content,
    .status-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .floating-cards {
        display: none;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .audience-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .nav-links {
        display: none;
    }
    
    .language-selector {
        margin: 0 0.25rem;
        order: 2;
    }
    
    .language-button {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
        min-width: auto;
    }
    
    .navbar .container {
        padding: 0 0.75rem;
        gap: 0.5rem;
    }
    
    .cta-button {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        white-space: nowrap;
        order: 3;
        flex-shrink: 0;
    }
    
    .nav-brand {
        order: 1;
        flex: 1;
        min-width: 0;
    }
    
    .nav-brand .brand-text {
        display: none;
    }
    
    .nav-brand .logo {
        max-width: 120px;
        height: auto;
    }
    
    .language-dropdown {
        position: relative;
    }
    
    .language-menu {
        right: auto;
        left: 50%;
        transform: translateX(-50%) translateY(-10px);
        min-width: 130px;
        z-index: 1001;
    }
    
    .language-dropdown.active .language-menu {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateX(-50%) translateY(0);
        display: block !important;
    }
    
    .language-option {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .navbar .container {
        padding: 0 0.5rem;
        gap: 0.25rem;
    }
    
    .cta-button {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .language-button {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
    }
    
    .language-menu {
        min-width: 120px;
        font-size: 0.8rem;
        max-height: 200px;
        overflow-y: auto;
    }
    
    .language-option {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
    }
    
    .nav-brand .logo {
        max-width: 100px;
    }
    
    .hero {
        padding-top: 100px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn {
        padding: 1rem 1.5rem;
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 2rem;
    }
    
    .stat {
        padding: 1rem;
    }
    
    .features-grid,
    .audience-cards {
        grid-template-columns: 1fr;
    }
    
    .sources-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .source-item {
        padding: 1.5rem 1rem;
    }
    
    .feature-card,
    .audience-card {
        padding: 1.5rem;
    }
    
    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    .timeline-marker {
        margin-bottom: 0.5rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .sources-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .contact-form {
        padding: 1rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.625rem;
        font-size: 0.9rem;
    }
    
    .form-group select option {
        background: #1a1a2e;
        color: #ffffff;
        padding: 6px 10px;
        font-size: 0.9rem;
    }
    
    /* Мобильные стили для контактных ссылок */
    .contact-method a {
        padding: 6px 12px;
        margin: -6px -12px;
        font-size: 0.9rem;
    }
    
    .contact-method a:hover {
        transform: none; /* Убираем анимацию на мобильных для лучшей производительности */
    }
}

/* Loading Animation */
.loading {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

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

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--surface);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
} 