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

:root {
    /* Color Palette - Blue theme matching Farda Market brand */
    --primary-blue: #3b82f6;
    --primary-dark: #1e40af;
    --primary-light: #60a5fa;
    --primary-lighter: #93bbfc;
    --accent-cyan: #06b6d4;
    --accent-teal: #14b8a6;
    
    /* Background colors - Dark theme */
    --bg-darkest: #0a0e1a;
    --bg-dark: #111827;
    --bg-medium: #1f2937;
    --bg-light: #374151;
    --bg-card: rgba(31, 41, 55, 0.5);
    
    /* Text colors */
    --text-primary: #f9fafb;
    --text-secondary: #e5e7eb;
    --text-muted: #9ca3af;
    --text-dim: #6b7280;
    
    /* Status colors */
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
    --gradient-accent: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-cyan) 100%);
    --gradient-text: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-cyan) 100%);
}

html, body {
    height: 100%;
    overflow: hidden;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    /* Prevent layout shift when fonts load */
    font-display: swap;
}

/* Prevent layout shift by reserving space for fonts */
body {
    font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-darkest);
    color: var(--text-primary);
    position: relative;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    /* Reserve space to prevent layout shift */
    min-height: 100vh;
    width: 100%;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: var(--bg-darkest);
    color: var(--text-primary);
    position: relative;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
}

/* Background Animation */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    background: radial-gradient(ellipse at top right, rgba(30, 64, 175, 0.1) 0%, transparent 50%),
                radial-gradient(ellipse at bottom left, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
                var(--bg-darkest);
}

.particle {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    opacity: 0.03;
    filter: blur(150px);
}

.particle:nth-child(1) {
    background: var(--primary-blue);
    top: -200px;
    right: -200px;
    animation: float 25s ease-in-out infinite;
}

.particle:nth-child(2) {
    background: var(--accent-cyan);
    bottom: -200px;
    left: -200px;
    animation: float 30s ease-in-out infinite reverse;
}

.particle:nth-child(3) {
    background: var(--primary-dark);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    animation: pulse 20s ease-in-out infinite;
}

.particle:nth-child(4) {
    background: var(--primary-light);
    top: 20%;
    right: 30%;
    width: 300px;
    height: 300px;
    animation: float 35s ease-in-out infinite;
}

.particle:nth-child(5) {
    background: var(--accent-teal);
    bottom: 30%;
    left: 20%;
    width: 350px;
    height: 350px;
    animation: float 28s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    33% {
        transform: translate(30px, -30px) rotate(120deg) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) rotate(240deg) scale(0.9);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.03;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.05;
    }
}

/* Container */
.container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
.header {
    position: absolute;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.logo-image {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.3));
    animation: logoFloat 3s ease-in-out infinite;
}

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

.logo-text {
    display: flex;
    gap: 0.5rem;
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -1px;
}

.logo-primary {
    color: var(--text-primary);
}

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

/* Hero Section */
.hero {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
}

.hero-content {
    max-width: 800px;
    width: 100%;
}

.hero-title {
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.hero-title span {
    display: inline-block;
    margin: 0 0.25rem;
}

.hero-title span:first-child,
.hero-title span:last-child {
    margin: 0;
}

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

/* Blue Text Style */
.glass-text {
    display: inline-block;
    font-weight: 900;
    letter-spacing: 0.02em;
    color: #55afda;
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.25rem);
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.hero-description {
    font-size: clamp(0.875rem, 2vw, 1rem);
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Section */
.cta-section {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.75rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: clamp(0.875rem, 2vw, 1rem);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.cta-button:hover::before {
    transform: translateX(100%);
}

.cta-button svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.cta-twitter {
    background: #1DA1F2;
    color: white;
}

.cta-twitter:hover {
    background: #1a91da;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(29, 161, 242, 0.3);
}

.cta-telegram {
    background: #0088cc;
    color: white;
}

.cta-telegram:hover {
    background: #0077b5;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(0, 136, 204, 0.3);
}

/* Animations */
.fade-in-1 { animation: fadeInUp 0.8s ease-out 0.2s both; }
.fade-in-2 { animation: fadeInUp 0.8s ease-out 0.4s both; }
.fade-in-3 { animation: fadeInUp 0.8s ease-out 0.6s both; }
.fade-in-4 { animation: fadeInUp 0.8s ease-out 0.8s both; }
.fade-in-5 { animation: fadeInUp 0.8s ease-out 1s both; }
.fade-in-6 { animation: fadeInUp 0.8s ease-out 1.2s both; }

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

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



/* Mobile Responsive */
@media (max-width: 768px) {
    html, body {
        overflow-y: auto;
        overflow-x: hidden;
    }

    .container {
        min-height: 100vh;
        height: auto;
        padding: 1.5rem 1rem;
        justify-content: flex-start;
        padding-top: 2rem;
    }

    .header {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        margin-bottom: 3rem;
        padding-top: 0;
    }

    .logo-text {
        font-size: 1.5rem;
    }

    .hero {
        padding: 0;
        flex: none;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.4;
        margin-bottom: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1rem;
        line-height: 1.6;
    }

    .hero-description {
        font-size: 0.875rem;
        margin-bottom: 2rem;
        line-height: 1.7;
    }

    .coming-soon-badge {
        margin-bottom: 2rem;
    }

    .badge-text {
        padding: 0.625rem 1.5rem;
        font-size: 0.9rem;
    }

    .cta-section {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 0.75rem;
    }

    .cta-button {
        width: 100%;
        max-width: 300px;
        justify-content: center;
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* Tablet Responsive */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 2rem 3rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

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

    .hero-description {
        font-size: 0.95rem;
    }
}

/* Large Desktop */
@media (min-width: 1440px) {
    .hero-title {
        font-size: 4rem;
    }

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

    .hero-description {
        font-size: 1.125rem;
    }

    .cta-button {
        padding: 1rem 2rem;
        font-size: 1.125rem;
    }

    .cta-button svg {
        width: 24px;
        height: 24px;
    }
}

/* Ultra-wide screens */
@media (min-width: 1920px) {
    .container {
        max-width: 1400px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Focus styles */
*:focus-visible {
    outline: 2px solid var(--primary-light);
    outline-offset: 2px;
}

/* Selection styles */
::selection {
    background: var(--primary-blue);
    color: white;
}

::-moz-selection {
    background: var(--primary-blue);
    color: white;
}

/* Height-based media queries for single fold */
@media (max-height: 700px) and (min-width: 769px) {
    .header {
        top: 1rem;
    }

    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
    }

    .hero-subtitle {
        margin-bottom: 0.5rem;
    }

    .hero-description {
        margin-bottom: 1.5rem;
    }
}

@media (max-height: 600px) and (min-width: 769px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        display: none;
    }
}