/* ================================
   EWAVE AI - Modern Hi-Tech Design
   ================================ */

/* CSS Variables */
:root {
    /* Colors */
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --accent: #06b6d4;
    --accent-light: #22d3ee;

    /* Dark Theme */
    --bg-dark: #0a0a0f;
    --bg-card: #12121a;
    --bg-card-hover: #1a1a25;
    --bg-elevated: #16161f;

    /* Text */
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #9ca3af;

    /* Borders */
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(99, 102, 241, 0.3);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
    --gradient-text: linear-gradient(135deg, #818cf8 0%, #22d3ee 50%, #818cf8 100%);
    --gradient-glow: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);

    /* Spacing */
    --section-padding: 120px;
    --container-max: 1280px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;
}

/* Accessibility - Visually Hidden (for screen readers) */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 12px 24px;
    z-index: 10000;
    text-decoration: none;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: top var(--transition-fast);
    opacity: 0;
    pointer-events: none;
}

.skip-link:focus {
    top: 20px;
    opacity: 1;
    pointer-events: auto;
}

/* ================================
   WAVE DIVIDERS (Subtle)
   ================================ */
.wave-divider {
    position: absolute;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 2;
}

.wave-divider svg {
    position: relative;
    display: block;
    width: 100%;
    height: 120px;
}

.wave-divider.wave-top {
    top: 0;
}

.wave-divider.wave-bottom {
    bottom: 0;
}

/* Dark section flowing into light section */
.wave-divider.dark-to-light svg path {
    fill: var(--bg-dark);
}

/* Light section flowing into dark section */
.wave-divider.light-to-dark svg path {
    fill: #ffffff;
}

/* ================================
   LIGHT SECTION THEME
   ================================ */
.section-light {
    background: #ffffff !important;
    color: #1a1a2e;
    position: relative;
}

.section-light .section-tag {
    color: var(--primary);
}

.section-light .section-title {
    color: #1a1a2e;
}

.section-light .section-subtitle {
    color: #4a4a68;
}

.section-light p {
    color: #4a4a68;
}

.section-light .about-card,
.section-light .service-card {
    background: #f8f9fc;
    border-color: #e2e4eb;
}

.section-light .about-card:hover,
.section-light .service-card:hover {
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.15);
}

.section-light .card-title,
.section-light .service-title {
    color: #1a1a2e;
}

.section-light .card-description,
.section-light .service-description {
    color: #4a4a68;
}

.section-light .service-features li {
    color: #4a4a68;
}

.section-light .card-icon,
.section-light .service-icon {
    background: linear-gradient(135deg, var(--primary), var(--accent));
}

.section-light .card-icon svg,
.section-light .service-icon svg {
    stroke: #ffffff;
}


/* RTL Skip Link */
[dir="rtl"] .skip-link {
    left: auto;
    right: 0;
    border-radius: 0 0 0 var(--radius-md);
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 48px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

.gradient-text {
    background: var(--gradient-text);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* Section Styling */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-tag {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-light);
    background: rgba(99, 102, 241, 0.1);
    padding: 8px 16px;
    border-radius: 50px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 20px;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-normal);
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
}

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

.btn-secondary:hover {
    background: var(--bg-card);
    border-color: var(--border-glow);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.0625rem;
}

.btn-full {
    width: 100%;
}

/* ================================
   NAVBAR
   ================================ */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    padding: 16px 40px;
    transition: all var(--transition-normal);
    background: rgba(20, 20, 30, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    max-width: 1200px;
    width: 90%;
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 14px 36px;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
}

/* RTL Navigation */
[dir="rtl"] .nav-container {
    flex-direction: row-reverse;
}

[dir="rtl"] .nav-container .logo {
    order: 5;
}

[dir="rtl"] .nav-container .nav-links {
    order: 4;
}

[dir="rtl"] .nav-container .lang-switch {
    order: 3;
}

[dir="rtl"] .nav-container .nav-cta {
    order: 2;
}

[dir="rtl"] .nav-container .mobile-menu-btn {
    order: 1;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
    font-weight: 800;
    font-size: 1.25rem;
    color: white;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.logo-img {
    height: 28px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 48px;
    list-style: none;
}

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

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

.nav-links a.nav-nick {
    color: var(--accent);
    font-weight: 600;
    background: rgba(6, 182, 212, 0.1);
    padding: 6px 14px;
    border-radius: 50px;
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.nav-links a.nav-nick:hover {
    color: var(--accent-light);
    background: rgba(6, 182, 212, 0.15);
}

.lang-switch {
    display: flex;
    gap: 4px;
    background: var(--bg-card);
    padding: 4px;
    border-radius: 50px;
    border: 1px solid var(--border-color);
}

.lang-btn {
    padding: 6px 12px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 50px;
    transition: all var(--transition-fast);
}

.lang-btn:hover {
    color: var(--text-primary);
}

.lang-btn.active {
    background: var(--gradient-primary);
    color: white;
}

.nav-cta {
    padding: 10px 20px;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

/* ================================
   HERO SECTION
   ================================ */
.hero {
    min-height: auto;
    display: flex;
    align-items: center;
    position: relative;
    padding: 140px 0 60px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
}

.glow-1 {
    width: 600px;
    height: 600px;
    background: rgba(99, 102, 241, 0.2);
    top: -200px;
    right: -100px;
}

.glow-2 {
    width: 400px;
    height: 400px;
    background: rgba(6, 182, 212, 0.15);
    bottom: -100px;
    left: -50px;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 650px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary-light);
    margin-bottom: 24px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* Hero Visual - Floating Icons */
.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.floating-icons {
    width: 400px;
    height: 400px;
    position: relative;
}

.center-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 0 60px rgba(99, 102, 241, 0.4),
        0 0 100px rgba(6, 182, 212, 0.2);
    animation: pulse-logo 3s ease-in-out infinite;
    overflow: hidden;
}

.center-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@keyframes pulse-logo {
    0%, 100% { box-shadow: 0 0 60px rgba(99, 102, 241, 0.4), 0 0 100px rgba(6, 182, 212, 0.2); }
    50% { box-shadow: 0 0 80px rgba(99, 102, 241, 0.6), 0 0 120px rgba(6, 182, 212, 0.3); }
}

.icon-item {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
}

.icon-item:hover {
    border-color: var(--border-glow);
    transform: scale(1.1);
}

.icon-item svg {
    width: 32px;
    height: 32px;
    color: var(--primary);
}

.icon-item span {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.icon-1 { top: 0; left: 50%; transform: translateX(-50%); animation: float-1 4s ease-in-out infinite; }
.icon-2 { top: 20%; right: 0; animation: float-2 4.5s ease-in-out infinite; }
.icon-3 { bottom: 20%; right: 0; animation: float-3 5s ease-in-out infinite; }
.icon-4 { bottom: 0; left: 50%; transform: translateX(-50%); animation: float-4 4.2s ease-in-out infinite; }
.icon-5 { bottom: 20%; left: 0; animation: float-5 4.8s ease-in-out infinite; }
.icon-6 { top: 20%; left: 0; animation: float-6 4.3s ease-in-out infinite; }

@keyframes float-1 { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-10px); } }
@keyframes float-2 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes float-3 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes float-4 { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(10px); } }
@keyframes float-5 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-11px); } }
@keyframes float-6 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* Nick Section Chat Demo */
.nick-chat-demo {
    width: 100%;
    max-width: 400px;
}

.nick-chat-window {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.nick-chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(6, 182, 212, 0.1));
    border-bottom: 1px solid var(--border-color);
}

.nick-avatar {
    width: 36px;
    height: 36px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: white;
}

.nick-title {
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
}

.nick-status {
    font-size: 0.7rem;
    color: #10b981;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nick-status::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
}

.nick-chat-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 200px;
}

.nick-msg {
    max-width: 85%;
    opacity: 0;
}

.nick-msg.bot { align-self: flex-start; }
.nick-msg.user { align-self: flex-end; }

.nick-msg p {
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
}

.nick-msg.bot p {
    background: var(--bg-card-hover);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
}

.nick-msg.user p {
    background: var(--gradient-primary);
    color: white;
    border-bottom-right-radius: 4px;
}

.nick-typing {
    display: flex;
    gap: 4px;
    padding: 10px 14px;
    background: var(--bg-card-hover);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    border-bottom-left-radius: 4px;
}

.nick-typing span {
    width: 7px;
    height: 7px;
    background: var(--primary);
    border-radius: 50%;
    animation: nick-typing-bounce 1.4s ease-in-out infinite;
}

.nick-typing span:nth-child(1) { animation-delay: 0s; }
.nick-typing span:nth-child(2) { animation-delay: 0.2s; }
.nick-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes nick-typing-bounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-5px); }
}

/* Nick chat animation - 10s loop */
.nick-msg-1 { animation: nick-msg-appear 10s ease-out infinite; }
.nick-msg-2 { animation: nick-msg-appear 10s ease-out 1s infinite; }
.nick-msg-3 { animation: nick-typing-appear 10s ease-out 2s infinite; }
.nick-msg-4 { animation: nick-response-appear 10s ease-out 4s infinite; }

@keyframes nick-msg-appear {
    0%, 5% { opacity: 0; transform: translateY(10px); }
    10%, 85% { opacity: 1; transform: translateY(0); }
    95%, 100% { opacity: 0; transform: translateY(0); }
}

@keyframes nick-typing-appear {
    0%, 5% { opacity: 0; transform: translateY(10px); }
    10%, 35% { opacity: 1; transform: translateY(0); }
    40%, 100% { opacity: 0; transform: translateY(0); }
}

@keyframes nick-response-appear {
    0%, 5% { opacity: 0; transform: translateY(10px); }
    10%, 75% { opacity: 1; transform: translateY(0); }
    85%, 100% { opacity: 0; transform: translateY(0); }
}

/* ================================
   ABOUT SECTION
   ================================ */
.about {
    padding: var(--section-padding) 0;
    position: relative;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all var(--transition-normal);
}

.about-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-glow);
    transform: translateY(-4px);
}

.card-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}

.card-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--primary-light);
}

.about-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.about-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

/* ================================
   SERVICES SECTION
   ================================ */
.services {
    padding: var(--section-padding) 0;
    background: var(--bg-elevated);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.service-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-4px);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card.featured {
    border-color: var(--border-glow);
}

.service-card.featured::before {
    opacity: 1;
}

.service-number {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.3;
    margin-bottom: 16px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.service-card > p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.service-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.service-features li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
}

/* ================================
   NICK PRODUCT SECTION
   ================================ */
.nick {
    padding: var(--section-padding) 0;
    position: relative;
    overflow: hidden;
}

.nick::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: var(--gradient-glow);
    pointer-events: none;
}

.nick-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.nick-content .section-tag {
    display: inline-block;
}

.nick-content .section-title {
    text-align: left;
    margin-bottom: 24px;
}

.nick-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.7;
}

.nick-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

.nick-feature {
    display: flex;
    gap: 20px;
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--primary-light);
}

.feature-content h4 {
    font-size: 1.125rem;
    margin-bottom: 8px;
}

.feature-content p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

/* Nick Interface Mockup */
.nick-visual {
    perspective: 1000px;
}

.nick-interface {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 60px rgba(99, 102, 241, 0.1);
    transform: rotateY(-5deg) rotateX(5deg);
    transition: transform var(--transition-slow);
}

.nick-interface:hover {
    transform: rotateY(0) rotateX(0);
}

.interface-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-color);
}

.interface-dots {
    display: flex;
    gap: 8px;
}

.interface-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
}

.interface-dots span:first-child { background: #ef4444; }
.interface-dots span:nth-child(2) { background: #eab308; }
.interface-dots span:last-child { background: #22c55e; }

.interface-title {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

.interface-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 350px;
}

.chat-message {
    display: flex;
    gap: 12px;
    max-width: 85%;
    animation: fadeInUp 0.5s ease forwards;
}

.chat-message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

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

.message-avatar {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.message-content {
    background: var(--bg-elevated);
    padding: 14px 18px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.chat-message.user .message-content {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.2);
}

.message-content p {
    font-size: 0.9375rem;
    color: var(--text-primary);
    margin: 0;
}

.message-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 6px 12px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 50px;
    font-size: 0.75rem;
    color: #22c55e;
    font-weight: 500;
}

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 14px 18px;
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    width: fit-content;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-6px); }
}

/* ================================
   TRUST SECTION
   ================================ */
.trust {
    padding: 80px 0;
    background: var(--bg-elevated);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.trust-header {
    text-align: center;
    margin-bottom: 40px;
}

.trust-header h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.trust-header p {
    color: var(--text-secondary);
}

.tech-stack {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

.tech-item {
    padding: 12px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.tech-item:hover {
    border-color: var(--border-glow);
    color: var(--text-primary);
}

/* ================================
   CONTACT SECTION
   ================================ */
.contact {
    padding: var(--section-padding) 0;
    position: relative;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-info .section-tag {
    display: inline-block;
}

.contact-info .section-title {
    text-align: left;
    margin-bottom: 20px;
}

.contact-info > p {
    color: var(--text-secondary);
    font-size: 1.0625rem;
    line-height: 1.7;
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--text-secondary);
}

.contact-item svg {
    width: 24px;
    height: 24px;
    stroke: var(--primary-light);
}

/* Contact Form */
.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

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

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

/* Form Success Message */
.form-success {
    text-align: center;
    padding: 60px 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.form-success svg {
    margin-bottom: 24px;
}

.form-success h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.form-success p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* ================================
   FOOTER
   ================================ */
.footer {
    padding: 80px 0 40px;
    background: var(--bg-elevated);
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 80px;
    padding-bottom: 60px;
    border-bottom: 1px solid var(--border-color);
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 20px;
    max-width: 300px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h4 {
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-column a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 0;
    font-size: 0.9375rem;
    transition: color var(--transition-fast);
}

.footer-column a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color var(--transition-fast);
}

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

/* ================================
   RESPONSIVE DESIGN
   ================================ */

/* Tablet - 1024px and below */
@media (max-width: 1024px) {
    :root {
        --section-padding: 100px;
    }

    .container {
        padding: 0 32px;
    }

    .nav-container {
        padding: 0 32px;
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    .hero-cta {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

    .about-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .nick-wrapper {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .nick-content .section-title {
        text-align: center;
    }

    .nick-content .section-tag {
        display: block;
        text-align: center;
    }

    .nick-description {
        text-align: center;
    }

    .nick-content > .btn {
        display: flex;
        margin: 0 auto;
        width: fit-content;
    }

    .nick-interface {
        transform: none;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .contact-info .section-title {
        text-align: center;
    }

    .contact-info .section-tag {
        display: block;
        text-align: center;
    }

    .contact-info > p {
        text-align: center;
    }

    .contact-details {
        align-items: center;
    }
}

/* Mobile - 768px and below */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }

    .container {
        padding: 0 20px;
    }

    .nav-container {
        padding: 0 20px;
    }

    /* Hide desktop nav elements */
    .nav-links,
    .nav-cta,
    .lang-switch {
        display: none;
    }

    /* Show mobile menu button with proper touch target */
    .mobile-menu-btn {
        display: flex;
        min-width: 44px;
        min-height: 44px;
        align-items: center;
        justify-content: center;
        padding: 10px;
    }

    /* Navbar adjustments */
    .navbar {
        padding: 10px 16px;
        top: 12px;
        max-width: 95%;
        border-radius: 50px;
    }

    .navbar.scrolled {
        padding: 8px 14px;
    }

    /* Hero section mobile */
    .hero {
        min-height: auto;
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: clamp(1.75rem, 7vw, 2.5rem);
        margin-bottom: 16px;
    }

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

    .hero-badge {
        font-size: 0.75rem;
        padding: 6px 12px;
        margin-bottom: 16px;
    }

    .hero-cta {
        margin-bottom: 40px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
        align-items: center;
        padding-top: 32px;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.8125rem;
    }

    /* Section headers mobile */
    .section-header {
        margin-bottom: 40px;
    }

    .section-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
        margin-bottom: 16px;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .section-tag {
        font-size: 0.75rem;
        padding: 6px 12px;
        margin-bottom: 16px;
    }

    /* About grid mobile */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .about-card {
        padding: 24px;
    }

    .about-card h3 {
        font-size: 1.125rem;
    }

    .about-card p {
        font-size: 0.875rem;
    }

    .card-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 16px;
    }

    .card-icon svg {
        width: 24px;
        height: 24px;
    }

    /* Services grid mobile */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .service-card {
        padding: 24px;
    }

    .service-number {
        font-size: 2rem;
        margin-bottom: 12px;
    }

    .service-card h3 {
        font-size: 1.25rem;
        margin-bottom: 12px;
    }

    .service-card > p {
        font-size: 0.9375rem;
        margin-bottom: 20px;
    }

    .service-features li {
        font-size: 0.875rem;
    }

    /* Nick section mobile */
    .nick {
        padding: var(--section-padding) 0;
    }

    .nick-wrapper {
        gap: 40px;
    }

    .nick-description {
        font-size: 1rem;
        margin-bottom: 32px;
    }

    .nick-features {
        gap: 20px;
        margin-bottom: 32px;
    }

    .nick-feature {
        gap: 16px;
    }

    .feature-icon {
        width: 44px;
        height: 44px;
    }

    .feature-icon svg {
        width: 22px;
        height: 22px;
    }

    .feature-content h4 {
        font-size: 1rem;
        margin-bottom: 6px;
    }

    .feature-content p {
        font-size: 0.875rem;
    }

    /* Nick interface mobile */
    .nick-interface {
        border-radius: var(--radius-md);
    }

    .interface-header {
        padding: 12px 16px;
    }

    .interface-body {
        padding: 16px;
        min-height: 280px;
    }

    .message-content {
        padding: 12px 14px;
    }

    .message-content p {
        font-size: 0.875rem;
    }

    .message-avatar {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }

    /* Trust section mobile */
    .trust {
        padding: 60px 0;
    }

    .trust-header {
        margin-bottom: 32px;
    }

    .trust-header h3 {
        font-size: 1.25rem;
    }

    .tech-stack {
        gap: 12px;
    }

    .tech-item {
        padding: 10px 16px;
        font-size: 0.8125rem;
    }

    /* Contact section mobile */
    .contact-wrapper {
        gap: 40px;
    }

    .contact-info > p {
        font-size: 1rem;
        margin-bottom: 32px;
    }

    .contact-details {
        gap: 12px;
    }

    .contact-item {
        font-size: 0.9375rem;
    }

    .contact-form {
        padding: 24px;
        border-radius: var(--radius-md);
    }

    .form-group {
        margin-bottom: 16px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 14px 16px;
        font-size: 16px; /* Prevents iOS zoom on focus */
    }

    /* Footer mobile */
    .footer {
        padding: 60px 0 32px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
        padding-bottom: 32px;
    }

    .footer-brand {
        text-align: center;
    }

    .footer-brand .logo {
        justify-content: center;
    }

    .footer-brand p {
        margin: 16px auto 0;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .footer-column h4 {
        font-size: 0.9375rem;
        margin-bottom: 16px;
    }

    .footer-column a {
        font-size: 0.875rem;
        padding: 6px 0;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
        padding-top: 24px;
    }

    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }

    .footer-legal a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    /* Buttons mobile - ensure touch-friendly sizing */
    .btn {
        padding: 14px 24px;
        font-size: 1rem;
        min-height: 48px;
    }

    .btn-lg {
        padding: 16px 28px;
        font-size: 1rem;
    }

    /* Legal pages mobile */
    .legal-page {
        padding: 120px 0 60px;
    }

    .legal-content .section-title {
        margin-bottom: 32px;
    }

    .legal-section {
        margin-bottom: 32px;
    }

    .legal-section h2 {
        font-size: 1.25rem;
        margin-bottom: 12px;
    }

    .legal-section p {
        font-size: 0.9375rem;
    }
}

/* Small mobile - 480px and below */
@media (max-width: 480px) {
    :root {
        --section-padding: 48px;
    }

    .container {
        padding: 0 16px;
    }

    .nav-container {
        padding: 0 16px;
    }

    /* Logo mobile */
    .logo-icon {
        width: 36px;
        height: 36px;
        font-size: 1.125rem;
    }

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

    /* Hero mobile small */
    .hero {
        padding: 90px 0 48px;
    }

    .hero-title {
        font-size: clamp(1.5rem, 8vw, 2rem);
    }

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

    .hero-cta {
        flex-direction: column;
        gap: 12px;
    }

    .hero-cta .btn {
        width: 100%;
    }

    /* Nick features column layout on small screens */
    .nick-feature {
        flex-direction: column;
        text-align: center;
    }

    .feature-icon {
        align-self: center;
    }

    .feature-content {
        text-align: center;
    }

    /* Footer small mobile */
    .footer-links {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-column a {
        justify-content: center;
    }

    /* Contact form small mobile */
    .contact-form {
        padding: 20px;
    }

    /* Form success message */
    .form-success {
        padding: 40px 20px;
    }

    .form-success h3 {
        font-size: 1.25rem;
    }
}

/* ================================
   ANIMATIONS
   ================================ */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

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

/* ================================
   LEGAL PAGES (Privacy, Terms, Accessibility)
   ================================ */
.legal-page {
    padding: 160px 0 var(--section-padding);
    min-height: 100vh;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content .section-tag {
    display: inline-block;
    margin-bottom: 16px;
}

.legal-content .section-title {
    text-align: left;
    margin-bottom: 48px;
}

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

.legal-section {
    margin-bottom: 40px;
}

.legal-section h2 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.legal-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.legal-section ul {
    list-style: none;
    padding: 0;
}

.accessibility-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
}

[dir="rtl"] .accessibility-list li {
    padding-left: 0;
    padding-right: 24px;
}

.accessibility-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
}

[dir="rtl"] .accessibility-list li::before {
    left: auto;
    right: 0;
}

.accessibility-list li strong {
    color: var(--text-primary);
}

.last-updated {
    color: var(--text-muted);
    font-size: 0.875rem;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

/* Focus Visible Styles - Better keyboard navigation */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

/* Remove outline for mouse users */
:focus:not(:focus-visible) {
    outline: none;
}

/* Button focus states */
.btn:focus-visible {
    outline: 2px solid var(--primary-light);
    outline-offset: 3px;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

/* Form input focus states */
.form-group input:focus-visible,
.form-group select:focus-visible,
.form-group textarea:focus-visible {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* Link focus states */
a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* Smooth scrolling for anchor links */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Reduced Motion - Respect user preferences */
@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;
    }

    .gradient-text {
        animation: none;
        background-size: 100% auto;
    }

    .orb-ring,
    .orb-core,
    .badge-dot,
    .typing-indicator span {
        animation: none;
    }
}
